Lines Matching refs:ahw

137 	val = QLCRDX(adapter->ahw, QLC_83XX_IDC_DRV_PRESENCE);  in qlcnic_83xx_idc_check_driver_presence_reg()
147 cur = adapter->ahw->idc.curr_state; in qlcnic_83xx_idc_log_state_history()
148 prev = adapter->ahw->idc.prev_state; in qlcnic_83xx_idc_log_state_history()
152 adapter->ahw->idc.name[cur], in qlcnic_83xx_idc_log_state_history()
153 adapter->ahw->idc.name[prev]); in qlcnic_83xx_idc_log_state_history()
167 val = QLCRDX(adapter->ahw, QLC_83XX_IDC_DRV_AUDIT); in qlcnic_83xx_idc_update_audit_reg()
171 seconds = jiffies / HZ - adapter->ahw->idc.sec_counter; in qlcnic_83xx_idc_update_audit_reg()
176 QLCWRX(adapter->ahw, QLC_83XX_IDC_DRV_AUDIT, val); in qlcnic_83xx_idc_update_audit_reg()
177 adapter->ahw->idc.sec_counter = jiffies / HZ; in qlcnic_83xx_idc_update_audit_reg()
189 val = QLCRDX(adapter->ahw, QLC_83XX_IDC_MIN_VERSION); in qlcnic_83xx_idc_update_minor_version()
192 QLCWRX(adapter->ahw, QLC_83XX_IDC_MIN_VERSION, val); in qlcnic_83xx_idc_update_minor_version()
205 val = QLCRDX(adapter->ahw, QLC_83XX_IDC_MAJ_VERSION); in qlcnic_83xx_idc_update_major_version()
208 QLCWRX(adapter->ahw, QLC_83XX_IDC_MAJ_VERSION, val); in qlcnic_83xx_idc_update_major_version()
227 val = QLCRDX(adapter->ahw, QLC_83XX_IDC_DRV_PRESENCE); in qlcnic_83xx_idc_update_drv_presence_reg()
234 QLCWRX(adapter->ahw, QLC_83XX_IDC_DRV_PRESENCE, val); in qlcnic_83xx_idc_update_drv_presence_reg()
248 val = QLCRDX(adapter->ahw, QLC_83XX_IDC_MAJ_VERSION); in qlcnic_83xx_idc_check_major_version()
271 QLCWRX(adapter->ahw, QLC_83XX_IDC_DRV_ACK, 0); in qlcnic_83xx_idc_clear_registers()
273 val = QLCRDX(adapter->ahw, QLC_83XX_IDC_CTRL); in qlcnic_83xx_idc_clear_registers()
275 QLCWRX(adapter->ahw, QLC_83XX_IDC_CTRL, val); in qlcnic_83xx_idc_clear_registers()
293 val = QLCRDX(adapter->ahw, QLC_83XX_IDC_DRV_ACK); in qlcnic_83xx_idc_update_drv_ack_reg()
298 QLCWRX(adapter->ahw, QLC_83XX_IDC_DRV_ACK, val); in qlcnic_83xx_idc_update_drv_ack_reg()
311 seconds = jiffies / HZ - adapter->ahw->idc.sec_counter; in qlcnic_83xx_idc_check_timeout()
333 ack = QLCRDX(adapter->ahw, QLC_83XX_IDC_DRV_ACK); in qlcnic_83xx_idc_check_reset_ack_reg()
334 presence = QLCRDX(adapter->ahw, QLC_83XX_IDC_DRV_PRESENCE); in qlcnic_83xx_idc_check_reset_ack_reg()
342 val = QLCRDX(adapter->ahw, QLC_83XX_IDC_DRV_PRESENCE); in qlcnic_83xx_idc_check_reset_ack_reg()
346 QLCWRX(adapter->ahw, QLC_83XX_IDC_DRV_PRESENCE, val); in qlcnic_83xx_idc_check_reset_ack_reg()
410 for (i = 0; i < adapter->ahw->num_msix; i++) { in qlcnic_83xx_idc_detach_driver()
411 adapter->ahw->intr_tbl[i].id = i; in qlcnic_83xx_idc_detach_driver()
412 adapter->ahw->intr_tbl[i].enabled = 0; in qlcnic_83xx_idc_detach_driver()
413 adapter->ahw->intr_tbl[i].src = 0; in qlcnic_83xx_idc_detach_driver()
451 QLCWRX(adapter->ahw, QLC_83XX_IDC_DEV_STATE, QLC_83XX_IDC_DEV_FAILED); in qlcnic_83xx_idc_enter_failed_state()
469 QLCWRX(adapter->ahw, QLC_83XX_IDC_DEV_STATE, QLC_83XX_IDC_DEV_INIT); in qlcnic_83xx_idc_enter_init_state()
485 QLCWRX(adapter->ahw, QLC_83XX_IDC_DEV_STATE, in qlcnic_83xx_idc_enter_need_quiesce()
502 QLCWRX(adapter->ahw, QLC_83XX_IDC_DEV_STATE, in qlcnic_83xx_idc_enter_need_reset_state()
519 QLCWRX(adapter->ahw, QLC_83XX_IDC_DEV_STATE, QLC_83XX_IDC_DEV_READY); in qlcnic_83xx_idc_enter_ready_state()
541 reg1 = QLCRDX(adapter->ahw, QLC_83XX_IDC_DEV_PARTITION_INFO_1); in qlcnic_83xx_idc_find_reset_owner_id()
542 reg2 = QLCRDX(adapter->ahw, QLC_83XX_IDC_DEV_PARTITION_INFO_2); in qlcnic_83xx_idc_find_reset_owner_id()
617 qlcnic_83xx_reinit_mbx_work(adapter->ahw->mailbox); in qlcnic_83xx_idc_reattach_driver()
649 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_idc_update_idc_params() local
653 set_bit(QLC_83XX_MODULE_LOADED, &adapter->ahw->idc.status); in qlcnic_83xx_idc_update_idc_params()
655 ahw->idc.quiesce_req = 0; in qlcnic_83xx_idc_update_idc_params()
656 ahw->idc.delay = QLC_83XX_IDC_FW_POLL_DELAY; in qlcnic_83xx_idc_update_idc_params()
657 ahw->idc.err_code = 0; in qlcnic_83xx_idc_update_idc_params()
658 ahw->idc.collect_dump = 0; in qlcnic_83xx_idc_update_idc_params()
659 ahw->reset_context = 0; in qlcnic_83xx_idc_update_idc_params()
661 ahw->idc.delay_reset = 0; in qlcnic_83xx_idc_update_idc_params()
679 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_idc_ready_state_entry() local
681 if (ahw->idc.prev_state != QLC_83XX_IDC_DEV_READY) { in qlcnic_83xx_idc_ready_state_entry()
684 if ((ahw->idc.prev_state == QLC_83XX_IDC_DEV_NEED_RESET) || in qlcnic_83xx_idc_ready_state_entry()
685 (ahw->idc.prev_state == QLC_83XX_IDC_DEV_INIT)) { in qlcnic_83xx_idc_ready_state_entry()
709 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_idc_vnic_pf_entry() local
712 state = QLCRDX(adapter->ahw, QLC_83XX_VNIC_STATE); in qlcnic_83xx_idc_vnic_pf_entry()
714 if (!ahw->idc.vnic_wait_limit--) { in qlcnic_83xx_idc_vnic_pf_entry()
723 if (ahw->idc.vnic_state != QLCNIC_DEV_NPAR_OPER) { in qlcnic_83xx_idc_vnic_pf_entry()
728 if (ahw->idc.prev_state != QLC_83XX_IDC_DEV_UNKNOWN) { in qlcnic_83xx_idc_vnic_pf_entry()
732 adapter->ahw->idc.vnic_state = QLCNIC_DEV_NPAR_OPER; in qlcnic_83xx_idc_vnic_pf_entry()
742 adapter->ahw->idc.err_code = -EIO; in qlcnic_83xx_idc_unknown_state()
797 if (adapter->ahw->idc.prev_state == QLC_83XX_IDC_DEV_NEED_RESET) { in qlcnic_83xx_idc_init_state()
799 if (adapter->ahw->pci_func == owner) in qlcnic_83xx_idc_init_state()
821 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_idc_ready_state() local
822 struct qlcnic_mailbox *mbx = ahw->mailbox; in qlcnic_83xx_idc_ready_state()
827 if (ahw->idc.state_entry(adapter)) in qlcnic_83xx_idc_ready_state()
831 if (ahw->temp == QLCNIC_TEMP_PANIC) { in qlcnic_83xx_idc_ready_state()
835 adapter->ahw->temp); in qlcnic_83xx_idc_ready_state()
844 val = QLCRDX(adapter->ahw, QLC_83XX_IDC_CTRL); in qlcnic_83xx_idc_ready_state()
860 if ((val & QLC_83XX_IDC_GRACEFULL_RESET) || ahw->idc.collect_dump) { in qlcnic_83xx_idc_ready_state()
869 if (ahw->reset_context && in qlcnic_83xx_idc_ready_state()
871 adapter->ahw->reset_context = 0; in qlcnic_83xx_idc_ready_state()
877 if (adapter->ahw->idc.quiesce_req) { in qlcnic_83xx_idc_ready_state()
900 struct qlcnic_mailbox *mbx = adapter->ahw->mailbox; in qlcnic_83xx_idc_need_reset_state()
903 if (adapter->ahw->idc.prev_state != QLC_83XX_IDC_DEV_NEED_RESET) { in qlcnic_83xx_idc_need_reset_state()
907 if (adapter->ahw->nic_mode == QLCNIC_VNIC_MODE) in qlcnic_83xx_idc_need_reset_state()
913 adapter->ahw->idc.delay_reset = 1; in qlcnic_83xx_idc_need_reset_state()
926 if (adapter->ahw->idc.delay_reset) { in qlcnic_83xx_idc_need_reset_state()
929 adapter->ahw->idc.delay_reset = 0; in qlcnic_83xx_idc_need_reset_state()
955 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_idc_failed_state() local
958 val = QLCRDX(adapter->ahw, QLC_83XX_IDC_CTRL); in qlcnic_83xx_idc_failed_state()
961 if (ahw->pci_func == owner) { in qlcnic_83xx_idc_failed_state()
970 ahw->idc.err_code = -EIO; in qlcnic_83xx_idc_failed_state()
986 cur = adapter->ahw->idc.curr_state; in qlcnic_83xx_idc_check_state_validity()
987 prev = adapter->ahw->idc.prev_state; in qlcnic_83xx_idc_check_state_validity()
1033 u16 port = adapter->ahw->vxlan_port; in qlcnic_set_vxlan_port()
1063 u16 vxlan_port = adapter->ahw->vxlan_port; in qlcnic_set_vxlan_parsing()
1109 adapter->ahw->vxlan_port = 0; in qlcnic_83xx_periodic_tasks()
1131 state = QLCRDX(adapter->ahw, QLC_83XX_IDC_DEV_STATE); in qlcnic_83xx_idc_poll_dev_state()
1135 adapter->ahw->idc.curr_state = QLC_83XX_IDC_DEV_UNKNOWN; in qlcnic_83xx_idc_poll_dev_state()
1137 adapter->ahw->idc.curr_state = state; in qlcnic_83xx_idc_poll_dev_state()
1140 switch (adapter->ahw->idc.curr_state) { in qlcnic_83xx_idc_poll_dev_state()
1163 adapter->ahw->idc.prev_state = adapter->ahw->idc.curr_state; in qlcnic_83xx_idc_poll_dev_state()
1167 if (test_bit(QLC_83XX_MODULE_LOADED, &adapter->ahw->idc.status)) in qlcnic_83xx_idc_poll_dev_state()
1169 adapter->ahw->idc.delay); in qlcnic_83xx_idc_poll_dev_state()
1187 adapter->ahw->idc.curr_state = QLC_83XX_IDC_DEV_UNKNOWN; in qlcnic_83xx_setup_idc_parameters()
1188 adapter->ahw->idc.prev_state = QLC_83XX_IDC_DEV_UNKNOWN; in qlcnic_83xx_setup_idc_parameters()
1189 adapter->ahw->idc.delay = QLC_83XX_IDC_FW_POLL_DELAY; in qlcnic_83xx_setup_idc_parameters()
1190 adapter->ahw->idc.err_code = 0; in qlcnic_83xx_setup_idc_parameters()
1191 adapter->ahw->idc.collect_dump = 0; in qlcnic_83xx_setup_idc_parameters()
1192 adapter->ahw->idc.name = (char **)qlc_83xx_idc_states; in qlcnic_83xx_setup_idc_parameters()
1195 set_bit(QLC_83XX_MODULE_LOADED, &adapter->ahw->idc.status); in qlcnic_83xx_setup_idc_parameters()
1200 val = QLCRDX(adapter->ahw, QLC_83XX_IDC_CTRL); in qlcnic_83xx_setup_idc_parameters()
1202 QLCWRX(adapter->ahw, QLC_83XX_IDC_CTRL, val); in qlcnic_83xx_setup_idc_parameters()
1215 QLCWRX(adapter->ahw, QLC_83XX_RECOVER_DRV_LOCK, 0); in qlcnic_83xx_idc_first_to_load_function_handler()
1221 state = QLCRDX(adapter->ahw, QLC_83XX_IDC_DEV_STATE); in qlcnic_83xx_idc_first_to_load_function_handler()
1228 QLCWRX(adapter->ahw, QLC_83XX_IDC_DEV_STATE, in qlcnic_83xx_idc_first_to_load_function_handler()
1233 adapter->ahw->idc.curr_state = state; in qlcnic_83xx_idc_first_to_load_function_handler()
1240 val = QLCRDX(adapter->ahw, QLC_83XX_IDC_CTRL); in qlcnic_83xx_idc_first_to_load_function_handler()
1242 QLCWRX(adapter->ahw, QLC_83XX_IDC_CTRL, val); in qlcnic_83xx_idc_first_to_load_function_handler()
1280 id = QLCRDX(adapter->ahw, QLC_83XX_DRV_LOCK_ID); in qlcnic_83xx_idc_exit()
1287 id = QLCRDX(adapter->ahw, QLC_83XX_DRV_LOCK_ID); in qlcnic_83xx_idc_exit()
1292 val = QLCRDX(adapter->ahw, QLC_83XX_IDC_DRV_PRESENCE); in qlcnic_83xx_idc_exit()
1294 QLCWRX(adapter->ahw, QLC_83XX_IDC_DRV_PRESENCE, val); in qlcnic_83xx_idc_exit()
1295 clear_bit(QLC_83XX_MODULE_LOADED, &adapter->ahw->idc.status); in qlcnic_83xx_idc_exit()
1314 val = QLCRDX(adapter->ahw, QLC_83XX_IDC_CTRL); in qlcnic_83xx_idc_request_reset()
1324 val = QLCRDX(adapter->ahw, QLC_83XX_IDC_CTRL); in qlcnic_83xx_idc_request_reset()
1326 QLCWRX(adapter->ahw, QLC_83XX_IDC_CTRL, val); in qlcnic_83xx_idc_request_reset()
1328 adapter->ahw->idc.collect_dump = 1; in qlcnic_83xx_idc_request_reset()
1343 dest = QLCRDX(adapter->ahw, QLCNIC_BOOTLOADER_ADDR); in qlcnic_83xx_copy_bootloader()
1344 size = QLCRDX(adapter->ahw, QLCNIC_BOOTLOADER_SIZE); in qlcnic_83xx_copy_bootloader()
1374 struct qlc_83xx_fw_info *fw_info = adapter->ahw->fw_info; in qlcnic_83xx_copy_fw_file()
1398 dest = QLCRDX(adapter->ahw, QLCNIC_FW_IMAGE_ADDR); in qlcnic_83xx_copy_fw_file()
1674 p_dev->ahw->reset.seq_error++; in qlcnic_83xx_poll_reg()
1677 __func__, p_dev->ahw->reset.seq_index); in qlcnic_83xx_poll_reg()
1689 u16 *buff = (u16 *)p_dev->ahw->reset.buff; in qlcnic_83xx_reset_template_checksum()
1690 int count = p_dev->ahw->reset.hdr->size / sizeof(u16); in qlcnic_83xx_reset_template_checksum()
1708 struct qlcnic_hardware_context *ahw = p_dev->ahw; in qlcnic_83xx_get_reset_instruction_template() local
1712 if (ahw->reset.buff != NULL) { in qlcnic_83xx_get_reset_instruction_template()
1716 kfree(ahw->reset.buff); in qlcnic_83xx_get_reset_instruction_template()
1721 ahw->reset.seq_error = 0; in qlcnic_83xx_get_reset_instruction_template()
1722 ahw->reset.buff = kzalloc(QLC_83XX_RESTART_TEMPLATE_SIZE, GFP_KERNEL); in qlcnic_83xx_get_reset_instruction_template()
1723 if (p_dev->ahw->reset.buff == NULL) in qlcnic_83xx_get_reset_instruction_template()
1726 p_buff = p_dev->ahw->reset.buff; in qlcnic_83xx_get_reset_instruction_template()
1735 ahw->reset.hdr = (struct qlc_83xx_reset_hdr *)ahw->reset.buff; in qlcnic_83xx_get_reset_instruction_template()
1736 addr = QLC_83XX_RESET_TEMPLATE_ADDR + ahw->reset.hdr->hdr_size; in qlcnic_83xx_get_reset_instruction_template()
1737 p_buff = ahw->reset.buff + ahw->reset.hdr->hdr_size; in qlcnic_83xx_get_reset_instruction_template()
1738 count = (ahw->reset.hdr->size - ahw->reset.hdr->hdr_size) / sizeof(u32); in qlcnic_83xx_get_reset_instruction_template()
1749 ahw->reset.init_offset = ahw->reset.buff + ahw->reset.hdr->init_offset; in qlcnic_83xx_get_reset_instruction_template()
1750 ahw->reset.start_offset = ahw->reset.buff + in qlcnic_83xx_get_reset_instruction_template()
1751 ahw->reset.hdr->start_offset; in qlcnic_83xx_get_reset_instruction_template()
1752 ahw->reset.stop_offset = ahw->reset.buff + ahw->reset.hdr->hdr_size; in qlcnic_83xx_get_reset_instruction_template()
1778 value = p_dev->ahw->reset.array[p_rmw_hdr->index_a]; in qlcnic_83xx_rmw_crb_reg()
1949 index = p_dev->ahw->reset.array_index; in qlcnic_83xx_poll_read_list()
1955 p_dev->ahw->reset.array[index++] = j; in qlcnic_83xx_poll_read_list()
1958 p_dev->ahw->reset.array_index = 1; in qlcnic_83xx_poll_read_list()
1966 p_dev->ahw->reset.seq_end = 1; in qlcnic_83xx_seq_end()
1971 p_dev->ahw->reset.template_end = 1; in qlcnic_83xx_template_end()
1972 if (p_dev->ahw->reset.seq_error == 0) in qlcnic_83xx_template_end()
2001 p_dev->ahw->reset.seq_end = 0; in qlcnic_83xx_exec_template_cmd()
2002 p_dev->ahw->reset.template_end = 0; in qlcnic_83xx_exec_template_cmd()
2003 entries = p_dev->ahw->reset.hdr->entries; in qlcnic_83xx_exec_template_cmd()
2004 index = p_dev->ahw->reset.seq_index; in qlcnic_83xx_exec_template_cmd()
2006 for (; (!p_dev->ahw->reset.seq_end) && (index < entries); index++) { in qlcnic_83xx_exec_template_cmd()
2047 p_dev->ahw->reset.seq_index = index; in qlcnic_83xx_exec_template_cmd()
2052 p_dev->ahw->reset.seq_index = 0; in qlcnic_83xx_stop_hw()
2054 qlcnic_83xx_exec_template_cmd(p_dev, p_dev->ahw->reset.stop_offset); in qlcnic_83xx_stop_hw()
2055 if (p_dev->ahw->reset.seq_end != 1) in qlcnic_83xx_stop_hw()
2061 qlcnic_83xx_exec_template_cmd(p_dev, p_dev->ahw->reset.start_offset); in qlcnic_83xx_start_hw()
2062 if (p_dev->ahw->reset.template_end != 1) in qlcnic_83xx_start_hw()
2068 qlcnic_83xx_exec_template_cmd(p_dev, p_dev->ahw->reset.init_offset); in qlcnic_83xx_init_hw()
2069 if (p_dev->ahw->reset.seq_end != 1) in qlcnic_83xx_init_hw()
2094 struct qlc_83xx_fw_info *fw_info = adapter->ahw->fw_info; in qlcnic_83xx_run_post()
2100 switch (adapter->ahw->post_mode) { in qlcnic_83xx_run_post()
2132 adapter->ahw->post_mode); in qlcnic_83xx_run_post()
2190 struct qlc_83xx_fw_info *fw_info = adapter->ahw->fw_info; in qlcnic_83xx_load_fw_image_from_host()
2217 val = QLCRDX(adapter->ahw, QLC_83XX_IDC_CTRL); in qlcnic_83xx_restart_hw()
2234 if (adapter->ahw->run_post) { in qlcnic_83xx_restart_hw()
2240 adapter->ahw->run_post = false; in qlcnic_83xx_restart_hw()
2271 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_get_nic_configuration() local
2274 err = qlcnic_get_nic_info(adapter, &nic_info, ahw->pci_func); in qlcnic_83xx_get_nic_configuration()
2278 ahw->physical_port = (u8) nic_info.phys_port; in qlcnic_83xx_get_nic_configuration()
2279 ahw->switch_mode = nic_info.switch_mode; in qlcnic_83xx_get_nic_configuration()
2280 ahw->max_tx_ques = nic_info.max_tx_ques; in qlcnic_83xx_get_nic_configuration()
2281 ahw->max_rx_ques = nic_info.max_rx_ques; in qlcnic_83xx_get_nic_configuration()
2282 ahw->capabilities = nic_info.capabilities; in qlcnic_83xx_get_nic_configuration()
2283 ahw->max_mac_filters = nic_info.max_mac_filters; in qlcnic_83xx_get_nic_configuration()
2284 ahw->max_mtu = nic_info.max_mtu; in qlcnic_83xx_get_nic_configuration()
2297 if (ahw->capabilities & QLC_83XX_ESWITCH_CAPABILITY) in qlcnic_83xx_get_nic_configuration()
2305 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_configure_opmode() local
2314 ahw->nic_mode = QLCNIC_VNIC_MODE; in qlcnic_83xx_configure_opmode()
2322 ahw->nic_mode = QLCNIC_DEFAULT_MODE; in qlcnic_83xx_configure_opmode()
2324 ahw->idc.state_entry = qlcnic_83xx_idc_ready_state_entry; in qlcnic_83xx_configure_opmode()
2333 adapter->max_sds_rings = min(ahw->max_rx_ques, max_sds_rings); in qlcnic_83xx_configure_opmode()
2334 adapter->max_tx_rings = min(ahw->max_tx_ques, max_tx_rings); in qlcnic_83xx_configure_opmode()
2341 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_config_buff_descriptors() local
2343 if (ahw->port_type == QLCNIC_XGBE) { in qlcnic_83xx_config_buff_descriptors()
2349 } else if (ahw->port_type == QLCNIC_GBE) { in qlcnic_83xx_config_buff_descriptors()
2368 adapter->ahw->msix_supported = !!qlcnic_use_msi_x; in qlcnic_83xx_init_default_driver()
2372 adapter->ahw->fw_hal_version); in qlcnic_83xx_init_default_driver()
2384 presence_mask = QLCRDX(adapter->ahw, QLC_83XX_IDC_DRV_PRESENCE); in qlcnic_83xx_clear_function_resources()
2385 audit_mask = QLCRDX(adapter->ahw, QLC_83XX_IDC_DRV_AUDIT); in qlcnic_83xx_clear_function_resources()
2404 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_get_fw_info() local
2409 ahw->fw_info = kzalloc(sizeof(*fw_info), GFP_KERNEL); in qlcnic_83xx_get_fw_info()
2410 if (!ahw->fw_info) { in qlcnic_83xx_get_fw_info()
2413 fw_info = ahw->fw_info; in qlcnic_83xx_get_fw_info()
2443 if (!adapter->ahw->msix_supported) { in qlcnic_83xx_init_rings()
2455 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_init() local
2459 ahw->msix_supported = !!qlcnic_use_msi_x; in qlcnic_83xx_init()
2464 ahw->post_mode = QLC_83XX_POST_FAST_MODE; in qlcnic_83xx_init()
2465 ahw->run_post = true; in qlcnic_83xx_init()
2468 ahw->post_mode = QLC_83XX_POST_MEDIUM_MODE; in qlcnic_83xx_init()
2469 ahw->run_post = true; in qlcnic_83xx_init()
2472 ahw->post_mode = QLC_83XX_POST_SLOW_MODE; in qlcnic_83xx_init()
2473 ahw->run_post = true; in qlcnic_83xx_init()
2476 ahw->run_post = false; in qlcnic_83xx_init()
2553 qlcnic_83xx_free_mailbox(ahw->mailbox); in qlcnic_83xx_init()
2554 ahw->mailbox = NULL; in qlcnic_83xx_init()
2561 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_aer_stop_poll_work() local
2562 struct qlc_83xx_idc *idc = &ahw->idc; in qlcnic_83xx_aer_stop_poll_work()
2567 if (ahw->nic_mode == QLCNIC_VNIC_MODE) in qlcnic_83xx_aer_stop_poll_work()
2578 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_aer_reset() local
2579 struct qlc_83xx_idc *idc = &ahw->idc; in qlcnic_83xx_aer_reset()
2589 if (ahw->pci_func == owner) { in qlcnic_83xx_aer_reset()
2602 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_aer_start_poll_work() local
2603 struct qlc_83xx_idc *idc = &ahw->idc; in qlcnic_83xx_aer_start_poll_work()
2608 if (ahw->pci_func == owner) in qlcnic_83xx_aer_start_poll_work()