Lines Matching refs:t
129 static inline void *lookup_tid(const struct tid_info *t, unsigned int tid) in lookup_tid() argument
131 return tid < t->ntids ? t->tid_tab[tid] : NULL; in lookup_tid()
134 static inline void *lookup_atid(const struct tid_info *t, unsigned int atid) in lookup_atid() argument
136 return atid < t->natids ? t->atid_tab[atid].data : NULL; in lookup_atid()
139 static inline void *lookup_stid(const struct tid_info *t, unsigned int stid) in lookup_stid() argument
142 if (t->nsftids && (stid >= t->sftid_base)) { in lookup_stid()
143 stid -= t->sftid_base; in lookup_stid()
144 stid += t->nstids; in lookup_stid()
146 stid -= t->stid_base; in lookup_stid()
149 return stid < (t->nstids + t->nsftids) ? t->stid_tab[stid].data : NULL; in lookup_stid()
152 static inline void cxgb4_insert_tid(struct tid_info *t, void *data, in cxgb4_insert_tid() argument
155 t->tid_tab[tid] = data; in cxgb4_insert_tid()
156 if (t->hash_base && (tid >= t->hash_base)) in cxgb4_insert_tid()
157 atomic_inc(&t->hash_tids_in_use); in cxgb4_insert_tid()
159 atomic_inc(&t->tids_in_use); in cxgb4_insert_tid()
162 int cxgb4_alloc_atid(struct tid_info *t, void *data);
163 int cxgb4_alloc_stid(struct tid_info *t, int family, void *data);
164 int cxgb4_alloc_sftid(struct tid_info *t, int family, void *data);
165 void cxgb4_free_atid(struct tid_info *t, unsigned int atid);
166 void cxgb4_free_stid(struct tid_info *t, unsigned int stid, int family);
167 void cxgb4_remove_tid(struct tid_info *t, unsigned int qid, unsigned int tid);