Lines Matching defs:pr
78 const struct protosw *pr;
86 for (pr = dp->dom_protosw; pr < dp->dom_protoswNPROTOSW; pr++)
87 if (pr->pr_init)
88 (*pr->pr_init)();
126 const struct protosw *pr;
132 for (pr = dp->dom_protosw; pr < dp->dom_protoswNPROTOSW; pr++)
133 if (pr->pr_type && pr->pr_type == type)
134 return (pr);
142 const struct protosw *pr;
152 for (pr = dp->dom_protosw; pr < dp->dom_protoswNPROTOSW; pr++) {
153 if ((pr->pr_protocol == protocol) && (pr->pr_type == type))
154 return (pr);
156 if (type == SOCK_RAW && pr->pr_type == SOCK_RAW &&
157 pr->pr_protocol == 0 && maybe == NULL)
158 maybe = pr;
199 const struct protosw *pr;
246 for (pr = dp->dom_protosw; pr < dp->dom_protoswNPROTOSW; pr++)
247 if (pr->pr_protocol == protocol && pr->pr_sysctl) {
251 if ((pr->pr_flags & PR_MPSYSCTL) == 0) {
256 error = (*pr->pr_sysctl)(name + 2, namelen - 2,
258 if ((pr->pr_flags & PR_MPSYSCTL) == 0)
270 const struct protosw *pr;
276 for (pr = dp->dom_protosw; pr < dp->dom_protoswNPROTOSW; pr++)
277 if (pr->pr_ctlinput)
278 (*pr->pr_ctlinput)(cmd, sa, 0, NULL);
287 const struct protosw *pr;
291 for (pr = dp->dom_protosw; pr < dp->dom_protoswNPROTOSW; pr++)
292 if (pr->pr_slowtimo)
293 (*pr->pr_slowtimo)();
303 const struct protosw *pr;
307 for (pr = dp->dom_protosw; pr < dp->dom_protoswNPROTOSW; pr++)
308 if (pr->pr_fasttimo)
309 (*pr->pr_fasttimo)();