Lines Matching refs:l2t_size
58 unsigned int l2t_size; /* number of entries in l2tab */
62 struct l2t_entry l2tab[] __counted_by(l2t_size); /* MUST BE LAST */
89 unsigned int l2t_size_half = d->l2t_size / 2;
97 unsigned int l2t_size_half = d->l2t_size / 2;
272 for (e = d->rover, end = &d->l2tab[d->l2t_size]; e != end; ++e)
304 for (e = &d->l2tab[0], end = &d->l2tab[d->l2t_size]; e != end; ++e) {
632 unsigned int l2t_size;
638 l2t_size = l2t_end - l2t_start + 1;
639 if (l2t_size < L2T_MIN_HASH_BUCKETS)
642 d = kvzalloc(struct_size(d, l2tab, l2t_size), GFP_KERNEL);
647 d->l2t_size = l2t_size;
650 atomic_set(&d->nfree, l2t_size);
653 for (i = 0; i < d->l2t_size; ++i) {
667 return pos >= d->l2t_size ? NULL : &d->l2tab[pos];