Lines Matching refs:tail
179 unsigned long mfn, tail, head; in guest_iommu_add_ppr_log() local
190 tail = iommu_get_rb_pointer(iommu->ppr_log.reg_tail.lo); in guest_iommu_add_ppr_log()
193 if ( tail >= iommu->ppr_log.entries || head >= iommu->ppr_log.entries ) in guest_iommu_add_ppr_log()
201 sizeof(ppr_entry_t), tail); in guest_iommu_add_ppr_log()
205 log = log_base + tail % (PAGE_SIZE / sizeof(ppr_entry_t)); in guest_iommu_add_ppr_log()
214 if ( ++tail >= iommu->ppr_log.entries ) in guest_iommu_add_ppr_log()
216 tail = 0; in guest_iommu_add_ppr_log()
219 iommu_set_rb_pointer(&iommu->ppr_log.reg_tail.lo, tail); in guest_iommu_add_ppr_log()
228 unsigned long mfn, tail, head; in guest_iommu_add_event_log() local
239 tail = iommu_get_rb_pointer(iommu->event_log.reg_tail.lo); in guest_iommu_add_event_log()
242 if ( tail >= iommu->event_log.entries || head >= iommu->event_log.entries ) in guest_iommu_add_event_log()
250 sizeof(event_entry_t), tail); in guest_iommu_add_event_log()
254 log = log_base + tail % (PAGE_SIZE / sizeof(event_entry_t)); in guest_iommu_add_event_log()
262 if ( ++tail >= iommu->event_log.entries ) in guest_iommu_add_event_log()
264 tail = 0; in guest_iommu_add_event_log()
268 iommu_set_rb_pointer(&iommu->event_log.reg_tail.lo, tail); in guest_iommu_add_event_log()
471 unsigned long opcode, tail, head, entries_per_page, cmd_mfn; in guest_iommu_process_command() local
482 tail = iommu_get_rb_pointer(iommu->cmd_buffer.reg_tail.lo); in guest_iommu_process_command()
488 if ( tail >= iommu->cmd_buffer.entries || in guest_iommu_process_command()
498 while ( head != tail ) in guest_iommu_process_command()