Home
last modified time | relevance | path

Searched refs:chr (Results 1 – 20 of 20) sorted by relevance

/xnu-10063.141.1/bsd/skywalk/nexus/kpipe/
H A Dnx_kernel_pipe.c316 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-10063.141.1/bsd/skywalk/nexus/flowswitch/
H A Dnx_flowswitch.c764 struct kern_nexus *nx, struct kern_channel *ch, struct chreq *chr, in nx_fsw_dom_connect() argument
768 nexus_port_t port = chr->cr_port; in nx_fsw_dom_connect()
784 chr->cr_real_endpoint = chr->cr_endpoint = CH_ENDPOINT_FLOW_SWITCH; in nx_fsw_dom_connect()
786 (void) snprintf(chr->cr_name, sizeof(chr->cr_name), in nx_fsw_dom_connect()
788 chr->cr_ring_set = RING_SET_DEFAULT; in nx_fsw_dom_connect()
789 err = na_connect(nx, ch, chr, ch0, nxb, p); in nx_fsw_dom_connect()
881 nx_fsw_na_find_log(const struct chreq *chr, boolean_t create) in nx_fsw_na_find_log() argument
887 chr->cr_name, sk_uuid_unparse(chr->cr_spec_uuid, uuidstr), in nx_fsw_na_find_log()
888 (int)chr->cr_port, chr->cr_mode, CHMODE_BITS, chr->cr_pipe_id, in nx_fsw_na_find_log()
889 (int)chr->cr_ring_id, chr->cr_ring_set, chr->cr_real_endpoint, in nx_fsw_na_find_log()
[all …]
H A Dfsw_vp.c277 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 Dfsw.c114 struct chreq *chr, struct nxbind *nxb, struct proc *p, in fsw_attach_vp() argument
119 SK_LOG_VAR(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, p, vpna); in fsw_attach_vp()
743 struct chreq chr; in fsw_netif_port_setup() local
747 bzero(&chr, sizeof(chr)); in fsw_netif_port_setup()
748 uuid_copy(chr.cr_spec_uuid, hw_nx->nx_uuid); in fsw_netif_port_setup()
749 chr.cr_ring_id = CHANNEL_RING_ID_ANY; in fsw_netif_port_setup()
750 chr.cr_port = host ? NEXUS_PORT_NET_IF_HOST : NEXUS_PORT_NET_IF_DEV; in fsw_netif_port_setup()
[all …]
H A Dfsw_var.h92 struct chreq *chr, struct nxbind *nxb, struct proc *p,
122 extern int fsw_vp_na_create(struct kern_nexus *nx, struct chreq *chr,
/xnu-10063.141.1/bsd/skywalk/nexus/upipe/
H A Dnx_user_pipe.c515 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-10063.141.1/osfmk/console/
H A Dserial_general.c81 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-10063.141.1/bsd/skywalk/nexus/monitor/
H A Dnx_monitor.c354 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-10063.141.1/bsd/skywalk/channel/
H A Dchannel.c1531 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-10063.141.1/tools/lldbmacros/
H A Dnvram.py50 if ((data_ptr[i] >= 0x20 and data_ptr[i] <= 0x7e) and chr(data_ptr[i]) != '%'):
51 data_buffer += chr(data_ptr[i])
H A Dutils.py589 chars += chr(b) if 0x20 <= b < 0x80 else '.'
H A Dlog.py281 if chr(c) == '\n':
H A Dioreg.py1750 c = chr(unsigned(preoslog_header.magic[i]))
H A Dkcdata.py565 self.obj['name'] = BytesToString(u_d[2]).split(chr(0))[0]
/xnu-10063.141.1/bsd/skywalk/nexus/netif/
H A Dnx_netif_vp.c324 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 Dnx_netif_filter_vp.c515 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 Dnx_netif.c1143 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 Dnx_netif_host.c321 struct chreq *chr, nxspec_cmd_t spec_cmd) in nx_netif_host_na_special() argument
325 return nx_netif_na_special_common(na, ch, chr, spec_cmd); in nx_netif_host_na_special()
/xnu-10063.141.1/bsd/skywalk/nexus/
H A Dnexus_adapter.c446 struct chreq *chr) in na_bind_channel() argument
450 uint32_t ch_mode = chr->cr_mode; in na_bind_channel()
460 err = na_set_ringid(ch, chr->cr_ring_set, chr->cr_ring_id); in na_bind_channel()
2566 na_connect(struct kern_nexus *nx, struct kern_channel *ch, struct chreq *chr, in na_connect() argument
2574 ASSERT(!(chr->cr_mode & CHMODE_KERNEL)); in na_connect()
2580 err = na_find(ch, nx, chr, ch0, nxb, p, &na, TRUE /* create */); in na_connect()
2597 err = na_bind_channel(na, ch, chr); in na_connect()
2627 chr->cr_memsize = memsize; in na_connect()
2628 chr->cr_memoffset = ch->ch_schema_offset; in na_connect()
2633 na->na_name, (int)chr->cr_port, (int)chr->cr_ring_id, SK_KVA(na), in na_connect()
[all …]
/xnu-10063.141.1/tools/lldbmacros/core/
H A Dcvalue.py416 ch = chr(sbdata.GetUnsignedInt8(serr, i))