Home
last modified time | relevance | path

Searched refs:nbits (Results 1 – 8 of 8) sorted by relevance

/xnu-11215/osfmk/tests/
H A Dbitmap_test.c55 for (int i = bitmap_lsb_first(map, nbits); i >= 0; i = bitmap_lsb_next(map, nbits, i)) { in dump_bitmap_lsb()
72 for (uint nbits = start; nbits <= 192; nbits++) { in test_bitmap() local
87 bitmap_zero(map, nbits); in test_bitmap()
92 bitmap_full(map, nbits); in test_bitmap()
95 expected_result = nbits - 1; in test_bitmap()
103 for (int i = bitmap_lsb_first(map, nbits); i >= 0; i = bitmap_lsb_next(map, nbits, i)) { in test_bitmap()
123 bitmap_not(map, map, nbits); in test_bitmap()
135 bitmap_full(map1, nbits); in test_bitmap()
177 bitmap_free(map, nbits); in test_bitmap()
178 bitmap_free(map0, nbits); in test_bitmap()
[all …]
/xnu-11215/osfmk/kern/
H A Dbits.h231 if (nbits > nbits_filled) { in bitmap_full()
232 map[i] = mask(nbits - nbits_filled); in bitmap_full()
263 if (nbits > nbits_filled) { in bitmap_is_full()
271 bitmap_alloc(uint nbits) in bitmap_alloc() argument
273 assert(nbits > 0); in bitmap_alloc()
278 bitmap_free(bitmap_t *map, uint nbits) in bitmap_free() argument
280 assert(nbits > 0); in bitmap_free()
281 kfree_data(map, BITMAP_SIZE(nbits)); in bitmap_free()
341 if (nbits > nbits_complete) { in bitmap_not()
377 uint nbits) in bitmap_or() argument
[all …]
H A Dzalloc.c2168 zone_meta_bits_alloc_init(uint32_t count, uint32_t nbits, bool with_extra) in zone_meta_bits_alloc_init() argument
2173 uint32_t order = flsll((nbits - 1) / ZBA_GRANULE_BITS); in zone_meta_bits_alloc_init()
/xnu-11215/bsd/sys/
H A Dbitstring.h80 #define bitstr_size(nbits) \ argument
81 (((nbits) + 7) >> 3)
84 #define bit_decl(name, nbits) \ argument
85 ((name)[bitstr_size(nbits)])
142 #define bitstr_ffc(name, nbits, value) do { \ argument
144 int _byte, _nbits = (nbits); \
155 if (_value >= nbits) \
161 #define bitstr_ffs(name, nbits, value) do { \ argument
163 int _byte, _nbits = (nbits); \
174 if (_value >= nbits) \
/xnu-11215/tests/
H A Dos_refcnt.c266 const os_ref_count_t nbits = 3; variable
269 os_ref_init_count_mask(&rc, nbits, NULL, count, bits);
271 os_ref_count_t mask = (1U << nbits) - 1;
273 T_ASSERT_EQ_UINT(rc >> nbits, count, "count correctly initialized");
/xnu-11215/EXTERNAL_HEADERS/corecrypto/
H A Dccrsa.h259 int ccrsa_generate_key(size_t nbits, ccrsa_full_ctx_t fk,
284 int ccrsa_generate_key_deterministic(size_t nbits, ccrsa_full_ctx_t fk,
310 ccrsa_generate_fips186_key(size_t nbits, ccrsa_full_ctx_t fk,
/xnu-11215/osfmk/corecrypto/
H A Dccn_internal.h582 int ccn_random_bits(cc_size nbits, cc_unit *cc_unsafe_indexable r, struct ccrng_state *rng);
586 int ccn_random_bits_fips(cc_size nbits, cc_unit *cc_unsafe_indexable r, struct ccrng_state *rng);
604 void ccn_recode_jsf_init(struct ccn_rjsf_state *r, size_t nbits, const cc_unit *s, const cc_unit *t…
/xnu-11215/tools/lldbmacros/
H A Dpmap.py45 nbits = ArgumentStringToInt(cmd_args[0])
47 print("{0: <#x}".format(ReadPhysInt(phys_addr, nbits)))
250 nbits = ArgumentStringToInt(cmd_args[0])
253 print(WritePhysInt(phys_addr, int_value, nbits))