Lines Matching refs:nslot
113 if (!h || !h->nslot) in avtab_insert()
159 if (!h || !h->nslot) in avtab_insert_nonunique()
189 if (!h || !h->nslot) in avtab_search()
225 if (!h || !h->nslot) in avtab_search_node()
287 for (i = 0; i < h->nslot; i++) { in avtab_destroy()
301 h->nslot = 0; in avtab_destroy()
309 h->nslot = 0; in avtab_init()
313 static int avtab_alloc_common(struct avtab *h, u32 nslot) in avtab_alloc_common() argument
315 if (!nslot) in avtab_alloc_common()
318 h->htable = kvcalloc(nslot, sizeof(void *), GFP_KERNEL); in avtab_alloc_common()
322 h->nslot = nslot; in avtab_alloc_common()
323 h->mask = nslot - 1; in avtab_alloc_common()
330 u32 nslot = 0; in avtab_alloc() local
339 nslot = 1 << shift; in avtab_alloc()
340 if (nslot > MAX_AVTAB_HASH_BUCKETS) in avtab_alloc()
341 nslot = MAX_AVTAB_HASH_BUCKETS; in avtab_alloc()
343 rc = avtab_alloc_common(h, nslot); in avtab_alloc()
348 pr_debug("SELinux: %d avtab hash slots, %d rules.\n", nslot, nrules); in avtab_alloc()
354 return avtab_alloc_common(new, orig->nslot); in avtab_alloc_dup()
366 for (i = 0; i < h->nslot; i++) { in avtab_hash_eval()
384 tag, h->nel, slots_used, h->nslot, max_chain_len, in avtab_hash_eval()
659 for (i = 0; i < a->nslot; i++) { in avtab_write()