Lines Matching refs:nic

99 	struct pci_nic *nic = pci_get_drvdata(pdev);  in print_hw_id()  local
107 nic->port_num == 1 ? "" : ", 2-Port"); in print_hw_id()
109 readl(nic->regs + SROM_VER), readl(nic->regs + FPGA_VER) & 0xFFF, in print_hw_id()
110 readl(nic->regs + FPGA_SEED), in print_hw_id()
115 static void print_fw_id(struct pci_nic *nic) in print_fw_id() argument
117 pr_info("fw 0x%x\n", readl(nic->regs + FW_VER)); in print_fw_id()
426 #define BDX_IRQ_TYPE ((priv->nic->irq_type == IRQ_MSI) ? 0 : IRQF_SHARED) in bdx_hw_start()
625 print_fw_id(priv->nic); in bdx_open()
636 return (offset > (u32) (BDX_REGS_SIZE / priv->nic->port_num)) ? in bdx_range_check()
1889 struct pci_nic *nic; in bdx_probe() local
1894 nic = vmalloc(sizeof(*nic)); in bdx_probe()
1895 if (!nic) in bdx_probe()
1928 nic->regs = ioremap(pciaddr, regionSize); in bdx_probe()
1929 if (!nic->regs) { in bdx_probe()
1940 pci_set_drvdata(pdev, nic); in bdx_probe()
1943 nic->port_num = 2; in bdx_probe()
1945 nic->port_num = 1; in bdx_probe()
1949 bdx_hw_reset_direct(nic->regs); in bdx_probe()
1951 nic->irq_type = IRQ_INTX; in bdx_probe()
1953 if ((readl(nic->regs + FPGA_VER) & 0xFFF) >= 378) { in bdx_probe()
1958 nic->irq_type = IRQ_MSI; in bdx_probe()
1964 for (port = 0; port < nic->port_num; port++) { in bdx_probe()
1988 priv = nic->priv[port] = netdev_priv(ndev); in bdx_probe()
1990 priv->pBdxRegs = nic->regs + port * 0x8000; in bdx_probe()
1994 priv->nic = nic; in bdx_probe()
1999 if ((readl(nic->regs + FPGA_VER) & 0xFFF) == 308) { in bdx_probe()
2052 iounmap(nic->regs); in bdx_probe()
2058 vfree(nic); in bdx_probe()
2395 struct pci_nic *nic = pci_get_drvdata(pdev); in bdx_remove() local
2399 for (port = 0; port < nic->port_num; port++) { in bdx_remove()
2400 ndev = nic->priv[port]->ndev; in bdx_remove()
2407 if (nic->irq_type == IRQ_MSI) in bdx_remove()
2411 iounmap(nic->regs); in bdx_remove()
2414 vfree(nic); in bdx_remove()