/drivers/scsi/qla4xxx/ |
D | ql4_mbx.c | 286 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 …]
|
D | ql4_bsg.c | 455 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 …]
|
D | ql4_nx.c | 3987 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 …]
|
D | ql4_glbl.h | 49 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,
|
D | ql4_isr.c | 438 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()
|
D | ql4_iocb.c | 496 mrb->mbox_cmd = in_mbox[0]; in qla4xxx_send_mbox_iocb()
|
D | ql4_def.h | 265 uint32_t mbox_cmd; member
|
D | ql4_os.c | 2739 uint32_t mbox_cmd[MBOX_REG_COUNT]; in qla4xxx_iface_set_param() local 2753 memset(&mbox_cmd, 0, sizeof(mbox_cmd)); in qla4xxx_iface_set_param() 2756 if (qla4xxx_get_ifcb(ha, &mbox_cmd[0], &mbox_sts[0], init_fw_cb_dma)) { in qla4xxx_iface_set_param() 2839 rval = qla4xxx_set_acb(ha, &mbox_cmd[0], &mbox_sts[0], init_fw_cb_dma); in qla4xxx_iface_set_param() 2848 qla4xxx_update_local_ifcb(ha, &mbox_cmd[0], &mbox_sts[0], init_fw_cb, in qla4xxx_iface_set_param() 9504 uint32_t mbox_cmd[MBOX_REG_COUNT]; in qla4xxx_context_reset() local 9538 rval = qla4xxx_set_acb(ha, &mbox_cmd[0], &mbox_sts[0], acb_dma); in qla4xxx_context_reset()
|
/drivers/net/ethernet/cavium/liquidio/ |
D | octeon_mailbox.c | 132 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 …]
|
D | cn23xx_vf_device.c | 374 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 …]
|
D | cn23xx_pf_device.c | 1443 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 …]
|
D | octeon_mailbox.h | 118 struct octeon_mbox_cmd *mbox_cmd);
|
/drivers/platform/x86/intel_speed_select_if/ |
D | isst_if_mbox_pci.c | 40 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 …]
|
D | isst_if_mbox_msr.c | 91 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 …]
|
D | isst_if_common.c | 155 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()
|
D | isst_if_common.h | 67 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,
|
/drivers/net/ethernet/chelsio/cxgb4vf/ |
D | t4vf_common.h | 276 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()
|
D | cxgb4vf_main.c | 1963 struct mbox_cmd *entry; in mboxlog_show() 2956 (sizeof(struct mbox_cmd) * in cxgb4vf_pci_probe()
|
/drivers/firmware/ |
D | turris-mox-rwtm.c | 35 enum mbox_cmd { enum 148 static int mox_get_status(enum mbox_cmd cmd, u32 retval) in mox_get_status()
|
/drivers/net/ethernet/netronome/nfp/ |
D | nfp_net.h | 943 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);
|
D | nfp_net_common.c | 331 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()
|
/drivers/net/ethernet/mellanox/mlxsw/ |
D | i2c.c | 292 struct i2c_msg mbox_cmd[] = in mlxsw_i2c_get_mbox() local 298 err = i2c_transfer(client->adapter, mbox_cmd, 2); in mlxsw_i2c_get_mbox()
|
/drivers/net/ethernet/chelsio/cxgb4/ |
D | cudbg_entity.h | 19 struct mbox_cmd entry;
|
D | cxgb4.h | 509 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()
|
/drivers/scsi/lpfc/ |
D | lpfc_sli.h | 294 uint64_t mbox_cmd; /* Mailbox commands issued */ member
|