Lines Matching refs:gma
1094 unsigned long gma; in cmd_handler_lrm() local
1107 gma = cmd_gma(s, i + 1); in cmd_handler_lrm()
1109 gma |= (cmd_gma_hi(s, i + 2)) << 32; in cmd_handler_lrm()
1110 ret |= cmd_address_audit(s, gma, sizeof(u32), false); in cmd_handler_lrm()
1122 unsigned long gma; in cmd_handler_srm() local
1131 gma = cmd_gma(s, i + 1); in cmd_handler_srm()
1133 gma |= (cmd_gma_hi(s, i + 2)) << 32; in cmd_handler_srm()
1134 ret |= cmd_address_audit(s, gma, sizeof(u32), false); in cmd_handler_srm()
1180 unsigned long gma; in cmd_handler_pipe_control() local
1200 gma = cmd_val(s, 2) & GENMASK(31, 3); in cmd_handler_pipe_control()
1202 gma |= (cmd_gma_hi(s, 3)) << 32; in cmd_handler_pipe_control()
1206 ret |= cmd_address_audit(s, gma, sizeof(u64), in cmd_handler_pipe_control()
1212 gma = hws_pga + gma; in cmd_handler_pipe_control()
1213 patch_value(s, cmd_ptr(s, 2), gma); in cmd_handler_pipe_control()
1604 unsigned long gma, gma_low, gma_high; in cmd_handler_mi_store_data_imm() local
1620 gma = cmd_val(s, 2) & GENMASK(31, 2); in cmd_handler_mi_store_data_imm()
1625 gma = (gma_high << 32) | gma_low; in cmd_handler_mi_store_data_imm()
1628 ret = cmd_address_audit(s, gma + op_size * core_id, op_size, false); in cmd_handler_mi_store_data_imm()
1661 unsigned long gma, gma_high; in cmd_handler_mi_op_2f() local
1676 gma = cmd_val(s, 1) & GENMASK(31, 2); in cmd_handler_mi_op_2f()
1679 gma = (gma_high << 32) | gma; in cmd_handler_mi_op_2f()
1681 ret = cmd_address_audit(s, gma, op_size, false); in cmd_handler_mi_op_2f()
1709 unsigned long gma; in cmd_handler_mi_flush_dw() local
1726 gma = cmd_val(s, 1) & GENMASK(31, 3); in cmd_handler_mi_flush_dw()
1728 gma |= (cmd_val(s, 2) & GENMASK(15, 0)) << 32; in cmd_handler_mi_flush_dw()
1732 ret = cmd_address_audit(s, gma, sizeof(u64), index_mode); in cmd_handler_mi_flush_dw()
1737 gma = hws_pga + gma; in cmd_handler_mi_flush_dw()
1738 patch_value(s, cmd_ptr(s, 1), gma); in cmd_handler_mi_flush_dw()
1760 unsigned long gma, unsigned long end_gma, void *va) in copy_gma_to_hva() argument
1766 while (gma != end_gma) { in copy_gma_to_hva()
1767 gpa = intel_vgpu_gma_to_gpa(mm, gma); in copy_gma_to_hva()
1769 gvt_vgpu_err("invalid gma address: %lx\n", gma); in copy_gma_to_hva()
1773 offset = gma & (I915_GTT_PAGE_SIZE - 1); in copy_gma_to_hva()
1775 copy_len = (end_gma - gma) >= (I915_GTT_PAGE_SIZE - offset) ? in copy_gma_to_hva()
1776 I915_GTT_PAGE_SIZE - offset : end_gma - gma; in copy_gma_to_hva()
1781 gma += copy_len; in copy_gma_to_hva()
1810 unsigned long gma = 0; in find_bb_size() local
1823 gma = get_gma_bb_from_cmd(s, 1); in find_bb_size()
1824 if (gma == INTEL_GVT_INVALID_ADDR) in find_bb_size()
1838 gma, gma + 4, &cmd) < 0) in find_bb_size()
1862 gma += cmd_len; in find_bb_size()
1895 unsigned long gma = 0; in perform_bb_shadow() local
1904 gma = get_gma_bb_from_cmd(s, 1); in perform_bb_shadow()
1905 if (gma == INTEL_GVT_INVALID_ADDR) in perform_bb_shadow()
1930 start_offset = gma & ~I915_GTT_PAGE_MASK; in perform_bb_shadow()
1947 gma, gma + bb_size, in perform_bb_shadow()
1979 s->ip_gma = gma; in perform_bb_shadow()
2774 static inline bool gma_out_of_range(unsigned long gma, in gma_out_of_range() argument
2778 return (gma < gma_head) || (gma > gma_tail); in gma_out_of_range()
2780 return (gma > gma_tail) && (gma < gma_head); in gma_out_of_range()