Lines Matching refs:p
421 static int is_tr_overlap(struct ia64_tr_entry *p, u64 va, u64 log_size) in is_tr_overlap() argument
429 if (va_rid != RR_TO_RID(p->rr)) in is_tr_overlap()
431 tr_log_size = (p->itir & 0xff) >> 2; in is_tr_overlap()
432 tr_end = p->ifa + (1<<tr_log_size) - 1; in is_tr_overlap()
434 if (va > tr_end || p->ifa > va_end) in is_tr_overlap()
458 struct ia64_tr_entry *p; in ia64_itr_entry() local
471 p = ia64_idtrs[cpu]; in ia64_itr_entry()
473 i++, p++) { in ia64_itr_entry()
474 if (p->pte & 0x1) in ia64_itr_entry()
475 if (is_tr_overlap(p, va, log_size)) { in ia64_itr_entry()
483 p = ia64_idtrs[cpu] + IA64_TR_ALLOC_MAX; in ia64_itr_entry()
485 i++, p++) { in ia64_itr_entry()
486 if (p->pte & 0x1) in ia64_itr_entry()
487 if (is_tr_overlap(p, va, log_size)) { in ia64_itr_entry()
527 p = ia64_idtrs[cpu] + i; in ia64_itr_entry()
528 p->ifa = va; in ia64_itr_entry()
529 p->pte = pte; in ia64_itr_entry()
530 p->itir = log_size << 2; in ia64_itr_entry()
531 p->rr = ia64_get_rr(va); in ia64_itr_entry()
536 p = ia64_idtrs[cpu] + IA64_TR_ALLOC_MAX + i; in ia64_itr_entry()
537 p->ifa = va; in ia64_itr_entry()
538 p->pte = pte; in ia64_itr_entry()
539 p->itir = log_size << 2; in ia64_itr_entry()
540 p->rr = ia64_get_rr(va); in ia64_itr_entry()
561 struct ia64_tr_entry *p; in ia64_ptr_entry() local
567 p = ia64_idtrs[cpu] + slot; in ia64_ptr_entry()
568 if ((p->pte&0x1) && is_tr_overlap(p, p->ifa, p->itir>>2)) { in ia64_ptr_entry()
569 p->pte = 0; in ia64_ptr_entry()
570 ia64_ptr(0x1, p->ifa, p->itir>>2); in ia64_ptr_entry()
576 p = ia64_idtrs[cpu] + IA64_TR_ALLOC_MAX + slot; in ia64_ptr_entry()
577 if ((p->pte & 0x1) && is_tr_overlap(p, p->ifa, p->itir>>2)) { in ia64_ptr_entry()
578 p->pte = 0; in ia64_ptr_entry()
579 ia64_ptr(0x2, p->ifa, p->itir>>2); in ia64_ptr_entry()