Lines Matching refs:dev
575 dma_unmap_page_attrs(&nic->pdev->dev, dma_addr, in nicvf_xdp_rx()
606 dma_unmap_page_attrs(&nic->pdev->dev, dma_addr, in nicvf_xdp_rx()
960 struct net_device *netdev = napi->dev; in nicvf_poll()
1738 static void nicvf_tx_timeout(struct net_device *dev, unsigned int txqueue) in nicvf_tx_timeout() argument
1740 struct nicvf *nic = netdev_priv(dev); in nicvf_tx_timeout()
1742 netif_warn(nic, tx_err, dev, "Transmit timed out, resetting\n"); in nicvf_tx_timeout()
1834 struct net_device *dev = nic->netdev; in nicvf_xdp_setup() local
1843 if (prog && dev->mtu > MAX_XDP_MTU) { in nicvf_xdp_setup()
1844 netdev_warn(dev, "Jumbo frames not yet supported with XDP, current MTU %d.\n", in nicvf_xdp_setup()
1845 dev->mtu); in nicvf_xdp_setup()
1857 netdev_warn(dev, in nicvf_xdp_setup()
2096 struct device *dev = &pdev->dev; in nicvf_probe() local
2114 return dev_err_probe(dev, err, "Failed to enable PCI device\n"); in nicvf_probe()
2118 dev_err(dev, "PCI request regions failed 0x%x\n", err); in nicvf_probe()
2122 err = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(48)); in nicvf_probe()
2124 dev_err(dev, "Unable to get usable DMA configuration\n"); in nicvf_probe()
2145 SET_NETDEV_DEV(netdev, &pdev->dev); in nicvf_probe()
2165 dev_err(dev, "Cannot map config register space, aborting\n"); in nicvf_probe()
2191 nic->iommu_domain = iommu_get_domain_for_dev(dev); in nicvf_probe()
2236 dev_err(dev, "Failed to allocate work queue\n"); in nicvf_probe()
2245 dev_err(dev, "Failed to register netdevice\n"); in nicvf_probe()