| /xnu-11417.140.69/bsd/skywalk/nexus/kpipe/ |
| H A D | nx_kernel_pipe.c | 316 struct kern_nexus *nx, struct kern_channel *ch, struct chreq *chr, in nx_kpipe_dom_connect() argument 320 nexus_port_t port = chr->cr_port; in nx_kpipe_dom_connect() 324 (int)port, chr->cr_mode, CHMODE_BITS); in nx_kpipe_dom_connect() 340 if (chr->cr_mode & CHMODE_USER_PACKET_POOL) { in nx_kpipe_dom_connect() 346 if (chr->cr_mode & CHMODE_EVENT_RING) { in nx_kpipe_dom_connect() 352 if (chr->cr_mode & CHMODE_LOW_LATENCY) { in nx_kpipe_dom_connect() 358 chr->cr_ring_set = RING_SET_DEFAULT; in nx_kpipe_dom_connect() 359 chr->cr_real_endpoint = chr->cr_endpoint = CH_ENDPOINT_KERNEL_PIPE; in nx_kpipe_dom_connect() 360 (void) snprintf(chr->cr_name, sizeof(chr->cr_name), "kpipe:%llu:%.*s", in nx_kpipe_dom_connect() 364 err = na_connect(nx, ch, chr, ch0, nxb, p); in nx_kpipe_dom_connect() [all …]
|
| /xnu-11417.140.69/bsd/skywalk/nexus/flowswitch/ |
| H A D | nx_flowswitch.c | 767 struct kern_nexus *nx, struct kern_channel *ch, struct chreq *chr, in nx_fsw_dom_connect() argument 771 nexus_port_t port = chr->cr_port; in nx_fsw_dom_connect() 787 chr->cr_real_endpoint = chr->cr_endpoint = CH_ENDPOINT_FLOW_SWITCH; in nx_fsw_dom_connect() 789 (void) snprintf(chr->cr_name, sizeof(chr->cr_name), in nx_fsw_dom_connect() 791 chr->cr_ring_set = RING_SET_DEFAULT; in nx_fsw_dom_connect() 792 err = na_connect(nx, ch, chr, ch0, nxb, p); in nx_fsw_dom_connect() 884 nx_fsw_na_find_log(const struct chreq *chr, boolean_t create) in nx_fsw_na_find_log() argument 890 chr->cr_name, sk_uuid_unparse(chr->cr_spec_uuid, uuidstr), in nx_fsw_na_find_log() 891 (int)chr->cr_port, chr->cr_mode, CHMODE_BITS, chr->cr_pipe_id, in nx_fsw_na_find_log() 892 (int)chr->cr_ring_id, chr->cr_ring_set, chr->cr_real_endpoint, in nx_fsw_na_find_log() [all …]
|
| H A D | fsw_vp.c | 277 struct chreq *chr, nxspec_cmd_t spec_cmd) in fsw_vp_na_special() argument 295 error = na_bind_channel(na, ch, chr); in fsw_vp_na_special() 337 fsw_vp_na_create(struct kern_nexus *nx, struct chreq *chr, struct proc *p, in fsw_vp_na_create() argument 348 if ((chr->cr_mode & CHMODE_KERNEL) != 0) { in fsw_vp_na_create() 352 if ((chr->cr_mode & CHMODE_USER_PACKET_POOL) == 0) { in fsw_vp_na_create() 364 fsw->fsw_ifp ? if_name(fsw->fsw_ifp) : "??", chr->cr_port, in fsw_vp_na_create() 394 if (chr->cr_mode & CHMODE_LOW_LATENCY) { in fsw_vp_na_create() 398 if (chr->cr_mode & CHMODE_EVENT_RING) { in fsw_vp_na_create() 408 vpna->vpna_nx_port = chr->cr_port; in fsw_vp_na_create()
|
| H A D | fsw.c | 114 struct chreq *chr, struct nxbind *nxb, struct proc *p, in fsw_attach_vp() argument 120 __unsafe_forge_null_terminated(const char *, chr->cr_name)); in fsw_attach_vp() 124 ASSERT(!(chr->cr_mode & CHMODE_CONFIG)); in fsw_attach_vp() 129 err = fsw_port_alloc(fsw, nxb, vpna, chr->cr_port, p, FALSE, FALSE); in fsw_attach_vp() 145 err = fsw_vp_na_create(nx, chr, p, vpna); in fsw_attach_vp() 755 struct chreq chr; in fsw_netif_port_setup() local 759 bzero(&chr, sizeof(chr)); in fsw_netif_port_setup() 760 uuid_copy(chr.cr_spec_uuid, hw_nx->nx_uuid); in fsw_netif_port_setup() 761 chr.cr_ring_id = CHANNEL_RING_ID_ANY; in fsw_netif_port_setup() 762 chr.cr_port = host ? NEXUS_PORT_NET_IF_HOST : NEXUS_PORT_NET_IF_DEV; in fsw_netif_port_setup() [all …]
|
| H A D | fsw_var.h | 92 struct chreq *chr, struct nxbind *nxb, struct proc *p, 122 extern int fsw_vp_na_create(struct kern_nexus *nx, struct chreq *chr,
|
| /xnu-11417.140.69/bsd/skywalk/nexus/upipe/ |
| H A D | nx_user_pipe.c | 515 struct kern_nexus *nx, struct kern_channel *ch, struct chreq *chr, in nx_upipe_dom_connect() argument 519 nexus_port_t port = chr->cr_port; in nx_upipe_dom_connect() 533 if (chr->cr_mode & CHMODE_USER_PACKET_POOL) { in nx_upipe_dom_connect() 539 if (chr->cr_mode & CHMODE_EVENT_RING) { in nx_upipe_dom_connect() 545 if (chr->cr_mode & CHMODE_LOW_LATENCY) { in nx_upipe_dom_connect() 552 chr->cr_real_endpoint = CH_ENDPOINT_USER_PIPE_MASTER; in nx_upipe_dom_connect() 554 chr->cr_real_endpoint = CH_ENDPOINT_USER_PIPE_SLAVE; in nx_upipe_dom_connect() 560 chr->cr_endpoint = chr->cr_real_endpoint; in nx_upipe_dom_connect() 561 chr->cr_ring_set = RING_SET_DEFAULT; in nx_upipe_dom_connect() 562 chr->cr_pipe_id = 0; in nx_upipe_dom_connect() [all …]
|
| /xnu-11417.140.69/osfmk/console/ |
| H A D | serial_general.c | 81 int chr; in serial_keyboard_poll() local 85 chr = _serial_getc(false); /* Get a character if there is one */ in serial_keyboard_poll() 86 if (chr < 0) { /* The serial buffer is empty */ in serial_keyboard_poll() 89 cons_cinput((char)chr); /* Buffer up the character */ in serial_keyboard_poll()
|
| /xnu-11417.140.69/bsd/skywalk/nexus/monitor/ |
| H A D | nx_monitor.c | 354 struct kern_nexus *nx, struct kern_channel *ch, struct chreq *chr, in nx_mon_dom_connect() argument 357 #pragma unused(nxdom_prov, nx, ch, chr, ch0, nxb, p) in nx_mon_dom_connect() 1420 struct chreq *chr, struct kern_channel *ch0, struct nxbind *nxb, in nx_monitor_na_find() argument 1424 boolean_t zcopy = !!(chr->cr_mode & CHMODE_MONITOR_NO_COPY); in nx_monitor_na_find() 1440 chr->cr_name, sk_uuid_unparse(chr->cr_spec_uuid, uuidstr), in nx_monitor_na_find() 1441 (int)chr->cr_port, chr->cr_mode, CHMODE_BITS, in nx_monitor_na_find() 1442 chr->cr_pipe_id, (int)chr->cr_ring_id, chr->cr_ring_set, in nx_monitor_na_find() 1443 chr->cr_real_endpoint, chr->cr_endpoint, SK_KVA(ch0), create, in nx_monitor_na_find() 1444 !(chr->cr_mode & CHMODE_MONITOR) ? " (skipped)" : ""); in nx_monitor_na_find() 1447 if (!(chr->cr_mode & CHMODE_MONITOR)) { in nx_monitor_na_find() [all …]
|
| /xnu-11417.140.69/bsd/skywalk/channel/ |
| H A D | channel.c | 1548 struct chreq chr; in ch_open() local 1692 bzero(&chr, sizeof(chr)); in ch_open() 1693 chr.cr_tx_lowat = init->ci_tx_lowat; in ch_open() 1694 chr.cr_rx_lowat = init->ci_rx_lowat; in ch_open() 1695 chr.cr_port = port; in ch_open() 1696 chr.cr_mode = mode; in ch_open() 1697 chr.cr_ring_id = ring; in ch_open() 1700 ch = ch_connect(nx, &chr, ch0, nxb, p, fd, err); in ch_open() 1728 ch_open_special(struct kern_nexus *nx, struct chreq *chr, boolean_t nonxref, in ch_open_special() argument 1740 ASSERT((chr->cr_mode & CHMODE_USER_PACKET_POOL) == 0); in ch_open_special() [all …]
|
| /xnu-11417.140.69/tools/lldbmacros/ |
| H A D | nvram.py | 57 if ((data_ptr[i] >= 0x20 and data_ptr[i] <= 0x7e) and chr(data_ptr[i]) != '%'): 58 data_buffer += chr(data_ptr[i])
|
| H A D | utils.py | 610 chars += chr(b) if 0x20 <= b < 0x80 else '.'
|
| H A D | log.py | 281 if chr(c) == '\n':
|
| H A D | ioreg.py | 1732 c = chr(unsigned(preoslog_header.magic[i]))
|
| H A D | kcdata.py | 570 self.obj['name'] = BytesToString(u_d[2]).split(chr(0))[0]
|
| /xnu-11417.140.69/bsd/skywalk/nexus/netif/ |
| H A D | nx_netif_vp.c | 329 struct chreq chr; in netif_hwna_setup() local 341 bzero(&chr, sizeof(chr)); in netif_hwna_setup() 342 uuid_copy(chr.cr_spec_uuid, nx->nx_uuid); in netif_hwna_setup() 343 chr.cr_ring_id = 0; in netif_hwna_setup() 344 chr.cr_port = NEXUS_PORT_NET_IF_DEV; in netif_hwna_setup() 345 chr.cr_mode |= CHMODE_CONFIG; in netif_hwna_setup() 348 ch = ch_open_special(nx, &chr, FALSE, &err); in netif_hwna_setup() 955 netif_vp_na_create(struct kern_nexus *nx, struct chreq *chr, in netif_vp_na_create() argument 970 ASSERT((chr->cr_mode & CHMODE_KERNEL) == 0); in netif_vp_na_create() 971 if ((chr->cr_mode & CHMODE_USER_PACKET_POOL) == 0) { in netif_vp_na_create() [all …]
|
| H A D | nx_netif_filter_vp.c | 516 netif_filter_na_create(struct kern_nexus *nx, struct chreq *chr, in netif_filter_na_create() argument 531 ASSERT((chr->cr_mode & CHMODE_KERNEL) == 0); in netif_filter_na_create() 532 ASSERT((chr->cr_mode & CHMODE_FILTER) != 0); in netif_filter_na_create() 533 if ((chr->cr_mode & CHMODE_USER_PACKET_POOL) == 0) { in netif_filter_na_create() 537 if ((chr->cr_mode & CHMODE_EVENT_RING) != 0) { in netif_filter_na_create() 563 if_name(nif->nif_ifp), chr->cr_port); in netif_filter_na_create() 591 na->na_nx_port = chr->cr_port; in netif_filter_na_create()
|
| H A D | nx_netif.c | 1144 struct kern_nexus *nx, struct kern_channel *ch, struct chreq *chr, in nx_netif_dom_connect() argument 1158 switch (chr->cr_port) { in nx_netif_dom_connect() 1160 if (chr->cr_mode & CHMODE_HOST) { in nx_netif_dom_connect() 1167 if (!(chr->cr_mode & CHMODE_HOST)) { in nx_netif_dom_connect() 1172 chr->cr_mode |= CHMODE_HOST; in nx_netif_dom_connect() 1190 chr->cr_ring_set = RING_SET_DEFAULT; in nx_netif_dom_connect() 1191 chr->cr_real_endpoint = chr->cr_endpoint = CH_ENDPOINT_NET_IF; in nx_netif_dom_connect() 1192 (void) snprintf(chr->cr_name, sizeof(chr->cr_name), "netif:%llu:%.*s", in nx_netif_dom_connect() 1197 err = na_connect_spec(nx, ch, chr, p); in nx_netif_dom_connect() 1199 err = na_connect(nx, ch, chr, ch0, nxb, p); in nx_netif_dom_connect() [all …]
|
| H A D | nx_netif_host.c | 328 struct chreq *chr, nxspec_cmd_t spec_cmd) in nx_netif_host_na_special() argument 332 return nx_netif_na_special_common(na, ch, chr, spec_cmd); in nx_netif_host_na_special()
|
| /xnu-11417.140.69/bsd/skywalk/nexus/ |
| H A D | nexus_adapter.c | 438 struct chreq *chr) in na_bind_channel() argument 442 uint32_t ch_mode = chr->cr_mode; in na_bind_channel() 452 err = na_set_ringid(ch, chr->cr_ring_set, chr->cr_ring_id); in na_bind_channel() 2656 na_connect(struct kern_nexus *nx, struct kern_channel *ch, struct chreq *chr, in na_connect() argument 2664 ASSERT(!(chr->cr_mode & CHMODE_KERNEL)); in na_connect() 2670 err = na_find(ch, nx, chr, ch0, nxb, p, &na, TRUE /* create */); in na_connect() 2687 err = na_bind_channel(na, ch, chr); in na_connect() 2717 chr->cr_memsize = memsize; in na_connect() 2718 chr->cr_memoffset = ch->ch_schema_offset; in na_connect() 2723 na->na_name, (int)chr->cr_port, (int)chr->cr_ring_id, SK_KVA(na), in na_connect() [all …]
|
| /xnu-11417.140.69/tools/lldbmacros/core/ |
| H A D | cvalue.py | 415 ch = chr(sbdata.GetUnsignedInt8(serr, i))
|