Lines Matching refs:gma
1098 unsigned long gma; in cmd_handler_lrm() local
1111 gma = cmd_gma(s, i + 1); in cmd_handler_lrm()
1113 gma |= (cmd_gma_hi(s, i + 2)) << 32; in cmd_handler_lrm()
1114 ret |= cmd_address_audit(s, gma, sizeof(u32), false); in cmd_handler_lrm()
1126 unsigned long gma; in cmd_handler_srm() local
1135 gma = cmd_gma(s, i + 1); in cmd_handler_srm()
1137 gma |= (cmd_gma_hi(s, i + 2)) << 32; in cmd_handler_srm()
1138 ret |= cmd_address_audit(s, gma, sizeof(u32), false); in cmd_handler_srm()
1184 unsigned long gma; in cmd_handler_pipe_control() local
1204 gma = cmd_val(s, 2) & GENMASK(31, 3); in cmd_handler_pipe_control()
1206 gma |= (cmd_gma_hi(s, 3)) << 32; in cmd_handler_pipe_control()
1210 ret |= cmd_address_audit(s, gma, sizeof(u64), in cmd_handler_pipe_control()
1216 gma = hws_pga + gma; in cmd_handler_pipe_control()
1217 patch_value(s, cmd_ptr(s, 2), gma); in cmd_handler_pipe_control()
1608 unsigned long gma, gma_low, gma_high; in cmd_handler_mi_store_data_imm() local
1624 gma = cmd_val(s, 2) & GENMASK(31, 2); in cmd_handler_mi_store_data_imm()
1629 gma = (gma_high << 32) | gma_low; in cmd_handler_mi_store_data_imm()
1632 ret = cmd_address_audit(s, gma + op_size * core_id, op_size, false); in cmd_handler_mi_store_data_imm()
1665 unsigned long gma, gma_high; in cmd_handler_mi_op_2f() local
1680 gma = cmd_val(s, 1) & GENMASK(31, 2); in cmd_handler_mi_op_2f()
1683 gma = (gma_high << 32) | gma; in cmd_handler_mi_op_2f()
1685 ret = cmd_address_audit(s, gma, op_size, false); in cmd_handler_mi_op_2f()
1713 unsigned long gma; in cmd_handler_mi_flush_dw() local
1730 gma = cmd_val(s, 1) & GENMASK(31, 3); in cmd_handler_mi_flush_dw()
1732 gma |= (cmd_val(s, 2) & GENMASK(15, 0)) << 32; in cmd_handler_mi_flush_dw()
1736 ret = cmd_address_audit(s, gma, sizeof(u64), index_mode); in cmd_handler_mi_flush_dw()
1741 gma = hws_pga + gma; in cmd_handler_mi_flush_dw()
1742 patch_value(s, cmd_ptr(s, 1), gma); in cmd_handler_mi_flush_dw()
1764 unsigned long gma, unsigned long end_gma, void *va) in copy_gma_to_hva() argument
1770 while (gma != end_gma) { in copy_gma_to_hva()
1771 gpa = intel_vgpu_gma_to_gpa(mm, gma); in copy_gma_to_hva()
1773 gvt_vgpu_err("invalid gma address: %lx\n", gma); in copy_gma_to_hva()
1777 offset = gma & (I915_GTT_PAGE_SIZE - 1); in copy_gma_to_hva()
1779 copy_len = (end_gma - gma) >= (I915_GTT_PAGE_SIZE - offset) ? in copy_gma_to_hva()
1780 I915_GTT_PAGE_SIZE - offset : end_gma - gma; in copy_gma_to_hva()
1785 gma += copy_len; in copy_gma_to_hva()
1814 unsigned long gma = 0; in find_bb_size() local
1827 gma = get_gma_bb_from_cmd(s, 1); in find_bb_size()
1828 if (gma == INTEL_GVT_INVALID_ADDR) in find_bb_size()
1842 gma, gma + 4, &cmd) < 0) in find_bb_size()
1866 gma += cmd_len; in find_bb_size()
1899 unsigned long gma = 0; in perform_bb_shadow() local
1908 gma = get_gma_bb_from_cmd(s, 1); in perform_bb_shadow()
1909 if (gma == INTEL_GVT_INVALID_ADDR) in perform_bb_shadow()
1934 start_offset = gma & ~I915_GTT_PAGE_MASK; in perform_bb_shadow()
1951 gma, gma + bb_size, in perform_bb_shadow()
1983 s->ip_gma = gma; in perform_bb_shadow()
2778 static inline bool gma_out_of_range(unsigned long gma, in gma_out_of_range() argument
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()