Lines Matching refs:l2tab
62 struct l2t_entry l2tab[]; /* MUST BE LAST */ member
200 struct l2t_entry *e = &d->l2tab[l2t_idx - d->l2t_start]; in do_l2t_write_rpl()
272 for (e = d->rover, end = &d->l2tab[d->l2t_size]; e != end; ++e) in alloc_l2e()
276 for (e = d->l2tab; atomic_read(&e->refcnt); ++e) in alloc_l2e()
287 for (p = &d->l2tab[e->hash].first; *p; p = &(*p)->next) in alloc_l2e()
304 for (e = &d->l2tab[0], end = &d->l2tab[d->l2t_size]; e != end; ++e) { in find_or_alloc_l2e()
329 for (p = &d->l2tab[e->hash].first; *p; p = &(*p)->next) in find_or_alloc_l2e()
363 d = container_of(e, struct l2t_data, l2tab[e->idx]); in _t4_l2e_free()
382 d = container_of(e, struct l2t_data, l2tab[e->idx]); in t4_l2e_free()
440 for (e = d->l2tab[hash].first; e; e = e->next) in cxgb4_l2t_get()
464 e->next = d->l2tab[hash].first; in cxgb4_l2t_get()
465 d->l2tab[hash].first = e; in cxgb4_l2t_get()
520 for (e = d->l2tab[hash].first; e; e = e->next) in t4_l2t_update()
642 d = kvzalloc(struct_size(d, l2tab, l2t_size), GFP_KERNEL); in t4_init_l2t()
649 d->rover = d->l2tab; in t4_init_l2t()
654 d->l2tab[i].idx = i; in t4_init_l2t()
655 d->l2tab[i].state = L2T_STATE_UNUSED; in t4_init_l2t()
656 spin_lock_init(&d->l2tab[i].lock); in t4_init_l2t()
657 atomic_set(&d->l2tab[i].refcnt, 0); in t4_init_l2t()
658 skb_queue_head_init(&d->l2tab[i].arpq); in t4_init_l2t()
667 return pos >= d->l2t_size ? NULL : &d->l2tab[pos]; in l2t_get_idx()