Lines Matching refs:l2tab
227 for (e = d->rover, end = &d->l2tab[d->nentries]; e != end; ++e) in alloc_l2e()
231 for (e = &d->l2tab[1]; atomic_read(&e->refcnt); ++e) ; in alloc_l2e()
243 for (p = &d->l2tab[hash].first; *p; p = &(*p)->next) in alloc_l2e()
334 for (e = d->l2tab[hash].first; e; e = e->next) in t3_l2t_get()
347 e->next = d->l2tab[hash].first; in t3_l2t_get()
348 d->l2tab[hash].first = e; in t3_l2t_get()
409 for (e = d->l2tab[hash].first; e; e = e->next) in t3_l2t_update()
448 d = kvzalloc(struct_size(d, l2tab, l2t_capacity), GFP_KERNEL); in t3_init_l2t()
453 d->rover = &d->l2tab[1]; /* entry 0 is not used */ in t3_init_l2t()
458 d->l2tab[i].idx = i; in t3_init_l2t()
459 d->l2tab[i].state = L2T_STATE_UNUSED; in t3_init_l2t()
460 __skb_queue_head_init(&d->l2tab[i].arpq); in t3_init_l2t()
461 spin_lock_init(&d->l2tab[i].lock); in t3_init_l2t()
462 atomic_set(&d->l2tab[i].refcnt, 0); in t3_init_l2t()