| /xnu-11215/bsd/skywalk/channel/ |
| H A D | channel.c | 556 SK_KVA(ch->ch_na), SK_KVA(ch), SK_KVA(kn), in filt_chrw() 940 ch->ch_na->na_name, SK_KVA(ch->ch_na), SK_KVA(ch), SK_KVA(kn), in filt_che_attach() 967 ch->ch_na->na_name, SK_KVA(ch->ch_na), SK_KVA(ch), SK_KVA(kn), in filt_che_detach() 987 ch->ch_na->na_name, SK_KVA(ch->ch_na), SK_KVA(ch), hint, in filt_che_event() 1069 na_reject_channel(ch, ch->ch_na))) { in ch_kqfilter() 1071 ch->ch_pid, ch->ch_flags, CHANF_BITS); in ch_kqfilter() 1108 return ch->ch_na != NULL && (ch->ch_last[t] - ch->ch_first[t] > 1); in ch_is_multiplex() 1183 ch->ch_name, ch->ch_pid); in ch_event() 1198 ch->ch_name, ch->ch_pid); in ch_event() 1775 if (ch != NULL && ch->ch_na != NULL) { in ch_open_special() [all …]
|
| H A D | channel_kern.c | 196 return ch->ch_ctx; in kern_channel_get_context() 507 if (ch != NULL) { in _kern_channel_flowadv_signal() 512 &ch->ch_na->na_tx_rings[ch->ch_first[NR_TX]]); in _kern_channel_flowadv_signal() 515 ch->ch_name, ch->ch_pid); in _kern_channel_flowadv_signal() 519 ch->ch_name, ch->ch_pid); in _kern_channel_flowadv_signal() 581 if (ch != NULL) { in kern_channel_flowadv_report_ce_event() 587 ch->ch_name, ch->ch_pid); in kern_channel_flowadv_report_ce_event() 591 ch->ch_name, ch->ch_pid); in kern_channel_flowadv_report_ce_event() 730 ch_deactivate(ch); in kern_channel_defunct() 751 nx, ch, p); in kern_channel_defunct() [all …]
|
| H A D | channel_syscalls.c | 77 struct kern_channel *ch; in chop_select() local 80 if (ch == NULL) { in chop_select() 110 struct kern_channel *ch; in chop_close() local 114 if (ch != NULL) { in chop_close() 115 ch_dtor(ch); in chop_close() 289 if (ch != NULL) { in __channel_open() 290 ch_dtor(ch); in __channel_open() 291 ch = NULL; in __channel_open() 380 struct kern_channel *ch; in __channel_sync() local 463 qlast = ch->ch_last[t]; in __channel_sync() [all …]
|
| H A D | channel_ring.c | 776 #pragma unused(ch, p) in kr_rxprologue() 835 #pragma unused(ch, p) in kr_rxprologue_nodetach() 892 #pragma unused(ch, p) in kr_rxprologue_upp() 984 #pragma unused(ch) in kr_rxsync_prologue() 1110 #pragma unused(ch) in kr_txfinalize() 1177 #pragma unused(ch, p) in kr_txfinalize_upp() 1277 #pragma unused(ch) in kr_rxfinalize() 1388 #pragma unused(ch, p) in kr_rxsync_finalize() 1546 #pragma unused(ch) in kr_event_sync_finalize() 1706 if (__probable(ch != NULL)) { in kr_internalize_metadata() [all …]
|
| /xnu-11215/SETUP/config/ |
| H A D | main.c | 153 int ch; in get_word() local 157 if (ch != ' ' && ch != '\t') { in get_word() 161 if (ch == EOF) { in get_word() 164 if (ch == '\n') { in get_word() 167 if (ch == '|') { in get_word() 171 *cp++ = ch; in get_word() 176 *cp++ = ch; in get_word() 179 if (ch == EOF) { in get_word() 196 int ch; in get_rest() local 204 *cp++ = ch; in get_rest() [all …]
|
| /xnu-11215/bsd/vfs/ |
| H A D | vfs_utfconv.c | 497 ch += byte; ch <<= 6; in utf8_decodestr() 511 if (ch == 0xFFFE || ch == 0xFFFF) { in utf8_decodestr() 523 ch += byte; ch <<= 6; in utf8_decodestr() 528 ch += byte; ch <<= 6; in utf8_decodestr() 682 ch = byte; ch <<= 6; /* 1st byte */ in utf8_validatestr() 694 ch = byte; ch <<= 6; /* 1st byte */ in utf8_validatestr() 699 ch += byte; ch <<= 6; in utf8_validatestr() 713 if (ch == 0xFFFE || ch == 0xFFFF) { in utf8_validatestr() 719 ch = byte; ch <<= 6; /* 1st byte */ in utf8_validatestr() 724 ch += byte; ch <<= 6; in utf8_validatestr() [all …]
|
| /xnu-11215/bsd/skywalk/nexus/ |
| H A D | nexus_adapter.c | 266 ch->ch_first, ch->ch_last)) != 0) { in na_set_ringid() 274 ch->ch_first[NR_A] = ch->ch_first[NR_F] = 0; in na_set_ringid() 275 ch->ch_last[NR_A] = ch->ch_last[NR_F] = in na_set_ringid() 282 ch->ch_first[NR_A] = ch->ch_last[NR_A] = 0; in na_set_ringid() 283 ch->ch_first[NR_F] = ch->ch_last[NR_F] = 0; in na_set_ringid() 317 ch->ch_first[t] = ch->ch_last[t] = 0; in na_unset_ringid() 338 ch->ch_first[NR_RX], ch->ch_last[NR_RX]); in na_krings_use() 646 ch->ch_name, ch->ch_pid, na->na_name); in na_unbind_channel() 669 pp_purge_upp(ch->ch_pp, ch->ch_pid); in na_unbind_channel() 726 pp_purge_upp(ch->ch_pp, ch->ch_pid); in na_teardown() [all …]
|
| H A D | nexus.c | 1279 ch_retain_locked(ch); in nxprov_advise_connect() 1285 ch->ch_info->cinfo_nx_port, ch, &ch->ch_ctx); in nxprov_advise_connect() 1288 "error %d", SK_KVA(ch), ch->ch_flags, in nxprov_advise_connect() 1290 ch->ch_ctx = NULL; in nxprov_advise_connect() 1313 SK_KVA(ch), ch->ch_flags, CHANF_BITS, SK_KVA(nx), err); in nxprov_advise_connect() 1318 SK_KVA(ch), ch->ch_flags, CHANF_BITS, SK_KVA(nx)); in nxprov_advise_connect() 1331 ch_release_locked(ch); in nxprov_advise_connect() 1372 SK_KVA(ch), ch->ch_flags, CHANF_BITS, SK_KVA(nx)); in nxprov_advise_disconnect() 1375 ch->ch_ctx = NULL; in nxprov_advise_disconnect() 2338 SK_KVA(ch), ch->ch_flags, CHANF_BITS, in nx_init_rings() [all …]
|
| H A D | nexus_adapter.h | 566 na_reject_channel(struct kern_channel *ch, struct nexus_adapter *na) in na_reject_channel() argument 570 ASSERT(ch->ch_na == NULL || ch->ch_na == na); in na_reject_channel() 576 ch->ch_name, ch->ch_pid); in na_reject_channel() 578 ch_deactivate(ch); in na_reject_channel() 612 extern int na_bind_channel(struct nexus_adapter *na, struct kern_channel *ch, 614 extern void na_unbind_channel(struct kern_channel *ch); 674 extern int na_flowadv_report_ce_event(const struct kern_channel *ch,
|
| /xnu-11215/bsd/skywalk/nexus/kpipe/ |
| H A D | nx_kernel_pipe.c | 389 ch->ch_info->cinfo_nx_port, (int)ch->ch_info->cinfo_ch_ring_id); in nx_kpipe_dom_disconnect() 398 na_disconnect(nx, ch); in nx_kpipe_dom_disconnect() 422 qfirst = ch->ch_first[t]; in nx_kpipe_dom_defunct() 423 qlast = ch->ch_last[t]; in nx_kpipe_dom_defunct() 430 na_ch_rings_defunct(ch, p); in nx_kpipe_dom_defunct() 433 qfirst = ch->ch_first[t]; in nx_kpipe_dom_defunct() 434 qlast = ch->ch_last[t]; in nx_kpipe_dom_defunct() 459 na_defunct(nx, ch, ch->ch_na, locked); in nx_kpipe_dom_defunct_finalize() 462 ch->ch_name, ch->ch_pid, SK_KVA(ch), SK_KVA(nx), in nx_kpipe_dom_defunct_finalize() 464 ch->ch_info->cinfo_nx_port, (int)ch->ch_info->cinfo_ch_ring_id); in nx_kpipe_dom_defunct_finalize() [all …]
|
| /xnu-11215/libkern/net/ |
| H A D | inet_pton.c | 76 int saw_digit, octets, ch; in inet_pton4() local 83 while ((ch = *src++) != '\0') { in inet_pton4() 86 if ((pch = strchr(digits, ch)) != NULL) { in inet_pton4() 102 } else if (ch == '.' && saw_digit) { in inet_pton4() 141 int ch, seen_xdigits; in inet_pton6() local 156 while ((ch = *src++) != '\0') { in inet_pton6() 159 if ((pch = strchr((xdigits = xdigits_l), ch)) == NULL) { in inet_pton6() 160 pch = strchr((xdigits = xdigits_u), ch); in inet_pton6() 170 if (ch == ':') { in inet_pton6() 190 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) && in inet_pton6()
|
| /xnu-11215/bsd/skywalk/nexus/flowswitch/ |
| H A D | nx_flowswitch.c | 779 ASSERT(!(ch->ch_flags & CHANF_HOST)); in nx_fsw_dom_connect() 780 ASSERT(!(ch->ch_flags & CHANF_KERNEL)); in nx_fsw_dom_connect() 807 ch->ch_info->cinfo_nx_port, (int)ch->ch_info->cinfo_ch_ring_id); in nx_fsw_dom_disconnect() 809 if (ch->ch_flags & CHANF_KERNEL) { in nx_fsw_dom_disconnect() 810 na_disconnect_spec(nx, ch); in nx_fsw_dom_disconnect() 812 na_disconnect(nx, ch); in nx_fsw_dom_disconnect() 834 na_ch_rings_defunct(ch, p); in nx_fsw_dom_defunct() 857 ASSERT(VPNA(ch->ch_na)->vpna_nx_port == ch->ch_info->cinfo_nx_port); in nx_fsw_dom_defunct_finalize() 862 na_defunct(nx, ch, ch->ch_na, locked); in nx_fsw_dom_defunct_finalize() 866 ch->ch_name, ch->ch_pid, SK_KVA(ch), SK_KVA(nx), in nx_fsw_dom_defunct_finalize() [all …]
|
| /xnu-11215/tools/lldbmacros/ |
| H A D | skywalk.py | 311 ch = kern.GetValueFromAddress(cmd_args[0], 'kern_channel *') 315 bkt = addressof(ch.ch_upp_hash_table[i]) 495 for ch in IterateSTAILQ_HEAD(nx.nx_ch_head, "ch_link"): 497 …ch, ch.ch_refcnt, ch.ch_first[0], ch.ch_last[0], ch.ch_first[1], ch.ch_last[1], ch.ch_mmap.ami_are… 500 for ch in IterateSTAILQ_HEAD(nx.nx_ch_nonxref_head, "ch_link"): 502 …ch, ch.ch_refcnt, ch.ch_first[0], ch.ch_last[0], ch.ch_first[1], ch.ch_last[1], ch.ch_mmap.ami_are…
|
| /xnu-11215/tests/skywalk/ |
| H A D | skt_filter.c | 84 channel_t ch; member 298 put_packet(ch, 0, pkt); in custom_ether_send() 338 if (args->ch != NULL) { in custom_ether_cleanup() 340 args->ch = NULL; in custom_ether_cleanup() 487 channel_t ch; in custom_ether_thread() local 509 SKTC_ASSERT_ERR(ch != NULL); in custom_ether_thread() 510 args->ch = ch; in custom_ether_thread() 705 put_packet(ch, r, pkt); in process_ring() 720 filter_handler(channel_t ch) in filter_handler() argument 763 channel_t ch; in filter_thread() local [all …]
|
| /xnu-11215/osfmk/console/ |
| H A D | video_console.c | 504 if (!ch) { in gc_putchar() 559 if (ch >= '0' && ch <= '9') { in gc_putc_askcmd() 582 switch (ch) { in gc_putc_charsetcmd() 600 switch (ch) { in gc_putc_charsizecmd() 624 switch (ch) { in gc_putc_esc() 697 if (ch == '?') { in gc_putc_getpars() 708 } else if (ch >= '0' && ch <= '9') { in gc_putc_getpars() 723 if (ch < ' ') { in gc_putc_gotpars() 731 switch (ch) { in gc_putc_gotpars() 865 switch (ch) { in gc_putc_normal() [all …]
|
| H A D | serial_general.c | 42 extern void cons_cinput(char ch); /* The BSD routine that gets characters */ 159 console_printbuf_putc(int ch, void * arg) in console_printbuf_putc() argument 164 info->str[info->pos] = (char)ch; in console_printbuf_putc() 176 info->str[info->pos] = (char)ch; in console_printbuf_putc() 183 if (ch == '\n' && info->flags & CONS_PB_WRITE_NEWLINE) { in console_printbuf_putc()
|
| /xnu-11215/bsd/skywalk/nexus/upipe/ |
| H A D | nx_user_pipe.c | 581 ch->ch_info->cinfo_nx_port, (int)ch->ch_info->cinfo_ch_ring_id); in nx_upipe_dom_disconnect() 583 na_disconnect(nx, ch); in nx_upipe_dom_disconnect() 598 struct nexus_adapter *na = ch->ch_na; in nx_upipe_dom_defunct() 601 ring_id_t qfirst = ch->ch_first[NR_TX]; in nx_upipe_dom_defunct() 602 ring_id_t qlast = ch->ch_last[NR_TX]; in nx_upipe_dom_defunct() 606 ASSERT(!(ch->ch_flags & CHANF_KERNEL)); in nx_upipe_dom_defunct() 630 na_ch_rings_defunct(ch, p); in nx_upipe_dom_defunct() 660 ASSERT(!(ch->ch_flags & CHANF_KERNEL)); in nx_upipe_dom_defunct_finalize() 688 ch->ch_name, ch->ch_pid, SK_KVA(ch), SK_KVA(nx), in nx_upipe_dom_defunct_finalize() 690 ch->ch_info->cinfo_nx_port, (int)ch->ch_info->cinfo_ch_ring_id); in nx_upipe_dom_defunct_finalize() [all …]
|
| /xnu-11215/bsd/libkern/ |
| H A D | url_encode.c | 45 isprint(int ch) in isprint() argument 47 return ch >= 0x20 && ch <= 0x7e; in isprint()
|
| /xnu-11215/bsd/skywalk/nexus/netif/ |
| H A D | nx_netif.c | 1228 ch->ch_info->cinfo_nx_port, (int)ch->ch_info->cinfo_ch_ring_id); in nx_netif_dom_disconnect() 1240 na_disconnect(nx, ch); in nx_netif_dom_disconnect() 1282 na_defunct(nx, ch, ch->ch_na, locked); in nx_netif_dom_defunct_finalize() 1296 ch->ch_name, ch->ch_pid, SK_KVA(ch), SK_KVA(nx), in nx_netif_dom_defunct_finalize() 1298 ch->ch_info->cinfo_nx_port, (int)ch->ch_info->cinfo_ch_ring_id); in nx_netif_dom_defunct_finalize() 2928 ch = ch_list[i]; in nx_netif_llw_detach_notify() 2931 SK_ERR("ch 0x%llx pid %d not found", SK_KVA(ch), ch->ch_pid); in nx_netif_llw_detach_notify() 2933 struct kern_channel *, ch, pid_t, ch->ch_pid); in nx_netif_llw_detach_notify() 2934 ch_release(ch); in nx_netif_llw_detach_notify() 2949 ch_release(ch); in nx_netif_llw_detach_notify() [all …]
|
| /xnu-11215/tools/tests/personas/ |
| H A D | persona_spawn.c | 183 char ch; in child_main_loop() local 190 while ((ch = getopt(argc, argv, "vhER")) != -1) { in child_main_loop() 191 switch (ch) { in child_main_loop() 295 char ch; in main() local 339 while ((ch = getopt(argc, argv, "Vg:G:I:u:vwh")) != -1) { in main() 340 switch (ch) { in main() 380 printf("Invalid option: '%c'\n", ch); in main()
|
| /xnu-11215/osfmk/i386/ |
| H A D | pmCPU.c | 137 uint32_t cl = 0, ch = 0; in machine_idle() local 139 rdmsr_carefully(MSR_IA32_CORE_C3_RESIDENCY, &cl, &ch); in machine_idle() 140 c3res = ((uint64_t)ch << 32) | cl; in machine_idle() 141 rdmsr_carefully(MSR_IA32_CORE_C6_RESIDENCY, &cl, &ch); in machine_idle() 142 c6res = ((uint64_t)ch << 32) | cl; in machine_idle() 143 rdmsr_carefully(MSR_IA32_CORE_C7_RESIDENCY, &cl, &ch); in machine_idle() 144 c7res = ((uint64_t)ch << 32) | cl; in machine_idle() 191 cl = ch = 0; in machine_idle() 193 c3res = (((uint64_t)ch << 32) | cl) - c3res; in machine_idle() 195 c6res = (((uint64_t)ch << 32) | cl) - c6res; in machine_idle() [all …]
|
| H A D | Diagnostics.c | 357 uint32_t cl = 0, ch = 0, mpl = 0, mph = 0, apl = 0, aph = 0; in cpu_powerstats() local 369 rdmsr_carefully(MSR_IA32_CORE_C3_RESIDENCY, &cl, &ch); in cpu_powerstats() 370 cdp->cpu_c3res = ((uint64_t)ch << 32) | cl; in cpu_powerstats() 372 rdmsr_carefully(MSR_IA32_CORE_C6_RESIDENCY, &cl, &ch); in cpu_powerstats() 373 cdp->cpu_c6res = ((uint64_t)ch << 32) | cl; in cpu_powerstats() 375 rdmsr_carefully(MSR_IA32_CORE_C7_RESIDENCY, &cl, &ch); in cpu_powerstats() 376 cdp->cpu_c7res = ((uint64_t)ch << 32) | cl; in cpu_powerstats()
|
| /xnu-11215/libsyscall/wrappers/string/ |
| H A D | index.c | 34 _libkernel_strchr(const char *p, int ch) in _libkernel_strchr() argument 38 c = ch; in _libkernel_strchr()
|
| /xnu-11215/SETUP/installfile/ |
| H A D | installfile.c | 48 int ch; in main() local 55 while ((ch = getopt(argc, argv, "cSm:")) != -1) { in main() 56 switch (ch) { in main()
|
| /xnu-11215/tests/ |
| H A D | vm_test_code_signing_helper.c | 24 int ch; in main() local 30 while ((ch = getopt(argc, argv, "i")) != -1) { in main() 31 switch (ch) { in main()
|