Lines Matching refs:l2tab
64 struct l2t_entry l2tab[0]; /* MUST BE LAST */ member
207 struct l2t_entry *e = &d->l2tab[l2t_idx - d->l2t_start]; in do_l2t_write_rpl()
282 for (e = d->rover, end = &d->l2tab[d->l2t_size]; e != end; ++e) in alloc_l2e()
286 for (e = d->l2tab; atomic_read(&e->refcnt); ++e) in alloc_l2e()
297 for (p = &d->l2tab[e->hash].first; *p; p = &(*p)->next) in alloc_l2e()
331 d = container_of(e, struct l2t_data, l2tab[e->idx]); in t4_l2e_free()
387 for (e = d->l2tab[hash].first; e; e = e->next) in cxgb4_l2t_get()
411 e->next = d->l2tab[hash].first; in cxgb4_l2t_get()
412 d->l2tab[hash].first = e; in cxgb4_l2t_get()
490 for (e = d->l2tab[hash].first; e; e = e->next) in t4_l2t_update()
579 d->rover = d->l2tab; in t4_init_l2t()
584 d->l2tab[i].idx = i; in t4_init_l2t()
585 d->l2tab[i].state = L2T_STATE_UNUSED; in t4_init_l2t()
586 spin_lock_init(&d->l2tab[i].lock); in t4_init_l2t()
587 atomic_set(&d->l2tab[i].refcnt, 0); in t4_init_l2t()
596 return pos >= d->l2t_size ? NULL : &d->l2tab[pos]; in l2t_get_idx()