Lines Matching refs:t
123 static inline void *lookup_tid(const struct tid_info *t, unsigned int tid) in lookup_tid() argument
125 return tid < t->ntids ? t->tid_tab[tid] : NULL; in lookup_tid()
128 static inline void *lookup_atid(const struct tid_info *t, unsigned int atid) in lookup_atid() argument
130 return atid < t->natids ? t->atid_tab[atid].data : NULL; in lookup_atid()
133 static inline void *lookup_stid(const struct tid_info *t, unsigned int stid) in lookup_stid() argument
136 if (t->nsftids && (stid >= t->sftid_base)) { in lookup_stid()
137 stid -= t->sftid_base; in lookup_stid()
138 stid += t->nstids; in lookup_stid()
140 stid -= t->stid_base; in lookup_stid()
143 return stid < (t->nstids + t->nsftids) ? t->stid_tab[stid].data : NULL; in lookup_stid()
146 static inline void cxgb4_insert_tid(struct tid_info *t, void *data, in cxgb4_insert_tid() argument
149 t->tid_tab[tid] = data; in cxgb4_insert_tid()
150 atomic_inc(&t->tids_in_use); in cxgb4_insert_tid()
153 int cxgb4_alloc_atid(struct tid_info *t, void *data);
154 int cxgb4_alloc_stid(struct tid_info *t, int family, void *data);
155 int cxgb4_alloc_sftid(struct tid_info *t, int family, void *data);
156 void cxgb4_free_atid(struct tid_info *t, unsigned int atid);
157 void cxgb4_free_stid(struct tid_info *t, unsigned int stid, int family);
158 void cxgb4_remove_tid(struct tid_info *t, unsigned int qid, unsigned int tid);