Lines Matching defs:vi
372 static void enable_delayed_refill(struct virtnet_info *vi) in enable_delayed_refill()
379 static void disable_delayed_refill(struct virtnet_info *vi) in disable_delayed_refill()
411 struct virtnet_info *vi = vq->vdev->priv; in skb_xmit_done() local
442 static struct sk_buff *page_to_skb(struct virtnet_info *vi, in page_to_skb()
564 static int __virtnet_xdp_xmit_one(struct virtnet_info *vi, in __virtnet_xdp_xmit_one()
599 #define virtnet_xdp_get_sq(vi) ({ \ argument
618 #define virtnet_xdp_put_sq(vi, q) { \ argument
632 struct virtnet_info *vi = netdev_priv(dev); in virtnet_xdp_xmit() local
701 static unsigned int virtnet_get_headroom(struct virtnet_info *vi) in virtnet_get_headroom()
771 struct virtnet_info *vi, in receive_small()
915 struct virtnet_info *vi, in receive_big()
938 struct virtnet_info *vi, in receive_mergeable()
1238 static void receive_buf(struct virtnet_info *vi, struct receive_queue *rq, in receive_buf()
1304 static int add_recvbuf_small(struct virtnet_info *vi, struct receive_queue *rq, in add_recvbuf_small()
1330 static int add_recvbuf_big(struct virtnet_info *vi, struct receive_queue *rq, in add_recvbuf_big()
1383 struct virtnet_info *vi = rq->vq->vdev->priv; in get_mergeable_buf_len() local
1396 static int add_recvbuf_mergeable(struct virtnet_info *vi, in add_recvbuf_mergeable()
1446 static bool try_fill_recv(struct virtnet_info *vi, struct receive_queue *rq, in try_fill_recv()
1477 struct virtnet_info *vi = rvq->vdev->priv; in skb_recv_done() local
1496 static void virtnet_napi_tx_enable(struct virtnet_info *vi, in virtnet_napi_tx_enable()
1522 struct virtnet_info *vi = in refill_work() local
1545 struct virtnet_info *vi = rq->vq->vdev->priv; in virtnet_receive() local
1625 static bool is_xdp_raw_buffer_queue(struct virtnet_info *vi, int q) in is_xdp_raw_buffer_queue()
1637 struct virtnet_info *vi = rq->vq->vdev->priv; in virtnet_poll_cleantx() local
1667 struct virtnet_info *vi = rq->vq->vdev->priv; in virtnet_poll() local
1698 struct virtnet_info *vi = netdev_priv(dev); in virtnet_open() local
1730 struct virtnet_info *vi = sq->vq->vdev->priv; in virtnet_poll_tx() local
1777 struct virtnet_info *vi = sq->vq->vdev->priv; in xmit_skb() local
1822 struct virtnet_info *vi = netdev_priv(dev); in start_xmit() local
1900 static int virtnet_rx_resize(struct virtnet_info *vi, in virtnet_rx_resize()
1923 static int virtnet_tx_resize(struct virtnet_info *vi, in virtnet_tx_resize()
1969 static bool virtnet_send_command(struct virtnet_info *vi, u8 class, u8 cmd, in virtnet_send_command()
2016 struct virtnet_info *vi = netdev_priv(dev); in virtnet_set_mac_address() local
2064 struct virtnet_info *vi = netdev_priv(dev); in virtnet_stats() local
2101 static void virtnet_ack_link_announce(struct virtnet_info *vi) in virtnet_ack_link_announce()
2110 static int _virtnet_set_queues(struct virtnet_info *vi, u16 queue_pairs) in _virtnet_set_queues()
2136 static int virtnet_set_queues(struct virtnet_info *vi, u16 queue_pairs) in virtnet_set_queues()
2148 struct virtnet_info *vi = netdev_priv(dev); in virtnet_close() local
2167 struct virtnet_info *vi = netdev_priv(dev); in virtnet_set_rx_mode() local
2238 struct virtnet_info *vi = netdev_priv(dev); in virtnet_vlan_rx_add_vid() local
2253 struct virtnet_info *vi = netdev_priv(dev); in virtnet_vlan_rx_kill_vid() local
2265 static void virtnet_clean_affinity(struct virtnet_info *vi) in virtnet_clean_affinity()
2279 static void virtnet_set_affinity(struct virtnet_info *vi) in virtnet_set_affinity()
2320 struct virtnet_info *vi = hlist_entry_safe(node, struct virtnet_info, in virtnet_cpu_online() local
2328 struct virtnet_info *vi = hlist_entry_safe(node, struct virtnet_info, in virtnet_cpu_dead() local
2336 struct virtnet_info *vi = hlist_entry_safe(node, struct virtnet_info, in virtnet_cpu_down_prep() local
2345 static int virtnet_cpu_notif_add(struct virtnet_info *vi) in virtnet_cpu_notif_add()
2360 static void virtnet_cpu_notif_remove(struct virtnet_info *vi) in virtnet_cpu_notif_remove()
2372 struct virtnet_info *vi = netdev_priv(dev); in virtnet_get_ringparam() local
2385 struct virtnet_info *vi = netdev_priv(dev); in virtnet_set_ringparam() local
2427 static bool virtnet_commit_rss_command(struct virtnet_info *vi) in virtnet_commit_rss_command()
2458 static void virtnet_init_default_rss(struct virtnet_info *vi) in virtnet_init_default_rss()
2480 static void virtnet_get_hashflow(const struct virtnet_info *vi, struct ethtool_rxnfc *info) in virtnet_get_hashflow()
2532 static bool virtnet_set_hashflow(struct virtnet_info *vi, struct ethtool_rxnfc *info) in virtnet_set_hashflow()
2599 struct virtnet_info *vi = netdev_priv(dev); in virtnet_get_drvinfo() local
2612 struct virtnet_info *vi = netdev_priv(dev); in virtnet_set_channels() local
2649 struct virtnet_info *vi = netdev_priv(dev); in virtnet_get_strings() local
2672 struct virtnet_info *vi = netdev_priv(dev); in virtnet_get_sset_count() local
2686 struct virtnet_info *vi = netdev_priv(dev); in virtnet_get_ethtool_stats() local
2723 struct virtnet_info *vi = netdev_priv(dev); in virtnet_get_channels() local
2736 struct virtnet_info *vi = netdev_priv(dev); in virtnet_set_link_ksettings() local
2745 struct virtnet_info *vi = netdev_priv(dev); in virtnet_get_link_ksettings() local
2754 static int virtnet_send_notf_coal_cmds(struct virtnet_info *vi, in virtnet_send_notf_coal_cmds()
2810 struct virtnet_info *vi = netdev_priv(dev); in virtnet_set_coalesce() local
2844 struct virtnet_info *vi = netdev_priv(dev); in virtnet_get_coalesce() local
2863 struct virtnet_info *vi = netdev_priv(dev); in virtnet_init_settings() local
2869 static void virtnet_update_settings(struct virtnet_info *vi) in virtnet_update_settings()
2900 struct virtnet_info *vi = netdev_priv(dev); in virtnet_get_rxfh() local
2919 struct virtnet_info *vi = netdev_priv(dev); in virtnet_set_rxfh() local
2939 struct virtnet_info *vi = netdev_priv(dev); in virtnet_get_rxnfc() local
2958 struct virtnet_info *vi = netdev_priv(dev); in virtnet_set_rxnfc() local
3001 struct virtnet_info *vi = vdev->priv; in virtnet_freeze_down() local
3017 struct virtnet_info *vi = vdev->priv; in virtnet_restore_up() local
3040 static int virtnet_set_guest_offloads(struct virtnet_info *vi, u64 offloads) in virtnet_set_guest_offloads()
3056 static int virtnet_clear_guest_offloads(struct virtnet_info *vi) in virtnet_clear_guest_offloads()
3066 static int virtnet_restore_guest_offloads(struct virtnet_info *vi) in virtnet_restore_guest_offloads()
3080 struct virtnet_info *vi = netdev_priv(dev); in virtnet_xdp_set() local
3202 struct virtnet_info *vi = netdev_priv(dev); in virtnet_get_phys_port_name() local
3218 struct virtnet_info *vi = netdev_priv(dev); in virtnet_set_features() local
3286 struct virtnet_info *vi = in virtnet_config_changed_work() local
3319 struct virtnet_info *vi = vdev->priv; in virtnet_config_changed() local
3324 static void virtnet_free_queues(struct virtnet_info *vi) in virtnet_free_queues()
3343 static void _free_receive_bufs(struct virtnet_info *vi) in _free_receive_bufs()
3359 static void free_receive_bufs(struct virtnet_info *vi) in free_receive_bufs()
3366 static void free_receive_page_frags(struct virtnet_info *vi) in free_receive_page_frags()
3384 struct virtnet_info *vi = vq->vdev->priv; in virtnet_rq_free_unused_buf() local
3395 static void free_unused_bufs(struct virtnet_info *vi) in free_unused_bufs()
3413 static void virtnet_del_vqs(struct virtnet_info *vi) in virtnet_del_vqs()
3428 static unsigned int mergeable_min_buf_len(struct virtnet_info *vi, struct virtqueue *vq) in mergeable_min_buf_len()
3440 static int virtnet_find_vqs(struct virtnet_info *vi) in virtnet_find_vqs()
3524 static int virtnet_alloc_queues(struct virtnet_info *vi) in virtnet_alloc_queues()
3569 static int init_vqs(struct virtnet_info *vi) in init_vqs()
3598 struct virtnet_info *vi = netdev_priv(queue->dev); in mergeable_rx_buffer_size_show() local
3690 static bool virtnet_check_guest_gso(const struct virtnet_info *vi) in virtnet_check_guest_gso()
3698 static void virtnet_set_big_packets(struct virtnet_info *vi, const int mtu) in virtnet_set_big_packets()
3716 struct virtnet_info *vi; in virtnet_probe() local
3967 static void remove_vq_common(struct virtnet_info *vi) in remove_vq_common()
3983 struct virtnet_info *vi = vdev->priv; in virtnet_remove() local
4001 struct virtnet_info *vi = vdev->priv; in virtnet_freeze() local
4012 struct virtnet_info *vi = vdev->priv; in virtnet_restore() local