Lines Matching refs:cmd
26 #define cxl_for_each_cmd(cmd) \ argument
27 for ((cmd) = &cxl_mem_commands[0]; \
28 ((cmd) - cxl_mem_commands) < ARRAY_SIZE(cxl_mem_commands); (cmd)++)
518 struct cxl_mem_command *cmd; in cxl_query_cmd() local
535 cxl_for_each_cmd(cmd) { in cxl_query_cmd()
536 struct cxl_command_info info = cmd->info; in cxl_query_cmd()
717 struct cxl_mem_command *cmd = cxl_mem_find_command(opcode); in cxl_walk_cel() local
720 if (cmd) { in cxl_walk_cel()
721 set_bit(cmd->info.id, mds->enabled_cmds); in cxl_walk_cel()
792 struct cxl_mem_command *cmd; in cxl_enumerate_cmds() local
826 cxl_for_each_cmd(cmd) in cxl_enumerate_cmds()
827 if (cmd->flags & CXL_CMD_FLAG_FORCE_ENABLE) in cxl_enumerate_cmds()
828 set_bit(cmd->info.id, mds->enabled_cmds); in cxl_enumerate_cmds()
1126 static int __cxl_mem_sanitize(struct cxl_memdev_state *mds, u16 cmd) in __cxl_mem_sanitize() argument
1138 struct cxl_mbox_cmd mbox_cmd = { .opcode = cmd }; in __cxl_mem_sanitize()
1141 if (cmd != CXL_MBOX_OP_SANITIZE && cmd != CXL_MBOX_OP_SECURE_ERASE) in __cxl_mem_sanitize()
1159 if (cmd == CXL_MBOX_OP_SECURE_ERASE && in __cxl_mem_sanitize()
1187 int cxl_mem_sanitize(struct cxl_memdev *cxlmd, u16 cmd) in cxl_mem_sanitize() argument
1202 rc = __cxl_mem_sanitize(mds, cmd); in cxl_mem_sanitize()