Home
last modified time | relevance | path

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

/xnu-12377.1.9/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()
323 SK_DF(SK_VERB_KERNEL_PIPE, "port %d mode 0x%x", port, chr->cr_mode); in nx_kpipe_dom_connect()
339 if (chr->cr_mode & CHMODE_USER_PACKET_POOL) { in nx_kpipe_dom_connect()
345 if (chr->cr_mode & CHMODE_EVENT_RING) { in nx_kpipe_dom_connect()
351 if (chr->cr_mode & CHMODE_LOW_LATENCY) { in nx_kpipe_dom_connect()
357 chr->cr_ring_set = RING_SET_DEFAULT; in nx_kpipe_dom_connect()
358 chr->cr_endpoint = CH_ENDPOINT_KERNEL_PIPE; in nx_kpipe_dom_connect()
359 (void) snprintf(chr->cr_name, sizeof(chr->cr_name), "kpipe:%llu:%.*s", in nx_kpipe_dom_connect()
363 err = na_connect(nx, ch, chr, nxb, p); in nx_kpipe_dom_connect()
[all …]
/xnu-12377.1.9/bsd/skywalk/nexus/flowswitch/
H A Dnx_flowswitch.c766 struct kern_nexus *nx, struct kern_channel *ch, struct chreq *chr, in nx_fsw_dom_connect() argument
770 nexus_port_t port = chr->cr_port; in nx_fsw_dom_connect()
786 chr->cr_endpoint = CH_ENDPOINT_FLOW_SWITCH; in nx_fsw_dom_connect()
788 (void) snprintf(chr->cr_name, sizeof(chr->cr_name), in nx_fsw_dom_connect()
790 chr->cr_ring_set = RING_SET_DEFAULT; in nx_fsw_dom_connect()
791 err = na_connect(nx, ch, chr, 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, chr->cr_pipe_id, in nx_fsw_na_find_log()
892 (int)chr->cr_ring_id, chr->cr_ring_set, chr->cr_endpoint, create, in nx_fsw_na_find_log()
[all …]
H A Dfsw_vp.c275 struct chreq *chr, nxspec_cmd_t spec_cmd) in fsw_vp_na_special() argument
293 error = na_bind_channel(na, ch, chr); in fsw_vp_na_special()
335 fsw_vp_na_create(struct kern_nexus *nx, struct chreq *chr, struct proc *p, in fsw_vp_na_create() argument
346 if ((chr->cr_mode & CHMODE_KERNEL) != 0) { in fsw_vp_na_create()
350 if ((chr->cr_mode & CHMODE_USER_PACKET_POOL) == 0) { in fsw_vp_na_create()
362 fsw->fsw_ifp ? if_name(fsw->fsw_ifp) : "??", chr->cr_port, in fsw_vp_na_create()
392 if (chr->cr_mode & CHMODE_LOW_LATENCY) { in fsw_vp_na_create()
396 if (chr->cr_mode & CHMODE_EVENT_RING) { in fsw_vp_na_create()
406 vpna->vpna_nx_port = chr->cr_port; in fsw_vp_na_create()
H A Dfsw.c117 struct chreq *chr, struct nxbind *nxb, struct proc *p, in fsw_attach_vp() argument
123 __unsafe_forge_null_terminated(const char *, chr->cr_name)); in fsw_attach_vp()
127 ASSERT(!(chr->cr_mode & CHMODE_CONFIG)); in fsw_attach_vp()
132 err = fsw_port_alloc(fsw, nxb, vpna, chr->cr_port, p, FALSE, FALSE); in fsw_attach_vp()
148 err = fsw_vp_na_create(nx, chr, p, vpna); in fsw_attach_vp()
758 struct chreq chr; in fsw_netif_port_setup() local
762 bzero(&chr, sizeof(chr)); in fsw_netif_port_setup()
763 uuid_copy(chr.cr_spec_uuid, hw_nx->nx_uuid); in fsw_netif_port_setup()
764 chr.cr_ring_id = CHANNEL_RING_ID_ANY; in fsw_netif_port_setup()
765 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-12377.1.9/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-12377.1.9/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_endpoint = CH_ENDPOINT_USER_PIPE_MASTER; in nx_upipe_dom_connect()
554 chr->cr_endpoint = CH_ENDPOINT_USER_PIPE_SLAVE; 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()
562 (void) snprintf(chr->cr_name, sizeof(chr->cr_name), "upipe:%llu:%.*s", in nx_upipe_dom_connect()
[all …]
/xnu-12377.1.9/bsd/skywalk/channel/
H A Dchannel.c1546 struct chreq chr; in ch_open() local
1652 bzero(&chr, sizeof(chr)); in ch_open()
1653 chr.cr_tx_lowat = init->ci_tx_lowat; in ch_open()
1654 chr.cr_rx_lowat = init->ci_rx_lowat; in ch_open()
1655 chr.cr_port = port; in ch_open()
1656 chr.cr_mode = mode; in ch_open()
1657 chr.cr_ring_id = ring; in ch_open()
1660 ch = ch_connect(nx, &chr, nxb, p, fd, err); in ch_open()
1688 ch_open_special(struct kern_nexus *nx, struct chreq *chr, boolean_t nonxref, in ch_open_special() argument
1700 ASSERT((chr->cr_mode & CHMODE_USER_PACKET_POOL) == 0); in ch_open_special()
[all …]
/xnu-12377.1.9/tools/lldbmacros/
H A Dnvram.py57 if ((data_ptr[i] >= 0x20 and data_ptr[i] <= 0x7e) and chr(data_ptr[i]) != '%'):
58 data_buffer += chr(data_ptr[i])
H A Dutils.py610 chars += chr(b) if 0x20 <= b < 0x80 else '.'
H A Dlog.py281 if chr(c) == '\n':
H A Dioreg.py1736 c = chr(unsigned(preoslog_header.magic[i]))
H A Dkcdata.py572 self.obj['name'] = BytesToString(u_d[2]).split(chr(0))[0]
/xnu-12377.1.9/bsd/skywalk/nexus/netif/
H A Dnx_netif_vp.c320 struct chreq chr; in netif_hwna_setup() local
339 bzero(&chr, sizeof(chr)); in netif_hwna_setup()
340 uuid_copy(chr.cr_spec_uuid, nx->nx_uuid); in netif_hwna_setup()
341 chr.cr_ring_id = 0; in netif_hwna_setup()
342 chr.cr_port = NEXUS_PORT_NET_IF_DEV; in netif_hwna_setup()
343 chr.cr_mode |= CHMODE_CONFIG; in netif_hwna_setup()
346 ch = ch_open_special(nx, &chr, FALSE, &err); in netif_hwna_setup()
958 netif_vp_na_create(struct kern_nexus *nx, struct chreq *chr, in netif_vp_na_create() argument
973 ASSERT((chr->cr_mode & CHMODE_KERNEL) == 0); in netif_vp_na_create()
974 if ((chr->cr_mode & CHMODE_USER_PACKET_POOL) == 0) { in netif_vp_na_create()
[all …]
H A Dnx_netif_filter_vp.c516 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 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_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, nxb, p); in nx_netif_dom_connect()
[all …]
H A Dnx_netif_host.c327 struct chreq *chr, nxspec_cmd_t spec_cmd) in nx_netif_host_na_special() argument
331 return nx_netif_na_special_common(na, ch, chr, spec_cmd); in nx_netif_host_na_special()
/xnu-12377.1.9/bsd/skywalk/nexus/
H A Dnexus_adapter.c437 struct chreq *chr) in na_bind_channel() argument
441 uint32_t ch_mode = chr->cr_mode; in na_bind_channel()
451 err = na_set_ringid(ch, chr->cr_ring_set, chr->cr_ring_id); in na_bind_channel()
2607 na_connect(struct kern_nexus *nx, struct kern_channel *ch, struct chreq *chr, in na_connect() argument
2615 ASSERT(!(chr->cr_mode & CHMODE_KERNEL)); in na_connect()
2621 err = na_find(ch, nx, chr, nxb, p, &na, TRUE /* create */); in na_connect()
2638 err = na_bind_channel(na, ch, chr); in na_connect()
2669 chr->cr_memsize = memsize; in na_connect()
2670 chr->cr_memoffset = ch->ch_schema_offset; in na_connect()
2674 NX_DOM_PROV(nx)->nxdom_prov_name, na->na_name, (int)chr->cr_port, in na_connect()
[all …]
/xnu-12377.1.9/tools/lldbmacros/core/
H A Dcvalue.py415 ch = chr(sbdata.GetUnsignedInt8(serr, i))