Lines Matching refs:ahw
259 if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) { in nx_set_dma_mask()
291 if (NX_IS_REVISION_P3(adapter->ahw.revision_id) && (shift > 9)) in nx_update_dma_mask()
293 else if ((adapter->ahw.revision_id == NX_P2_C1) && (shift <= 4)) in nx_update_dma_mask()
306 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) { in nx_update_dma_mask()
332 if (!NX_IS_REVISION_P2(adapter->ahw.revision_id)) in netxen_check_hw_init()
371 val = adapter->ahw.board_type; in netxen_set_port_mode()
434 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) { in netxen_read_mac_addr()
520 if (adapter->ahw.revision_id >= NX_P3_B0) in netxen_setup_intr()
521 legacy_intrp = &legacy_intr[adapter->ahw.pci_func]; in netxen_setup_intr()
534 if (adapter->ahw.revision_id >= NX_P3_B1) in netxen_setup_intr()
567 msi_tgt_status[adapter->ahw.pci_func]); in netxen_setup_intr()
589 if (adapter->ahw.db_base != NULL) in netxen_cleanup_pci_map()
590 iounmap(adapter->ahw.db_base); in netxen_cleanup_pci_map()
591 if (adapter->ahw.pci_base0 != NULL) in netxen_cleanup_pci_map()
592 iounmap(adapter->ahw.pci_base0); in netxen_cleanup_pci_map()
593 if (adapter->ahw.pci_base1 != NULL) in netxen_cleanup_pci_map()
594 iounmap(adapter->ahw.pci_base1); in netxen_cleanup_pci_map()
595 if (adapter->ahw.pci_base2 != NULL) in netxen_cleanup_pci_map()
596 iounmap(adapter->ahw.pci_base2); in netxen_cleanup_pci_map()
608 int pci_func = adapter->ahw.pci_func; in netxen_setup_pci_map()
609 struct netxen_hardware_context *ahw = &adapter->ahw; in netxen_setup_pci_map() local
617 adapter->ahw.crb_win = -1; in netxen_setup_pci_map()
618 adapter->ahw.ocm_win = -1; in netxen_setup_pci_map()
627 ahw->pci_base0 = ioremap(mem_base, FIRST_PAGE_GROUP_SIZE); in netxen_setup_pci_map()
628 ahw->pci_base1 = ioremap(mem_base + SECOND_PAGE_GROUP_START, in netxen_setup_pci_map()
630 ahw->pci_base2 = ioremap(mem_base + THIRD_PAGE_GROUP_START, in netxen_setup_pci_map()
632 if (ahw->pci_base0 == NULL || ahw->pci_base1 == NULL || in netxen_setup_pci_map()
633 ahw->pci_base2 == NULL) { in netxen_setup_pci_map()
639 ahw->pci_len0 = FIRST_PAGE_GROUP_SIZE; in netxen_setup_pci_map()
643 ahw->pci_base1 = ioremap(mem_base, SECOND_PAGE_GROUP_SIZE); in netxen_setup_pci_map()
644 ahw->pci_base2 = ioremap(mem_base + THIRD_PAGE_GROUP_START - in netxen_setup_pci_map()
646 if (ahw->pci_base1 == NULL || ahw->pci_base2 == NULL) { in netxen_setup_pci_map()
654 ahw->pci_base0 = pci_ioremap_bar(pdev, 0); in netxen_setup_pci_map()
655 if (ahw->pci_base0 == NULL) { in netxen_setup_pci_map()
659 ahw->pci_len0 = mem_len; in netxen_setup_pci_map()
668 if (NX_IS_REVISION_P3P(adapter->ahw.revision_id)) { in netxen_setup_pci_map()
669 adapter->ahw.ocm_win_crb = netxen_get_ioaddr(adapter, in netxen_setup_pci_map()
672 } else if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) { in netxen_setup_pci_map()
673 adapter->ahw.ocm_win_crb = netxen_get_ioaddr(adapter, in netxen_setup_pci_map()
677 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) in netxen_setup_pci_map()
699 adapter->ahw.db_base = db_ptr; in netxen_setup_pci_map()
700 adapter->ahw.db_len = db_len; in netxen_setup_pci_map()
739 get_brd_name_by_type(adapter->ahw.board_type, brd_name); in netxen_check_options()
743 brd_name, serial_num, adapter->ahw.revision_id); in netxen_check_options()
753 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) { in netxen_check_options()
755 adapter->ahw.cut_through = (i & 0x8000) ? 1 : 0; in netxen_check_options()
760 adapter->ahw.cut_through ? "cut-through" : "legacy"); in netxen_check_options()
765 if (adapter->ahw.port_type == NETXEN_NIC_XGBE) { in netxen_check_options()
768 } else if (adapter->ahw.port_type == NETXEN_NIC_GBE) { in netxen_check_options()
774 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) { in netxen_check_options()
784 switch (adapter->ahw.board_type) { in netxen_check_options()
798 if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) { in netxen_check_options()
847 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) in netxen_start_firmware()
856 if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) { in netxen_start_firmware()
860 if (adapter->ahw.port_type == NETXEN_NIC_XGBE) in netxen_start_firmware()
977 if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) in __netxen_nic_up()
983 adapter->ahw.linkup = 0; in __netxen_nic_up()
988 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) in __netxen_nic_up()
1041 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) in __netxen_nic_down()
1098 if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) { in netxen_nic_attach()
1124 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) in netxen_nic_attach()
1201 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) in netxen_setup_netdev()
1217 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) { in netxen_setup_netdev()
1258 if (adapter->ahw.board_type != NETXEN_BRDTYPE_P3_4_GB_MM && in netxen_mask_aer_correctable()
1259 adapter->ahw.board_type != NETXEN_BRDTYPE_P3_10G_TP) in netxen_mask_aer_correctable()
1318 adapter->ahw.pci_func = pci_func_id; in netxen_nic_probe()
1321 adapter->ahw.revision_id = revision_id; in netxen_nic_probe()
1323 rwlock_init(&adapter->ahw.crb_lock); in netxen_nic_probe()
1324 spin_lock_init(&adapter->ahw.mem_lock); in netxen_nic_probe()
1347 switch (adapter->ahw.board_type) { in netxen_nic_probe()
1373 if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) { in netxen_nic_probe()
1391 switch (adapter->ahw.port_type) { in netxen_nic_probe()
1510 adapter->ahw.crb_win = -1; in netxen_nic_attach_func()
1511 adapter->ahw.ocm_win = -1; in netxen_nic_attach_func()
1989 if (adapter->ahw.linkup && !linkup) { in netxen_advert_link_change()
1992 adapter->ahw.linkup = 0; in netxen_advert_link_change()
1998 } else if (!adapter->ahw.linkup && linkup) { in netxen_advert_link_change()
2001 adapter->ahw.linkup = 1; in netxen_advert_link_change()
2016 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) { in netxen_nic_handle_phy_intr()
2018 val = XG_LINK_STATE_P3(adapter->ahw.pci_func, val); in netxen_nic_handle_phy_intr()
2055 if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) { in netxen_tx_timeout_task()
2106 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) { in netxen_intr()
2452 if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) in netxen_check_health()
2456 if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) in netxen_check_health()
2600 if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) in netxen_sysfs_validate_crb()
2631 if (NX_IS_REVISION_P3(adapter->ahw.revision_id) && in netxen_sysfs_read_crb()
2659 if (NX_IS_REVISION_P3(adapter->ahw.revision_id) && in netxen_sysfs_write_crb()
2803 if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) in netxen_destip_supported()
2806 if (adapter->ahw.cut_through) in netxen_destip_supported()