| /xnu-8019.80.24/bsd/skywalk/nexus/flowswitch/ |
| H A D | nx_flowswitch.c | 715 struct kern_nexus *nx, struct kern_channel *ch, struct chreq *chr, in nx_fsw_dom_connect() argument 719 nexus_port_t port = chr->cr_port; in nx_fsw_dom_connect() 734 if (chr->cr_mode & CHMODE_EVENT_RING) { in nx_fsw_dom_connect() 740 chr->cr_real_endpoint = chr->cr_endpoint = CH_ENDPOINT_FLOW_SWITCH; in nx_fsw_dom_connect() 743 ASSERT(!uuid_is_null(chr->cr_spec_uuid)); in nx_fsw_dom_connect() 744 (void) snprintf(chr->cr_name, sizeof(chr->cr_name), in nx_fsw_dom_connect() 746 sk_uuid_unparse(chr->cr_spec_uuid, uuidstr)); in nx_fsw_dom_connect() 747 chr->cr_ring_set = RING_SET_DEFAULT; in nx_fsw_dom_connect() 748 if (chr->cr_mode & CHMODE_HOST) { in nx_fsw_dom_connect() 751 err = na_connect_spec(nx, ch, chr, p); in nx_fsw_dom_connect() [all …]
|
| H A D | fsw_vp.c | 284 struct chreq *chr, nxspec_cmd_t spec_cmd) in fsw_vp_na_special() argument 302 error = na_bind_channel(na, ch, chr); in fsw_vp_na_special() 344 fsw_vp_na_create(struct kern_nexus *nx, struct chreq *chr, in fsw_vp_na_create() argument 354 if ((chr->cr_mode & CHMODE_KERNEL) != 0) { in fsw_vp_na_create() 358 if ((chr->cr_mode & CHMODE_USER_PACKET_POOL) == 0) { in fsw_vp_na_create() 369 (void) strncpy(na->na_name, chr->cr_name, sizeof(na->na_name) - 1); in fsw_vp_na_create() 398 if (chr->cr_mode & CHMODE_LOW_LATENCY) { in fsw_vp_na_create() 402 vpna->vpna_nx_port = chr->cr_port; in fsw_vp_na_create()
|
| H A D | fsw.c | 104 struct chreq *chr, struct nxbind *nxb, struct proc *p, in fsw_attach_vp() argument 109 char *cr_name = chr->cr_name; in fsw_attach_vp() 113 ASSERT(!(chr->cr_mode & CHMODE_CONFIG)); in fsw_attach_vp() 118 err = fsw_port_alloc(fsw, nxb, vpna, chr->cr_port, p, FALSE, FALSE); in fsw_attach_vp() 134 err = fsw_vp_na_create(nx, chr, vpna); in fsw_attach_vp() 600 struct chreq chr; in fsw_netif_port_setup() local 604 bzero(&chr, sizeof(chr)); in fsw_netif_port_setup() 605 uuid_copy(chr.cr_spec_uuid, hw_nx->nx_uuid); in fsw_netif_port_setup() 606 chr.cr_ring_id = CHANNEL_RING_ID_ANY; in fsw_netif_port_setup() 607 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-8019.80.24/bsd/skywalk/nexus/kpipe/ |
| H A D | nx_kernel_pipe.c | 312 struct kern_nexus *nx, struct kern_channel *ch, struct chreq *chr, in nx_kpipe_dom_connect() argument 316 nexus_port_t port = chr->cr_port; in nx_kpipe_dom_connect() 320 (int)port, chr->cr_mode, CHMODE_BITS); in nx_kpipe_dom_connect() 336 if (chr->cr_mode & CHMODE_USER_PACKET_POOL) { in nx_kpipe_dom_connect() 342 if (chr->cr_mode & CHMODE_EVENT_RING) { in nx_kpipe_dom_connect() 348 if (chr->cr_mode & CHMODE_LOW_LATENCY) { in nx_kpipe_dom_connect() 354 chr->cr_ring_set = RING_SET_DEFAULT; in nx_kpipe_dom_connect() 355 chr->cr_real_endpoint = chr->cr_endpoint = CH_ENDPOINT_KERNEL_PIPE; in nx_kpipe_dom_connect() 356 (void) snprintf(chr->cr_name, sizeof(chr->cr_name), "kpipe:%llu:%.*s", in nx_kpipe_dom_connect() 360 err = na_connect(nx, ch, chr, ch0, nxb, p); in nx_kpipe_dom_connect() [all …]
|
| /xnu-8019.80.24/bsd/skywalk/channel/ |
| H A D | channel.c | 1542 struct chreq chr; in ch_open() local 1677 bzero(&chr, sizeof(chr)); in ch_open() 1678 chr.cr_tx_lowat = init->ci_tx_lowat; in ch_open() 1679 chr.cr_rx_lowat = init->ci_rx_lowat; in ch_open() 1680 chr.cr_port = port; in ch_open() 1681 chr.cr_mode = mode; in ch_open() 1682 chr.cr_ring_id = ring; in ch_open() 1685 ch = ch_connect(nx, &chr, ch0, nxb, p, fd, err); in ch_open() 1713 ch_open_special(struct kern_nexus *nx, struct chreq *chr, boolean_t nonxref, in ch_open_special() argument 1721 ASSERT((chr->cr_mode & CHMODE_USER_PACKET_POOL) == 0); in ch_open_special() [all …]
|
| /xnu-8019.80.24/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-8019.80.24/bsd/skywalk/nexus/upipe/ |
| H A D | nx_user_pipe.c | 528 struct kern_nexus *nx, struct kern_channel *ch, struct chreq *chr, in nx_upipe_dom_connect() argument 532 nexus_port_t port = chr->cr_port; in nx_upipe_dom_connect() 546 if (chr->cr_mode & CHMODE_USER_PACKET_POOL) { in nx_upipe_dom_connect() 552 if (chr->cr_mode & CHMODE_EVENT_RING) { in nx_upipe_dom_connect() 558 if (chr->cr_mode & CHMODE_LOW_LATENCY) { in nx_upipe_dom_connect() 565 chr->cr_real_endpoint = CH_ENDPOINT_USER_PIPE_MASTER; in nx_upipe_dom_connect() 567 chr->cr_real_endpoint = CH_ENDPOINT_USER_PIPE_SLAVE; in nx_upipe_dom_connect() 573 chr->cr_endpoint = chr->cr_real_endpoint; in nx_upipe_dom_connect() 574 chr->cr_ring_set = RING_SET_DEFAULT; in nx_upipe_dom_connect() 575 chr->cr_pipe_id = 0; in nx_upipe_dom_connect() [all …]
|
| /xnu-8019.80.24/bsd/skywalk/nexus/monitor/ |
| H A D | nx_monitor.c | 360 struct kern_nexus *nx, struct kern_channel *ch, struct chreq *chr, in nx_mon_dom_connect() argument 363 #pragma unused(nxdom_prov, nx, ch, chr, ch0, nxb, p) in nx_mon_dom_connect() 1425 struct chreq *chr, struct kern_channel *ch0, struct nxbind *nxb, in nx_monitor_na_find() argument 1429 boolean_t zcopy = !!(chr->cr_mode & CHMODE_MONITOR_NO_COPY); in nx_monitor_na_find() 1445 chr->cr_name, sk_uuid_unparse(chr->cr_spec_uuid, uuidstr), in nx_monitor_na_find() 1446 (int)chr->cr_port, chr->cr_mode, CHMODE_BITS, in nx_monitor_na_find() 1447 chr->cr_pipe_id, (int)chr->cr_ring_id, chr->cr_ring_set, in nx_monitor_na_find() 1448 chr->cr_real_endpoint, chr->cr_endpoint, SK_KVA(ch0), create, in nx_monitor_na_find() 1449 !(chr->cr_mode & CHMODE_MONITOR) ? " (skipped)" : ""); in nx_monitor_na_find() 1452 if (!(chr->cr_mode & CHMODE_MONITOR)) { in nx_monitor_na_find() [all …]
|
| /xnu-8019.80.24/bsd/skywalk/nexus/netif/ |
| H A D | nx_netif_vp.c | 322 struct chreq chr; in netif_hwna_setup() local 334 bzero(&chr, sizeof(chr)); in netif_hwna_setup() 335 uuid_copy(chr.cr_spec_uuid, nx->nx_uuid); in netif_hwna_setup() 336 chr.cr_ring_id = 0; in netif_hwna_setup() 337 chr.cr_port = NEXUS_PORT_NET_IF_DEV; in netif_hwna_setup() 338 chr.cr_mode |= CHMODE_CONFIG; in netif_hwna_setup() 341 ch = ch_open_special(nx, &chr, FALSE, &err); in netif_hwna_setup() 943 netif_vp_na_create(struct kern_nexus *nx, struct chreq *chr, in netif_vp_na_create() argument 958 ASSERT((chr->cr_mode & CHMODE_KERNEL) == 0); in netif_vp_na_create() 959 if ((chr->cr_mode & CHMODE_USER_PACKET_POOL) == 0) { in netif_vp_na_create() [all …]
|
| H A D | nx_netif.c | 1119 struct kern_nexus *nx, struct kern_channel *ch, struct chreq *chr, in nx_netif_dom_connect() argument 1133 switch (chr->cr_port) { in nx_netif_dom_connect() 1135 if (chr->cr_mode & CHMODE_HOST) { in nx_netif_dom_connect() 1142 if (!(chr->cr_mode & CHMODE_HOST)) { in nx_netif_dom_connect() 1147 chr->cr_mode |= CHMODE_HOST; in nx_netif_dom_connect() 1165 chr->cr_ring_set = RING_SET_DEFAULT; in nx_netif_dom_connect() 1166 chr->cr_real_endpoint = chr->cr_endpoint = CH_ENDPOINT_NET_IF; in nx_netif_dom_connect() 1167 (void) snprintf(chr->cr_name, sizeof(chr->cr_name), "netif:%llu:%.*s", in nx_netif_dom_connect() 1172 err = na_connect_spec(nx, ch, chr, p); in nx_netif_dom_connect() 1174 err = na_connect(nx, ch, chr, ch0, nxb, p); in nx_netif_dom_connect() [all …]
|
| H A D | nx_netif_filter_vp.c | 517 netif_filter_na_create(struct kern_nexus *nx, struct chreq *chr, in netif_filter_na_create() argument 532 ASSERT((chr->cr_mode & CHMODE_KERNEL) == 0); in netif_filter_na_create() 533 ASSERT((chr->cr_mode & CHMODE_FILTER) != 0); in netif_filter_na_create() 534 if ((chr->cr_mode & CHMODE_USER_PACKET_POOL) == 0) { in netif_filter_na_create() 538 if ((chr->cr_mode & CHMODE_EVENT_RING) != 0) { in netif_filter_na_create() 564 if_name(nif->nif_ifp), chr->cr_port); in netif_filter_na_create() 592 na->na_nx_port = chr->cr_port; in netif_filter_na_create()
|
| H A D | nx_netif_host.c | 263 struct chreq *chr, nxspec_cmd_t spec_cmd) in nx_netif_host_na_special() argument 267 return nx_netif_na_special_common(na, ch, chr, spec_cmd); in nx_netif_host_na_special()
|
| /xnu-8019.80.24/bsd/skywalk/nexus/ |
| H A D | nexus_adapter.c | 497 struct chreq *chr) in na_bind_channel() argument 501 uint32_t ch_mode = chr->cr_mode; in na_bind_channel() 511 err = na_set_ringid(ch, chr->cr_ring_set, chr->cr_ring_id); in na_bind_channel() 2557 na_connect(struct kern_nexus *nx, struct kern_channel *ch, struct chreq *chr, in na_connect() argument 2565 ASSERT(!(chr->cr_mode & CHMODE_KERNEL)); in na_connect() 2571 err = na_find(ch, nx, chr, ch0, nxb, p, &na, TRUE /* create */); in na_connect() 2588 err = na_bind_channel(na, ch, chr); in na_connect() 2620 chr->cr_memsize = memsize; in na_connect() 2621 chr->cr_memoffset = ch->ch_schema_offset; in na_connect() 2626 na->na_name, (int)chr->cr_port, (int)chr->cr_ring_id, SK_KVA(na), in na_connect() [all …]
|
| /xnu-8019.80.24/tools/lldbmacros/core/ |
| H A D | cvalue.py | 337 ch = chr(sbdata.GetUnsignedInt8(serr, i))
|
| /xnu-8019.80.24/tools/lldbmacros/ |
| H A D | userspace.py | 887 memory_data.append(chr(data_ptr[i]))
|
| H A D | ioreg.py | 1725 c = chr(unsigned(preoslog_header.magic[i]))
|
| H A D | kcdata.py | 546 self.obj['name'] = BytesToString(u_d[2]).split(chr(0))[0]
|
| H A D | memory.py | 2409 c = chr(cbyte)
|