Home
last modified time | relevance | path

Searched refs:nstids (Results 1 – 5 of 5) sorted by relevance

/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_uld.h97 unsigned int nstids; member
138 stid += t->nstids; in lookup_stid()
143 return stid < (t->nstids + t->nsftids) ? t->stid_tab[stid].data : NULL; in lookup_stid()
Dcxgb4_main.c1482 stid = find_first_zero_bit(t->stid_bmap, t->nstids); in cxgb4_alloc_stid()
1483 if (stid < t->nstids) in cxgb4_alloc_stid()
1488 stid = bitmap_find_free_region(t->stid_bmap, t->nstids, 2); in cxgb4_alloc_stid()
1518 t->nstids + t->nsftids, t->nstids); in cxgb4_alloc_sftid()
1519 if (stid < (t->nstids + t->nsftids)) in cxgb4_alloc_sftid()
1528 stid -= t->nstids; in cxgb4_alloc_sftid()
1544 stid += t->nstids; in cxgb4_free_stid()
1663 stid_bmap_size = BITS_TO_LONGS(t->nstids + t->nsftids); in tid_init()
1666 t->nstids * sizeof(*t->stid_tab) + in tid_init()
1678 t->stid_bmap = (unsigned long *)&t->stid_tab[t->nstids + t->nsftids]; in tid_init()
[all …]
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb3/
Dcxgb3_offload.c1182 unsigned int natids, unsigned int nstids, in init_tid_tabs() argument
1186 natids * sizeof(*t->atid_tab) + nstids * sizeof(*t->stid_tab); in init_tid_tabs()
1193 t->atid_tab = (union active_open_entry *)&t->stid_tab[nstids]; in init_tid_tabs()
1195 t->nstids = nstids; in init_tid_tabs()
1209 if (nstids) { in init_tid_tabs()
1210 while (--nstids) in init_tid_tabs()
1211 t->stid_tab[nstids - 1].next = &t->stid_tab[nstids]; in init_tid_tabs()
Dcxgb3_defs.h82 if (tid < t->stid_base || tid >= t->stid_base + t->nstids) in lookup_stid()
Dcxgb3_offload.h163 unsigned int nstids; member