Lines Matching refs:vhost_net
128 struct vhost_net { struct
262 static void vhost_net_clear_ubuf_info(struct vhost_net *n) in vhost_net_clear_ubuf_info()
272 static int vhost_net_set_ubuf_info(struct vhost_net *n) in vhost_net_set_ubuf_info()
295 static void vhost_net_vq_reset(struct vhost_net *n) in vhost_net_vq_reset()
312 static void vhost_net_tx_packet(struct vhost_net *net) in vhost_net_tx_packet()
321 static void vhost_net_tx_err(struct vhost_net *net) in vhost_net_tx_err()
326 static bool vhost_net_tx_select_zcopy(struct vhost_net *net) in vhost_net_tx_select_zcopy()
346 static void vhost_zerocopy_signal_used(struct vhost_net *net, in vhost_zerocopy_signal_used()
409 static void vhost_net_disable_vq(struct vhost_net *n, in vhost_net_disable_vq()
420 static int vhost_net_enable_vq(struct vhost_net *n, in vhost_net_enable_vq()
447 static int vhost_net_tx_get_vq_desc(struct vhost_net *net, in vhost_net_tx_get_vq_desc()
479 static bool vhost_exceeds_maxpend(struct vhost_net *net) in vhost_exceeds_maxpend()
506 static int get_tx_bufs(struct vhost_net *net, in get_tx_bufs()
543 static void handle_tx_copy(struct vhost_net *net, struct socket *sock) in handle_tx_copy()
610 static void handle_tx_zerocopy(struct vhost_net *net, struct socket *sock) in handle_tx_zerocopy()
713 static void handle_tx(struct vhost_net *net) in handle_tx()
770 static int vhost_net_rx_peek_head_len(struct vhost_net *net, struct sock *sk, in vhost_net_rx_peek_head_len()
898 static void handle_rx(struct vhost_net *net) in handle_rx()
1047 struct vhost_net *net = container_of(vq->dev, struct vhost_net, dev); in handle_tx_kick()
1056 struct vhost_net *net = container_of(vq->dev, struct vhost_net, dev); in handle_rx_kick()
1063 struct vhost_net *net = container_of(work, struct vhost_net, in handle_tx_net()
1070 struct vhost_net *net = container_of(work, struct vhost_net, in handle_rx_net()
1077 struct vhost_net *n; in vhost_net_open()
1126 static struct socket *vhost_net_stop_vq(struct vhost_net *n, in vhost_net_stop_vq()
1143 static void vhost_net_stop(struct vhost_net *n, struct socket **tx_sock, in vhost_net_stop()
1150 static void vhost_net_flush_vq(struct vhost_net *n, int index) in vhost_net_flush_vq()
1156 static void vhost_net_flush(struct vhost_net *n) in vhost_net_flush()
1175 struct vhost_net *n = f->private_data; in vhost_net_release()
1282 static long vhost_net_set_backend(struct vhost_net *n, unsigned index, int fd) in vhost_net_set_backend()
1376 static long vhost_net_reset_owner(struct vhost_net *n) in vhost_net_reset_owner()
1406 static int vhost_net_set_backend_features(struct vhost_net *n, u64 features) in vhost_net_set_backend_features()
1421 static int vhost_net_set_features(struct vhost_net *n, u64 features) in vhost_net_set_features()
1464 static long vhost_net_set_owner(struct vhost_net *n) in vhost_net_set_owner()
1488 struct vhost_net *n = f->private_data; in vhost_net_ioctl()
1549 struct vhost_net *n = file->private_data; in vhost_net_chr_read_iter()
1560 struct vhost_net *n = file->private_data; in vhost_net_chr_write_iter()
1568 struct vhost_net *n = file->private_data; in vhost_net_chr_poll()