Lines Matching refs:idc
146 cur = adapter->ahw->idc.curr_state; in qlcnic_83xx_idc_log_state_history()
147 prev = adapter->ahw->idc.prev_state; in qlcnic_83xx_idc_log_state_history()
151 adapter->ahw->idc.name[cur], in qlcnic_83xx_idc_log_state_history()
152 adapter->ahw->idc.name[prev]); in qlcnic_83xx_idc_log_state_history()
170 seconds = jiffies / HZ - adapter->ahw->idc.sec_counter; in qlcnic_83xx_idc_update_audit_reg()
176 adapter->ahw->idc.sec_counter = jiffies / HZ; in qlcnic_83xx_idc_update_audit_reg()
310 seconds = jiffies / HZ - adapter->ahw->idc.sec_counter; in qlcnic_83xx_idc_check_timeout()
652 set_bit(QLC_83XX_MODULE_LOADED, &adapter->ahw->idc.status); in qlcnic_83xx_idc_update_idc_params()
654 ahw->idc.quiesce_req = 0; in qlcnic_83xx_idc_update_idc_params()
655 ahw->idc.delay = QLC_83XX_IDC_FW_POLL_DELAY; in qlcnic_83xx_idc_update_idc_params()
656 ahw->idc.err_code = 0; in qlcnic_83xx_idc_update_idc_params()
657 ahw->idc.collect_dump = 0; in qlcnic_83xx_idc_update_idc_params()
660 ahw->idc.delay_reset = 0; in qlcnic_83xx_idc_update_idc_params()
680 if (ahw->idc.prev_state != QLC_83XX_IDC_DEV_READY) { in qlcnic_83xx_idc_ready_state_entry()
683 if ((ahw->idc.prev_state == QLC_83XX_IDC_DEV_NEED_RESET) || in qlcnic_83xx_idc_ready_state_entry()
684 (ahw->idc.prev_state == QLC_83XX_IDC_DEV_INIT)) { in qlcnic_83xx_idc_ready_state_entry()
713 if (!ahw->idc.vnic_wait_limit--) { in qlcnic_83xx_idc_vnic_pf_entry()
722 if (ahw->idc.vnic_state != QLCNIC_DEV_NPAR_OPER) { in qlcnic_83xx_idc_vnic_pf_entry()
727 if (ahw->idc.prev_state != QLC_83XX_IDC_DEV_UNKNOWN) { in qlcnic_83xx_idc_vnic_pf_entry()
731 adapter->ahw->idc.vnic_state = QLCNIC_DEV_NPAR_OPER; in qlcnic_83xx_idc_vnic_pf_entry()
741 adapter->ahw->idc.err_code = -EIO; in qlcnic_83xx_idc_unknown_state()
796 if (adapter->ahw->idc.prev_state == QLC_83XX_IDC_DEV_NEED_RESET) { in qlcnic_83xx_idc_init_state()
826 if (ahw->idc.state_entry(adapter)) in qlcnic_83xx_idc_ready_state()
859 if ((val & QLC_83XX_IDC_GRACEFULL_RESET) || ahw->idc.collect_dump) { in qlcnic_83xx_idc_ready_state()
876 if (adapter->ahw->idc.quiesce_req) { in qlcnic_83xx_idc_ready_state()
902 if (adapter->ahw->idc.prev_state != QLC_83XX_IDC_DEV_NEED_RESET) { in qlcnic_83xx_idc_need_reset_state()
912 adapter->ahw->idc.delay_reset = 1; in qlcnic_83xx_idc_need_reset_state()
925 if (adapter->ahw->idc.delay_reset) { in qlcnic_83xx_idc_need_reset_state()
928 adapter->ahw->idc.delay_reset = 0; in qlcnic_83xx_idc_need_reset_state()
969 ahw->idc.err_code = -EIO; in qlcnic_83xx_idc_failed_state()
985 cur = adapter->ahw->idc.curr_state; in qlcnic_83xx_idc_check_state_validity()
986 prev = adapter->ahw->idc.prev_state; in qlcnic_83xx_idc_check_state_validity()
1115 adapter->ahw->idc.curr_state = QLC_83XX_IDC_DEV_UNKNOWN; in qlcnic_83xx_idc_poll_dev_state()
1117 adapter->ahw->idc.curr_state = state; in qlcnic_83xx_idc_poll_dev_state()
1120 switch (adapter->ahw->idc.curr_state) { in qlcnic_83xx_idc_poll_dev_state()
1143 adapter->ahw->idc.prev_state = adapter->ahw->idc.curr_state; in qlcnic_83xx_idc_poll_dev_state()
1147 if (test_bit(QLC_83XX_MODULE_LOADED, &adapter->ahw->idc.status)) in qlcnic_83xx_idc_poll_dev_state()
1149 adapter->ahw->idc.delay); in qlcnic_83xx_idc_poll_dev_state()
1167 adapter->ahw->idc.curr_state = QLC_83XX_IDC_DEV_UNKNOWN; in qlcnic_83xx_setup_idc_parameters()
1168 adapter->ahw->idc.prev_state = QLC_83XX_IDC_DEV_UNKNOWN; in qlcnic_83xx_setup_idc_parameters()
1169 adapter->ahw->idc.delay = QLC_83XX_IDC_FW_POLL_DELAY; in qlcnic_83xx_setup_idc_parameters()
1170 adapter->ahw->idc.err_code = 0; in qlcnic_83xx_setup_idc_parameters()
1171 adapter->ahw->idc.collect_dump = 0; in qlcnic_83xx_setup_idc_parameters()
1172 adapter->ahw->idc.name = (char **)qlc_83xx_idc_states; in qlcnic_83xx_setup_idc_parameters()
1175 set_bit(QLC_83XX_MODULE_LOADED, &adapter->ahw->idc.status); in qlcnic_83xx_setup_idc_parameters()
1213 adapter->ahw->idc.curr_state = state; in qlcnic_83xx_idc_first_to_load_function_handler()
1275 clear_bit(QLC_83XX_MODULE_LOADED, &adapter->ahw->idc.status); in qlcnic_83xx_idc_exit()
1308 adapter->ahw->idc.collect_dump = 1; in qlcnic_83xx_idc_request_reset()
2306 ahw->idc.state_entry = qlcnic_83xx_idc_ready_state_entry; in qlcnic_83xx_configure_opmode()
2550 struct qlc_83xx_idc *idc = &ahw->idc; in qlcnic_83xx_aer_stop_poll_work() local
2552 clear_bit(QLC_83XX_MBX_READY, &idc->status); in qlcnic_83xx_aer_stop_poll_work()
2567 struct qlc_83xx_idc *idc = &ahw->idc; in qlcnic_83xx_aer_reset() local
2575 idc->prev_state = QLC_83XX_IDC_DEV_NEED_RESET; in qlcnic_83xx_aer_reset()
2584 ret = idc->state_entry(adapter); in qlcnic_83xx_aer_reset()
2591 struct qlc_83xx_idc *idc = &ahw->idc; in qlcnic_83xx_aer_start_poll_work() local
2594 idc->prev_state = QLC_83XX_IDC_DEV_READY; in qlcnic_83xx_aer_start_poll_work()