| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8188eu/os_dep/linux/ |
| H A D | rhashtable.c | 35 static u32 head_hashfn(struct rhashtable *ht, in head_hashfn() argument 39 return rht_head_hashfn(ht, tbl, he, ht->p); in head_hashfn() 45 int lockdep_rht_mutex_is_held(struct rhashtable *ht) in lockdep_rht_mutex_is_held() argument 47 return (debug_locks) ? lockdep_is_held(&ht->mutex) : 1; in lockdep_rht_mutex_is_held() 61 static int alloc_bucket_locks(struct rhashtable *ht, struct bucket_table *tbl, in alloc_bucket_locks() argument 72 size = roundup_pow_of_two(nr_pcpus * ht->p.locks_mul); in alloc_bucket_locks() 109 static struct bucket_table *bucket_table_alloc(struct rhashtable *ht, in bucket_table_alloc() argument 128 if (alloc_bucket_locks(ht, tbl, gfp) < 0) { in bucket_table_alloc() 138 INIT_RHT_NULLS_HEAD(tbl->buckets[i], ht, i); in bucket_table_alloc() 143 static struct bucket_table *rhashtable_last_table(struct rhashtable *ht, in rhashtable_last_table() argument [all …]
|
| H A D | rhashtable.h | 89 struct rhashtable *ht; member 175 struct rhashtable *ht; member 182 static inline unsigned long rht_marker(const struct rhashtable *ht, u32 hash) in rht_marker() argument 184 return NULLS_MARKER(ht->p.nulls_base + hash); in rht_marker() 187 #define INIT_RHT_NULLS_HEAD(ptr, ht, hash) \ argument 188 ((ptr) = (typeof(ptr)) rht_marker(ht, hash)) 200 static inline void *rht_obj(const struct rhashtable *ht, in rht_obj() argument 203 return (char *)he - ht->p.head_offset; in rht_obj() 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() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/os_dep/linux/ |
| H A D | rhashtable.c | 34 static u32 head_hashfn(struct rhashtable *ht, in head_hashfn() argument 38 return rht_head_hashfn(ht, tbl, he, ht->p); in head_hashfn() 44 int lockdep_rht_mutex_is_held(struct rhashtable *ht) in lockdep_rht_mutex_is_held() argument 46 return (debug_locks) ? lockdep_is_held(&ht->mutex) : 1; in lockdep_rht_mutex_is_held() 60 static int alloc_bucket_locks(struct rhashtable *ht, struct bucket_table *tbl, in alloc_bucket_locks() argument 71 size = roundup_pow_of_two(nr_pcpus * ht->p.locks_mul); in alloc_bucket_locks() 108 static struct bucket_table *bucket_table_alloc(struct rhashtable *ht, in bucket_table_alloc() argument 127 if (alloc_bucket_locks(ht, tbl, gfp) < 0) { in bucket_table_alloc() 137 INIT_RHT_NULLS_HEAD(tbl->buckets[i], ht, i); in bucket_table_alloc() 142 static struct bucket_table *rhashtable_last_table(struct rhashtable *ht, in rhashtable_last_table() argument [all …]
|
| H A D | rhashtable.h | 88 struct rhashtable *ht; member 174 struct rhashtable *ht; member 181 static inline unsigned long rht_marker(const struct rhashtable *ht, u32 hash) in rht_marker() argument 183 return NULLS_MARKER(ht->p.nulls_base + hash); in rht_marker() 186 #define INIT_RHT_NULLS_HEAD(ptr, ht, hash) \ argument 187 ((ptr) = (typeof(ptr)) rht_marker(ht, hash)) 199 static inline void *rht_obj(const struct rhashtable *ht, in rht_obj() argument 202 return (char *)he - ht->p.head_offset; in rht_obj() 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() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723cs/os_dep/linux/ |
| H A D | rhashtable.c | 34 static u32 head_hashfn(struct rhashtable *ht, in head_hashfn() argument 38 return rht_head_hashfn(ht, tbl, he, ht->p); in head_hashfn() 44 int lockdep_rht_mutex_is_held(struct rhashtable *ht) in lockdep_rht_mutex_is_held() argument 46 return (debug_locks) ? lockdep_is_held(&ht->mutex) : 1; in lockdep_rht_mutex_is_held() 60 static int alloc_bucket_locks(struct rhashtable *ht, struct bucket_table *tbl, in alloc_bucket_locks() argument 71 size = roundup_pow_of_two(nr_pcpus * ht->p.locks_mul); in alloc_bucket_locks() 108 static struct bucket_table *bucket_table_alloc(struct rhashtable *ht, in bucket_table_alloc() argument 127 if (alloc_bucket_locks(ht, tbl, gfp) < 0) { in bucket_table_alloc() 137 INIT_RHT_NULLS_HEAD(tbl->buckets[i], ht, i); in bucket_table_alloc() 142 static struct bucket_table *rhashtable_last_table(struct rhashtable *ht, in rhashtable_last_table() argument [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8821cs/os_dep/linux/ |
| H A D | rhashtable.c | 34 static u32 head_hashfn(struct rhashtable *ht, in head_hashfn() argument 38 return rht_head_hashfn(ht, tbl, he, ht->p); in head_hashfn() 44 int lockdep_rht_mutex_is_held(struct rhashtable *ht) in lockdep_rht_mutex_is_held() argument 46 return (debug_locks) ? lockdep_is_held(&ht->mutex) : 1; in lockdep_rht_mutex_is_held() 60 static int alloc_bucket_locks(struct rhashtable *ht, struct bucket_table *tbl, in alloc_bucket_locks() argument 71 size = roundup_pow_of_two(nr_pcpus * ht->p.locks_mul); in alloc_bucket_locks() 108 static struct bucket_table *bucket_table_alloc(struct rhashtable *ht, in bucket_table_alloc() argument 127 if (alloc_bucket_locks(ht, tbl, gfp) < 0) { in bucket_table_alloc() 137 INIT_RHT_NULLS_HEAD(tbl->buckets[i], ht, i); in bucket_table_alloc() 142 static struct bucket_table *rhashtable_last_table(struct rhashtable *ht, in rhashtable_last_table() argument [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8822cs/os_dep/linux/ |
| H A D | rhashtable.c | 34 static u32 head_hashfn(struct rhashtable *ht, in head_hashfn() argument 38 return rht_head_hashfn(ht, tbl, he, ht->p); in head_hashfn() 44 int lockdep_rht_mutex_is_held(struct rhashtable *ht) in lockdep_rht_mutex_is_held() argument 46 return (debug_locks) ? lockdep_is_held(&ht->mutex) : 1; in lockdep_rht_mutex_is_held() 60 static int alloc_bucket_locks(struct rhashtable *ht, struct bucket_table *tbl, in alloc_bucket_locks() argument 71 size = roundup_pow_of_two(nr_pcpus * ht->p.locks_mul); in alloc_bucket_locks() 108 static struct bucket_table *bucket_table_alloc(struct rhashtable *ht, in bucket_table_alloc() argument 127 if (alloc_bucket_locks(ht, tbl, gfp) < 0) { in bucket_table_alloc() 137 INIT_RHT_NULLS_HEAD(tbl->buckets[i], ht, i); in bucket_table_alloc() 142 static struct bucket_table *rhashtable_last_table(struct rhashtable *ht, in rhashtable_last_table() argument [all …]
|
| H A D | rhashtable.h | 88 struct rhashtable *ht; member 174 struct rhashtable *ht; member 181 static inline unsigned long rht_marker(const struct rhashtable *ht, u32 hash) in rht_marker() argument 183 return NULLS_MARKER(ht->p.nulls_base + hash); in rht_marker() 186 #define INIT_RHT_NULLS_HEAD(ptr, ht, hash) \ argument 187 ((ptr) = (typeof(ptr)) rht_marker(ht, hash)) 199 static inline void *rht_obj(const struct rhashtable *ht, in rht_obj() argument 202 return (char *)he - ht->p.head_offset; in rht_obj() 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() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8821cs/os_dep/linux/ |
| H A D | rhashtable.c | 35 static u32 head_hashfn(struct rhashtable *ht, in head_hashfn() argument 39 return rht_head_hashfn(ht, tbl, he, ht->p); in head_hashfn() 45 int lockdep_rht_mutex_is_held(struct rhashtable *ht) in lockdep_rht_mutex_is_held() argument 47 return (debug_locks) ? lockdep_is_held(&ht->mutex) : 1; in lockdep_rht_mutex_is_held() 61 static int alloc_bucket_locks(struct rhashtable *ht, struct bucket_table *tbl, in alloc_bucket_locks() argument 72 size = roundup_pow_of_two(nr_pcpus * ht->p.locks_mul); in alloc_bucket_locks() 109 static struct bucket_table *bucket_table_alloc(struct rhashtable *ht, in bucket_table_alloc() argument 128 if (alloc_bucket_locks(ht, tbl, gfp) < 0) { in bucket_table_alloc() 138 INIT_RHT_NULLS_HEAD(tbl->buckets[i], ht, i); in bucket_table_alloc() 143 static struct bucket_table *rhashtable_last_table(struct rhashtable *ht, in rhashtable_last_table() argument [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723ds/os_dep/linux/ |
| H A D | rhashtable.c | 35 static u32 head_hashfn(struct rhashtable *ht, in head_hashfn() argument 39 return rht_head_hashfn(ht, tbl, he, ht->p); in head_hashfn() 45 int lockdep_rht_mutex_is_held(struct rhashtable *ht) in lockdep_rht_mutex_is_held() argument 47 return (debug_locks) ? lockdep_is_held(&ht->mutex) : 1; in lockdep_rht_mutex_is_held() 61 static int alloc_bucket_locks(struct rhashtable *ht, struct bucket_table *tbl, in alloc_bucket_locks() argument 72 size = roundup_pow_of_two(nr_pcpus * ht->p.locks_mul); in alloc_bucket_locks() 109 static struct bucket_table *bucket_table_alloc(struct rhashtable *ht, in bucket_table_alloc() argument 128 if (alloc_bucket_locks(ht, tbl, gfp) < 0) { in bucket_table_alloc() 138 INIT_RHT_NULLS_HEAD(tbl->buckets[i], ht, i); in bucket_table_alloc() 143 static struct bucket_table *rhashtable_last_table(struct rhashtable *ht, in rhashtable_last_table() argument [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8189fs/os_dep/linux/ |
| H A D | rhashtable.c | 35 static u32 head_hashfn(struct rhashtable *ht, in head_hashfn() argument 39 return rht_head_hashfn(ht, tbl, he, ht->p); in head_hashfn() 45 int lockdep_rht_mutex_is_held(struct rhashtable *ht) in lockdep_rht_mutex_is_held() argument 47 return (debug_locks) ? lockdep_is_held(&ht->mutex) : 1; in lockdep_rht_mutex_is_held() 61 static int alloc_bucket_locks(struct rhashtable *ht, struct bucket_table *tbl, in alloc_bucket_locks() argument 72 size = roundup_pow_of_two(nr_pcpus * ht->p.locks_mul); in alloc_bucket_locks() 109 static struct bucket_table *bucket_table_alloc(struct rhashtable *ht, in bucket_table_alloc() argument 128 if (alloc_bucket_locks(ht, tbl, gfp) < 0) { in bucket_table_alloc() 138 INIT_RHT_NULLS_HEAD(tbl->buckets[i], ht, i); in bucket_table_alloc() 143 static struct bucket_table *rhashtable_last_table(struct rhashtable *ht, in rhashtable_last_table() argument [all …]
|
| H A D | rhashtable.h | 89 struct rhashtable *ht; member 175 struct rhashtable *ht; member 182 static inline unsigned long rht_marker(const struct rhashtable *ht, u32 hash) in rht_marker() argument 184 return NULLS_MARKER(ht->p.nulls_base + hash); in rht_marker() 187 #define INIT_RHT_NULLS_HEAD(ptr, ht, hash) \ argument 188 ((ptr) = (typeof(ptr)) rht_marker(ht, hash)) 200 static inline void *rht_obj(const struct rhashtable *ht, in rht_obj() argument 203 return (char *)he - ht->p.head_offset; in rht_obj() 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() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/os_dep/linux/ |
| H A D | rhashtable.c | 34 static u32 head_hashfn(struct rhashtable *ht, in head_hashfn() argument 38 return rht_head_hashfn(ht, tbl, he, ht->p); in head_hashfn() 44 int lockdep_rht_mutex_is_held(struct rhashtable *ht) in lockdep_rht_mutex_is_held() argument 46 return (debug_locks) ? lockdep_is_held(&ht->mutex) : 1; in lockdep_rht_mutex_is_held() 60 static int alloc_bucket_locks(struct rhashtable *ht, struct bucket_table *tbl, in alloc_bucket_locks() argument 71 size = roundup_pow_of_two(nr_pcpus * ht->p.locks_mul); in alloc_bucket_locks() 108 static struct bucket_table *bucket_table_alloc(struct rhashtable *ht, in bucket_table_alloc() argument 127 if (alloc_bucket_locks(ht, tbl, gfp) < 0) { in bucket_table_alloc() 137 INIT_RHT_NULLS_HEAD(tbl->buckets[i], ht, i); in bucket_table_alloc() 142 static struct bucket_table *rhashtable_last_table(struct rhashtable *ht, in rhashtable_last_table() argument [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8189fs/os_dep/linux/ |
| H A D | rhashtable.c | 34 static u32 head_hashfn(struct rhashtable *ht, in head_hashfn() argument 38 return rht_head_hashfn(ht, tbl, he, ht->p); in head_hashfn() 44 int lockdep_rht_mutex_is_held(struct rhashtable *ht) in lockdep_rht_mutex_is_held() argument 46 return (debug_locks) ? lockdep_is_held(&ht->mutex) : 1; in lockdep_rht_mutex_is_held() 60 static int alloc_bucket_locks(struct rhashtable *ht, struct bucket_table *tbl, in alloc_bucket_locks() argument 71 size = roundup_pow_of_two(nr_pcpus * ht->p.locks_mul); in alloc_bucket_locks() 108 static struct bucket_table *bucket_table_alloc(struct rhashtable *ht, in bucket_table_alloc() argument 127 if (alloc_bucket_locks(ht, tbl, gfp) < 0) { in bucket_table_alloc() 137 INIT_RHT_NULLS_HEAD(tbl->buckets[i], ht, i); in bucket_table_alloc() 142 static struct bucket_table *rhashtable_last_table(struct rhashtable *ht, in rhashtable_last_table() argument [all …]
|
| H A D | rhashtable.h | 88 struct rhashtable *ht; member 174 struct rhashtable *ht; member 181 static inline unsigned long rht_marker(const struct rhashtable *ht, u32 hash) in rht_marker() argument 183 return NULLS_MARKER(ht->p.nulls_base + hash); in rht_marker() 186 #define INIT_RHT_NULLS_HEAD(ptr, ht, hash) \ argument 187 ((ptr) = (typeof(ptr)) rht_marker(ht, hash)) 199 static inline void *rht_obj(const struct rhashtable *ht, in rht_obj() argument 202 return (char *)he - ht->p.head_offset; in rht_obj() 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() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8188fu/os_dep/linux/ |
| H A D | rhashtable.c | 35 static u32 head_hashfn(struct rhashtable *ht, in head_hashfn() argument 39 return rht_head_hashfn(ht, tbl, he, ht->p); in head_hashfn() 45 int lockdep_rht_mutex_is_held(struct rhashtable *ht) in lockdep_rht_mutex_is_held() argument 47 return (debug_locks) ? lockdep_is_held(&ht->mutex) : 1; in lockdep_rht_mutex_is_held() 61 static int alloc_bucket_locks(struct rhashtable *ht, struct bucket_table *tbl, in alloc_bucket_locks() argument 72 size = roundup_pow_of_two(nr_pcpus * ht->p.locks_mul); in alloc_bucket_locks() 109 static struct bucket_table *bucket_table_alloc(struct rhashtable *ht, in bucket_table_alloc() argument 128 if (alloc_bucket_locks(ht, tbl, gfp) < 0) { in bucket_table_alloc() 138 INIT_RHT_NULLS_HEAD(tbl->buckets[i], ht, i); in bucket_table_alloc() 143 static struct bucket_table *rhashtable_last_table(struct rhashtable *ht, in rhashtable_last_table() argument [all …]
|
| H A D | rhashtable.h | 89 struct rhashtable *ht; member 175 struct rhashtable *ht; member 182 static inline unsigned long rht_marker(const struct rhashtable *ht, u32 hash) in rht_marker() argument 184 return NULLS_MARKER(ht->p.nulls_base + hash); in rht_marker() 187 #define INIT_RHT_NULLS_HEAD(ptr, ht, hash) \ argument 188 ((ptr) = (typeof(ptr)) rht_marker(ht, hash)) 200 static inline void *rht_obj(const struct rhashtable *ht, in rht_obj() argument 203 return (char *)he - ht->p.head_offset; in rht_obj() 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() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8723ds/os_dep/linux/ |
| H A D | rhashtable.c | 34 static u32 head_hashfn(struct rhashtable *ht, in head_hashfn() argument 38 return rht_head_hashfn(ht, tbl, he, ht->p); in head_hashfn() 44 int lockdep_rht_mutex_is_held(struct rhashtable *ht) in lockdep_rht_mutex_is_held() argument 46 return (debug_locks) ? lockdep_is_held(&ht->mutex) : 1; in lockdep_rht_mutex_is_held() 60 static int alloc_bucket_locks(struct rhashtable *ht, struct bucket_table *tbl, in alloc_bucket_locks() argument 71 size = roundup_pow_of_two(nr_pcpus * ht->p.locks_mul); in alloc_bucket_locks() 108 static struct bucket_table *bucket_table_alloc(struct rhashtable *ht, in bucket_table_alloc() argument 127 if (alloc_bucket_locks(ht, tbl, gfp) < 0) { in bucket_table_alloc() 137 INIT_RHT_NULLS_HEAD(tbl->buckets[i], ht, i); in bucket_table_alloc() 142 static struct bucket_table *rhashtable_last_table(struct rhashtable *ht, in rhashtable_last_table() argument [all …]
|
| H A D | rhashtable.h | 88 struct rhashtable *ht; member 174 struct rhashtable *ht; member 181 static inline unsigned long rht_marker(const struct rhashtable *ht, u32 hash) in rht_marker() argument 183 return NULLS_MARKER(ht->p.nulls_base + hash); in rht_marker() 186 #define INIT_RHT_NULLS_HEAD(ptr, ht, hash) \ argument 187 ((ptr) = (typeof(ptr)) rht_marker(ht, hash)) 199 static inline void *rht_obj(const struct rhashtable *ht, in rht_obj() argument 202 return (char *)he - ht->p.head_offset; in rht_obj() 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() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8822bs/os_dep/linux/ |
| H A D | rhashtable.c | 34 static u32 head_hashfn(struct rhashtable *ht, in head_hashfn() argument 38 return rht_head_hashfn(ht, tbl, he, ht->p); in head_hashfn() 44 int lockdep_rht_mutex_is_held(struct rhashtable *ht) in lockdep_rht_mutex_is_held() argument 46 return (debug_locks) ? lockdep_is_held(&ht->mutex) : 1; in lockdep_rht_mutex_is_held() 60 static int alloc_bucket_locks(struct rhashtable *ht, struct bucket_table *tbl, in alloc_bucket_locks() argument 71 size = roundup_pow_of_two(nr_pcpus * ht->p.locks_mul); in alloc_bucket_locks() 108 static struct bucket_table *bucket_table_alloc(struct rhashtable *ht, in bucket_table_alloc() argument 127 if (alloc_bucket_locks(ht, tbl, gfp) < 0) { in bucket_table_alloc() 137 INIT_RHT_NULLS_HEAD(tbl->buckets[i], ht, i); in bucket_table_alloc() 142 static struct bucket_table *rhashtable_last_table(struct rhashtable *ht, in rhashtable_last_table() argument [all …]
|
| H A D | rhashtable.h | 88 struct rhashtable *ht; member 174 struct rhashtable *ht; member 181 static inline unsigned long rht_marker(const struct rhashtable *ht, u32 hash) in rht_marker() argument 183 return NULLS_MARKER(ht->p.nulls_base + hash); in rht_marker() 186 #define INIT_RHT_NULLS_HEAD(ptr, ht, hash) \ argument 187 ((ptr) = (typeof(ptr)) rht_marker(ht, hash)) 199 static inline void *rht_obj(const struct rhashtable *ht, in rht_obj() argument 202 return (char *)he - ht->p.head_offset; in rht_obj() 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() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8188fu/os_dep/linux/ |
| H A D | rhashtable.c | 34 static u32 head_hashfn(struct rhashtable *ht, in head_hashfn() argument 38 return rht_head_hashfn(ht, tbl, he, ht->p); in head_hashfn() 44 int lockdep_rht_mutex_is_held(struct rhashtable *ht) in lockdep_rht_mutex_is_held() argument 46 return (debug_locks) ? lockdep_is_held(&ht->mutex) : 1; in lockdep_rht_mutex_is_held() 60 static int alloc_bucket_locks(struct rhashtable *ht, struct bucket_table *tbl, in alloc_bucket_locks() argument 71 size = roundup_pow_of_two(nr_pcpus * ht->p.locks_mul); in alloc_bucket_locks() 108 static struct bucket_table *bucket_table_alloc(struct rhashtable *ht, in bucket_table_alloc() argument 127 if (alloc_bucket_locks(ht, tbl, gfp) < 0) { in bucket_table_alloc() 137 INIT_RHT_NULLS_HEAD(tbl->buckets[i], ht, i); in bucket_table_alloc() 142 static struct bucket_table *rhashtable_last_table(struct rhashtable *ht, in rhashtable_last_table() argument [all …]
|
| H A D | rhashtable.h | 88 struct rhashtable *ht; member 174 struct rhashtable *ht; member 181 static inline unsigned long rht_marker(const struct rhashtable *ht, u32 hash) in rht_marker() argument 183 return NULLS_MARKER(ht->p.nulls_base + hash); in rht_marker() 186 #define INIT_RHT_NULLS_HEAD(ptr, ht, hash) \ argument 187 ((ptr) = (typeof(ptr)) rht_marker(ht, hash)) 199 static inline void *rht_obj(const struct rhashtable *ht, in rht_obj() argument 202 return (char *)he - ht->p.head_offset; in rht_obj() 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() [all …]
|
| /OK3568_Linux_fs/external/xserver/Xext/ |
| H A D | hashtable.c | 44 HashTable ht = malloc(sizeof(struct HashTableRec)); in ht_create() local 46 if (!ht) { in ht_create() 50 ht->keySize = keySize; in ht_create() 51 ht->dataSize = dataSize; in ht_create() 52 ht->hash = hash; in ht_create() 53 ht->compare = compare; in ht_create() 54 ht->elements = 0; in ht_create() 55 ht->bucketBits = INITHASHSIZE; in ht_create() 56 numBuckets = 1 << ht->bucketBits; in ht_create() 57 ht->buckets = xallocarray(numBuckets, sizeof(*ht->buckets)); in ht_create() [all …]
|
| /OK3568_Linux_fs/kernel/lib/ |
| H A D | rhashtable.c | 37 static u32 head_hashfn(struct rhashtable *ht, in head_hashfn() argument 41 return rht_head_hashfn(ht, tbl, he, ht->p); in head_hashfn() 47 int lockdep_rht_mutex_is_held(struct rhashtable *ht) in lockdep_rht_mutex_is_held() argument 49 return (debug_locks) ? lockdep_is_held(&ht->mutex) : 1; in lockdep_rht_mutex_is_held() 122 static union nested_table *nested_table_alloc(struct rhashtable *ht, in nested_table_alloc() argument 147 static struct bucket_table *nested_bucket_table_alloc(struct rhashtable *ht, in nested_bucket_table_alloc() argument 164 if (!nested_table_alloc(ht, (union nested_table __rcu **)tbl->buckets, in nested_bucket_table_alloc() 175 static struct bucket_table *bucket_table_alloc(struct rhashtable *ht, in bucket_table_alloc() argument 189 tbl = nested_bucket_table_alloc(ht, nbuckets, gfp); in bucket_table_alloc() 211 static struct bucket_table *rhashtable_last_table(struct rhashtable *ht, in rhashtable_last_table() argument [all …]
|