/linux-master/drivers/net/ethernet/qlogic/qlcnic/ |
H A D | qlcnic_83xx_vnic.c | 16 QLCWRX(adapter->ahw, QLC_83XX_VNIC_STATE, QLCNIC_DEV_NPAR_OPER); 25 struct qlcnic_hardware_context *ahw = adapter->ahw; local 32 QLCWRX(adapter->ahw, QLC_83XX_VNIC_STATE, QLCNIC_DEV_NPAR_NON_OPER); 33 ahw->idc.vnic_state = QLCNIC_DEV_NPAR_NON_OPER; 46 struct qlcnic_hardware_context *ahw = adapter->ahw; local 51 id = ahw->pci_func; 52 data = QLCRDX(adapter->ahw, QLC_83XX_DRV_OP_MODE); 56 QLCWRX(adapter->ahw, QLC_83XX_DRV_OP_MOD 66 struct qlcnic_hardware_context *ahw = adapter->ahw; local 96 struct qlcnic_hardware_context *ahw = adapter->ahw; local 194 struct qlcnic_hardware_context *ahw = adapter->ahw; local 243 struct qlcnic_hardware_context *ahw = adapter->ahw; local [all...] |
H A D | qlcnic_83xx_hw.c | 260 void qlcnic_83xx_register_map(struct qlcnic_hardware_context *ahw) argument 262 ahw->hw_ops = &qlcnic_83xx_hw_ops; 263 ahw->reg_tbl = (u32 *)qlcnic_83xx_reg_tbl; 264 ahw->ext_reg_tbl = (u32 *)qlcnic_83xx_ext_reg_tbl; 288 base = adapter->ahw->pci_base0 + 289 QLC_83XX_CRB_WIN_FUNC(adapter->ahw->pci_func); 301 struct qlcnic_hardware_context *ahw = adapter->ahw; local 305 return QLCRDX(ahw, QLCNIC_WILDCARD); 317 struct qlcnic_hardware_context *ahw local 333 struct qlcnic_hardware_context *ahw = adapter->ahw; local 360 struct qlcnic_hardware_context *ahw = adapter->ahw; local 464 struct qlcnic_hardware_context *ahw = adapter->ahw; local 526 struct qlcnic_hardware_context *ahw = adapter->ahw; local 639 struct qlcnic_hardware_context *ahw = adapter->ahw; local 659 struct qlcnic_hardware_context *ahw = adapter->ahw; local 701 struct qlcnic_hardware_context *ahw = adapter->ahw; local 729 struct qlcnic_hardware_context *ahw = adapter->ahw; local 760 struct qlcnic_hardware_context *ahw = adapter->ahw; local 826 struct qlcnic_hardware_context *ahw = adapter->ahw; local 851 struct qlcnic_hardware_context *ahw = adapter->ahw; local 965 struct qlcnic_hardware_context *ahw = adapter->ahw; local 1015 struct qlcnic_hardware_context *ahw = adapter->ahw; local 1074 struct qlcnic_hardware_context *ahw = adapter->ahw; local 1181 struct qlcnic_hardware_context *ahw = adapter->ahw; local 1326 struct qlcnic_hardware_context *ahw = adapter->ahw; local 1489 struct qlcnic_hardware_context *ahw = adapter->ahw; local 1765 struct qlcnic_hardware_context *ahw = adapter->ahw; local 1834 struct qlcnic_hardware_context *ahw = adapter->ahw; local 1846 struct qlcnic_hardware_context *ahw = adapter->ahw; local 1915 struct qlcnic_hardware_context *ahw = adapter->ahw; local 2322 struct qlcnic_hardware_context *ahw = adapter->ahw; local 2422 struct qlcnic_hardware_context *ahw = adapter->ahw; local 2496 struct qlcnic_hardware_context *ahw = adapter->ahw; local 3182 struct qlcnic_hardware_context *ahw = adapter->ahw; local 3220 struct qlcnic_hardware_context *ahw = adapter->ahw; local 3301 struct qlcnic_hardware_context *ahw = adapter->ahw; local 3402 struct qlcnic_hardware_context *ahw = adapter->ahw; local 3633 struct qlcnic_hardware_context *ahw = adapter->ahw; local 3703 struct qlcnic_hardware_context *ahw = adapter->ahw; local 3739 struct qlcnic_hardware_context *ahw = adapter->ahw; local 3836 struct qlcnic_hardware_context *ahw = adapter->ahw; local 3914 struct qlcnic_hardware_context *ahw = adapter->ahw; local 3959 struct qlcnic_hardware_context *ahw = adapter->ahw; local 4054 struct qlcnic_hardware_context *ahw = adapter->ahw; local 4084 struct qlcnic_hardware_context *ahw = adapter->ahw; local 4103 struct qlcnic_hardware_context *ahw; local 4162 struct qlcnic_hardware_context *ahw = adapter->ahw; local [all...] |
H A D | qlcnic_83xx_init.c | 136 val = QLCRDX(adapter->ahw, QLC_83XX_IDC_DRV_PRESENCE); 146 cur = adapter->ahw->idc.curr_state; 147 prev = adapter->ahw->idc.prev_state; 151 adapter->ahw->idc.name[cur], 152 adapter->ahw->idc.name[prev]); 166 val = QLCRDX(adapter->ahw, QLC_83XX_IDC_DRV_AUDIT); 170 seconds = jiffies / HZ - adapter->ahw->idc.sec_counter; 175 QLCWRX(adapter->ahw, QLC_83XX_IDC_DRV_AUDIT, val); 176 adapter->ahw->idc.sec_counter = jiffies / HZ; 188 val = QLCRDX(adapter->ahw, QLC_83XX_IDC_MIN_VERSIO 648 struct qlcnic_hardware_context *ahw = adapter->ahw; local 678 struct qlcnic_hardware_context *ahw = adapter->ahw; local 708 struct qlcnic_hardware_context *ahw = adapter->ahw; local 820 struct qlcnic_hardware_context *ahw = adapter->ahw; local 954 struct qlcnic_hardware_context *ahw = adapter->ahw; local 1688 struct qlcnic_hardware_context *ahw = p_dev->ahw; local 2253 struct qlcnic_hardware_context *ahw = adapter->ahw; local 2287 struct qlcnic_hardware_context *ahw = adapter->ahw; local 2323 struct qlcnic_hardware_context *ahw = adapter->ahw; local 2386 struct qlcnic_hardware_context *ahw = adapter->ahw; local 2437 struct qlcnic_hardware_context *ahw = adapter->ahw; local 2549 struct qlcnic_hardware_context *ahw = adapter->ahw; local 2566 struct qlcnic_hardware_context *ahw = adapter->ahw; local 2590 struct qlcnic_hardware_context *ahw = adapter->ahw; local [all...] |
H A D | qlcnic_main.c | 90 struct qlcnic_hardware_context *ahw = adapter->ahw; local 93 return ahw->capabilities & QLCNIC_FW_CAPABILITY_FVLANTX; 302 adapter->ahw->pci_func); 415 if (netdev_uc_count(netdev) < adapter->ahw->max_uc_count) 460 struct qlcnic_hardware_context *ahw = adapter->ahw; local 465 ppid->id_len = sizeof(ahw->phys_port_id); 466 memcpy(ppid->id, ahw->phys_port_id, ppid->id_len); 612 struct qlcnic_hardware_context *ahw local 824 struct qlcnic_hardware_context *ahw = adapter->ahw; local 884 struct qlcnic_hardware_context *ahw = adapter->ahw; local 929 qlcnic_cleanup_pci_map(struct qlcnic_hardware_context *ahw) argument 937 struct qlcnic_hardware_context *ahw = adapter->ahw; local 984 struct qlcnic_hardware_context *ahw = adapter->ahw; local 1080 struct qlcnic_hardware_context *ahw = adapter->ahw; local 1146 qlcnic_setup_pci_map(struct pci_dev *pdev, struct qlcnic_hardware_context *ahw) argument 1227 struct qlcnic_hardware_context *ahw = adapter->ahw; local 1831 struct qlcnic_hardware_context *ahw = adapter->ahw; local 2060 struct qlcnic_hardware_context *ahw = adapter->ahw; local 2221 struct qlcnic_hardware_context *ahw = adapter->ahw; local 2398 struct qlcnic_hardware_context *ahw = adapter->ahw; local 2423 struct qlcnic_hardware_context *ahw; local 2711 struct qlcnic_hardware_context *ahw; local 3234 struct qlcnic_hardware_context *ahw = adapter->ahw; local 3647 struct qlcnic_hardware_context *ahw = adapter->ahw; local [all...] |
H A D | qlcnic_ethtool.c | 290 struct qlcnic_hardware_context *ahw = adapter->ahw; local 293 u16 pcifn = ahw->pci_func; 297 if (adapter->ahw->port_type == QLCNIC_GBE) { 310 ecmd->base.speed = adapter->ahw->link_speed; 311 ecmd->base.duplex = adapter->ahw->link_duplex; 312 ecmd->base.autoneg = adapter->ahw->link_autoneg; 314 } else if (adapter->ahw->port_type == QLCNIC_XGBE) { 326 if (netif_running(adapter->netdev) && ahw->has_link_events) { 327 if (ahw 978 struct qlcnic_hardware_context *ahw = adapter->ahw; local 1096 struct qlcnic_hardware_context *ahw = adapter->ahw; local [all...] |
H A D | qlcnic_sriov_common.c | 156 adapter->ahw->sriov = sriov; 235 kfree(adapter->ahw->sriov); 263 struct qlcnic_sriov *sriov = adapter->ahw->sriov; 287 kfree(adapter->ahw->sriov); 314 struct qlcnic_hardware_context *ahw = adapter->ahw; local 315 struct qlcnic_mailbox *mbx = ahw->mailbox; 332 __func__, cmd.cmd_op, cmd.type, ahw->pci_func, 333 ahw->op_mode); 340 __func__, cmd.cmd_op, cmd.type, ahw 500 struct qlcnic_hardware_context *ahw = adapter->ahw; local 620 struct qlcnic_hardware_context *ahw = adapter->ahw; local 650 struct qlcnic_hardware_context *ahw = adapter->ahw; local 661 qlcnic_sriov_vf_register_map(struct qlcnic_hardware_context *ahw) argument 908 struct qlcnic_hardware_context *ahw = adapter->ahw; local 1375 struct qlcnic_hardware_context *ahw = adapter->ahw; local 1546 struct qlcnic_hardware_context *ahw = adapter->ahw; local 1718 struct qlcnic_hardware_context *ahw = adapter->ahw; local 1740 struct qlcnic_hardware_context *ahw = adapter->ahw; local 1769 struct qlcnic_hardware_context *ahw = adapter->ahw; local 1828 struct qlcnic_hardware_context *ahw = adapter->ahw; local [all...] |
H A D | qlcnic_hw.h | 39 readl(((a)->ahw->pci_base0) + ((a)->ahw->reg_tbl[addr])) 43 writel(value, ((a)->ahw->pci_base0) + ((a)->ahw->reg_tbl[addr])) 46 #define QLCRDX(ahw, addr) \ 47 readl(((ahw)->pci_base0) + ((ahw)->ext_reg_tbl[addr])) 50 #define QLCWRX(ahw, addr, value) \ 51 writel(value, (((ahw)->pci_base0) + ((ahw) [all...] |
H A D | qlcnic_sysfs.c | 42 if (!(adapter->ahw->capabilities & QLCNIC_FW_CAPABILITY_BDG)) 65 if (adapter->ahw->capabilities & QLCNIC_FW_CAPABILITY_BDG) 118 struct qlcnic_hardware_context *ahw = adapter->ahw; local 130 if (ahw->beacon_state == h_beacon) 134 if (!ahw->beacon_state) { 146 ahw->beacon_state = h_beacon; 148 if (!ahw->beacon_state) 158 struct qlcnic_hardware_context *ahw = adapter->ahw; local 484 struct qlcnic_hardware_context *ahw = adapter->ahw; local [all...] |
H A D | qlcnic_ctx.c | 45 static inline u32 qlcnic_get_cmd_signature(struct qlcnic_hardware_context *ahw) argument 47 return (ahw->pci_func & 0xff) | ((ahw->fw_hal_version & 0xff) << 8) | 117 struct qlcnic_hardware_context *ahw = adapter->ahw; local 120 signature = qlcnic_get_cmd_signature(ahw); 236 struct qlcnic_hardware_context *ahw = adapter->ahw; local 286 !adapter->ahw->diag_test) { 330 !adapter->ahw 416 struct qlcnic_hardware_context *ahw = adapter->ahw; local 775 struct qlcnic_hardware_context *ahw = adapter->ahw; local 962 struct qlcnic_hardware_context *ahw = adapter->ahw; local 1247 struct qlcnic_hardware_context *ahw = adapter->ahw; local [all...] |
H A D | qlcnic_hw.c | 359 qlcnic_read_window_reg(addr, adapter->ahw->pci_base0, &data); 373 qlcnic_write_window_reg(addr, adapter->ahw->pci_base0, data); 531 struct qlcnic_hardware_context *ahw = adapter->ahw; local 549 (netdev_mc_count(netdev) > ahw->max_mc_count)) { 561 if (netdev_uc_count(netdev) > ahw->max_uc_count) { 758 adapter->ahw->physical_port); 762 memcpy(adapter->ahw->phys_port_id, mac, ETH_ALEN); 780 req.words[0] = cpu_to_le64(((u64) adapter->ahw->coal.flag) << 32); 781 req.words[2] = cpu_to_le64(adapter->ahw 1114 qlcnic_pci_get_crb_addr_2M(struct qlcnic_hardware_context *ahw, ulong off, void __iomem **addr) argument 1234 qlcnic_get_ioaddr(struct qlcnic_hardware_context *ahw, u32 offset) argument 1561 struct qlcnic_hardware_context *ahw = adapter->ahw; local [all...] |
H A D | qlcnic_sriov_pf.c | 70 struct qlcnic_sriov *sriov = adapter->ahw->sriov; 91 if (adapter->ahw->pci_func == func) { 139 struct qlcnic_resources *ff_max = &adapter->ahw->sriov->ff_max; 158 struct qlcnic_sriov *sriov = adapter->ahw->sriov; 235 struct qlcnic_sriov *sriov = adapter->ahw->sriov; 239 if (adapter->ahw->pci_func == func) { 253 struct qlcnic_sriov *sriov = adapter->ahw->sriov; 257 if (adapter->ahw->pci_func == func) { 271 struct qlcnic_sriov *sriov = adapter->ahw->sriov; 275 if (adapter->ahw 505 struct qlcnic_hardware_context *ahw = adapter->ahw; local 1764 struct qlcnic_hardware_context *ahw = adapter->ahw; local 1785 struct qlcnic_hardware_context *ahw = adapter->ahw; local [all...] |
H A D | qlcnic.h | 1031 ((adapter)->ahw->capabilities & QLCNIC_FW_CAPABILITY_TSO) 1100 struct qlcnic_hardware_context *ahw; member in struct:qlcnic_adapter 1545 (adapter->ahw->hw_ops->read_reg)(adapter, off, err) 1548 adapter->ahw->hw_ops->write_reg(adapter, off, val) 1832 return adapter->ahw->extra_capability[0] & 1838 return adapter->ahw->extra_capability[0] & 1854 return adapter->ahw->hw_ops->encap_rx_offload(adapter); 1859 return adapter->ahw->hw_ops->encap_tx_offload(adapter); 1870 adapter->ahw->hw_ops->read_crb(adapter, buf, offset, size); 1876 adapter->ahw [all...] |
H A D | qlcnic_minidump.c | 405 void *hdr = adapter->ahw->fw_dump.tmpl_hdr; 549 addr = adapter->ahw->pci_base0 + ocm->read_addr; 575 adapter->ahw->pci_func); 678 mutex_lock(&adapter->ahw->mem_lock); 708 mutex_unlock(&adapter->ahw->mem_lock); 728 tmpl_hdr = adapter->ahw->fw_dump.tmpl_hdr; 771 struct qlcnic_fw_dump *fw_dump = &adapter->ahw->fw_dump; 811 temp |= (adapter->ahw->pci_func & 0xf) << 4; 857 struct qlcnic_fw_dump *fw_dump = &adapter->ahw->fw_dump; 1208 struct qlcnic_hardware_context *ahw; local 1293 struct qlcnic_hardware_context *ahw; local 1417 struct qlcnic_hardware_context *ahw = adapter->ahw; local [all...] |
H A D | qlcnic_init.c | 213 if (adapter->ahw->capabilities & 247 !adapter->ahw->diag_test) 627 adapter->ahw->physical_port = (val >> 2); 698 if (adapter->ahw->revision_id == QLCNIC_P3P_C0) 881 u8 chiprev = adapter->ahw->revision_id; 968 if (adapter->ahw->fw_type == QLCNIC_UNIFIED_ROMIMAGE) 982 if (adapter->ahw->fw_type == QLCNIC_UNIFIED_ROMIMAGE) 996 if (adapter->ahw->fw_type == QLCNIC_UNIFIED_ROMIMAGE) 1011 if (adapter->ahw->fw_type != QLCNIC_UNIFIED_ROMIMAGE) { 1042 if (adapter->ahw [all...] |
H A D | qlcnic_io.c | 793 if (adapter->ahw->linkup && !linkup) { 795 adapter->ahw->linkup = 0; 797 } else if (!adapter->ahw->linkup && linkup) { 798 adapter->ahw->linkup = 1; 803 if (qlcnic_83xx_check(adapter) && adapter->ahw->lb_mode) { 1039 adapter->ahw->has_link_events = 1; 1061 adapter->ahw->loopback_state |= QLCNIC_LINKEVENT; 1066 adapter->ahw->link_duplex = DUPLEX_FULL; 1068 adapter->ahw->link_duplex = DUPLEX_HALF; 1070 adapter->ahw [all...] |
H A D | qlcnic_83xx_hw.h | 350 #define QLCNIC_MBX_HOST(ahw, i) ((ahw)->pci_base0 + ((i) * 4)) 351 #define QLCNIC_MBX_FW(ahw, i) ((ahw)->pci_base0 + 0x800 + ((i) * 4))
|
/linux-master/drivers/net/ethernet/qlogic/netxen/ |
H A D | netxen_nic_hw.c | 34 ((adapter)->ahw.pci_base0 + (off)) 36 ((adapter)->ahw.pci_base1 + (off) - SECOND_PAGE_GROUP_START) 38 ((adapter)->ahw.pci_base2 + (off) - THIRD_PAGE_GROUP_START) 320 if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) { 334 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) 362 u16 board_type = adapter->ahw.board_type; 1026 int pci_func = adapter->ahw.pci_func; 1051 u8 func = adapter->ahw.pci_func; 1053 if (adapter->ahw.crb_win == window) 1073 adapter->ahw [all...] |
H A D | netxen_nic_ethtool.c | 91 if (adapter->ahw.port_type == NETXEN_NIC_GBE) { 110 } else if (adapter->ahw.port_type == NETXEN_NIC_XGBE) { 131 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) { 132 u16 pcifn = adapter->ahw.pci_func; 148 switch (adapter->ahw.board_type) { 164 cmd->base.autoneg = (adapter->ahw.board_type == 194 if (adapter->ahw.port_type == NETXEN_NIC_XGBE) { 211 adapter->ahw.board_type); 233 if (!netif_running(dev) || !adapter->ahw.linkup) { 254 if (adapter->ahw [all...] |
H A D | netxen_nic_main.c | 235 if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) { 265 if (NX_IS_REVISION_P3(adapter->ahw.revision_id) && (shift > 9)) 267 else if ((adapter->ahw.revision_id == NX_P2_C1) && (shift <= 4)) 280 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) { 306 if (!NX_IS_REVISION_P2(adapter->ahw.revision_id)) 345 val = adapter->ahw.board_type; 408 if (adapter->ahw.revision_id == NX_P3_B0) 464 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) { 582 if (adapter->ahw.revision_id >= NX_P3_B0) 583 legacy_intrp = &legacy_intr[adapter->ahw 712 struct netxen_hardware_context *ahw = &adapter->ahw; local [all...] |
H A D | netxen_nic_init.c | 217 if (adapter->ahw.cut_through) { 223 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) 236 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) 427 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) { 487 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) { 504 !NX_IS_REVISION_P3P(adapter->ahw.revision_id)) 520 if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) { 536 if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) { 684 int mn_present = (NX_IS_REVISION_P2(adapter->ahw.revision_id)) ? 706 u8 chiprev = adapter->ahw [all...] |
H A D | netxen_nic_ctx.c | 39 signature = NX_CDRP_SIGNATURE_MAKE(adapter->ahw.pci_func, 794 if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) 815 if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) { 827 if (!NX_IS_REVISION_P2(adapter->ahw.revision_id)) { 860 if (!NX_IS_REVISION_P2(adapter->ahw.revision_id)) {
|
H A D | netxen_nic.h | 94 (adapter->ahw.db_base + (off)) 1582 struct netxen_hardware_context ahw; member in struct:netxen_adapter
|