Lines Matching refs:so_proto

186 		if (head->so_proto->pr_getlock != NULL) {
196 if (head->so_proto->pr_getlock != NULL) {
263 if (head->so_proto->pr_getlock != NULL)
264 mutex_held = (*head->so_proto->pr_getlock)(head, 0);
266 mutex_held = head->so_proto->pr_domain->dom_mtx;
292 so = soalloc(1, head->so_proto->pr_domain->dom_family,
297 if (head->so_proto == NULL) {
306 so->so_proto = head->so_proto;
354 if (head->so_proto->pr_unlock)
356 if (((*so->so_proto->pr_usrreqs->pru_attach)(so, 0, NULL) != 0) ||
359 if (head->so_proto->pr_unlock)
363 if (head->so_proto->pr_unlock) {
376 so->so_proto->pr_domain->dom_refs++;
470 if (so->so_proto->pr_getlock != NULL)
471 mutex_held = (*so->so_proto->pr_getlock)(so, 0);
473 mutex_held = so->so_proto->pr_domain->dom_mtx;
522 if (so->so_proto->pr_getlock != NULL)
523 mutex_held = (*so->so_proto->pr_getlock)(so, 0);
525 mutex_held = so->so_proto->pr_domain->dom_mtx;
816 if (sb->sb_so->so_proto->pr_getlock != NULL)
817 mutex_held = (*sb->sb_so->so_proto->pr_getlock)(sb->sb_so, 0);
819 mutex_held = sb->sb_so->so_proto->pr_domain->dom_mtx;
1712 return (so->so_proto->pr_flags & PR_ATOMIC);
1732 (so->so_proto->pr_flags & PR_CONNREQUIRED) == 0)) ||
1821 if (so->so_proto->pr_getlock != NULL)
1822 mutex_held = (*so->so_proto->pr_getlock)(so, 0);
1824 mutex_held = so->so_proto->pr_domain->dom_mtx;
1895 if (so->so_proto) {
1896 xso->xso_protocol = so->so_proto->pr_protocol;
1897 xso->xso_family = so->so_proto->pr_domain->dom_family;
1926 if (so->so_proto) {
1927 xso->xso_protocol = so->so_proto->pr_protocol;
1928 xso->xso_family = so->so_proto->pr_domain->dom_family;