/drivers/net/ethernet/mellanox/mlxsw/ |
D | cmd.h | 30 char *in_mbox, size_t in_mbox_size, 34 u8 opcode_mod, u32 in_mod, char *in_mbox, in mlxsw_cmd_exec_in() argument 38 false, in_mbox, in_mbox_size, NULL, 0); in mlxsw_cmd_exec_in() 479 char *in_mbox, u32 vpm_entries_count) in mlxsw_cmd_map_fa() argument 483 in_mbox, MLXSW_CMD_MBOX_SIZE); in mlxsw_cmd_map_fa() 562 char *in_mbox) in mlxsw_cmd_config_profile_set() argument 565 1, 0, in_mbox, MLXSW_CMD_MBOX_SIZE); in mlxsw_cmd_config_profile_set() 887 char *in_mbox, char *out_mbox) in mlxsw_cmd_access_reg() argument 891 in_mbox, MLXSW_CMD_MBOX_SIZE, in mlxsw_cmd_access_reg() 906 char *in_mbox, u32 dq_number, in __mlxsw_cmd_sw2hw_dq() argument [all …]
|
D | i2c.c | 121 static inline int mlxsw_i2c_get_reg_size(u8 *in_mbox) in mlxsw_i2c_get_reg_size() argument 123 u16 tmp = be16_to_cpup((__be16 *) (in_mbox + MLXSW_I2C_TLV_HDR_SIZE)); in mlxsw_i2c_get_reg_size() 315 mlxsw_i2c_write(struct device *dev, size_t in_mbox_size, u8 *in_mbox, int num, in mlxsw_i2c_write() argument 339 memcpy(&tran_buf[MLXSW_I2C_ADDR_BUF_SIZE], in_mbox + in mlxsw_i2c_write() 394 u8 *in_mbox, size_t out_mbox_size, u8 *out_mbox, u8 *status) in mlxsw_i2c_cmd() argument 409 if (in_mbox) { in mlxsw_i2c_cmd() 410 reg_size = mlxsw_i2c_get_reg_size(in_mbox); in mlxsw_i2c_cmd() 420 err = mlxsw_i2c_write(dev, reg_size, in_mbox, num, status); in mlxsw_i2c_cmd() 488 char *in_mbox, size_t in_mbox_size, in mlxsw_i2c_cmd_exec() argument 495 in_mbox, out_mbox_size, out_mbox, status); in mlxsw_i2c_cmd_exec()
|
D | pci.c | 115 struct mlxsw_pci_mem_item in_mbox; member 1727 char *in_mbox, size_t in_mbox_size, in mlxsw_pci_cmd_exec() argument 1744 if (in_mbox) { in mlxsw_pci_cmd_exec() 1745 memcpy(mlxsw_pci->cmd.in_mbox.buf, in_mbox, in_mbox_size); in mlxsw_pci_cmd_exec() 1746 in_mapaddr = mlxsw_pci->cmd.in_mbox.mapaddr; in mlxsw_pci_cmd_exec() 1856 err = mlxsw_pci_mbox_alloc(mlxsw_pci, &mlxsw_pci->cmd.in_mbox); in mlxsw_pci_cmd_init() 1867 mlxsw_pci_mbox_free(mlxsw_pci, &mlxsw_pci->cmd.in_mbox); in mlxsw_pci_cmd_init() 1876 mlxsw_pci_mbox_free(mlxsw_pci, &mlxsw_pci->cmd.in_mbox); in mlxsw_pci_cmd_fini()
|
D | core.c | 2551 char *in_mbox, *out_mbox, *tmp; in mlxsw_core_reg_access_cmd() local 2557 in_mbox = mlxsw_cmd_mbox_alloc(); in mlxsw_core_reg_access_cmd() 2558 if (!in_mbox) in mlxsw_core_reg_access_cmd() 2567 mlxsw_emad_pack_op_tlv(in_mbox, reg, type, in mlxsw_core_reg_access_cmd() 2569 tmp = in_mbox + MLXSW_EMAD_OP_TLV_LEN * sizeof(u32); in mlxsw_core_reg_access_cmd() 2581 err = mlxsw_cmd_access_reg(mlxsw_core, reset_ok, in_mbox, out_mbox); in mlxsw_core_reg_access_cmd() 2598 mlxsw_cmd_mbox_free(in_mbox); in mlxsw_core_reg_access_cmd() 3005 char *in_mbox, size_t in_mbox_size, in mlxsw_cmd_exec() argument 3017 if (in_mbox) { in mlxsw_cmd_exec() 3019 mlxsw_core_buf_dump_dbg(mlxsw_core, in_mbox, in_mbox_size); in mlxsw_cmd_exec() [all …]
|
D | core.h | 450 char *in_mbox, size_t in_mbox_size,
|
/drivers/scsi/qla4xxx/ |
D | ql4_iocb.c | 463 uint32_t *in_mbox) in qla4xxx_send_mbox_iocb() argument 495 memcpy(mrb->mbox->in_mbox, in_mbox, 32); in qla4xxx_send_mbox_iocb() 496 mrb->mbox_cmd = in_mbox[0]; in qla4xxx_send_mbox_iocb() 509 uint32_t in_mbox[8]; in qla4xxx_ping_iocb() local 513 memset(in_mbox, 0, sizeof(in_mbox)); in qla4xxx_ping_iocb() 523 in_mbox[0] = MBOX_CMD_PING; in qla4xxx_ping_iocb() 524 in_mbox[1] = options; in qla4xxx_ping_iocb() 525 memcpy(&in_mbox[2], &ipaddr[0], 4); in qla4xxx_ping_iocb() 526 memcpy(&in_mbox[3], &ipaddr[4], 4); in qla4xxx_ping_iocb() 527 memcpy(&in_mbox[4], &ipaddr[8], 4); in qla4xxx_ping_iocb() [all …]
|
D | ql4_fw.h | 1270 uint32_t in_mbox[8]; /* 08-25 */ member
|