Lines Matching refs:mbxdata

5127 	uint8_t *mbxdata;  in ocs_hw_firmware_write_lancer()  local
5136 mbxdata = ocs_malloc(hw->os, SLI4_BMBX_SIZE, OCS_M_ZERO | OCS_M_NOWAIT); in ocs_hw_firmware_write_lancer()
5137 if (mbxdata == NULL) { in ocs_hw_firmware_write_lancer()
5145 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE); in ocs_hw_firmware_write_lancer()
5152 if (sli_cmd_common_write_object(&hw->sli, mbxdata, SLI4_BMBX_SIZE, noc, last, in ocs_hw_firmware_write_lancer()
5154 rc = ocs_hw_command(hw, mbxdata, OCS_CMD_NOWAIT, ocs_hw_cb_fw_write, cb_arg); in ocs_hw_firmware_write_lancer()
5159 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE); in ocs_hw_firmware_write_lancer()
5275 uint8_t *mbxdata; in ocs_hw_get_sfp() local
5278 mbxdata = ocs_malloc(hw->os, SLI4_BMBX_SIZE, OCS_M_ZERO | OCS_M_NOWAIT); in ocs_hw_get_sfp()
5279 if (mbxdata == NULL) { in ocs_hw_get_sfp()
5288 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE); in ocs_hw_get_sfp()
5300 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE); in ocs_hw_get_sfp()
5305 if (sli_cmd_common_read_transceiver_data(&hw->sli, mbxdata, SLI4_BMBX_SIZE, page, in ocs_hw_get_sfp()
5307 rc = ocs_hw_command(hw, mbxdata, OCS_CMD_NOWAIT, ocs_hw_cb_sfp, cb_arg); in ocs_hw_get_sfp()
5315 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE); in ocs_hw_get_sfp()
5335 uint8_t *mbxdata; in ocs_hw_get_temperature() local
5337 mbxdata = ocs_malloc(hw->os, SLI4_BMBX_SIZE, OCS_M_ZERO | OCS_M_NOWAIT); in ocs_hw_get_temperature()
5338 if (mbxdata == NULL) { in ocs_hw_get_temperature()
5346 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE); in ocs_hw_get_temperature()
5353 if (sli_cmd_dump_type4(&hw->sli, mbxdata, SLI4_BMBX_SIZE, in ocs_hw_get_temperature()
5355 rc = ocs_hw_command(hw, mbxdata, OCS_CMD_NOWAIT, ocs_hw_cb_temp, cb_arg); in ocs_hw_get_temperature()
5360 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE); in ocs_hw_get_temperature()
5439 uint8_t *mbxdata; in ocs_hw_get_link_stats() local
5441 mbxdata = ocs_malloc(hw->os, SLI4_BMBX_SIZE, OCS_M_ZERO | OCS_M_NOWAIT); in ocs_hw_get_link_stats()
5442 if (mbxdata == NULL) { in ocs_hw_get_link_stats()
5450 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE); in ocs_hw_get_link_stats()
5457 if (sli_cmd_read_link_stats(&hw->sli, mbxdata, SLI4_BMBX_SIZE, in ocs_hw_get_link_stats()
5461 rc = ocs_hw_command(hw, mbxdata, OCS_CMD_NOWAIT, ocs_hw_cb_link_stat, cb_arg); in ocs_hw_get_link_stats()
5466 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE); in ocs_hw_get_link_stats()
5575 uint8_t *mbxdata; in ocs_hw_get_host_stats() local
5577 mbxdata = ocs_malloc(hw->os, SLI4_BMBX_SIZE, OCS_M_ZERO); in ocs_hw_get_host_stats()
5578 if (mbxdata == NULL) { in ocs_hw_get_host_stats()
5586 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE); in ocs_hw_get_host_stats()
5594 if (sli_cmd_read_status(&hw->sli, mbxdata, SLI4_BMBX_SIZE, cc)) { in ocs_hw_get_host_stats()
5595 rc = ocs_hw_command(hw, mbxdata, OCS_CMD_NOWAIT, ocs_hw_cb_host_stat, cb_arg); in ocs_hw_get_host_stats()
5600 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE); in ocs_hw_get_host_stats()
5955 uint8_t *mbxdata; in ocs_hw_set_linkcfg_skyhawk() local
5968 mbxdata = ocs_malloc(hw->os, SLI4_BMBX_SIZE, OCS_M_ZERO | OCS_M_NOWAIT); in ocs_hw_set_linkcfg_skyhawk()
5969 if (mbxdata == NULL) { in ocs_hw_set_linkcfg_skyhawk()
5978 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE); in ocs_hw_set_linkcfg_skyhawk()
5985 if (sli_cmd_common_set_reconfig_link_id(&hw->sli, mbxdata, SLI4_BMBX_SIZE, NULL, 0, config_id)) { in ocs_hw_set_linkcfg_skyhawk()
5986 rc = ocs_hw_command(hw, mbxdata, opts, ocs_hw_set_active_link_config_cb, cb_arg); in ocs_hw_set_linkcfg_skyhawk()
5991 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE); in ocs_hw_set_linkcfg_skyhawk()
5995 ocs_hw_set_active_link_config_cb(hw, 0, mbxdata, cb_arg); in ocs_hw_set_linkcfg_skyhawk()
5996 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE); in ocs_hw_set_linkcfg_skyhawk()
6000 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE); in ocs_hw_set_linkcfg_skyhawk()
6151 uint8_t *mbxdata; in ocs_hw_get_linkcfg_skyhawk() local
6156 mbxdata = ocs_malloc(hw->os, SLI4_BMBX_SIZE, OCS_M_ZERO | OCS_M_NOWAIT); in ocs_hw_get_linkcfg_skyhawk()
6157 if (mbxdata == NULL) { in ocs_hw_get_linkcfg_skyhawk()
6166 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE); in ocs_hw_get_linkcfg_skyhawk()
6177 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE); in ocs_hw_get_linkcfg_skyhawk()
6182 if (sli_cmd_common_get_reconfig_link_info(&hw->sli, mbxdata, SLI4_BMBX_SIZE, &cb_arg->dma_cmd)) { in ocs_hw_get_linkcfg_skyhawk()
6183 rc = ocs_hw_command(hw, mbxdata, opts, ocs_hw_get_active_link_config_cb, cb_arg); in ocs_hw_get_linkcfg_skyhawk()
6188 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE); in ocs_hw_get_linkcfg_skyhawk()
6193 ocs_hw_get_active_link_config_cb(hw, 0, mbxdata, cb_arg); in ocs_hw_get_linkcfg_skyhawk()
6194 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE); in ocs_hw_get_linkcfg_skyhawk()
6199 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE); in ocs_hw_get_linkcfg_skyhawk()
6677 uint8_t *mbxdata; in ocs_hw_exec_dmtf_clp_cmd() local
6680 mbxdata = ocs_malloc(hw->os, SLI4_BMBX_SIZE, OCS_M_ZERO | OCS_M_NOWAIT); in ocs_hw_exec_dmtf_clp_cmd()
6681 if (mbxdata == NULL) { in ocs_hw_exec_dmtf_clp_cmd()
6690 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE); in ocs_hw_exec_dmtf_clp_cmd()
6700 if (sli_cmd_dmtf_exec_clp_cmd(&hw->sli, mbxdata, SLI4_BMBX_SIZE, in ocs_hw_exec_dmtf_clp_cmd()
6702 rc = ocs_hw_command(hw, mbxdata, opts, ocs_hw_dmtf_clp_cb, cb_arg); in ocs_hw_exec_dmtf_clp_cmd()
6707 ocs_memcpy(mbxdata, hw->sli.bmbx.virt, SLI4_BMBX_SIZE); in ocs_hw_exec_dmtf_clp_cmd()
6708 ocs_hw_dmtf_clp_cb(hw, 0, mbxdata, cb_arg); in ocs_hw_exec_dmtf_clp_cmd()
6719 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE); in ocs_hw_exec_dmtf_clp_cmd()
6725 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE); in ocs_hw_exec_dmtf_clp_cmd()
6974 uint8_t *mbxdata; in ocs_hw_dump_get() local
6993 mbxdata = ocs_malloc(hw->os, SLI4_BMBX_SIZE, OCS_M_ZERO | OCS_M_NOWAIT); in ocs_hw_dump_get()
6994 if (mbxdata == NULL) { in ocs_hw_dump_get()
7002 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE); in ocs_hw_dump_get()
7008 cb_arg->mbox_cmd = mbxdata; in ocs_hw_dump_get()
7010 if (sli_cmd_common_read_object(&hw->sli, mbxdata, SLI4_BMBX_SIZE, in ocs_hw_dump_get()
7012 rc = ocs_hw_command(hw, mbxdata, opts, ocs_hw_cb_dump_get, cb_arg); in ocs_hw_dump_get()
7014 ocs_memcpy(mbxdata, hw->sli.bmbx.virt, SLI4_BMBX_SIZE); in ocs_hw_dump_get()
7015 rc = ocs_hw_cb_dump_get(hw, 0, mbxdata, cb_arg); in ocs_hw_dump_get()
7021 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE); in ocs_hw_dump_get()
7085 uint8_t *mbxdata; in ocs_hw_dump_clear() local
7094 mbxdata = ocs_malloc(hw->os, SLI4_BMBX_SIZE, OCS_M_ZERO | OCS_M_NOWAIT); in ocs_hw_dump_clear()
7095 if (mbxdata == NULL) { in ocs_hw_dump_clear()
7103 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE); in ocs_hw_dump_clear()
7109 cb_arg->mbox_cmd = mbxdata; in ocs_hw_dump_clear()
7111 if (sli_cmd_common_delete_object(&hw->sli, mbxdata, SLI4_BMBX_SIZE, in ocs_hw_dump_clear()
7113 rc = ocs_hw_command(hw, mbxdata, opts, ocs_hw_cb_dump_clear, cb_arg); in ocs_hw_dump_clear()
7115 ocs_memcpy(mbxdata, hw->sli.bmbx.virt, SLI4_BMBX_SIZE); in ocs_hw_dump_clear()
7116 rc = ocs_hw_cb_dump_clear(hw, 0, mbxdata, cb_arg); in ocs_hw_dump_clear()
7122 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE); in ocs_hw_dump_clear()
7223 uint8_t *mbxdata; in ocs_hw_get_port_protocol() local
7233 mbxdata = ocs_malloc(hw->os, SLI4_BMBX_SIZE, OCS_M_ZERO | OCS_M_NOWAIT); in ocs_hw_get_port_protocol()
7234 if (mbxdata == NULL) { in ocs_hw_get_port_protocol()
7243 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE); in ocs_hw_get_port_protocol()
7254 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE); in ocs_hw_get_port_protocol()
7259 if (sli_cmd_common_get_profile_config(&hw->sli, mbxdata, SLI4_BMBX_SIZE, &cb_arg->payload)) { in ocs_hw_get_port_protocol()
7260 rc = ocs_hw_command(hw, mbxdata, OCS_CMD_NOWAIT, ocs_hw_get_port_protocol_cb, cb_arg); in ocs_hw_get_port_protocol()
7265 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE); in ocs_hw_get_port_protocol()
7352 uint8_t *mbxdata; in ocs_hw_set_port_protocol_cb1() local
7373 mbxdata = ocs_malloc(hw->os, SLI4_BMBX_SIZE, OCS_M_ZERO | OCS_M_NOWAIT); in ocs_hw_set_port_protocol_cb1()
7374 if (mbxdata == NULL) { in ocs_hw_set_port_protocol_cb1()
7383 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE); in ocs_hw_set_port_protocol_cb1()
7396 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE); in ocs_hw_set_port_protocol_cb1()
7401 sli_cmd_common_set_profile_config(&hw->sli, mbxdata, SLI4_BMBX_SIZE, in ocs_hw_set_port_protocol_cb1()
7469 rc = ocs_hw_command(hw, mbxdata, OCS_CMD_NOWAIT, ocs_hw_set_port_protocol_cb2, new_cb_arg); in ocs_hw_set_port_protocol_cb1()
7479 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE); in ocs_hw_set_port_protocol_cb1()
7516 uint8_t *mbxdata; in ocs_hw_set_port_protocol() local
7526 mbxdata = ocs_malloc(hw->os, SLI4_BMBX_SIZE, OCS_M_ZERO | OCS_M_NOWAIT); in ocs_hw_set_port_protocol()
7527 if (mbxdata == NULL) { in ocs_hw_set_port_protocol()
7536 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE); in ocs_hw_set_port_protocol()
7548 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE); in ocs_hw_set_port_protocol()
7553 if (sli_cmd_common_get_profile_config(&hw->sli, mbxdata, SLI4_BMBX_SIZE, &cb_arg->payload)) { in ocs_hw_set_port_protocol()
7554 rc = ocs_hw_command(hw, mbxdata, OCS_CMD_NOWAIT, ocs_hw_set_port_protocol_cb1, cb_arg); in ocs_hw_set_port_protocol()
7559 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE); in ocs_hw_set_port_protocol()
7656 uint8_t *mbxdata; in ocs_hw_get_profile_list() local
7666 mbxdata = ocs_malloc(hw->os, SLI4_BMBX_SIZE, OCS_M_ZERO | OCS_M_NOWAIT); in ocs_hw_get_profile_list()
7667 if (mbxdata == NULL) { in ocs_hw_get_profile_list()
7676 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE); in ocs_hw_get_profile_list()
7686 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE); in ocs_hw_get_profile_list()
7691 if (sli_cmd_common_get_profile_list(&hw->sli, mbxdata, SLI4_BMBX_SIZE, 0, &cb_arg->payload)) { in ocs_hw_get_profile_list()
7692 rc = ocs_hw_command(hw, mbxdata, OCS_CMD_NOWAIT, ocs_hw_get_profile_list_cb, cb_arg); in ocs_hw_get_profile_list()
7697 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE); in ocs_hw_get_profile_list()
7765 uint8_t *mbxdata; in ocs_hw_get_active_profile() local
7775 mbxdata = ocs_malloc(hw->os, SLI4_BMBX_SIZE, OCS_M_ZERO | OCS_M_NOWAIT); in ocs_hw_get_active_profile()
7776 if (mbxdata == NULL) { in ocs_hw_get_active_profile()
7785 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE); in ocs_hw_get_active_profile()
7792 if (sli_cmd_common_get_active_profile(&hw->sli, mbxdata, SLI4_BMBX_SIZE)) { in ocs_hw_get_active_profile()
7793 rc = ocs_hw_command(hw, mbxdata, OCS_CMD_NOWAIT, ocs_hw_get_active_profile_cb, cb_arg); in ocs_hw_get_active_profile()
7798 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE); in ocs_hw_get_active_profile()
7862 uint8_t *mbxdata; in ocs_hw_get_nvparms() local
7867 mbxdata = ocs_malloc(hw->os, SLI4_BMBX_SIZE, OCS_M_ZERO | OCS_M_NOWAIT); in ocs_hw_get_nvparms()
7868 if (mbxdata == NULL) { in ocs_hw_get_nvparms()
7877 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE); in ocs_hw_get_nvparms()
7884 if (sli_cmd_read_nvparms(&hw->sli, mbxdata, SLI4_BMBX_SIZE)) { in ocs_hw_get_nvparms()
7885 rc = ocs_hw_command(hw, mbxdata, OCS_CMD_NOWAIT, ocs_hw_get_nvparms_cb, cb_arg); in ocs_hw_get_nvparms()
7890 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE); in ocs_hw_get_nvparms()
7960 uint8_t *mbxdata; in ocs_hw_set_nvparms() local
7965 mbxdata = ocs_malloc(hw->os, SLI4_BMBX_SIZE, OCS_M_ZERO | OCS_M_NOWAIT); in ocs_hw_set_nvparms()
7966 if (mbxdata == NULL) { in ocs_hw_set_nvparms()
7975 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE); in ocs_hw_set_nvparms()
7982 …if (sli_cmd_write_nvparms(&hw->sli, mbxdata, SLI4_BMBX_SIZE, wwpn, wwnn, hard_alpa, preferred_d_id… in ocs_hw_set_nvparms()
7983 rc = ocs_hw_command(hw, mbxdata, OCS_CMD_NOWAIT, ocs_hw_set_nvparms_cb, cb_arg); in ocs_hw_set_nvparms()
7988 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE); in ocs_hw_set_nvparms()
8124 uint8_t *mbxdata; in ocs_hw_set_active_profile() local
8134 mbxdata = ocs_malloc(hw->os, SLI4_BMBX_SIZE, OCS_M_ZERO | OCS_M_NOWAIT); in ocs_hw_set_active_profile()
8135 if (mbxdata == NULL) { in ocs_hw_set_active_profile()
8144 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE); in ocs_hw_set_active_profile()
8151 if (sli_cmd_common_set_active_profile(&hw->sli, mbxdata, SLI4_BMBX_SIZE, 0, profile_id)) { in ocs_hw_set_active_profile()
8152 rc = ocs_hw_command(hw, mbxdata, OCS_CMD_NOWAIT, ocs_hw_set_active_profile_cb, cb_arg); in ocs_hw_set_active_profile()
8157 ocs_free(hw->os, mbxdata, SLI4_BMBX_SIZE); in ocs_hw_set_active_profile()