Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/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.c3987 uint32_t mbox_cmd[MBOX_REG_COUNT]; in qla4_8xxx_stop_firmware() local
3990 memset(&mbox_cmd, 0, sizeof(mbox_cmd)); in qla4_8xxx_stop_firmware()
3993 mbox_cmd[0] = MBOX_CMD_STOP_FW; in qla4_8xxx_stop_firmware()
3995 &mbox_cmd[0], &mbox_sts[0]); in qla4_8xxx_stop_firmware()
4046 uint32_t mbox_cmd[MBOX_REG_COUNT]; in qla4_8xxx_get_sys_info() local
4060 memset(&mbox_cmd, 0, sizeof(mbox_cmd)); in qla4_8xxx_get_sys_info()
4063 mbox_cmd[0] = MBOX_CMD_GET_SYS_INFO; in qla4_8xxx_get_sys_info()
4064 mbox_cmd[1] = LSDW(sys_info_dma); in qla4_8xxx_get_sys_info()
4065 mbox_cmd[2] = MSDW(sys_info_dma); in qla4_8xxx_get_sys_info()
4066 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,
270 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()
Dql4_iocb.c496 mrb->mbox_cmd = in_mbox[0]; in qla4xxx_send_mbox_iocb()
/kernel/linux/linux-5.10/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);
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Disst_if.h58 struct isst_if_mbox_cmd mbox_cmd[1]; member
/kernel/linux/linux-5.10/include/uapi/linux/
Disst_if.h132 struct isst_if_mbox_cmd mbox_cmd[1]; member
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/tools/power/x86/intel-speed-select/
Disst-config.c791 mbox_cmds.mbox_cmd[0].logical_cpu = cpu; in isst_send_mbox_command()
792 mbox_cmds.mbox_cmd[0].command = command; in isst_send_mbox_command()
793 mbox_cmds.mbox_cmd[0].sub_command = sub_command; in isst_send_mbox_command()
794 mbox_cmds.mbox_cmd[0].parameter = parameter; in isst_send_mbox_command()
795 mbox_cmds.mbox_cmd[0].req_data = req_data; in isst_send_mbox_command()
818 *resp = mbox_cmds.mbox_cmd[0].resp_data; in isst_send_mbox_command()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Di2c.c291 struct i2c_msg mbox_cmd[] = in mlxsw_i2c_get_mbox() local
297 err = i2c_transfer(client->adapter, mbox_cmd, 2); in mlxsw_i2c_get_mbox()
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/
Dnfp_net.h943 int nfp_net_mbox_reconfig(struct nfp_net *nn, u32 mbox_cmd);
944 int nfp_net_mbox_reconfig_and_unlock(struct nfp_net *nn, u32 mbox_cmd);
Dnfp_net_common.c331 int nfp_net_mbox_reconfig(struct nfp_net *nn, u32 mbox_cmd) in nfp_net_mbox_reconfig() argument
336 nn_writeq(nn, mbox + NFP_NET_CFG_MBOX_SIMPLE_CMD, mbox_cmd); in nfp_net_mbox_reconfig()
347 void nfp_net_mbox_reconfig_post(struct nfp_net *nn, u32 mbox_cmd) in nfp_net_mbox_reconfig_post() argument
351 nn_writeq(nn, mbox + NFP_NET_CFG_MBOX_SIMPLE_CMD, mbox_cmd); in nfp_net_mbox_reconfig_post()
365 int nfp_net_mbox_reconfig_and_unlock(struct nfp_net *nn, u32 mbox_cmd) in nfp_net_mbox_reconfig_and_unlock() argument
369 ret = nfp_net_mbox_reconfig(nn, mbox_cmd); in nfp_net_mbox_reconfig_and_unlock()
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4/
Dcudbg_entity.h19 struct mbox_cmd entry;
Dcxgb4.h509 struct mbox_cmd { struct
527 static inline struct mbox_cmd *mbox_cmd_log_entry(struct mbox_cmd_log *log, in mbox_cmd_log_entry() argument
530 return &((struct mbox_cmd *)&(log)[1])[entry_idx]; in mbox_cmd_log_entry()
/kernel/linux/linux-5.10/drivers/scsi/lpfc/
Dlpfc_sli.h294 uint64_t mbox_cmd; /* Mailbox commands issued */ member

12