Lines Matching refs:cmd_val

378 	FIELD_GET(GENMASK(end, start), cmd_val(s, dword))
700 static inline u32 cmd_val(struct parser_exec_state *s, int index) in cmd_val() function
727 s->ip_va, cmd_val(s, 0), cmd_val(s, 1), in parser_exec_state_dump()
728 cmd_val(s, 2), cmd_val(s, 3)); in parser_exec_state_dump()
730 print_opcode(cmd_val(s, 0), s->ring_id); in parser_exec_state_dump()
737 gvt_dbg_cmd("%08x ", cmd_val(s, i)); in parser_exec_state_dump()
808 return get_cmd_length(s->info, cmd_val(s, 0)); in cmd_length()
844 data = cmd_val(s, index + 1); in force_nonpriv_reg_handler()
875 vgpu_vreg(s->vgpu, offset) = cmd_val(s, index + 1); in mocs_cmd_reg_handler()
934 u32 data = cmd_val(s, index + 1); in cmd_reg_handler()
950 (cmd_val(s, i) & GENMASK(22, 2))
953 (cmd_val(s, i) & GENMASK(22, 18))
956 (cmd_val(s, i) & GENMASK(31, 2))
959 (cmd_val(s, i) & GENMASK(15, 0))
1037 if (cmd_val(s, 0) & (1 << 22)) { in cmd_handler_lrm()
1061 if (cmd_val(s, 0) & (1 << 22)) { in cmd_handler_srm()
1117 post_sync = (cmd_val(s, 1) & PIPE_CONTROL_POST_SYNC_OP_MASK) >> 14; in cmd_handler_pipe_control()
1120 if (cmd_val(s, 1) & PIPE_CONTROL_MMIO_WRITE) in cmd_handler_pipe_control()
1130 if ((cmd_val(s, 1) & PIPE_CONTROL_GLOBAL_GTT_IVB)) { in cmd_handler_pipe_control()
1131 gma = cmd_val(s, 2) & GENMASK(31, 3); in cmd_handler_pipe_control()
1135 if (cmd_val(s, 1) & (1 << 21)) in cmd_handler_pipe_control()
1145 val = cmd_val(s, 1) & (~(1 << 21)); in cmd_handler_pipe_control()
1155 if (cmd_val(s, 1) & PIPE_CONTROL_NOTIFY) in cmd_handler_pipe_control()
1226 dword0 = cmd_val(s, 0); in gen8_decode_mi_display_flip()
1227 dword1 = cmd_val(s, 1); in gen8_decode_mi_display_flip()
1228 dword2 = cmd_val(s, 2); in gen8_decode_mi_display_flip()
1262 u32 dword0 = cmd_val(s, 0); in skl_decode_mi_display_flip()
1263 u32 dword1 = cmd_val(s, 1); in skl_decode_mi_display_flip()
1264 u32 dword2 = cmd_val(s, 2); in skl_decode_mi_display_flip()
1454 u32 cmd = cmd_val(s, 0); in cmd_handler_mi_wait_for_event()
1475 gma_low = cmd_val(s, index) & BATCH_BUFFER_ADDR_MASK; in get_gma_bb_from_cmd()
1479 gma_high = cmd_val(s, index + 1) & BATCH_BUFFER_ADDR_HIGH_MASK; in get_gma_bb_from_cmd()
1518 pr_err("\n%08x ", cmd_val(s, i)); in cmd_address_audit()
1520 pr_err("%08x ", cmd_val(s, i)); in cmd_address_audit()
1535 int core_id = (cmd_val(s, 2) & (1 << 0)) ? 1 : 0; in cmd_handler_mi_store_data_imm()
1541 if (!(cmd_val(s, 0) & (1 << 22))) in cmd_handler_mi_store_data_imm()
1552 gma = cmd_val(s, 2) & GENMASK(31, 2); in cmd_handler_mi_store_data_imm()
1555 gma_low = cmd_val(s, 1) & GENMASK(31, 2); in cmd_handler_mi_store_data_imm()
1556 gma_high = cmd_val(s, 2) & GENMASK(15, 0); in cmd_handler_mi_store_data_imm()
1558 core_id = (cmd_val(s, 1) & (1 << 0)) ? 1 : 0; in cmd_handler_mi_store_data_imm()
1591 int op_size = (1 << ((cmd_val(s, 0) & GENMASK(20, 19)) >> 19)) * in cmd_handler_mi_op_2f()
1597 if (!(cmd_val(s, 0) & (1 << 22))) in cmd_handler_mi_op_2f()
1608 gma = cmd_val(s, 1) & GENMASK(31, 2); in cmd_handler_mi_op_2f()
1610 gma_high = cmd_val(s, 2) & GENMASK(15, 0); in cmd_handler_mi_op_2f()
1657 if (((cmd_val(s, 0) >> 14) & 0x3) && (cmd_val(s, 1) & (1 << 2))) { in cmd_handler_mi_flush_dw()
1658 gma = cmd_val(s, 1) & GENMASK(31, 3); in cmd_handler_mi_flush_dw()
1660 gma |= (cmd_val(s, 2) & GENMASK(15, 0)) << 32; in cmd_handler_mi_flush_dw()
1662 if (cmd_val(s, 0) & (1 << 21)) in cmd_handler_mi_flush_dw()
1671 val = cmd_val(s, 0) & (~(1 << 21)); in cmd_handler_mi_flush_dw()
1676 if ((cmd_val(s, 0) & (1 << 8))) in cmd_handler_mi_flush_dw()
1685 (BATCH_BUFFER_ADR_SPACE_BIT(cmd_val(s, 0)) == 1)) { in addr_type_update_snb()
1726 if (cmd_val(s, 0) & (1 << 8) && in batch_buffer_needs_scan()
1753 cmd = cmd_val(s, 0); in find_bb_size()
1938 second_level = BATCH_BUFFER_2ND_LEVEL_BIT(cmd_val(s, 0)) == 1; in cmd_handler_mi_batch_buffer_start()
2661 cmd = cmd_val(s, 0); in cmd_parser_exec()