/third_party/libdrm/ |
H A D | xf86drmHash.c | 119 HashBucketPtr bucket; in drmHashDestroy() local 126 for (bucket = table->buckets[i]; bucket;) { in drmHashDestroy() 127 next = bucket->next; in drmHashDestroy() 128 drmFree(bucket); in drmHashDestroy() 129 bucket = next; in drmHashDestroy() 136 /* Find the bucket and organize the list so that this bucket is at the 144 HashBucketPtr bucket; in HashFind() local 148 for (bucket in HashFind() 170 HashBucketPtr bucket; drmHashLookup() local 183 HashBucketPtr bucket; drmHashInsert() local 203 HashBucketPtr bucket; drmHashDelete() local [all...] |
/third_party/mesa3d/src/glx/ |
H A D | glxhash.c | 179 __glxHashBucketPtr bucket; in __glxHashDestroy() local 187 for (bucket = table->buckets[i]; bucket;) { in __glxHashDestroy() 188 next = bucket->next; in __glxHashDestroy() 189 HASH_FREE(bucket); in __glxHashDestroy() 190 bucket = next; in __glxHashDestroy() 197 /* Find the bucket and organize the list so that this bucket is at the 205 __glxHashBucketPtr bucket; in HashFind() local 210 for (bucket in HashFind() 234 __glxHashBucketPtr bucket; __glxHashLookup() local 250 __glxHashBucketPtr bucket; __glxHashInsert() local 277 __glxHashBucketPtr bucket; __glxHashDelete() local 337 count_entries(__glxHashBucketPtr bucket) count_entries() argument 359 __glxHashBucketPtr bucket; compute_dist() local [all...] |
/foundation/distributeddatamgr/relational_store/interfaces/ndk/src/ |
H A D | relational_values_bucket.cpp | 30 int RelationalValuesBucket::PutText(OH_VBucket *bucket, const char *field, const char *value) in PutText() argument 32 return PutValueObject(bucket, field, OHOS::NativeRdb::ValueObject(value)); in PutText() 35 int RelationalValuesBucket::PutInt64(OH_VBucket *bucket, const char *field, int64_t value) in PutInt64() argument 37 return PutValueObject(bucket, field, OHOS::NativeRdb::ValueObject(value)); in PutInt64() 40 int RelationalValuesBucket::PutReal(OH_VBucket *bucket, const char *field, double value) in PutReal() argument 42 return PutValueObject(bucket, field, OHOS::NativeRdb::ValueObject(value)); in PutReal() 45 int RelationalValuesBucket::PutBlob(OH_VBucket *bucket, const char *field, const uint8_t *value, uint32_t size) in PutBlob() argument 55 return PutValueObject(bucket, field, OHOS::NativeRdb::ValueObject(blobValue)); in PutBlob() 58 int RelationalValuesBucket::PutNull(OH_VBucket *bucket, const char *field) in PutNull() argument 60 return PutValueObject(bucket, fiel in PutNull() 63 Clear(OH_VBucket *bucket) Clear() argument 74 Destroy(OH_VBucket *bucket) Destroy() argument 103 GetSelf(OH_VBucket *bucket) GetSelf() argument 112 PutValueObject(OH_VBucket *bucket, const char *field, OHOS::NativeRdb::ValueObject &&value) PutValueObject() argument 127 OH_VBucket_PutAsset(OH_VBucket *bucket, const char *field, Data_Asset *value) OH_VBucket_PutAsset() argument 138 OH_VBucket_PutAssets(OH_VBucket *bucket, const char *field, Data_Asset **value, uint32_t count) OH_VBucket_PutAssets() argument [all...] |
H A D | relational_values_bucket.h | 27 static RelationalValuesBucket *GetSelf(OH_VBucket *bucket); 31 static int PutText(OH_VBucket *bucket, const char *field, const char *value); 32 static int PutInt64(OH_VBucket *bucket, const char *field, int64_t value); 33 static int PutReal(OH_VBucket *bucket, const char *field, double value); 34 static int PutBlob(OH_VBucket *bucket, const char *field, const uint8_t *value, uint32_t size); 35 static int PutNull(OH_VBucket *bucket, const char *field); 36 static int Clear(OH_VBucket *bucket); 37 static int Destroy(OH_VBucket *bucket); 38 static int PutValueObject(OH_VBucket *bucket, const char *field, OHOS::NativeRdb::ValueObject &&value);
|
/third_party/node/deps/v8/src/heap/ |
H A D | slot-set.h | 132 // Each bucket is a bitmap with a bit corresponding to a single slot offset. 136 FREE_EMPTY_BUCKETS, // An empty bucket will be deallocated immediately. 137 KEEP_EMPTY_BUCKETS // An empty bucket will be kept. 166 *slot_set->bucket(i) = nullptr; in Allocate() 182 DCHECK_NULL(*slot_set->bucket(i)); in Delete() 194 // Converts the slot offset into bucket index. 208 Bucket* bucket = LoadBucket<access_mode>(bucket_index); in Insert() local 209 if (bucket == nullptr) { in Insert() 210 bucket = new Bucket; in Insert() 211 if (!SwapInNewBucket<access_mode>(bucket_index, bucket)) { in Insert() 232 Bucket* bucket = LoadBucket(bucket_index); Contains() local 242 Bucket* bucket = LoadBucket(bucket_index); Remove() local 266 Bucket* bucket; RemoveRange() local 324 Bucket* bucket = LoadBucket(bucket_index); Lookup() local 386 Bucket* bucket = LoadBucket<AccessMode::NON_ATOMIC>(bucket_index); CheckPossiblyEmptyBuckets() local 476 Bucket* bucket = LoadBucket(bucket_index); Iterate() local 512 Bucket* bucket = LoadBucket<AccessMode::NON_ATOMIC>(bucket_index); FreeBucketIfEmpty() local 524 ClearBucket(Bucket* bucket, int start_cell, int end_cell) ClearBucket() argument 536 Bucket* bucket = LoadBucket<access_mode>(bucket_index); ReleaseBucket() local 542 LoadBucket(Bucket** bucket) LoadBucket() argument 554 StoreBucket(Bucket** bucket, Bucket* value) StoreBucket() argument 592 Bucket** bucket(size_t bucket_index) { return buckets() + bucket_index; } bucket() function [all...] |
/third_party/node/deps/cares/src/lib/ |
H A D | ares__htable_strvp.c | 60 static const void *bucket_key(const void *bucket) in bucket_key() argument 62 const ares__htable_strvp_bucket_t *arg = bucket; in bucket_key() 66 static void bucket_free(void *bucket) in bucket_free() argument 68 ares__htable_strvp_bucket_t *arg = bucket; in bucket_free() 118 ares__htable_strvp_bucket_t *bucket = NULL; in ares__htable_strvp_insert() local 124 bucket = ares_malloc(sizeof(*bucket)); in ares__htable_strvp_insert() 125 if (bucket == NULL) { in ares__htable_strvp_insert() 129 bucket->parent = htable; in ares__htable_strvp_insert() 130 bucket in ares__htable_strvp_insert() 153 ares__htable_strvp_bucket_t *bucket = NULL; ares__htable_strvp_get() local [all...] |
H A D | ares__htable_szvp.c | 60 static const void *bucket_key(const void *bucket) in bucket_key() argument 62 const ares__htable_szvp_bucket_t *arg = bucket; in bucket_key() 66 static void bucket_free(void *bucket) in bucket_free() argument 68 ares__htable_szvp_bucket_t *arg = bucket; in bucket_free() 118 ares__htable_szvp_bucket_t *bucket = NULL; in ares__htable_szvp_insert() local 124 bucket = ares_malloc(sizeof(*bucket)); in ares__htable_szvp_insert() 125 if (bucket == NULL) { in ares__htable_szvp_insert() 129 bucket->parent = htable; in ares__htable_szvp_insert() 130 bucket in ares__htable_szvp_insert() 149 ares__htable_szvp_bucket_t *bucket = NULL; ares__htable_szvp_get() local [all...] |
H A D | ares__htable_asvp.c | 60 static const void *bucket_key(const void *bucket) in bucket_key() argument 62 const ares__htable_asvp_bucket_t *arg = bucket; in bucket_key() 66 static void bucket_free(void *bucket) in bucket_free() argument 68 ares__htable_asvp_bucket_t *arg = bucket; in bucket_free() 152 ares__htable_asvp_bucket_t *bucket = NULL; in ares__htable_asvp_insert() local 158 bucket = ares_malloc(sizeof(*bucket)); in ares__htable_asvp_insert() 159 if (bucket == NULL) { in ares__htable_asvp_insert() 163 bucket->parent = htable; in ares__htable_asvp_insert() 164 bucket in ares__htable_asvp_insert() 183 ares__htable_asvp_bucket_t *bucket = NULL; ares__htable_asvp_get() local [all...] |
/third_party/mesa3d/src/gallium/drivers/nouveau/ |
H A D | nouveau_mm.c | 38 struct mm_bucket bucket[MM_NUM_BUCKETS]; member 99 return &cache->bucket[MAX2(order, MM_MIN_ORDER) - MM_MIN_ORDER]; in mm_bucket_by_order() 123 mm_slab_new(struct nouveau_mman *cache, struct mm_bucket *bucket, int chunk_order) in mm_slab_new() argument 129 simple_mtx_assert_locked(&bucket->lock); in mm_slab_new() 155 assert(bucket == mm_bucket_by_order(cache, chunk_order)); in mm_slab_new() 156 list_add(&slab->head, &bucket->free); in mm_slab_new() 172 struct mm_bucket *bucket; in nouveau_mm_allocate() local 177 bucket = mm_bucket_by_size(cache, size); in nouveau_mm_allocate() 178 if (!bucket) { in nouveau_mm_allocate() 193 simple_mtx_lock(&bucket in nouveau_mm_allocate() 226 struct mm_bucket *bucket = mm_bucket_by_order(slab->cache, slab->order); nouveau_mm_free() local [all...] |
/third_party/mesa3d/src/etnaviv/drm/ |
H A D | etnaviv_bo_cache.c | 75 struct etna_bo_bucket *bucket = &cache->cache_bucket[i]; in etna_bo_cache_cleanup() local 78 while (!list_is_empty(&bucket->list)) { in etna_bo_cache_cleanup() 79 bo = list_entry(bucket->list.next, struct etna_bo, list); in etna_bo_cache_cleanup() 99 * way to the correct bucket size rather than looping.. in get_bucket() 102 struct etna_bo_bucket *bucket = &cache->cache_bucket[i]; in get_bucket() local 103 if (bucket->size >= size) { in get_bucket() 104 return bucket; in get_bucket() 111 static struct etna_bo *find_in_bucket(struct etna_bo_bucket *bucket, uint32_t flags) in find_in_bucket() argument 117 if (list_is_empty(&bucket->list)) in find_in_bucket() 120 LIST_FOR_EACH_ENTRY_SAFE(bo, tmp, &bucket in find_in_bucket() 152 struct etna_bo_bucket *bucket; etna_bo_cache_alloc() local 174 struct etna_bo_bucket *bucket; etna_bo_cache_free() local [all...] |
/third_party/libdrm/etnaviv/ |
H A D | etnaviv_bo_cache.c | 78 struct etna_bo_bucket *bucket = &cache->cache_bucket[i]; in etna_bo_cache_cleanup() local 81 while (!LIST_IS_EMPTY(&bucket->list)) { in etna_bo_cache_cleanup() 82 bo = LIST_ENTRY(struct etna_bo, bucket->list.next, list); in etna_bo_cache_cleanup() 101 * way to the correct bucket size rather than looping.. in get_bucket() 104 struct etna_bo_bucket *bucket = &cache->cache_bucket[i]; in get_bucket() local 105 if (bucket->size >= size) { in get_bucket() 106 return bucket; in get_bucket() 121 static struct etna_bo *find_in_bucket(struct etna_bo_bucket *bucket, uint32_t flags) in find_in_bucket() argument 127 if (LIST_IS_EMPTY(&bucket->list)) in find_in_bucket() 130 LIST_FOR_EACH_ENTRY_SAFE(bo, tmp, &bucket in find_in_bucket() 162 struct etna_bo_bucket *bucket; etna_bo_cache_alloc() local 183 struct etna_bo_bucket *bucket = get_bucket(cache, bo->size); etna_bo_cache_free() local [all...] |
/third_party/mesa3d/src/freedreno/drm/ |
H A D | freedreno_bo_cache.c | 46 * @coarse: if true, only power-of-two bucket sizes, otherwise 90 struct fd_bo_bucket *bucket = &cache->cache_bucket[i]; in fd_bo_cache_cleanup() local 93 while (!list_is_empty(&bucket->list)) { in fd_bo_cache_cleanup() 94 bo = list_entry(bucket->list.next, struct fd_bo, list); in fd_bo_cache_cleanup() 115 * way to the correct bucket size rather than looping.. in get_bucket() 118 struct fd_bo_bucket *bucket = &cache->cache_bucket[i]; in get_bucket() local 119 if (bucket->size >= size) { in get_bucket() 120 return bucket; in get_bucket() 128 find_in_bucket(struct fd_bo_bucket *bucket, uint32_t flags) in find_in_bucket() argument 140 list_for_each_entry (struct fd_bo, entry, &bucket in find_in_bucket() 159 struct fd_bo_bucket *bucket; fd_bo_cache_alloc() local 195 struct fd_bo_bucket *bucket = get_bucket(cache, bo->size); fd_bo_cache_free() local [all...] |
/third_party/node/tools/inspector_protocol/jinja2/ |
H A D | bccache.py | 76 """Resets the bucket (unloads the bytecode).""" 101 raise TypeError('can\'t write empty bucket') 131 def load_bytecode(self, bucket): 132 filename = path.join(self.directory, bucket.key) 135 bucket.load_bytecode(f) 137 def dump_bytecode(self, bucket): 138 filename = path.join(self.directory, bucket.key) 140 bucket.write_bytecode(f) 146 def load_bytecode(self, bucket): 148 bucket [all...] |
/third_party/mesa3d/src/virtio/vulkan/ |
H A D | vn_renderer_internal.c | 25 struct vn_renderer_shmem_bucket *bucket = &cache->buckets[i]; in vn_renderer_shmem_cache_init() local 26 list_inithead(&bucket->shmems); in vn_renderer_shmem_cache_init() 40 struct vn_renderer_shmem_bucket *bucket = &cache->buckets[idx]; in vn_renderer_shmem_cache_fini() local 43 &bucket->shmems, cache_head) in vn_renderer_shmem_cache_fini() 74 struct vn_renderer_shmem_bucket *bucket = &cache->buckets[idx]; in vn_renderer_shmem_cache_remove_expired_locked() local 76 assert(!list_is_empty(&bucket->shmems)); in vn_renderer_shmem_cache_remove_expired_locked() 78 &bucket->shmems, struct vn_renderer_shmem, cache_head); in vn_renderer_shmem_cache_remove_expired_locked() 82 &bucket->shmems, cache_head) { in vn_renderer_shmem_cache_remove_expired_locked() 100 struct vn_renderer_shmem_bucket *bucket = in vn_renderer_shmem_cache_add() local 102 if (!bucket) in vn_renderer_shmem_cache_add() 125 struct vn_renderer_shmem_bucket *bucket = choose_bucket(cache, size, &idx); vn_renderer_shmem_cache_get() local 170 const struct vn_renderer_shmem_bucket *bucket = &cache->buckets[idx]; vn_renderer_shmem_cache_debug_dump() local [all...] |
/foundation/distributeddatamgr/relational_store/test/native/rdb/unittest/ |
H A D | rdb_bigint_test.cpp | 89 ValuesBucket bucket; in HWTEST_F() local 90 bucket.Put("value1", BigInteger(158)); in HWTEST_F() 91 bucket.Put("value2", BigInteger(-158)); in HWTEST_F() 92 auto status = rdbStore_->Insert(outRowId, "bigint_table", bucket); in HWTEST_F() 123 ValuesBucket bucket; in HWTEST_F() local 124 bucket.Put("value1", BigInteger(158)); in HWTEST_F() 125 bucket.Put("value2", BigInteger(-158)); in HWTEST_F() 126 auto status = rdbStore_->Insert(outRowId, "bigint_table", bucket); in HWTEST_F() 159 ValuesBucket bucket; in HWTEST_F() local 160 bucket in HWTEST_F() 195 ValuesBucket bucket; HWTEST_F() local 231 ValuesBucket bucket; HWTEST_F() local 273 ValuesBucket bucket; HWTEST_F() local 315 ValuesBucket bucket; HWTEST_F() local 358 ValuesBucket bucket; HWTEST_F() local 396 ValuesBucket bucket; HWTEST_F() local [all...] |
/third_party/node/deps/v8/third_party/jinja2/ |
H A D | bccache.py | 53 """Resets the bucket (unloads the bytecode).""" 78 raise TypeError("can't write empty bucket") 108 def load_bytecode(self, bucket): 109 filename = path.join(self.directory, bucket.key) 112 bucket.load_bytecode(f) 114 def dump_bytecode(self, bucket): 115 filename = path.join(self.directory, bucket.key) 117 bucket.write_bytecode(f) 123 def load_bytecode(self, bucket): 125 bucket [all...] |
/third_party/skia/third_party/externals/jinja2/ |
H A D | bccache.py | 53 """Resets the bucket (unloads the bytecode).""" 78 raise TypeError("can't write empty bucket") 108 def load_bytecode(self, bucket): 109 filename = path.join(self.directory, bucket.key) 112 bucket.load_bytecode(f) 114 def dump_bytecode(self, bucket): 115 filename = path.join(self.directory, bucket.key) 117 bucket.write_bytecode(f) 123 def load_bytecode(self, bucket): 125 bucket [all...] |
/third_party/libdrm/freedreno/ |
H A D | freedreno_bo_cache.c | 48 * @coarse: if true, only power-of-two bucket sizes, otherwise 90 struct fd_bo_bucket *bucket = &cache->cache_bucket[i]; in fd_bo_cache_cleanup() local 93 while (!LIST_IS_EMPTY(&bucket->list)) { in fd_bo_cache_cleanup() 94 bo = LIST_ENTRY(struct fd_bo, bucket->list.next, list); in fd_bo_cache_cleanup() 114 * way to the correct bucket size rather than looping.. in get_bucket() 117 struct fd_bo_bucket *bucket = &cache->cache_bucket[i]; in get_bucket() local 118 if (bucket->size >= size) { in get_bucket() 119 return bucket; in get_bucket() 134 static struct fd_bo *find_in_bucket(struct fd_bo_bucket *bucket, uint32_t flags) in find_in_bucket() argument 146 if (!LIST_IS_EMPTY(&bucket in find_in_bucket() 165 struct fd_bo_bucket *bucket; fd_bo_cache_alloc() local 196 struct fd_bo_bucket *bucket = get_bucket(cache, bo->size); fd_bo_cache_free() local [all...] |
/foundation/systemabilitymgr/samgr_lite/samgr_endpoint/source/ |
H A D | token_bucket.c | 19 int TB_CheckMessage(TokenBucket *bucket)
in TB_CheckMessage() argument 21 if (bucket == NULL) {
in TB_CheckMessage() 25 uint64 generated = (now > bucket->last) ? ((now - bucket->last) * bucket->rate) : 0;
in TB_CheckMessage() 26 int used = bucket->used + TOKEN_PRE_MSG;
in TB_CheckMessage() 28 if (used >= bucket->burst * TOKEN_PRE_MSG) {
in TB_CheckMessage() 31 bucket->used = used;
in TB_CheckMessage() 32 bucket->last = now;
in TB_CheckMessage()
|
H A D | token_bucket.h | 29 int burst; // The burst size of the token bucket
39 inline static void TB_InitBucket(TokenBucket *bucket, int rate, int burst)
in TB_InitBucket() argument 41 bucket->last = 0;
in TB_InitBucket() 42 bucket->rate = rate;
in TB_InitBucket() 43 bucket->burst = burst;
in TB_InitBucket() 44 bucket->used = 0;
in TB_InitBucket() 46 int TB_CheckMessage(TokenBucket *bucket);
|
/foundation/distributeddatamgr/relational_store/interfaces/ndk/include/ |
H A D | oh_values_bucket.h | 65 * @param bucket Represents a pointer to an {@link OH_VBucket} instance. 72 int (*putText)(OH_VBucket *bucket, const char *field, const char *value); 77 * @param bucket Represents a pointer to an {@link OH_VBucket} instance. 84 int (*putInt64)(OH_VBucket *bucket, const char *field, int64_t value); 89 * @param bucket Represents a pointer to an {@link OH_VBucket} instance. 96 int (*putReal)(OH_VBucket *bucket, const char *field, double value); 101 * @param bucket Represents a pointer to an {@link OH_VBucket} instance. 109 int (*putBlob)(OH_VBucket *bucket, const char *field, const uint8_t *value, uint32_t size); 114 * @param bucket Represents a pointer to an {@link OH_VBucket} instance. 120 int (*putNull)(OH_VBucket *bucket, cons [all...] |
/third_party/jinja2/ |
H A D | bccache.py | 60 """Resets the bucket (unloads the bytecode).""" 85 raise TypeError("can't write empty bucket") 115 def load_bytecode(self, bucket): 116 filename = path.join(self.directory, bucket.key) 119 bucket.load_bytecode(f) 121 def dump_bytecode(self, bucket): 122 filename = path.join(self.directory, bucket.key) 124 bucket.write_bytecode(f) 130 def load_bytecode(self, bucket: Bucket) -> None: 132 bucket [all...] |
/third_party/rust/crates/aho-corasick/src/packed/teddy/ |
H A D | compile.rs | 247 // prefix to be in the same bucket, since it minimizes the amount in compile() 253 // same bucket. However, case insensitive searches are fairly in compile() 258 // the same bucket. in compile() 262 // same bucket, we ensure that we preserve correct leftmost-first in compile() 266 // the same bucket. The verification routine could be adjusted to in compile() 267 // support correct leftmost match semantics regardless of bucket in compile() 271 if let Some(&bucket) = lonibble_to_bucket.get(&lonybs) { in compile() 272 self.buckets[bucket].push(id); in compile() 277 let bucket = (self.buckets.len() - 1) in compile() 279 self.buckets[bucket] in compile() [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/distributeddatafwk/test/unittest/ |
H A D | kv_utils_test.cpp | 504 * @tc.desc: dataShare values bucket to entry, the bucket is invalid 511 DataShareValuesBucket bucket {}; in HWTEST_F() 513 auto entry = KvUtils::ToEntry(bucket); in HWTEST_F() 515 bucket.Put("invalid key", "value"); in HWTEST_F() 516 EXPECT_FALSE(bucket.IsEmpty()); in HWTEST_F() 517 entry = KvUtils::ToEntry(bucket); in HWTEST_F() 519 bucket.Put(KEY, "value"); in HWTEST_F() 520 entry = KvUtils::ToEntry(bucket); in HWTEST_F() 526 * @tc.desc: dataShare values bucket t 704 DataShareValuesBucket bucket; HWTEST_F() local [all...] |
/foundation/distributeddatamgr/relational_store/test/js/relationalstore/unittest/src/ |
H A D | RdbStoreValueType.test.js | 66 let bucket = { 71 console.log(TAG + "insert(bigint_table," + bucket + ")"); 72 let rowid = await store.insert("bigint_table", bucket); 83 expect(value1).assertEqual(bucket["value1"]); 88 expect(value2).assertEqual(bucket["value2"]); 105 let bucket = { 110 console.log(TAG + "insert(bigint_table," + bucket + ")"); 111 let rowid = await store.insert("bigint_table", bucket); 122 expect(value1).assertEqual(bucket["value1"]); 127 expect(value2).assertEqual(bucket["value [all...] |