Lines Matching refs:ndev
106 struct net_device *ndev; member
199 netif_tx_wake_all_queues(cfv->ndev); in cfv_release_used_buf()
226 netdev_err(cfv->ndev, in cfv_alloc_and_copy_skb()
237 skb = netdev_alloc_skb(cfv->ndev, frm_len + pad_len); in cfv_alloc_and_copy_skb()
297 skb->dev = cfv->ndev; in cfv_rx_poll()
300 ++cfv->ndev->stats.rx_dropped; in cfv_rx_poll()
302 ++cfv->ndev->stats.rx_packets; in cfv_rx_poll()
303 cfv->ndev->stats.rx_bytes += skb_len; in cfv_rx_poll()
337 netdev_warn(cfv->ndev, "Bad ring, disable device\n"); in cfv_rx_poll()
338 cfv->ndev->stats.rx_dropped = riov->used - riov->i; in cfv_rx_poll()
341 netif_carrier_off(cfv->ndev); in cfv_rx_poll()
386 if (cfv->allocsz <= (num_possible_cpus() + 1) * cfv->ndev->mtu) in cfv_create_genpool()
390 if (cfv->allocsz <= num_possible_cpus() * cfv->ndev->mtu) { in cfv_create_genpool()
391 netdev_info(cfv->ndev, "Not enough device memory\n"); in cfv_create_genpool()
405 netdev_dbg(cfv->ndev, "Allocated %zd bytes from dma-memory\n", in cfv_create_genpool()
422 cfv->reserved_size = num_possible_cpus() * cfv->ndev->mtu; in cfv_create_genpool()
491 netdev_warn(cfv->ndev, "Invalid packet len (%d > %d)\n", in cfv_alloc_and_copy_to_shm()
571 netdev_warn(cfv->ndev, "Out of gen_pool memory\n"); in cfv_netdev_tx()
578 netdev_warn(cfv->ndev, "Failed adding buffer to TX vring:%d\n", in cfv_netdev_tx()
584 cfv->ndev->stats.tx_packets++; in cfv_netdev_tx()
585 cfv->ndev->stats.tx_bytes += skb->len; in cfv_netdev_tx()
595 cfv->ndev->stats.tx_dropped++; in cfv_netdev_tx()
627 debugfs_create_dir(netdev_name(cfv->ndev), NULL); in debugfs_init()
668 cfv->ndev = netdev; in cfv_probe()
741 netdev_warn(cfv->ndev, "CAIF Virtio probe failed:%d\n", err); in cfv_probe()
756 dev_close(cfv->ndev); in cfv_remove()
767 unregister_netdev(cfv->ndev); in cfv_remove()