Lines Matching refs:opcode

38 	.opcode = CXL_MBOX_OP_##_id,                                           \
119 static bool cxl_is_security_command(u16 opcode) in cxl_is_security_command() argument
124 if (security_command_sets[i] == (opcode >> 8)) in cxl_is_security_command()
130 u16 opcode) in cxl_set_security_cmd_enabled() argument
132 switch (opcode) { in cxl_set_security_cmd_enabled()
168 static bool cxl_is_poison_command(u16 opcode) in cxl_is_poison_command() argument
172 if ((opcode >> 8) == CXL_MBOX_OP_POISON_CMDS) in cxl_is_poison_command()
179 u16 opcode) in cxl_set_poison_cmd_enabled() argument
181 switch (opcode) { in cxl_set_poison_cmd_enabled()
205 static struct cxl_mem_command *cxl_mem_find_command(u16 opcode) in cxl_mem_find_command() argument
210 if (c->opcode == opcode) in cxl_mem_find_command()
216 static const char *cxl_mem_opcode_to_name(u16 opcode) in cxl_mem_opcode_to_name() argument
220 c = cxl_mem_find_command(opcode); in cxl_mem_opcode_to_name()
287 static bool cxl_mem_raw_command_allowed(u16 opcode) in cxl_mem_raw_command_allowed() argument
300 if (cxl_is_security_command(opcode)) in cxl_mem_raw_command_allowed()
304 if (cxl_disabled_raw_commands[i] == opcode) in cxl_mem_raw_command_allowed()
328 static bool cxl_payload_from_user_allowed(u16 opcode, void *payload_in) in cxl_payload_from_user_allowed() argument
330 switch (opcode) { in cxl_payload_from_user_allowed()
354 struct cxl_mailbox *cxl_mbox, u16 opcode, in cxl_mbox_cmd_ctor() argument
358 .opcode = opcode, in cxl_mbox_cmd_ctor()
368 if (!cxl_payload_from_user_allowed(opcode, mbox_cmd->payload_in)) { in cxl_mbox_cmd_ctor()
370 cxl_mem_opcode_to_name(opcode)); in cxl_mbox_cmd_ctor()
413 if (!cxl_mem_raw_command_allowed(send_cmd->raw.opcode)) in cxl_to_mem_cmd_raw()
424 .opcode = send_cmd->raw.opcode in cxl_to_mem_cmd_raw()
471 .opcode = c->opcode in cxl_to_mem_cmd()
522 return cxl_mbox_cmd_ctor(mbox_cmd, cxl_mbox, mem_cmd.opcode, in cxl_validate_cmd_from_user()
601 cxl_mem_opcode_to_name(mbox_cmd->opcode), in handle_mailbox_cmd_from_user()
602 mbox_cmd->opcode, mbox_cmd->size_in); in handle_mailbox_cmd_from_user()
678 .opcode = CXL_MBOX_OP_GET_LOG, in cxl_xfer_log()
710 static int check_features_opcodes(u16 opcode, int *ro_cmds, int *wr_cmds) in check_features_opcodes() argument
712 switch (opcode) { in check_features_opcodes()
759 u16 opcode = le16_to_cpu(cel_entry[i].opcode); in cxl_walk_cel() local
760 struct cxl_mem_command *cmd = cxl_mem_find_command(opcode); in cxl_walk_cel()
768 enabled += check_features_opcodes(opcode, &ro_cmds, in cxl_walk_cel()
771 if (cxl_is_poison_command(opcode)) { in cxl_walk_cel()
772 cxl_set_poison_cmd_enabled(&mds->poison, opcode); in cxl_walk_cel()
776 if (cxl_is_security_command(opcode)) { in cxl_walk_cel()
777 cxl_set_security_cmd_enabled(&mds->security, opcode); in cxl_walk_cel()
781 dev_dbg(dev, "Opcode 0x%04x %s\n", opcode, in cxl_walk_cel()
800 .opcode = CXL_MBOX_OP_GET_SUPPORTED_LOGS, in cxl_get_gsl()
1013 .opcode = CXL_MBOX_OP_CLEAR_EVENT_RECORD, in cxl_clear_event_record()
1070 .opcode = CXL_MBOX_OP_GET_EVENT_RECORD, in cxl_mem_get_records_log()
1155 .opcode = CXL_MBOX_OP_GET_PARTITION_INFO, in cxl_mem_get_partition_info()
1193 .opcode = CXL_MBOX_OP_IDENTIFY, in cxl_dev_state_identify()
1232 .opcode = CXL_MBOX_OP_GET_SECURITY_STATE, in __cxl_mem_sanitize()
1236 struct cxl_mbox_cmd mbox_cmd = { .opcode = cmd }; in __cxl_mem_sanitize()
1360 .opcode = CXL_MBOX_OP_GET_HEALTH_INFO, in cxl_get_dirty_count()
1382 .opcode = CXL_MBOX_OP_SET_SHUTDOWN_STATE, in cxl_arm_dirty_shutdown()
1400 .opcode = CXL_MBOX_OP_SET_TIMESTAMP, in cxl_set_timestamp()
1438 .opcode = CXL_MBOX_OP_GET_POISON, in cxl_mem_get_poison()