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()
1034 u16 port = adapter->ahw->vxlan_port; in qlcnic_set_vxlan_port()
1064 u16 vxlan_port = adapter->ahw->vxlan_port; in qlcnic_set_vxlan_parsing()
1112 adapter->ahw->vxlan_port = 0; in qlcnic_83xx_periodic_tasks()
1135 state = QLCRDX(adapter->ahw, QLC_83XX_IDC_DEV_STATE); in qlcnic_83xx_idc_poll_dev_state()
1139 adapter->ahw->idc.curr_state = QLC_83XX_IDC_DEV_UNKNOWN; in qlcnic_83xx_idc_poll_dev_state()
1141 adapter->ahw->idc.curr_state = state; in qlcnic_83xx_idc_poll_dev_state()
1144 switch (adapter->ahw->idc.curr_state) { in qlcnic_83xx_idc_poll_dev_state()
1167 adapter->ahw->idc.prev_state = adapter->ahw->idc.curr_state; in qlcnic_83xx_idc_poll_dev_state()
1171 if (test_bit(QLC_83XX_MODULE_LOADED, &adapter->ahw->idc.status)) in qlcnic_83xx_idc_poll_dev_state()
1173 adapter->ahw->idc.delay); in qlcnic_83xx_idc_poll_dev_state()
1191 adapter->ahw->idc.curr_state = QLC_83XX_IDC_DEV_UNKNOWN; in qlcnic_83xx_setup_idc_parameters()
1192 adapter->ahw->idc.prev_state = QLC_83XX_IDC_DEV_UNKNOWN; in qlcnic_83xx_setup_idc_parameters()
1193 adapter->ahw->idc.delay = QLC_83XX_IDC_FW_POLL_DELAY; in qlcnic_83xx_setup_idc_parameters()
1194 adapter->ahw->idc.err_code = 0; in qlcnic_83xx_setup_idc_parameters()
1195 adapter->ahw->idc.collect_dump = 0; in qlcnic_83xx_setup_idc_parameters()
1196 adapter->ahw->idc.name = (char **)qlc_83xx_idc_states; in qlcnic_83xx_setup_idc_parameters()
1199 set_bit(QLC_83XX_MODULE_LOADED, &adapter->ahw->idc.status); in qlcnic_83xx_setup_idc_parameters()
1204 val = QLCRDX(adapter->ahw, QLC_83XX_IDC_CTRL); in qlcnic_83xx_setup_idc_parameters()
1206 QLCWRX(adapter->ahw, QLC_83XX_IDC_CTRL, val); in qlcnic_83xx_setup_idc_parameters()
1219 QLCWRX(adapter->ahw, QLC_83XX_RECOVER_DRV_LOCK, 0); in qlcnic_83xx_idc_first_to_load_function_handler()
1225 state = QLCRDX(adapter->ahw, QLC_83XX_IDC_DEV_STATE); in qlcnic_83xx_idc_first_to_load_function_handler()
1232 QLCWRX(adapter->ahw, QLC_83XX_IDC_DEV_STATE, in qlcnic_83xx_idc_first_to_load_function_handler()
1237 adapter->ahw->idc.curr_state = state; in qlcnic_83xx_idc_first_to_load_function_handler()
1244 val = QLCRDX(adapter->ahw, QLC_83XX_IDC_CTRL); in qlcnic_83xx_idc_first_to_load_function_handler()
1246 QLCWRX(adapter->ahw, QLC_83XX_IDC_CTRL, val); in qlcnic_83xx_idc_first_to_load_function_handler()
1284 id = QLCRDX(adapter->ahw, QLC_83XX_DRV_LOCK_ID); in qlcnic_83xx_idc_exit()
1291 id = QLCRDX(adapter->ahw, QLC_83XX_DRV_LOCK_ID); in qlcnic_83xx_idc_exit()
1296 val = QLCRDX(adapter->ahw, QLC_83XX_IDC_DRV_PRESENCE); in qlcnic_83xx_idc_exit()
1298 QLCWRX(adapter->ahw, QLC_83XX_IDC_DRV_PRESENCE, val); in qlcnic_83xx_idc_exit()
1299 clear_bit(QLC_83XX_MODULE_LOADED, &adapter->ahw->idc.status); in qlcnic_83xx_idc_exit()
1318 val = QLCRDX(adapter->ahw, QLC_83XX_IDC_CTRL); in qlcnic_83xx_idc_request_reset()
1328 val = QLCRDX(adapter->ahw, QLC_83XX_IDC_CTRL); in qlcnic_83xx_idc_request_reset()
1330 QLCWRX(adapter->ahw, QLC_83XX_IDC_CTRL, val); in qlcnic_83xx_idc_request_reset()
1332 adapter->ahw->idc.collect_dump = 1; in qlcnic_83xx_idc_request_reset()
1347 dest = QLCRDX(adapter->ahw, QLCNIC_BOOTLOADER_ADDR); in qlcnic_83xx_copy_bootloader()
1348 size = QLCRDX(adapter->ahw, QLCNIC_BOOTLOADER_SIZE); in qlcnic_83xx_copy_bootloader()
1378 struct qlc_83xx_fw_info *fw_info = adapter->ahw->fw_info; in qlcnic_83xx_copy_fw_file()
1402 dest = QLCRDX(adapter->ahw, QLCNIC_FW_IMAGE_ADDR); in qlcnic_83xx_copy_fw_file()
1678 p_dev->ahw->reset.seq_error++; in qlcnic_83xx_poll_reg()
1681 __func__, p_dev->ahw->reset.seq_index); in qlcnic_83xx_poll_reg()
1693 u16 *buff = (u16 *)p_dev->ahw->reset.buff; in qlcnic_83xx_reset_template_checksum()
1694 int count = p_dev->ahw->reset.hdr->size / sizeof(u16); in qlcnic_83xx_reset_template_checksum()
1712 struct qlcnic_hardware_context *ahw = p_dev->ahw; in qlcnic_83xx_get_reset_instruction_template() local
1716 if (ahw->reset.buff != NULL) { in qlcnic_83xx_get_reset_instruction_template()
1720 kfree(ahw->reset.buff); in qlcnic_83xx_get_reset_instruction_template()
1725 ahw->reset.seq_error = 0; in qlcnic_83xx_get_reset_instruction_template()
1726 ahw->reset.buff = kzalloc(QLC_83XX_RESTART_TEMPLATE_SIZE, GFP_KERNEL); in qlcnic_83xx_get_reset_instruction_template()
1727 if (p_dev->ahw->reset.buff == NULL) in qlcnic_83xx_get_reset_instruction_template()
1730 p_buff = p_dev->ahw->reset.buff; in qlcnic_83xx_get_reset_instruction_template()
1739 ahw->reset.hdr = (struct qlc_83xx_reset_hdr *)ahw->reset.buff; in qlcnic_83xx_get_reset_instruction_template()
1740 addr = QLC_83XX_RESET_TEMPLATE_ADDR + ahw->reset.hdr->hdr_size; in qlcnic_83xx_get_reset_instruction_template()
1741 p_buff = ahw->reset.buff + ahw->reset.hdr->hdr_size; in qlcnic_83xx_get_reset_instruction_template()
1742 count = (ahw->reset.hdr->size - ahw->reset.hdr->hdr_size) / sizeof(u32); in qlcnic_83xx_get_reset_instruction_template()
1753 ahw->reset.init_offset = ahw->reset.buff + ahw->reset.hdr->init_offset; in qlcnic_83xx_get_reset_instruction_template()
1754 ahw->reset.start_offset = ahw->reset.buff + in qlcnic_83xx_get_reset_instruction_template()
1755 ahw->reset.hdr->start_offset; in qlcnic_83xx_get_reset_instruction_template()
1756 ahw->reset.stop_offset = ahw->reset.buff + ahw->reset.hdr->hdr_size; in qlcnic_83xx_get_reset_instruction_template()
1782 value = p_dev->ahw->reset.array[p_rmw_hdr->index_a]; in qlcnic_83xx_rmw_crb_reg()
1953 index = p_dev->ahw->reset.array_index; in qlcnic_83xx_poll_read_list()
1959 p_dev->ahw->reset.array[index++] = j; in qlcnic_83xx_poll_read_list()
1962 p_dev->ahw->reset.array_index = 1; in qlcnic_83xx_poll_read_list()
1970 p_dev->ahw->reset.seq_end = 1; in qlcnic_83xx_seq_end()
1975 p_dev->ahw->reset.template_end = 1; in qlcnic_83xx_template_end()
1976 if (p_dev->ahw->reset.seq_error == 0) in qlcnic_83xx_template_end()
2005 p_dev->ahw->reset.seq_end = 0; in qlcnic_83xx_exec_template_cmd()
2006 p_dev->ahw->reset.template_end = 0; in qlcnic_83xx_exec_template_cmd()
2007 entries = p_dev->ahw->reset.hdr->entries; in qlcnic_83xx_exec_template_cmd()
2008 index = p_dev->ahw->reset.seq_index; in qlcnic_83xx_exec_template_cmd()
2010 for (; (!p_dev->ahw->reset.seq_end) && (index < entries); index++) { in qlcnic_83xx_exec_template_cmd()
2051 p_dev->ahw->reset.seq_index = index; in qlcnic_83xx_exec_template_cmd()
2056 p_dev->ahw->reset.seq_index = 0; in qlcnic_83xx_stop_hw()
2058 qlcnic_83xx_exec_template_cmd(p_dev, p_dev->ahw->reset.stop_offset); in qlcnic_83xx_stop_hw()
2059 if (p_dev->ahw->reset.seq_end != 1) in qlcnic_83xx_stop_hw()
2065 qlcnic_83xx_exec_template_cmd(p_dev, p_dev->ahw->reset.start_offset); in qlcnic_83xx_start_hw()
2066 if (p_dev->ahw->reset.template_end != 1) in qlcnic_83xx_start_hw()
2072 qlcnic_83xx_exec_template_cmd(p_dev, p_dev->ahw->reset.init_offset); in qlcnic_83xx_init_hw()
2073 if (p_dev->ahw->reset.seq_end != 1) in qlcnic_83xx_init_hw()
2098 struct qlc_83xx_fw_info *fw_info = adapter->ahw->fw_info; in qlcnic_83xx_run_post()
2104 switch (adapter->ahw->post_mode) { in qlcnic_83xx_run_post()
2136 adapter->ahw->post_mode); in qlcnic_83xx_run_post()
2194 struct qlc_83xx_fw_info *fw_info = adapter->ahw->fw_info; in qlcnic_83xx_load_fw_image_from_host()
2221 val = QLCRDX(adapter->ahw, QLC_83XX_IDC_CTRL); in qlcnic_83xx_restart_hw()
2238 if (adapter->ahw->run_post) { in qlcnic_83xx_restart_hw()
2244 adapter->ahw->run_post = false; in qlcnic_83xx_restart_hw()
2275 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_get_nic_configuration() local
2278 err = qlcnic_get_nic_info(adapter, &nic_info, ahw->pci_func); in qlcnic_83xx_get_nic_configuration()
2282 ahw->physical_port = (u8) nic_info.phys_port; in qlcnic_83xx_get_nic_configuration()
2283 ahw->switch_mode = nic_info.switch_mode; in qlcnic_83xx_get_nic_configuration()
2284 ahw->max_tx_ques = nic_info.max_tx_ques; in qlcnic_83xx_get_nic_configuration()
2285 ahw->max_rx_ques = nic_info.max_rx_ques; in qlcnic_83xx_get_nic_configuration()
2286 ahw->capabilities = nic_info.capabilities; in qlcnic_83xx_get_nic_configuration()
2287 ahw->max_mac_filters = nic_info.max_mac_filters; in qlcnic_83xx_get_nic_configuration()
2288 ahw->max_mtu = nic_info.max_mtu; in qlcnic_83xx_get_nic_configuration()
2301 if (ahw->capabilities & QLC_83XX_ESWITCH_CAPABILITY) in qlcnic_83xx_get_nic_configuration()
2309 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_configure_opmode() local
2318 ahw->nic_mode = QLCNIC_VNIC_MODE; in qlcnic_83xx_configure_opmode()
2326 ahw->nic_mode = QLCNIC_DEFAULT_MODE; in qlcnic_83xx_configure_opmode()
2328 ahw->idc.state_entry = qlcnic_83xx_idc_ready_state_entry; in qlcnic_83xx_configure_opmode()
2337 adapter->max_sds_rings = min(ahw->max_rx_ques, max_sds_rings); in qlcnic_83xx_configure_opmode()
2338 adapter->max_tx_rings = min(ahw->max_tx_ques, max_tx_rings); in qlcnic_83xx_configure_opmode()
2345 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_config_buff_descriptors() local
2347 if (ahw->port_type == QLCNIC_XGBE) { in qlcnic_83xx_config_buff_descriptors()
2353 } else if (ahw->port_type == QLCNIC_GBE) { in qlcnic_83xx_config_buff_descriptors()
2372 adapter->ahw->msix_supported = !!qlcnic_use_msi_x; in qlcnic_83xx_init_default_driver()
2376 adapter->ahw->fw_hal_version); in qlcnic_83xx_init_default_driver()
2388 presence_mask = QLCRDX(adapter->ahw, QLC_83XX_IDC_DRV_PRESENCE); in qlcnic_83xx_clear_function_resources()
2389 audit_mask = QLCRDX(adapter->ahw, QLC_83XX_IDC_DRV_AUDIT); in qlcnic_83xx_clear_function_resources()
2408 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_get_fw_info() local
2413 ahw->fw_info = kzalloc(sizeof(*fw_info), GFP_KERNEL); in qlcnic_83xx_get_fw_info()
2414 if (!ahw->fw_info) { in qlcnic_83xx_get_fw_info()
2417 fw_info = ahw->fw_info; in qlcnic_83xx_get_fw_info()
2447 if (!adapter->ahw->msix_supported) { in qlcnic_83xx_init_rings()
2459 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_init() local
2463 ahw->msix_supported = !!qlcnic_use_msi_x; in qlcnic_83xx_init()
2468 ahw->post_mode = QLC_83XX_POST_FAST_MODE; in qlcnic_83xx_init()
2469 ahw->run_post = true; in qlcnic_83xx_init()
2472 ahw->post_mode = QLC_83XX_POST_MEDIUM_MODE; in qlcnic_83xx_init()
2473 ahw->run_post = true; in qlcnic_83xx_init()
2476 ahw->post_mode = QLC_83XX_POST_SLOW_MODE; in qlcnic_83xx_init()
2477 ahw->run_post = true; in qlcnic_83xx_init()
2480 ahw->run_post = false; in qlcnic_83xx_init()
2557 qlcnic_83xx_free_mailbox(ahw->mailbox); in qlcnic_83xx_init()
2558 ahw->mailbox = NULL; in qlcnic_83xx_init()
2565 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_aer_stop_poll_work() local
2566 struct qlc_83xx_idc *idc = &ahw->idc; in qlcnic_83xx_aer_stop_poll_work()
2571 if (ahw->nic_mode == QLCNIC_VNIC_MODE) in qlcnic_83xx_aer_stop_poll_work()
2582 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_aer_reset() local
2583 struct qlc_83xx_idc *idc = &ahw->idc; in qlcnic_83xx_aer_reset()
2593 if (ahw->pci_func == owner) { in qlcnic_83xx_aer_reset()
2606 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_aer_start_poll_work() local
2607 struct qlc_83xx_idc *idc = &ahw->idc; in qlcnic_83xx_aer_start_poll_work()
2612 if (ahw->pci_func == owner) in qlcnic_83xx_aer_start_poll_work()