Lines Matching refs:gma_tail
2562 unsigned long gma_head, unsigned int gma_tail) in gma_out_of_range() argument
2564 if (gma_tail >= gma_head) in gma_out_of_range()
2565 return (gma < gma_head) || (gma > gma_tail); in gma_out_of_range()
2567 return (gma > gma_tail) && (gma < gma_head); in gma_out_of_range()
2579 unsigned long gma_head, gma_tail, gma_bottom; in command_scan() local
2584 gma_tail = rb_start + rb_tail; in command_scan()
2587 while (s->ip_gma != gma_tail) { in command_scan()
2598 if (gma_out_of_range(s->ip_gma, gma_head, gma_tail)) { in command_scan()
2620 unsigned long gma_head, gma_tail, gma_bottom; in scan_workload() local
2629 gma_tail = workload->rb_start + workload->rb_tail; in scan_workload()
2639 s.ring_tail = gma_tail; in scan_workload()
2645 gma_head == gma_tail) in scan_workload()
2667 unsigned long gma_head, gma_tail, gma_bottom, ring_size, ring_tail; in scan_wa_ctx() local
2683 gma_tail = wa_ctx->indirect_ctx.guest_gma + ring_tail; in scan_wa_ctx()
2693 s.ring_tail = gma_tail; in scan_wa_ctx()
2717 unsigned long gma_head, gma_tail, gma_top, guest_rb_size; in shadow_workload_ring_buffer() local
2729 gma_tail = workload->rb_start + workload->rb_tail; in shadow_workload_ring_buffer()
2752 if (gma_head > gma_tail) { in shadow_workload_ring_buffer()
2764 ret = copy_gma_to_hva(vgpu, vgpu->gtt.ggtt_mm, gma_head, gma_tail, in shadow_workload_ring_buffer()