Lines Matching refs:hba

40 	emlxs_hba_t *hba,  in emlxs_menlo_set_mode()  argument
50 if (hba->model_info.vendor_id != PCI_VENDOR_ID_EMULEX || in emlxs_menlo_set_mode()
51 hba->model_info.device_id != PCI_DEVICE_ID_HORNET) { in emlxs_menlo_set_mode()
69 if (rval = emlxs_send_menlo_cmd(hba, (uint8_t *)cmd_buf, cmd_size, in emlxs_menlo_set_mode()
104 emlxs_hba_t *hba, in emlxs_menlo_reset() argument
114 if (hba->model_info.vendor_id != PCI_VENDOR_ID_EMULEX || in emlxs_menlo_reset()
115 hba->model_info.device_id != PCI_DEVICE_ID_HORNET) { in emlxs_menlo_reset()
132 if (rval = emlxs_send_menlo_cmd(hba, (uint8_t *)cmd_buf, cmd_size, in emlxs_menlo_reset()
167 emlxs_hba_t *hba, in emlxs_menlo_get_cfg() argument
176 if (hba->model_info.vendor_id != PCI_VENDOR_ID_EMULEX || in emlxs_menlo_get_cfg()
177 hba->model_info.device_id != PCI_DEVICE_ID_HORNET) { in emlxs_menlo_get_cfg()
194 if (rval = emlxs_send_menlo_cmd(hba, (uint8_t *)cmd_buf, cmd_size, in emlxs_menlo_get_cfg()
226 emlxs_hba_t *hba, in emlxs_menlo_get_logcfg() argument
235 if (hba->model_info.vendor_id != PCI_VENDOR_ID_EMULEX || in emlxs_menlo_get_logcfg()
236 hba->model_info.device_id != PCI_DEVICE_ID_HORNET) { in emlxs_menlo_get_logcfg()
251 if (rval = emlxs_send_menlo_cmd(hba, (uint8_t *)cmd_buf, cmd_size, in emlxs_menlo_get_logcfg()
282 emlxs_hba_t *hba, in emlxs_menlo_get_log() argument
292 if (hba->model_info.vendor_id != PCI_VENDOR_ID_EMULEX || in emlxs_menlo_get_log()
293 hba->model_info.device_id != PCI_DEVICE_ID_HORNET) { in emlxs_menlo_get_log()
308 if (rval = emlxs_send_menlo_cmd(hba, (uint8_t *)cmd_buf, cmd_size, in emlxs_menlo_get_log()
339 emlxs_hba_t *hba, in emlxs_menlo_get_paniclog() argument
348 if (hba->model_info.vendor_id != PCI_VENDOR_ID_EMULEX || in emlxs_menlo_get_paniclog()
349 hba->model_info.device_id != PCI_DEVICE_ID_HORNET) { in emlxs_menlo_get_paniclog()
364 if (rval = emlxs_send_menlo_cmd(hba, (uint8_t *)cmd_buf, cmd_size, in emlxs_menlo_get_paniclog()
496 emlxs_hba_t *hba, in emlxs_fopen() argument
503 fp = &hba->dump_txtfile; in emlxs_fopen()
508 fp = &hba->dump_dmpfile; in emlxs_fopen()
513 fp = &hba->dump_ceefile; in emlxs_fopen()
601 emlxs_hba_t *hba, in emlxs_get_dump() argument
624 fp_txt = &hba->dump_txtfile; in emlxs_get_dump()
625 fp_dmp = &hba->dump_dmpfile; in emlxs_get_dump()
626 fp_cee = &hba->dump_ceefile; in emlxs_get_dump()
681 if ((hba->model_info.chip == EMLXS_BE2_CHIP) || in emlxs_get_dump()
682 (hba->model_info.chip == EMLXS_BE3_CHIP)) { in emlxs_get_dump()
721 emlxs_hba_t *hba, in emlxs_read_cfg_region() argument
750 if (hba->sli_mode == EMLXS_HBA_SLI4_MODE) { in emlxs_read_cfg_region()
754 (ByteCountRem < hba->sli.sli4.dump_region.size) ? in emlxs_read_cfg_region()
755 ByteCountRem : hba->sli.sli4.dump_region.size; in emlxs_read_cfg_region()
758 bzero(hba->sli.sli4.dump_region.virt, in emlxs_read_cfg_region()
759 hba->sli.sli4.dump_region.size); in emlxs_read_cfg_region()
770 PADDR_HI(hba->sli.sli4.dump_region.phys); in emlxs_read_cfg_region()
772 PADDR_LO(hba->sli.sli4.dump_region.phys); in emlxs_read_cfg_region()
778 if (EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_WAIT, 0) != in emlxs_read_cfg_region()
805 bcopy((uint8_t *)hba->sli.sli4.dump_region.virt, in emlxs_read_cfg_region()
826 if (EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_WAIT, 0) != in emlxs_read_cfg_region()
1375 emlxs_hba_t *hba, in emlxs_dump_parm_table() argument
1424 emlxs_hba_t *hba, in emlxs_dump_model() argument
1460 emlxs_hba_t *hba, in emlxs_dump_wwn() argument
1474 p = (uint8_t *)&hba->wwpn; in emlxs_dump_wwn()
1484 p = (uint8_t *)&hba->wwnn; in emlxs_dump_wwn()
1507 emlxs_hba_t *hba, in emlxs_dump_serial_number() argument
1539 emlxs_hba_t *hba, in emlxs_dump_fw_version() argument
1616 emlxs_hba_t *hba, in emlxs_dump_boot_version() argument
1643 state = emlxs_boot_code_state(hba); in emlxs_dump_boot_version()
1688 emlxs_hba_t *hba, in emlxs_dump_cfg_region4_decoded() argument
1768 emlxs_hba_t *hba, in emlxs_dump_cfg_region14_decoded() argument
1898 emlxs_hba_t *hba, in emlxs_dump_cfg_region() argument
1928 emlxs_read_cfg_region(hba, Region, DUMP_MAX_CONFIG_REGION_LENGTH, in emlxs_dump_cfg_region()
1959 emlxs_dump_cfg_region4_decoded(hba, fpTxtFile, pLidLegend, in emlxs_dump_cfg_region()
1965 emlxs_dump_cfg_region14_decoded(hba, fpTxtFile, in emlxs_dump_cfg_region()
1980 emlxs_hba_t *hba, in emlxs_dump_cfg_regions() argument
1987 emlxs_dump_cfg_region(hba, fpTxtFile, fpDmpFile, 0, in emlxs_dump_cfg_regions()
1991 emlxs_dump_cfg_region(hba, fpTxtFile, fpDmpFile, 1, in emlxs_dump_cfg_regions()
1995 emlxs_dump_cfg_region(hba, fpTxtFile, fpDmpFile, 2, in emlxs_dump_cfg_regions()
1999 emlxs_dump_cfg_region(hba, fpTxtFile, fpDmpFile, 3, in emlxs_dump_cfg_regions()
2003 emlxs_dump_cfg_region(hba, fpTxtFile, fpDmpFile, 4, in emlxs_dump_cfg_regions()
2007 emlxs_dump_cfg_region(hba, fpTxtFile, fpDmpFile, 5, in emlxs_dump_cfg_regions()
2011 emlxs_dump_cfg_region(hba, fpTxtFile, fpDmpFile, 6, in emlxs_dump_cfg_regions()
2015 emlxs_dump_cfg_region(hba, fpTxtFile, fpDmpFile, 7, in emlxs_dump_cfg_regions()
2019 emlxs_dump_cfg_region(hba, fpTxtFile, fpDmpFile, 8, in emlxs_dump_cfg_regions()
2023 emlxs_dump_cfg_region(hba, fpTxtFile, fpDmpFile, 9, in emlxs_dump_cfg_regions()
2027 emlxs_dump_cfg_region(hba, fpTxtFile, fpDmpFile, 10, in emlxs_dump_cfg_regions()
2031 emlxs_dump_cfg_region(hba, fpTxtFile, fpDmpFile, 11, in emlxs_dump_cfg_regions()
2035 emlxs_dump_cfg_region(hba, fpTxtFile, fpDmpFile, 12, in emlxs_dump_cfg_regions()
2039 emlxs_dump_cfg_region(hba, fpTxtFile, fpDmpFile, 13, in emlxs_dump_cfg_regions()
2043 emlxs_dump_cfg_region(hba, fpTxtFile, fpDmpFile, 14, in emlxs_dump_cfg_regions()
2047 emlxs_dump_cfg_region(hba, fpTxtFile, fpDmpFile, 15, in emlxs_dump_cfg_regions()
2051 emlxs_dump_cfg_region(hba, fpTxtFile, fpDmpFile, 16, in emlxs_dump_cfg_regions()
2055 emlxs_dump_cfg_region(hba, fpTxtFile, fpDmpFile, 17, in emlxs_dump_cfg_regions()
2059 emlxs_dump_cfg_region(hba, fpTxtFile, fpDmpFile, 18, in emlxs_dump_cfg_regions()
2063 emlxs_dump_cfg_region(hba, fpTxtFile, fpDmpFile, 19, in emlxs_dump_cfg_regions()
2067 emlxs_dump_cfg_region(hba, fpTxtFile, fpDmpFile, 20, in emlxs_dump_cfg_regions()
2071 emlxs_dump_cfg_region(hba, fpTxtFile, fpDmpFile, 21, in emlxs_dump_cfg_regions()
2075 emlxs_dump_cfg_region(hba, fpTxtFile, fpDmpFile, 22, in emlxs_dump_cfg_regions()
2079 emlxs_dump_cfg_region(hba, fpTxtFile, fpDmpFile, 23, in emlxs_dump_cfg_regions()
2083 emlxs_dump_cfg_region(hba, fpTxtFile, fpDmpFile, 24, in emlxs_dump_cfg_regions()
2087 emlxs_dump_cfg_region(hba, fpTxtFile, fpDmpFile, 25, in emlxs_dump_cfg_regions()
2091 emlxs_dump_cfg_region(hba, fpTxtFile, fpDmpFile, 26, in emlxs_dump_cfg_regions()
2095 emlxs_dump_cfg_region(hba, fpTxtFile, fpDmpFile, 27, in emlxs_dump_cfg_regions()
2099 emlxs_dump_cfg_region(hba, fpTxtFile, fpDmpFile, 28, in emlxs_dump_cfg_regions()
2103 emlxs_dump_cfg_region(hba, fpTxtFile, fpDmpFile, 29, in emlxs_dump_cfg_regions()
2107 emlxs_dump_cfg_region(hba, fpTxtFile, fpDmpFile, 30, in emlxs_dump_cfg_regions()
2111 emlxs_dump_cfg_region(hba, fpTxtFile, fpDmpFile, 31, in emlxs_dump_cfg_regions()
2115 emlxs_dump_cfg_region(hba, fpTxtFile, fpDmpFile, 32, in emlxs_dump_cfg_regions()
2126 emlxs_hba_t *hba, in emlxs_dump_os_version() argument
2168 emlxs_hba_t *hba, in emlxs_dump_drv_version() argument
2216 emlxs_hba_t *hba, in emlxs_dump_file_create() argument
2223 if ((*fpTxtFile = emlxs_fopen(hba, EMLXS_TXT_FILE)) == NULL) { in emlxs_dump_file_create()
2231 if ((hba->model_info.vendor_id == PCI_VENDOR_ID_EMULEX && in emlxs_dump_file_create()
2232 hba->model_info.device_id == PCI_DEVICE_ID_HORNET) || in emlxs_dump_file_create()
2233 (hba->model_info.chip == EMLXS_BE2_CHIP) || in emlxs_dump_file_create()
2234 (hba->model_info.chip == EMLXS_BE3_CHIP)) { in emlxs_dump_file_create()
2236 emlxs_fopen(hba, EMLXS_CEE_FILE)) == NULL) { in emlxs_dump_file_create()
2244 if ((*fpDmpFile = emlxs_fopen(hba, EMLXS_DMP_FILE)) == NULL) { in emlxs_dump_file_create()
2274 emlxs_hba_t *hba, in emlxs_dump_file_terminate() argument
2287 if (hba->model_info.vendor_id == PCI_VENDOR_ID_EMULEX && in emlxs_dump_file_terminate()
2288 hba->model_info.device_id == PCI_DEVICE_ID_HORNET) { in emlxs_dump_file_terminate()
2340 emlxs_hba_t *hba, in emlxs_dump_rev_info() argument
2344 (void) emlxs_dump_os_version(hba, fpTxtFile, fpDmpFile); in emlxs_dump_rev_info()
2345 (void) emlxs_dump_drv_version(hba, fpTxtFile, fpDmpFile); in emlxs_dump_rev_info()
2354 emlxs_hba_t *hba, in emlxs_dump_hba_info() argument
2359 (void) emlxs_dump_model(hba, fpTxtFile, fpDmpFile); in emlxs_dump_hba_info()
2360 (void) emlxs_dump_wwn(hba, fpTxtFile, fpDmpFile); in emlxs_dump_hba_info()
2361 (void) emlxs_dump_serial_number(hba, fpTxtFile, fpDmpFile); in emlxs_dump_hba_info()
2362 (void) emlxs_dump_fw_version(hba, fpTxtFile, fpDmpFile); in emlxs_dump_hba_info()
2363 (void) emlxs_dump_boot_version(hba, fpTxtFile, fpDmpFile); in emlxs_dump_hba_info()
2380 emlxs_hba_t *hba, in emlxs_dump_table_check() argument
2401 emlxs_mb_dump(hba, mbq, 0x654, 1); in emlxs_dump_table_check()
2402 if (EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_WAIT, 0) != MBX_SUCCESS) { in emlxs_dump_table_check()
2422 emlxs_mb_dump(hba, mbq, DumpTableAddr, 2); in emlxs_dump_table_check()
2423 if (EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_WAIT, 0) != in emlxs_dump_table_check()
2490 emlxs_hba_t *hba, in emlxs_dump_table_read() argument
2509 status = emlxs_dump_table_check(hba, pDumpTableSize); in emlxs_dump_table_read()
2529 emlxs_mb_dump(hba, mbq, 0x654, 1); in emlxs_dump_table_read()
2530 if (EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_WAIT, 0) != MBX_SUCCESS) { in emlxs_dump_table_read()
2563 emlxs_mb_dump(hba, mbq, DumpTableAddr, 2); in emlxs_dump_table_read()
2564 if (EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_WAIT, 0) != in emlxs_dump_table_read()
2668 emlxs_hba_t *hba, in emlxs_dump_hba_memory() argument
2746 emlxs_mb_dump(hba, mbq, offset, 1); in emlxs_dump_hba_memory()
2747 if (EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_WAIT, in emlxs_dump_hba_memory()
2803 emlxs_mb_dump(hba, mbq, portAddr, wcount); in emlxs_dump_hba_memory()
2804 if (EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_WAIT, in emlxs_dump_hba_memory()
2855 emlxs_hba_t *hba, in emlxs_dump_hba() argument
2863 if (hba->sli_mode >= EMLXS_HBA_SLI4_MODE) { in emlxs_dump_hba()
2869 emlxs_dump_table_read(hba, fpTxtFile, &pDumpTable, in emlxs_dump_hba()
2875 status = emlxs_dump_hba_memory(hba, fpDmpFile, pDumpTable); in emlxs_dump_hba()
2894 emlxs_hba_t *hba, in emlxs_dump_drv_region() argument
2906 status = emlxs_get_dump_region(hba, regionId, NULL, &size); in emlxs_dump_drv_region()
2915 status = emlxs_get_dump_region(hba, regionId, *pBuf, &size); in emlxs_dump_drv_region()
2933 emlxs_hba_t *hba, in emlxs_dump_sli_regs() argument
2949 status = emlxs_dump_drv_region(hba, DR_SLI_REGS, &pBuf, &bufLen); in emlxs_dump_sli_regs()
2968 emlxs_hba_t *hba, in emlxs_dump_slim() argument
2982 status = emlxs_dump_drv_region(hba, DR_SLIM, &pBuf, &bufLen); in emlxs_dump_slim()
3009 emlxs_hba_t *hba, in emlxs_dump_pcb() argument
3025 status = emlxs_dump_drv_region(hba, DR_PCB, &pBuf, &bufLen); in emlxs_dump_pcb()
3043 emlxs_hba_t *hba, in emlxs_dump_mbox() argument
3059 status = emlxs_dump_drv_region(hba, DR_MBX, &pBuf, &bufLen); in emlxs_dump_mbox()
3077 emlxs_hba_t *hba, in emlxs_dump_host_pointers() argument
3093 status = emlxs_dump_drv_region(hba, DR_HOST_PTRS, &pBuf, &bufLen); in emlxs_dump_host_pointers()
3111 emlxs_hba_t *hba, in emlxs_dump_port_pointers() argument
3127 status = emlxs_dump_drv_region(hba, DR_PORT_PTRS, &pBuf, &bufLen); in emlxs_dump_port_pointers()
3145 emlxs_hba_t *hba, in emlxs_dump_rings() argument
3161 status = emlxs_dump_drv_region(hba, DR_RINGS, &pBuf, &bufLen); in emlxs_dump_rings()
3180 emlxs_hba_t *hba, in emlxs_dump_drv_internals() argument
3196 status = emlxs_dump_drv_region(hba, DR_INTERNAL, &pBuf, &bufLen); in emlxs_dump_drv_internals()
3214 emlxs_hba_t *hba, in emlxs_dump_sli_interface() argument
3220 if (hba->sli_mode <= EMLXS_HBA_SLI3_MODE) { in emlxs_dump_sli_interface()
3223 (void) emlxs_dump_sli_regs(hba, fpDmpFile); in emlxs_dump_sli_interface()
3224 (void) emlxs_dump_slim(hba, fpTxtFile, fpDmpFile, dump_type); in emlxs_dump_sli_interface()
3225 (void) emlxs_dump_pcb(hba, fpDmpFile); in emlxs_dump_sli_interface()
3226 (void) emlxs_dump_mbox(hba, fpDmpFile); in emlxs_dump_sli_interface()
3227 (void) emlxs_dump_host_pointers(hba, fpDmpFile); in emlxs_dump_sli_interface()
3228 (void) emlxs_dump_port_pointers(hba, fpDmpFile); in emlxs_dump_sli_interface()
3229 (void) emlxs_dump_rings(hba, fpDmpFile); in emlxs_dump_sli_interface()
3232 (void) emlxs_dump_drv_internals(hba, fpDmpFile); in emlxs_dump_sli_interface()
3241 emlxs_hba_t *hba, in emlxs_dump_menlo_log() argument
3273 if (hba->model_info.vendor_id != PCI_VENDOR_ID_EMULEX || in emlxs_dump_menlo_log()
3274 hba->model_info.device_id != PCI_DEVICE_ID_HORNET) { in emlxs_dump_menlo_log()
3282 emlxs_menlo_get_cfg(hba, pGcBuf, sizeof (menlo_get_config_rsp_t)); in emlxs_dump_menlo_log()
3293 RmStatus = emlxs_menlo_get_logcfg(hba, pLcBuf, LcBufSize); in emlxs_dump_menlo_log()
3336 RmStatus = emlxs_menlo_get_log(hba, i, pLdBuf, LdBufSize); in emlxs_dump_menlo_log()
3415 RmStatus = emlxs_menlo_get_paniclog(hba, pPlBuf, PlBufSize); in emlxs_dump_menlo_log()
3537 emlxs_hba_t *hba, in emlxs_dump_saturn_log() argument
3557 if (hba->model_info.chip != EMLXS_SATURN_CHIP) { in emlxs_dump_saturn_log()
3572 if (EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_WAIT, 0) == in emlxs_dump_saturn_log()
3619 if ((mp = emlxs_mem_buf_alloc(hba, logSize)) == 0) { in emlxs_dump_saturn_log()
3649 if (EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_WAIT, 0) != in emlxs_dump_saturn_log()
3655 emlxs_mem_buf_free(hba, mp); in emlxs_dump_saturn_log()
3678 if (emlxs_fm_check_dma_handle(hba, mp->dma_handle) in emlxs_dump_saturn_log()
3688 emlxs_mem_buf_free(hba, mp); in emlxs_dump_saturn_log()
3697 emlxs_hba_t *hba, in emlxs_dump_tigershark_log() argument
3716 if ((hba->model_info.chip != EMLXS_BE2_CHIP) && in emlxs_dump_tigershark_log()
3717 (hba->model_info.chip != EMLXS_BE3_CHIP)) { in emlxs_dump_tigershark_log()
3729 if ((mp = emlxs_mem_buf_alloc(hba, (sizeof (mbox_req_hdr_t) + in emlxs_dump_tigershark_log()
3758 if (EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_WAIT, 0) != in emlxs_dump_tigershark_log()
3821 if (EMLXS_SLI_ISSUE_MBOX_CMD(hba, mbq, MBX_WAIT, 0) != in emlxs_dump_tigershark_log()
3865 emlxs_mem_put(hba, MEM_MBOX, (void *)mbq); in emlxs_dump_tigershark_log()
3869 emlxs_mem_buf_free(hba, mp); in emlxs_dump_tigershark_log()
3888 emlxs_hba_t *hba) in emlxs_dump_user_event() argument
3902 emlxs_dump_file_create(hba, &fpTxtFile, &fpDmpFile, &fpCeeFile); in emlxs_dump_user_event()
3908 (void) emlxs_dump_rev_info(hba, fpTxtFile, fpDmpFile); in emlxs_dump_user_event()
3909 (void) emlxs_dump_hba_info(hba, fpTxtFile, fpDmpFile, DUMP_TYPE_USER); in emlxs_dump_user_event()
3910 (void) emlxs_dump_parm_table(hba, fpTxtFile, fpDmpFile); in emlxs_dump_user_event()
3911 (void) emlxs_dump_cfg_regions(hba, fpTxtFile, fpDmpFile); in emlxs_dump_user_event()
3913 if (hba->model_info.chip == EMLXS_SATURN_CHIP) { in emlxs_dump_user_event()
3914 (void) emlxs_set_hba_mode(hba, DDI_ONDI); in emlxs_dump_user_event()
3915 (void) emlxs_dump_saturn_log(hba, fpTxtFile, fpDmpFile); in emlxs_dump_user_event()
3918 if ((hba->model_info.chip == EMLXS_BE2_CHIP) || in emlxs_dump_user_event()
3919 (hba->model_info.chip == EMLXS_BE3_CHIP)) { in emlxs_dump_user_event()
3920 (void) emlxs_dump_tigershark_log(hba, fpTxtFile, fpCeeFile); in emlxs_dump_user_event()
3923 if (hba->sli_mode <= EMLXS_HBA_SLI3_MODE) { in emlxs_dump_user_event()
3924 (void) emlxs_set_hba_mode(hba, DDI_DIAGDI); in emlxs_dump_user_event()
3927 (void) emlxs_dump_sli_interface(hba, fpTxtFile, fpDmpFile, in emlxs_dump_user_event()
3930 if (hba->sli_mode <= EMLXS_HBA_SLI3_MODE) { in emlxs_dump_user_event()
3931 (void) emlxs_set_hba_mode(hba, DDI_WARMDI); in emlxs_dump_user_event()
3934 (void) emlxs_dump_hba(hba, fpTxtFile, fpDmpFile); in emlxs_dump_user_event()
3936 (void) emlxs_set_hba_mode(hba, DDI_ONDI); in emlxs_dump_user_event()
3938 status = emlxs_menlo_set_mode(hba, MENLO_MAINTENANCE_MODE_ENABLE); in emlxs_dump_user_event()
3940 (void) emlxs_dump_menlo_log(hba, fpCeeFile); in emlxs_dump_user_event()
3941 (void) emlxs_menlo_set_mode(hba, in emlxs_dump_user_event()
3945 (void) emlxs_dump_file_terminate(hba, fpTxtFile, fpDmpFile, fpCeeFile); in emlxs_dump_user_event()
3956 emlxs_hba_t *hba, in emlxs_dump_temp_event() argument
3969 if (hba->sli_mode == EMLXS_HBA_SLI4_MODE) { in emlxs_dump_temp_event()
3985 status = emlxs_dump_file_create(hba, &fpTxtFile, 0, 0); in emlxs_dump_temp_event()
4022 (void) emlxs_dump_rev_info(hba, fpTxtFile, NULL); in emlxs_dump_temp_event()
4023 (void) emlxs_dump_hba_info(hba, fpTxtFile, NULL, DUMP_TYPE_TEMP); in emlxs_dump_temp_event()
4025 (void) emlxs_dump_file_terminate(hba, fpTxtFile, NULL, NULL); in emlxs_dump_temp_event()
4036 emlxs_hba_t *hba) in emlxs_dump_drv_event() argument
4050 emlxs_dump_file_create(hba, &fpTxtFile, &fpDmpFile, &fpCeeFile); in emlxs_dump_drv_event()
4056 if (hba->model_info.chip == EMLXS_SATURN_CHIP) { in emlxs_dump_drv_event()
4057 (void) emlxs_set_hba_mode(hba, DDI_ONDI); in emlxs_dump_drv_event()
4058 (void) emlxs_dump_saturn_log(hba, fpTxtFile, fpDmpFile); in emlxs_dump_drv_event()
4061 if ((hba->model_info.chip == EMLXS_BE2_CHIP) || in emlxs_dump_drv_event()
4062 (hba->model_info.chip == EMLXS_BE3_CHIP)) { in emlxs_dump_drv_event()
4063 (void) emlxs_dump_tigershark_log(hba, fpTxtFile, fpCeeFile); in emlxs_dump_drv_event()
4066 if (hba->sli_mode <= EMLXS_HBA_SLI3_MODE) { in emlxs_dump_drv_event()
4067 (void) emlxs_set_hba_mode(hba, DDI_DIAGDI); in emlxs_dump_drv_event()
4070 (void) emlxs_dump_sli_interface(hba, fpTxtFile, fpDmpFile, in emlxs_dump_drv_event()
4073 if (hba->sli_mode <= EMLXS_HBA_SLI3_MODE) { in emlxs_dump_drv_event()
4074 (void) emlxs_set_hba_mode(hba, DDI_WARMDI); in emlxs_dump_drv_event()
4077 (void) emlxs_dump_hba(hba, fpTxtFile, fpDmpFile); in emlxs_dump_drv_event()
4079 if (hba->sli_mode <= EMLXS_HBA_SLI3_MODE) { in emlxs_dump_drv_event()
4080 (void) emlxs_set_hba_mode(hba, DDI_ONDI); in emlxs_dump_drv_event()
4083 status = emlxs_menlo_set_mode(hba, MENLO_MAINTENANCE_MODE_ENABLE); in emlxs_dump_drv_event()
4085 (void) emlxs_dump_menlo_log(hba, fpCeeFile); in emlxs_dump_drv_event()
4089 (void) emlxs_dump_rev_info(hba, fpTxtFile, fpDmpFile); in emlxs_dump_drv_event()
4090 (void) emlxs_dump_hba_info(hba, fpTxtFile, fpDmpFile, DUMP_TYPE_DRIVER); in emlxs_dump_drv_event()
4091 (void) emlxs_dump_parm_table(hba, fpTxtFile, fpDmpFile); in emlxs_dump_drv_event()
4092 (void) emlxs_dump_cfg_regions(hba, fpTxtFile, fpDmpFile); in emlxs_dump_drv_event()
4094 (void) emlxs_dump_file_terminate(hba, fpTxtFile, fpDmpFile, fpCeeFile); in emlxs_dump_drv_event()
4098 (void) emlxs_menlo_reset(hba, MENLO_FW_OPERATIONAL); in emlxs_dump_drv_event()
4100 (void) emlxs_set_hba_mode(hba, DDI_WARMDI); in emlxs_dump_drv_event()
4112 emlxs_dump_drv_thread(emlxs_hba_t *hba, in emlxs_dump_drv_thread() argument
4115 (void) emlxs_dump_drv_event(hba); in emlxs_dump_drv_thread()
4119 hba->flag &= ~FC_DUMP_ACTIVE; in emlxs_dump_drv_thread()
4129 emlxs_dump_user_thread(emlxs_hba_t *hba, in emlxs_dump_user_thread() argument
4132 (void) emlxs_dump_user_event(hba); in emlxs_dump_user_thread()
4136 hba->flag &= ~FC_DUMP_ACTIVE; in emlxs_dump_user_thread()
4146 emlxs_dump_temp_thread(emlxs_hba_t *hba, in emlxs_dump_temp_thread() argument
4151 (void) emlxs_dump_temp_event(temp_event->hba, temp_event->type, in emlxs_dump_temp_thread()
4159 hba->flag &= ~FC_DUMP_ACTIVE; in emlxs_dump_temp_thread()
4170 emlxs_dump(emlxs_hba_t *hba, uint32_t type, uint32_t temp_type, uint32_t temp) in emlxs_dump() argument
4178 if (!(hba->flag & FC_DUMP_SAFE)) { in emlxs_dump()
4188 if (hba->flag & FC_DUMP_ACTIVE) { in emlxs_dump()
4216 temp_event->hba = hba; in emlxs_dump()
4232 hba->flag |= FC_DUMP_ACTIVE; in emlxs_dump()
4238 emlxs_thread_spawn(hba, emlxs_dump_drv_thread, NULL, NULL); in emlxs_dump()
4242 emlxs_thread_spawn(hba, emlxs_dump_temp_thread, in emlxs_dump()
4247 emlxs_thread_spawn(hba, emlxs_dump_user_thread, NULL, NULL); in emlxs_dump()
4256 emlxs_dump_wait(emlxs_hba_t *hba) in emlxs_dump_wait() argument
4259 while ((hba->flag & FC_DUMP_ACTIVE)) { in emlxs_dump_wait()