Lines Matching refs:gma_tail
2709 unsigned long gma_head, unsigned int gma_tail) in gma_out_of_range() argument
2711 if (gma_tail >= gma_head) in gma_out_of_range()
2712 return (gma < gma_head) || (gma > gma_tail); in gma_out_of_range()
2714 return (gma > gma_tail) && (gma < gma_head); in gma_out_of_range()
2726 unsigned long gma_head, gma_tail, gma_bottom; in command_scan() local
2731 gma_tail = rb_start + rb_tail; in command_scan()
2734 while (s->ip_gma != gma_tail) { in command_scan()
2745 if (gma_out_of_range(s->ip_gma, gma_head, gma_tail)) { in command_scan()
2767 unsigned long gma_head, gma_tail, gma_bottom; in scan_workload() local
2776 gma_tail = workload->rb_start + workload->rb_tail; in scan_workload()
2786 s.ring_tail = gma_tail; in scan_workload()
2792 gma_head == gma_tail) in scan_workload()
2809 unsigned long gma_head, gma_tail, gma_bottom, ring_size, ring_tail; in scan_wa_ctx() local
2825 gma_tail = wa_ctx->indirect_ctx.guest_gma + ring_tail; in scan_wa_ctx()
2835 s.ring_tail = gma_tail; in scan_wa_ctx()
2854 unsigned long gma_head, gma_tail, gma_top, guest_rb_size; in shadow_workload_ring_buffer() local
2866 gma_tail = workload->rb_start + workload->rb_tail; in shadow_workload_ring_buffer()
2889 if (gma_head > gma_tail) { in shadow_workload_ring_buffer()
2901 ret = copy_gma_to_hva(vgpu, vgpu->gtt.ggtt_mm, gma_head, gma_tail, in shadow_workload_ring_buffer()