Home
last modified time | relevance | path

Searched refs:buckets (Results 1 – 25 of 128) sorted by relevance

123456

/OK3568_Linux_fs/external/xserver/Xext/
H A Dhashtable.c21 struct xorg_list *buckets; /* array of bucket list heads */ member
57 ht->buckets = xallocarray(numBuckets, sizeof(*ht->buckets)); in ht_create()
60 if (ht->buckets) { in ht_create()
62 xorg_list_init(&ht->buckets[c]); in ht_create()
78 xorg_list_for_each_entry_safe(it, tmp, &ht->buckets[c], l) { in ht_destroy()
85 free(ht->buckets); in ht_destroy()
98 newBuckets = xallocarray(newNumBuckets, sizeof(*ht->buckets)); in double_size()
106 xorg_list_for_each_entry_safe(it, tmp, &ht->buckets[c], l) { in double_size()
113 free(ht->buckets); in double_size()
115 ht->buckets = newBuckets; in double_size()
[all …]
/OK3568_Linux_fs/external/xserver/hw/xquartz/xpr/
H A Dx-hash.c45 x_list **buckets; member
117 old = h->buckets; in hash_table_split()
141 h->buckets = new; in hash_table_split()
157 h->buckets = calloc(hash_table_total_buckets(h), sizeof(x_list *)); in X_PFX()
159 if (h->buckets == 0) { in X_PFX()
182 for (node = h->buckets[i]; node != 0; node = node->next) { in X_PFX()
187 X_PFX(list_free) (h->buckets[i]); in X_PFX()
190 free(h->buckets); in X_PFX()
211 for (node = h->buckets[hash_value % hash_table_total_buckets(h)]; in hash_table_modify()
238 h->buckets[hash_value] = X_PFX(list_prepend) (h->buckets[hash_value], in hash_table_modify()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx5/core/steering/
H A Ddr_icm_pool.c43 struct mlx5dr_icm_bucket *buckets; member
335 hot_size += pool->buckets[chunk_order].hot_list_count * in dr_icm_hot_mem_size()
376 bool buckets[DR_CHUNK_SIZE_MAX]) in dr_icm_chill_buckets_start()
382 bucket = &pool->buckets[i]; in dr_icm_chill_buckets_start()
393 buckets[i] = true; in dr_icm_chill_buckets_start()
400 bool buckets[DR_CHUNK_SIZE_MAX]) in dr_icm_chill_buckets_end()
406 bucket = &pool->buckets[i]; in dr_icm_chill_buckets_end()
412 if (!buckets[i]) in dr_icm_chill_buckets_end()
422 bool buckets[DR_CHUNK_SIZE_MAX]) in dr_icm_chill_buckets_abort()
428 bucket = &pool->buckets[i]; in dr_icm_chill_buckets_abort()
[all …]
/OK3568_Linux_fs/external/security/librkcrypto/third_party/libdrm/src/
H A Dxf86drmHash.c126 for (bucket = table->buckets[i]; bucket;) { in drmHashDestroy()
148 for (bucket = table->buckets[hash]; bucket; bucket = bucket->next) { in HashFind()
153 bucket->next = table->buckets[hash]; in HashFind()
154 table->buckets[hash] = bucket; in HashFind()
194 bucket->next = table->buckets[hash]; in drmHashInsert()
195 table->buckets[hash] = bucket; in drmHashInsert()
211 table->buckets[hash] = bucket->next; in drmHashDelete()
227 table->p1 = table->buckets[table->p0]; in drmHashNext()
240 table->p1 = table->buckets[0]; in drmHashFirst()
/OK3568_Linux_fs/yocto/poky/meta/recipes-support/serf/serf/
H A D0001-buckets-ssl_buckets.c-do-not-use-ERR_GET_FUNC.patch4 Subject: [PATCH] buckets/ssl_buckets.c: do not use ERR_GET_FUNC
12 buckets/ssl_buckets.c | 3 +--
15 diff --git a/buckets/ssl_buckets.c b/buckets/ssl_buckets.c
17 --- a/buckets/ssl_buckets.c
18 +++ b/buckets/ssl_buckets.c
/OK3568_Linux_fs/kernel/tools/lib/bpf/
H A Dhashmap.h57 struct hashmap_entry **buckets; member
67 .buckets = NULL, \
157 for (cur = map->buckets[bkt]; cur; cur = cur->next)
169 for (cur = map->buckets[bkt]; \
180 for (cur = map->buckets \
181 ? map->buckets[hash_bits(map->hash_fn((_key), map->ctx), map->cap_bits)] \
188 for (cur = map->buckets \
189 ? map->buckets[hash_bits(map->hash_fn((_key), map->ctx), map->cap_bits)] \
H A Dhashmap.c45 map->buckets = NULL; in hashmap__init()
71 free(map->buckets); in hashmap__clear()
72 map->buckets = NULL; in hashmap__clear()
124 free(map->buckets); in hashmap_grow()
125 map->buckets = new_buckets; in hashmap_grow()
137 if (!map->buckets) in hashmap_find_entry()
140 for (prev_ptr = &map->buckets[hash], cur = *prev_ptr; in hashmap_find_entry()
200 hashmap_add_entry(&map->buckets[h], entry); in hashmap__insert()
/OK3568_Linux_fs/kernel/tools/perf/util/
H A Dhashmap.h57 struct hashmap_entry **buckets; member
67 .buckets = NULL, \
157 for (cur = map->buckets[bkt]; cur; cur = cur->next)
169 for (cur = map->buckets[bkt]; \
180 for (cur = map->buckets \
181 ? map->buckets[hash_bits(map->hash_fn((_key), map->ctx), map->cap_bits)] \
188 for (cur = map->buckets \
189 ? map->buckets[hash_bits(map->hash_fn((_key), map->ctx), map->cap_bits)] \
H A Dhashmap.c45 map->buckets = NULL; in hashmap__init()
71 free(map->buckets); in hashmap__clear()
72 map->buckets = NULL; in hashmap__clear()
124 free(map->buckets); in hashmap_grow()
125 map->buckets = new_buckets; in hashmap_grow()
137 if (!map->buckets) in hashmap_find_entry()
140 for (prev_ptr = &map->buckets[hash], cur = *prev_ptr; in hashmap_find_entry()
200 hashmap_add_entry(&map->buckets[h], entry); in hashmap__insert()
/OK3568_Linux_fs/kernel/drivers/s390/scsi/
H A Dzfcp_reqlist.h24 struct list_head buckets[ZFCP_REQ_LIST_BUCKETS]; member
50 INIT_LIST_HEAD(&rl->buckets[i]); in zfcp_reqlist_alloc()
66 if (!list_empty(&rl->buckets[i])) in zfcp_reqlist_isempty()
90 list_for_each_entry(req, &rl->buckets[i], list) in _zfcp_reqlist_find()
163 list_add_tail(&req->list, &rl->buckets[i]); in zfcp_reqlist_add()
180 list_splice_init(&rl->buckets[i], list); in zfcp_reqlist_move()
207 list_for_each_entry(req, &rl->buckets[i], list) in zfcp_reqlist_apply_for_all()
/OK3568_Linux_fs/kernel/block/
H A Dblk-stat.c86 for (bucket = 0; bucket < cb->buckets; bucket++) in blk_stat_timer_fn()
93 for (bucket = 0; bucket < cb->buckets; bucket++) { in blk_stat_timer_fn()
105 unsigned int buckets, void *data) in blk_stat_alloc_callback() argument
113 cb->stat = kmalloc_array(buckets, sizeof(struct blk_rq_stat), in blk_stat_alloc_callback()
119 cb->cpu_stat = __alloc_percpu(buckets * sizeof(struct blk_rq_stat), in blk_stat_alloc_callback()
130 cb->buckets = buckets; in blk_stat_alloc_callback()
147 for (bucket = 0; bucket < cb->buckets; bucket++) in blk_stat_add_callback()
/OK3568_Linux_fs/external/xserver/dix/
H A Dresource.c171 int buckets; member
651 clientTable[i].buckets = INITBUCKETS; in InitClientResources()
712 for (resp = clientTable[client].resources, i = clientTable[client].buckets; in GetXIDRange()
808 if (!rrec->buckets) { in AddResource()
813 if ((rrec->elements >= 4 * rrec->buckets) && (rrec->hashsize < MAXHASHSIZE)) in AddResource()
844 j = 2 * clientTable[client].buckets; in RebuildTable()
858 for (j = clientTable[client].buckets, in RebuildTable()
869 clientTable[client].buckets *= 2; in RebuildTable()
894 if (((cid = CLIENT_ID(id)) < LimitClients) && clientTable[cid].buckets) { in FreeResource()
928 if (((cid = CLIENT_ID(id)) < LimitClients) && clientTable[cid].buckets) { in FreeResourceByType()
[all …]
/OK3568_Linux_fs/kernel/fs/nfs/
H A Dpnfs_nfs.c102 p = kmalloc(struct_size(p, buckets, n), gfp_flags); in pnfs_alloc_commit_array()
109 for (b = &p->buckets[0]; n != 0; b++, n--) { in pnfs_alloc_commit_array()
259 struct pnfs_commit_bucket *buckets, in pnfs_bucket_scan_array() argument
267 cnt = pnfs_bucket_scan_ds_commit_list(&buckets[i], cinfo, max); in pnfs_bucket_scan_array()
288 cnt = pnfs_bucket_scan_array(cinfo, array->buckets, in pnfs_generic_scan_commit_lists()
304 struct pnfs_commit_bucket *buckets, in pnfs_bucket_recover_commit_reqs() argument
314 for (i = 0, b = buckets; i < nbuckets; i++, b++) { in pnfs_bucket_recover_commit_reqs()
343 array->buckets, in pnfs_generic_recover_commit_reqs()
355 pnfs_bucket_search_commit_reqs(struct pnfs_commit_bucket *buckets, in pnfs_bucket_search_commit_reqs() argument
364 for (i = 0, b = buckets; i < nbuckets; i++, b++) { in pnfs_bucket_search_commit_reqs()
[all …]
/OK3568_Linux_fs/kernel/net/ceph/crush/
H A Dcrush.c111 if (map->buckets) { in crush_destroy()
114 if (map->buckets[b] == NULL) in crush_destroy()
116 crush_destroy_bucket(map->buckets[b]); in crush_destroy()
118 kfree(map->buckets); in crush_destroy()
/OK3568_Linux_fs/kernel/kernel/bpf/
H A Dbpf_local_storage.c21 return &smap->buckets[hash_ptr(selem, smap->bucket_log)]; in select_bucket()
491 b = &smap->buckets[i]; in bpf_local_storage_map_free()
518 kvfree(smap->buckets); in bpf_local_storage_map_free()
558 cost = sizeof(*smap->buckets) * nbuckets + sizeof(*smap); in bpf_local_storage_map_alloc()
566 smap->buckets = kvcalloc(sizeof(*smap->buckets), nbuckets, in bpf_local_storage_map_alloc()
568 if (!smap->buckets) { in bpf_local_storage_map_alloc()
575 INIT_HLIST_HEAD(&smap->buckets[i].list); in bpf_local_storage_map_alloc()
576 raw_spin_lock_init(&smap->buckets[i].lock); in bpf_local_storage_map_alloc()
/OK3568_Linux_fs/kernel/net/netfilter/ipvs/
H A Dip_vs_sh.c70 struct ip_vs_sh_bucket buckets[IP_VS_SH_TAB_SIZE]; member
108 struct ip_vs_dest *dest = rcu_dereference(s->buckets[hash].dest); in ip_vs_sh_get()
130 dest = rcu_dereference(s->buckets[ihash].dest); in ip_vs_sh_get_fallback()
145 dest = rcu_dereference(s->buckets[hash].dest); in ip_vs_sh_get_fallback()
172 b = &s->buckets[0]; in ip_vs_sh_reassign()
216 b = &s->buckets[0]; in ip_vs_sh_flush()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx5/core/ipoib/
H A Dipoib_vlan.c45 struct hlist_head buckets[1 << MLX5I_MAX_LOG_PKEY_SUP]; member
71 static struct qpn_to_netdev *mlx5i_find_qpn_to_netdev_node(struct hlist_head *buckets, in mlx5i_find_qpn_to_netdev_node() argument
74 struct hlist_head *h = &buckets[hash_32(qpn, MLX5I_MAX_LOG_PKEY_SUP)]; in mlx5i_find_qpn_to_netdev_node()
99 hlist_add_head(&new_node->hlist, &ht->buckets[key]); in mlx5i_pkey_add_qpn()
112 node = mlx5i_find_qpn_to_netdev_node(ht->buckets, qpn); in mlx5i_pkey_del_qpn()
131 node = mlx5i_find_qpn_to_netdev_node(ipriv->qpn_htbl->buckets, qpn); in mlx5i_pkey_get_netdev()
/OK3568_Linux_fs/kernel/drivers/md/
H A Ddm-region-hash.c70 struct list_head *buckets; member
206 rh->buckets = vmalloc(array_size(nr_buckets, sizeof(*rh->buckets))); in dm_region_hash_create()
207 if (!rh->buckets) { in dm_region_hash_create()
214 INIT_LIST_HEAD(rh->buckets + i); in dm_region_hash_create()
228 vfree(rh->buckets); in dm_region_hash_create()
244 list_for_each_entry_safe(reg, nreg, rh->buckets + h, in dm_region_hash_destroy()
255 vfree(rh->buckets); in dm_region_hash_destroy()
274 struct list_head *bucket = rh->buckets + rh_hash(rh, region); in __rh_lookup()
285 list_add(&reg->hash_list, rh->buckets + rh_hash(rh, reg->key)); in __rh_insert()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8723ds/os_dep/linux/
H A Drhashtable.h79 struct rhash_head __rcu *buckets[] ____cacheline_aligned_in_smp; member
394 rht_for_each_continue(pos, (tbl)->buckets[hash], tbl, hash)
419 rht_for_each_entry_continue(tpos, pos, (tbl)->buckets[hash], \
435 for (pos = rht_dereference_bucket((tbl)->buckets[hash], tbl, hash), \
471 rht_for_each_rcu_continue(pos, (tbl)->buckets[hash], tbl, hash)
505 rht_for_each_entry_rcu_continue(tpos, pos, (tbl)->buckets[hash],\
640 head = rht_dereference_bucket(tbl->buckets[hash], tbl, hash); in __rhashtable_insert_fast()
644 rcu_assign_pointer(tbl->buckets[hash], obj); in __rhashtable_insert_fast()
760 pprev = &tbl->buckets[hash]; in __rhashtable_remove_fast()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8822bs/os_dep/linux/
H A Drhashtable.h79 struct rhash_head __rcu *buckets[] ____cacheline_aligned_in_smp; member
394 rht_for_each_continue(pos, (tbl)->buckets[hash], tbl, hash)
419 rht_for_each_entry_continue(tpos, pos, (tbl)->buckets[hash], \
435 for (pos = rht_dereference_bucket((tbl)->buckets[hash], tbl, hash), \
471 rht_for_each_rcu_continue(pos, (tbl)->buckets[hash], tbl, hash)
505 rht_for_each_entry_rcu_continue(tpos, pos, (tbl)->buckets[hash],\
640 head = rht_dereference_bucket(tbl->buckets[hash], tbl, hash); in __rhashtable_insert_fast()
644 rcu_assign_pointer(tbl->buckets[hash], obj); in __rhashtable_insert_fast()
760 pprev = &tbl->buckets[hash]; in __rhashtable_remove_fast()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8189fs/os_dep/linux/
H A Drhashtable.h79 struct rhash_head __rcu *buckets[] ____cacheline_aligned_in_smp; member
394 rht_for_each_continue(pos, (tbl)->buckets[hash], tbl, hash)
419 rht_for_each_entry_continue(tpos, pos, (tbl)->buckets[hash], \
435 for (pos = rht_dereference_bucket((tbl)->buckets[hash], tbl, hash), \
471 rht_for_each_rcu_continue(pos, (tbl)->buckets[hash], tbl, hash)
505 rht_for_each_entry_rcu_continue(tpos, pos, (tbl)->buckets[hash],\
640 head = rht_dereference_bucket(tbl->buckets[hash], tbl, hash); in __rhashtable_insert_fast()
644 rcu_assign_pointer(tbl->buckets[hash], obj); in __rhashtable_insert_fast()
760 pprev = &tbl->buckets[hash]; in __rhashtable_remove_fast()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8189fs/os_dep/linux/
H A Drhashtable.h80 struct rhash_head __rcu *buckets[] ____cacheline_aligned_in_smp; member
395 rht_for_each_continue(pos, (tbl)->buckets[hash], tbl, hash)
420 rht_for_each_entry_continue(tpos, pos, (tbl)->buckets[hash], \
436 for (pos = rht_dereference_bucket((tbl)->buckets[hash], tbl, hash), \
472 rht_for_each_rcu_continue(pos, (tbl)->buckets[hash], tbl, hash)
506 rht_for_each_entry_rcu_continue(tpos, pos, (tbl)->buckets[hash],\
641 head = rht_dereference_bucket(tbl->buckets[hash], tbl, hash); in __rhashtable_insert_fast()
645 rcu_assign_pointer(tbl->buckets[hash], obj); in __rhashtable_insert_fast()
761 pprev = &tbl->buckets[hash]; in __rhashtable_remove_fast()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8822cs/os_dep/linux/
H A Drhashtable.h79 struct rhash_head __rcu *buckets[] ____cacheline_aligned_in_smp; member
394 rht_for_each_continue(pos, (tbl)->buckets[hash], tbl, hash)
419 rht_for_each_entry_continue(tpos, pos, (tbl)->buckets[hash], \
435 for (pos = rht_dereference_bucket((tbl)->buckets[hash], tbl, hash), \
471 rht_for_each_rcu_continue(pos, (tbl)->buckets[hash], tbl, hash)
505 rht_for_each_entry_rcu_continue(tpos, pos, (tbl)->buckets[hash],\
640 head = rht_dereference_bucket(tbl->buckets[hash], tbl, hash); in __rhashtable_insert_fast()
644 rcu_assign_pointer(tbl->buckets[hash], obj); in __rhashtable_insert_fast()
760 pprev = &tbl->buckets[hash]; in __rhashtable_remove_fast()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/os_dep/linux/
H A Drhashtable.h79 struct rhash_head __rcu *buckets[] ____cacheline_aligned_in_smp; member
394 rht_for_each_continue(pos, (tbl)->buckets[hash], tbl, hash)
419 rht_for_each_entry_continue(tpos, pos, (tbl)->buckets[hash], \
435 for (pos = rht_dereference_bucket((tbl)->buckets[hash], tbl, hash), \
471 rht_for_each_rcu_continue(pos, (tbl)->buckets[hash], tbl, hash)
505 rht_for_each_entry_rcu_continue(tpos, pos, (tbl)->buckets[hash],\
640 head = rht_dereference_bucket(tbl->buckets[hash], tbl, hash); in __rhashtable_insert_fast()
644 rcu_assign_pointer(tbl->buckets[hash], obj); in __rhashtable_insert_fast()
760 pprev = &tbl->buckets[hash]; in __rhashtable_remove_fast()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8188fu/os_dep/linux/
H A Drhashtable.h79 struct rhash_head __rcu *buckets[] ____cacheline_aligned_in_smp; member
394 rht_for_each_continue(pos, (tbl)->buckets[hash], tbl, hash)
419 rht_for_each_entry_continue(tpos, pos, (tbl)->buckets[hash], \
435 for (pos = rht_dereference_bucket((tbl)->buckets[hash], tbl, hash), \
471 rht_for_each_rcu_continue(pos, (tbl)->buckets[hash], tbl, hash)
505 rht_for_each_entry_rcu_continue(tpos, pos, (tbl)->buckets[hash],\
640 head = rht_dereference_bucket(tbl->buckets[hash], tbl, hash); in __rhashtable_insert_fast()
644 rcu_assign_pointer(tbl->buckets[hash], obj); in __rhashtable_insert_fast()
760 pprev = &tbl->buckets[hash]; in __rhashtable_remove_fast()

123456