Lines Matching defs:nslot
113 if (!h || !h->nslot || h->nel == U32_MAX)
159 if (!h || !h->nslot || h->nel == U32_MAX)
193 if (!h || !h->nslot)
255 for (i = 0; i < h->nslot; i++) {
269 h->nslot = 0;
277 h->nslot = 0;
281 static int avtab_alloc_common(struct avtab *h, u32 nslot)
283 if (!nslot)
286 h->htable = kvcalloc(nslot, sizeof(void *), GFP_KERNEL);
290 h->nslot = nslot;
291 h->mask = nslot - 1;
298 u32 nslot = 0;
307 nslot = 1 << shift;
308 if (nslot > MAX_AVTAB_HASH_BUCKETS)
309 nslot = MAX_AVTAB_HASH_BUCKETS;
311 rc = avtab_alloc_common(h, nslot);
316 pr_debug("SELinux: %d avtab hash slots, %d rules.\n", nslot, nrules);
322 return avtab_alloc_common(new, orig->nslot);
335 for (i = 0; i < h->nslot; i++) {
353 tag, h->nel, slots_used, h->nslot, max_chain_len,
629 for (i = 0; i < a->nslot; i++) {