Lines Matching refs:vmci_trans
762 vmci_trans(vsk)->notify_ops->handle_notify_pkt( in vmci_transport_recv_stream_cb()
806 if (!vmci_handle_is_invalid(vmci_trans(vsk)->qp_handle)) { in vmci_transport_handle_detach()
1102 vmci_trans(vpending)->produce_size = in vmci_transport_recv_listen()
1103 vmci_trans(vpending)->consume_size = qp_size; in vmci_transport_recv_listen()
1106 vmci_trans(vpending)->notify_ops->process_request(pending); in vmci_transport_recv_listen()
1173 vmci_trans(vpending), &detach_sub_id); in vmci_transport_recv_connecting_server()
1181 vmci_trans(vpending)->detach_sub_id = detach_sub_id; in vmci_transport_recv_connecting_server()
1197 vmci_trans(vpending)->produce_size, in vmci_transport_recv_connecting_server()
1198 vmci_trans(vpending)->consume_size, in vmci_transport_recv_connecting_server()
1210 vmci_trans(vpending)->qp_handle = handle; in vmci_transport_recv_connecting_server()
1211 vmci_trans(vpending)->qpair = qpair; in vmci_transport_recv_connecting_server()
1287 vmci_trans(vsk)->qp_handle)) { in vmci_transport_recv_connecting_client()
1309 || !vmci_handle_is_invalid(vmci_trans(vsk)->qp_handle) in vmci_transport_recv_connecting_client()
1310 || vmci_trans(vsk)->qpair in vmci_transport_recv_connecting_client()
1311 || vmci_trans(vsk)->produce_size != 0 in vmci_transport_recv_connecting_client()
1312 || vmci_trans(vsk)->consume_size != 0 in vmci_transport_recv_connecting_client()
1313 || vmci_trans(vsk)->detach_sub_id != VMCI_INVALID_ID) { in vmci_transport_recv_connecting_client()
1441 vmci_trans(vsk), &detach_sub_id); in vmci_transport_recv_connecting_client_negotiate()
1471 vmci_trans(vsk)->qp_handle = handle; in vmci_transport_recv_connecting_client_negotiate()
1472 vmci_trans(vsk)->qpair = qpair; in vmci_transport_recv_connecting_client_negotiate()
1474 vmci_trans(vsk)->produce_size = vmci_trans(vsk)->consume_size = in vmci_transport_recv_connecting_client_negotiate()
1477 vmci_trans(vsk)->detach_sub_id = detach_sub_id; in vmci_transport_recv_connecting_client_negotiate()
1479 vmci_trans(vsk)->notify_ops->process_negotiate(sk); in vmci_transport_recv_connecting_client_negotiate()
1560 vmci_trans(vsk)->notify_ops->handle_notify_pkt( in vmci_transport_recv_connected()
1579 vmci_trans(vsk)->dg_handle = VMCI_INVALID_HANDLE; in vmci_transport_socket_init()
1580 vmci_trans(vsk)->qp_handle = VMCI_INVALID_HANDLE; in vmci_transport_socket_init()
1581 vmci_trans(vsk)->qpair = NULL; in vmci_transport_socket_init()
1582 vmci_trans(vsk)->produce_size = vmci_trans(vsk)->consume_size = 0; in vmci_transport_socket_init()
1583 vmci_trans(vsk)->detach_sub_id = VMCI_INVALID_ID; in vmci_transport_socket_init()
1584 vmci_trans(vsk)->notify_ops = NULL; in vmci_transport_socket_init()
1585 INIT_LIST_HEAD(&vmci_trans(vsk)->elem); in vmci_transport_socket_init()
1586 vmci_trans(vsk)->sk = &vsk->sk; in vmci_transport_socket_init()
1587 spin_lock_init(&vmci_trans(vsk)->lock); in vmci_transport_socket_init()
1629 if (!vmci_trans(vsk)) in vmci_transport_destruct()
1635 spin_lock_bh(&vmci_trans(vsk)->lock); in vmci_transport_destruct()
1636 vmci_trans(vsk)->sk = NULL; in vmci_transport_destruct()
1637 spin_unlock_bh(&vmci_trans(vsk)->lock); in vmci_transport_destruct()
1639 if (vmci_trans(vsk)->notify_ops) in vmci_transport_destruct()
1640 vmci_trans(vsk)->notify_ops->socket_destruct(vsk); in vmci_transport_destruct()
1643 list_add(&vmci_trans(vsk)->elem, &vmci_transport_cleanup_list); in vmci_transport_destruct()
1654 if (!vmci_handle_is_invalid(vmci_trans(vsk)->dg_handle)) { in vmci_transport_release()
1655 vmci_datagram_destroy_handle(vmci_trans(vsk)->dg_handle); in vmci_transport_release()
1656 vmci_trans(vsk)->dg_handle = VMCI_INVALID_HANDLE; in vmci_transport_release()
1682 &vmci_trans(vsk)->dg_handle); in vmci_transport_dgram_bind()
1686 vmci_trans(vsk)->dg_handle.resource); in vmci_transport_dgram_bind()
1831 return vmci_qpair_peekv(vmci_trans(vsk)->qpair, msg, len, 0); in vmci_transport_stream_dequeue()
1833 return vmci_qpair_dequev(vmci_trans(vsk)->qpair, msg, len, 0); in vmci_transport_stream_dequeue()
1841 return vmci_qpair_enquev(vmci_trans(vsk)->qpair, msg, len, 0); in vmci_transport_stream_enqueue()
1846 return vmci_qpair_consume_buf_ready(vmci_trans(vsk)->qpair); in vmci_transport_stream_has_data()
1851 return vmci_qpair_produce_free_space(vmci_trans(vsk)->qpair); in vmci_transport_stream_has_space()
1856 return vmci_trans(vsk)->consume_size; in vmci_transport_stream_rcvhiwat()
1861 return !vmci_handle_is_invalid(vmci_trans(vsk)->qp_handle); in vmci_transport_stream_is_active()
1869 return vmci_trans(vsk)->notify_ops->poll_in( in vmci_transport_notify_poll_in()
1878 return vmci_trans(vsk)->notify_ops->poll_out( in vmci_transport_notify_poll_out()
1887 return vmci_trans(vsk)->notify_ops->recv_init( in vmci_transport_notify_recv_init()
1897 return vmci_trans(vsk)->notify_ops->recv_pre_block( in vmci_transport_notify_recv_pre_block()
1907 return vmci_trans(vsk)->notify_ops->recv_pre_dequeue( in vmci_transport_notify_recv_pre_dequeue()
1919 return vmci_trans(vsk)->notify_ops->recv_post_dequeue( in vmci_transport_notify_recv_post_dequeue()
1928 return vmci_trans(vsk)->notify_ops->send_init( in vmci_transport_notify_send_init()
1937 return vmci_trans(vsk)->notify_ops->send_pre_block( in vmci_transport_notify_send_pre_block()
1946 return vmci_trans(vsk)->notify_ops->send_pre_enqueue( in vmci_transport_notify_send_pre_enqueue()
1956 return vmci_trans(vsk)->notify_ops->send_post_enqueue( in vmci_transport_notify_send_post_enqueue()
1987 vmci_trans(vsk)->notify_ops = &vmci_transport_notify_pkt_ops; in vmci_transport_proto_to_notify_struct()
1993 vmci_trans(vsk)->notify_ops = in vmci_transport_proto_to_notify_struct()
2002 vmci_trans(vsk)->notify_ops->socket_init(sk); in vmci_transport_proto_to_notify_struct()