Lines Matching full:nic
11 * There are 2 types of RX communication channels between driver and NIC.
22 * Current NIC configuration (registers + firmware) makes NIC use 2 RXF Fifos.
42 * NIC sees that there is no RXF buffers and raises
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()
137 * bdx_fifo_init - create TX/RX descriptor fifo for host-NIC communication.
138 * @priv: NIC private structure
182 * @priv: NIC private structure
238 * bdx_isr_napi - Interrupt Service Routine for Bordeaux NIC
312 * bdx_fw_load - loads firmware to NIC
313 * @priv: NIC private structure
316 * Firware must be loaded once per NIC not per PCI device provided by NIC (NIC
318 * that will actually load FW to NIC.
388 * @priv: NIC private structure
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()
972 * @priv: NIC private structure
981 * filled and packets will be dropped by nic without getting into host or
983 * all packets, but dropping in nic is cheaper, since it takes 0 cpu cycles
1015 * @priv: NIC private structure
1044 * @priv: NIC private structure
1068 * @priv: nic's private structure
1182 * @priv: nic's private structure
1323 * There are 2 types of TX communication channels between driver and NIC.
1327 * Currently NIC supports TSO, checksuming and gather DMA
1457 * @priv: NIC private structure
1558 * @priv: NIC private structure
1575 * bdx_tx_transmit - send packet to NIC
1577 * @ndev: network device assigned to NIC
1755 * @priv: NIC private structure
1787 * @priv: NIC private structure
1817 * @priv: NIC private structure
1822 * NIC to read existing data before writing new one.
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()
2405 /*bdx_hw_reset_direct(nic->regs); */ 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()