Lines Matching refs:nslot
112 if (!h || !h->nslot) in avtab_insert()
157 if (!h || !h->nslot) in avtab_insert_nonunique()
187 if (!h || !h->nslot) in avtab_search()
223 if (!h || !h->nslot) in avtab_search_node()
285 for (i = 0; i < h->nslot; i++) { in avtab_destroy()
299 h->nslot = 0; in avtab_destroy()
307 h->nslot = 0; in avtab_init()
311 static int avtab_alloc_common(struct avtab *h, u32 nslot) in avtab_alloc_common() argument
313 if (!nslot) in avtab_alloc_common()
316 h->htable = kvcalloc(nslot, sizeof(void *), GFP_KERNEL); in avtab_alloc_common()
320 h->nslot = nslot; in avtab_alloc_common()
321 h->mask = nslot - 1; in avtab_alloc_common()
328 u32 nslot = 0; in avtab_alloc() local
337 nslot = 1 << shift; in avtab_alloc()
338 if (nslot > MAX_AVTAB_HASH_BUCKETS) in avtab_alloc()
339 nslot = MAX_AVTAB_HASH_BUCKETS; in avtab_alloc()
341 rc = avtab_alloc_common(h, nslot); in avtab_alloc()
346 pr_debug("SELinux: %d avtab hash slots, %d rules.\n", nslot, nrules); in avtab_alloc()
352 return avtab_alloc_common(new, orig->nslot); in avtab_alloc_dup()
364 for (i = 0; i < h->nslot; i++) { in avtab_hash_eval()
382 tag, h->nel, slots_used, h->nslot, max_chain_len, in avtab_hash_eval()
657 for (i = 0; i < a->nslot; i++) { in avtab_write()