Lines Matching refs:pe
33 // null (pe->pattern == 0)
224 struct page_entry pe;
230 int gotpage = GetPageFromPhysical(paddr, &pe);
236 uint64 addr_diff = paddr - pe.paddr;
241 reinterpret_cast<char*>(os->PrepareTestMem(pe.offset, page_size_));
243 os->ReleaseTestMem(vaddr, pe.offset, page_size_);
254 if (pe.lastpattern) {
258 data.l32.l = pe.lastpattern->pattern(offset << 1);
259 data.l32.h = pe.lastpattern->pattern((offset << 1) + 1);
262 pe.lastpattern->name(), data.l64);
265 snprintf(buf, sizeof(buf), " tsc=%#llx)", pe.ts);
271 struct page_entry *pe) {
278 *pe = pages_[i];
327 bool FineLockPEQueue::GetRandomWithPredicateTag(struct page_entry *pe,
330 if (!pe || !q_size_)
366 *pe = pages_[index];
372 pe->touch = i;
375 pe->touch++;
387 bool FineLockPEQueue::GetRandomWithPredicate(struct page_entry *pe,
389 return GetRandomWithPredicateTag(pe, pred_func, kDontCareTag);
397 bool FineLockPEQueue::GetValid(struct page_entry *pe) {
398 return GetRandomWithPredicate(pe, page_is_valid);
401 bool FineLockPEQueue::GetValid(struct page_entry *pe, int32 mask) {
402 return GetRandomWithPredicateTag(pe, page_is_valid, mask);
409 bool FineLockPEQueue::GetEmpty(struct page_entry *pe, int32 mask) {
410 return GetRandomWithPredicateTag(pe, page_is_empty, mask);
412 bool FineLockPEQueue::GetEmpty(struct page_entry *pe) {
413 return GetRandomWithPredicate(pe, page_is_empty);
420 bool FineLockPEQueue::PutEmpty(struct page_entry *pe) {
421 if (!pe || !q_size_)
424 int64 index = pe->offset / page_size_;
428 pages_[index] = *pe;
438 bool FineLockPEQueue::PutValid(struct page_entry *pe) {
439 if (!pe || !page_is_valid(pe) || !q_size_)
442 int64 index = pe->offset / page_size_;
446 pages_[index] = *pe;