Searched refs:max_bucket (Results 1 – 3 of 3) sorted by relevance
28 u16 max_bucket; member42 struct gh_t_hash_tab *gh_create(u16 max_bucket, u16 val_size, in gh_create() argument52 hash_tab->max_bucket = max_bucket; in gh_create()59 kzalloc(sizeof(struct element *) * max_bucket, GFP_KERNEL); in gh_create()65 for (i = 0; i < max_bucket; i++) in gh_create()81 for (i = 0; i < hash_tab->max_bucket; i++) { in gh_delete()105 elem = hash_tab->buckets[(*hash_tab->hash) (key, hash_tab->max_bucket)]; in gh_find()134 i = (*hash_tab->hash) (key, hash_tab->max_bucket); in gh_insert()169 for (i = 0; i < hash_tab->max_bucket; i++) { in gh_iterate()
21 extern struct gh_t_hash_tab *gh_create(u16 max_bucket, u16 val_size,
186 static u16 name_hash(void *key, u16 max_bucket);796 static u16 name_hash(void *key, u16 max_bucket) in name_hash() argument809 ret = hash % max_bucket; in name_hash()