Home
last modified time | relevance | path

Searched refs:tbl (Results 1 – 25 of 486) sorted by relevance

12345678910>>...20

/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx5/core/steering/
H A Ddr_table.c6 int mlx5dr_table_set_miss_action(struct mlx5dr_table *tbl, in mlx5dr_table_set_miss_action() argument
17 mlx5dr_domain_lock(tbl->dmn); in mlx5dr_table_set_miss_action()
19 if (!list_empty(&tbl->matcher_list)) in mlx5dr_table_set_miss_action()
20 last_matcher = list_last_entry(&tbl->matcher_list, in mlx5dr_table_set_miss_action()
24 if (tbl->dmn->type == MLX5DR_DOMAIN_TYPE_NIC_RX || in mlx5dr_table_set_miss_action()
25 tbl->dmn->type == MLX5DR_DOMAIN_TYPE_FDB) { in mlx5dr_table_set_miss_action()
29 last_htbl = tbl->rx.s_anchor; in mlx5dr_table_set_miss_action()
31 tbl->rx.default_icm_addr = action ? in mlx5dr_table_set_miss_action()
32 action->dest_tbl.tbl->rx.s_anchor->chunk->icm_addr : in mlx5dr_table_set_miss_action()
33 tbl->rx.nic_dmn->default_icm_addr; in mlx5dr_table_set_miss_action()
[all …]
/OK3568_Linux_fs/kernel/fs/nfs/
H A Dnfs4session.c27 static void nfs4_init_slot_table(struct nfs4_slot_table *tbl, const char *queue) in nfs4_init_slot_table() argument
29 tbl->highest_used_slotid = NFS4_NO_SLOT; in nfs4_init_slot_table()
30 spin_lock_init(&tbl->slot_tbl_lock); in nfs4_init_slot_table()
31 rpc_init_priority_wait_queue(&tbl->slot_tbl_waitq, queue); in nfs4_init_slot_table()
32 init_waitqueue_head(&tbl->slot_waitq); in nfs4_init_slot_table()
33 init_completion(&tbl->complete); in nfs4_init_slot_table()
39 static void nfs4_shrink_slot_table(struct nfs4_slot_table *tbl, u32 newsize) in nfs4_shrink_slot_table() argument
42 if (newsize >= tbl->max_slots) in nfs4_shrink_slot_table()
45 p = &tbl->slots; in nfs4_shrink_slot_table()
53 tbl->max_slots--; in nfs4_shrink_slot_table()
[all …]
/OK3568_Linux_fs/kernel/arch/powerpc/kernel/
H A Diommu.c164 struct iommu_table *tbl, in iommu_range_alloc() argument
197 pool_nr = raw_cpu_read(iommu_pool_hash) & (tbl->nr_pools - 1); in iommu_range_alloc()
200 pool = &(tbl->large_pool); in iommu_range_alloc()
202 pool = &(tbl->pools[pool_nr]); in iommu_range_alloc()
222 if (limit + tbl->it_offset > mask) { in iommu_range_alloc()
223 limit = mask - tbl->it_offset + 1; in iommu_range_alloc()
230 pool = &(tbl->pools[0]); in iommu_range_alloc()
238 n = iommu_area_alloc(tbl->it_map, limit, start, npages, tbl->it_offset, in iommu_range_alloc()
239 dma_get_seg_boundary_nr_pages(dev, tbl->it_page_shift), in iommu_range_alloc()
248 } else if (pass <= tbl->nr_pools) { in iommu_range_alloc()
[all …]
/OK3568_Linux_fs/kernel/drivers/infiniband/hw/vmw_pvrdma/
H A Dpvrdma_doorbell.c56 struct pvrdma_id_table *tbl = &dev->uar_table.tbl; in pvrdma_uar_table_init() local
61 tbl->last = 0; in pvrdma_uar_table_init()
62 tbl->top = 0; in pvrdma_uar_table_init()
63 tbl->max = num; in pvrdma_uar_table_init()
64 tbl->mask = mask; in pvrdma_uar_table_init()
65 spin_lock_init(&tbl->lock); in pvrdma_uar_table_init()
66 tbl->table = kcalloc(BITS_TO_LONGS(num), sizeof(long), GFP_KERNEL); in pvrdma_uar_table_init()
67 if (!tbl->table) in pvrdma_uar_table_init()
71 set_bit(0, tbl->table); in pvrdma_uar_table_init()
78 struct pvrdma_id_table *tbl = &dev->uar_table.tbl; in pvrdma_uar_table_cleanup() local
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8723ds/os_dep/linux/
H A Drhashtable.h145 struct bucket_table __rcu *tbl; member
162 struct bucket_table *tbl; member
205 static inline unsigned int rht_bucket_index(const struct bucket_table *tbl, in rht_bucket_index() argument
208 return (hash >> RHT_HASH_RESERVED_SPACE) & (tbl->size - 1); in rht_bucket_index()
212 struct rhashtable *ht, const struct bucket_table *tbl, in rht_key_hashfn() argument
219 hash = ht->p.hashfn(key, ht->key_len, tbl->hash_rnd); in rht_key_hashfn()
224 hash = params.hashfn(key, key_len, tbl->hash_rnd); in rht_key_hashfn()
226 hash = jhash(key, key_len, tbl->hash_rnd); in rht_key_hashfn()
229 tbl->hash_rnd); in rht_key_hashfn()
234 hash = params.hashfn(key, key_len, tbl->hash_rnd); in rht_key_hashfn()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8822bs/os_dep/linux/
H A Drhashtable.h145 struct bucket_table __rcu *tbl; member
162 struct bucket_table *tbl; member
205 static inline unsigned int rht_bucket_index(const struct bucket_table *tbl, in rht_bucket_index() argument
208 return (hash >> RHT_HASH_RESERVED_SPACE) & (tbl->size - 1); in rht_bucket_index()
212 struct rhashtable *ht, const struct bucket_table *tbl, in rht_key_hashfn() argument
219 hash = ht->p.hashfn(key, ht->key_len, tbl->hash_rnd); in rht_key_hashfn()
224 hash = params.hashfn(key, key_len, tbl->hash_rnd); in rht_key_hashfn()
226 hash = jhash(key, key_len, tbl->hash_rnd); in rht_key_hashfn()
229 tbl->hash_rnd); in rht_key_hashfn()
234 hash = params.hashfn(key, key_len, tbl->hash_rnd); in rht_key_hashfn()
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8189fs/os_dep/linux/
H A Drhashtable.h145 struct bucket_table __rcu *tbl; member
162 struct bucket_table *tbl; member
205 static inline unsigned int rht_bucket_index(const struct bucket_table *tbl, in rht_bucket_index() argument
208 return (hash >> RHT_HASH_RESERVED_SPACE) & (tbl->size - 1); in rht_bucket_index()
212 struct rhashtable *ht, const struct bucket_table *tbl, in rht_key_hashfn() argument
219 hash = ht->p.hashfn(key, ht->key_len, tbl->hash_rnd); in rht_key_hashfn()
224 hash = params.hashfn(key, key_len, tbl->hash_rnd); in rht_key_hashfn()
226 hash = jhash(key, key_len, tbl->hash_rnd); in rht_key_hashfn()
229 tbl->hash_rnd); in rht_key_hashfn()
234 hash = params.hashfn(key, key_len, tbl->hash_rnd); in rht_key_hashfn()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8189fs/os_dep/linux/
H A Drhashtable.h146 struct bucket_table __rcu *tbl; member
163 struct bucket_table *tbl; member
206 static inline unsigned int rht_bucket_index(const struct bucket_table *tbl, in rht_bucket_index() argument
209 return (hash >> RHT_HASH_RESERVED_SPACE) & (tbl->size - 1); in rht_bucket_index()
213 struct rhashtable *ht, const struct bucket_table *tbl, in rht_key_hashfn() argument
220 hash = ht->p.hashfn(key, ht->key_len, tbl->hash_rnd); in rht_key_hashfn()
225 hash = params.hashfn(key, key_len, tbl->hash_rnd); in rht_key_hashfn()
227 hash = jhash(key, key_len, tbl->hash_rnd); in rht_key_hashfn()
230 tbl->hash_rnd); in rht_key_hashfn()
235 hash = params.hashfn(key, key_len, tbl->hash_rnd); in rht_key_hashfn()
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8822cs/os_dep/linux/
H A Drhashtable.h145 struct bucket_table __rcu *tbl; member
162 struct bucket_table *tbl; member
205 static inline unsigned int rht_bucket_index(const struct bucket_table *tbl, in rht_bucket_index() argument
208 return (hash >> RHT_HASH_RESERVED_SPACE) & (tbl->size - 1); in rht_bucket_index()
212 struct rhashtable *ht, const struct bucket_table *tbl, in rht_key_hashfn() argument
219 hash = ht->p.hashfn(key, ht->key_len, tbl->hash_rnd); in rht_key_hashfn()
224 hash = params.hashfn(key, key_len, tbl->hash_rnd); in rht_key_hashfn()
226 hash = jhash(key, key_len, tbl->hash_rnd); in rht_key_hashfn()
229 tbl->hash_rnd); in rht_key_hashfn()
234 hash = params.hashfn(key, key_len, tbl->hash_rnd); in rht_key_hashfn()
[all …]
H A Drhashtable.c35 const struct bucket_table *tbl, in head_hashfn() argument
38 return rht_head_hashfn(ht, tbl, he, ht->p); in head_hashfn()
49 int lockdep_rht_bucket_is_held(const struct bucket_table *tbl, u32 hash) in lockdep_rht_bucket_is_held() argument
51 spinlock_t *lock = rht_bucket_lock(tbl, hash); in lockdep_rht_bucket_is_held()
60 static int alloc_bucket_locks(struct rhashtable *ht, struct bucket_table *tbl, in alloc_bucket_locks() argument
74 size = min_t(unsigned int, size, tbl->size >> 1); in alloc_bucket_locks()
80 tbl->locks = vmalloc(size * sizeof(spinlock_t)); in alloc_bucket_locks()
83 tbl->locks = kmalloc_array(size, sizeof(spinlock_t), in alloc_bucket_locks()
85 if (!tbl->locks) in alloc_bucket_locks()
88 spin_lock_init(&tbl->locks[i]); in alloc_bucket_locks()
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/os_dep/linux/
H A Drhashtable.h145 struct bucket_table __rcu *tbl; member
162 struct bucket_table *tbl; member
205 static inline unsigned int rht_bucket_index(const struct bucket_table *tbl, in rht_bucket_index() argument
208 return (hash >> RHT_HASH_RESERVED_SPACE) & (tbl->size - 1); in rht_bucket_index()
212 struct rhashtable *ht, const struct bucket_table *tbl, in rht_key_hashfn() argument
219 hash = ht->p.hashfn(key, ht->key_len, tbl->hash_rnd); in rht_key_hashfn()
224 hash = params.hashfn(key, key_len, tbl->hash_rnd); in rht_key_hashfn()
226 hash = jhash(key, key_len, tbl->hash_rnd); in rht_key_hashfn()
229 tbl->hash_rnd); in rht_key_hashfn()
234 hash = params.hashfn(key, key_len, tbl->hash_rnd); in rht_key_hashfn()
[all …]
H A Drhashtable.c35 const struct bucket_table *tbl, in head_hashfn() argument
38 return rht_head_hashfn(ht, tbl, he, ht->p); in head_hashfn()
49 int lockdep_rht_bucket_is_held(const struct bucket_table *tbl, u32 hash) in lockdep_rht_bucket_is_held() argument
51 spinlock_t *lock = rht_bucket_lock(tbl, hash); in lockdep_rht_bucket_is_held()
60 static int alloc_bucket_locks(struct rhashtable *ht, struct bucket_table *tbl, in alloc_bucket_locks() argument
74 size = min_t(unsigned int, size, tbl->size >> 1); in alloc_bucket_locks()
80 tbl->locks = vmalloc(size * sizeof(spinlock_t)); in alloc_bucket_locks()
83 tbl->locks = kmalloc_array(size, sizeof(spinlock_t), in alloc_bucket_locks()
85 if (!tbl->locks) in alloc_bucket_locks()
88 spin_lock_init(&tbl->locks[i]); in alloc_bucket_locks()
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8188fu/os_dep/linux/
H A Drhashtable.h145 struct bucket_table __rcu *tbl; member
162 struct bucket_table *tbl; member
205 static inline unsigned int rht_bucket_index(const struct bucket_table *tbl, in rht_bucket_index() argument
208 return (hash >> RHT_HASH_RESERVED_SPACE) & (tbl->size - 1); in rht_bucket_index()
212 struct rhashtable *ht, const struct bucket_table *tbl, in rht_key_hashfn() argument
219 hash = ht->p.hashfn(key, ht->key_len, tbl->hash_rnd); in rht_key_hashfn()
224 hash = params.hashfn(key, key_len, tbl->hash_rnd); in rht_key_hashfn()
226 hash = jhash(key, key_len, tbl->hash_rnd); in rht_key_hashfn()
229 tbl->hash_rnd); in rht_key_hashfn()
234 hash = params.hashfn(key, key_len, tbl->hash_rnd); in rht_key_hashfn()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8188fu/os_dep/linux/
H A Drhashtable.h146 struct bucket_table __rcu *tbl; member
163 struct bucket_table *tbl; member
206 static inline unsigned int rht_bucket_index(const struct bucket_table *tbl, in rht_bucket_index() argument
209 return (hash >> RHT_HASH_RESERVED_SPACE) & (tbl->size - 1); in rht_bucket_index()
213 struct rhashtable *ht, const struct bucket_table *tbl, in rht_key_hashfn() argument
220 hash = ht->p.hashfn(key, ht->key_len, tbl->hash_rnd); in rht_key_hashfn()
225 hash = params.hashfn(key, key_len, tbl->hash_rnd); in rht_key_hashfn()
227 hash = jhash(key, key_len, tbl->hash_rnd); in rht_key_hashfn()
230 tbl->hash_rnd); in rht_key_hashfn()
235 hash = params.hashfn(key, key_len, tbl->hash_rnd); in rht_key_hashfn()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8188eu/os_dep/linux/
H A Drhashtable.h146 struct bucket_table __rcu *tbl; member
163 struct bucket_table *tbl; member
206 static inline unsigned int rht_bucket_index(const struct bucket_table *tbl, in rht_bucket_index() argument
209 return (hash >> RHT_HASH_RESERVED_SPACE) & (tbl->size - 1); in rht_bucket_index()
213 struct rhashtable *ht, const struct bucket_table *tbl, in rht_key_hashfn() argument
220 hash = ht->p.hashfn(key, ht->key_len, tbl->hash_rnd); in rht_key_hashfn()
225 hash = params.hashfn(key, key_len, tbl->hash_rnd); in rht_key_hashfn()
227 hash = jhash(key, key_len, tbl->hash_rnd); in rht_key_hashfn()
230 tbl->hash_rnd); in rht_key_hashfn()
235 hash = params.hashfn(key, key_len, tbl->hash_rnd); in rht_key_hashfn()
[all …]
H A Drhashtable.c36 const struct bucket_table *tbl, in head_hashfn() argument
39 return rht_head_hashfn(ht, tbl, he, ht->p); in head_hashfn()
50 int lockdep_rht_bucket_is_held(const struct bucket_table *tbl, u32 hash) in lockdep_rht_bucket_is_held() argument
52 spinlock_t *lock = rht_bucket_lock(tbl, hash); in lockdep_rht_bucket_is_held()
61 static int alloc_bucket_locks(struct rhashtable *ht, struct bucket_table *tbl, in alloc_bucket_locks() argument
75 size = min_t(unsigned int, size, tbl->size >> 1); in alloc_bucket_locks()
81 tbl->locks = vmalloc(size * sizeof(spinlock_t)); in alloc_bucket_locks()
84 tbl->locks = kmalloc_array(size, sizeof(spinlock_t), in alloc_bucket_locks()
86 if (!tbl->locks) in alloc_bucket_locks()
89 spin_lock_init(&tbl->locks[i]); in alloc_bucket_locks()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723ds/os_dep/linux/
H A Drhashtable.h146 struct bucket_table __rcu *tbl; member
163 struct bucket_table *tbl; member
206 static inline unsigned int rht_bucket_index(const struct bucket_table *tbl, in rht_bucket_index() argument
209 return (hash >> RHT_HASH_RESERVED_SPACE) & (tbl->size - 1); in rht_bucket_index()
213 struct rhashtable *ht, const struct bucket_table *tbl, in rht_key_hashfn() argument
220 hash = ht->p.hashfn(key, ht->key_len, tbl->hash_rnd); in rht_key_hashfn()
225 hash = params.hashfn(key, key_len, tbl->hash_rnd); in rht_key_hashfn()
227 hash = jhash(key, key_len, tbl->hash_rnd); in rht_key_hashfn()
230 tbl->hash_rnd); in rht_key_hashfn()
235 hash = params.hashfn(key, key_len, tbl->hash_rnd); in rht_key_hashfn()
[all …]
H A Drhashtable.c36 const struct bucket_table *tbl, in head_hashfn() argument
39 return rht_head_hashfn(ht, tbl, he, ht->p); in head_hashfn()
50 int lockdep_rht_bucket_is_held(const struct bucket_table *tbl, u32 hash) in lockdep_rht_bucket_is_held() argument
52 spinlock_t *lock = rht_bucket_lock(tbl, hash); in lockdep_rht_bucket_is_held()
61 static int alloc_bucket_locks(struct rhashtable *ht, struct bucket_table *tbl, in alloc_bucket_locks() argument
75 size = min_t(unsigned int, size, tbl->size >> 1); in alloc_bucket_locks()
81 tbl->locks = vmalloc(size * sizeof(spinlock_t)); in alloc_bucket_locks()
84 tbl->locks = kmalloc_array(size, sizeof(spinlock_t), in alloc_bucket_locks()
86 if (!tbl->locks) in alloc_bucket_locks()
89 spin_lock_init(&tbl->locks[i]); in alloc_bucket_locks()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723cs/os_dep/linux/
H A Drhashtable.h145 struct bucket_table __rcu *tbl; member
162 struct bucket_table *tbl; member
205 static inline unsigned int rht_bucket_index(const struct bucket_table *tbl, in rht_bucket_index() argument
208 return (hash >> RHT_HASH_RESERVED_SPACE) & (tbl->size - 1); in rht_bucket_index()
212 struct rhashtable *ht, const struct bucket_table *tbl, in rht_key_hashfn() argument
219 hash = ht->p.hashfn(key, ht->key_len, tbl->hash_rnd); in rht_key_hashfn()
224 hash = params.hashfn(key, key_len, tbl->hash_rnd); in rht_key_hashfn()
226 hash = jhash(key, key_len, tbl->hash_rnd); in rht_key_hashfn()
229 tbl->hash_rnd); in rht_key_hashfn()
234 hash = params.hashfn(key, key_len, tbl->hash_rnd); in rht_key_hashfn()
[all …]
H A Drhashtable.c35 const struct bucket_table *tbl, in head_hashfn() argument
38 return rht_head_hashfn(ht, tbl, he, ht->p); in head_hashfn()
49 int lockdep_rht_bucket_is_held(const struct bucket_table *tbl, u32 hash) in lockdep_rht_bucket_is_held() argument
51 spinlock_t *lock = rht_bucket_lock(tbl, hash); in lockdep_rht_bucket_is_held()
60 static int alloc_bucket_locks(struct rhashtable *ht, struct bucket_table *tbl, in alloc_bucket_locks() argument
74 size = min_t(unsigned int, size, tbl->size >> 1); in alloc_bucket_locks()
80 tbl->locks = vmalloc(size * sizeof(spinlock_t)); in alloc_bucket_locks()
83 tbl->locks = kmalloc_array(size, sizeof(spinlock_t), in alloc_bucket_locks()
85 if (!tbl->locks) in alloc_bucket_locks()
88 spin_lock_init(&tbl->locks[i]); in alloc_bucket_locks()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8821cs/os_dep/linux/
H A Drhashtable.h146 struct bucket_table __rcu *tbl; member
163 struct bucket_table *tbl; member
206 static inline unsigned int rht_bucket_index(const struct bucket_table *tbl, in rht_bucket_index() argument
209 return (hash >> RHT_HASH_RESERVED_SPACE) & (tbl->size - 1); in rht_bucket_index()
213 struct rhashtable *ht, const struct bucket_table *tbl, in rht_key_hashfn() argument
220 hash = ht->p.hashfn(key, ht->key_len, tbl->hash_rnd); in rht_key_hashfn()
225 hash = params.hashfn(key, key_len, tbl->hash_rnd); in rht_key_hashfn()
227 hash = jhash(key, key_len, tbl->hash_rnd); in rht_key_hashfn()
230 tbl->hash_rnd); in rht_key_hashfn()
235 hash = params.hashfn(key, key_len, tbl->hash_rnd); in rht_key_hashfn()
[all …]
H A Drhashtable.c36 const struct bucket_table *tbl, in head_hashfn() argument
39 return rht_head_hashfn(ht, tbl, he, ht->p); in head_hashfn()
50 int lockdep_rht_bucket_is_held(const struct bucket_table *tbl, u32 hash) in lockdep_rht_bucket_is_held() argument
52 spinlock_t *lock = rht_bucket_lock(tbl, hash); in lockdep_rht_bucket_is_held()
61 static int alloc_bucket_locks(struct rhashtable *ht, struct bucket_table *tbl, in alloc_bucket_locks() argument
75 size = min_t(unsigned int, size, tbl->size >> 1); in alloc_bucket_locks()
81 tbl->locks = vmalloc(size * sizeof(spinlock_t)); in alloc_bucket_locks()
84 tbl->locks = kmalloc_array(size, sizeof(spinlock_t), in alloc_bucket_locks()
86 if (!tbl->locks) in alloc_bucket_locks()
89 spin_lock_init(&tbl->locks[i]); in alloc_bucket_locks()
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8821cs/os_dep/linux/
H A Drhashtable.h145 struct bucket_table __rcu *tbl; member
162 struct bucket_table *tbl; member
205 static inline unsigned int rht_bucket_index(const struct bucket_table *tbl, in rht_bucket_index() argument
208 return (hash >> RHT_HASH_RESERVED_SPACE) & (tbl->size - 1); in rht_bucket_index()
212 struct rhashtable *ht, const struct bucket_table *tbl, in rht_key_hashfn() argument
219 hash = ht->p.hashfn(key, ht->key_len, tbl->hash_rnd); in rht_key_hashfn()
224 hash = params.hashfn(key, key_len, tbl->hash_rnd); in rht_key_hashfn()
226 hash = jhash(key, key_len, tbl->hash_rnd); in rht_key_hashfn()
229 tbl->hash_rnd); in rht_key_hashfn()
234 hash = params.hashfn(key, key_len, tbl->hash_rnd); in rht_key_hashfn()
[all …]
H A Drhashtable.c35 const struct bucket_table *tbl, in head_hashfn() argument
38 return rht_head_hashfn(ht, tbl, he, ht->p); in head_hashfn()
49 int lockdep_rht_bucket_is_held(const struct bucket_table *tbl, u32 hash) in lockdep_rht_bucket_is_held() argument
51 spinlock_t *lock = rht_bucket_lock(tbl, hash); in lockdep_rht_bucket_is_held()
60 static int alloc_bucket_locks(struct rhashtable *ht, struct bucket_table *tbl, in alloc_bucket_locks() argument
74 size = min_t(unsigned int, size, tbl->size >> 1); in alloc_bucket_locks()
80 tbl->locks = vmalloc(size * sizeof(spinlock_t)); in alloc_bucket_locks()
83 tbl->locks = kmalloc_array(size, sizeof(spinlock_t), in alloc_bucket_locks()
85 if (!tbl->locks) in alloc_bucket_locks()
88 spin_lock_init(&tbl->locks[i]); in alloc_bucket_locks()
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/os_dep/linux/
H A Drhashtable.h145 struct bucket_table __rcu *tbl; member
162 struct bucket_table *tbl; member
205 static inline unsigned int rht_bucket_index(const struct bucket_table *tbl, in rht_bucket_index() argument
208 return (hash >> RHT_HASH_RESERVED_SPACE) & (tbl->size - 1); in rht_bucket_index()
212 struct rhashtable *ht, const struct bucket_table *tbl, in rht_key_hashfn() argument
219 hash = ht->p.hashfn(key, ht->key_len, tbl->hash_rnd); in rht_key_hashfn()
224 hash = params.hashfn(key, key_len, tbl->hash_rnd); in rht_key_hashfn()
226 hash = jhash(key, key_len, tbl->hash_rnd); in rht_key_hashfn()
229 tbl->hash_rnd); in rht_key_hashfn()
234 hash = params.hashfn(key, key_len, tbl->hash_rnd); in rht_key_hashfn()
[all …]

12345678910>>...20