Lines Matching refs:mbox_sts
287 uint32_t mbox_sts[MBOX_REG_COUNT]; in qla4xxx_get_minidump_template() local
291 memset(&mbox_sts, 0, sizeof(mbox_sts)); in qla4xxx_get_minidump_template()
301 &mbox_sts[0]); in qla4xxx_get_minidump_template()
306 mbox_sts[0], mbox_sts[1])); in qla4xxx_get_minidump_template()
318 uint32_t mbox_sts[MBOX_REG_COUNT]; in qla4xxx_req_template_size() local
322 memset(&mbox_sts, 0, sizeof(mbox_sts)); in qla4xxx_req_template_size()
328 &mbox_sts[0]); in qla4xxx_req_template_size()
330 ha->fw_dump_tmplt_size = mbox_sts[1]; in qla4xxx_req_template_size()
333 __func__, mbox_sts[0], mbox_sts[1], in qla4xxx_req_template_size()
334 mbox_sts[2], mbox_sts[3], mbox_sts[4], in qla4xxx_req_template_size()
335 mbox_sts[5], mbox_sts[6], mbox_sts[7])); in qla4xxx_req_template_size()
341 __func__, mbox_sts[0], mbox_sts[1]); in qla4xxx_req_template_size()
372 uint32_t *mbox_sts, dma_addr_t init_fw_cb_dma) in qla4xxx_set_ifcb() argument
375 memset(mbox_sts, 0, sizeof(mbox_sts[0]) * MBOX_REG_COUNT); in qla4xxx_set_ifcb()
386 if (qla4xxx_mailbox_command(ha, 6, 6, mbox_cmd, mbox_sts) != in qla4xxx_set_ifcb()
391 ha->host_no, __func__, mbox_sts[0])); in qla4xxx_set_ifcb()
399 uint32_t *mbox_sts, dma_addr_t init_fw_cb_dma) in qla4xxx_get_ifcb() argument
402 memset(mbox_sts, 0, sizeof(mbox_sts[0]) * MBOX_REG_COUNT); in qla4xxx_get_ifcb()
408 if (qla4xxx_mailbox_command(ha, 5, 5, mbox_cmd, mbox_sts) != in qla4xxx_get_ifcb()
413 ha->host_no, __func__, mbox_sts[0])); in qla4xxx_get_ifcb()
585 uint32_t *mbox_sts, in qla4xxx_update_local_ifcb() argument
589 if (qla4xxx_get_ifcb(ha, mbox_cmd, mbox_sts, init_fw_cb_dma) in qla4xxx_update_local_ifcb()
624 uint32_t mbox_sts[MBOX_REG_COUNT]; in qla4xxx_initialize_fw_cb() local
638 memset(&mbox_sts, 0, sizeof(mbox_sts)); in qla4xxx_initialize_fw_cb()
640 if (qla4xxx_get_ifcb(ha, &mbox_cmd[0], &mbox_sts[0], init_fw_cb_dma) != in qla4xxx_initialize_fw_cb()
674 if (qla4xxx_set_ifcb(ha, &mbox_cmd[0], &mbox_sts[0], init_fw_cb_dma) in qla4xxx_initialize_fw_cb()
682 if (qla4xxx_update_local_ifcb(ha, &mbox_cmd[0], &mbox_sts[0], in qla4xxx_initialize_fw_cb()
706 uint32_t mbox_sts[MBOX_REG_COUNT]; in qla4xxx_get_dhcp_ip_address() local
718 if (qla4xxx_get_ifcb(ha, &mbox_cmd[0], &mbox_sts[0], init_fw_cb_dma) != in qla4xxx_get_dhcp_ip_address()
743 uint32_t mbox_sts[MBOX_REG_COUNT]; in qla4xxx_get_firmware_state() local
747 memset(&mbox_sts, 0, sizeof(mbox_sts)); in qla4xxx_get_firmware_state()
751 if (qla4xxx_mailbox_command(ha, MBOX_REG_COUNT, 4, &mbox_cmd[0], &mbox_sts[0]) != in qla4xxx_get_firmware_state()
755 mbox_sts[0])); in qla4xxx_get_firmware_state()
758 ha->firmware_state = mbox_sts[1]; in qla4xxx_get_firmware_state()
759 ha->board_id = mbox_sts[2]; in qla4xxx_get_firmware_state()
760 ha->addl_fw_state = mbox_sts[3]; in qla4xxx_get_firmware_state()
774 uint32_t mbox_sts[MBOX_REG_COUNT]; in qla4xxx_get_firmware_status() local
778 memset(&mbox_sts, 0, sizeof(mbox_sts)); in qla4xxx_get_firmware_status()
782 if (qla4xxx_mailbox_command(ha, MBOX_REG_COUNT, 3, &mbox_cmd[0], &mbox_sts[0]) != in qla4xxx_get_firmware_status()
786 mbox_sts[0])); in qla4xxx_get_firmware_status()
791 ha->iocb_hiwat = mbox_sts[2]; in qla4xxx_get_firmware_status()
835 uint32_t mbox_sts[MBOX_REG_COUNT]; in qla4xxx_get_fwddb_entry() local
844 memset(&mbox_sts, 0, sizeof(mbox_sts)); in qla4xxx_get_fwddb_entry()
854 if (qla4xxx_mailbox_command(ha, MBOX_REG_COUNT, 7, &mbox_cmd[0], &mbox_sts[0]) == in qla4xxx_get_fwddb_entry()
858 mbox_sts[0])); in qla4xxx_get_fwddb_entry()
861 if (fw_ddb_index != mbox_sts[1]) { in qla4xxx_get_fwddb_entry()
864 mbox_sts[1])); in qla4xxx_get_fwddb_entry()
873 mbox_sts[0], mbox_sts[2], mbox_sts[3], in qla4xxx_get_fwddb_entry()
874 mbox_sts[4], mbox_sts[5], in qla4xxx_get_fwddb_entry()
882 mbox_sts[0], mbox_sts[2], mbox_sts[3], in qla4xxx_get_fwddb_entry()
883 mbox_sts[4], mbox_sts[5], in qla4xxx_get_fwddb_entry()
890 *num_valid_ddb_entries = mbox_sts[2]; in qla4xxx_get_fwddb_entry()
892 *next_ddb_index = mbox_sts[3]; in qla4xxx_get_fwddb_entry()
894 *fw_ddb_device_state = mbox_sts[4]; in qla4xxx_get_fwddb_entry()
904 *conn_err_detail = mbox_sts[5]; in qla4xxx_get_fwddb_entry()
906 *tcp_source_port_num = (uint16_t) (mbox_sts[6] >> 16); in qla4xxx_get_fwddb_entry()
908 *connection_id = (uint16_t) mbox_sts[6] & 0x00FF; in qla4xxx_get_fwddb_entry()
918 uint32_t mbox_sts[MBOX_REG_COUNT]; in qla4xxx_conn_open() local
922 memset(&mbox_sts, 0, sizeof(mbox_sts)); in qla4xxx_conn_open()
928 &mbox_sts[0]); in qla4xxx_conn_open()
931 __func__, status, mbox_sts[0], mbox_sts[1])); in qla4xxx_conn_open()
949 uint32_t mbox_sts[MBOX_REG_COUNT]; in qla4xxx_set_ddb_entry() local
956 memset(&mbox_sts, 0, sizeof(mbox_sts)); in qla4xxx_set_ddb_entry()
965 &mbox_sts[0]); in qla4xxx_set_ddb_entry()
967 *mbx_sts = mbox_sts[0]; in qla4xxx_set_ddb_entry()
969 ha->host_no, __func__, status, mbox_sts[0], mbox_sts[4]);) in qla4xxx_set_ddb_entry()
979 uint32_t mbox_sts[MBOX_REG_COUNT]; in qla4xxx_session_logout_ddb() local
982 memset(&mbox_sts, 0, sizeof(mbox_sts)); in qla4xxx_session_logout_ddb()
989 &mbox_sts[0]); in qla4xxx_session_logout_ddb()
994 mbox_sts[0], mbox_sts[1])); in qla4xxx_session_logout_ddb()
995 if ((mbox_sts[0] == MBOX_STS_COMMAND_ERROR) && in qla4xxx_session_logout_ddb()
996 (mbox_sts[1] == DDB_NOT_LOGGED_IN)) { in qla4xxx_session_logout_ddb()
1013 uint32_t mbox_sts[MBOX_REG_COUNT]; in qla4xxx_get_crash_record() local
1019 memset(&mbox_sts, 0, sizeof(mbox_cmd)); in qla4xxx_get_crash_record()
1024 if (qla4xxx_mailbox_command(ha, MBOX_REG_COUNT, 5, &mbox_cmd[0], &mbox_sts[0]) != in qla4xxx_get_crash_record()
1030 crash_record_size = mbox_sts[4]; in qla4xxx_get_crash_record()
1045 memset(&mbox_sts, 0, sizeof(mbox_cmd)); in qla4xxx_get_crash_record()
1052 if (qla4xxx_mailbox_command(ha, MBOX_REG_COUNT, 5, &mbox_cmd[0], &mbox_sts[0]) != in qla4xxx_get_crash_record()
1071 uint32_t mbox_sts[MBOX_REG_COUNT]; in qla4xxx_get_conn_event_log() local
1081 memset(&mbox_sts, 0, sizeof(mbox_cmd)); in qla4xxx_get_conn_event_log()
1086 if (qla4xxx_mailbox_command(ha, MBOX_REG_COUNT, 5, &mbox_cmd[0], &mbox_sts[0]) != in qla4xxx_get_conn_event_log()
1090 event_log_size = mbox_sts[4]; in qla4xxx_get_conn_event_log()
1102 memset(&mbox_sts, 0, sizeof(mbox_cmd)); in qla4xxx_get_conn_event_log()
1108 if (qla4xxx_mailbox_command(ha, MBOX_REG_COUNT, 5, &mbox_cmd[0], &mbox_sts[0]) != in qla4xxx_get_conn_event_log()
1116 num_valid_entries = mbox_sts[1]; in qla4xxx_get_conn_event_log()
1170 uint32_t mbox_sts[MBOX_REG_COUNT]; in qla4xxx_abort_task() local
1181 memset(&mbox_sts, 0, sizeof(mbox_sts)); in qla4xxx_abort_task()
1198 &mbox_sts[0]); in qla4xxx_abort_task()
1199 if (mbox_sts[0] != MBOX_STS_COMMAND_COMPLETE) { in qla4xxx_abort_task()
1204 ha->host_no, cmd->device->id, cmd->device->lun, mbox_sts[0], in qla4xxx_abort_task()
1205 mbox_sts[1], mbox_sts[2], mbox_sts[3], mbox_sts[4])); in qla4xxx_abort_task()
1225 uint32_t mbox_sts[MBOX_REG_COUNT]; in qla4xxx_reset_lun() local
1237 memset(&mbox_sts, 0, sizeof(mbox_sts)); in qla4xxx_reset_lun()
1250 qla4xxx_mailbox_command(ha, MBOX_REG_COUNT, 1, &mbox_cmd[0], &mbox_sts[0]); in qla4xxx_reset_lun()
1251 if (mbox_sts[0] != MBOX_STS_COMMAND_COMPLETE && in qla4xxx_reset_lun()
1252 mbox_sts[0] != MBOX_STS_COMMAND_ERROR) in qla4xxx_reset_lun()
1271 uint32_t mbox_sts[MBOX_REG_COUNT]; in qla4xxx_reset_target() local
1282 memset(&mbox_sts, 0, sizeof(mbox_sts)); in qla4xxx_reset_target()
1289 &mbox_sts[0]); in qla4xxx_reset_target()
1290 if (mbox_sts[0] != MBOX_STS_COMMAND_COMPLETE && in qla4xxx_reset_target()
1291 mbox_sts[0] != MBOX_STS_COMMAND_ERROR) in qla4xxx_reset_target()
1301 uint32_t mbox_sts[MBOX_REG_COUNT]; in qla4xxx_get_flash() local
1304 memset(&mbox_sts, 0, sizeof(mbox_sts)); in qla4xxx_get_flash()
1312 if (qla4xxx_mailbox_command(ha, MBOX_REG_COUNT, 2, &mbox_cmd[0], &mbox_sts[0]) != in qla4xxx_get_flash()
1316 __func__, mbox_sts[0], mbox_sts[1], offset, len)); in qla4xxx_get_flash()
1335 uint32_t mbox_sts[MBOX_REG_COUNT]; in qla4xxx_about_firmware() local
1348 memset(&mbox_sts, 0, sizeof(mbox_sts)); in qla4xxx_about_firmware()
1356 &mbox_cmd[0], &mbox_sts[0]); in qla4xxx_about_firmware()
1360 mbox_sts[0])); in qla4xxx_about_firmware()
1385 ha->fw_uptime_secs = le32_to_cpu(mbox_sts[5]); in qla4xxx_about_firmware()
1386 ha->fw_uptime_msecs = le32_to_cpu(mbox_sts[6]); in qla4xxx_about_firmware()
1399 uint32_t mbox_sts[MBOX_REG_COUNT]; in qla4xxx_get_default_ddb() local
1402 memset(&mbox_sts, 0, sizeof(mbox_sts)); in qla4xxx_get_default_ddb()
1409 if (qla4xxx_mailbox_command(ha, MBOX_REG_COUNT, 1, &mbox_cmd[0], &mbox_sts[0]) != in qla4xxx_get_default_ddb()
1412 ha->host_no, __func__, mbox_sts[0])); in qla4xxx_get_default_ddb()
1423 uint32_t mbox_sts[MBOX_REG_COUNT]; in qla4xxx_req_ddb_entry() local
1426 memset(&mbox_sts, 0, sizeof(mbox_sts)); in qla4xxx_req_ddb_entry()
1432 &mbox_sts[0]); in qla4xxx_req_ddb_entry()
1435 __func__, mbox_sts[0])); in qla4xxx_req_ddb_entry()
1438 *mbx_sts = mbox_sts[0]; in qla4xxx_req_ddb_entry()
1446 uint32_t mbox_sts[MBOX_REG_COUNT]; in qla4xxx_clear_ddb_entry() local
1449 memset(&mbox_sts, 0, sizeof(mbox_sts)); in qla4xxx_clear_ddb_entry()
1455 &mbox_sts[0]); in qla4xxx_clear_ddb_entry()
1458 __func__, mbox_sts[0])); in qla4xxx_clear_ddb_entry()
1468 uint32_t mbox_sts[MBOX_REG_COUNT]; in qla4xxx_set_flash() local
1472 memset(&mbox_sts, 0, sizeof(mbox_sts)); in qla4xxx_set_flash()
1481 status = qla4xxx_mailbox_command(ha, 6, 2, &mbox_cmd[0], &mbox_sts[0]); in qla4xxx_set_flash()
1485 __func__, mbox_sts[0], mbox_sts[1])); in qla4xxx_set_flash()
1834 uint32_t mbox_sts[MBOX_REG_COUNT]; in qla4xxx_conn_close_sess_logout() local
1838 memset(&mbox_sts, 0, sizeof(mbox_sts)); in qla4xxx_conn_close_sess_logout()
1845 status = qla4xxx_mailbox_command(ha, 4, 2, &mbox_cmd[0], &mbox_sts[0]); in qla4xxx_conn_close_sess_logout()
1849 __func__, option, mbox_sts[0], mbox_sts[1])); in qla4xxx_conn_close_sess_logout()
1864 uint32_t mbox_sts[MBOX_REG_COUNT]; in qla4_84xx_extend_idc_tmo() local
1868 memset(&mbox_sts, 0, sizeof(mbox_sts)); in qla4_84xx_extend_idc_tmo()
1879 mbox_cmd, mbox_sts); in qla4_84xx_extend_idc_tmo()
1883 ha->host_no, __func__, mbox_sts[0])); in qla4_84xx_extend_idc_tmo()
1896 uint32_t mbox_sts[MBOX_REG_COUNT]; in qla4xxx_disable_acb() local
1900 memset(&mbox_sts, 0, sizeof(mbox_sts)); in qla4xxx_disable_acb()
1904 status = qla4xxx_mailbox_command(ha, 8, 5, &mbox_cmd[0], &mbox_sts[0]); in qla4xxx_disable_acb()
1908 mbox_sts[0], mbox_sts[1], mbox_sts[2])); in qla4xxx_disable_acb()
1912 (mbox_sts[0] != MBOX_STS_COMMAND_COMPLETE)) { in qla4xxx_disable_acb()
1935 uint32_t mbox_sts[MBOX_REG_COUNT]; in qla4xxx_get_acb() local
1939 memset(&mbox_sts, 0, sizeof(mbox_sts)); in qla4xxx_get_acb()
1947 status = qla4xxx_mailbox_command(ha, 5, 5, &mbox_cmd[0], &mbox_sts[0]); in qla4xxx_get_acb()
1951 mbox_sts[0])); in qla4xxx_get_acb()
1957 uint32_t *mbox_sts, dma_addr_t acb_dma) in qla4xxx_set_acb() argument
1962 memset(mbox_sts, 0, sizeof(mbox_sts[0]) * MBOX_REG_COUNT); in qla4xxx_set_acb()
1969 status = qla4xxx_mailbox_command(ha, 5, 5, &mbox_cmd[0], &mbox_sts[0]); in qla4xxx_set_acb()
1973 mbox_sts[0])); in qla4xxx_set_acb()
2146 uint32_t mbox_sts[MBOX_REG_COUNT]; in qla4xxx_get_mgmt_data() local
2149 memset(mbox_sts, 0, sizeof(mbox_sts[0]) * MBOX_REG_COUNT); in qla4xxx_get_mgmt_data()
2156 status = qla4xxx_mailbox_command(ha, 5, 1, &mbox_cmd[0], &mbox_sts[0]); in qla4xxx_get_mgmt_data()
2161 mbox_sts[0])); in qla4xxx_get_mgmt_data()
2170 uint32_t mbox_sts[MBOX_REG_COUNT]; in qla4xxx_get_ip_state() local
2174 memset(&mbox_sts, 0, sizeof(mbox_sts)); in qla4xxx_get_ip_state()
2179 status = qla4xxx_mailbox_command(ha, 3, 8, &mbox_cmd[0], &mbox_sts[0]); in qla4xxx_get_ip_state()
2183 "status %04X\n", __func__, mbox_sts[0])); in qla4xxx_get_ip_state()
2185 memcpy(sts, mbox_sts, sizeof(mbox_sts)); in qla4xxx_get_ip_state()
2194 uint32_t mbox_sts[MBOX_REG_COUNT]; in qla4xxx_get_nvram() local
2197 memset(&mbox_sts, 0, sizeof(mbox_sts)); in qla4xxx_get_nvram()
2206 &mbox_sts[0]); in qla4xxx_get_nvram()
2210 mbox_sts[0])); in qla4xxx_get_nvram()
2220 uint32_t mbox_sts[MBOX_REG_COUNT]; in qla4xxx_set_nvram() local
2223 memset(&mbox_sts, 0, sizeof(mbox_sts)); in qla4xxx_set_nvram()
2232 &mbox_sts[0]); in qla4xxx_set_nvram()
2236 mbox_sts[0])); in qla4xxx_set_nvram()
2247 uint32_t mbox_sts[MBOX_REG_COUNT]; in qla4xxx_restore_factory_defaults() local
2250 memset(&mbox_sts, 0, sizeof(mbox_sts)); in qla4xxx_restore_factory_defaults()
2258 &mbox_sts[0]); in qla4xxx_restore_factory_defaults()
2262 mbox_sts[0])); in qla4xxx_restore_factory_defaults()
2275 uint32_t mbox_sts[MBOX_REG_COUNT]; in qla4_8xxx_set_param() local
2279 memset(&mbox_sts, 0, sizeof(mbox_sts)); in qla4_8xxx_set_param()
2294 mbox_sts); in qla4_8xxx_set_param()
2297 __func__, mbox_sts[0]); in qla4_8xxx_set_param()
2312 uint32_t mbox_sts[MBOX_REG_COUNT]; in qla4_83xx_post_idc_ack() local
2316 memset(&mbox_sts, 0, sizeof(mbox_sts)); in qla4_83xx_post_idc_ack()
2325 mbox_cmd, mbox_sts); in qla4_83xx_post_idc_ack()
2328 mbox_sts[0]); in qla4_83xx_post_idc_ack()
2338 uint32_t mbox_sts[MBOX_REG_COUNT]; in qla4_84xx_config_acb() local
2386 rval = qla4xxx_set_acb(ha, &mbox_cmd[0], &mbox_sts[0], acb_dma); in qla4_84xx_config_acb()
2413 uint32_t mbox_sts[MBOX_REG_COUNT]; in qla4_83xx_get_port_config() local
2417 memset(&mbox_sts, 0, sizeof(mbox_sts)); in qla4_83xx_get_port_config()
2422 mbox_cmd, mbox_sts); in qla4_83xx_get_port_config()
2424 *config = mbox_sts[1]; in qla4_83xx_get_port_config()
2427 mbox_sts[0]); in qla4_83xx_get_port_config()
2435 uint32_t mbox_sts[MBOX_REG_COUNT]; in qla4_83xx_set_port_config() local
2439 memset(&mbox_sts, 0, sizeof(mbox_sts)); in qla4_83xx_set_port_config()
2445 mbox_cmd, mbox_sts); in qla4_83xx_set_port_config()
2448 mbox_sts[0]); in qla4_83xx_set_port_config()