Lines Matching refs:nic

103 	struct pci_nic *nic = pci_get_drvdata(pdev);
111 nic->port_num == 1 ? "" : ", 2-Port");
113 readl(nic->regs + SROM_VER), readl(nic->regs + FPGA_VER) & 0xFFF,
114 readl(nic->regs + FPGA_SEED),
119 static void print_fw_id(struct pci_nic *nic)
121 pr_info("fw 0x%x\n", readl(nic->regs + FW_VER));
422 #define BDX_IRQ_TYPE ((priv->nic->irq_type == IRQ_MSI) ? 0 : IRQF_SHARED)
621 print_fw_id(priv->nic);
632 return (offset > (u32) (BDX_REGS_SIZE / priv->nic->port_num)) ?
987 * filled and packets will be dropped by nic without getting into host or
989 * all packets, but dropping in nic is cheaper, since it takes 0 cpu cycles
1071 * @priv - nic's private structure
1187 * @priv - nic's private structure
1896 struct pci_nic *nic;
1900 nic = vmalloc(sizeof(*nic));
1901 if (!nic)
1940 nic->regs = ioremap(pciaddr, regionSize);
1941 if (!nic->regs) {
1952 pci_set_drvdata(pdev, nic);
1955 nic->port_num = 2;
1957 nic->port_num = 1;
1961 bdx_hw_reset_direct(nic->regs);
1963 nic->irq_type = IRQ_INTX;
1965 if ((readl(nic->regs + FPGA_VER) & 0xFFF) >= 378) {
1970 nic->irq_type = IRQ_MSI;
1976 for (port = 0; port < nic->port_num; port++) {
2007 priv = nic->priv[port] = netdev_priv(ndev);
2009 priv->pBdxRegs = nic->regs + port * 0x8000;
2013 priv->nic = nic;
2018 if ((readl(nic->regs + FPGA_VER) & 0xFFF) == 308) {
2066 iounmap(nic->regs);
2072 vfree(nic);
2407 struct pci_nic *nic = pci_get_drvdata(pdev);
2411 for (port = 0; port < nic->port_num; port++) {
2412 ndev = nic->priv[port]->ndev;
2417 /*bdx_hw_reset_direct(nic->regs); */
2419 if (nic->irq_type == IRQ_MSI)
2423 iounmap(nic->regs);
2427 vfree(nic);