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()
507 static void vhost_net_busy_poll_try_queue(struct vhost_net *net, in vhost_net_busy_poll_try_queue()
518 static void vhost_net_busy_poll(struct vhost_net *net, in vhost_net_busy_poll()
569 static int vhost_net_tx_get_vq_desc(struct vhost_net *net, in vhost_net_tx_get_vq_desc()
597 static bool vhost_exceeds_maxpend(struct vhost_net *net) in vhost_exceeds_maxpend()
618 static int get_tx_bufs(struct vhost_net *net, in get_tx_bufs()
657 static bool vhost_net_page_frag_refill(struct vhost_net *net, unsigned int sz, in vhost_net_page_frag_refill()
698 struct vhost_net *net = container_of(vq->dev, struct vhost_net, in vhost_net_build_xdp()
770 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()
961 static void handle_tx(struct vhost_net *net) in handle_tx()
1008 static int vhost_net_rx_peek_head_len(struct vhost_net *net, struct sock *sk, in vhost_net_rx_peek_head_len()
1108 static void handle_rx(struct vhost_net *net) in handle_rx()
1258 struct vhost_net *net = container_of(vq->dev, struct vhost_net, dev); in handle_tx_kick()
1267 struct vhost_net *net = container_of(vq->dev, struct vhost_net, dev); in handle_rx_kick()
1274 struct vhost_net *net = container_of(work, struct vhost_net, in handle_tx_net()
1281 struct vhost_net *net = container_of(work, struct vhost_net, in handle_rx_net()
1288 struct vhost_net *n; in vhost_net_open()
1353 static struct socket *vhost_net_stop_vq(struct vhost_net *n, in vhost_net_stop_vq()
1370 static void vhost_net_stop(struct vhost_net *n, struct socket **tx_sock, in vhost_net_stop()
1377 static void vhost_net_flush_vq(struct vhost_net *n, int index) in vhost_net_flush_vq()
1383 static void vhost_net_flush(struct vhost_net *n) in vhost_net_flush()
1402 struct vhost_net *n = f->private_data; in vhost_net_release()
1499 static long vhost_net_set_backend(struct vhost_net *n, unsigned index, int fd) in vhost_net_set_backend()
1597 static long vhost_net_reset_owner(struct vhost_net *n) in vhost_net_reset_owner()
1627 static int vhost_net_set_features(struct vhost_net *n, u64 features) in vhost_net_set_features()
1670 static long vhost_net_set_owner(struct vhost_net *n) in vhost_net_set_owner()
1694 struct vhost_net *n = f->private_data; in vhost_net_ioctl()
1748 struct vhost_net *n = file->private_data; in vhost_net_chr_read_iter()
1759 struct vhost_net *n = file->private_data; in vhost_net_chr_write_iter()
1767 struct vhost_net *n = file->private_data; in vhost_net_chr_poll()