Lines Matching refs:vhost_net
132 struct vhost_net { struct
270 static void vhost_net_clear_ubuf_info(struct vhost_net *n) in vhost_net_clear_ubuf_info()
280 static int vhost_net_set_ubuf_info(struct vhost_net *n) in vhost_net_set_ubuf_info()
303 static void vhost_net_vq_reset(struct vhost_net *n) in vhost_net_vq_reset()
320 static void vhost_net_tx_packet(struct vhost_net *net) in vhost_net_tx_packet()
329 static void vhost_net_tx_err(struct vhost_net *net) in vhost_net_tx_err()
334 static bool vhost_net_tx_select_zcopy(struct vhost_net *net) in vhost_net_tx_select_zcopy()
359 static void vhost_zerocopy_signal_used(struct vhost_net *net, in vhost_zerocopy_signal_used()
424 static void vhost_net_disable_vq(struct vhost_net *n, in vhost_net_disable_vq()
435 static int vhost_net_enable_vq(struct vhost_net *n, in vhost_net_enable_vq()
462 static void vhost_tx_batch(struct vhost_net *net, in vhost_tx_batch()
510 static void vhost_net_busy_poll_try_queue(struct vhost_net *net, in vhost_net_busy_poll_try_queue()
521 static void vhost_net_busy_poll(struct vhost_net *net, in vhost_net_busy_poll()
572 static int vhost_net_tx_get_vq_desc(struct vhost_net *net, in vhost_net_tx_get_vq_desc()
600 static bool vhost_exceeds_maxpend(struct vhost_net *net) in vhost_exceeds_maxpend()
621 static int get_tx_bufs(struct vhost_net *net, in get_tx_bufs()
658 static bool vhost_net_page_frag_refill(struct vhost_net *net, unsigned int sz, in vhost_net_page_frag_refill()
699 struct vhost_net *net = container_of(vq->dev, struct vhost_net, in vhost_net_build_xdp()
769 static void handle_tx_copy(struct vhost_net *net, struct socket *sock) in handle_tx_copy()
859 static void handle_tx_zerocopy(struct vhost_net *net, struct socket *sock) in handle_tx_zerocopy()
968 static void handle_tx(struct vhost_net *net) in handle_tx()
1015 static int vhost_net_rx_peek_head_len(struct vhost_net *net, struct sock *sk, in vhost_net_rx_peek_head_len()
1115 static void handle_rx(struct vhost_net *net) in handle_rx()
1265 struct vhost_net *net = container_of(vq->dev, struct vhost_net, dev); in handle_tx_kick()
1274 struct vhost_net *net = container_of(vq->dev, struct vhost_net, dev); in handle_rx_kick()
1281 struct vhost_net *net = container_of(work, struct vhost_net, in handle_tx_net()
1288 struct vhost_net *net = container_of(work, struct vhost_net, in handle_rx_net()
1295 struct vhost_net *n; in vhost_net_open()
1362 static struct socket *vhost_net_stop_vq(struct vhost_net *n, in vhost_net_stop_vq()
1379 static void vhost_net_stop(struct vhost_net *n, struct socket **tx_sock, in vhost_net_stop()
1386 static void vhost_net_flush(struct vhost_net *n) in vhost_net_flush()
1404 struct vhost_net *n = f->private_data; in vhost_net_release()
1501 static long vhost_net_set_backend(struct vhost_net *n, unsigned index, int fd) in vhost_net_set_backend()
1602 static long vhost_net_reset_owner(struct vhost_net *n) in vhost_net_reset_owner()
1632 static int vhost_net_set_features(struct vhost_net *n, u64 features) in vhost_net_set_features()
1675 static long vhost_net_set_owner(struct vhost_net *n) in vhost_net_set_owner()
1699 struct vhost_net *n = f->private_data; in vhost_net_ioctl()
1753 struct vhost_net *n = file->private_data; in vhost_net_chr_read_iter()
1764 struct vhost_net *n = file->private_data; in vhost_net_chr_write_iter()
1772 struct vhost_net *n = file->private_data; in vhost_net_chr_poll()