Home
last modified time | relevance | path

Searched refs:ahw (Results 1 – 12 of 12) sorted by relevance

/linux-2.6.39/drivers/net/netxen/
Dnetxen_nic_main.c259 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()
[all …]
Dnetxen_nic_hw.c66 ((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()
[all …]
Dnetxen_nic_ethtool.c105 if (adapter->ahw.port_type == NETXEN_NIC_GBE) { in netxen_nic_get_settings()
124 } else if (adapter->ahw.port_type == NETXEN_NIC_XGBE) { in netxen_nic_get_settings()
145 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) { in netxen_nic_get_settings()
146 u16 pcifn = adapter->ahw.pci_func; in netxen_nic_get_settings()
163 switch (adapter->ahw.board_type) { in netxen_nic_get_settings()
179 ecmd->autoneg = (adapter->ahw.board_type == in netxen_nic_get_settings()
208 if (adapter->ahw.port_type == NETXEN_NIC_XGBE) { in netxen_nic_get_settings()
225 adapter->ahw.board_type); in netxen_nic_get_settings()
256 if (adapter->ahw.port_type != NETXEN_NIC_GBE) in netxen_nic_set_settings()
297 regs->version = (1 << 24) | (adapter->ahw.revision_id << 16) | in netxen_nic_get_regs()
[all …]
Dnetxen_nic_ctx.c102 adapter->ahw.pci_func, in nx_fw_cmd_set_mtu()
121 adapter->ahw.pci_func, in nx_fw_cmd_set_gbe_port()
222 adapter->ahw.pci_func, in nx_fw_cmd_create_rx_ctx()
278 adapter->ahw.pci_func, in nx_fw_cmd_destroy_rx_ctx()
349 adapter->ahw.pci_func, in nx_fw_cmd_create_tx_ctx()
384 adapter->ahw.pci_func, in nx_fw_cmd_destroy_tx_ctx()
403 adapter->ahw.pci_func, in nx_fw_cmd_query_phy()
422 adapter->ahw.pci_func, in nx_fw_cmd_set_phy()
667 if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) in netxen_alloc_hw_resources()
688 if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) { in netxen_alloc_hw_resources()
[all …]
Dnetxen_nic_init.c241 if (adapter->ahw.cut_through) { in netxen_alloc_sw_resources()
247 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) in netxen_alloc_sw_resources()
260 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) in netxen_alloc_sw_resources()
454 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) { in netxen_pinit_from_rom()
517 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) { in netxen_pinit_from_rom()
534 !NX_IS_REVISION_P3P(adapter->ahw.revision_id)) in netxen_pinit_from_rom()
550 if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) { in netxen_pinit_from_rom()
566 if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) { in netxen_pinit_from_rom()
714 int mn_present = (NX_IS_REVISION_P2(adapter->ahw.revision_id)) ? in netxen_nic_validate_product_offs()
736 u8 chiprev = adapter->ahw.revision_id; in netxen_nic_validate_product_offs()
[all …]
Dnetxen_nic.h112 (adapter->ahw.db_base + (off))
1163 struct netxen_hardware_context ahw; member
/linux-2.6.39/drivers/net/qlcnic/
Dqlcnic_hw.c783 *addr = adapter->ahw.pci_base0 + m->start_2M + in qlcnic_pci_get_crb_addr_2M()
791 *addr = adapter->ahw.pci_base0 + CRB_INDIRECT_2M + (off & MASK(16)); in qlcnic_pci_get_crb_addr_2M()
804 void __iomem *addr = adapter->ahw.pci_base0 + CRB_WINDOW_2M; in qlcnic_pci_set_crbwindow_2M()
841 write_lock_irqsave(&adapter->ahw.crb_lock, flags); in qlcnic_hw_write_wx_2M()
847 write_unlock_irqrestore(&adapter->ahw.crb_lock, flags); in qlcnic_hw_write_wx_2M()
872 write_lock_irqsave(&adapter->ahw.crb_lock, flags); in qlcnic_hw_read_wx_2M()
877 write_unlock_irqrestore(&adapter->ahw.crb_lock, flags); in qlcnic_hw_read_wx_2M()
907 writel(window, adapter->ahw.ocm_win_crb); in qlcnic_pci_set_window_2M()
909 readl(adapter->ahw.ocm_win_crb); in qlcnic_pci_set_window_2M()
923 mutex_lock(&adapter->ahw.mem_lock); in qlcnic_pci_mem_access_direct()
[all …]
Dqlcnic_ctx.c74 adapter->ahw.pci_func, in qlcnic_fw_cmd_set_mtu()
190 adapter->ahw.pci_func, in qlcnic_fw_cmd_create_rx_ctx()
210 rds_ring->crb_rcv_producer = adapter->ahw.pci_base0 + reg; in qlcnic_fw_cmd_create_rx_ctx()
222 sds_ring->crb_sts_consumer = adapter->ahw.pci_base0 + reg; in qlcnic_fw_cmd_create_rx_ctx()
223 sds_ring->crb_intr_mask = adapter->ahw.pci_base0 + reg2; in qlcnic_fw_cmd_create_rx_ctx()
243 adapter->ahw.pci_func, in qlcnic_fw_cmd_destroy_rx_ctx()
316 adapter->ahw.pci_func, in qlcnic_fw_cmd_create_tx_ctx()
325 tx_ring->crb_cmd_producer = adapter->ahw.pci_base0 + temp; in qlcnic_fw_cmd_create_tx_ctx()
347 adapter->ahw.pci_func, in qlcnic_fw_cmd_destroy_tx_ctx()
364 adapter->ahw.pci_func, in qlcnic_fw_cmd_query_phy()
[all …]
Dqlcnic_ethtool.c153 u16 pcifn = adapter->ahw.pci_func; in qlcnic_get_settings()
156 if (adapter->ahw.port_type == QLCNIC_GBE) { in qlcnic_get_settings()
173 } else if (adapter->ahw.port_type == QLCNIC_XGBE) { in qlcnic_get_settings()
204 switch (adapter->ahw.board_type) { in qlcnic_get_settings()
241 if (adapter->ahw.port_type == QLCNIC_XGBE) { in qlcnic_get_settings()
259 adapter->ahw.board_type); in qlcnic_get_settings()
291 if (adapter->ahw.port_type == QLCNIC_GBE) { in qlcnic_set_settings()
350 (adapter->ahw.revision_id << 16) | (adapter->pdev)->device; in qlcnic_get_regs()
385 val = XG_LINK_STATE_P3P(adapter->ahw.pci_func, val); in qlcnic_test_link()
485 if (adapter->ahw.port_type == QLCNIC_GBE) { in qlcnic_get_pauseparam()
[all …]
Dqlcnic_main.c372 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()
[all …]
Dqlcnic.h968 struct qlcnic_hardware_context ahw; member
Dqlcnic_init.c867 u8 chiprev = adapter->ahw.revision_id; in qlcnic_validate_product_offs()