Lines Matching refs:rval
429 int rval = QLA_SUCCESS; in qla4_82xx_md_rd_32() local
443 rval = QLA_ERROR; in qla4_82xx_md_rd_32()
449 return rval; in qla4_82xx_md_rd_32()
455 int rval = QLA_SUCCESS; in qla4_82xx_md_wr_32() local
468 rval = QLA_ERROR; in qla4_82xx_md_wr_32()
474 return rval; in qla4_82xx_md_wr_32()
1289 int i, rval = 0; in qla4_82xx_load_from_flash() local
1305 rval = -1; in qla4_82xx_load_from_flash()
1309 rval = qla4_82xx_pci_mem_write_2M(ha, memaddr, &data, 8); in qla4_82xx_load_from_flash()
1310 if (rval) in qla4_82xx_load_from_flash()
1329 return rval; in qla4_82xx_load_from_flash()
1663 int rval; in qla4_8xxx_need_reset() local
1674 rval = drv_state & (1 << ha->func_num); in qla4_8xxx_need_reset()
1676 rval = drv_state & (1 << (ha->func_num * 4)); in qla4_8xxx_need_reset()
1679 rval = 1; in qla4_8xxx_need_reset()
1681 return rval; in qla4_8xxx_need_reset()
1782 int rval = QLA_ERROR; in qla4_82xx_try_start_fw() local
1792 rval = qla4_8xxx_get_flash_info(ha); in qla4_82xx_try_start_fw()
1793 if (rval != QLA_SUCCESS) in qla4_82xx_try_start_fw()
1794 return rval; in qla4_82xx_try_start_fw()
1798 rval = qla4_82xx_start_firmware(ha, ha->hw.flt_region_fw); in qla4_82xx_try_start_fw()
1800 if (rval != QLA_SUCCESS) { in qla4_82xx_try_start_fw()
1803 return rval; in qla4_82xx_try_start_fw()
1806 return rval; in qla4_82xx_try_start_fw()
1828 uint32_t rval = QLA_SUCCESS; in ql4_84xx_poll_wait_for_ready() local
1843 return rval; in ql4_84xx_poll_wait_for_ready()
1850 int rval = QLA_SUCCESS; in ql4_84xx_ipmdio_rd_reg() local
1854 rval = ql4_84xx_poll_wait_for_ready(ha, addr1, mask); in ql4_84xx_ipmdio_rd_reg()
1855 if (rval) in ql4_84xx_ipmdio_rd_reg()
1861 rval = ql4_84xx_poll_wait_for_ready(ha, addr1, mask); in ql4_84xx_ipmdio_rd_reg()
1862 if (rval) in ql4_84xx_ipmdio_rd_reg()
1869 return rval; in ql4_84xx_ipmdio_rd_reg()
1881 uint32_t rval = QLA_SUCCESS; in ql4_84xx_poll_wait_ipmdio_bus_idle() local
1894 return rval; in ql4_84xx_poll_wait_ipmdio_bus_idle()
1902 int rval = QLA_SUCCESS; in ql4_84xx_ipmdio_wr_reg() local
1904 rval = ql4_84xx_poll_wait_for_ready(ha, addr1, mask); in ql4_84xx_ipmdio_wr_reg()
1905 if (rval) in ql4_84xx_ipmdio_wr_reg()
1911 rval = ql4_84xx_poll_wait_for_ready(ha, addr1, mask); in ql4_84xx_ipmdio_wr_reg()
1912 if (rval) in ql4_84xx_ipmdio_wr_reg()
1916 return rval; in ql4_84xx_ipmdio_wr_reg()
1944 int rval = QLA_SUCCESS; in qla4_83xx_check_dma_engine_state() local
1957 rval = ha->isp_ops->rd_reg_indirect(ha, in qla4_83xx_check_dma_engine_state()
1961 if (rval) in qla4_83xx_check_dma_engine_state()
1974 int rval = QLA_SUCCESS, wait = 0; in qla4_83xx_start_pex_dma() local
1986 rval = ha->isp_ops->wr_reg_indirect(ha, in qla4_83xx_start_pex_dma()
1989 if (rval) in qla4_83xx_start_pex_dma()
1992 rval = ha->isp_ops->wr_reg_indirect(ha, in qla4_83xx_start_pex_dma()
1994 if (rval) in qla4_83xx_start_pex_dma()
1997 rval = ha->isp_ops->wr_reg_indirect(ha, in qla4_83xx_start_pex_dma()
2000 if (rval) in qla4_83xx_start_pex_dma()
2005 rval = ha->isp_ops->rd_reg_indirect(ha, in qla4_83xx_start_pex_dma()
2008 if (rval) in qla4_83xx_start_pex_dma()
2019 rval = QLA_ERROR; in qla4_83xx_start_pex_dma()
2024 return rval; in qla4_83xx_start_pex_dma()
2031 int rval = QLA_SUCCESS; in qla4_8xxx_minidump_pex_dma_read() local
2041 rval = qla4_83xx_check_dma_engine_state(ha); in qla4_8xxx_minidump_pex_dma_read()
2042 if (rval != QLA_SUCCESS) { in qla4_8xxx_minidump_pex_dma_read()
2104 rval = qla4_8xxx_ms_mem_write_128b(ha, in qla4_8xxx_minidump_pex_dma_read()
2108 if (rval != QLA_SUCCESS) { in qla4_8xxx_minidump_pex_dma_read()
2119 rval = qla4_83xx_start_pex_dma(ha, m_hdr); in qla4_8xxx_minidump_pex_dma_read()
2120 if (rval != QLA_SUCCESS) { in qla4_8xxx_minidump_pex_dma_read()
2123 ha->host_no, rval)); in qla4_8xxx_minidump_pex_dma_read()
2141 return rval; in qla4_8xxx_minidump_pex_dma_read()
2153 int rval = QLA_ERROR; in qla4_8xxx_minidump_process_l2tag() local
2185 return rval; in qla4_8xxx_minidump_process_l2tag()
2207 uint32_t read_value, opcode, poll_time, addr, index, rval = QLA_SUCCESS; in qla4_8xxx_minidump_process_control() local
2258 rval = QLA_ERROR; in qla4_8xxx_minidump_process_control()
2317 return rval; in qla4_8xxx_minidump_process_control()
2562 int rval = QLA_SUCCESS; in qla4_8xxx_minidump_process_rdmem() local
2564 rval = qla4_8xxx_minidump_pex_dma_read(ha, entry_hdr, &data_ptr); in qla4_8xxx_minidump_process_rdmem()
2565 if (rval != QLA_SUCCESS) in qla4_8xxx_minidump_process_rdmem()
2566 rval = __qla4_8xxx_minidump_process_rdmem(ha, entry_hdr, in qla4_8xxx_minidump_process_rdmem()
2569 return rval; in qla4_8xxx_minidump_process_rdmem()
2596 uint32_t rval = QLA_SUCCESS; in qla83xx_minidump_process_pollrd() local
2621 rval = QLA_ERROR; in qla83xx_minidump_process_pollrd()
2635 return rval; in qla83xx_minidump_process_pollrd()
2650 uint32_t rval = QLA_SUCCESS; in qla4_84xx_minidump_process_rddfe() local
2679 rval = QLA_ERROR; in qla4_84xx_minidump_process_rddfe()
2700 rval = QLA_ERROR; in qla4_84xx_minidump_process_rddfe()
2718 rval = QLA_ERROR; in qla4_84xx_minidump_process_rddfe()
2731 return rval; in qla4_84xx_minidump_process_rddfe()
2738 int rval = QLA_SUCCESS; in qla4_84xx_minidump_process_rdmdio() local
2762 rval = ql4_84xx_poll_wait_ipmdio_bus_idle(ha, addr1, addr2, in qla4_84xx_minidump_process_rdmdio()
2764 if (rval) in qla4_84xx_minidump_process_rdmdio()
2768 rval = ql4_84xx_ipmdio_wr_reg(ha, addr1, addr3, mask, addr4, in qla4_84xx_minidump_process_rdmdio()
2770 if (rval) in qla4_84xx_minidump_process_rdmdio()
2774 rval = ql4_84xx_ipmdio_wr_reg(ha, addr1, addr3, mask, addr5, in qla4_84xx_minidump_process_rdmdio()
2776 if (rval) in qla4_84xx_minidump_process_rdmdio()
2780 rval = ql4_84xx_ipmdio_wr_reg(ha, addr1, addr3, mask, in qla4_84xx_minidump_process_rdmdio()
2782 if (rval) in qla4_84xx_minidump_process_rdmdio()
2785 rval = ql4_84xx_poll_wait_ipmdio_bus_idle(ha, addr1, addr2, in qla4_84xx_minidump_process_rdmdio()
2787 if (rval) in qla4_84xx_minidump_process_rdmdio()
2791 rval = ql4_84xx_ipmdio_rd_reg(ha, addr1, addr3, in qla4_84xx_minidump_process_rdmdio()
2793 if (rval) in qla4_84xx_minidump_process_rdmdio()
2807 return rval; in qla4_84xx_minidump_process_rdmdio()
2817 uint32_t rval = QLA_SUCCESS; in qla4_84xx_minidump_process_pollwr() local
2839 rval = QLA_ERROR; in qla4_84xx_minidump_process_pollwr()
2856 return rval; in qla4_84xx_minidump_process_pollwr()
2909 uint32_t rval = QLA_SUCCESS; in qla83xx_minidump_process_pollrdmwr() local
2932 rval = QLA_ERROR; in qla83xx_minidump_process_pollrdmwr()
2954 rval = QLA_ERROR; in qla83xx_minidump_process_pollrdmwr()
2965 return rval; in qla83xx_minidump_process_pollrdmwr()
2972 uint32_t fl_addr, u32_count, rval; in qla4_83xx_minidump_process_rdrom() local
2983 rval = qla4_83xx_lockless_flash_read_u32(ha, fl_addr, in qla4_83xx_minidump_process_rdrom()
2986 if (rval == QLA_ERROR) { in qla4_83xx_minidump_process_rdrom()
2996 return rval; in qla4_83xx_minidump_process_rdrom()
3010 int i, rval = QLA_ERROR; in qla4_8xxx_collect_md_data() local
3018 return rval; in qla4_8xxx_collect_md_data()
3057 return rval; in qla4_8xxx_collect_md_data()
3080 rval = qla4_8xxx_minidump_process_control(ha, in qla4_8xxx_collect_md_data()
3082 if (rval != QLA_SUCCESS) { in qla4_8xxx_collect_md_data()
3092 rval = qla4_8xxx_minidump_process_rdmem(ha, entry_hdr, in qla4_8xxx_collect_md_data()
3094 if (rval != QLA_SUCCESS) { in qla4_8xxx_collect_md_data()
3105 rval = qla4_83xx_minidump_process_rdrom(ha, in qla4_8xxx_collect_md_data()
3108 if (rval != QLA_SUCCESS) in qla4_8xxx_collect_md_data()
3118 rval = qla4_8xxx_minidump_process_l2tag(ha, entry_hdr, in qla4_8xxx_collect_md_data()
3120 if (rval != QLA_SUCCESS) { in qla4_8xxx_collect_md_data()
3149 rval = qla83xx_minidump_process_pollrd(ha, entry_hdr, in qla4_8xxx_collect_md_data()
3151 if (rval != QLA_SUCCESS) in qla4_8xxx_collect_md_data()
3167 rval = qla83xx_minidump_process_pollrdmwr(ha, entry_hdr, in qla4_8xxx_collect_md_data()
3169 if (rval != QLA_SUCCESS) in qla4_8xxx_collect_md_data()
3173 rval = qla4_84xx_minidump_process_rddfe(ha, entry_hdr, in qla4_8xxx_collect_md_data()
3175 if (rval != QLA_SUCCESS) in qla4_8xxx_collect_md_data()
3179 rval = qla4_84xx_minidump_process_rdmdio(ha, entry_hdr, in qla4_8xxx_collect_md_data()
3181 if (rval != QLA_SUCCESS) in qla4_8xxx_collect_md_data()
3185 rval = qla4_84xx_minidump_process_pollwr(ha, entry_hdr, in qla4_8xxx_collect_md_data()
3187 if (rval != QLA_SUCCESS) in qla4_8xxx_collect_md_data()
3208 rval = QLA_ERROR; in qla4_8xxx_collect_md_data()
3215 return rval; in qla4_8xxx_collect_md_data()
3262 int rval = QLA_ERROR; in qla4_8xxx_device_bootstrap() local
3280 rval = QLA_SUCCESS; in qla4_8xxx_device_bootstrap()
3297 rval = ha->isp_ops->restart_firmware(ha); in qla4_8xxx_device_bootstrap()
3300 if (rval != QLA_SUCCESS) { in qla4_8xxx_device_bootstrap()
3305 return rval; in qla4_8xxx_device_bootstrap()
3312 return rval; in qla4_8xxx_device_bootstrap()
3435 int rval = QLA_SUCCESS; in qla4_83xx_set_idc_ver() local
3454 rval = QLA_ERROR; in qla4_83xx_set_idc_ver()
3466 return rval; in qla4_83xx_set_idc_ver()
3472 int rval = QLA_SUCCESS; in qla4_8xxx_update_idc_reg() local
3493 rval = qla4_83xx_set_idc_ver(ha); in qla4_8xxx_update_idc_reg()
3494 if (rval == QLA_ERROR) in qla4_8xxx_update_idc_reg()
3501 return rval; in qla4_8xxx_update_idc_reg()
3513 int rval = QLA_SUCCESS; in qla4_8xxx_device_state_handler() local
3516 rval = qla4_8xxx_update_idc_reg(ha); in qla4_8xxx_device_state_handler()
3517 if (rval == QLA_ERROR) in qla4_8xxx_device_state_handler()
3551 rval = qla4_8xxx_device_bootstrap(ha); in qla4_8xxx_device_state_handler()
3592 rval = QLA_ERROR; in qla4_8xxx_device_state_handler()
3598 rval = QLA_ERROR; in qla4_8xxx_device_state_handler()
3606 return rval; in qla4_8xxx_device_state_handler()
4010 int rval; in qla4_82xx_isp_reset() local
4026 rval = qla4_8xxx_device_state_handler(ha); in qla4_82xx_isp_reset()
4032 if (rval == QLA_SUCCESS) { in qla4_82xx_isp_reset()
4037 return rval; in qla4_82xx_isp_reset()