Lines Matching refs:gma_head
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
2730 gma_head = rb_start + rb_head; 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
2775 gma_head = workload->rb_start + workload->rb_head; in scan_workload()
2785 s.ring_head = gma_head; in scan_workload()
2792 gma_head == gma_tail) in scan_workload()
2795 ret = ip_gma_set(&s, gma_head); in scan_workload()
2809 unsigned long gma_head, gma_tail, gma_bottom, ring_size, ring_tail; in scan_wa_ctx() local
2824 gma_head = wa_ctx->indirect_ctx.guest_gma; in scan_wa_ctx()
2834 s.ring_head = gma_head; in scan_wa_ctx()
2840 ret = ip_gma_set(&s, gma_head); in scan_wa_ctx()
2854 unsigned long gma_head, gma_tail, gma_top, guest_rb_size; in shadow_workload_ring_buffer() local
2865 gma_head = workload->rb_start + workload->rb_head; in shadow_workload_ring_buffer()
2889 if (gma_head > gma_tail) { in shadow_workload_ring_buffer()
2891 gma_head, gma_top, shadow_ring_buffer_va); in shadow_workload_ring_buffer()
2897 gma_head = workload->rb_start; 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()