/external/jemalloc_new/test/unit/ |
D | bitmap.c | 96 test_bitmap_initializer_body(const bitmap_info_t *binfo, size_t nbits) { in test_bitmap_initializer_body() argument 100 assert_zu_eq(bitmap_size(binfo), bitmap_size(&binfo_dyn), in test_bitmap_initializer_body() 103 assert_zu_eq(binfo->nbits, binfo_dyn.nbits, in test_bitmap_initializer_body() 107 assert_u_eq(binfo->nlevels, binfo_dyn.nlevels, in test_bitmap_initializer_body() 113 for (i = 0; i < binfo->nlevels; i++) { in test_bitmap_initializer_body() 114 assert_zu_eq(binfo->levels[i].group_offset, in test_bitmap_initializer_body() 121 assert_zu_eq(binfo->ngroups, binfo_dyn.ngroups, in test_bitmap_initializer_body() 129 bitmap_info_t binfo = \ in TEST_BEGIN() 131 test_bitmap_initializer_body(&binfo, nbits); \ in TEST_BEGIN() 140 test_bitmap_size_body(const bitmap_info_t *binfo, size_t nbits, in test_bitmap_size_body() argument [all …]
|
/external/jemalloc/test/unit/ |
D | bitmap.c | 9 bitmap_info_t binfo; in TEST_BEGIN() local 12 bitmap_info_init(&binfo, i); in TEST_BEGIN() 13 size = bitmap_size(&binfo); in TEST_BEGIN() 26 bitmap_info_t binfo; in TEST_BEGIN() local 27 bitmap_info_init(&binfo, i); in TEST_BEGIN() 31 bitmap_size(&binfo)); in TEST_BEGIN() 32 bitmap_init(bitmap, &binfo); in TEST_BEGIN() 35 assert_false(bitmap_get(bitmap, &binfo, j), in TEST_BEGIN() 49 bitmap_info_t binfo; in TEST_BEGIN() local 50 bitmap_info_init(&binfo, i); in TEST_BEGIN() [all …]
|
/external/jemalloc_new/src/ |
D | bitmap.c | 12 bitmap_info_init(bitmap_info_t *binfo, size_t nbits) { in bitmap_info_init() argument 24 binfo->levels[0].group_offset = 0; in bitmap_info_init() 28 binfo->levels[i].group_offset = binfo->levels[i-1].group_offset in bitmap_info_init() 32 binfo->levels[i].group_offset = binfo->levels[i-1].group_offset in bitmap_info_init() 34 assert(binfo->levels[i].group_offset <= BITMAP_GROUPS_MAX); in bitmap_info_init() 35 binfo->nlevels = i; in bitmap_info_init() 36 binfo->nbits = nbits; in bitmap_info_init() 40 bitmap_info_ngroups(const bitmap_info_t *binfo) { in bitmap_info_ngroups() argument 41 return binfo->levels[binfo->nlevels].group_offset; in bitmap_info_ngroups() 45 bitmap_init(bitmap_t *bitmap, const bitmap_info_t *binfo, bool fill) { in bitmap_init() argument [all …]
|
/external/jemalloc/src/ |
D | bitmap.c | 9 bitmap_info_init(bitmap_info_t *binfo, size_t nbits) in bitmap_info_init() argument 22 binfo->levels[0].group_offset = 0; in bitmap_info_init() 26 binfo->levels[i].group_offset = binfo->levels[i-1].group_offset in bitmap_info_init() 30 binfo->levels[i].group_offset = binfo->levels[i-1].group_offset in bitmap_info_init() 32 assert(binfo->levels[i].group_offset <= BITMAP_GROUPS_MAX); in bitmap_info_init() 33 binfo->nlevels = i; in bitmap_info_init() 34 binfo->nbits = nbits; in bitmap_info_init() 38 bitmap_info_ngroups(const bitmap_info_t *binfo) in bitmap_info_ngroups() argument 41 return (binfo->levels[binfo->nlevels].group_offset); in bitmap_info_ngroups() 45 bitmap_init(bitmap_t *bitmap, const bitmap_info_t *binfo) in bitmap_init() argument [all …]
|
/external/jemalloc/include/jemalloc/internal/ |
D | bitmap.h | 117 void bitmap_info_init(bitmap_info_t *binfo, size_t nbits); 118 void bitmap_init(bitmap_t *bitmap, const bitmap_info_t *binfo); 119 size_t bitmap_size(const bitmap_info_t *binfo); 126 bool bitmap_full(bitmap_t *bitmap, const bitmap_info_t *binfo); 127 bool bitmap_get(bitmap_t *bitmap, const bitmap_info_t *binfo, size_t bit); 128 void bitmap_set(bitmap_t *bitmap, const bitmap_info_t *binfo, size_t bit); 129 size_t bitmap_sfu(bitmap_t *bitmap, const bitmap_info_t *binfo); 130 void bitmap_unset(bitmap_t *bitmap, const bitmap_info_t *binfo, size_t bit); 135 bitmap_full(bitmap_t *bitmap, const bitmap_info_t *binfo) in bitmap_full() argument 138 size_t rgoff = binfo->levels[binfo->nlevels].group_offset - 1; in bitmap_full() [all …]
|
/external/jemalloc_new/include/jemalloc/internal/ |
D | bitmap.h | 171 void bitmap_info_init(bitmap_info_t *binfo, size_t nbits); 172 void bitmap_init(bitmap_t *bitmap, const bitmap_info_t *binfo, bool fill); 173 size_t bitmap_size(const bitmap_info_t *binfo); 176 bitmap_full(bitmap_t *bitmap, const bitmap_info_t *binfo) { in bitmap_full() argument 178 size_t rgoff = binfo->levels[binfo->nlevels].group_offset - 1; in bitmap_full() 185 for (i = 0; i < binfo->ngroups; i++) { in bitmap_full() 195 bitmap_get(bitmap_t *bitmap, const bitmap_info_t *binfo, size_t bit) { in bitmap_get() argument 199 assert(bit < binfo->nbits); in bitmap_get() 206 bitmap_set(bitmap_t *bitmap, const bitmap_info_t *binfo, size_t bit) { in bitmap_set() argument 211 assert(bit < binfo->nbits); in bitmap_set() [all …]
|
/external/e2fsprogs/debugfs/ |
D | icheck.c | 60 struct block_info *binfo; in do_icheck() local 160 for (i=0, binfo = bw.barray; i < bw.num_blocks; i++, binfo++) { in do_icheck() 161 if (binfo->ino == 0) { in do_icheck() 162 printf("%llu\t<block not found>\n", binfo->blk); in do_icheck() 165 printf("%llu\t%u\n", binfo->blk, binfo->ino); in do_icheck()
|
/external/iw/ |
D | link.c | 118 struct nlattr *binfo[NL80211_STA_BSS_PARAM_MAX + 1]; in print_link_sta() local 173 if (nla_parse_nested(binfo, NL80211_STA_BSS_PARAM_MAX, in print_link_sta() 180 if (binfo[NL80211_STA_BSS_PARAM_CTS_PROT]) { in print_link_sta() 184 if (binfo[NL80211_STA_BSS_PARAM_SHORT_PREAMBLE]) { in print_link_sta() 188 if (binfo[NL80211_STA_BSS_PARAM_SHORT_SLOT_TIME]) in print_link_sta() 191 nla_get_u8(binfo[NL80211_STA_BSS_PARAM_DTIM_PERIOD])); in print_link_sta() 193 nla_get_u16(binfo[NL80211_STA_BSS_PARAM_BEACON_INTERVAL])); in print_link_sta()
|