| /xnu-8796.141.3/bsd/skywalk/nexus/flowswitch/ |
| H A D | nx_flowswitch.c | 713 struct kern_nexus *nx, struct kern_channel *ch, struct chreq *chr, in nx_fsw_dom_connect() argument 717 nexus_port_t port = chr->cr_port; in nx_fsw_dom_connect() 732 chr->cr_real_endpoint = chr->cr_endpoint = CH_ENDPOINT_FLOW_SWITCH; in nx_fsw_dom_connect() 735 ASSERT(!uuid_is_null(chr->cr_spec_uuid)); in nx_fsw_dom_connect() 736 (void) snprintf(chr->cr_name, sizeof(chr->cr_name), in nx_fsw_dom_connect() 738 sk_uuid_unparse(chr->cr_spec_uuid, uuidstr)); in nx_fsw_dom_connect() 739 chr->cr_ring_set = RING_SET_DEFAULT; in nx_fsw_dom_connect() 740 if (chr->cr_mode & CHMODE_HOST) { in nx_fsw_dom_connect() 743 err = na_connect_spec(nx, ch, chr, p); in nx_fsw_dom_connect() 746 if (chr->cr_mode & CHMODE_HOST) { in nx_fsw_dom_connect() [all …]
|
| H A D | fsw_vp.c | 292 struct chreq *chr, nxspec_cmd_t spec_cmd) in fsw_vp_na_special() argument 310 error = na_bind_channel(na, ch, chr); in fsw_vp_na_special() 352 fsw_vp_na_create(struct kern_nexus *nx, struct chreq *chr, in fsw_vp_na_create() argument 362 if ((chr->cr_mode & CHMODE_KERNEL) != 0) { in fsw_vp_na_create() 366 if ((chr->cr_mode & CHMODE_USER_PACKET_POOL) == 0) { in fsw_vp_na_create() 377 (void) strncpy(na->na_name, chr->cr_name, sizeof(na->na_name) - 1); in fsw_vp_na_create() 406 if (chr->cr_mode & CHMODE_LOW_LATENCY) { in fsw_vp_na_create() 410 if (chr->cr_mode & CHMODE_EVENT_RING) { in fsw_vp_na_create() 417 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 119 char *cr_name = chr->cr_name; in fsw_attach_vp() 123 ASSERT(!(chr->cr_mode & CHMODE_CONFIG)); in fsw_attach_vp() 128 err = fsw_port_alloc(fsw, nxb, vpna, chr->cr_port, p, FALSE, FALSE); in fsw_attach_vp() 144 err = fsw_vp_na_create(nx, chr, vpna); in fsw_attach_vp() 663 struct chreq chr; in fsw_netif_port_setup() local 667 bzero(&chr, sizeof(chr)); in fsw_netif_port_setup() 668 uuid_copy(chr.cr_spec_uuid, hw_nx->nx_uuid); in fsw_netif_port_setup() 669 chr.cr_ring_id = CHANNEL_RING_ID_ANY; in fsw_netif_port_setup() 670 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, 124 extern int fsw_vp_na_create(struct kern_nexus *nx, struct chreq *chr,
|
| /xnu-8796.141.3/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-8796.141.3/bsd/skywalk/nexus/upipe/ |
| H A D | nx_user_pipe.c | 514 struct kern_nexus *nx, struct kern_channel *ch, struct chreq *chr, in nx_upipe_dom_connect() argument 518 nexus_port_t port = chr->cr_port; in nx_upipe_dom_connect() 532 if (chr->cr_mode & CHMODE_USER_PACKET_POOL) { in nx_upipe_dom_connect() 538 if (chr->cr_mode & CHMODE_EVENT_RING) { in nx_upipe_dom_connect() 544 if (chr->cr_mode & CHMODE_LOW_LATENCY) { in nx_upipe_dom_connect() 551 chr->cr_real_endpoint = CH_ENDPOINT_USER_PIPE_MASTER; in nx_upipe_dom_connect() 553 chr->cr_real_endpoint = CH_ENDPOINT_USER_PIPE_SLAVE; in nx_upipe_dom_connect() 559 chr->cr_endpoint = chr->cr_real_endpoint; in nx_upipe_dom_connect() 560 chr->cr_ring_set = RING_SET_DEFAULT; in nx_upipe_dom_connect() 561 chr->cr_pipe_id = 0; in nx_upipe_dom_connect() [all …]
|
| /xnu-8796.141.3/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-8796.141.3/bsd/skywalk/channel/ |
| H A D | channel.c | 1531 struct chreq chr; in ch_open() local 1666 bzero(&chr, sizeof(chr)); in ch_open() 1667 chr.cr_tx_lowat = init->ci_tx_lowat; in ch_open() 1668 chr.cr_rx_lowat = init->ci_rx_lowat; in ch_open() 1669 chr.cr_port = port; in ch_open() 1670 chr.cr_mode = mode; in ch_open() 1671 chr.cr_ring_id = ring; in ch_open() 1674 ch = ch_connect(nx, &chr, ch0, nxb, p, fd, err); in ch_open() 1702 ch_open_special(struct kern_nexus *nx, struct chreq *chr, boolean_t nonxref, in ch_open_special() argument 1710 ASSERT((chr->cr_mode & CHMODE_USER_PACKET_POOL) == 0); in ch_open_special() [all …]
|
| /xnu-8796.141.3/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() 1419 struct chreq *chr, struct kern_channel *ch0, struct nxbind *nxb, in nx_monitor_na_find() argument 1423 boolean_t zcopy = !!(chr->cr_mode & CHMODE_MONITOR_NO_COPY); in nx_monitor_na_find() 1439 chr->cr_name, sk_uuid_unparse(chr->cr_spec_uuid, uuidstr), in nx_monitor_na_find() 1440 (int)chr->cr_port, chr->cr_mode, CHMODE_BITS, in nx_monitor_na_find() 1441 chr->cr_pipe_id, (int)chr->cr_ring_id, chr->cr_ring_set, in nx_monitor_na_find() 1442 chr->cr_real_endpoint, chr->cr_endpoint, SK_KVA(ch0), create, in nx_monitor_na_find() 1443 !(chr->cr_mode & CHMODE_MONITOR) ? " (skipped)" : ""); in nx_monitor_na_find() 1446 if (!(chr->cr_mode & CHMODE_MONITOR)) { in nx_monitor_na_find() [all …]
|
| /xnu-8796.141.3/bsd/skywalk/nexus/netif/ |
| H A D | nx_netif_vp.c | 324 struct chreq chr; in netif_hwna_setup() local 336 bzero(&chr, sizeof(chr)); in netif_hwna_setup() 337 uuid_copy(chr.cr_spec_uuid, nx->nx_uuid); in netif_hwna_setup() 338 chr.cr_ring_id = 0; in netif_hwna_setup() 339 chr.cr_port = NEXUS_PORT_NET_IF_DEV; in netif_hwna_setup() 340 chr.cr_mode |= CHMODE_CONFIG; in netif_hwna_setup() 343 ch = ch_open_special(nx, &chr, FALSE, &err); in netif_hwna_setup() 953 netif_vp_na_create(struct kern_nexus *nx, struct chreq *chr, in netif_vp_na_create() argument 968 ASSERT((chr->cr_mode & CHMODE_KERNEL) == 0); in netif_vp_na_create() 969 if ((chr->cr_mode & CHMODE_USER_PACKET_POOL) == 0) { in netif_vp_na_create() [all …]
|
| H A D | nx_netif_filter_vp.c | 515 netif_filter_na_create(struct kern_nexus *nx, struct chreq *chr, in netif_filter_na_create() argument 530 ASSERT((chr->cr_mode & CHMODE_KERNEL) == 0); in netif_filter_na_create() 531 ASSERT((chr->cr_mode & CHMODE_FILTER) != 0); in netif_filter_na_create() 532 if ((chr->cr_mode & CHMODE_USER_PACKET_POOL) == 0) { in netif_filter_na_create() 536 if ((chr->cr_mode & CHMODE_EVENT_RING) != 0) { in netif_filter_na_create() 562 if_name(nif->nif_ifp), chr->cr_port); in netif_filter_na_create() 590 na->na_nx_port = chr->cr_port; in netif_filter_na_create()
|
| H A D | nx_netif.c | 1143 struct kern_nexus *nx, struct kern_channel *ch, struct chreq *chr, in nx_netif_dom_connect() argument 1157 switch (chr->cr_port) { in nx_netif_dom_connect() 1159 if (chr->cr_mode & CHMODE_HOST) { in nx_netif_dom_connect() 1166 if (!(chr->cr_mode & CHMODE_HOST)) { in nx_netif_dom_connect() 1171 chr->cr_mode |= CHMODE_HOST; in nx_netif_dom_connect() 1189 chr->cr_ring_set = RING_SET_DEFAULT; in nx_netif_dom_connect() 1190 chr->cr_real_endpoint = chr->cr_endpoint = CH_ENDPOINT_NET_IF; in nx_netif_dom_connect() 1191 (void) snprintf(chr->cr_name, sizeof(chr->cr_name), "netif:%llu:%.*s", in nx_netif_dom_connect() 1196 err = na_connect_spec(nx, ch, chr, p); in nx_netif_dom_connect() 1198 err = na_connect(nx, ch, chr, ch0, nxb, p); in nx_netif_dom_connect() [all …]
|
| H A D | nx_netif_host.c | 307 struct chreq *chr, nxspec_cmd_t spec_cmd) in nx_netif_host_na_special() argument 311 return nx_netif_na_special_common(na, ch, chr, spec_cmd); in nx_netif_host_na_special()
|
| /xnu-8796.141.3/bsd/skywalk/nexus/ |
| H A D | nexus_adapter.c | 436 struct chreq *chr) in na_bind_channel() argument 440 uint32_t ch_mode = chr->cr_mode; in na_bind_channel() 450 err = na_set_ringid(ch, chr->cr_ring_set, chr->cr_ring_id); in na_bind_channel() 2504 na_connect(struct kern_nexus *nx, struct kern_channel *ch, struct chreq *chr, in na_connect() argument 2512 ASSERT(!(chr->cr_mode & CHMODE_KERNEL)); in na_connect() 2518 err = na_find(ch, nx, chr, ch0, nxb, p, &na, TRUE /* create */); in na_connect() 2535 err = na_bind_channel(na, ch, chr); in na_connect() 2567 chr->cr_memsize = memsize; in na_connect() 2568 chr->cr_memoffset = ch->ch_schema_offset; in na_connect() 2573 na->na_name, (int)chr->cr_port, (int)chr->cr_ring_id, SK_KVA(na), in na_connect() [all …]
|
| /xnu-8796.141.3/tools/lldbmacros/kmemory/ |
| H A D | btlog.py | 8 from builtins import chr
|
| /xnu-8796.141.3/tools/lldbmacros/ |
| H A D | userspace.py | 3 from builtins import chr 491 retval += chr(str_data[i])
|
| H A D | utils.py | 608 chars += chr(b) if 0x20 <= b < 0x80 else '.'
|
| H A D | log.py | 284 if chr(c) == '\n':
|
| H A D | ioreg.py | 3 from builtins import chr 1752 c = chr(unsigned(preoslog_header.magic[i]))
|
| H A D | kcdata.py | 551 self.obj['name'] = BytesToString(u_d[2]).split(chr(0))[0]
|
| H A D | memory.py | 7 from builtins import chr
|
| /xnu-8796.141.3/tools/lldbmacros/core/ |
| H A D | cvalue.py | 429 ch = chr(sbdata.GetUnsignedInt8(serr, i))
|