Home
last modified time | relevance | path

Searched refs:bitfield (Results 1 – 11 of 11) sorted by relevance

/xnu-12377.41.6/osfmk/i386/
H A Dtsc.c82 #define bitfield(x, h, l) (((x) & bitmask(h,l)) >> l) macro
224 flex_ratio_min = (uint32_t)bitfield(msr_platform_info, 47, 40); in tsc_init()
225 flex_ratio_max = (uint32_t)bitfield(msr_platform_info, 15, 8); in tsc_init()
230 flex_ratio = (uint32_t)bitfield(msr_flex_ratio, 15, 8); in tsc_init()
250 tscGranularity = (uint32_t)bitfield(prfsts, 44, 40); in tsc_init()
/xnu-12377.41.6/osfmk/mach/
H A Dexclaves_l4.h103 #define Exclaves_L4_BfxW(bitfield, base, bits) \ argument
104 (((bitfield) & Exclaves_L4_BfmW((base), (bits))) >> (base))
116 #define Exclaves_L4_BfiW(bitfield, base, bits, value) \ argument
117 (((bitfield) & (~Exclaves_L4_BfmW((base), (bits)))) | \
/xnu-12377.41.6/bsd/netinet/
H A Din_pcblist.c488 bitstr_t *__counted_by(bitstr_size(IP_PORTRANGE_SIZE)) bitfield, struct inpcbinfo *pcbinfo) in inpcb_get_if_ports_used()
731 bitstr_set(bitfield, ntohs(inp->inp_lport)); in inpcb_get_if_ports_used()
741 bitstr_t *__counted_by(bitstr_size(IP_PORTRANGE_SIZE)) bitfield, struct inpcbinfo *pcbinfo) in inpcb_get_ports_used()
744 inpcb_get_if_ports_used(ifp, protocol, flags, bitfield, pcbinfo); in inpcb_get_ports_used()
763 bitfield, pcbinfo); in inpcb_get_ports_used()
H A Dudp_usrreq.c1501 bitstr_t *__counted_by(bitstr_size(IP_PORTRANGE_SIZE)) bitfield) in udp_get_ports_used()
1503 inpcb_get_ports_used(ifp, protocol, flags, bitfield, in udp_get_ports_used()
H A Dtcp_subr.c2543 bitstr_t *__counted_by(bitstr_size(IP_PORTRANGE_SIZE)) bitfield) in tcp_get_ports_used()
2545 inpcb_get_ports_used(ifp, protocol, flags, bitfield, in tcp_get_ports_used()
/xnu-12377.41.6/bsd/skywalk/namespace/
H A Dnetns.h201 u_int32_t flags, u_int8_t bitfield[IP_PORTRANGE_BITFIELD_LEN]);
H A Dnetns.c1771 u_int32_t flags, u_int8_t bitfield[IP_PORTRANGE_BITFIELD_LEN]) in netns_local_port_scan_flow_entry()
1933 bitstr_set(bitfield, token->nt_port); in netns_local_port_scan_flow_entry()
1948 u_int32_t flags, u_int8_t bitfield[IP_PORTRANGE_BITFIELD_LEN]) in netns_get_if_local_ports()
1967 bitfield); in netns_get_if_local_ports()
1977 u_int32_t flags, u_int8_t bitfield[IP_PORTRANGE_BITFIELD_LEN]) in netns_get_local_ports()
1983 netns_get_if_local_ports(ifp, protocol, flags, bitfield); in netns_get_local_ports()
2001 bitfield); in netns_get_local_ports()
/xnu-12377.41.6/bsd/net/
H A Dkpi_interface.c3093 u_int32_t flags, u_int8_t bitfield[bitstr_size(IP_PORTRANGE_SIZE)]) in ifnet_get_local_ports_extended_inner()
3106 netns_get_local_ports(ifp, protocol, flags, bitfield); in ifnet_get_local_ports_extended_inner()
3114 bitfield); in ifnet_get_local_ports_extended_inner()
3119 bitfield); in ifnet_get_local_ports_extended_inner()
3127 u_int32_t flags, u_int8_t bitfield[IP_PORTRANGE_BITFIELD_LEN]) in ifnet_get_local_ports_extended()
3131 if (bitfield == NULL) { in ifnet_get_local_ports_extended()
3145 bzero(bitfield, bitstr_size(IP_PORTRANGE_SIZE)); in ifnet_get_local_ports_extended()
3147 ifnet_get_local_ports_extended_inner(ifp, protocol, flags, bitfield); in ifnet_get_local_ports_extended()
3152 flags, bitfield); in ifnet_get_local_ports_extended()
3160 ifnet_get_local_ports(ifnet_t ifp, u_int8_t bitfield[IP_PORTRANGE_BITFIELD_LEN]) in ifnet_get_local_ports()
[all …]
H A Dif_ports_used.c873 u_int8_t *bitfield = NULL; variable
888 bitfield = (u_int8_t *) kalloc_data(bitstr_size(IP_PORTRANGE_SIZE),
890 if (bitfield == NULL) {
905 error = ifnet_get_local_ports_extended(ifp, protocol, flags, bitfield);
911 error = SYSCTL_OUT(req, bitfield, bitstr_size(IP_PORTRANGE_SIZE));
913 if (bitfield != NULL) {
914 kfree_data(bitfield, bitstr_size(IP_PORTRANGE_SIZE));
H A Dkpi_interface.h3411 extern errno_t ifnet_get_local_ports(ifnet_t ifp, u_int8_t bitfield[IP_PORTRANGE_BITFIELD_LEN]);
3466 protocol_family_t protocol, u_int32_t flags, u_int8_t bitfield[IP_PORTRANGE_BITFIELD_LEN]);
/xnu-12377.41.6/tools/lldbmacros/
H A Dmemory.py4146 raise ArgumentError("Unknown bitfield: {0:>20s}".format(bitfield))