Home
last modified time | relevance | path

Searched refs:mbox_cmd (Results 1 – 25 of 40) sorted by relevance

12

/linux-6.12.1/drivers/scsi/qla4xxx/
Dql4_mbx.c286 uint32_t mbox_cmd[MBOX_REG_COUNT]; in qla4xxx_get_minidump_template() local
290 memset(&mbox_cmd, 0, sizeof(mbox_cmd)); in qla4xxx_get_minidump_template()
293 mbox_cmd[0] = MBOX_CMD_MINIDUMP; in qla4xxx_get_minidump_template()
294 mbox_cmd[1] = MINIDUMP_GET_TMPLT_SUBCOMMAND; in qla4xxx_get_minidump_template()
295 mbox_cmd[2] = LSDW(phys_addr); in qla4xxx_get_minidump_template()
296 mbox_cmd[3] = MSDW(phys_addr); in qla4xxx_get_minidump_template()
297 mbox_cmd[4] = ha->fw_dump_tmplt_size; in qla4xxx_get_minidump_template()
298 mbox_cmd[5] = 0; in qla4xxx_get_minidump_template()
300 status = qla4xxx_mailbox_command(ha, MBOX_REG_COUNT, 2, &mbox_cmd[0], in qla4xxx_get_minidump_template()
305 ha->host_no, __func__, mbox_cmd[0], in qla4xxx_get_minidump_template()
[all …]
Dql4_bsg.c455 uint32_t mbox_cmd[MBOX_REG_COUNT]; in ql4xxx_execute_diag_cmd() local
469 memcpy(mbox_cmd, &bsg_req->rqst_data.h_vendor.vendor_cmd[1], in ql4xxx_execute_diag_cmd()
474 __func__, mbox_cmd[0], mbox_cmd[1], mbox_cmd[2], in ql4xxx_execute_diag_cmd()
475 mbox_cmd[3], mbox_cmd[4], mbox_cmd[5], mbox_cmd[6], in ql4xxx_execute_diag_cmd()
476 mbox_cmd[7])); in ql4xxx_execute_diag_cmd()
478 status = qla4xxx_mailbox_command(ha, MBOX_REG_COUNT, 8, &mbox_cmd[0], in ql4xxx_execute_diag_cmd()
557 uint32_t *mbox_cmd) in qla4_83xx_pre_loopback_config() argument
578 if (mbox_cmd[1] == QL_DIAG_CMD_TEST_INT_LOOPBACK) in qla4_83xx_pre_loopback_config()
581 if (mbox_cmd[1] == QL_DIAG_CMD_TEST_EXT_LOOPBACK) in qla4_83xx_pre_loopback_config()
608 uint32_t *mbox_cmd) in qla4_83xx_post_loopback_config() argument
[all …]
Dql4_nx.c3968 uint32_t mbox_cmd[MBOX_REG_COUNT]; in qla4_8xxx_stop_firmware() local
3971 memset(&mbox_cmd, 0, sizeof(mbox_cmd)); in qla4_8xxx_stop_firmware()
3974 mbox_cmd[0] = MBOX_CMD_STOP_FW; in qla4_8xxx_stop_firmware()
3976 &mbox_cmd[0], &mbox_sts[0]); in qla4_8xxx_stop_firmware()
4027 uint32_t mbox_cmd[MBOX_REG_COUNT]; in qla4_8xxx_get_sys_info() local
4041 memset(&mbox_cmd, 0, sizeof(mbox_cmd)); in qla4_8xxx_get_sys_info()
4044 mbox_cmd[0] = MBOX_CMD_GET_SYS_INFO; in qla4_8xxx_get_sys_info()
4045 mbox_cmd[1] = LSDW(sys_info_dma); in qla4_8xxx_get_sys_info()
4046 mbox_cmd[2] = MSDW(sys_info_dma); in qla4_8xxx_get_sys_info()
4047 mbox_cmd[4] = sizeof(*sys_info); in qla4_8xxx_get_sys_info()
[all …]
Dql4_glbl.h49 uint8_t qla4xxx_get_ifcb(struct scsi_qla_host *ha, uint32_t *mbox_cmd,
56 int qla4xxx_set_acb(struct scsi_qla_host *ha, uint32_t *mbox_cmd,
105 uint32_t *mbox_cmd,
269 int qla4xxx_set_acb(struct scsi_qla_host *ha, uint32_t *mbox_cmd,
/linux-6.12.1/drivers/net/ethernet/cavium/liquidio/
Docteon_mailbox.c132 struct octeon_mbox_cmd *mbox_cmd) in octeon_mbox_write() argument
134 struct octeon_mbox *mbox = oct->mbox[mbox_cmd->q_no]; in octeon_mbox_write()
141 if ((mbox_cmd->msg.s.type == OCTEON_MBOX_RESPONSE) && in octeon_mbox_write()
147 if ((mbox_cmd->msg.s.type == OCTEON_MBOX_REQUEST) && in octeon_mbox_write()
153 if (mbox_cmd->msg.s.type == OCTEON_MBOX_REQUEST) { in octeon_mbox_write()
154 memcpy(&mbox->mbox_resp, mbox_cmd, in octeon_mbox_write()
172 writeq(mbox_cmd->msg.u64, mbox->mbox_write_reg); in octeon_mbox_write()
173 for (i = 0; i < (u32)(mbox_cmd->msg.s.len - 1); i++) { in octeon_mbox_write()
184 writeq(mbox_cmd->data[i], mbox->mbox_write_reg); in octeon_mbox_write()
191 if (mbox_cmd->msg.s.type == OCTEON_MBOX_RESPONSE) { in octeon_mbox_write()
[all …]
Dcn23xx_vf_device.c372 struct octeon_mbox_cmd mbox_cmd; in cn23xx_vf_ask_pf_to_do_flr() local
374 mbox_cmd.msg.u64 = 0; in cn23xx_vf_ask_pf_to_do_flr()
375 mbox_cmd.msg.s.type = OCTEON_MBOX_REQUEST; in cn23xx_vf_ask_pf_to_do_flr()
376 mbox_cmd.msg.s.resp_needed = 0; in cn23xx_vf_ask_pf_to_do_flr()
377 mbox_cmd.msg.s.cmd = OCTEON_VF_FLR_REQUEST; in cn23xx_vf_ask_pf_to_do_flr()
378 mbox_cmd.msg.s.len = 1; in cn23xx_vf_ask_pf_to_do_flr()
379 mbox_cmd.q_no = 0; in cn23xx_vf_ask_pf_to_do_flr()
380 mbox_cmd.recv_len = 0; in cn23xx_vf_ask_pf_to_do_flr()
381 mbox_cmd.recv_status = 0; in cn23xx_vf_ask_pf_to_do_flr()
382 mbox_cmd.fn = NULL; in cn23xx_vf_ask_pf_to_do_flr()
[all …]
Dcn23xx_pf_device.c1443 struct octeon_mbox_cmd mbox_cmd; in cn23xx_tell_vf_its_macaddr_changed() local
1445 mbox_cmd.msg.u64 = 0; in cn23xx_tell_vf_its_macaddr_changed()
1446 mbox_cmd.msg.s.type = OCTEON_MBOX_REQUEST; in cn23xx_tell_vf_its_macaddr_changed()
1447 mbox_cmd.msg.s.resp_needed = 0; in cn23xx_tell_vf_its_macaddr_changed()
1448 mbox_cmd.msg.s.cmd = OCTEON_PF_CHANGED_VF_MACADDR; in cn23xx_tell_vf_its_macaddr_changed()
1449 mbox_cmd.msg.s.len = 1; in cn23xx_tell_vf_its_macaddr_changed()
1450 mbox_cmd.recv_len = 0; in cn23xx_tell_vf_its_macaddr_changed()
1451 mbox_cmd.recv_status = 0; in cn23xx_tell_vf_its_macaddr_changed()
1452 mbox_cmd.fn = NULL; in cn23xx_tell_vf_its_macaddr_changed()
1453 mbox_cmd.fn_arg = NULL; in cn23xx_tell_vf_its_macaddr_changed()
[all …]
Docteon_mailbox.h121 struct octeon_mbox_cmd *mbox_cmd);
/linux-6.12.1/drivers/platform/x86/intel/speed_select_if/
Disst_if_mbox_pci.c40 struct isst_if_mbox_cmd *mbox_cmd) in isst_if_mbox_cmd() argument
71 mbox_cmd->req_data); in isst_if_mbox_cmd()
77 (mbox_cmd->parameter & GENMASK_ULL(13, 0)) << 16 | in isst_if_mbox_cmd()
78 (mbox_cmd->sub_command << 8) | in isst_if_mbox_cmd()
79 mbox_cmd->command; in isst_if_mbox_cmd()
109 mbox_cmd->resp_data = data; in isst_if_mbox_cmd()
119 struct isst_if_mbox_cmd *mbox_cmd; in isst_if_mbox_proc_cmd() local
124 mbox_cmd = (struct isst_if_mbox_cmd *)cmd_ptr; in isst_if_mbox_proc_cmd()
126 if (isst_if_mbox_cmd_invalid(mbox_cmd)) in isst_if_mbox_proc_cmd()
129 if (isst_if_mbox_cmd_set_req(mbox_cmd) && !capable(CAP_SYS_ADMIN)) in isst_if_mbox_proc_cmd()
[all …]
Disst_if_mbox_msr.c89 struct isst_if_mbox_cmd *mbox_cmd; member
97 act->err = isst_if_send_mbox_cmd(act->mbox_cmd->command, in msrl_update_func()
98 act->mbox_cmd->sub_command, in msrl_update_func()
99 act->mbox_cmd->parameter, in msrl_update_func()
100 act->mbox_cmd->req_data, in msrl_update_func()
101 &act->mbox_cmd->resp_data); in msrl_update_func()
109 action.mbox_cmd = (struct isst_if_mbox_cmd *)cmd_ptr; in isst_if_mbox_proc_cmd()
111 if (isst_if_mbox_cmd_invalid(action.mbox_cmd)) in isst_if_mbox_proc_cmd()
114 if (isst_if_mbox_cmd_set_req(action.mbox_cmd) && in isst_if_mbox_proc_cmd()
125 ret = smp_call_function_single(action.mbox_cmd->logical_cpu, in isst_if_mbox_proc_cmd()
[all …]
Disst_if_common.h77 bool isst_if_mbox_cmd_set_req(struct isst_if_mbox_cmd *mbox_cmd);
79 int isst_store_cmd(int cmd, int sub_command, u32 cpu, int mbox_cmd,
Disst_if_common.c163 struct isst_if_mbox_cmd mbox_cmd; in isst_mbox_resume_command() local
166 mbox_cmd.command = (sst_cmd->cmd & GENMASK_ULL(31, 16)) >> 16; in isst_mbox_resume_command()
167 mbox_cmd.sub_command = sst_cmd->cmd & GENMASK_ULL(15, 0); in isst_mbox_resume_command()
168 mbox_cmd.parameter = sst_cmd->param; in isst_mbox_resume_command()
169 mbox_cmd.req_data = sst_cmd->data; in isst_mbox_resume_command()
170 mbox_cmd.logical_cpu = sst_cmd->cpu; in isst_mbox_resume_command()
171 (cb->cmd_callback)((u8 *)&mbox_cmd, &wr_only, 1); in isst_mbox_resume_command()
/linux-6.12.1/drivers/cxl/
Dsecurity.c23 struct cxl_mbox_cmd mbox_cmd; in cxl_pmem_get_security_flags() local
27 mbox_cmd = (struct cxl_mbox_cmd) { in cxl_pmem_get_security_flags()
33 rc = cxl_internal_send_cmd(cxl_mbox, &mbox_cmd); in cxl_pmem_get_security_flags()
75 struct cxl_mbox_cmd mbox_cmd; in cxl_pmem_security_change_key() local
85 mbox_cmd = (struct cxl_mbox_cmd) { in cxl_pmem_security_change_key()
91 return cxl_internal_send_cmd(cxl_mbox, &mbox_cmd); in cxl_pmem_security_change_key()
102 struct cxl_mbox_cmd mbox_cmd; in __cxl_pmem_security_disable() local
110 mbox_cmd = (struct cxl_mbox_cmd) { in __cxl_pmem_security_disable()
116 return cxl_internal_send_cmd(cxl_mbox, &mbox_cmd); in __cxl_pmem_security_disable()
136 struct cxl_mbox_cmd mbox_cmd = { in cxl_pmem_security_freeze() local
[all …]
Dpci.c199 struct cxl_mbox_cmd *mbox_cmd) in __cxl_pci_mbox_send_cmd() argument
233 cxl_cmd_err(cxlds->dev, mbox_cmd, md_status, in __cxl_pci_mbox_send_cmd()
244 if (mbox_cmd->opcode != CXL_MBOX_OP_GET_HEALTH_INFO) in __cxl_pci_mbox_send_cmd()
249 mbox_cmd->opcode); in __cxl_pci_mbox_send_cmd()
250 if (mbox_cmd->size_in) { in __cxl_pci_mbox_send_cmd()
251 if (WARN_ON(!mbox_cmd->payload_in)) in __cxl_pci_mbox_send_cmd()
255 mbox_cmd->size_in); in __cxl_pci_mbox_send_cmd()
256 memcpy_toio(payload, mbox_cmd->payload_in, mbox_cmd->size_in); in __cxl_pci_mbox_send_cmd()
263 dev_dbg(dev, "Sending command: 0x%04x\n", mbox_cmd->opcode); in __cxl_pci_mbox_send_cmd()
272 cxl_cmd_err(cxlds->dev, mbox_cmd, md_status, "mailbox timeout"); in __cxl_pci_mbox_send_cmd()
[all …]
Dpmem.c125 struct cxl_mbox_cmd mbox_cmd; in cxl_pmem_get_config_data() local
137 mbox_cmd = (struct cxl_mbox_cmd) { in cxl_pmem_get_config_data()
145 rc = cxl_internal_send_cmd(cxl_mbox, &mbox_cmd); in cxl_pmem_get_config_data()
157 struct cxl_mbox_cmd mbox_cmd; in cxl_pmem_set_config_data() local
176 mbox_cmd = (struct cxl_mbox_cmd) { in cxl_pmem_set_config_data()
182 rc = cxl_internal_send_cmd(cxl_mbox, &mbox_cmd); in cxl_pmem_set_config_data()
Dcxlmem.h195 static inline const char *cxl_mbox_cmd_rc2str(struct cxl_mbox_cmd *mbox_cmd) in cxl_mbox_cmd_rc2str() argument
197 return cxl_mbox_cmd_rctable[mbox_cmd->return_code].desc; in cxl_mbox_cmd_rc2str()
200 static inline int cxl_mbox_cmd_rc2errno(struct cxl_mbox_cmd *mbox_cmd) in cxl_mbox_cmd_rc2errno() argument
202 return cxl_mbox_cmd_rctable[mbox_cmd->return_code].err; in cxl_mbox_cmd_rc2errno()
/linux-6.12.1/drivers/cxl/core/
Dmbox.c245 struct cxl_mbox_cmd *mbox_cmd) in cxl_internal_send_cmd() argument
250 if (mbox_cmd->size_in > cxl_mbox->payload_size || in cxl_internal_send_cmd()
251 mbox_cmd->size_out > cxl_mbox->payload_size) in cxl_internal_send_cmd()
254 out_size = mbox_cmd->size_out; in cxl_internal_send_cmd()
255 min_out = mbox_cmd->min_out; in cxl_internal_send_cmd()
256 rc = cxl_mbox->mbox_send(cxl_mbox, mbox_cmd); in cxl_internal_send_cmd()
266 if (mbox_cmd->return_code != CXL_MBOX_CMD_RC_SUCCESS && in cxl_internal_send_cmd()
267 mbox_cmd->return_code != CXL_MBOX_CMD_RC_BACKGROUND) in cxl_internal_send_cmd()
268 return cxl_mbox_cmd_rc2errno(mbox_cmd); in cxl_internal_send_cmd()
280 if (mbox_cmd->size_out < min_out) in cxl_internal_send_cmd()
[all …]
Dmemdev.c284 struct cxl_mbox_cmd mbox_cmd; in cxl_inject_poison() local
306 mbox_cmd = (struct cxl_mbox_cmd) { in cxl_inject_poison()
311 rc = cxl_internal_send_cmd(cxl_mbox, &mbox_cmd); in cxl_inject_poison()
339 struct cxl_mbox_cmd mbox_cmd; in cxl_clear_poison() local
369 mbox_cmd = (struct cxl_mbox_cmd) { in cxl_clear_poison()
375 rc = cxl_internal_send_cmd(cxl_mbox, &mbox_cmd); in cxl_clear_poison()
720 struct cxl_mbox_cmd mbox_cmd; in cxl_mem_get_fw_info() local
723 mbox_cmd = (struct cxl_mbox_cmd) { in cxl_mem_get_fw_info()
729 rc = cxl_internal_send_cmd(cxl_mbox, &mbox_cmd); in cxl_mem_get_fw_info()
755 struct cxl_mbox_cmd mbox_cmd; in cxl_mem_activate_fw() local
[all …]
/linux-6.12.1/drivers/net/ethernet/chelsio/cxgb4vf/
Dt4vf_common.h276 struct mbox_cmd { struct
294 static inline struct mbox_cmd *mbox_cmd_log_entry(struct mbox_cmd_log *log, in mbox_cmd_log_entry() argument
297 return &((struct mbox_cmd *)&(log)[1])[entry_idx]; in mbox_cmd_log_entry()
/linux-6.12.1/tools/power/x86/intel-speed-select/
Disst-core-mbox.c174 mbox_cmds.mbox_cmd[0].logical_cpu = cpu; in _send_mbox_command()
175 mbox_cmds.mbox_cmd[0].command = command; in _send_mbox_command()
176 mbox_cmds.mbox_cmd[0].sub_command = sub_command; in _send_mbox_command()
177 mbox_cmds.mbox_cmd[0].parameter = parameter; in _send_mbox_command()
178 mbox_cmds.mbox_cmd[0].req_data = req_data; in _send_mbox_command()
200 *resp = mbox_cmds.mbox_cmd[0].resp_data; in _send_mbox_command()
/linux-6.12.1/drivers/firmware/
Dturris-mox-rwtm.c52 enum mbox_cmd { enum
134 static int mox_get_status(enum mbox_cmd cmd, u32 retval) in mox_get_status()
160 static int mox_rwtm_exec(struct mox_rwtm *rwtm, enum mbox_cmd cmd, in mox_rwtm_exec()
/linux-6.12.1/include/uapi/linux/
Disst_if.h132 struct isst_if_mbox_cmd mbox_cmd[1]; member
/linux-6.12.1/drivers/net/ethernet/netronome/nfp/
Dnfp_net.h1002 int nfp_net_mbox_reconfig(struct nfp_net *nn, u32 mbox_cmd);
1003 int nfp_net_mbox_reconfig_and_unlock(struct nfp_net *nn, u32 mbox_cmd);
/linux-6.12.1/drivers/net/ethernet/mellanox/mlxsw/
Di2c.c308 struct i2c_msg mbox_cmd[] = in mlxsw_i2c_get_mbox() local
314 err = i2c_transfer(client->adapter, mbox_cmd, 2); in mlxsw_i2c_get_mbox()
/linux-6.12.1/drivers/net/ethernet/chelsio/cxgb4/
Dcudbg_entity.h19 struct mbox_cmd entry;

12