Lines Matching refs:src
136 struct sockaddr_vm *src, in vmci_transport_packet_init() argument
148 pkt->dg.src = vmci_make_handle(VMADDR_CID_ANY, in vmci_transport_packet_init()
155 pkt->src_port = src->svm_port; in vmci_transport_packet_init()
204 vsock_addr_init(remote, pkt->dg.src.context, pkt->src_port); in vmci_transport_packet_get_addresses()
209 struct sockaddr_vm *src, in __vmci_transport_send_control_pkt() argument
221 vmci_transport_packet_init(pkt, src, dst, type, size, mode, wait, in __vmci_transport_send_control_pkt()
239 struct sockaddr_vm src, dst; in vmci_transport_reply_control_pkt_fast() local
244 vmci_transport_packet_get_addresses(pkt, &src, &dst); in vmci_transport_reply_control_pkt_fast()
245 return __vmci_transport_send_control_pkt(&reply, &src, &dst, in vmci_transport_reply_control_pkt_fast()
254 vmci_transport_send_control_pkt_bh(struct sockaddr_vm *src, in vmci_transport_send_control_pkt_bh() argument
269 return __vmci_transport_send_control_pkt(&pkt, src, dst, type, in vmci_transport_send_control_pkt_bh()
310 struct sockaddr_vm *src, in vmci_transport_send_reset_bh() argument
316 dst, src, in vmci_transport_send_reset_bh()
380 struct sockaddr_vm *src) in vmci_transport_send_invalid_bh() argument
383 dst, src, in vmci_transport_send_invalid_bh()
389 struct sockaddr_vm *src) in vmci_transport_send_wrote_bh() argument
392 dst, src, in vmci_transport_send_wrote_bh()
398 struct sockaddr_vm *src) in vmci_transport_send_read_bh() argument
401 dst, src, in vmci_transport_send_read_bh()
475 struct sockaddr_vm src; in vmci_transport_get_pending() local
477 vsock_addr_init(&src, pkt->dg.src.context, pkt->src_port); in vmci_transport_get_pending()
483 if (vsock_addr_equals_addr(&src, &vpending->remote_addr) && in vmci_transport_get_pending()
621 if (!vmci_transport_allow_dgram(vsk, dg->src.context)) in vmci_transport_recv_dgram_cb()
666 struct sockaddr_vm src; in vmci_transport_recv_stream_cb() local
680 if (!vmci_transport_stream_allow(dg->src.context, -1) in vmci_transport_recv_stream_cb()
681 || vmci_transport_peer_rid(dg->src.context) != dg->src.resource) in vmci_transport_recv_stream_cb()
694 vsock_addr_init(&src, pkt->dg.src.context, pkt->src_port); in vmci_transport_recv_stream_cb()
697 sk = vsock_find_connected_socket(&src, &dst); in vmci_transport_recv_stream_cb()
710 if (vmci_transport_send_reset_bh(&dst, &src, pkt) < 0) in vmci_transport_recv_stream_cb()
723 vmci_transport_send_invalid_bh(&dst, &src); in vmci_transport_recv_stream_cb()
738 if (!vmci_transport_allow_dgram(vsk, pkt->dg.src.context)) { in vmci_transport_recv_stream_cb()
756 sk, pkt, true, &dst, &src, in vmci_transport_recv_stream_cb()
767 if (vmci_transport_send_reset_bh(&dst, &src, pkt) < 0) in vmci_transport_recv_stream_cb()
1007 vsock_addr_init(&vpending->remote_addr, pkt->dg.src.context, in vmci_transport_recv_listen()
1182 pkt->dg.src.context, in vmci_transport_recv_connecting_server()
1290 || pkt->dg.src.context != vsk->remote_addr.svm_cid in vmci_transport_recv_connecting_client()
1710 dg->src = vmci_make_handle(vsk->local_addr.svm_cid, in vmci_transport_dgram_enqueue()
1768 vsock_addr_init(vm_addr, dg->src.context, dg->src.resource); in vmci_transport_dgram_dequeue()