Lines Matching refs:l2tab
71 struct l2t_entry l2tab[L2T_SIZE]; member
204 struct l2t_entry *e = &adap->l2t->l2tab[idx]; in do_l2t_write_rpl()
279 for (e = d->rover, end = &d->l2tab[L2T_SIZE]; e != end; ++e) in alloc_l2e()
283 for (e = d->l2tab; atomic_read(&e->refcnt); ++e) in alloc_l2e()
294 for (p = &d->l2tab[e->hash].first; *p; p = &(*p)->next) in alloc_l2e()
328 d = container_of(e, struct l2t_data, l2tab[e->idx]); in t4_l2e_free()
384 for (e = d->l2tab[hash].first; e; e = e->next) in cxgb4_l2t_get()
408 e->next = d->l2tab[hash].first; in cxgb4_l2t_get()
409 d->l2tab[hash].first = e; in cxgb4_l2t_get()
487 for (e = d->l2tab[hash].first; e; e = e->next) in t4_l2t_update()
566 d->rover = d->l2tab; in t4_init_l2t()
571 d->l2tab[i].idx = i; in t4_init_l2t()
572 d->l2tab[i].state = L2T_STATE_UNUSED; in t4_init_l2t()
573 spin_lock_init(&d->l2tab[i].lock); in t4_init_l2t()
574 atomic_set(&d->l2tab[i].refcnt, 0); in t4_init_l2t()
581 struct l2t_entry *l2tab = seq->private; in l2t_get_idx() local
583 return pos >= L2T_SIZE ? NULL : &l2tab[pos]; in l2t_get_idx()
655 seq->private = adap->l2t->l2tab; in l2t_seq_open()