Lines Matching refs:bits
66 int8_t bits; member
81 #define __qdf_ptr_hash_size(bits) (sizeof(struct qdf_ptr_hash) + \ argument
82 sizeof(((struct qdf_ptr_hash *)0)->buckets[0]) * (1 << bits))
95 } __##name = { .ht = { .bits = _bits, .count = (1 << _bits) } }
112 #define qdf_ptr_hash_declare_ptr(name, bits) \ argument
113 qdf_ptr_hash_declare(name, bits); \
155 static inline struct qdf_ptr_hash *qdf_ptr_hash_create(uint8_t bits) in qdf_ptr_hash_create() argument
157 struct qdf_ptr_hash *ht = qdf_mem_malloc(__qdf_ptr_hash_size(bits)); in qdf_ptr_hash_create()
162 ht->bits = bits; in qdf_ptr_hash_create()
163 ht->count = 1 << bits; in qdf_ptr_hash_create()
226 return ht->buckets + __qdf_ptr_hash_key(key, ht->bits); in __qdf_ptr_hash_get_bucket()