ahw                94 drivers/net/ethernet/qlogic/netxen/netxen_nic.h 	(adapter->ahw.db_base + (off))
ahw              1585 drivers/net/ethernet/qlogic/netxen/netxen_nic.h 	struct netxen_hardware_context ahw;
ahw                39 drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c 	signature = NX_CDRP_SIGNATURE_MAKE(adapter->ahw.pci_func,
ahw               791 drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c 		if (NX_IS_REVISION_P2(adapter->ahw.revision_id))
ahw               812 drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c 		if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) {
ahw               824 drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c 	if (!NX_IS_REVISION_P2(adapter->ahw.revision_id)) {
ahw               857 drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c 	if (!NX_IS_REVISION_P2(adapter->ahw.revision_id)) {
ahw                91 drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c 	if (adapter->ahw.port_type == NETXEN_NIC_GBE) {
ahw               110 drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c 	} else if (adapter->ahw.port_type == NETXEN_NIC_XGBE) {
ahw               131 drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c 		if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) {
ahw               132 drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c 			u16 pcifn = adapter->ahw.pci_func;
ahw               148 drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c 	switch (adapter->ahw.board_type) {
ahw               164 drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c 		cmd->base.autoneg = (adapter->ahw.board_type ==
ahw               194 drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c 		if (adapter->ahw.port_type == NETXEN_NIC_XGBE) {
ahw               211 drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c 				adapter->ahw.board_type);
ahw               233 drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c 	if (!netif_running(dev) || !adapter->ahw.linkup) {
ahw               254 drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c 	if (adapter->ahw.port_type != NETXEN_NIC_GBE)
ahw               295 drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c 	regs->version = (1 << 24) | (adapter->ahw.revision_id << 16) |
ahw               316 drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c 	if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) {
ahw               359 drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c 	if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) {
ahw               361 drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c 		val = XG_LINK_STATE_P3(adapter->ahw.pci_func, val);
ahw               404 drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c 	if (adapter->ahw.port_type == NETXEN_NIC_GBE) {
ahw               440 drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c 	if (NX_IS_REVISION_P2(adapter->ahw.revision_id))
ahw               446 drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c 	if (adapter->ahw.port_type == NETXEN_NIC_GBE) {
ahw               481 drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c 	if (adapter->ahw.port_type == NETXEN_NIC_GBE) {
ahw               503 drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c 	} else if (adapter->ahw.port_type == NETXEN_NIC_XGBE) {
ahw               514 drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c 				netxen_nic_driver_name, adapter->ahw.port_type);
ahw               531 drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c 	if (adapter->ahw.port_type == NETXEN_NIC_GBE) {
ahw               574 drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c 	} else if (adapter->ahw.port_type == NETXEN_NIC_XGBE) {
ahw               593 drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c 				adapter->ahw.port_type);
ahw               607 drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c 	if (NX_IS_REVISION_P3(adapter->ahw.revision_id))
ahw               690 drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c 	if (NX_IS_REVISION_P2(adapter->ahw.revision_id))
ahw               708 drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c 	if (NX_IS_REVISION_P2(adapter->ahw.revision_id))
ahw               738 drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c 	if (!NX_IS_REVISION_P3(adapter->ahw.revision_id))
ahw               799 drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c 	if (!NX_IS_REVISION_P3(adapter->ahw.revision_id))
ahw                34 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 	((adapter)->ahw.pci_base0 + (off))
ahw                36 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 	((adapter)->ahw.pci_base1 + (off) - SECOND_PAGE_GROUP_START)
ahw                38 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 	((adapter)->ahw.pci_base2 + (off) - THIRD_PAGE_GROUP_START)
ahw               320 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 	if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) {
ahw               334 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 	if (NX_IS_REVISION_P3(adapter->ahw.revision_id))
ahw               362 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 	u16 board_type = adapter->ahw.board_type;
ahw              1026 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 	int pci_func = adapter->ahw.pci_func;
ahw              1051 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 	u8 func = adapter->ahw.pci_func;
ahw              1053 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 	if (adapter->ahw.crb_win == window)
ahw              1073 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 		adapter->ahw.crb_win = window;
ahw              1101 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 		*addr = adapter->ahw.pci_base0 + m->start_2M +
ahw              1109 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 	*addr = adapter->ahw.pci_base0 + CRB_INDIRECT_2M +
ahw              1123 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 	void __iomem *addr = adapter->ahw.pci_base0 + CRB_WINDOW_2M;
ahw              1153 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 	if (adapter->ahw.pci_len0 == 0)
ahw              1177 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 		write_lock_irqsave(&adapter->ahw.crb_lock, flags);
ahw              1182 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 		write_unlock_irqrestore(&adapter->ahw.crb_lock, flags);
ahw              1205 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 		write_lock_irqsave(&adapter->ahw.crb_lock, flags);
ahw              1210 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 		write_unlock_irqrestore(&adapter->ahw.crb_lock, flags);
ahw              1235 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 		write_lock_irqsave(&adapter->ahw.crb_lock, flags);
ahw              1240 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 		write_unlock_irqrestore(&adapter->ahw.crb_lock, flags);
ahw              1265 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 		write_lock_irqsave(&adapter->ahw.crb_lock, flags);
ahw              1270 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 		write_unlock_irqrestore(&adapter->ahw.crb_lock, flags);
ahw              1284 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 	read_lock(&adapter->ahw.crb_lock);
ahw              1286 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 	read_unlock(&adapter->ahw.crb_lock);
ahw              1294 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 	read_lock(&adapter->ahw.crb_lock);
ahw              1296 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 	read_unlock(&adapter->ahw.crb_lock);
ahw              1318 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 	if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) {
ahw              1356 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 	writel(window, adapter->ahw.ocm_win_crb);
ahw              1358 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 	readl(adapter->ahw.ocm_win_crb);
ahw              1360 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 	adapter->ahw.ocm_win = window;
ahw              1374 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 	spin_lock(&adapter->ahw.mem_lock);
ahw              1380 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 	if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) {
ahw              1381 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 		addr = adapter->ahw.pci_base0 + start;
ahw              1404 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 	spin_unlock(&adapter->ahw.mem_lock);
ahw              1414 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 	void __iomem *addr = adapter->ahw.pci_base0 +
ahw              1417 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 	spin_lock(&adapter->ahw.mem_lock);
ahw              1419 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 	spin_unlock(&adapter->ahw.mem_lock);
ahw              1425 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 	void __iomem *addr = adapter->ahw.pci_base0 +
ahw              1428 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 	spin_lock(&adapter->ahw.mem_lock);
ahw              1430 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 	spin_unlock(&adapter->ahw.mem_lock);
ahw              1473 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 		if (adapter->ahw.pci_len0 != 0) {
ahw              1482 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 	spin_lock(&adapter->ahw.mem_lock);
ahw              1508 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 	spin_unlock(&adapter->ahw.mem_lock);
ahw              1551 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 		if (adapter->ahw.pci_len0 != 0) {
ahw              1560 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 	spin_lock(&adapter->ahw.mem_lock);
ahw              1589 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 	spin_unlock(&adapter->ahw.mem_lock);
ahw              1628 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 	spin_lock(&adapter->ahw.mem_lock);
ahw              1656 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 	spin_unlock(&adapter->ahw.mem_lock);
ahw              1698 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 	spin_lock(&adapter->ahw.mem_lock);
ahw              1723 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 	spin_unlock(&adapter->ahw.mem_lock);
ahw              1734 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 	if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) {
ahw              1792 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 	adapter->ahw.board_type = board_type;
ahw              1796 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 		adapter->ahw.port_type = NETXEN_NIC_GBE;
ahw              1812 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 		adapter->ahw.port_type = NETXEN_NIC_XGBE;
ahw              1821 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 		adapter->ahw.port_type = NETXEN_NIC_GBE;
ahw              1824 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 		adapter->ahw.port_type = (adapter->portnum < 2) ?
ahw              1829 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 		adapter->ahw.port_type = NETXEN_NIC_XGBE;
ahw              1860 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 	if (adapter->ahw.port_type == NETXEN_NIC_GBE) {
ahw              1919 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 	if (NX_IS_REVISION_P2(adapter->ahw.revision_id))
ahw              1951 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 						adapter->ahw.pci_base0,
ahw              1956 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 						adapter->ahw.pci_base0,
ahw              1959 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 						adapter->ahw.pci_base0,
ahw              1964 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 						adapter->ahw.pci_base0,
ahw              1968 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 						adapter->ahw.pci_base0,
ahw              1973 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 						adapter->ahw.pci_base0,
ahw              1977 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 						adapter->ahw.pci_base0,
ahw              1983 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 						adapter->ahw.pci_base0,
ahw              1995 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 							adapter->ahw.pci_base0,
ahw              2013 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 						adapter->ahw.pci_base0,
ahw              2035 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 						adapter->ahw.pci_base0,
ahw              2101 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 		NX_RD_DUMP_REG(addr, adapter->ahw.pci_base0, &value);
ahw              2122 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 	lck_val = readl((void __iomem *)(adapter->ahw.pci_base0 +
ahw              2129 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 	writel(adapter->ahw.pci_func, (void __iomem *)(adapter->ahw.pci_base0 +
ahw              2133 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 		NX_WR_DUMP_REG(FLASH_ROM_WINDOW, adapter->ahw.pci_base0, waddr);
ahw              2135 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 		NX_RD_DUMP_REG(raddr, adapter->ahw.pci_base0, &val);
ahw              2139 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 	readl((void __iomem *)(adapter->ahw.pci_base0 + NX_FLASH_SEM2_ULK));
ahw              2164 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 		NX_WR_DUMP_REG(tag_reg_addr, adapter->ahw.pci_base0, tag_value);
ahw              2166 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 			NX_WR_DUMP_REG(cntrl_addr, adapter->ahw.pci_base0,
ahw              2170 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 			NX_RD_DUMP_REG(cntrl_addr, adapter->ahw.pci_base0,
ahw              2178 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 					adapter->ahw.pci_base0,
ahw              2189 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 			NX_RD_DUMP_REG(addr, adapter->ahw.pci_base0,
ahw              2219 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 		NX_WR_DUMP_REG(tag_reg_addr, adapter->ahw.pci_base0, tag_value);
ahw              2220 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 		NX_WR_DUMP_REG(cntrl_addr, adapter->ahw.pci_base0,
ahw              2225 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 				adapter->ahw.pci_base0,
ahw              2244 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 	addr = (ocmEntry->read_addr + adapter->ahw.pci_base0);
ahw              2268 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 		NX_WR_DUMP_REG(select_addr, adapter->ahw.pci_base0, sel_value);
ahw              2269 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 		NX_RD_DUMP_REG(read_addr, adapter->ahw.pci_base0, &read_value);
ahw              2292 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 		NX_WR_DUMP_REG(select_addr, adapter->ahw.pci_base0, queue_id);
ahw              2295 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c 			NX_RD_DUMP_REG(read_addr, adapter->ahw.pci_base0,
ahw               219 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c 			if (adapter->ahw.cut_through) {
ahw               225 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c 				if (NX_IS_REVISION_P3(adapter->ahw.revision_id))
ahw               238 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c 			if (NX_IS_REVISION_P3(adapter->ahw.revision_id))
ahw               429 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c 	if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) {
ahw               489 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c 		if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) {
ahw               506 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c 				!NX_IS_REVISION_P3P(adapter->ahw.revision_id))
ahw               522 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c 			if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) {
ahw               538 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c 	if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) {
ahw               686 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c 	int mn_present = (NX_IS_REVISION_P2(adapter->ahw.revision_id)) ?
ahw               708 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c 		u8 chiprev = adapter->ahw.revision_id;
ahw               726 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c 	if (mn_present && NX_IS_REVISION_P3(adapter->ahw.revision_id)) {
ahw               880 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c 	if (NX_IS_REVISION_P2(adapter->ahw.revision_id))
ahw               946 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c 	if (NX_IS_REVISION_P2(adapter->ahw.revision_id))
ahw               987 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c 	if (NX_IS_REVISION_P2(adapter->ahw.revision_id))
ahw              1058 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c 	if (NX_IS_REVISION_P3P(adapter->ahw.revision_id)) {
ahw              1061 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c 	} else if (NX_IS_REVISION_P3(adapter->ahw.revision_id))
ahw              1096 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c 	if (NX_IS_REVISION_P3(adapter->ahw.revision_id))
ahw              1130 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c 	    NX_IS_REVISION_P3(adapter->ahw.revision_id)) {
ahw              1140 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c 	    NX_IS_REVISION_P2(adapter->ahw.revision_id)) {
ahw              1163 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c 		if (NX_IS_REVISION_P3P(adapter->ahw.revision_id))
ahw              1165 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c 		else if (NX_IS_REVISION_P2(adapter->ahw.revision_id))
ahw              1194 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c 	if (NX_IS_REVISION_P2(adapter->ahw.revision_id))
ahw              1250 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c 	if (!NX_IS_REVISION_P2(adapter->ahw.revision_id))
ahw              1285 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c 	if (!NX_IS_REVISION_P2(adapter->ahw.revision_id))
ahw              1379 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c 	if (NX_IS_REVISION_P2(adapter->ahw.revision_id))
ahw              1467 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c 	if (!adapter->ahw.cut_through)
ahw              1846 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c 		if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) {
ahw               237 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) {
ahw               269 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	if (NX_IS_REVISION_P3(adapter->ahw.revision_id) && (shift > 9))
ahw               271 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	else if ((adapter->ahw.revision_id == NX_P2_C1) && (shift <= 4))
ahw               284 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 		if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) {
ahw               310 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 		if (!NX_IS_REVISION_P2(adapter->ahw.revision_id))
ahw               349 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	val = adapter->ahw.board_type;
ahw               412 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 		if (adapter->ahw.revision_id == NX_P3_B0)
ahw               467 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) {
ahw               589 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	if (adapter->ahw.revision_id >= NX_P3_B0)
ahw               590 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 		legacy_intrp = &legacy_intr[adapter->ahw.pci_func];
ahw               605 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	if (adapter->ahw.revision_id >= NX_P3_B1)
ahw               638 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 		value = msi_tgt_status[adapter->ahw.pci_func];
ahw               699 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	if (adapter->ahw.db_base != NULL)
ahw               700 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 		iounmap(adapter->ahw.db_base);
ahw               701 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	if (adapter->ahw.pci_base0 != NULL)
ahw               702 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 		iounmap(adapter->ahw.pci_base0);
ahw               703 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	if (adapter->ahw.pci_base1 != NULL)
ahw               704 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 		iounmap(adapter->ahw.pci_base1);
ahw               705 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	if (adapter->ahw.pci_base2 != NULL)
ahw               706 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 		iounmap(adapter->ahw.pci_base2);
ahw               718 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	int pci_func = adapter->ahw.pci_func;
ahw               719 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	struct netxen_hardware_context *ahw = &adapter->ahw;
ahw               727 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	adapter->ahw.crb_win = -1;
ahw               728 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	adapter->ahw.ocm_win = -1;
ahw               737 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 		ahw->pci_base0 = ioremap(mem_base, FIRST_PAGE_GROUP_SIZE);
ahw               738 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 		ahw->pci_base1 = ioremap(mem_base + SECOND_PAGE_GROUP_START,
ahw               740 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 		ahw->pci_base2 = ioremap(mem_base + THIRD_PAGE_GROUP_START,
ahw               742 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 		if (ahw->pci_base0 == NULL || ahw->pci_base1 == NULL ||
ahw               743 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 						ahw->pci_base2 == NULL) {
ahw               749 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 		ahw->pci_len0 = FIRST_PAGE_GROUP_SIZE;
ahw               753 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 		ahw->pci_base1 = ioremap(mem_base, SECOND_PAGE_GROUP_SIZE);
ahw               754 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 		ahw->pci_base2 = ioremap(mem_base + THIRD_PAGE_GROUP_START -
ahw               756 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 		if (ahw->pci_base1 == NULL || ahw->pci_base2 == NULL) {
ahw               764 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 		ahw->pci_base0 = pci_ioremap_bar(pdev, 0);
ahw               765 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 		if (ahw->pci_base0 == NULL) {
ahw               769 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 		ahw->pci_len0 = mem_len;
ahw               778 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	if (NX_IS_REVISION_P3P(adapter->ahw.revision_id)) {
ahw               779 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 		adapter->ahw.ocm_win_crb = netxen_get_ioaddr(adapter,
ahw               782 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	} else if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) {
ahw               783 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 		adapter->ahw.ocm_win_crb = netxen_get_ioaddr(adapter,
ahw               787 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	if (NX_IS_REVISION_P3(adapter->ahw.revision_id))
ahw               809 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	adapter->ahw.db_base = db_ptr;
ahw               810 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	adapter->ahw.db_len = db_len;
ahw               850 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	 if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) {
ahw               863 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 		if (netxen_nic_get_brd_name_by_type(adapter->ahw.board_type,
ahw               869 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 				brd_name, serial_num, adapter->ahw.revision_id);
ahw               879 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) {
ahw               881 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 		adapter->ahw.cut_through = (i & 0x8000) ? 1 : 0;
ahw               886 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 		 adapter->ahw.cut_through ? "cut-through" : "legacy");
ahw               891 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	if (adapter->ahw.port_type == NETXEN_NIC_XGBE) {
ahw               894 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	} else if (adapter->ahw.port_type == NETXEN_NIC_GBE) {
ahw               900 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) {
ahw               910 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 			switch (adapter->ahw.board_type) {
ahw               924 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) {
ahw               978 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	if (NX_IS_REVISION_P3(adapter->ahw.revision_id))
ahw               987 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) {
ahw               991 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 		if (adapter->ahw.port_type == NETXEN_NIC_XGBE)
ahw              1010 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	if (NX_IS_REVISION_P3(adapter->ahw.revision_id))
ahw              1112 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	if (NX_IS_REVISION_P2(adapter->ahw.revision_id))
ahw              1118 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	adapter->ahw.linkup = 0;
ahw              1123 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	if (NX_IS_REVISION_P3(adapter->ahw.revision_id))
ahw              1175 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	if (NX_IS_REVISION_P3(adapter->ahw.revision_id))
ahw              1239 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) {
ahw              1265 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	if (NX_IS_REVISION_P3(adapter->ahw.revision_id))
ahw              1341 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	if (NX_IS_REVISION_P3(adapter->ahw.revision_id))
ahw              1356 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	if (NX_IS_REVISION_P3(adapter->ahw.revision_id))
ahw              1429 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	if (adapter->ahw.board_type != NETXEN_BRDTYPE_P3_4_GB_MM &&
ahw              1430 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 		adapter->ahw.board_type != NETXEN_BRDTYPE_P3_10G_TP)
ahw              1487 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	adapter->ahw.pci_func  = pci_func_id;
ahw              1490 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	adapter->ahw.revision_id = revision_id;
ahw              1492 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	rwlock_init(&adapter->ahw.crb_lock);
ahw              1493 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	spin_lock_init(&adapter->ahw.mem_lock);
ahw              1517 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	switch (adapter->ahw.board_type) {
ahw              1547 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) {
ahw              1555 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	if (NX_IS_REVISION_P3(adapter->ahw.revision_id))
ahw              1580 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	switch (adapter->ahw.port_type) {
ahw              1712 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	adapter->ahw.crb_win = -1;
ahw              1713 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	adapter->ahw.ocm_win = -1;
ahw              2185 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	if (adapter->ahw.linkup && !linkup) {
ahw              2188 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 		adapter->ahw.linkup = 0;
ahw              2194 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	} else if (!adapter->ahw.linkup && linkup) {
ahw              2197 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 		adapter->ahw.linkup = 1;
ahw              2212 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) {
ahw              2214 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 		val = XG_LINK_STATE_P3(adapter->ahw.pci_func, val);
ahw              2251 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) {
ahw              2300 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) {
ahw              2668 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 		if (NX_IS_REVISION_P2(adapter->ahw.revision_id))
ahw              2672 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	if (NX_IS_REVISION_P2(adapter->ahw.revision_id))
ahw              2833 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 		if (NX_IS_REVISION_P2(adapter->ahw.revision_id))
ahw              2864 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	if (NX_IS_REVISION_P3(adapter->ahw.revision_id) &&
ahw              2892 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	if (NX_IS_REVISION_P3(adapter->ahw.revision_id) &&
ahw              3165 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	if (NX_IS_REVISION_P2(adapter->ahw.revision_id))
ahw              3168 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c 	if (adapter->ahw.cut_through)
ahw              1037 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	((adapter)->ahw->capabilities & QLCNIC_FW_CAPABILITY_TSO)
ahw              1106 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	struct qlcnic_hardware_context *ahw;
ahw              1551 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	(adapter->ahw->hw_ops->read_reg)(adapter, off, err)
ahw              1554 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	adapter->ahw->hw_ops->write_reg(adapter, off, val)
ahw              1836 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	return adapter->ahw->extra_capability[0] &
ahw              1842 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	return adapter->ahw->extra_capability[0] &
ahw              1858 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h         return adapter->ahw->hw_ops->encap_rx_offload(adapter);
ahw              1863 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h         return adapter->ahw->hw_ops->encap_tx_offload(adapter);
ahw              1874 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	adapter->ahw->hw_ops->read_crb(adapter, buf, offset, size);
ahw              1880 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	adapter->ahw->hw_ops->write_crb(adapter, buf, offset, size);
ahw              1886 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	return adapter->ahw->hw_ops->write_reg(adapter, off, data);
ahw              1892 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	return adapter->ahw->hw_ops->get_mac_address(adapter, mac, function);
ahw              1897 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	return adapter->ahw->hw_ops->setup_intr(adapter);
ahw              1903 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	return adapter->ahw->hw_ops->alloc_mbx_args(mbx, adapter, arg);
ahw              1909 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	if (adapter->ahw->hw_ops->mbx_cmd)
ahw              1910 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 		return adapter->ahw->hw_ops->mbx_cmd(adapter, cmd);
ahw              1917 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	adapter->ahw->hw_ops->get_func_no(adapter);
ahw              1922 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	return adapter->ahw->hw_ops->api_lock(adapter);
ahw              1927 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	adapter->ahw->hw_ops->api_unlock(adapter);
ahw              1932 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	if (adapter->ahw->hw_ops->add_sysfs)
ahw              1933 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 		adapter->ahw->hw_ops->add_sysfs(adapter);
ahw              1938 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	if (adapter->ahw->hw_ops->remove_sysfs)
ahw              1939 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 		adapter->ahw->hw_ops->remove_sysfs(adapter);
ahw              1945 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	sds_ring->adapter->ahw->hw_ops->process_lb_rcv_ring_diag(sds_ring);
ahw              1950 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	return adapter->ahw->hw_ops->create_rx_ctx(adapter);
ahw              1957 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	return adapter->ahw->hw_ops->create_tx_ctx(adapter, ptr, ring);
ahw              1962 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	return adapter->ahw->hw_ops->del_rx_ctx(adapter);
ahw              1968 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	return adapter->ahw->hw_ops->del_tx_ctx(adapter, ptr);
ahw              1974 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	return adapter->ahw->hw_ops->setup_link_event(adapter, enable);
ahw              1980 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	return adapter->ahw->hw_ops->get_nic_info(adapter, info, id);
ahw              1986 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	return adapter->ahw->hw_ops->get_pci_info(adapter, info);
ahw              1992 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	return adapter->ahw->hw_ops->set_nic_info(adapter, info);
ahw              1998 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	return adapter->ahw->hw_ops->change_macvlan(adapter, addr, id, cmd);
ahw              2014 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	adapter->ahw->hw_ops->napi_enable(adapter);
ahw              2031 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	adapter->ahw->hw_ops->napi_disable(adapter);
ahw              2037 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	return adapter->ahw->hw_ops->config_intr_coal(adapter, ethcoal);
ahw              2042 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	return adapter->ahw->hw_ops->config_rss(adapter, enable);
ahw              2048 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	return adapter->ahw->hw_ops->config_hw_lro(adapter, enable);
ahw              2053 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	return adapter->ahw->hw_ops->config_loopback(adapter, mode);
ahw              2058 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	return adapter->ahw->hw_ops->clear_loopback(adapter, mode);
ahw              2064 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	return adapter->ahw->hw_ops->config_promisc_mode(adapter, mode);
ahw              2071 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	adapter->ahw->hw_ops->change_l2_filter(adapter, addr, vlan, tx_ring);
ahw              2076 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	return adapter->ahw->hw_ops->get_board_info(adapter);
ahw              2081 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	return adapter->ahw->hw_ops->free_mac_list(adapter);
ahw              2086 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	if (adapter->ahw->hw_ops->set_mac_filter_count)
ahw              2087 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 		adapter->ahw->hw_ops->set_mac_filter_count(adapter);
ahw              2092 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	adapter->ahw->hw_ops->get_beacon_state(adapter);
ahw              2097 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	if (adapter->ahw->hw_ops->read_phys_port_id)
ahw              2098 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 		adapter->ahw->hw_ops->read_phys_port_id(adapter);
ahw              2104 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	return adapter->ahw->hw_ops->get_saved_state(t_hdr, index);
ahw              2110 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	adapter->ahw->hw_ops->set_saved_state(t_hdr, index, value);
ahw              2116 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	adapter->ahw->hw_ops->cache_tmpl_hdr_values(fw_dump);
ahw              2122 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	return adapter->ahw->hw_ops->get_cap_size(tmpl_hdr, index);
ahw              2128 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	adapter->ahw->hw_ops->set_sys_info(tmpl_hdr, idx, value);
ahw              2134 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	adapter->ahw->hw_ops->store_cap_mask(tmpl_hdr, mask);
ahw              2178 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	    !adapter->ahw->diag_test)
ahw              2187 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	    !adapter->ahw->diag_test)
ahw              2235 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	    !adapter->ahw->diag_test &&
ahw              2245 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	if (adapter->ahw->hw_ops->enable_sds_intr)
ahw              2246 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 		adapter->ahw->hw_ops->enable_sds_intr(adapter, sds_ring);
ahw              2253 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	if (adapter->ahw->hw_ops->disable_sds_intr)
ahw              2254 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 		adapter->ahw->hw_ops->disable_sds_intr(adapter, sds_ring);
ahw              2260 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	if (adapter->ahw->hw_ops->enable_tx_intr)
ahw              2261 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 		adapter->ahw->hw_ops->enable_tx_intr(adapter, tx_ring);
ahw              2267 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	if (adapter->ahw->hw_ops->disable_tx_intr)
ahw              2268 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 		adapter->ahw->hw_ops->disable_tx_intr(adapter, tx_ring);
ahw              2279 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	    !adapter->ahw->diag_test &&
ahw              2309 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	if (NETIF_MSG_##lvl & adapter->ahw->msg_enable)	\
ahw              2354 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h 	return (adapter->ahw->op_mode == QLCNIC_SRIOV_PF_FUNC) ? true : false;
ahw               262 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c void qlcnic_83xx_register_map(struct qlcnic_hardware_context *ahw)
ahw               264 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	ahw->hw_ops		= &qlcnic_83xx_hw_ops;
ahw               265 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	ahw->reg_tbl		= (u32 *)qlcnic_83xx_reg_tbl;
ahw               266 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	ahw->ext_reg_tbl	= (u32 *)qlcnic_83xx_ext_reg_tbl;
ahw               290 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	base = adapter->ahw->pci_base0 +
ahw               291 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	       QLC_83XX_CRB_WIN_FUNC(adapter->ahw->pci_func);
ahw               303 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw               307 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		return QLCRDX(ahw, QLCNIC_WILDCARD);
ahw               319 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw               323 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		QLCWRX(ahw, QLCNIC_WILDCARD, data);
ahw               335 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw               338 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	adapter->tgt_status_reg = ahw->pci_base0 + QLC_83XX_INTX_PTR;
ahw               339 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	adapter->tgt_mask_reg = ahw->pci_base0 + QLC_83XX_INTX_MASK;
ahw               340 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	adapter->isr_int_vec = ahw->pci_base0 + QLC_83XX_INTX_TRGR;
ahw               362 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw               369 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		num_msix = ahw->num_msix;
ahw               378 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			num_msix = ahw->num_msix;
ahw               389 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	ahw->intr_tbl =
ahw               392 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	if (!ahw->intr_tbl)
ahw               396 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		if (adapter->ahw->pci_func >= QLC_MAX_LEGACY_FUNC_SUPP) {
ahw               398 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 				ahw->pci_func);
ahw               407 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			ahw->intr_tbl[i].type = QLCNIC_INTRPT_MSIX;
ahw               409 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			ahw->intr_tbl[i].type = QLCNIC_INTRPT_INTX;
ahw               410 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		ahw->intr_tbl[i].id = i;
ahw               411 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		ahw->intr_tbl[i].src = 0;
ahw               438 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	mask = QLCRDX(adapter->ahw, QLCNIC_DEF_INT_MASK);
ahw               439 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	writel(0, adapter->ahw->pci_base0 + mask);
ahw               446 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	mask = QLCRDX(adapter->ahw, QLCNIC_DEF_INT_MASK);
ahw               447 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	writel(1, adapter->ahw->pci_base0 + mask);
ahw               448 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	QLCWRX(adapter->ahw, QLCNIC_MBX_INTR_ENBL, 0);
ahw               460 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		cmd->rsp.arg[i] = readl(QLCNIC_MBX_FW(adapter->ahw, i));
ahw               466 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw               474 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	if (QLC_83XX_INTX_FUNC(intr_val) != adapter->ahw->pci_func) {
ahw               486 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		if (QLC_83XX_INTX_FUNC(intr_val) != ahw->pci_func)
ahw               504 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_mailbox *mbx = adapter->ahw->mailbox;
ahw               508 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	resp = QLCRDX(adapter->ahw, QLCNIC_FW_MBX_CTRL);
ahw               512 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	event = readl(QLCNIC_MBX_FW(adapter->ahw, 0));
ahw               528 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw               535 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	if (ahw->diag_test) {
ahw               536 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		if (ahw->diag_test == QLCNIC_INTERRUPT_TEST)
ahw               537 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			ahw->diag_cnt++;
ahw               564 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	adapter->ahw->diag_cnt++;
ahw               580 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		num_msix = adapter->ahw->num_msix - 1;
ahw               605 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		val = adapter->msix_entries[adapter->ahw->num_msix - 1].vector;
ahw               632 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	u32 val = QLCRDX(adapter->ahw, QLCNIC_INFORMANT);
ahw               633 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	adapter->ahw->pci_func = (val >> 24) & 0xff;
ahw               641 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw               643 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	addr = ahw->pci_base0 + QLC_83XX_SEM_LOCK_FUNC(ahw->pci_func);
ahw               649 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 					    ahw->pci_func);
ahw               662 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw               664 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	addr = ahw->pci_base0 + QLC_83XX_SEM_UNLOCK_FUNC(ahw->pci_func);
ahw               704 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw               713 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		if (ahw->port_config & QLC_83XX_10G_CAPABLE) {
ahw               714 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			ahw->port_type = QLCNIC_XGBE;
ahw               715 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		} else if (ahw->port_config & QLC_83XX_10_CAPABLE ||
ahw               716 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			   ahw->port_config & QLC_83XX_100_CAPABLE ||
ahw               717 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			   ahw->port_config & QLC_83XX_1G_CAPABLE) {
ahw               718 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			ahw->port_type = QLCNIC_GBE;
ahw               720 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			ahw->port_type = QLCNIC_XGBE;
ahw               723 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		if (QLC_83XX_AUTONEG(ahw->port_config))
ahw               724 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			ahw->link_autoneg = AUTONEG_ENABLE;
ahw               732 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw               733 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	u16 act_pci_fn = ahw->total_nic_func;
ahw               736 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	ahw->max_mc_count = QLC_83XX_MAX_MC_COUNT;
ahw               743 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	ahw->max_uc_count = count;
ahw               751 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		val = BIT_2 | ((adapter->ahw->num_msix - 1) << 8);
ahw               755 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	QLCWRX(adapter->ahw, QLCNIC_MBX_INTR_ENBL, val);
ahw               763 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw               765 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	ahw->fw_hal_version = 2;
ahw               774 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	op_mode = QLCRDX(adapter->ahw, QLC_83XX_DRV_OP_MODE);
ahw               779 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 							 ahw->pci_func);
ahw               782 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		ahw->op_mode = QLCNIC_NON_PRIV_FUNC;
ahw               785 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			 ahw->fw_hal_version);
ahw               829 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw               845 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		__func__, opcode, cmd->type, ahw->pci_func, ahw->op_mode);
ahw               846 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	flush_workqueue(ahw->mailbox->work_q);
ahw               853 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_mailbox *mbx = adapter->ahw->mailbox;
ahw               854 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw               867 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			__func__, opcode, cmd->type, ahw->pci_func,
ahw               868 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			ahw->op_mode);
ahw               877 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 				__func__, opcode, cmd_type, ahw->pci_func,
ahw               878 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 				ahw->op_mode);
ahw               890 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			__func__, opcode, cmd_type, ahw->pci_func,
ahw               891 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			ahw->op_mode);
ahw               924 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			temp = adapter->ahw->fw_hal_version << 29;
ahw               948 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		cmd.req.arg[i] = adapter->ahw->mbox_aen[i];
ahw               962 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	clear_bit(QLC_83XX_IDC_COMP_AEN, &adapter->ahw->idc.status);
ahw               968 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw               973 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		event[i] = readl(QLCNIC_MBX_FW(ahw, i));
ahw               985 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			adapter->ahw->mbox_aen[i] = QLCNIC_MBX_RSP(event[i]);
ahw               990 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		ahw->extend_lb_time = event[1] >> 8 & 0xf;
ahw              1012 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	QLCWRX(ahw, QLCNIC_FW_MBX_CTRL, QLCNIC_CLR_OWNER);
ahw              1018 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              1019 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_mailbox *mbx = ahw->mailbox;
ahw              1023 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	resp = QLCRDX(ahw, QLCNIC_FW_MBX_CTRL);
ahw              1025 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		event = readl(QLCNIC_MBX_FW(ahw, 0));
ahw              1077 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              1082 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	ahw->hw_ops->alloc_mbx_args(&cmd, adapter,
ahw              1098 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			intrpt_id = ahw->intr_tbl[i].id;
ahw              1100 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			intrpt_id = QLCRDX(ahw, QLCNIC_DEF_INT_ID);
ahw              1102 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		if (adapter->ahw->diag_test != QLCNIC_LOOPBACK_TEST)
ahw              1113 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	err = ahw->hw_ops->mbx_cmd(adapter, &cmd);
ahw              1125 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		sds->crb_sts_consumer = ahw->pci_base0 +
ahw              1128 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			intr_mask = ahw->intr_tbl[i].src;
ahw              1130 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			intr_mask = QLCRDX(ahw, QLCNIC_DEF_INT_MASK);
ahw              1132 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		sds->crb_intr_mask = ahw->pci_base0 + intr_mask;
ahw              1178 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              1220 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			intrpt_id = ahw->intr_tbl[i].id;
ahw              1222 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			intrpt_id = QLCRDX(ahw, QLCNIC_DEF_INT_ID);
ahw              1223 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		if (adapter->ahw->diag_test != QLCNIC_LOOPBACK_TEST)
ahw              1252 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	err = ahw->hw_ops->mbx_cmd(adapter, &cmd);
ahw              1267 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	rds->crb_rcv_producer = ahw->pci_base0 +
ahw              1271 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	rds->crb_rcv_producer = ahw->pci_base0 +
ahw              1276 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		sds->crb_sts_consumer = ahw->pci_base0 +
ahw              1279 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			intr_mask = ahw->intr_tbl[i].src;
ahw              1281 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			intr_mask = QLCRDX(ahw, QLCNIC_DEF_INT_MASK);
ahw              1282 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		sds->crb_intr_mask = ahw->pci_base0 + intr_mask;
ahw              1323 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              1344 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		msix_id = ahw->intr_tbl[msix_vector].id;
ahw              1346 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		msix_id = QLCRDX(ahw, QLCNIC_DEF_INT_ID);
ahw              1349 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	if (adapter->ahw->diag_test != QLCNIC_LOOPBACK_TEST)
ahw              1378 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	tx->crb_cmd_producer = ahw->pci_base0 + mbx_out->host_prod;
ahw              1382 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		intr_mask = ahw->intr_tbl[adapter->drv_sds_rings + ring].src;
ahw              1383 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		tx->crb_intr_mask = ahw->pci_base0 + intr_mask;
ahw              1411 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	adapter->ahw->diag_test = test;
ahw              1412 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	adapter->ahw->linkup = 0;
ahw              1436 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	if (adapter->ahw->diag_test == QLCNIC_INTERRUPT_TEST) {
ahw              1443 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	if (adapter->ahw->diag_test == QLCNIC_LOOPBACK_TEST) {
ahw              1444 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		adapter->ahw->loopback_state = 0;
ahw              1445 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		adapter->ahw->hw_ops->setup_link_event(adapter, 1);
ahw              1460 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	if (adapter->ahw->diag_test == QLCNIC_INTERRUPT_TEST) {
ahw              1471 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	adapter->ahw->diag_test = 0;
ahw              1486 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              1497 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 				ahw->beacon_state = QLC_83XX_BEACON_OFF;
ahw              1499 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 				ahw->beacon_state = QLC_83XX_BEACON_ON;
ahw              1532 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 				adapter->ahw->mbox_reg[i] = cmd.rsp.arg[i+1];
ahw              1564 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		cmd.req.arg[1] = adapter->ahw->mbox_reg[0];
ahw              1565 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		cmd.req.arg[2] = adapter->ahw->mbox_reg[1];
ahw              1566 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		cmd.req.arg[3] = adapter->ahw->mbox_reg[2];
ahw              1568 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			cmd.req.arg[4] = adapter->ahw->mbox_reg[3];
ahw              1584 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	if (adapter->ahw->op_mode == QLCNIC_NON_PRIV_FUNC) {
ahw              1664 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	cmd.req.arg[1] = adapter->ahw->port_config;
ahw              1685 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		adapter->ahw->port_config = cmd.rsp.arg[1];
ahw              1762 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              1767 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	if (ahw->op_mode == QLCNIC_NON_PRIV_FUNC) {
ahw              1812 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	} while ((adapter->ahw->linkup && ahw->has_link_events) != 1);
ahw              1831 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              1835 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		    ahw->extend_lb_time);
ahw              1836 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	temp = ahw->extend_lb_time * 1000;
ahw              1838 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	ahw->extend_lb_time = 0;
ahw              1843 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              1848 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	ahw->extend_lb_time = 0;
ahw              1854 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	config = ahw->port_config;
ahw              1864 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	set_bit(QLC_83XX_IDC_COMP_AEN, &ahw->idc.status);
ahw              1867 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		ahw->port_config |= QLC_83XX_CFG_LOOPBACK_HSS;
ahw              1869 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		ahw->port_config |= QLC_83XX_CFG_LOOPBACK_EXT;
ahw              1875 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			   ahw->port_config);
ahw              1876 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		ahw->port_config = config;
ahw              1877 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		clear_bit(QLC_83XX_IDC_COMP_AEN, &ahw->idc.status);
ahw              1888 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			clear_bit(QLC_83XX_IDC_COMP_AEN, &ahw->idc.status);
ahw              1892 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		if (ahw->extend_lb_time)
ahw              1899 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			clear_bit(QLC_83XX_IDC_COMP_AEN, &ahw->idc.status);
ahw              1903 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	} while (test_bit(QLC_83XX_IDC_COMP_AEN, &ahw->idc.status));
ahw              1912 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              1913 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	u32 config = ahw->port_config, max_wait_count;
ahw              1917 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	ahw->extend_lb_time = 0;
ahw              1919 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	set_bit(QLC_83XX_IDC_COMP_AEN, &ahw->idc.status);
ahw              1921 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		ahw->port_config &= ~QLC_83XX_CFG_LOOPBACK_HSS;
ahw              1923 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		ahw->port_config &= ~QLC_83XX_CFG_LOOPBACK_EXT;
ahw              1929 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			   ahw->port_config);
ahw              1930 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		ahw->port_config = config;
ahw              1931 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		clear_bit(QLC_83XX_IDC_COMP_AEN, &ahw->idc.status);
ahw              1942 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			clear_bit(QLC_83XX_IDC_COMP_AEN, &ahw->idc.status);
ahw              1946 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		if (ahw->extend_lb_time)
ahw              1953 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			clear_bit(QLC_83XX_IDC_COMP_AEN, &ahw->idc.status);
ahw              1956 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	} while (test_bit(QLC_83XX_IDC_COMP_AEN, &ahw->idc.status));
ahw              2192 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_nic_intr_coalesce *coal = &adapter->ahw->coal;
ahw              2219 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_nic_intr_coalesce *coal = &adapter->ahw->coal;
ahw              2264 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_nic_intr_coalesce *coal = &adapter->ahw->coal;
ahw              2319 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              2324 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		ahw->link_speed = MSW(data[2]);
ahw              2327 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			ahw->link_duplex = DUPLEX_FULL;
ahw              2329 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			ahw->link_duplex = DUPLEX_HALF;
ahw              2331 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		ahw->link_speed = SPEED_UNKNOWN;
ahw              2332 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		ahw->link_duplex = DUPLEX_UNKNOWN;
ahw              2335 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	ahw->link_autoneg = MSB(MSW(data[3]));
ahw              2336 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	ahw->module_type = MSB(LSW(data[3]));
ahw              2337 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	ahw->has_link_events = 1;
ahw              2338 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	ahw->lb_mode = data[4] & QLCNIC_LB_MODE_MASK;
ahw              2349 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	mbx = adapter->ahw->mailbox;
ahw              2351 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	resp = QLCRDX(adapter->ahw, QLCNIC_FW_MBX_CTRL);
ahw              2355 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	event = readl(QLCNIC_MBX_FW(adapter->ahw, 0));
ahw              2366 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	mask = QLCRDX(adapter->ahw, QLCNIC_DEF_INT_MASK);
ahw              2367 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	writel(0, adapter->ahw->pci_base0 + mask);
ahw              2378 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	if (adapter->ahw->op_mode != QLCNIC_MGMT_FUNC) {
ahw              2419 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              2425 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	if (func_id != ahw->pci_func) {
ahw              2429 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		cmd.req.arg[1] = ahw->pci_func << 16;
ahw              2457 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	memcpy(ahw->extra_capability, &cmd.rsp.arg[16],
ahw              2458 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	       sizeof(ahw->extra_capability));
ahw              2493 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              2506 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	ahw->total_nic_func = 0;
ahw              2508 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		ahw->max_pci_func = cmd.rsp.arg[1] & 0xFF;
ahw              2509 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		for (i = 2, j = 0; j < ahw->max_vnic_func; j++, pci_info++) {
ahw              2537 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	ahw->total_nic_func = nic;
ahw              2538 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	ahw->total_pci_func = nic + fcoe + iscsi;
ahw              2539 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	if (ahw->total_nic_func == 0 || ahw->total_pci_func == 0) {
ahw              2541 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			__func__, ahw->total_nic_func, ahw->total_pci_func);
ahw              2556 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	max_ints = adapter->ahw->num_msix - 1;
ahw              2564 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		cmd.req.arg[1] |= (adapter->ahw->pci_func << 8) | BIT_16;
ahw              2568 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		val = type | (adapter->ahw->intr_tbl[i].type << 4);
ahw              2569 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		if (adapter->ahw->intr_tbl[i].type == QLCNIC_INTRPT_MSIX)
ahw              2570 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			val |= (adapter->ahw->intr_tbl[i].id << 16);
ahw              2586 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 				 adapter->ahw->intr_tbl[i].id);
ahw              2590 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			adapter->ahw->intr_tbl[i].id = MSW(val);
ahw              2591 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			adapter->ahw->intr_tbl[i].enabled = 1;
ahw              2593 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			adapter->ahw->intr_tbl[i].src = temp;
ahw              2595 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			adapter->ahw->intr_tbl[i].id = i;
ahw              2596 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			adapter->ahw->intr_tbl[i].enabled = 0;
ahw              2597 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			adapter->ahw->intr_tbl[i].src = 0;
ahw              2724 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	cmd = adapter->ahw->fdt.write_statusreg_cmd;
ahw              2728 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 				     adapter->ahw->fdt.write_enable_bits);
ahw              2744 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 				     adapter->ahw->fdt.write_statusreg_cmd));
ahw              2746 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 				     adapter->ahw->fdt.write_disable_bits);
ahw              2796 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	memset(&adapter->ahw->fdt, 0, fdt_size);
ahw              2798 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 						(u8 *)&adapter->ahw->fdt,
ahw              2800 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	qlcnic_swap32_buffer((u32 *)&adapter->ahw->fdt, count);
ahw              2814 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	if (adapter->ahw->fdt.mfg_id == adapter->flash_mfg_id) {
ahw              2839 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	cmd = QLC_83XX_FLASH_FDT_ERASE_DEF_SIG | adapter->ahw->fdt.erase_cmd;
ahw              2840 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	if (adapter->ahw->fdt.mfg_id == adapter->flash_mfg_id)
ahw              2856 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	if (adapter->ahw->fdt.mfg_id == adapter->flash_mfg_id) {
ahw              2980 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	val = QLCRDX(adapter->ahw, QLC_83XX_RECOVER_DRV_LOCK);
ahw              2987 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		QLCWRX(adapter->ahw, QLC_83XX_RECOVER_DRV_LOCK, val);
ahw              2991 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		val = QLCRDX(adapter->ahw, QLC_83XX_RECOVER_DRV_LOCK);
ahw              2996 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			QLCWRX(adapter->ahw, QLC_83XX_RECOVER_DRV_LOCK, val);
ahw              2998 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			QLCRDX(adapter->ahw, QLC_83XX_DRV_UNLOCK);
ahw              3001 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			QLCWRX(adapter->ahw, QLC_83XX_RECOVER_DRV_LOCK, val);
ahw              3022 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		status = QLCRDX(adapter->ahw, QLC_83XX_DRV_LOCK);
ahw              3030 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			temp = QLCRDX(adapter->ahw, QLC_83XX_DRV_LOCK_ID);
ahw              3033 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			val = QLCRDX(adapter->ahw, QLC_83XX_DRV_LOCK_ID);
ahw              3057 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	val = QLCRDX(adapter->ahw, QLC_83XX_DRV_LOCK_ID);
ahw              3061 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	QLCWRX(adapter->ahw, QLC_83XX_DRV_LOCK_ID, val);
ahw              3070 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	val = QLCRDX(adapter->ahw, QLC_83XX_DRV_LOCK_ID);
ahw              3080 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	QLCWRX(adapter->ahw, QLC_83XX_DRV_LOCK_ID, val);
ahw              3081 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	QLCRDX(adapter->ahw, QLC_83XX_DRV_UNLOCK);
ahw              3094 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	mutex_lock(&adapter->ahw->mem_lock);
ahw              3102 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			mutex_unlock(&adapter->ahw->mem_lock);
ahw              3125 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			mutex_unlock(&adapter->ahw->mem_lock);
ahw              3130 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	mutex_unlock(&adapter->ahw->mem_lock);
ahw              3177 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              3199 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			ahw->port_type = QLCNIC_GBE;
ahw              3202 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			ahw->port_type = QLCNIC_XGBE;
ahw              3215 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              3220 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		pci_func = ahw->pci_func;
ahw              3222 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	state = readl(ahw->pci_base0 + QLC_83XX_LINK_STATE(pci_func));
ahw              3241 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			ahw->link_speed = SPEED_10;
ahw              3244 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			ahw->link_speed = SPEED_100;
ahw              3247 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			ahw->link_speed = SPEED_1000;
ahw              3250 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			ahw->link_speed = SPEED_10000;
ahw              3253 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			ahw->link_speed = 0;
ahw              3261 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			ahw->supported_type = PORT_FIBRE;
ahw              3262 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			ahw->port_type = QLCNIC_XGBE;
ahw              3267 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			ahw->supported_type = PORT_FIBRE;
ahw              3268 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			ahw->port_type = QLCNIC_GBE;
ahw              3271 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			ahw->supported_type = PORT_TP;
ahw              3272 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			ahw->port_type = QLCNIC_GBE;
ahw              3278 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			ahw->supported_type = PORT_DA;
ahw              3279 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			ahw->port_type = QLCNIC_XGBE;
ahw              3282 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			ahw->supported_type = PORT_OTHER;
ahw              3283 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			ahw->port_type = QLCNIC_XGBE;
ahw              3296 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              3306 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		ahw->module_type = QLC_83XX_SFP_MODULE_TYPE(config);
ahw              3310 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	ahw->board_type = QLCNIC_BRDTYPE_83XX_10G;
ahw              3312 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	if (netif_running(adapter->netdev) && ahw->has_link_events) {
ahw              3313 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		ecmd->base.speed = ahw->link_speed;
ahw              3314 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		ecmd->base.duplex = ahw->link_duplex;
ahw              3315 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		ecmd->base.autoneg = ahw->link_autoneg;
ahw              3332 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		if (ahw->port_config & QLC_83XX_10_CAPABLE)
ahw              3334 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		if (ahw->port_config & QLC_83XX_100_CAPABLE)
ahw              3336 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		if (ahw->port_config & QLC_83XX_1G_CAPABLE)
ahw              3338 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		if (ahw->port_config & QLC_83XX_10G_CAPABLE)
ahw              3340 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		if (ahw->port_config & QLC_83XX_AUTONEG_ENABLE)
ahw              3343 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		switch (ahw->link_speed) {
ahw              3362 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	switch (ahw->supported_type) {
ahw              3384 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	ecmd->base.phy_address = ahw->physical_port;
ahw              3397 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              3398 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	u32 config = adapter->ahw->port_config;
ahw              3409 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		ahw->port_config |= QLC_83XX_AUTONEG_ENABLE;
ahw              3410 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		ahw->port_config |= (QLC_83XX_100_CAPABLE |
ahw              3414 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		ahw->port_config &= ~QLC_83XX_AUTONEG_ENABLE;
ahw              3417 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			ahw->port_config &= ~(QLC_83XX_100_CAPABLE |
ahw              3420 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			ahw->port_config |= QLC_83XX_10_CAPABLE;
ahw              3423 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			ahw->port_config &= ~(QLC_83XX_10_CAPABLE |
ahw              3426 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			ahw->port_config |= QLC_83XX_100_CAPABLE;
ahw              3429 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			ahw->port_config &= ~(QLC_83XX_10_CAPABLE |
ahw              3432 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			ahw->port_config |= QLC_83XX_1G_CAPABLE;
ahw              3435 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			ahw->port_config &= ~(QLC_83XX_10_CAPABLE |
ahw              3438 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			ahw->port_config |= QLC_83XX_10G_CAPABLE;
ahw              3448 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		ahw->port_config = config;
ahw              3607 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		sizeof(*adapter->ahw->ext_reg_tbl)) +
ahw              3609 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		sizeof(*adapter->ahw->reg_tbl));
ahw              3621 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		regs_buff[i++] = QLCRDX(adapter->ahw, j);
ahw              3628 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              3651 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	ahw->diag_cnt = 0;
ahw              3657 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		intrpt_id = ahw->intr_tbl[0].id;
ahw              3659 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		intrpt_id = QLCRDX(ahw, QLCNIC_DEF_INT_ID);
ahw              3680 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	ret = !ahw->diag_cnt;
ahw              3698 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              3708 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	config = ahw->port_config;
ahw              3734 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              3744 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	config = ahw->port_config;
ahw              3746 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	if (ahw->port_type == QLCNIC_GBE) {
ahw              3748 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			ahw->port_config |= QLC_83XX_ENABLE_AUTONEG;
ahw              3750 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			ahw->port_config &= ~QLC_83XX_ENABLE_AUTONEG;
ahw              3751 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	} else if ((ahw->port_type == QLCNIC_XGBE) && (pause->autoneg)) {
ahw              3756 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		ahw->port_config |= QLC_83XX_CFG_STD_PAUSE;
ahw              3759 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		ahw->port_config |= QLC_83XX_CFG_STD_TX_RX_PAUSE;
ahw              3761 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		ahw->port_config &= ~QLC_83XX_CFG_STD_TX_PAUSE;
ahw              3762 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		ahw->port_config |= QLC_83XX_CFG_STD_RX_PAUSE;
ahw              3764 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		ahw->port_config &= ~QLC_83XX_CFG_STD_RX_PAUSE;
ahw              3765 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		ahw->port_config |= QLC_83XX_CFG_STD_TX_PAUSE;
ahw              3767 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		ahw->port_config &= ~(QLC_83XX_CFG_STD_TX_RX_PAUSE |
ahw              3774 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		ahw->port_config = config;
ahw              3836 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              3837 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlc_83xx_idc *idc = &ahw->idc;
ahw              3844 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	if (ahw->nic_mode == QLCNIC_VNIC_MODE) {
ahw              3845 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		if (ahw->op_mode == QLCNIC_MGMT_FUNC) {
ahw              3894 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_mailbox *mbx = adapter->ahw->mailbox;
ahw              3914 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              3915 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_mailbox *mbx = ahw->mailbox;
ahw              3921 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	host_mbx_ctrl = QLCRDX(ahw, QLCNIC_HOST_MBX_CTRL);
ahw              3924 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		ahw->idc.collect_dump = 1;
ahw              3935 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		QLCWRX(adapter->ahw, QLCNIC_HOST_MBX_CTRL, QLCNIC_SET_OWNER);
ahw              3937 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		QLCWRX(adapter->ahw, QLCNIC_FW_MBX_CTRL, QLCNIC_CLR_OWNER);
ahw              3943 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_mailbox *mbx = adapter->ahw->mailbox;
ahw              3959 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              3964 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		writel(mbx_cmd, QLCNIC_MBX_HOST(ahw, 0));
ahw              3966 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			writel(cmd->req.arg[i], QLCNIC_MBX_HOST(ahw, i));
ahw              3968 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		fw_hal_version = ahw->fw_hal_version;
ahw              3973 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		writel(mbx_cmd, QLCNIC_MBX_HOST(ahw, 0));
ahw              3981 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		writel(mbx_cmd, QLCNIC_MBX_HOST(ahw, 1));
ahw              3984 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			writel(*(cmd->hdr++), QLCNIC_MBX_HOST(ahw, i));
ahw              3986 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			writel(*(cmd->pay++), QLCNIC_MBX_HOST(ahw, i));
ahw              3992 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_mailbox *mbx = adapter->ahw->mailbox;
ahw              4008 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_mailbox *mbx = adapter->ahw->mailbox;
ahw              4038 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		fw_data = readl(QLCNIC_MBX_FW(adapter->ahw, 2));
ahw              4054 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              4059 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	fw_data = readl(QLCNIC_MBX_FW(ahw, 0));
ahw              4073 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			__func__, cmd->cmd_op, cmd->type, ahw->pci_func,
ahw              4074 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 			ahw->op_mode, mbx_err_code);
ahw              4084 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              4087 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	offset = QLCRDX(ahw, QLCNIC_DEF_INT_MASK);
ahw              4089 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		 readl(ahw->pci_base0 + offset),
ahw              4090 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		 QLCRDX(ahw, QLCNIC_MBX_INTR_ENBL),
ahw              4091 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		 QLCRDX(ahw, QLCNIC_HOST_MBX_CTRL),
ahw              4092 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 		 QLCRDX(ahw, QLCNIC_FW_MBX_CTRL));
ahw              4103 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_hardware_context *ahw;
ahw              4107 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	ahw = adapter->ahw;
ahw              4138 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 				__func__, cmd->cmd_op, cmd->type, ahw->pci_func,
ahw              4139 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 				ahw->op_mode);
ahw              4162 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              4165 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	ahw->mailbox = kzalloc(sizeof(*mbx), GFP_KERNEL);
ahw              4166 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	if (!ahw->mailbox)
ahw              4169 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c 	mbx = ahw->mailbox;
ahw               351 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.h #define QLCNIC_MBX_HOST(ahw, i)	((ahw)->pci_base0 + ((i) * 4))
ahw               352 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.h #define QLCNIC_MBX_FW(ahw, i)		((ahw)->pci_base0 + 0x800 + ((i) * 4))
ahw               137 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	val = QLCRDX(adapter->ahw, QLC_83XX_IDC_DRV_PRESENCE);
ahw               147 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	cur = adapter->ahw->idc.curr_state;
ahw               148 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	prev = adapter->ahw->idc.prev_state;
ahw               152 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 		 adapter->ahw->idc.name[cur],
ahw               153 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 		 adapter->ahw->idc.name[prev]);
ahw               167 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	val = QLCRDX(adapter->ahw, QLC_83XX_IDC_DRV_AUDIT);
ahw               171 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 		seconds = jiffies / HZ - adapter->ahw->idc.sec_counter;
ahw               176 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	QLCWRX(adapter->ahw, QLC_83XX_IDC_DRV_AUDIT, val);
ahw               177 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	adapter->ahw->idc.sec_counter = jiffies / HZ;
ahw               189 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	val = QLCRDX(adapter->ahw, QLC_83XX_IDC_MIN_VERSION);
ahw               192 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	QLCWRX(adapter->ahw, QLC_83XX_IDC_MIN_VERSION, val);
ahw               205 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	val = QLCRDX(adapter->ahw, QLC_83XX_IDC_MAJ_VERSION);
ahw               208 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	QLCWRX(adapter->ahw, QLC_83XX_IDC_MAJ_VERSION, val);
ahw               227 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	val = QLCRDX(adapter->ahw, QLC_83XX_IDC_DRV_PRESENCE);
ahw               234 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	QLCWRX(adapter->ahw, QLC_83XX_IDC_DRV_PRESENCE, val);
ahw               248 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	val = QLCRDX(adapter->ahw, QLC_83XX_IDC_MAJ_VERSION);
ahw               271 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	QLCWRX(adapter->ahw, QLC_83XX_IDC_DRV_ACK, 0);
ahw               273 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	val = QLCRDX(adapter->ahw, QLC_83XX_IDC_CTRL);
ahw               275 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	QLCWRX(adapter->ahw, QLC_83XX_IDC_CTRL, val);
ahw               293 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	val = QLCRDX(adapter->ahw, QLC_83XX_IDC_DRV_ACK);
ahw               298 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	QLCWRX(adapter->ahw, QLC_83XX_IDC_DRV_ACK, val);
ahw               311 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	seconds = jiffies / HZ - adapter->ahw->idc.sec_counter;
ahw               333 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	ack = QLCRDX(adapter->ahw, QLC_83XX_IDC_DRV_ACK);
ahw               334 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	presence = QLCRDX(adapter->ahw, QLC_83XX_IDC_DRV_PRESENCE);
ahw               342 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 			val = QLCRDX(adapter->ahw, QLC_83XX_IDC_DRV_PRESENCE);
ahw               346 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 			QLCWRX(adapter->ahw, QLC_83XX_IDC_DRV_PRESENCE, val);
ahw               410 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	for (i = 0; i < adapter->ahw->num_msix; i++) {
ahw               411 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 		adapter->ahw->intr_tbl[i].id = i;
ahw               412 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 		adapter->ahw->intr_tbl[i].enabled = 0;
ahw               413 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 		adapter->ahw->intr_tbl[i].src = 0;
ahw               451 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	QLCWRX(adapter->ahw, QLC_83XX_IDC_DEV_STATE, QLC_83XX_IDC_DEV_FAILED);
ahw               469 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	QLCWRX(adapter->ahw, QLC_83XX_IDC_DEV_STATE, QLC_83XX_IDC_DEV_INIT);
ahw               485 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	QLCWRX(adapter->ahw, QLC_83XX_IDC_DEV_STATE,
ahw               502 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	QLCWRX(adapter->ahw, QLC_83XX_IDC_DEV_STATE,
ahw               519 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	QLCWRX(adapter->ahw, QLC_83XX_IDC_DEV_STATE, QLC_83XX_IDC_DEV_READY);
ahw               541 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	reg1 = QLCRDX(adapter->ahw, QLC_83XX_IDC_DEV_PARTITION_INFO_1);
ahw               542 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	reg2 = QLCRDX(adapter->ahw, QLC_83XX_IDC_DEV_PARTITION_INFO_2);
ahw               617 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	qlcnic_83xx_reinit_mbx_work(adapter->ahw->mailbox);
ahw               649 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw               653 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	set_bit(QLC_83XX_MODULE_LOADED, &adapter->ahw->idc.status);
ahw               655 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	ahw->idc.quiesce_req = 0;
ahw               656 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	ahw->idc.delay = QLC_83XX_IDC_FW_POLL_DELAY;
ahw               657 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	ahw->idc.err_code = 0;
ahw               658 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	ahw->idc.collect_dump = 0;
ahw               659 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	ahw->reset_context = 0;
ahw               661 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	ahw->idc.delay_reset = 0;
ahw               679 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw               681 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	if (ahw->idc.prev_state != QLC_83XX_IDC_DEV_READY) {
ahw               684 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 		if ((ahw->idc.prev_state == QLC_83XX_IDC_DEV_NEED_RESET) ||
ahw               685 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 		    (ahw->idc.prev_state == QLC_83XX_IDC_DEV_INIT)) {
ahw               709 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw               712 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	state = QLCRDX(adapter->ahw, QLC_83XX_VNIC_STATE);
ahw               714 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 		if (!ahw->idc.vnic_wait_limit--) {
ahw               723 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 		if (ahw->idc.vnic_state != QLCNIC_DEV_NPAR_OPER) {
ahw               728 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 			if (ahw->idc.prev_state != QLC_83XX_IDC_DEV_UNKNOWN) {
ahw               732 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 			adapter->ahw->idc.vnic_state =  QLCNIC_DEV_NPAR_OPER;
ahw               742 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	adapter->ahw->idc.err_code = -EIO;
ahw               797 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	if (adapter->ahw->idc.prev_state == QLC_83XX_IDC_DEV_NEED_RESET) {
ahw               799 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 		if (adapter->ahw->pci_func == owner)
ahw               821 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw               822 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	struct qlcnic_mailbox *mbx = ahw->mailbox;
ahw               827 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	if (ahw->idc.state_entry(adapter))
ahw               831 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 		if (ahw->temp == QLCNIC_TEMP_PANIC) {
ahw               835 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 				adapter->ahw->temp);
ahw               844 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	val = QLCRDX(adapter->ahw, QLC_83XX_IDC_CTRL);
ahw               860 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	if ((val & QLC_83XX_IDC_GRACEFULL_RESET) || ahw->idc.collect_dump) {
ahw               869 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	if (ahw->reset_context &&
ahw               871 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 		adapter->ahw->reset_context = 0;
ahw               877 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	if (adapter->ahw->idc.quiesce_req) {
ahw               900 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	struct qlcnic_mailbox *mbx = adapter->ahw->mailbox;
ahw               903 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	if (adapter->ahw->idc.prev_state != QLC_83XX_IDC_DEV_NEED_RESET) {
ahw               907 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 		if (adapter->ahw->nic_mode == QLCNIC_VNIC_MODE)
ahw               913 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 			adapter->ahw->idc.delay_reset = 1;
ahw               926 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 		if (adapter->ahw->idc.delay_reset) {
ahw               929 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 			adapter->ahw->idc.delay_reset = 0;
ahw               955 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw               958 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	val = QLCRDX(adapter->ahw, QLC_83XX_IDC_CTRL);
ahw               961 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 		if (ahw->pci_func == owner) {
ahw               970 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	ahw->idc.err_code = -EIO;
ahw               986 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	cur = adapter->ahw->idc.curr_state;
ahw               987 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	prev = adapter->ahw->idc.prev_state;
ahw              1033 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	u16 port = adapter->ahw->vxlan_port;
ahw              1063 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	u16 vxlan_port = adapter->ahw->vxlan_port;
ahw              1109 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 		adapter->ahw->vxlan_port = 0;
ahw              1131 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	state =	QLCRDX(adapter->ahw, QLC_83XX_IDC_DEV_STATE);
ahw              1135 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 		adapter->ahw->idc.curr_state = QLC_83XX_IDC_DEV_UNKNOWN;
ahw              1137 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 		adapter->ahw->idc.curr_state = state;
ahw              1140 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	switch (adapter->ahw->idc.curr_state) {
ahw              1163 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	adapter->ahw->idc.prev_state = adapter->ahw->idc.curr_state;
ahw              1167 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	if (test_bit(QLC_83XX_MODULE_LOADED, &adapter->ahw->idc.status))
ahw              1169 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 				     adapter->ahw->idc.delay);
ahw              1187 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	adapter->ahw->idc.curr_state = QLC_83XX_IDC_DEV_UNKNOWN;
ahw              1188 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	adapter->ahw->idc.prev_state = QLC_83XX_IDC_DEV_UNKNOWN;
ahw              1189 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	adapter->ahw->idc.delay = QLC_83XX_IDC_FW_POLL_DELAY;
ahw              1190 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	adapter->ahw->idc.err_code = 0;
ahw              1191 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	adapter->ahw->idc.collect_dump = 0;
ahw              1192 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	adapter->ahw->idc.name = (char **)qlc_83xx_idc_states;
ahw              1195 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	set_bit(QLC_83XX_MODULE_LOADED, &adapter->ahw->idc.status);
ahw              1200 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 		val = QLCRDX(adapter->ahw, QLC_83XX_IDC_CTRL);
ahw              1202 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 		QLCWRX(adapter->ahw, QLC_83XX_IDC_CTRL, val);
ahw              1215 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	QLCWRX(adapter->ahw, QLC_83XX_RECOVER_DRV_LOCK, 0);
ahw              1221 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	state =	QLCRDX(adapter->ahw, QLC_83XX_IDC_DEV_STATE);
ahw              1228 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 		QLCWRX(adapter->ahw, QLC_83XX_IDC_DEV_STATE,
ahw              1233 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	adapter->ahw->idc.curr_state = state;
ahw              1240 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 		val = QLCRDX(adapter->ahw, QLC_83XX_IDC_CTRL);
ahw              1242 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 		QLCWRX(adapter->ahw, QLC_83XX_IDC_CTRL, val);
ahw              1280 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	id = QLCRDX(adapter->ahw, QLC_83XX_DRV_LOCK_ID);
ahw              1287 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 		id = QLCRDX(adapter->ahw, QLC_83XX_DRV_LOCK_ID);
ahw              1292 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	val = QLCRDX(adapter->ahw, QLC_83XX_IDC_DRV_PRESENCE);
ahw              1294 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	QLCWRX(adapter->ahw, QLC_83XX_IDC_DRV_PRESENCE, val);
ahw              1295 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	clear_bit(QLC_83XX_MODULE_LOADED, &adapter->ahw->idc.status);
ahw              1314 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	val = QLCRDX(adapter->ahw, QLC_83XX_IDC_CTRL);
ahw              1324 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 		val = QLCRDX(adapter->ahw, QLC_83XX_IDC_CTRL);
ahw              1326 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 		QLCWRX(adapter->ahw, QLC_83XX_IDC_CTRL, val);
ahw              1328 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 		adapter->ahw->idc.collect_dump = 1;
ahw              1343 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	dest = QLCRDX(adapter->ahw, QLCNIC_BOOTLOADER_ADDR);
ahw              1344 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	size = QLCRDX(adapter->ahw, QLCNIC_BOOTLOADER_SIZE);
ahw              1374 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	struct qlc_83xx_fw_info *fw_info = adapter->ahw->fw_info;
ahw              1398 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	dest = QLCRDX(adapter->ahw, QLCNIC_FW_IMAGE_ADDR);
ahw              1674 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 		p_dev->ahw->reset.seq_error++;
ahw              1677 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 			__func__, p_dev->ahw->reset.seq_index);
ahw              1689 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	u16 *buff = (u16 *)p_dev->ahw->reset.buff;
ahw              1690 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	int count = p_dev->ahw->reset.hdr->size / sizeof(u16);
ahw              1708 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	struct qlcnic_hardware_context *ahw = p_dev->ahw;
ahw              1712 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	if (ahw->reset.buff != NULL) {
ahw              1716 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 			kfree(ahw->reset.buff);
ahw              1721 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	ahw->reset.seq_error = 0;
ahw              1722 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	ahw->reset.buff = kzalloc(QLC_83XX_RESTART_TEMPLATE_SIZE, GFP_KERNEL);
ahw              1723 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	if (ahw->reset.buff == NULL)
ahw              1726 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	p_buff = p_dev->ahw->reset.buff;
ahw              1735 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	ahw->reset.hdr = (struct qlc_83xx_reset_hdr *)ahw->reset.buff;
ahw              1736 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	addr = QLC_83XX_RESET_TEMPLATE_ADDR + ahw->reset.hdr->hdr_size;
ahw              1737 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	p_buff = ahw->reset.buff + ahw->reset.hdr->hdr_size;
ahw              1738 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	count = (ahw->reset.hdr->size - ahw->reset.hdr->hdr_size) / sizeof(u32);
ahw              1749 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	ahw->reset.init_offset = ahw->reset.buff + ahw->reset.hdr->init_offset;
ahw              1750 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	ahw->reset.start_offset = ahw->reset.buff +
ahw              1751 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 				  ahw->reset.hdr->start_offset;
ahw              1752 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	ahw->reset.stop_offset = ahw->reset.buff + ahw->reset.hdr->hdr_size;
ahw              1778 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 		value = p_dev->ahw->reset.array[p_rmw_hdr->index_a];
ahw              1949 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 				index = p_dev->ahw->reset.array_index;
ahw              1955 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 				p_dev->ahw->reset.array[index++] = j;
ahw              1958 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 					p_dev->ahw->reset.array_index = 1;
ahw              1966 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	p_dev->ahw->reset.seq_end = 1;
ahw              1971 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	p_dev->ahw->reset.template_end = 1;
ahw              1972 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	if (p_dev->ahw->reset.seq_error == 0)
ahw              2001 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	p_dev->ahw->reset.seq_end = 0;
ahw              2002 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	p_dev->ahw->reset.template_end = 0;
ahw              2003 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	entries = p_dev->ahw->reset.hdr->entries;
ahw              2004 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	index = p_dev->ahw->reset.seq_index;
ahw              2006 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	for (; (!p_dev->ahw->reset.seq_end) && (index < entries); index++) {
ahw              2048 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	p_dev->ahw->reset.seq_index = index;
ahw              2053 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	p_dev->ahw->reset.seq_index = 0;
ahw              2055 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	qlcnic_83xx_exec_template_cmd(p_dev, p_dev->ahw->reset.stop_offset);
ahw              2056 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	if (p_dev->ahw->reset.seq_end != 1)
ahw              2062 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	qlcnic_83xx_exec_template_cmd(p_dev, p_dev->ahw->reset.start_offset);
ahw              2063 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	if (p_dev->ahw->reset.template_end != 1)
ahw              2069 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	qlcnic_83xx_exec_template_cmd(p_dev, p_dev->ahw->reset.init_offset);
ahw              2070 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	if (p_dev->ahw->reset.seq_end != 1)
ahw              2095 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	struct qlc_83xx_fw_info *fw_info = adapter->ahw->fw_info;
ahw              2101 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	switch (adapter->ahw->post_mode) {
ahw              2133 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 		      adapter->ahw->post_mode);
ahw              2191 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	struct qlc_83xx_fw_info *fw_info = adapter->ahw->fw_info;
ahw              2218 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	val = QLCRDX(adapter->ahw, QLC_83XX_IDC_CTRL);
ahw              2235 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	if (adapter->ahw->run_post) {
ahw              2241 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 		adapter->ahw->run_post = false;
ahw              2272 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              2275 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	err = qlcnic_get_nic_info(adapter, &nic_info, ahw->pci_func);
ahw              2279 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	ahw->physical_port = (u8) nic_info.phys_port;
ahw              2280 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	ahw->switch_mode = nic_info.switch_mode;
ahw              2281 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	ahw->max_tx_ques = nic_info.max_tx_ques;
ahw              2282 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	ahw->max_rx_ques = nic_info.max_rx_ques;
ahw              2283 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	ahw->capabilities = nic_info.capabilities;
ahw              2284 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	ahw->max_mac_filters = nic_info.max_mac_filters;
ahw              2285 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	ahw->max_mtu = nic_info.max_mtu;
ahw              2298 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	if (ahw->capabilities & QLC_83XX_ESWITCH_CAPABILITY)
ahw              2306 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              2315 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 		ahw->nic_mode = QLCNIC_VNIC_MODE;
ahw              2323 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 		ahw->nic_mode = QLCNIC_DEFAULT_MODE;
ahw              2325 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 		ahw->idc.state_entry = qlcnic_83xx_idc_ready_state_entry;
ahw              2334 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	adapter->max_sds_rings = min(ahw->max_rx_ques, max_sds_rings);
ahw              2335 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	adapter->max_tx_rings = min(ahw->max_tx_ques, max_tx_rings);
ahw              2342 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              2344 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	if (ahw->port_type == QLCNIC_XGBE) {
ahw              2350 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	} else if (ahw->port_type == QLCNIC_GBE) {
ahw              2369 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	adapter->ahw->msix_supported = !!qlcnic_use_msi_x;
ahw              2373 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 		 adapter->ahw->fw_hal_version);
ahw              2385 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	presence_mask = QLCRDX(adapter->ahw, QLC_83XX_IDC_DRV_PRESENCE);
ahw              2386 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	audit_mask = QLCRDX(adapter->ahw, QLC_83XX_IDC_DRV_AUDIT);
ahw              2405 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              2410 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	ahw->fw_info = kzalloc(sizeof(*fw_info), GFP_KERNEL);
ahw              2411 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	if (!ahw->fw_info) {
ahw              2414 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 		fw_info = ahw->fw_info;
ahw              2444 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	if (!adapter->ahw->msix_supported) {
ahw              2456 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              2460 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	ahw->msix_supported = !!qlcnic_use_msi_x;
ahw              2465 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 		ahw->post_mode = QLC_83XX_POST_FAST_MODE;
ahw              2466 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 		ahw->run_post = true;
ahw              2469 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 		ahw->post_mode = QLC_83XX_POST_MEDIUM_MODE;
ahw              2470 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 		ahw->run_post = true;
ahw              2473 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 		ahw->post_mode = QLC_83XX_POST_SLOW_MODE;
ahw              2474 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 		ahw->run_post = true;
ahw              2477 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 		ahw->run_post = false;
ahw              2554 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	qlcnic_83xx_free_mailbox(ahw->mailbox);
ahw              2555 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	ahw->mailbox = NULL;
ahw              2562 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              2563 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	struct qlc_83xx_idc *idc = &ahw->idc;
ahw              2568 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	if (ahw->nic_mode == QLCNIC_VNIC_MODE)
ahw              2579 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              2580 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	struct qlc_83xx_idc *idc = &ahw->idc;
ahw              2590 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	if (ahw->pci_func == owner) {
ahw              2603 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              2604 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	struct qlc_83xx_idc *idc = &ahw->idc;
ahw              2609 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c 	if (ahw->pci_func == owner)
ahw                17 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_vnic.c 	QLCWRX(adapter->ahw, QLC_83XX_VNIC_STATE, QLCNIC_DEV_NPAR_OPER);
ahw                26 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_vnic.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw                33 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_vnic.c 	QLCWRX(adapter->ahw, QLC_83XX_VNIC_STATE, QLCNIC_DEV_NPAR_NON_OPER);
ahw                34 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_vnic.c 	ahw->idc.vnic_state = QLCNIC_DEV_NPAR_NON_OPER;
ahw                47 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_vnic.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw                52 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_vnic.c 	id = ahw->pci_func;
ahw                53 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_vnic.c 	data = QLCRDX(adapter->ahw, QLC_83XX_DRV_OP_MODE);
ahw                57 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_vnic.c 	QLCWRX(adapter->ahw, QLC_83XX_DRV_OP_MODE, data);
ahw                67 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_vnic.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw                69 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_vnic.c 	if (ahw->port_type == QLCNIC_XGBE) {
ahw                75 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_vnic.c 	} else if (ahw->port_type == QLCNIC_GBE) {
ahw                97 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_vnic.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw               110 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_vnic.c 		for (i = 0; i < ahw->total_nic_func; i++, npar++) {
ahw               118 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_vnic.c 			 ahw->max_pci_func, ahw->total_nic_func);
ahw               134 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_vnic.c 	ahw->msix_supported = qlcnic_use_msi_x ? 1 : 0;
ahw               139 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_vnic.c 		 ahw->fw_hal_version);
ahw               153 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_vnic.c 	adapter->ahw->msix_supported = !!qlcnic_use_msi_x;
ahw               158 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_vnic.c 		 adapter->ahw->fw_hal_version);
ahw               174 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_vnic.c 	adapter->ahw->msix_supported = !!qlcnic_use_msi_x;
ahw               178 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_vnic.c 		 adapter->ahw->fw_hal_version);
ahw               195 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_vnic.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw               199 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_vnic.c 	op_mode = QLCRDX(adapter->ahw, QLC_83XX_DRV_OP_MODE);
ahw               205 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_vnic.c 							 ahw->pci_func);
ahw               208 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_vnic.c 		ahw->op_mode = QLCNIC_NON_PRIV_FUNC;
ahw               209 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_vnic.c 		ahw->idc.state_entry = qlcnic_83xx_idc_ready_state_entry;
ahw               213 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_vnic.c 		ahw->op_mode = QLCNIC_PRIV_FUNC;
ahw               214 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_vnic.c 		ahw->idc.state_entry = qlcnic_83xx_idc_vnic_pf_entry;
ahw               218 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_vnic.c 		ahw->op_mode = QLCNIC_MGMT_FUNC;
ahw               219 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_vnic.c 		ahw->idc.state_entry = qlcnic_83xx_idc_ready_state_entry;
ahw               227 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_vnic.c 	if (ahw->capabilities & QLC_83XX_ESWITCH_CAPABILITY) {
ahw               236 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_vnic.c 	ahw->idc.vnic_state = QLCNIC_DEV_NPAR_NON_OPER;
ahw               237 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_vnic.c 	ahw->idc.vnic_wait_limit = QLCNIC_DEV_NPAR_OPER_TIMEO;
ahw               244 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_vnic.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw               245 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_vnic.c 	struct qlc_83xx_idc *idc = &ahw->idc;
ahw               248 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_vnic.c 	state = QLCRDX(ahw, QLC_83XX_VNIC_STATE);
ahw               252 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_vnic.c 		state = QLCRDX(ahw, QLC_83XX_VNIC_STATE);
ahw                46 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c static inline u32 qlcnic_get_cmd_signature(struct qlcnic_hardware_context *ahw)
ahw                48 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 	return (ahw->pci_func & 0xff) | ((ahw->fw_hal_version & 0xff) << 8) |
ahw               118 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw               121 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 	signature = qlcnic_get_cmd_signature(ahw);
ahw               237 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw               287 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 	    !adapter->ahw->diag_test) {
ahw               331 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 		    !adapter->ahw->diag_test)
ahw               332 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 			prq_sds[i].msi_index = cpu_to_le16(ahw->intr_tbl[i].id);
ahw               358 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 		rds_ring->crb_rcv_producer = ahw->pci_base0 + reg;
ahw               367 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 		if (qlcnic_check_multi_tx(adapter) && !adapter->ahw->diag_test)
ahw               368 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 			reg2 = ahw->intr_tbl[i].src;
ahw               372 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 		sds_ring->crb_intr_mask = ahw->pci_base0 + reg2;
ahw               373 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 		sds_ring->crb_sts_consumer = ahw->pci_base0 + reg;
ahw               417 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw               457 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 	if (qlcnic_check_multi_tx(adapter) && !adapter->ahw->diag_test)
ahw               463 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 	    !adapter->ahw->diag_test) {
ahw               466 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 		msix_id = ahw->intr_tbl[index].id;
ahw               496 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 		tx_ring->crb_cmd_producer = adapter->ahw->pci_base0 + temp;
ahw               499 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 		    !adapter->ahw->diag_test &&
ahw               502 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 			intr_mask = ahw->intr_tbl[index].src;
ahw               503 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 			tx_ring->crb_intr_mask = ahw->pci_base0 + intr_mask;
ahw               637 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 		if (dev->ahw->diag_test != QLCNIC_LOOPBACK_TEST) {
ahw               645 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 	    qlcnic_check_multi_tx(dev) && !dev->ahw->diag_test) {
ahw               677 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 	    qlcnic_check_multi_tx(dev) && !dev->ahw->diag_test)
ahw               681 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 		if (dev->ahw->diag_test != QLCNIC_LOOPBACK_TEST)
ahw               701 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 		    !adapter->ahw->diag_test)
ahw               706 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 			if (adapter->ahw->diag_test != QLCNIC_LOOPBACK_TEST)
ahw               770 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw               776 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 	for (i = 0; i < ahw->num_msix; i++) {
ahw               782 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 		val = type | (ahw->intr_tbl[i].type << 4);
ahw               783 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 		if (ahw->intr_tbl[i].type == QLCNIC_INTRPT_MSIX)
ahw               784 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 			val |= (ahw->intr_tbl[i].id << 16);
ahw               798 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 				    ahw->intr_tbl[i].id);
ahw               802 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 			ahw->intr_tbl[i].id = MSW(val);
ahw               803 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 			ahw->intr_tbl[i].enabled = 1;
ahw               804 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 			ahw->intr_tbl[i].src = cmd.rsp.arg[2];
ahw               806 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 			ahw->intr_tbl[i].id = i;
ahw               807 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 			ahw->intr_tbl[i].enabled = 0;
ahw               808 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 			ahw->intr_tbl[i].src = 0;
ahw               909 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 	if (adapter->ahw->op_mode != QLCNIC_MGMT_FUNC)
ahw               957 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw               959 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 	size_t pci_size = npar_size * ahw->max_vnic_func;
ahw               982 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 	ahw->total_nic_func = 0;
ahw               984 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 		for (i = 0; i < ahw->max_vnic_func; i++, npar++, pci_info++) {
ahw              1006 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 	ahw->total_nic_func = nic;
ahw              1007 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 	ahw->total_pci_func = nic + fcoe + iscsi;
ahw              1008 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 	if (ahw->total_nic_func == 0 || ahw->total_pci_func == 0) {
ahw              1011 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 			__func__, ahw->total_nic_func, ahw->total_pci_func);
ahw              1031 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 	if (adapter->ahw->op_mode != QLCNIC_MGMT_FUNC ||
ahw              1074 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 	if ((adapter->ahw->op_mode != QLCNIC_MGMT_FUNC) &&
ahw              1075 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 	    (func != adapter->ahw->pci_func)) {
ahw              1194 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 	if (adapter->ahw->op_mode != QLCNIC_MGMT_FUNC)
ahw              1209 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 	for (i = 0; i < adapter->ahw->total_nic_func; i++) {
ahw              1242 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              1247 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 	if (ahw->op_mode != QLCNIC_MGMT_FUNC)
ahw              1251 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 		if (port >= ahw->max_vnic_func)
ahw              1326 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 	if (adapter->ahw->op_mode != QLCNIC_MGMT_FUNC) {
ahw              1348 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 		if (adapter->ahw->capabilities & QLCNIC_FW_CAPABILITY_TSO)
ahw              1408 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 	if (adapter->ahw->op_mode == QLCNIC_MGMT_FUNC) {
ahw              1414 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c 		phy_port = adapter->ahw->physical_port;
ahw               291 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw               294 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 	u16 pcifn = ahw->pci_func;
ahw               298 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 	if (adapter->ahw->port_type == QLCNIC_GBE) {
ahw               311 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 		ecmd->base.speed = adapter->ahw->link_speed;
ahw               312 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 		ecmd->base.duplex = adapter->ahw->link_duplex;
ahw               313 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 		ecmd->base.autoneg = adapter->ahw->link_autoneg;
ahw               315 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 	} else if (adapter->ahw->port_type == QLCNIC_XGBE) {
ahw               327 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 		if (netif_running(adapter->netdev) && ahw->has_link_events) {
ahw               328 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 			if (ahw->linkup) {
ahw               332 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 				ahw->link_speed = speed * P3P_LINK_SPEED_MHZ;
ahw               335 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 			ecmd->base.speed = ahw->link_speed;
ahw               336 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 			ecmd->base.autoneg = ahw->link_autoneg;
ahw               337 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 			ecmd->base.duplex = ahw->link_duplex;
ahw               348 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 	ecmd->base.phy_address = adapter->ahw->physical_port;
ahw               350 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 	switch (adapter->ahw->board_type) {
ahw               363 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 		ecmd->base.autoneg =  adapter->ahw->link_autoneg;
ahw               379 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 				   ahw->has_link_events;
ahw               388 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 		if (adapter->ahw->port_type == QLCNIC_XGBE) {
ahw               395 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 					   ahw->has_link_events;
ahw               406 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 			adapter->ahw->board_type);
ahw               411 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 		switch (adapter->ahw->module_type) {
ahw               493 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 	if (adapter->ahw->port_type != QLCNIC_GBE)
ahw               504 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 	adapter->ahw->link_speed = ecmd->base.speed;
ahw               505 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 	adapter->ahw->link_duplex = ecmd->base.duplex;
ahw               506 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 	adapter->ahw->link_autoneg = ecmd->base.autoneg;
ahw               543 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 		(adapter->ahw->revision_id << 16) | (adapter->pdev)->device;
ahw               548 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 	if (adapter->ahw->capabilities & QLC_83XX_ESWITCH_CAPABILITY)
ahw               549 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 		regs_buff[2] = adapter->ahw->max_vnic_func;
ahw               604 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 	val = XG_LINK_STATE_P3P(adapter->ahw->pci_func, val);
ahw               789 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 	int port = adapter->ahw->physical_port;
ahw               797 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 	if (adapter->ahw->port_type == QLCNIC_GBE) {
ahw               823 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 	} else if (adapter->ahw->port_type == QLCNIC_XGBE) {
ahw               836 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 					adapter->ahw->port_type);
ahw               845 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 	int port = adapter->ahw->physical_port;
ahw               853 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 	if (adapter->ahw->port_type == QLCNIC_GBE) {
ahw               901 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 	} else if (adapter->ahw->port_type == QLCNIC_XGBE) {
ahw               925 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 				adapter->ahw->port_type);
ahw               975 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw               990 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 	ahw->diag_cnt = 0;
ahw               995 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 	cmd.req.arg[1] = ahw->pci_func;
ahw              1001 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 	ret = !ahw->diag_cnt;
ahw              1055 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 		adapter->ahw->diag_cnt = 0;
ahw              1064 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 		} while (!adapter->ahw->diag_cnt);
ahw              1068 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 		if (!adapter->ahw->diag_cnt)
ahw              1092 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              1099 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 	if (!(ahw->capabilities & QLCNIC_FW_CAPABILITY_MULTI_LOOPBACK)) {
ahw              1107 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 	if (ahw->op_mode == QLCNIC_NON_PRIV_FUNC) {
ahw              1125 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 	ahw->diag_cnt = 0;
ahw              1134 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 		} else if (adapter->ahw->diag_cnt) {
ahw              1135 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 			ret = adapter->ahw->diag_cnt;
ahw              1138 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 	} while (!QLCNIC_IS_LB_CONFIGURED(ahw->loopback_state));
ahw              1372 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 		if (adapter->ahw->linkup)
ahw              1386 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 	ret = qlcnic_get_port_stats(adapter, adapter->ahw->pci_func,
ahw              1392 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 	ret = qlcnic_get_port_stats(adapter, adapter->ahw->pci_func,
ahw              1410 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 	if (adapter->ahw->op_mode == QLCNIC_NON_PRIV_FUNC) {
ahw              1578 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 	ethcoal->rx_coalesce_usecs = adapter->ahw->coal.rx_time_us;
ahw              1579 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 	ethcoal->rx_max_coalesced_frames = adapter->ahw->coal.rx_packets;
ahw              1580 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 	ethcoal->tx_coalesce_usecs = adapter->ahw->coal.tx_time_us;
ahw              1581 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 	ethcoal->tx_max_coalesced_frames = adapter->ahw->coal.tx_packets;
ahw              1590 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 	return adapter->ahw->msg_enable;
ahw              1597 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 	adapter->ahw->msg_enable = msglvl;
ahw              1602 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 	struct qlcnic_fw_dump *fw_dump = &adapter->ahw->fw_dump;
ahw              1609 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 		val = QLCRDX(adapter->ahw, QLC_83XX_IDC_CTRL);
ahw              1611 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 		QLCWRX(adapter->ahw, QLC_83XX_IDC_CTRL, val);
ahw              1625 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 	struct qlcnic_fw_dump *fw_dump = &adapter->ahw->fw_dump;
ahw              1632 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 		val = QLCRDX(adapter->ahw, QLC_83XX_IDC_CTRL);
ahw              1634 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 		QLCWRX(adapter->ahw, QLC_83XX_IDC_CTRL, val);
ahw              1648 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 	struct qlcnic_fw_dump *fw_dump = &adapter->ahw->fw_dump;
ahw              1653 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 		val = QLCRDX(adapter->ahw, QLC_83XX_IDC_CTRL);
ahw              1666 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 	struct qlcnic_fw_dump *fw_dump = &adapter->ahw->fw_dump;
ahw              1695 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 	struct qlcnic_fw_dump *fw_dump = &adapter->ahw->fw_dump;
ahw              1729 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 	struct qlcnic_fw_dump *fw_dump = &adapter->ahw->fw_dump;
ahw              1752 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c 	struct qlcnic_fw_dump *fw_dump = &adapter->ahw->fw_dump;
ahw               360 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 		qlcnic_read_window_reg(addr, adapter->ahw->pci_base0, &data);
ahw               374 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 		qlcnic_write_window_reg(addr, adapter->ahw->pci_base0, data);
ahw               536 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw               554 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 		   (netdev_mc_count(netdev) > ahw->max_mc_count)) {
ahw               566 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 	if (netdev_uc_count(netdev) > ahw->max_uc_count) {
ahw               763 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 				     adapter->ahw->physical_port);
ahw               767 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 	memcpy(adapter->ahw->phys_port_id, mac, ETH_ALEN);
ahw               785 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 	req.words[0] = cpu_to_le64(((u64) adapter->ahw->coal.flag) << 32);
ahw               786 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 	req.words[2] = cpu_to_le64(adapter->ahw->coal.rx_packets |
ahw               787 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 			((u64) adapter->ahw->coal.rx_time_us) << 16);
ahw               788 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 	req.words[5] = cpu_to_le64(adapter->ahw->coal.timer_out |
ahw               789 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 			((u64) adapter->ahw->coal.type) << 32 |
ahw               790 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 			((u64) adapter->ahw->coal.sts_ring_mask) << 40);
ahw               803 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 	struct qlcnic_nic_intr_coalesce *coal = &adapter->ahw->coal;
ahw               841 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 		if (adapter->ahw->extra_capability[0] &
ahw              1119 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c static int qlcnic_pci_get_crb_addr_2M(struct qlcnic_hardware_context *ahw,
ahw              1135 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 		*addr = ahw->pci_base0 + m->start_2M +
ahw              1143 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 	*addr = ahw->pci_base0 + CRB_INDIRECT_2M + (off & MASK(16));
ahw              1156 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 	void __iomem *addr = adapter->ahw->pci_base0 + CRB_WINDOW_2M;
ahw              1184 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 	rv = qlcnic_pci_get_crb_addr_2M(adapter->ahw, off, &addr);
ahw              1193 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 		write_lock_irqsave(&adapter->ahw->crb_lock, flags);
ahw              1199 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 		write_unlock_irqrestore(&adapter->ahw->crb_lock, flags);
ahw              1217 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 	rv = qlcnic_pci_get_crb_addr_2M(adapter->ahw, off, &addr);
ahw              1224 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 		write_lock_irqsave(&adapter->ahw->crb_lock, flags);
ahw              1229 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 		write_unlock_irqrestore(&adapter->ahw->crb_lock, flags);
ahw              1239 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c void __iomem *qlcnic_get_ioaddr(struct qlcnic_hardware_context *ahw,
ahw              1244 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 	WARN_ON(qlcnic_pci_get_crb_addr_2M(ahw, offset, &addr));
ahw              1255 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 	mutex_lock(&adapter->ahw->mem_lock);
ahw              1257 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 	writel(window, adapter->ahw->ocm_win_crb);
ahw              1259 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 	readl(adapter->ahw->ocm_win_crb);
ahw              1262 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 	addr = adapter->ahw->pci_base0 + start;
ahw              1270 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 	writel(0, adapter->ahw->ocm_win_crb);
ahw              1271 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 	readl(adapter->ahw->ocm_win_crb);
ahw              1273 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 	mutex_unlock(&adapter->ahw->mem_lock);
ahw              1280 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 	void __iomem *addr = adapter->ahw->pci_base0 +
ahw              1283 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 	mutex_lock(&adapter->ahw->mem_lock);
ahw              1285 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 	mutex_unlock(&adapter->ahw->mem_lock);
ahw              1291 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 	void __iomem *addr = adapter->ahw->pci_base0 +
ahw              1294 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 	mutex_lock(&adapter->ahw->mem_lock);
ahw              1296 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 	mutex_unlock(&adapter->ahw->mem_lock);
ahw              1357 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 	mutex_lock(&adapter->ahw->mem_lock);
ahw              1401 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 	mutex_unlock(&adapter->ahw->mem_lock);
ahw              1429 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 	mutex_lock(&adapter->ahw->mem_lock);
ahw              1459 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 	mutex_unlock(&adapter->ahw->mem_lock);
ahw              1483 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 	adapter->ahw->board_type = board_type;
ahw              1504 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 		adapter->ahw->port_type = QLCNIC_XGBE;
ahw              1509 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 		adapter->ahw->port_type = QLCNIC_GBE;
ahw              1512 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 		adapter->ahw->port_type = (adapter->portnum < 2) ?
ahw              1517 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 		adapter->ahw->port_type = QLCNIC_XGBE;
ahw              1566 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              1571 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 	if (ahw->extra_capability[0] & QLCNIC_FW_CAPABILITY_2_BEACON) {
ahw              1583 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 					ahw->beacon_state = QLCNIC_BEACON_OFF;
ahw              1585 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 					ahw->beacon_state = QLCNIC_BEACON_ON;
ahw              1601 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 	msix_base_addr = adapter->ahw->pci_base0 + QLCNIC_MSIX_BASE;
ahw              1604 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c 	adapter->ahw->pci_func = func;
ahw                40 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.h 	readl(((a)->ahw->pci_base0) + ((a)->ahw->reg_tbl[addr]))
ahw                44 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.h 	writel(value, ((a)->ahw->pci_base0) + ((a)->ahw->reg_tbl[addr]))
ahw                47 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.h #define QLCRDX(ahw, addr)	\
ahw                48 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.h 	readl(((ahw)->pci_base0) + ((ahw)->ext_reg_tbl[addr]))
ahw                51 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.h #define QLCWRX(ahw, addr, value)	\
ahw                52 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.h 	writel(value, (((ahw)->pci_base0) + ((ahw)->ext_reg_tbl[addr])))
ahw               216 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c 			if (adapter->ahw->capabilities &
ahw               250 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c 			    !adapter->ahw->diag_test)
ahw               631 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c 	adapter->ahw->physical_port = (val >> 2);
ahw               702 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c 	if (adapter->ahw->revision_id == QLCNIC_P3P_C0)
ahw               885 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c 		u8 chiprev = adapter->ahw->revision_id;
ahw               972 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c 	if (adapter->ahw->fw_type == QLCNIC_UNIFIED_ROMIMAGE)
ahw               986 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c 	if (adapter->ahw->fw_type == QLCNIC_UNIFIED_ROMIMAGE)
ahw              1000 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c 	if (adapter->ahw->fw_type == QLCNIC_UNIFIED_ROMIMAGE)
ahw              1015 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c 	if (adapter->ahw->fw_type != QLCNIC_UNIFIED_ROMIMAGE) {
ahw              1046 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c 	if (adapter->ahw->fw_type != QLCNIC_UNIFIED_ROMIMAGE) {
ahw              1119 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c 		 fw_name[adapter->ahw->fw_type]);
ahw              1211 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c 	u8 fw_type = adapter->ahw->fw_type;
ahw              1256 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c 	switch (adapter->ahw->fw_type) {
ahw              1267 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c 	adapter->ahw->fw_type = fw_type;
ahw              1277 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c 	adapter->ahw->fw_type = QLCNIC_UNKNOWN_ROMIMAGE;
ahw              1282 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c 	if (adapter->ahw->fw_type == QLCNIC_FLASH_ROMIMAGE) {
ahw              1286 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c 				      fw_name[adapter->ahw->fw_type],
ahw               794 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 	if (adapter->ahw->linkup && !linkup) {
ahw               796 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 		adapter->ahw->linkup = 0;
ahw               798 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 	} else if (!adapter->ahw->linkup && linkup) {
ahw               799 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 		adapter->ahw->linkup = 1;
ahw               804 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 		if (qlcnic_83xx_check(adapter) && adapter->ahw->lb_mode) {
ahw              1040 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 	adapter->ahw->has_link_events = 1;
ahw              1062 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 		adapter->ahw->loopback_state |= QLCNIC_LINKEVENT;
ahw              1067 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 		adapter->ahw->link_duplex = DUPLEX_FULL;
ahw              1069 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 		adapter->ahw->link_duplex = DUPLEX_HALF;
ahw              1071 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 	adapter->ahw->module_type = module;
ahw              1072 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 	adapter->ahw->link_autoneg = autoneg;
ahw              1075 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 		adapter->ahw->link_speed = link_speed;
ahw              1077 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 		adapter->ahw->link_speed = SPEED_UNKNOWN;
ahw              1078 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 		adapter->ahw->link_duplex = DUPLEX_UNKNOWN;
ahw              1112 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 			adapter->ahw->loopback_state |= QLCNIC_LB_RESPONSE;
ahw              1116 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 			adapter->ahw->diag_cnt = -EINPROGRESS;
ahw              1120 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 			adapter->ahw->diag_cnt = -ENODEV;
ahw              1126 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 			adapter->ahw->diag_cnt = -EIO;
ahw              1480 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 	if (adapter->ahw->msg_enable & NETIF_MSG_DRV) {
ahw              1525 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 		adapter->ahw->diag_cnt++;
ahw              1587 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 		    !adapter->ahw->diag_test) {
ahw              1607 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 	if (qlcnic_check_multi_tx(adapter) && !adapter->ahw->diag_test) {
ahw              1632 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 	if (qlcnic_check_multi_tx(adapter) && !adapter->ahw->diag_test) {
ahw              1660 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 	    !adapter->ahw->diag_test) {
ahw              1687 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 	    !adapter->ahw->diag_test &&
ahw              2202 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 		adapter->ahw->diag_cnt++;
ahw                92 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw                95 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		return ahw->capabilities & QLCNIC_FW_CAPABILITY_FVLANTX;
ahw               304 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 				     adapter->ahw->pci_func);
ahw               418 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		if (netdev_uc_count(netdev) < adapter->ahw->max_uc_count)
ahw               463 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw               468 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	ppid->id_len = sizeof(ahw->phys_port_id);
ahw               469 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	memcpy(ppid->id, ahw->phys_port_id, ppid->id_len);
ahw               478 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw               488 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	if (!ahw->vxlan_port_count) {
ahw               489 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		ahw->vxlan_port_count = 1;
ahw               490 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		ahw->vxlan_port = ntohs(ti->port);
ahw               494 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	if (ahw->vxlan_port == ntohs(ti->port))
ahw               495 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		ahw->vxlan_port_count++;
ahw               503 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw               508 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	if (!qlcnic_encap_rx_offload(adapter) || !ahw->vxlan_port_count ||
ahw               509 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	    (ahw->vxlan_port != ntohs(ti->port)))
ahw               512 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	ahw->vxlan_port_count--;
ahw               513 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	if (!ahw->vxlan_port_count)
ahw               636 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw               639 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	    (ahw->extra_capability[0] & QLCNIC_FW_CAPABILITY_2_MULTI_TX)) {
ahw               746 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	adapter->ahw->num_msix = num_msix;
ahw               771 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	if (adapter->ahw->msix_supported) {
ahw               781 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 			adapter->ahw->num_msix = num_msix;
ahw               848 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw               853 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		offset = msi_tgt_status[adapter->ahw->pci_func];
ahw               854 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		adapter->tgt_status_reg = qlcnic_get_ioaddr(adapter->ahw,
ahw               864 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	legacy_intrp = &legacy_intr[adapter->ahw->pci_func];
ahw               865 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	adapter->ahw->int_vec_bit = legacy_intrp->int_vec_bit;
ahw               867 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	adapter->tgt_status_reg = qlcnic_get_ioaddr(ahw, offset);
ahw               869 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	adapter->tgt_mask_reg = qlcnic_get_ioaddr(ahw, mask_reg);
ahw               870 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	adapter->isr_int_vec = qlcnic_get_ioaddr(ahw, ISR_INT_VECTOR);
ahw               871 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	adapter->crb_int_state_reg = qlcnic_get_ioaddr(ahw, ISR_INT_STATE_REG);
ahw               885 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		num_msix = adapter->ahw->num_msix;
ahw               908 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw               912 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	    !ahw->diag_test &&
ahw               914 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		ahw->intr_tbl =
ahw               916 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 					   ahw->num_msix));
ahw               917 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		if (!ahw->intr_tbl)
ahw               920 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		for (i = 0; i < ahw->num_msix; i++) {
ahw               921 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 			ahw->intr_tbl[i].type = QLCNIC_INTRPT_MSIX;
ahw               922 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 			ahw->intr_tbl[i].id = i;
ahw               923 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 			ahw->intr_tbl[i].src = 0;
ahw               930 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 				ahw->num_msix);
ahw               947 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	if (adapter->ahw->intr_tbl) {
ahw               948 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		vfree(adapter->ahw->intr_tbl);
ahw               949 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		adapter->ahw->intr_tbl = NULL;
ahw               953 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c static void qlcnic_cleanup_pci_map(struct qlcnic_hardware_context *ahw)
ahw               955 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	if (ahw->pci_base0 != NULL)
ahw               956 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		iounmap(ahw->pci_base0);
ahw               961 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw               966 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		switch (ahw->port_type) {
ahw               968 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 			ahw->total_nic_func = QLCNIC_NIU_MAX_GBE_PORTS;
ahw               971 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 			ahw->total_nic_func = QLCNIC_NIU_MAX_XG_PORTS;
ahw               977 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	if (ahw->op_mode == QLCNIC_MGMT_FUNC)
ahw               980 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	pci_info = kcalloc(ahw->max_vnic_func, sizeof(*pci_info), GFP_KERNEL);
ahw               996 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		if (adapter->ahw->extra_capability[0] &
ahw              1008 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              1014 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	pci_info = kcalloc(ahw->max_vnic_func, sizeof(*pci_info), GFP_KERNEL);
ahw              1022 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	act_pci_func = ahw->total_nic_func;
ahw              1040 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	for (i = 0; i < ahw->max_vnic_func; i++) {
ahw              1043 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		if (pfn >= ahw->max_vnic_func) {
ahw              1046 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 				__func__, pfn, ahw->max_vnic_func);
ahw              1104 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              1110 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	id = ahw->pci_func;
ahw              1126 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	adapter->ahw->fw_hal_version = QLC_SHARED_REG_RD32(adapter,
ahw              1137 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		priv_level = QLC_DEV_GET_DRV(op_mode, adapter->ahw->pci_func);
ahw              1140 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		adapter->ahw->op_mode = QLCNIC_NON_PRIV_FUNC;
ahw              1143 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 			 adapter->ahw->fw_hal_version);
ahw              1171 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 				struct qlcnic_hardware_context *ahw)
ahw              1195 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	ahw->pci_base0 = mem_ptr0;
ahw              1196 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	ahw->pci_len0 = pci_len0;
ahw              1197 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	offset = QLCNIC_PCIX_PS_REG(PCIX_OCM_WINDOW_REG(ahw->pci_func));
ahw              1198 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	qlcnic_get_ioaddr(ahw, offset);
ahw              1251 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              1252 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	struct qlcnic_fw_dump *fw_dump = &ahw->fw_dump;
ahw              1267 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	if (ahw->op_mode != QLCNIC_NON_PRIV_FUNC) {
ahw              1280 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	if (adapter->ahw->port_type == QLCNIC_XGBE) {
ahw              1292 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	} else if (adapter->ahw->port_type == QLCNIC_GBE) {
ahw              1299 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	adapter->ahw->msix_supported = !!qlcnic_use_msi_x;
ahw              1313 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	err = qlcnic_get_nic_info(adapter, &nic_info, adapter->ahw->pci_func);
ahw              1317 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	adapter->ahw->physical_port = (u8)nic_info.phys_port;
ahw              1318 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	adapter->ahw->switch_mode = nic_info.switch_mode;
ahw              1319 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	adapter->ahw->max_tx_ques = nic_info.max_tx_ques;
ahw              1320 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	adapter->ahw->max_rx_ques = nic_info.max_rx_ques;
ahw              1321 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	adapter->ahw->capabilities = nic_info.capabilities;
ahw              1323 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	if (adapter->ahw->capabilities & QLCNIC_FW_CAPABILITY_MORE_CAPS) {
ahw              1328 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		adapter->ahw->extra_capability[0] = temp;
ahw              1330 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		adapter->ahw->extra_capability[0] = 0;
ahw              1333 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	adapter->ahw->max_mac_filters = nic_info.max_mac_filters;
ahw              1334 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	adapter->ahw->max_mtu = nic_info.max_mtu;
ahw              1336 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	if (adapter->ahw->capabilities & BIT_6) {
ahw              1338 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		adapter->ahw->nic_mode = QLCNIC_VNIC_MODE;
ahw              1344 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		adapter->ahw->nic_mode = QLCNIC_DEFAULT_MODE;
ahw              1434 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	esw_cfg.pci_func = adapter->ahw->pci_func;
ahw              1472 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	priv_level = QLC_DEV_GET_DRV(op_mode, adapter->ahw->pci_func);
ahw              1477 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		priv_level = QLC_DEV_GET_DRV(op_mode, adapter->ahw->pci_func);
ahw              1481 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 			adapter->ahw->op_mode = QLCNIC_MGMT_FUNC;
ahw              1489 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 				 adapter->ahw->fw_hal_version);
ahw              1491 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 			adapter->ahw->op_mode = QLCNIC_PRIV_FUNC;
ahw              1494 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 				 adapter->ahw->fw_hal_version);
ahw              1497 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		adapter->ahw->nic_mode = QLCNIC_DEFAULT_MODE;
ahw              1514 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	for (i = 0; i < adapter->ahw->total_nic_func; i++) {
ahw              1577 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	for (i = 0; i < adapter->ahw->total_nic_func; i++) {
ahw              1612 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	if (adapter->ahw->op_mode == QLCNIC_MGMT_FUNC)
ahw              1636 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	    adapter->ahw->op_mode != QLCNIC_MGMT_FUNC)
ahw              1669 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		adapter->ahw->fw_type = QLCNIC_FLASH_ROMIMAGE;
ahw              1730 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	if (adapter->ahw->diag_test == QLCNIC_INTERRUPT_TEST) {
ahw              1753 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	if (adapter->ahw->diag_test != QLCNIC_LOOPBACK_TEST) {
ahw              1815 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	if (adapter->ahw->diag_test != QLCNIC_LOOPBACK_TEST) {
ahw              1843 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		if (adapter->ahw->extra_capability[0] &
ahw              1847 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		capab = adapter->ahw->capabilities;
ahw              1855 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              1859 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	ahw->coal.flag = QLCNIC_INTR_DEFAULT;
ahw              1862 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		ahw->coal.type = QLCNIC_INTR_COAL_TYPE_RX_TX;
ahw              1863 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		ahw->coal.tx_time_us = QLCNIC_DEF_INTR_COALESCE_TX_TIME_US;
ahw              1864 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		ahw->coal.tx_packets = QLCNIC_DEF_INTR_COALESCE_TX_PACKETS;
ahw              1865 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		ahw->coal.rx_time_us = QLCNIC_DEF_INTR_COALESCE_RX_TIME_US;
ahw              1866 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		ahw->coal.rx_packets = QLCNIC_DEF_INTR_COALESCE_RX_PACKETS;
ahw              1870 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		ahw->coal.type = QLCNIC_INTR_COAL_TYPE_RX;
ahw              1871 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		ahw->coal.rx_time_us = QLCNIC_DEF_INTR_COALESCE_RX_TIME_US;
ahw              1872 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		ahw->coal.rx_packets = QLCNIC_DEF_INTR_COALESCE_RX_PACKETS;
ahw              1907 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	adapter->ahw->linkup = 0;
ahw              1922 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	adapter->ahw->reset_context = 0;
ahw              1951 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	adapter->ahw->linkup = 0;
ahw              1961 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		qlcnic_sriov_cleanup_async_list(&adapter->ahw->sriov->bc);
ahw              2058 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	if (adapter->ahw->diag_test == QLCNIC_INTERRUPT_TEST) {
ahw              2069 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	adapter->ahw->diag_test = 0;
ahw              2084 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              2095 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		ahw->coal.type = QLCNIC_INTR_COAL_TYPE_RX_TX;
ahw              2096 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		ahw->coal.tx_time_us = QLCNIC_DEF_INTR_COALESCE_TX_TIME_US;
ahw              2097 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		ahw->coal.tx_packets = QLCNIC_DEF_INTR_COALESCE_TX_PACKETS;
ahw              2098 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		ahw->coal.rx_time_us = QLCNIC_DEF_INTR_COALESCE_RX_TIME_US;
ahw              2099 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		ahw->coal.rx_packets = QLCNIC_DEF_INTR_COALESCE_RX_PACKETS;
ahw              2101 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		ahw->coal.type = QLCNIC_INTR_COAL_TYPE_RX;
ahw              2102 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		ahw->coal.rx_time_us = QLCNIC_DEF_INTR_COALESCE_RX_TIME_US;
ahw              2103 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		ahw->coal.rx_packets = QLCNIC_DEF_INTR_COALESCE_RX_PACKETS;
ahw              2114 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	struct qlcnic_fw_dump *fw_dump = &adapter->ahw->fw_dump;
ahw              2130 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	kfree(adapter->ahw->reset.buff);
ahw              2131 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	adapter->ahw->fw_dump.tmpl_hdr = NULL;
ahw              2150 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	adapter->ahw->diag_test = test;
ahw              2151 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	adapter->ahw->linkup = 0;
ahw              2171 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	if (adapter->ahw->diag_test == QLCNIC_INTERRUPT_TEST) {
ahw              2178 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	if (adapter->ahw->diag_test == QLCNIC_LOOPBACK_TEST) {
ahw              2179 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		adapter->ahw->loopback_state = 0;
ahw              2245 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              2246 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	u16 act_pci_fn = ahw->total_nic_func;
ahw              2249 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	ahw->max_mc_count = QLCNIC_MAX_MC_COUNT;
ahw              2256 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	ahw->max_uc_count = count;
ahw              2292 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	adapter->ahw->mc_enabled = 0;
ahw              2325 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	if (adapter->ahw->capabilities & QLCNIC_FW_CAPABILITY_HW_LRO)
ahw              2441 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              2449 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	if (ahw->extra_capability[0] & QLCNIC_FW_CAPABILITY_SET_DRV_VER)
ahw              2466 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	struct qlcnic_hardware_context *ahw;
ahw              2490 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	ahw = kzalloc(sizeof(struct qlcnic_hardware_context), GFP_KERNEL);
ahw              2491 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	if (!ahw) {
ahw              2498 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		ahw->hw_ops = &qlcnic_hw_ops;
ahw              2499 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		ahw->reg_tbl = (u32 *) qlcnic_reg_tbl;
ahw              2504 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		qlcnic_83xx_register_map(ahw);
ahw              2509 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		qlcnic_sriov_vf_register_map(ahw);
ahw              2515 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	err = qlcnic_setup_pci_map(pdev, ahw);
ahw              2531 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	adapter->ahw = ahw;
ahw              2545 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	ahw->revision_id = pdev->revision;
ahw              2546 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	ahw->max_vnic_func = qlcnic_get_vnic_func_count(adapter);
ahw              2552 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	rwlock_init(&adapter->ahw->crb_lock);
ahw              2553 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	mutex_init(&adapter->ahw->mem_lock);
ahw              2561 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		adapter->portnum = adapter->ahw->pci_func;
ahw              2571 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		if (adapter->ahw->msix_supported) {
ahw              2593 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		adapter->portnum = adapter->ahw->pci_func;
ahw              2632 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 			board_name, adapter->ahw->revision_id);
ahw              2668 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	switch (adapter->ahw->port_type) {
ahw              2705 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	qlcnic_cleanup_pci_map(ahw);
ahw              2708 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	kfree(ahw);
ahw              2721 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	ahw->port_type = QLCNIC_XGBE;
ahw              2726 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		ahw->board_type = QLCNIC_BRDTYPE_P3P_10G_SFP_PLUS;
ahw              2746 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	struct qlcnic_hardware_context *ahw;
ahw              2756 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	ahw = adapter->ahw;
ahw              2766 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		qlcnic_83xx_free_mailbox(ahw->mailbox);
ahw              2767 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		kfree(ahw->fw_info);
ahw              2788 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	qlcnic_cleanup_pci_map(adapter->ahw);
ahw              2802 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	kfree(ahw);
ahw              2894 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	act_pci_func = adapter->ahw->total_nic_func;
ahw              2961 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		temp = QLCRDX(adapter->ahw, QLC_83XX_ASIC_TEMP);
ahw              2976 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		if (adapter->ahw->temp == QLCNIC_TEMP_NORMAL) {
ahw              2984 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		if (adapter->ahw->temp == QLCNIC_TEMP_WARN) {
ahw              2990 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	adapter->ahw->temp = temp_state;
ahw              3065 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		if (netif_msg_tx_err(adapter->ahw))
ahw              3081 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	    netif_msg_tx_err(adapter->ahw)) {
ahw              3090 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		adapter->ahw->reset_context = 1;
ahw              3118 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	if (!(status & adapter->ahw->int_vec_bit))
ahw              3150 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	adapter->ahw->diag_cnt++;
ahw              3288 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              3294 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		active_mask = (~(1 << (ahw->pci_func * 4)));
ahw              3426 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	if (adapter->ahw->op_mode == QLCNIC_NON_PRIV_FUNC) {
ahw              3544 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	if (adapter->ahw->temp == QLCNIC_TEMP_PANIC) {
ahw              3546 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 			adapter->ahw->temp);
ahw              3664 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	if (adapter->ahw->op_mode != QLCNIC_MGMT_FUNC) {
ahw              3703 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              3704 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	struct qlcnic_fw_dump *fw_dump = &ahw->fw_dump;
ahw              3729 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 		if (ahw->reset_context && qlcnic_auto_fw_reset)
ahw              3840 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	if (adapter->ahw->op_mode != QLCNIC_NON_PRIV_FUNC && first_func) {
ahw              3943 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	struct qlcnic_hardware_ops *hw_ops = adapter->ahw->hw_ops;
ahw              3956 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	struct qlcnic_hardware_ops *hw_ops = adapter->ahw->hw_ops;
ahw              3969 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c 	struct qlcnic_hardware_ops *hw_ops = adapter->ahw->hw_ops;
ahw               406 drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c 	void *hdr = adapter->ahw->fw_dump.tmpl_hdr;
ahw               550 drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c 	addr = adapter->ahw->pci_base0 + ocm->read_addr;
ahw               576 drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c 			    adapter->ahw->pci_func);
ahw               679 drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c 	mutex_lock(&adapter->ahw->mem_lock);
ahw               709 drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c 	mutex_unlock(&adapter->ahw->mem_lock);
ahw               729 drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c 	tmpl_hdr = adapter->ahw->fw_dump.tmpl_hdr;
ahw               772 drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c 	struct qlcnic_fw_dump *fw_dump = &adapter->ahw->fw_dump;
ahw               812 drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c 	temp |= (adapter->ahw->pci_func & 0xf) << 4;
ahw               858 drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c 	struct qlcnic_fw_dump *fw_dump = &adapter->ahw->fw_dump;
ahw              1209 drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c 	struct qlcnic_hardware_context *ahw;
ahw              1217 drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c 	ahw = adapter->ahw;
ahw              1218 drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c 	fw_dump = &ahw->fw_dump;
ahw              1288 drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c 	struct qlcnic_fw_dump *fw_dump = &adapter->ahw->fw_dump;
ahw              1294 drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c 	struct qlcnic_hardware_context *ahw;
ahw              1302 drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c 	ahw = adapter->ahw;
ahw              1320 drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c 	netif_info(adapter->ahw, drv, adapter->netdev, "Take FW dump\n");
ahw              1347 drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c 		ocm_window = hdr_83xx->ocm_wnd_reg[ahw->pci_func];
ahw              1349 drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c 		hdr_83xx->saved_state[QLC_83XX_PCI_INDEX] = ahw->pci_func;
ahw              1411 drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c 		(adapter->ahw->extra_capability[0] &
ahw              1418 drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              1419 drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c 	struct qlcnic_fw_dump *fw_dump = &ahw->fw_dump;
ahw               157 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	adapter->ahw->sriov = sriov;
ahw               234 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	kfree(adapter->ahw->sriov);
ahw               262 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	struct qlcnic_sriov *sriov = adapter->ahw->sriov;
ahw               286 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	kfree(adapter->ahw->sriov);
ahw               313 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw               314 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	struct qlcnic_mailbox *mbx = ahw->mailbox;
ahw               331 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 			__func__, cmd.cmd_op, cmd.type, ahw->pci_func,
ahw               332 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 			ahw->op_mode);
ahw               339 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 			__func__, cmd.cmd_op, cmd.type, ahw->pci_func,
ahw               340 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 			ahw->op_mode);
ahw               435 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	struct qlcnic_sriov *sriov = adapter->ahw->sriov;
ahw               466 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	struct qlcnic_sriov *sriov = adapter->ahw->sriov;
ahw               497 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw               505 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	ahw->max_mc_count = nic_info.max_rx_mcast_mac_filters;
ahw               507 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	err = qlcnic_get_nic_info(adapter, &nic_info, ahw->pci_func);
ahw               517 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 		 adapter->ahw->fw_hal_version);
ahw               519 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	ahw->physical_port = (u8) nic_info.phys_port;
ahw               520 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	ahw->switch_mode = nic_info.switch_mode;
ahw               521 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	ahw->max_mtu = nic_info.max_mtu;
ahw               522 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	ahw->op_mode = nic_info.op_mode;
ahw               523 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	ahw->capabilities = nic_info.capabilities;
ahw               533 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	adapter->ahw->total_nic_func = 1;
ahw               582 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 			     adapter->ahw->idc.delay);
ahw               610 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 		state = QLCRDX(adapter->ahw, QLC_83XX_IDC_DEV_STATE);
ahw               618 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw               621 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	set_bit(QLC_83XX_MODULE_LOADED, &ahw->idc.status);
ahw               622 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	ahw->idc.delay = QLC_83XX_IDC_FW_POLL_DELAY;
ahw               623 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	ahw->reset_context = 0;
ahw               625 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	ahw->msix_supported = 1;
ahw               648 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw               650 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	ahw->op_mode = QLCNIC_SRIOV_VF_FUNC;
ahw               653 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 		 ahw->fw_hal_version);
ahw               659 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c void qlcnic_sriov_vf_register_map(struct qlcnic_hardware_context *ahw)
ahw               661 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	ahw->hw_ops		= &qlcnic_sriov_vf_hw_ops;
ahw               662 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	ahw->reg_tbl		= (u32 *)qlcnic_83xx_reg_tbl;
ahw               663 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	ahw->ext_reg_tbl	= (u32 *)qlcnic_83xx_ext_reg_tbl;
ahw               682 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	struct qlcnic_vf_info *vf_info = adapter->ahw->sriov->vf_info;
ahw               688 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	for (i = 0; i < adapter->ahw->sriov->num_vfs; i++) {
ahw               906 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw               913 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 		*(hdr++) = readl(QLCNIC_MBX_FW(ahw, i));
ahw               915 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 		*(pay++) = readl(QLCNIC_MBX_FW(ahw, i));
ahw              1013 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	vf = &adapter->ahw->sriov->vf_info[index];
ahw              1080 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 		qlcnic_sriov_schedule_bc_cmd(adapter->ahw->sriov, vf,
ahw              1270 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 		ptr[i - 2] = readl(QLCNIC_MBX_FW(vf->adapter->ahw, i));
ahw              1302 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	sriov = adapter->ahw->sriov;
ahw              1356 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	state = QLCRDX(adapter->ahw, QLC_83XX_IDC_DEV_STATE);
ahw              1373 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              1374 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	struct qlcnic_mailbox *mbx = ahw->mailbox;
ahw              1379 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	u16 seq = ++adapter->ahw->sriov->bc.trans_counter;
ahw              1380 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	u8 func = ahw->pci_func;
ahw              1437 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 		ahw->reset_context = 1;
ahw              1467 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	struct qlcnic_vf_info *vf = &adapter->ahw->sriov->vf_info[0];
ahw              1499 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	struct qlcnic_sriov *sriov = adapter->ahw->sriov;
ahw              1504 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	vf = &adapter->ahw->sriov->vf_info[0];
ahw              1544 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              1558 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 		   (netdev_mc_count(netdev) > ahw->max_mc_count)) {
ahw              1573 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	if (netdev_uc_count(netdev) > ahw->max_uc_count) {
ahw              1662 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	struct qlcnic_back_channel *bc = &adapter->ahw->sriov->bc;
ahw              1677 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	qlcnic_83xx_reinit_mbx_work(adapter->ahw->mailbox);
ahw              1716 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              1717 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	struct qlcnic_intrpt_config *intr_tbl = ahw->intr_tbl;
ahw              1719 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	u8 i, max_ints = ahw->num_msix - 1;
ahw              1733 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	ahw->reset_context = 0;
ahw              1738 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              1740 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	struct qlc_83xx_idc *idc = &ahw->idc;
ahw              1741 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	u8 func = ahw->pci_func;
ahw              1756 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 			state = QLCRDX(ahw, QLC_83XX_IDC_DEV_STATE);
ahw              1767 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              1768 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	struct qlcnic_mailbox *mbx = ahw->mailbox;
ahw              1770 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	struct qlc_83xx_idc *idc = &ahw->idc;
ahw              1771 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	u8 func = ahw->pci_func;
ahw              1817 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 		state = QLCRDX(ahw, QLC_83XX_IDC_DEV_STATE);
ahw              1826 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              1829 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	if (ahw->idc.prev_state != QLC_83XX_IDC_DEV_READY)
ahw              1831 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	else if (ahw->reset_context)
ahw              1840 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	struct qlc_83xx_idc *idc = &adapter->ahw->idc;
ahw              1854 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	struct qlcnic_mailbox *mbx = adapter->ahw->mailbox;
ahw              1855 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	struct qlc_83xx_idc *idc = &adapter->ahw->idc;
ahw              1871 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	struct qlcnic_mailbox *mbx = adapter->ahw->mailbox;
ahw              1872 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	struct qlc_83xx_idc *idc = &adapter->ahw->idc;
ahw              1873 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	u8 func = adapter->ahw->pci_func;
ahw              1906 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	idc = &adapter->ahw->idc;
ahw              1907 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	idc->curr_state = QLCRDX(adapter->ahw, QLC_83XX_IDC_DEV_STATE);
ahw              1942 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	clear_bit(QLC_83XX_MODULE_LOADED, &adapter->ahw->idc.status);
ahw              1985 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	struct qlcnic_sriov *sriov = adapter->ahw->sriov;
ahw              1991 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	vf = &adapter->ahw->sriov->vf_info[0];
ahw              2026 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	sriov = adapter->ahw->sriov;
ahw              2051 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	struct qlcnic_sriov *sriov = adapter->ahw->sriov;
ahw              2061 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	vf = &adapter->ahw->sriov->vf_info[0];
ahw              2138 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	struct qlc_83xx_idc *idc = &adapter->ahw->idc;
ahw              2165 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	struct qlcnic_sriov *sriov = adapter->ahw->sriov;
ahw              2178 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c 	struct qlcnic_sriov *sriov = adapter->ahw->sriov;
ahw                71 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	struct qlcnic_sriov *sriov = adapter->ahw->sriov;
ahw                92 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	if (adapter->ahw->pci_func == func) {
ahw               140 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	struct qlcnic_resources *ff_max = &adapter->ahw->sriov->ff_max;
ahw               159 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	struct qlcnic_sriov *sriov = adapter->ahw->sriov;
ahw               236 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	struct qlcnic_sriov  *sriov = adapter->ahw->sriov;
ahw               240 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	if (adapter->ahw->pci_func == func) {
ahw               254 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	struct qlcnic_sriov  *sriov = adapter->ahw->sriov;
ahw               258 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	if (adapter->ahw->pci_func == func) {
ahw               272 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	struct qlcnic_sriov  *sriov = adapter->ahw->sriov;
ahw               276 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	if (adapter->ahw->pci_func == func) {
ahw               409 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	struct qlcnic_sriov *sriov = adapter->ahw->sriov;
ahw               421 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	struct qlcnic_back_channel *bc = &adapter->ahw->sriov->bc;
ahw               436 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	u8 func = adapter->ahw->pci_func;
ahw               447 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	adapter->ahw->op_mode = QLCNIC_MGMT_FUNC;
ahw               506 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw               509 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	u8 func = ahw->pci_func;
ahw               548 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	ahw->physical_port = (u8) nic_info.phys_port;
ahw               549 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	ahw->switch_mode = nic_info.switch_mode;
ahw               550 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	ahw->max_mtu = nic_info.max_mtu;
ahw               551 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	ahw->capabilities = nic_info.capabilities;
ahw               552 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	ahw->nic_mode = QLC_83XX_SRIOV_MODE;
ahw               587 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	adapter->ahw->op_mode = QLCNIC_SRIOV_PF_FUNC;
ahw               613 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	adapter->ahw->op_mode = QLCNIC_MGMT_FUNC;
ahw               694 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	vp = adapter->ahw->sriov->vf_info[id].vp;
ahw               751 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	sriov = adapter->ahw->sriov;
ahw               862 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	sriov = adapter->ahw->sriov;
ahw              1116 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	if (cmd->req.arg[2] > adapter->ahw->max_mtu)
ahw              1197 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	struct qlcnic_nic_intr_coalesce *coal = &adapter->ahw->coal;
ahw              1344 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	sriov = adapter->ahw->sriov;
ahw              1371 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	struct qlcnic_sriov *sriov = adapter->ahw->sriov;
ahw              1396 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	struct qlcnic_sriov *sriov = adapter->ahw->sriov;
ahw              1530 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 						adapter->ahw->pci_func);
ahw              1540 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 						adapter->ahw->pci_func);
ahw              1550 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 						adapter->ahw->pci_func);
ahw              1560 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 						adapter->ahw->pci_func);
ahw              1570 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 						adapter->ahw->pci_func);
ahw              1580 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 						adapter->ahw->pci_func);
ahw              1590 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 						adapter->ahw->pci_func);
ahw              1678 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 		qlcnic_sriov_add_act_list_irqsave(adapter->ahw->sriov, vf,
ahw              1709 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	struct qlcnic_sriov *sriov = adapter->ahw->sriov;
ahw              1763 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              1764 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	struct qlcnic_sriov *sriov = ahw->sriov;
ahw              1778 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	qlcnic_sriov_pf_reset_vport_handle(adapter, ahw->pci_func);
ahw              1779 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	QLCWRX(ahw, QLCNIC_MBX_INTR_ENBL, (ahw->num_msix - 1) << 8);
ahw              1784 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw              1790 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	ahw->op_mode = QLCNIC_SRIOV_PF_FUNC;
ahw              1797 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 		 __func__, ahw->op_mode);
ahw              1804 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	struct qlcnic_sriov *sriov = adapter->ahw->sriov;
ahw              1852 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	struct qlcnic_sriov *sriov = adapter->ahw->sriov;
ahw              1917 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	struct qlcnic_sriov *sriov = adapter->ahw->sriov;
ahw              1996 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	struct qlcnic_sriov *sriov = adapter->ahw->sriov;
ahw              2026 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c 	struct qlcnic_sriov *sriov = adapter->ahw->sriov;
ahw                44 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 	if (!(adapter->ahw->capabilities & QLCNIC_FW_CAPABILITY_BDG))
ahw                67 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 	if (adapter->ahw->capabilities & QLCNIC_FW_CAPABILITY_BDG)
ahw               120 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw               132 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 	if (ahw->beacon_state == h_beacon)
ahw               136 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 	if (!ahw->beacon_state) {
ahw               148 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 		ahw->beacon_state = h_beacon;
ahw               150 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 	if (!ahw->beacon_state)
ahw               160 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw               175 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 	if (ahw->beacon_state == b_state)
ahw               179 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 	if (!ahw->beacon_state) {
ahw               201 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 		ahw->beacon_state = b_state;
ahw               208 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 	if (!ahw->beacon_state)
ahw               222 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 	if (adapter->ahw->op_mode == QLCNIC_NON_PRIV_FUNC) {
ahw               243 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 	return sprintf(buf, "%d\n", adapter->ahw->beacon_state);
ahw               362 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 	for (i = 0; i < adapter->ahw->total_nic_func; i++) {
ahw               465 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 	for (i = 0; i < adapter->ahw->total_nic_func; i++) {
ahw               469 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 				__func__, adapter->ahw->total_nic_func, count);
ahw               486 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 	struct qlcnic_hardware_context *ahw = adapter->ahw;
ahw               492 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 		op_mode = readl(ahw->pci_base0 + QLCNIC_DRV_OP_MODE);
ahw               494 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 		op_mode = QLCRDX(ahw, QLC_83XX_DRV_OP_MODE);
ahw               498 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 		if (pci_func >= ahw->max_vnic_func)
ahw               501 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 		if (adapter->ahw->op_mode == QLCNIC_MGMT_FUNC)
ahw               568 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 		if (adapter->ahw->op_mode == QLCNIC_MGMT_FUNC)
ahw               572 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 		if (adapter->ahw->pci_func != esw_cfg[i].pci_func)
ahw               578 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 		esw_cfg[i].pci_func = adapter->ahw->pci_func;
ahw               597 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 	if (adapter->ahw->op_mode != QLCNIC_MGMT_FUNC)
ahw               642 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 	for (i = 0; i < adapter->ahw->total_nic_func; i++) {
ahw               646 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 				__func__, adapter->ahw->total_nic_func, count);
ahw               744 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 	for (i = 0; i < adapter->ahw->total_nic_func; i++) {
ahw               747 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 				__func__, adapter->ahw->total_nic_func, count);
ahw               789 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 	if (offset >= adapter->ahw->max_vnic_func)
ahw               885 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 	if (offset >= adapter->ahw->max_vnic_func)
ahw              1006 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 	if (adapter->ahw->fdt.mfg_id == adapter->flash_mfg_id) {
ahw              1021 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 			if (adapter->ahw->fdt.mfg_id == adapter->flash_mfg_id) {
ahw              1039 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 	if (adapter->ahw->fdt.mfg_id == adapter->flash_mfg_id) {
ahw              1074 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 	if (adapter->ahw->fdt.mfg_id == adapter->flash_mfg_id) {
ahw              1086 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 			if (adapter->ahw->fdt.mfg_id == adapter->flash_mfg_id) {
ahw              1103 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 	if (adapter->ahw->fdt.mfg_id == adapter->flash_mfg_id) {
ahw              1270 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 		value = QLCRDX(adapter->ahw, QLC_83XX_ASIC_TEMP);
ahw              1298 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 		adapter->ahw->hwmon_dev = NULL;
ahw              1309 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 	adapter->ahw->hwmon_dev = hwmon_dev;
ahw              1314 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 	struct device *hwmon_dev = adapter->ahw->hwmon_dev;
ahw              1317 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 		adapter->ahw->hwmon_dev = NULL;
ahw              1326 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 	if (adapter->ahw->capabilities & QLCNIC_FW_CAPABILITY_BDG)
ahw              1336 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 	if (adapter->ahw->capabilities & QLCNIC_FW_CAPABILITY_BDG)
ahw              1347 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 	if (adapter->ahw->op_mode == QLCNIC_NON_PRIV_FUNC)
ahw              1369 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 	if (adapter->ahw->op_mode != QLCNIC_MGMT_FUNC)
ahw              1385 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 	if (adapter->ahw->op_mode == QLCNIC_NON_PRIV_FUNC)
ahw              1399 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c 	if (adapter->ahw->op_mode != QLCNIC_MGMT_FUNC)