| /xnu-11215/bsd/netinet6/ |
| H A D | nd6_prproxy.c | 249 NDPR_LOCK(pr); in nd6_prproxy_prelist_setroute() 315 NDPR_LOCK(pr); in nd6_prproxy_prelist_setroute() 383 for (pr = nd_prefix.lh_first; pr; pr = pr->ndpr_next) { in nd6_if_prproxy() 384 NDPR_LOCK(pr); in nd6_if_prproxy() 594 for (pr = nd_prefix.lh_first; pr; pr = pr->ndpr_next) { in nd6_proxy_find_fwdroute() 729 for (pr = nd_prefix.lh_first; pr; pr = pr->ndpr_next) { in nd6_prproxy_prelist_update() 780 for (pr = nd_prefix.lh_first; pr; pr = pr->ndpr_next) { in nd6_prproxy_prelist_update() 839 for (pr = nd_prefix.lh_first; pr; pr = pr->ndpr_next) { in nd6_prproxy_ifaddr() 899 for (pr = nd_prefix.lh_first; pr; pr = pr->ndpr_next) { in nd6_prproxy_ns_output() 1006 for (pr = nd_prefix.lh_first; pr; pr = pr->ndpr_next) { in nd6_prproxy_ns_input() [all …]
|
| H A D | nd6_rtr.c | 718 bzero(&pr, sizeof(pr)); in nd6_ra_input() 779 prfl->pr.ndpr_raf = pr.ndpr_raf; in nd6_ra_input() 789 prfl->pr.ndpr_ifp = pr.ndpr_ifp; in nd6_ra_input() 1391 for (pr = nd_prefix.lh_first; pr; pr = pr->ndpr_next) { in defrtrlist_del() 3233 pr = pr->ndpr_next; in pfxlist_onlink_check() 3279 pr = pr->ndpr_next; in pfxlist_onlink_check() 3293 pr = pr->ndpr_next; in pfxlist_onlink_check() 3297 for (pr = nd_prefix.lh_first; pr; pr = pr->ndpr_next) { in pfxlist_onlink_check() 3333 pr = pr->ndpr_next; in pfxlist_onlink_check() 3379 pr = pr->ndpr_next; in pfxlist_onlink_check() [all …]
|
| H A D | nd6.c | 1416 NDPR_LOCK(pr); in nd6_handle_duplicated_ip6_addr() 1647 pr = pr->ndpr_next; in nd6_service_expired_prefix() 1658 pr = pr->ndpr_next; in nd6_service_expired_prefix() 1667 if (pr->ndpr_expire != 0 && pr->ndpr_expire < timenow) { in nd6_service_expired_prefix() 1679 pr->ndpr_ifp, &pr->ndpr_prefix.sin6_addr, in nd6_service_expired_prefix() 1694 pr = pr->ndpr_next; in nd6_service_expired_prefix() 2103 for (pr = nd_prefix.lh_first; pr; pr = npr) { in nd6_purge_interface_prefixes() 2534 for (pr = nd_prefix.lh_first; pr; pr = pr->ndpr_next) { in nd6_is_new_addr_neighbor() 3197 for (pr = nd_prefix.lh_first; pr; pr = next) { in nd6_ioctl() 4773 &pr->ndpr_prefix.sin6_addr, pr->ndpr_ifp) != 0) { [all …]
|
| H A D | in6.c | 798 if (pr) { in in6ctl_llstop() 800 NDPR_LOCK(pr); in in6ctl_llstop() 802 NDPR_UNLOCK(pr); in in6ctl_llstop() 1102 for (pr = nd_prefix.lh_first; pr; pr = next) { in in6ctl_clat46start() 1105 NDPR_LOCK(pr); in in6ctl_clat46start() 1146 NDPR_LOCK(pr); in in6ctl_clat46start() 1822 NDPR_LOCK(pr); in in6ctl_aifaddr() 1867 NDPR_REMREF(pr); in in6ctl_aifaddr() 1913 NDPR_LOCK(pr); in in6ctl_difaddr() 2648 NDPR_LOCK(pr); in in6_update_ifa() [all …]
|
| H A D | in6_proto.c | 349 struct ip6protosw *pr; in in6_dinit() local 404 for (i = 0, pr = &inet6sw[0]; i < in6_proto_count; i++, pr++) { in in6_dinit() 405 net_add_proto((struct protosw *)pr, dp, 0); in in6_dinit() 407 for (i = 0, pr = &inet6sw[0]; i < in6_proto_count; i++, pr++) { in in6_dinit() 408 net_init_proto((struct protosw *)pr, dp); in in6_dinit()
|
| H A D | ip6_input.c | 358 struct protosw *__single pr; in ip6_init() local 388 pr = pffindproto_locked(PF_INET6, IPPROTO_RAW, SOCK_RAW); in ip6_init() 389 if (pr == NULL) { in ip6_init() 397 ip6_protox[i] = (struct ip6protosw *)pr; in ip6_init() 404 TAILQ_FOREACH(pr, &dp->dom_protosw, pr_entry) { in ip6_init() 405 VERIFY(pr->pr_domain == dp); in ip6_init() 406 if (pr->pr_protocol != 0 && pr->pr_protocol != IPPROTO_RAW) { in ip6_init() 408 if (pr->pr_protocol < IPPROTO_MAX) { in ip6_init() 409 ip6_protox[pr->pr_protocol] = in ip6_init() 410 (struct ip6protosw *)pr; in ip6_init()
|
| H A D | in6_ifattach.c | 473 struct nd_prefix *__single pr; in in6_ifattach_linklocal() local 533 if ((pr = nd6_prefix_lookup(&pr0, ND6_PREFIX_EXPIRY_UNSPEC)) == NULL) { in in6_ifattach_linklocal() 534 if ((error = nd6_prelist_add(&pr0, NULL, &pr, TRUE)) != 0) { in in6_ifattach_linklocal() 545 if (pr != NULL) { in in6_ifattach_linklocal() 546 NDPR_REMREF(pr); in in6_ifattach_linklocal()
|
| /xnu-11215/tools/lldbmacros/ |
| H A D | recount.py | 459 for pr in prs: 467 pset = pr.processor_set 473 unsigned(pr), pr.cpu_id, cluster_kind) 502 def GetRecountProcessorState(pr): argument 506 pr.pr_recount.rpr_snap, 516 cpu_id = unsigned(pr.cpu_id) 521 pr.last_dispatch) 587 max_dispatch = max([unsigned(pr.last_dispatch) for pr in prs]) 588 for pr in prs: 590 pr, cur_time=max_dispatch, O=O)) [all …]
|
| H A D | net.py | 2042 while pr != 0: 2044 …out_string += "\ttype " + str(int(pr.pr_type)) + ", protocol " + str(int(pr.pr_protocol)) + ", pro… 2046 if (pr.pr_input): 2049 if (pr.pr_output): 2058 if (pr.pr_init): 2061 if (pr.pr_drain): 2064 if (pr.pr_sysctl): 2067 if (pr.pr_lock): 2070 if (pr.pr_unlock): 2076 if (pr.pr_old): [all …]
|
| H A D | xnu.py | 771 pr = cProfile.Profile() 772 pr.enable() 776 pr.disable() 777 pr.dump_stats(save_path) 784 ps = pstats.Stats(pr, stream=s)
|
| /xnu-11215/bsd/net/ |
| H A D | pf_ioctl.c | 2863 pr->anchor[sizeof(pr->anchor) - 1] = '\0'; in pfioctl_ioc_rule() 2864 pr->anchor_call[sizeof(pr->anchor_call) - 1] = '\0'; in pfioctl_ioc_rule() 2960 pr->anchor[sizeof(pr->anchor) - 1] = '\0'; in pfioctl_ioc_rule() 2961 pr->anchor_call[sizeof(pr->anchor_call) - 1] = '\0'; in pfioctl_ioc_rule() 2987 pr->anchor[sizeof(pr->anchor) - 1] = '\0'; in pfioctl_ioc_rule() 2988 pr->anchor_call[sizeof(pr->anchor_call) - 1] = '\0'; in pfioctl_ioc_rule() 3252 pr->anchor[sizeof(pr->anchor) - 1] = '\0'; in pfioctl_ioc_rule() 3373 pr->anchor[sizeof(pr->anchor) - 1] = '\0'; in pfioctl_ioc_rule() 4093 pr->path[sizeof(pr->path) - 1] = '\0'; in pfioctl_ioc_ruleset() 4094 pr->name[sizeof(pr->name) - 1] = '\0'; in pfioctl_ioc_ruleset() [all …]
|
| H A D | pf_ruleset.c | 537 struct pfioc_rule *pr) in pf_anchor_copyout() argument 539 pr->anchor_call[0] = 0; in pf_anchor_copyout() 544 strlcpy(pr->anchor_call, "/", sizeof(pr->anchor_call)); in pf_anchor_copyout() 545 strbufcat(pr->anchor_call, r->anchor->path); in pf_anchor_copyout() 561 strlcat(pr->anchor_call, "../", in pf_anchor_copyout() 562 sizeof(pr->anchor_call)); in pf_anchor_copyout() 571 strlcat(pr->anchor_call, in pf_anchor_copyout() 573 strbuflen(a, MAXPATHLEN) + 1 : 0)), sizeof(pr->anchor_call)); in pf_anchor_copyout() 578 strlcat(pr->anchor_call, __unsafe_null_terminated_from_indexable(pr->anchor_call[0] ? "/*" : "*"), in pf_anchor_copyout() 579 sizeof(pr->anchor_call)); in pf_anchor_copyout()
|
| H A D | ndrv.c | 1148 struct protosw *pr; in ndrv_dominit() local 1156 for (i = 0, pr = &ndrvsw[0]; i < ndrv_proto_count; i++, pr++) { in ndrv_dominit() 1157 net_add_proto(pr, dp, 1); in ndrv_dominit()
|
| /xnu-11215/bsd/kern/ |
| H A D | uipc_proto.c | 113 struct protosw *pr; in pre_unp_init() local 121 for (i = 0, pr = &localsw[0]; i < local_proto_count; i++, pr++) { in pre_unp_init() 122 net_add_proto(pr, dp, 1); in pre_unp_init()
|
| H A D | uipc_socket.c | 3088 struct protosw *pr = so->so_proto; in soreceive_ctl() local 3226 struct protosw *pr = so->so_proto; in so_should_wait() local 3304 struct protosw *pr = so->so_proto; in soreceive() local 3373 pr->pr_usrreqs->pru_preconnect) { in soreceive() 3469 (*pr->pr_usrreqs->pru_rcvd)(so, 0); in soreceive() 3594 (*pr->pr_usrreqs->pru_rcvd)(so, flags); in soreceive() 4087 struct protosw *pr = so->so_proto; in soreceive_m_list() local 4365 (*pr->pr_usrreqs->pru_rcvd)(so, flags); in soreceive_m_list() 4466 struct protosw *pr = so->so_proto; in soshutdownlock_final() local 4549 struct protosw *pr = so->so_proto; in sorflush() local [all …]
|
| H A D | kpi_socketfilter.c | 1336 struct protosw *__single pr; in sflt_register_common() local 1346 pr = pffindproto(domain, protocol, type); in sflt_register_common() 1347 if (pr == NULL) { in sflt_register_common() 1391 TAILQ_INSERT_TAIL(&pr->pr_filter_head, sock_filt, in sflt_register_common() 1393 sock_filt->sf_proto = pr; in sflt_register_common()
|
| H A D | kern_proc.c | 5095 proc_ro_t pr; in proc_ro_alloc() local 5111 zalloc_ro_update_elem(ZONE_ID_PROC_RO, pr, &pr_local); in proc_ro_alloc() 5114 return pr; in proc_ro_alloc() 5122 if (pr->pr_task != TASK_NULL) { in proc_ro_ref_task() 5126 pr_local = *pr; in proc_ro_ref_task() 5130 zalloc_ro_update_elem(ZONE_ID_PROC_RO, pr, &pr_local); in proc_ro_ref_task() 5132 return pr; in proc_ro_ref_task() 5136 proc_ro_erase_task(proc_ro_t pr) in proc_ro_erase_task() argument 5139 pr, pr_task, ZRO_ATOMIC_XCHG_LONG, TASK_NULL); in proc_ro_erase_task() 5164 proc_ro_task(proc_ro_t pr) in proc_ro_task() argument [all …]
|
| H A D | kern_exec.c | 798 uint32_t pr = 0; in exec_fat_imgact() local 801 for (pr = 0; pr < NBINPREFS; pr++) { in exec_fat_imgact() 802 cpu_type_t pref = psa->psa_binprefs[pr]; in exec_fat_imgact() 803 cpu_type_t subpref = psa->psa_subcpuprefs[pr]; in exec_fat_imgact() 1271 int pr = 0; in exec_mach_imgact() local 1272 for (pr = 0; pr < NBINPREFS; pr++) { in exec_mach_imgact() 1273 cpu_type_t pref = psa->psa_binprefs[pr]; in exec_mach_imgact() 1274 cpu_subtype_t subpref = psa->psa_subcpuprefs[pr]; in exec_mach_imgact()
|
| H A D | kern_control.c | 272 struct protosw *pr; in kern_control_init() local 279 for (i = 0, pr = &kctlsw[0]; i < kctl_proto_count; i++, pr++) { in kern_control_init() 280 net_add_proto(pr, dp, 1); in kern_control_init()
|
| /xnu-11215/bsd/netinet/ |
| H A D | in_proto.c | 289 struct protosw *pr; in in_dinit() local 308 for (i = 0, pr = &inetsw[0]; i < in_proto_count; i++, pr++) { in in_dinit() 309 net_add_proto(pr, dp, 0); in in_dinit() 311 for (i = 0, pr = &inetsw[0]; i < in_proto_count; i++, pr++) { in in_dinit() 312 net_init_proto(pr, dp); in in_dinit()
|
| H A D | ip_input.c | 477 struct protosw *__single pr; in ip_init() local 500 pr = pffindproto_locked(PF_INET, IPPROTO_RAW, SOCK_RAW); in ip_init() 501 if (pr == NULL) { in ip_init() 509 ip_protox[i] = pr; in ip_init() 516 TAILQ_FOREACH(pr, &dp->dom_protosw, pr_entry) { in ip_init() 517 VERIFY(pr->pr_domain == dp); in ip_init() 518 if (pr->pr_protocol != 0 && pr->pr_protocol != IPPROTO_RAW) { in ip_init() 520 if (pr->pr_protocol < IPPROTO_MAX) { in ip_init() 521 ip_protox[pr->pr_protocol] = pr; in ip_init()
|
| /xnu-11215/bsd/sys/ |
| H A D | proc_ro.h | 102 extern proc_ro_t proc_ro_ref_task(proc_ro_t pr, struct task *t, task_ro_data_t t_data); 103 extern void proc_ro_erase_task(proc_ro_t pr); 108 extern struct task *proc_ro_task(proc_ro_t pr) __pure2;
|
| /xnu-11215/osfmk/kern/ |
| H A D | recount.c | 1190 recount_processor_idle(struct recount_processor *pr, struct recount_snap *snap) in recount_processor_idle() argument 1193 &pr->rpr_state_last_abs_time, relaxed); in recount_processor_idle() 1197 os_atomic_store_wide(&pr->rpr_state_last_abs_time, new_state_stamp, in recount_processor_idle() 1221 recount_processor_run(struct recount_processor *pr, struct recount_snap *snap) in recount_processor_run() argument 1223 uint64_t state = os_atomic_load_wide(&pr->rpr_state_last_abs_time, relaxed); in recount_processor_run() 1227 pr->rpr_idle_time_mach += snap->rsn_time_mach - _state_time(state); in recount_processor_run() 1228 os_atomic_store_wide(&pr->rpr_state_last_abs_time, new_state_stamp, in recount_processor_run() 1241 recount_processor_usage(struct recount_processor *pr, in recount_processor_usage() argument 1244 recount_sum(&recount_processor_plan, &pr->rpr_active, usage); in recount_processor_usage() 1247 uint64_t idle_time = pr->rpr_idle_time_mach; in recount_processor_usage() [all …]
|
| H A D | recount.h | 367 void recount_processor_usage(struct recount_processor *pr, 432 void recount_processor_idle(struct recount_processor *pr, 434 void recount_processor_run(struct recount_processor *pr,
|
| /xnu-11215/bsd/netkey/ |
| H A D | keysock.c | 579 struct protosw *pr; in key_dinit() local 587 for (i = 0, pr = &keysw[0]; i < key_proto_count; i++, pr++) { in key_dinit() 588 net_add_proto(pr, dp, 1); in key_dinit()
|