Lines Matching refs:vsock
31 struct vsock_loopback *vsock = &the_vsock_loopback; in vsock_loopback_send_pkt() local
34 virtio_vsock_skb_queue_tail(&vsock->pkt_queue, skb); in vsock_loopback_send_pkt()
35 queue_work(vsock->workqueue, &vsock->pkt_work); in vsock_loopback_send_pkt()
42 struct vsock_loopback *vsock = &the_vsock_loopback; in vsock_loopback_cancel_pkt() local
44 virtio_transport_purge_skbs(vsk, &vsock->pkt_queue); in vsock_loopback_cancel_pkt()
108 struct vsock_loopback *vsock = in vsock_loopback_work() local
115 spin_lock_bh(&vsock->pkt_queue.lock); in vsock_loopback_work()
116 skb_queue_splice_init(&vsock->pkt_queue, &pkts); in vsock_loopback_work()
117 spin_unlock_bh(&vsock->pkt_queue.lock); in vsock_loopback_work()
127 struct vsock_loopback *vsock = &the_vsock_loopback; in vsock_loopback_init() local
130 vsock->workqueue = alloc_workqueue("vsock-loopback", 0, 0); in vsock_loopback_init()
131 if (!vsock->workqueue) in vsock_loopback_init()
134 skb_queue_head_init(&vsock->pkt_queue); in vsock_loopback_init()
135 INIT_WORK(&vsock->pkt_work, vsock_loopback_work); in vsock_loopback_init()
145 destroy_workqueue(vsock->workqueue); in vsock_loopback_init()
151 struct vsock_loopback *vsock = &the_vsock_loopback; in vsock_loopback_exit() local
155 flush_work(&vsock->pkt_work); in vsock_loopback_exit()
157 virtio_vsock_skb_queue_purge(&vsock->pkt_queue); in vsock_loopback_exit()
159 destroy_workqueue(vsock->workqueue); in vsock_loopback_exit()