Lines Matching refs:gma_head
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
2583 gma_head = rb_start + rb_head; 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
2628 gma_head = workload->rb_start + workload->rb_head; in scan_workload()
2638 s.ring_head = gma_head; in scan_workload()
2645 gma_head == gma_tail) in scan_workload()
2653 ret = ip_gma_set(&s, gma_head); in scan_workload()
2667 unsigned long gma_head, gma_tail, gma_bottom, ring_size, ring_tail; in scan_wa_ctx() local
2682 gma_head = wa_ctx->indirect_ctx.guest_gma; in scan_wa_ctx()
2692 s.ring_head = gma_head; in scan_wa_ctx()
2703 ret = ip_gma_set(&s, gma_head); in scan_wa_ctx()
2717 unsigned long gma_head, gma_tail, gma_top, guest_rb_size; in shadow_workload_ring_buffer() local
2728 gma_head = workload->rb_start + workload->rb_head; in shadow_workload_ring_buffer()
2752 if (gma_head > gma_tail) { in shadow_workload_ring_buffer()
2754 gma_head, gma_top, shadow_ring_buffer_va); in shadow_workload_ring_buffer()
2760 gma_head = workload->rb_start; 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()