Lines Matching refs:pn
76 struct pn_sock *pn = pn_sk(sknode); in pn_find_sock_by_sa() local
77 BUG_ON(!pn->sobject); /* unbound socket */ in pn_find_sock_by_sa()
83 if (pn_port(pn->sobject) != pn_port(obj)) in pn_find_sock_by_sa()
87 if (pn->resource != res) in pn_find_sock_by_sa()
90 if (pn_addr(pn->sobject) && in pn_find_sock_by_sa()
91 pn_addr(pn->sobject) != pn_addr(obj)) in pn_find_sock_by_sa()
159 struct pn_sock *pn = pn_sk(sk); in pn_socket_bind() local
179 if (sk->sk_state != TCP_CLOSE || pn_port(pn->sobject)) { in pn_socket_bind()
190 pn->sobject = pn_object(saddr, pn_port(pn->sobject)); in pn_socket_bind()
191 pn->resource = spn->spn_resource; in pn_socket_bind()
221 struct pn_sock *pn = pn_sk(sk); in pn_socket_connect() local
251 pn->dobject = pn_sockaddr_get_object(spn); in pn_socket_connect()
252 pn->resource = pn_sockaddr_get_resource(spn); in pn_socket_connect()
258 pn->dobject = 0; in pn_socket_connect()
319 struct pn_sock *pn = pn_sk(sk); in pn_socket_getname() local
325 pn->sobject); in pn_socket_getname()
334 struct pep_sock *pn = pep_sk(sk); in pn_socket_poll() local
343 if (!skb_queue_empty_lockless(&pn->ctrlreq_queue)) in pn_socket_poll()
350 atomic_read(&pn->tx_credits)) in pn_socket_poll()
360 struct pn_sock *pn = pn_sk(sk); in pn_socket_ioctl() local
387 handle = pn_object(saddr, pn_port(pn->sobject)); in pn_socket_ioctl()
485 struct pn_sock *pn = pn_sk(sk); in pn_sock_get_port() local
524 pn->sobject = pn_object(pn_addr(pn->sobject), sport); in pn_sock_get_port()
594 struct pn_sock *pn = pn_sk(sk); in pn_sock_seq_show() local
598 sk->sk_protocol, pn->sobject, pn->dobject, in pn_sock_seq_show()
599 pn->resource, sk->sk_state, in pn_sock_seq_show()