Searched refs:vsk (Results 1 – 5 of 5) sorted by relevance
/net/vmw_vsock/ |
D | vmci_transport_notify.c | 23 #define PKT_FIELD(vsk, field_name) (vmci_trans(vsk)->notify.pkt.field_name) argument 25 static bool vmci_transport_notify_waiting_write(struct vsock_sock *vsk) in vmci_transport_notify_waiting_write() argument 31 if (!PKT_FIELD(vsk, peer_waiting_write)) in vmci_transport_notify_waiting_write() 42 if (!PKT_FIELD(vsk, peer_waiting_write_detected)) { in vmci_transport_notify_waiting_write() 43 PKT_FIELD(vsk, peer_waiting_write_detected) = true; in vmci_transport_notify_waiting_write() 44 if (PKT_FIELD(vsk, write_notify_window) < PAGE_SIZE) { in vmci_transport_notify_waiting_write() 45 PKT_FIELD(vsk, write_notify_window) = in vmci_transport_notify_waiting_write() 46 PKT_FIELD(vsk, write_notify_min_window); in vmci_transport_notify_waiting_write() 48 PKT_FIELD(vsk, write_notify_window) -= PAGE_SIZE; in vmci_transport_notify_waiting_write() 49 if (PKT_FIELD(vsk, write_notify_window) < in vmci_transport_notify_waiting_write() [all …]
|
D | vmci_transport_notify_qstate.c | 23 #define PKT_FIELD(vsk, field_name) \ argument 24 (vmci_trans(vsk)->notify.pkt_q_state.field_name) 26 static bool vmci_transport_notify_waiting_write(struct vsock_sock *vsk) in vmci_transport_notify_waiting_write() argument 31 if (!PKT_FIELD(vsk, peer_waiting_write)) in vmci_transport_notify_waiting_write() 41 if (!PKT_FIELD(vsk, peer_waiting_write_detected)) { in vmci_transport_notify_waiting_write() 42 PKT_FIELD(vsk, peer_waiting_write_detected) = true; in vmci_transport_notify_waiting_write() 43 if (PKT_FIELD(vsk, write_notify_window) < PAGE_SIZE) { in vmci_transport_notify_waiting_write() 44 PKT_FIELD(vsk, write_notify_window) = in vmci_transport_notify_waiting_write() 45 PKT_FIELD(vsk, write_notify_min_window); in vmci_transport_notify_waiting_write() 47 PKT_FIELD(vsk, write_notify_window) -= PAGE_SIZE; in vmci_transport_notify_waiting_write() [all …]
|
D | af_vsock.c | 160 #define vsock_connected_sockets_vsk(vsk) \ argument 161 vsock_connected_sockets(&(vsk)->remote_addr, &(vsk)->local_addr) 168 static int vsock_auto_bind(struct vsock_sock *vsk) in vsock_auto_bind() argument 170 struct sock *sk = sk_vsock(vsk); in vsock_auto_bind() 173 if (vsock_addr_bound(&vsk->local_addr)) in vsock_auto_bind() 191 struct vsock_sock *vsk) in __vsock_insert_bound() argument 193 sock_hold(&vsk->sk); in __vsock_insert_bound() 194 list_add(&vsk->bound_table, list); in __vsock_insert_bound() 198 struct vsock_sock *vsk) in __vsock_insert_connected() argument 200 sock_hold(&vsk->sk); in __vsock_insert_connected() [all …]
|
D | vmci_transport.c | 285 struct vsock_sock *vsk; in vmci_transport_send_control_pkt() local 288 vsk = vsock_sk(sk); in vmci_transport_send_control_pkt() 290 if (!vsock_addr_bound(&vsk->local_addr)) in vmci_transport_send_control_pkt() 293 if (!vsock_addr_bound(&vsk->remote_addr)) in vmci_transport_send_control_pkt() 300 err = __vmci_transport_send_control_pkt(pkt, &vsk->local_addr, in vmci_transport_send_control_pkt() 301 &vsk->remote_addr, type, size, in vmci_transport_send_control_pkt() 440 static int vmci_transport_shutdown(struct vsock_sock *vsk, int mode) in vmci_transport_shutdown() argument 443 &vsk->sk, in vmci_transport_shutdown() 607 struct vsock_sock *vsk; in vmci_transport_recv_dgram_cb() local 620 vsk = vsock_sk(sk); in vmci_transport_recv_dgram_cb() [all …]
|
D | vmci_transport_notify.h | 49 void (*socket_destruct) (struct vsock_sock *vsk);
|