Home
last modified time | relevance | path

Searched refs:unit (Results 1 – 25 of 68) sorted by relevance

123

/xnu-11215/bsd/net/
H A Dkctl_test.c43 static errno_t kctl_test_disconnect(kern_ctl_ref kctlref, u_int32_t unit, void *unitinfo);
44 static errno_t kctl_test_send(kern_ctl_ref kctlref, u_int32_t unit, void *unitinfo, mbuf_t m, int f…
47 static errno_t kctl_test_send_list(kern_ctl_ref kctlref, u_int32_t unit,
89 kctl_test_disconnect(kern_ctl_ref kctlref, u_int32_t unit, void *unitinfo) in kctl_test_disconnect() argument
97 error = ctl_getenqueuespace(kctlref, unit, &space); in kctl_test_disconnect()
109 kctl_test_send(kern_ctl_ref kctlref, u_int32_t unit, void *unitinfo, mbuf_t m, int flags) in kctl_test_send() argument
114 error = ctl_enqueuembuf(kctlref, unit, m, CTL_DATA_EOR); in kctl_test_send()
128 #pragma unused(unit, unitinfo) in kctl_test_setopt()
152 #pragma unused(unitinfo, unit) in kctl_test_getopt()
175 kctl_test_send_list(kern_ctl_ref kctlref, u_int32_t unit, in kctl_test_send_list() argument
[all …]
H A Dnetsrc.c79 netsrc_reply(kern_ctl_ref kctl, uint32_t unit, unsigned int version, in netsrc_reply() argument
84 return ctl_enqueuedata(kctl, unit, reply, in netsrc_reply()
103 return ctl_enqueuedata(kctl, unit, &v1, sizeof(v1), CTL_DATA_EOR); in netsrc_reply()
197 netsrc_ipv6(kern_ctl_ref kctl, uint32_t unit, struct netsrc_req *request) in netsrc_ipv6() argument
234 return netsrc_reply(kctl, unit, request->nrq_ver, &reply); in netsrc_ipv6()
238 netsrc_ipv4(kern_ctl_ref kctl, uint32_t unit, struct netsrc_req *request) in netsrc_ipv4() argument
273 return netsrc_reply(kctl, unit, request->nrq_ver, &reply); in netsrc_ipv4()
277 netsrc_ctlsend(kern_ctl_ref kctl, uint32_t unit, void *uinfo, mbuf_t m, in netsrc_ctlsend() argument
304 error = netsrc_ipv4(kctl, unit, nrq); in netsrc_ctlsend()
312 error = netsrc_ipv6(kctl, unit, nrq); in netsrc_ctlsend()
H A Dremote_vif.c159 rvi_ifinit.unit = client->_vif; in rvi_create_if()
261 rvi_remove_client(uint32_t unit) in rvi_remove_client() argument
268 if (client->_unit == unit) { in rvi_remove_client()
329 rvi_ctl_disconnect(kern_ctl_ref kctlref, uint32_t unit, void *unitinfo) in rvi_ctl_disconnect() argument
335 rvi_remove_client(unit); in rvi_ctl_disconnect()
341 rvi_ctl_getopt(kern_ctl_ref kctlref, uint32_t unit, void *unitinfo, in rvi_ctl_getopt() argument
345 #pragma unused(unit) in rvi_ctl_getopt()
384 rvi_ctl_send(kern_ctl_ref kctlref, uint32_t unit, void *unitinfo, mbuf_t m, int flags) in rvi_ctl_send() argument
387 #pragma unused(unit) in rvi_ctl_send()
H A Dif_pflog.c171 pflog_clone_create(struct if_clone *ifc, u_int32_t unit, __unused void *params) in pflog_clone_create() argument
183 if (unit >= PFLOGIFS_MAX) { in pflog_clone_create()
185 panic("%s: unit (%d) exceeds max (%d)", __func__, unit, in pflog_clone_create()
197 pf_init.unit = unit; in pflog_clone_create()
208 pflogif->sc_unit = unit; in pflog_clone_create()
236 pflogifs[unit] = pflogif->sc_if; in pflog_clone_create()
/xnu-11215/bsd/sys/
H A Dkern_control.h350 typedef errno_t (*ctl_send_func)(kern_ctl_ref kctlref, u_int32_t unit, void *unitinfo,
366 typedef errno_t (*ctl_setopt_func)(kern_ctl_ref kctlref, u_int32_t unit, void *unitinfo,
389 typedef errno_t (*ctl_getopt_func)(kern_ctl_ref kctlref, u_int32_t unit, void *unitinfo,
408 typedef void (*ctl_rcvd_func)(kern_ctl_ref kctlref, u_int32_t unit, void *unitinfo,
468 typedef errno_t (*ctl_setup_func)(u_int32_t *unit, void **unitinfo);
578 ctl_enqueuedata(kern_ctl_ref kctlref, u_int32_t unit, void *__sized_by(len) data,
596 ctl_enqueuembuf(kern_ctl_ref kctlref, u_int32_t unit, mbuf_t m, u_int32_t flags);
617 ctl_enqueuembuf_list(kern_ctl_ref kctlref, u_int32_t unit, mbuf_t m_list,
631 ctl_getenqueuepacketcount(kern_ctl_ref kctlref, u_int32_t unit, u_int32_t *pcnt);
646 ctl_getenqueuespace(kern_ctl_ref kctlref, u_int32_t unit, size_t *space);
[all …]
H A Dreboot.h150 #define MAKEBOOTDEV(type, adaptor, controller, unit, partition) \ argument
152 ((controller) << B_CONTROLLERSHIFT) | ((unit) << B_UNITSHIFT) | \
/xnu-11215/iokit/Kernel/
H A DIOSimpleReporter.cpp43 IOReportUnit unit) in with() argument
52 if (!reporter->initWith(reportingService, categories, unit)) { in with()
62 IOReportUnit unit) in initWith() argument
72 return super::init(reportingService, channelType, unit); in initWith()
161 IOReportUnit unit) in createLegend() argument
170 return IOReporter::legendWith(channelIDs, channelNames, channelCount, channelType, unit); in createLegend()
H A DIOHistogramReporter.cpp49 IOReportUnit unit, in with() argument
63 unit, nSegments, config)) { in with()
77 IOReportUnit unit, in initWith() argument
102 if (super::init(reportingService, channelType, unit) != true) { in initWith()
391 IOReportUnit unit) in createLegend() argument
409 legendEntry = IOReporter::legendWith(&channelID, &channelName, 1, channelType, unit); in createLegend()
H A DIOReporter.cpp158 IOReportUnit unit) in init() argument
190 if (unit == kIOReportUnitHWTicks) { in init()
192 unit = kIOReportUnit24MHzTicks; in init()
195 unit = kIOReportUnit1GHzTicks; in init()
200 _unit = unit; in init()
1021 IOReportUnit unit) in legendWith() argument
1076 tmpNum = OSNumber::withNumber(unit, 64); in legendWith()
1098 IOReportUnit unit) in legendWith() argument
1130 return legendWith(channelIDsArray.get(), channelNamesArray.get(), channelType, unit); in legendWith()
/xnu-11215/iokit/IOKit/
H A DIOKernelReporters.h153 IOReportUnit unit);
735 IOReportUnit unit);
776 IOReportUnit unit);
844 IOReportUnit unit);
908 IOReportUnit unit);
922 IOReportUnit unit);
1362 IOReportUnit unit);
1386 int16_t nstates, IOReportUnit unit);
1567 IOReportUnit unit,
1644 IOReportUnit unit);
[all …]
H A DIOReportTypes.h218 #define IOREPORT_GETUNIT_QUANTITY(unit) \ argument
219 ((IOReportQuantity)((uint64_t)unit >> 56) & 0xff)
220 #define IOREPORT_GETUNIT_SCALE(unit) \ argument
221 ((IOReportScaleFactor)unit & 0x00ffffffffffffff)
/xnu-11215/tests/vm/
H A Dperf_compressor.lua80 unit = perfdata.unit.bytes_per_second
82 unit = perfdata.unit.custom("uncompressed / compressed")
84 benchmark.writer:add_value(k, unit, tonumber(v), {
/xnu-11215/tests/
H A Dnet_bridge.c82 u_int unit; member
148 a[EA_UNIT_INDEX] = (u_char)unit; in set_ethernet_address()
177 ip->s6_addr[ULA_UNIT_INDEX] = (uint8_t)unit; in get_ipv6_ula_address()
1120 port->ifname, port->unit, port->fd); in switch_port_receive()
1181 port->ifname, port->unit, in switch_port_log()
1256 ifname, unit, in switch_port_list_add_port()
1261 p->unit = unit; in switch_port_list_add_port()
1509 port->ifname, port->unit, in switch_port_list_verify_mac_nat()
1611 port->unit); in check_received_count()
1681 port->ifname, port->unit, j); in bridge_learning_test_once()
[all …]
H A Dnet_bond.c77 get_ipv4_address(u_int unit, u_int addr_index, struct in_addr *ip) in get_ipv4_address() argument
80 ip->s_addr = htonl(TEN_1_NET | (unit << 8) | addr_index); in get_ipv4_address()
218 const char * name, unsigned int unit, in network_interface_init() argument
222 get_ipv4_address(unit, address_index, &netif->ip); in network_interface_init()
283 const char * name, uint16_t unit, in vlan_interface_init() argument
286 network_interface_init(netif, name, unit, address_index); in vlan_interface_init()
287 siocsifvlan(netif->if_name, phys, unit); in vlan_interface_init()
H A Dv4mappedv6_dontfrag.c63 get_ipv4_address(u_int unit, u_int addr_index, struct in_addr *ip) in get_ipv4_address() argument
66 ip->s_addr = htonl(LL_1_NET | (unit << 8) | addr_index); in get_ipv4_address()
72 const char * name, unsigned int unit, in network_interface_init() argument
76 get_ipv4_address(unit, address_index, &netif->ip); in network_interface_init()
/xnu-11215/tests/counter/
H A Dbenchmark.lua52 local writes_per_second = perfdata.unit.custom('writes/sec')
91 local unit = writes_per_second
94 unit = percentage
97 benchmark.writer:add_value(k, unit, tonumber(v), {
/xnu-11215/tests/skywalk/
H A Dskywalk_test_common.h163 sktc_feth_name_for_unit(char * namebuf, size_t namebuf_size, int unit) in sktc_feth_name_for_unit() argument
165 snprintf(namebuf, namebuf_size, FETH_FORMAT, unit); in sktc_feth_name_for_unit()
168 extern int sktc_ifnet_feth_create(int unit);
169 extern int sktc_ifnet_feth_destroy(int unit);
205 sktc_rd_name_for_unit(char * namebuf, size_t namebuf_size, int unit) in sktc_rd_name_for_unit() argument
207 snprintf(namebuf, namebuf_size, RD_FORMAT, unit); in sktc_rd_name_for_unit()
/xnu-11215/doc/debugging/
H A Dmacro_testing.md3 How to work with bundled unit test framework.
10 - Standalone unit test \
12 - LLDB based unit test \
15 **Standalone** unit tests replace _lldb_ and _lldbwrap_ modules with _MagicMock_
18 **LLDB** unit tests are run from LLDB's python interpreter. It is possible to
38 * `-v` enables verbose output from unit test framework
/xnu-11215/bsd/kern/
H A Dkern_control.c487 u_int32_t unit = 1; in ctl_setup_kctl() local
490 if (kcb_next->sac.sc_unit > unit) { in ctl_setup_kctl()
494 unit = kcb_next->sac.sc_unit + 1; in ctl_setup_kctl()
495 if (unit == ctl_maxunit) { in ctl_setup_kctl()
500 if (unit == ctl_maxunit) { in ctl_setup_kctl()
505 sa.sc_unit = unit; in ctl_setup_kctl()
1093 __func__, id, unit); in ctl_enqueuembuf_list()
1258 so = kcb_find_socket(kctlref, unit, NULL); in ctl_getenqueuepacketcount()
1288 so = kcb_find_socket(kctlref, unit, NULL); in ctl_getenqueuespace()
1936 if (kcb->sac.sc_unit == unit) { in kcb_find()
[all …]
/xnu-11215/osfmk/kern/
H A Dstartup.h550 #define MACHINE_TIMEOUT(var, name, default, unit, skip_predicate) \ argument
552 _MACHINE_TIMEOUT(var, name, default, unit, skip_predicate)
555 #define MACHINE_TIMEOUT_DEV_WRITEABLE(var, name, default, unit, skip_predicate) \ argument
557 _MACHINE_TIMEOUT(var, name, default, unit, skip_predicate)
559 #define MACHINE_TIMEOUT_DEV_WRITEABLE(var, name, default, unit, skip_predicate) \ argument
560 MACHINE_TIMEOUT(var, name, default, unit, skip_predicate)
/xnu-11215/iokit/DriverKit/
H A DIOReportTypes.h218 #define IOREPORT_GETUNIT_QUANTITY(unit) \ argument
219 ((IOReportQuantity)((uint64_t)unit >> 56) & 0xff)
220 #define IOREPORT_GETUNIT_SCALE(unit) \ argument
221 ((IOReportScaleFactor)unit & 0x00ffffffffffffff)
/xnu-11215/bsd/dev/i386/
H A Dkm.c88 int unit; in kmopen() local
93 unit = minor(dev); in kmopen()
94 if (unit >= 1) { in kmopen()
98 tp = km_tty[unit]; in kmopen()
/xnu-11215/bsd/netinet/
H A Dtcp_ccdbg.c61 tcp_ccdbg_control_disconnect(kern_ctl_ref kctl, u_int32_t unit, void *uinfo) in tcp_ccdbg_control_disconnect() argument
63 #pragma unused(kctl, unit, uinfo) in tcp_ccdbg_control_disconnect()
65 if (unit == tcp_ccdbg_unit) { in tcp_ccdbg_control_disconnect()
/xnu-11215/bsd/dev/arm/
H A Dkm.c65 int unit; in kmopen() local
70 unit = minor(dev); in kmopen()
71 if (unit >= 1) { in kmopen()
75 tp = km_tty[unit]; in kmopen()
/xnu-11215/osfmk/tests/
H A Dktest.c87 ktest_perf(const char * metric, const char * unit, double value, const char * desc) in ktest_perf() argument
90 ktest_emit_perfdata(metric, unit, value, desc); in ktest_perf()

123