Searched refs:l2t_capacity (Results 1 – 3 of 3) sorted by relevance
442 struct l2t_data *t3_init_l2t(unsigned int l2t_capacity) in t3_init_l2t() argument445 int i, size = sizeof(*d) + l2t_capacity * sizeof(struct l2t_entry); in t3_init_l2t()451 d->nentries = l2t_capacity; in t3_init_l2t()453 atomic_set(&d->nfree, l2t_capacity - 1); in t3_init_l2t()456 for (i = 0; i < l2t_capacity; ++i) { in t3_init_l2t()
117 struct l2t_data *t3_init_l2t(unsigned int l2t_capacity);
1248 unsigned int l2t_capacity; in cxgb3_offload_activate() local1257 dev->ctl(dev, GET_L2T_CAPACITY, &l2t_capacity) < 0 || in cxgb3_offload_activate()1264 RCU_INIT_POINTER(dev->l2opt, t3_init_l2t(l2t_capacity)); in cxgb3_offload_activate()