Lines Matching refs:vhost_net

131 struct vhost_net {  struct
269 static void vhost_net_clear_ubuf_info(struct vhost_net *n) in vhost_net_clear_ubuf_info()
279 static int vhost_net_set_ubuf_info(struct vhost_net *n) in vhost_net_set_ubuf_info()
302 static void vhost_net_vq_reset(struct vhost_net *n) in vhost_net_vq_reset()
319 static void vhost_net_tx_packet(struct vhost_net *net) in vhost_net_tx_packet()
328 static void vhost_net_tx_err(struct vhost_net *net) in vhost_net_tx_err()
333 static bool vhost_net_tx_select_zcopy(struct vhost_net *net) in vhost_net_tx_select_zcopy()
358 static void vhost_zerocopy_signal_used(struct vhost_net *net, in vhost_zerocopy_signal_used()
421 static void vhost_net_disable_vq(struct vhost_net *n, in vhost_net_disable_vq()
432 static int vhost_net_enable_vq(struct vhost_net *n, in vhost_net_enable_vq()
459 static void vhost_tx_batch(struct vhost_net *net, in vhost_tx_batch()
497 static void vhost_net_busy_poll_try_queue(struct vhost_net *net, in vhost_net_busy_poll_try_queue()
508 static void vhost_net_busy_poll(struct vhost_net *net, in vhost_net_busy_poll()
559 static int vhost_net_tx_get_vq_desc(struct vhost_net *net, in vhost_net_tx_get_vq_desc()
585 static bool vhost_exceeds_maxpend(struct vhost_net *net) in vhost_exceeds_maxpend()
606 static int get_tx_bufs(struct vhost_net *net, in get_tx_bufs()
645 static bool vhost_net_page_frag_refill(struct vhost_net *net, unsigned int sz, in vhost_net_page_frag_refill()
686 struct vhost_net *net = container_of(vq->dev, struct vhost_net, in vhost_net_build_xdp()
757 static void handle_tx_copy(struct vhost_net *net, struct socket *sock) in handle_tx_copy()
846 static void handle_tx_zerocopy(struct vhost_net *net, struct socket *sock) in handle_tx_zerocopy()
948 static void handle_tx(struct vhost_net *net) in handle_tx()
995 static int vhost_net_rx_peek_head_len(struct vhost_net *net, struct sock *sk, in vhost_net_rx_peek_head_len()
1095 static void handle_rx(struct vhost_net *net) in handle_rx()
1245 struct vhost_net *net = container_of(vq->dev, struct vhost_net, dev); in handle_tx_kick()
1254 struct vhost_net *net = container_of(vq->dev, struct vhost_net, dev); in handle_rx_kick()
1261 struct vhost_net *net = container_of(work, struct vhost_net, in handle_tx_net()
1268 struct vhost_net *net = container_of(work, struct vhost_net, in handle_rx_net()
1275 struct vhost_net *n; in vhost_net_open()
1339 static struct socket *vhost_net_stop_vq(struct vhost_net *n, in vhost_net_stop_vq()
1356 static void vhost_net_stop(struct vhost_net *n, struct socket **tx_sock, in vhost_net_stop()
1363 static void vhost_net_flush_vq(struct vhost_net *n, int index) in vhost_net_flush_vq()
1369 static void vhost_net_flush(struct vhost_net *n) in vhost_net_flush()
1388 struct vhost_net *n = f->private_data; in vhost_net_release()
1498 static long vhost_net_set_backend(struct vhost_net *n, unsigned index, int fd) in vhost_net_set_backend()
1592 static long vhost_net_reset_owner(struct vhost_net *n) in vhost_net_reset_owner()
1622 static int vhost_net_set_backend_features(struct vhost_net *n, u64 features) in vhost_net_set_backend_features()
1637 static int vhost_net_set_features(struct vhost_net *n, u64 features) in vhost_net_set_features()
1680 static long vhost_net_set_owner(struct vhost_net *n) in vhost_net_set_owner()
1704 struct vhost_net *n = f->private_data; in vhost_net_ioctl()
1765 struct vhost_net *n = file->private_data; in vhost_net_chr_read_iter()
1776 struct vhost_net *n = file->private_data; in vhost_net_chr_write_iter()
1784 struct vhost_net *n = file->private_data; in vhost_net_chr_poll()