Home
last modified time | relevance | path

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

12

/linux-6.1.9/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,
Dql4_isr.c438 switch (mrb->mbox_cmd) { in qla4xxx_mbox_status_entry()
442 __func__, mrb->mbox_cmd, in qla4xxx_mbox_status_entry()
459 "0x%x\n", __func__, mrb->mbox_cmd)); in qla4xxx_mbox_status_entry()
/linux-6.1.9/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.c374 struct octeon_mbox_cmd mbox_cmd; in cn23xx_vf_ask_pf_to_do_flr() local
376 mbox_cmd.msg.u64 = 0; in cn23xx_vf_ask_pf_to_do_flr()
377 mbox_cmd.msg.s.type = OCTEON_MBOX_REQUEST; in cn23xx_vf_ask_pf_to_do_flr()
378 mbox_cmd.msg.s.resp_needed = 0; in cn23xx_vf_ask_pf_to_do_flr()
379 mbox_cmd.msg.s.cmd = OCTEON_VF_FLR_REQUEST; in cn23xx_vf_ask_pf_to_do_flr()
380 mbox_cmd.msg.s.len = 1; in cn23xx_vf_ask_pf_to_do_flr()
381 mbox_cmd.q_no = 0; in cn23xx_vf_ask_pf_to_do_flr()
382 mbox_cmd.recv_len = 0; in cn23xx_vf_ask_pf_to_do_flr()
383 mbox_cmd.recv_status = 0; in cn23xx_vf_ask_pf_to_do_flr()
384 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.h118 struct octeon_mbox_cmd *mbox_cmd);
/linux-6.1.9/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.c91 struct isst_if_mbox_cmd *mbox_cmd; member
99 act->err = isst_if_send_mbox_cmd(act->mbox_cmd->command, in msrl_update_func()
100 act->mbox_cmd->sub_command, in msrl_update_func()
101 act->mbox_cmd->parameter, in msrl_update_func()
102 act->mbox_cmd->req_data, in msrl_update_func()
103 &act->mbox_cmd->resp_data); in msrl_update_func()
111 action.mbox_cmd = (struct isst_if_mbox_cmd *)cmd_ptr; in isst_if_mbox_proc_cmd()
113 if (isst_if_mbox_cmd_invalid(action.mbox_cmd)) in isst_if_mbox_proc_cmd()
116 if (isst_if_mbox_cmd_set_req(action.mbox_cmd) && in isst_if_mbox_proc_cmd()
127 ret = smp_call_function_single(action.mbox_cmd->logical_cpu, in isst_if_mbox_proc_cmd()
[all …]
Disst_if_common.h67 bool isst_if_mbox_cmd_set_req(struct isst_if_mbox_cmd *mbox_cmd);
69 int isst_store_cmd(int cmd, int sub_command, u32 cpu, int mbox_cmd,
Disst_if_common.c155 struct isst_if_mbox_cmd mbox_cmd; in isst_mbox_resume_command() local
158 mbox_cmd.command = (sst_cmd->cmd & GENMASK_ULL(31, 16)) >> 16; in isst_mbox_resume_command()
159 mbox_cmd.sub_command = sst_cmd->cmd & GENMASK_ULL(15, 0); in isst_mbox_resume_command()
160 mbox_cmd.parameter = sst_cmd->param; in isst_mbox_resume_command()
161 mbox_cmd.req_data = sst_cmd->data; in isst_mbox_resume_command()
162 mbox_cmd.logical_cpu = sst_cmd->cpu; in isst_mbox_resume_command()
163 (cb->cmd_callback)((u8 *)&mbox_cmd, &wr_only, 1); in isst_mbox_resume_command()
/linux-6.1.9/drivers/cxl/
Dpci.c110 struct cxl_mbox_cmd *mbox_cmd) in __cxl_pci_mbox_send_cmd() argument
142 cxl_cmd_err(cxlds->dev, mbox_cmd, md_status, in __cxl_pci_mbox_send_cmd()
148 mbox_cmd->opcode); in __cxl_pci_mbox_send_cmd()
149 if (mbox_cmd->size_in) { in __cxl_pci_mbox_send_cmd()
150 if (WARN_ON(!mbox_cmd->payload_in)) in __cxl_pci_mbox_send_cmd()
154 mbox_cmd->size_in); in __cxl_pci_mbox_send_cmd()
155 memcpy_toio(payload, mbox_cmd->payload_in, mbox_cmd->size_in); in __cxl_pci_mbox_send_cmd()
171 cxl_cmd_err(cxlds->dev, mbox_cmd, md_status, "mailbox timeout"); in __cxl_pci_mbox_send_cmd()
177 mbox_cmd->return_code = in __cxl_pci_mbox_send_cmd()
180 if (mbox_cmd->return_code != CXL_MBOX_CMD_RC_SUCCESS) { in __cxl_pci_mbox_send_cmd()
[all …]
Dcxlmem.h150 static inline const char *cxl_mbox_cmd_rc2str(struct cxl_mbox_cmd *mbox_cmd) in cxl_mbox_cmd_rc2str() argument
152 return cxl_mbox_cmd_rctable[mbox_cmd->return_code].desc; in cxl_mbox_cmd_rc2str()
155 static inline int cxl_mbox_cmd_rc2errno(struct cxl_mbox_cmd *mbox_cmd) in cxl_mbox_cmd_rc2errno() argument
157 return cxl_mbox_cmd_rctable[mbox_cmd->return_code].err; in cxl_mbox_cmd_rc2errno()
/linux-6.1.9/drivers/cxl/core/
Dmbox.c168 struct cxl_mbox_cmd mbox_cmd = { in cxl_mbox_send_cmd() local
180 rc = cxlds->mbox_send(cxlds, &mbox_cmd); in cxl_mbox_send_cmd()
184 if (mbox_cmd.return_code != CXL_MBOX_CMD_RC_SUCCESS) in cxl_mbox_send_cmd()
185 return cxl_mbox_cmd_rc2errno(&mbox_cmd); in cxl_mbox_send_cmd()
192 if (mbox_cmd.size_out != out_size) in cxl_mbox_send_cmd()
397 static int cxl_validate_cmd_from_user(struct cxl_mbox_cmd *mbox_cmd, in cxl_validate_cmd_from_user() argument
425 return cxl_mbox_cmd_ctor(mbox_cmd, cxlds, mem_cmd.opcode, in cxl_validate_cmd_from_user()
488 struct cxl_mbox_cmd *mbox_cmd, in handle_mailbox_cmd_from_user() argument
499 cxl_mem_opcode_to_name(mbox_cmd->opcode), in handle_mailbox_cmd_from_user()
500 mbox_cmd->opcode, mbox_cmd->size_in); in handle_mailbox_cmd_from_user()
[all …]
/linux-6.1.9/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.1.9/include/uapi/linux/
Disst_if.h132 struct isst_if_mbox_cmd mbox_cmd[1]; member
/linux-6.1.9/drivers/firmware/
Dturris-mox-rwtm.c35 enum mbox_cmd { enum
148 static int mox_get_status(enum mbox_cmd cmd, u32 retval) in mox_get_status()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/
Di2c.c307 struct i2c_msg mbox_cmd[] = in mlxsw_i2c_get_mbox() local
313 err = i2c_transfer(client->adapter, mbox_cmd, 2); in mlxsw_i2c_get_mbox()
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/
Dnfp_net.h933 int nfp_net_mbox_reconfig(struct nfp_net *nn, u32 mbox_cmd);
934 int nfp_net_mbox_reconfig_and_unlock(struct nfp_net *nn, u32 mbox_cmd);
Dnfp_net_common.c312 int nfp_net_mbox_reconfig(struct nfp_net *nn, u32 mbox_cmd) in nfp_net_mbox_reconfig() argument
317 nn_writeq(nn, mbox + NFP_NET_CFG_MBOX_SIMPLE_CMD, mbox_cmd); in nfp_net_mbox_reconfig()
328 void nfp_net_mbox_reconfig_post(struct nfp_net *nn, u32 mbox_cmd) in nfp_net_mbox_reconfig_post() argument
332 nn_writeq(nn, mbox + NFP_NET_CFG_MBOX_SIMPLE_CMD, mbox_cmd); in nfp_net_mbox_reconfig_post()
346 int nfp_net_mbox_reconfig_and_unlock(struct nfp_net *nn, u32 mbox_cmd) in nfp_net_mbox_reconfig_and_unlock() argument
350 ret = nfp_net_mbox_reconfig(nn, mbox_cmd); in nfp_net_mbox_reconfig_and_unlock()
/linux-6.1.9/tools/power/x86/intel-speed-select/
Disst-config.c833 mbox_cmds.mbox_cmd[0].logical_cpu = cpu; in isst_send_mbox_command()
834 mbox_cmds.mbox_cmd[0].command = command; in isst_send_mbox_command()
835 mbox_cmds.mbox_cmd[0].sub_command = sub_command; in isst_send_mbox_command()
836 mbox_cmds.mbox_cmd[0].parameter = parameter; in isst_send_mbox_command()
837 mbox_cmds.mbox_cmd[0].req_data = req_data; in isst_send_mbox_command()
860 *resp = mbox_cmds.mbox_cmd[0].resp_data; in isst_send_mbox_command()
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb4/
Dcudbg_entity.h19 struct mbox_cmd entry;
/linux-6.1.9/drivers/scsi/lpfc/
Dlpfc_sli.h326 uint64_t mbox_cmd; /* Mailbox commands issued */ member

12