Lines Matching refs:pr

109 init_proto(struct protosw *pr)
111 TAILQ_INIT(&pr->pr_filter_head);
112 if (pr->pr_init)
113 (*pr->pr_init)();
116 pr->pr_init = 0;
122 struct protosw *pr;
134 for (pr = dp->dom_protosw; pr; pr = pr->pr_next) {
135 if (pr->pr_usrreqs == 0)
138 (int)(pr - dp->dom_protosw));
144 if (pr->pr_unused != NULL) {
146 dp->dom_name, pr->pr_protocol);
150 init_proto(pr);
382 register struct protosw *pr;
391 for (pr = dp->dom_protosw; pr; pr = pr->pr_next)
392 if (pr->pr_type && pr->pr_type == type) {
394 return (pr);
415 register struct protosw *pr;
418 pr = pffindproto_locked(family, protocol, type);
420 return (pr);
427 register struct protosw *pr;
436 for (pr = dp->dom_protosw; pr; pr = pr->pr_next) {
437 if ((pr->pr_protocol == protocol) && (pr->pr_type == type))
438 return (pr);
440 if (type == SOCK_RAW && pr->pr_type == SOCK_RAW &&
441 pr->pr_protocol == 0 && maybe == (struct protosw *)0)
442 maybe = pr;
451 register struct protosw *pr;
459 for (pr = dp->dom_protosw; pr; pr = pr->pr_next) {
460 if (pr->pr_protocol == protocol) {
461 return (pr);
470 register struct protosw *pr;
476 pr = pffindprotonotype_locked(family, protocol, 0);
478 return (pr);
486 register struct protosw *pr;
509 for (pr = dp->dom_protosw; pr; pr = pr->pr_next)
510 if (pr->pr_protocol == protocol && pr->pr_sysctl) {
511 error = (*pr->pr_sysctl)(name + 2, namelen - 2,
530 struct protosw *pr;
538 for (pr = dp->dom_protosw; pr; pr = pr->pr_next)
539 if (pr->pr_ctlinput)
540 (*pr->pr_ctlinput)(cmd, sa, ctlparam);
548 register struct protosw *pr;
560 for (pr = dp->dom_protosw; pr; pr = pr->pr_next) {
561 if (pr->pr_slowtimo)
562 (*pr->pr_slowtimo)();
563 if ((do_reclaim || (pr->pr_flags & PR_AGGDRAIN)) &&
564 pr->pr_drain)
565 (*pr->pr_drain)();