Lines Matching refs:ahw
66 ((adapter)->ahw.pci_base0 + (off))
68 ((adapter)->ahw.pci_base1 + (off) - SECOND_PAGE_GROUP_START)
70 ((adapter)->ahw.pci_base2 + (off) - THIRD_PAGE_GROUP_START)
352 if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) { in netxen_niu_xg_init_port()
366 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) in netxen_niu_disable_xg_port()
394 u16 board_type = adapter->ahw.board_type; in netxen_p2_nic_set_promisc()
992 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) in netxen_nic_change_mtu()
1066 int pci_func = adapter->ahw.pci_func; in netxen_p3_get_mac_addr()
1091 u8 func = adapter->ahw.pci_func; in netxen_nic_pci_set_crbwindow_128M()
1093 if (adapter->ahw.crb_win == window) in netxen_nic_pci_set_crbwindow_128M()
1113 adapter->ahw.crb_win = window; in netxen_nic_pci_set_crbwindow_128M()
1141 *addr = adapter->ahw.pci_base0 + m->start_2M + in netxen_nic_pci_get_crb_addr_2M()
1149 *addr = adapter->ahw.pci_base0 + CRB_INDIRECT_2M + in netxen_nic_pci_get_crb_addr_2M()
1163 void __iomem *addr = adapter->ahw.pci_base0 + CRB_WINDOW_2M; in netxen_nic_pci_set_crbwindow_2M()
1193 if (adapter->ahw.pci_len0 == 0) in netxen_nic_map_indirect_address_128M()
1217 write_lock_irqsave(&adapter->ahw.crb_lock, flags); in netxen_nic_hw_write_wx_128M()
1222 write_unlock_irqrestore(&adapter->ahw.crb_lock, flags); in netxen_nic_hw_write_wx_128M()
1245 write_lock_irqsave(&adapter->ahw.crb_lock, flags); in netxen_nic_hw_read_wx_128M()
1250 write_unlock_irqrestore(&adapter->ahw.crb_lock, flags); in netxen_nic_hw_read_wx_128M()
1275 write_lock_irqsave(&adapter->ahw.crb_lock, flags); in netxen_nic_hw_write_wx_2M()
1280 write_unlock_irqrestore(&adapter->ahw.crb_lock, flags); in netxen_nic_hw_write_wx_2M()
1305 write_lock_irqsave(&adapter->ahw.crb_lock, flags); in netxen_nic_hw_read_wx_2M()
1310 write_unlock_irqrestore(&adapter->ahw.crb_lock, flags); in netxen_nic_hw_read_wx_2M()
1324 read_lock(&adapter->ahw.crb_lock); in netxen_nic_io_write_128M()
1326 read_unlock(&adapter->ahw.crb_lock); in netxen_nic_io_write_128M()
1334 read_lock(&adapter->ahw.crb_lock); in netxen_nic_io_read_128M()
1336 read_unlock(&adapter->ahw.crb_lock); in netxen_nic_io_read_128M()
1358 if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) { in netxen_get_ioaddr()
1396 writel(window, adapter->ahw.ocm_win_crb); in netxen_nic_pci_set_window_2M()
1398 readl(adapter->ahw.ocm_win_crb); in netxen_nic_pci_set_window_2M()
1400 adapter->ahw.ocm_win = window; in netxen_nic_pci_set_window_2M()
1414 spin_lock(&adapter->ahw.mem_lock); in netxen_nic_pci_mem_access_direct()
1420 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) { in netxen_nic_pci_mem_access_direct()
1421 addr = adapter->ahw.pci_base0 + start; in netxen_nic_pci_mem_access_direct()
1444 spin_unlock(&adapter->ahw.mem_lock); in netxen_nic_pci_mem_access_direct()
1454 void __iomem *addr = adapter->ahw.pci_base0 + in netxen_pci_camqm_read_2M()
1457 spin_lock(&adapter->ahw.mem_lock); in netxen_pci_camqm_read_2M()
1459 spin_unlock(&adapter->ahw.mem_lock); in netxen_pci_camqm_read_2M()
1465 void __iomem *addr = adapter->ahw.pci_base0 + in netxen_pci_camqm_write_2M()
1468 spin_lock(&adapter->ahw.mem_lock); in netxen_pci_camqm_write_2M()
1470 spin_unlock(&adapter->ahw.mem_lock); in netxen_pci_camqm_write_2M()
1513 if (adapter->ahw.pci_len0 != 0) { in netxen_nic_pci_mem_write_128M()
1522 spin_lock(&adapter->ahw.mem_lock); in netxen_nic_pci_mem_write_128M()
1548 spin_unlock(&adapter->ahw.mem_lock); in netxen_nic_pci_mem_write_128M()
1591 if (adapter->ahw.pci_len0 != 0) { in netxen_nic_pci_mem_read_128M()
1600 spin_lock(&adapter->ahw.mem_lock); in netxen_nic_pci_mem_read_128M()
1629 spin_unlock(&adapter->ahw.mem_lock); in netxen_nic_pci_mem_read_128M()
1668 spin_lock(&adapter->ahw.mem_lock); in netxen_nic_pci_mem_write_2M()
1696 spin_unlock(&adapter->ahw.mem_lock); in netxen_nic_pci_mem_write_2M()
1738 spin_lock(&adapter->ahw.mem_lock); in netxen_nic_pci_mem_read_2M()
1763 spin_unlock(&adapter->ahw.mem_lock); in netxen_nic_pci_mem_read_2M()
1774 if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) { in netxen_setup_hwops()
1832 adapter->ahw.board_type = board_type; in netxen_nic_get_board_info()
1836 adapter->ahw.port_type = NETXEN_NIC_GBE; in netxen_nic_get_board_info()
1852 adapter->ahw.port_type = NETXEN_NIC_XGBE; in netxen_nic_get_board_info()
1861 adapter->ahw.port_type = NETXEN_NIC_GBE; in netxen_nic_get_board_info()
1864 adapter->ahw.port_type = (adapter->portnum < 2) ? in netxen_nic_get_board_info()
1869 adapter->ahw.port_type = NETXEN_NIC_XGBE; in netxen_nic_get_board_info()
1900 if (adapter->ahw.port_type == NETXEN_NIC_GBE) { in netxen_nic_set_link_parameters()
1959 if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) in netxen_nic_wol_supported()