Lines Matching refs:seqno
88 fence->seqno, gt->tlb_invalidation.seqno_recv); in xe_gt_tlb_fence_timeout()
111 gt->tlb_invalidation.seqno = 1; in xe_gt_tlb_invalidation_init()
147 if (gt->tlb_invalidation.seqno == 1) in xe_gt_tlb_invalidation_reset()
150 pending_seqno = gt->tlb_invalidation.seqno - 1; in xe_gt_tlb_invalidation_reset()
160 static bool tlb_invalidation_seqno_past(struct xe_gt *gt, int seqno) in tlb_invalidation_seqno_past() argument
164 if (seqno - seqno_recv < -(TLB_INVALIDATION_SEQNO_MAX / 2)) in tlb_invalidation_seqno_past()
167 if (seqno - seqno_recv > (TLB_INVALIDATION_SEQNO_MAX / 2)) in tlb_invalidation_seqno_past()
170 return seqno_recv >= seqno; in tlb_invalidation_seqno_past()
179 int seqno; in send_tlb_invalidation() local
191 seqno = gt->tlb_invalidation.seqno; in send_tlb_invalidation()
192 fence->seqno = seqno; in send_tlb_invalidation()
194 action[1] = seqno; in send_tlb_invalidation()
205 if (tlb_invalidation_seqno_past(gt, seqno)) { in send_tlb_invalidation()
222 gt->tlb_invalidation.seqno = (gt->tlb_invalidation.seqno + 1) % in send_tlb_invalidation()
224 if (!gt->tlb_invalidation.seqno) in send_tlb_invalidation()
225 gt->tlb_invalidation.seqno = 1; in send_tlb_invalidation()
466 if (!tlb_invalidation_seqno_past(gt, fence->seqno)) in xe_guc_tlb_invalidation_done_handler()