Lines Matching refs:gma_tail
2779 unsigned long gma_head, unsigned int gma_tail) in gma_out_of_range() argument
2781 if (gma_tail >= gma_head) in gma_out_of_range()
2782 return (gma < gma_head) || (gma > gma_tail); in gma_out_of_range()
2784 return (gma > gma_tail) && (gma < gma_head); in gma_out_of_range()
2796 unsigned long gma_head, gma_tail, gma_bottom; in command_scan() local
2801 gma_tail = rb_start + rb_tail; in command_scan()
2804 while (s->ip_gma != gma_tail) { in command_scan()
2816 if (gma_out_of_range(s->ip_gma, gma_head, gma_tail)) { in command_scan()
2838 unsigned long gma_head, gma_tail; in scan_workload() local
2847 gma_tail = workload->rb_start + workload->rb_tail; in scan_workload()
2856 s.ring_tail = gma_tail; in scan_workload()
2861 if (bypass_scan_mask & workload->engine->mask || gma_head == gma_tail) in scan_workload()
2878 unsigned long gma_head, gma_tail, ring_size, ring_tail; in scan_wa_ctx() local
2894 gma_tail = wa_ctx->indirect_ctx.guest_gma + ring_tail; in scan_wa_ctx()
2903 s.ring_tail = gma_tail; in scan_wa_ctx()
2922 unsigned long gma_head, gma_tail, gma_top, guest_rb_size; in shadow_workload_ring_buffer() local
2933 gma_tail = workload->rb_start + workload->rb_tail; in shadow_workload_ring_buffer()
2956 if (gma_head > gma_tail) { in shadow_workload_ring_buffer()
2968 ret = copy_gma_to_hva(vgpu, vgpu->gtt.ggtt_mm, gma_head, gma_tail, in shadow_workload_ring_buffer()
3160 unsigned long gma_head, gma_tail, gma_start, ctx_size; in intel_gvt_scan_engine_context() local
3178 gma_tail = ctx_size; in intel_gvt_scan_engine_context()
3187 s.ring_tail = gma_start + gma_tail; in intel_gvt_scan_engine_context()
3200 ret = command_scan(&s, gma_head, gma_tail, in intel_gvt_scan_engine_context()