Lines Matching refs:ahw

372 	legacy_intrp = &legacy_intr[adapter->ahw.pci_func];  in qlcnic_setup_intr()
410 msi_tgt_status[adapter->ahw.pci_func]); in qlcnic_setup_intr()
432 if (adapter->ahw.pci_base0 != NULL) in qlcnic_cleanup_pci_map()
433 iounmap(adapter->ahw.pci_base0); in qlcnic_cleanup_pci_map()
501 void __iomem *priv_op = adapter->ahw.pci_base0 + QLCNIC_DRV_OP_MODE; in qlcnic_set_function_modes()
513 id == adapter->ahw.pci_func) in qlcnic_set_function_modes()
520 data = (data & ~QLC_DEV_SET_DRV(0xf, adapter->ahw.pci_func)) | in qlcnic_set_function_modes()
522 adapter->ahw.pci_func)); in qlcnic_set_function_modes()
540 adapter->fw_hal_version = readl(adapter->ahw.pci_base0 + QLCNIC_FW_API); in qlcnic_check_vf()
544 msix_base_addr = adapter->ahw.pci_base0 + QLCNIC_MSIX_BASE; in qlcnic_check_vf()
547 adapter->ahw.pci_func = func; in qlcnic_check_vf()
550 priv_op = adapter->ahw.pci_base0 + QLCNIC_DRV_OP_MODE; in qlcnic_check_vf()
555 priv_level = QLC_DEV_GET_DRV(op_mode, adapter->ahw.pci_func); in qlcnic_check_vf()
594 adapter->ahw.pci_base0 = mem_ptr0; in qlcnic_setup_pci_map()
595 adapter->ahw.pci_len0 = pci_len0; in qlcnic_setup_pci_map()
599 adapter->ahw.ocm_win_crb = qlcnic_get_ioaddr(adapter, in qlcnic_setup_pci_map()
600 QLCNIC_PCIX_PS_REG(PCIX_OCM_WINDOW_REG(adapter->ahw.pci_func))); in qlcnic_setup_pci_map()
642 if (adapter->ahw.port_type == QLCNIC_XGBE) { in qlcnic_check_options()
654 } else if (adapter->ahw.port_type == QLCNIC_GBE) { in qlcnic_check_options()
675 err = qlcnic_get_nic_info(adapter, &nic_info, adapter->ahw.pci_func); in qlcnic_initialize_nic()
737 esw_cfg.pci_func = adapter->ahw.pci_func; in qlcnic_set_eswitch_port_config()
794 priv_op = adapter->ahw.pci_base0 + QLCNIC_DRV_OP_MODE; in qlcnic_check_eswitch_mode()
796 priv_level = QLC_DEV_GET_DRV(op_mode, adapter->ahw.pci_func); in qlcnic_check_eswitch_mode()
801 priv_level = QLC_DEV_GET_DRV(op_mode, adapter->ahw.pci_func); in qlcnic_check_eswitch_mode()
1125 adapter->ahw.linkup = 0; in __qlcnic_up()
1507 adapter->ahw.revision_id = revision_id; in qlcnic_probe()
1509 rwlock_init(&adapter->ahw.crb_lock); in qlcnic_probe()
1510 mutex_init(&adapter->ahw.mem_lock); in qlcnic_probe()
1520 adapter->portnum = adapter->ahw.pci_func; in qlcnic_probe()
1548 brd_name, adapter->ahw.revision_id); in qlcnic_probe()
1563 switch (adapter->ahw.port_type) { in qlcnic_probe()
2263 if (adapter->ahw.linkup && !linkup) { in qlcnic_advert_link_change()
2265 adapter->ahw.linkup = 0; in qlcnic_advert_link_change()
2270 } else if (!adapter->ahw.linkup && linkup) { in qlcnic_advert_link_change()
2272 adapter->ahw.linkup = 1; in qlcnic_advert_link_change()
3518 op_mode = readl(adapter->ahw.pci_base0 + QLCNIC_DRV_OP_MODE); in validate_esw_config()
3584 if (adapter->ahw.pci_func != esw_cfg[i].pci_func) in qlcnic_sysfs_write_esw_config()
3590 esw_cfg[i].pci_func = adapter->ahw.pci_func; in qlcnic_sysfs_write_esw_config()