FreeBSD/sys/dev/cxgb/ulp/tom/cxgb_tom.h
/*
 * Find the connection corresponding to a TID.
 */
Find the connection corresponding to a TID.
Find the connection corresponding to a TID .
static inline void *lookup_tid(const struct tid_info *t, unsigned int tid)
{
	void *p;
	if (tid >= t->ntids)
		return (NULL);
	p = t->tid_tab[tid];
	if (p < (void *)t->tid_tab || p >= (void *)&t->atid_tab[t->natids])
		return (p);
	return (NULL);
}
static inline void * lookup_tid ( const struct tid_info * t , unsigned int tid ) { void * p ; if ( tid >= t -> ntids ) return ( NULL ) ; p = t -> tid_tab [ tid ] ; if ( p < ( void * ) t -> tid_tab || p >= ( void * ) & t -> atid_tab [ t -> natids ] ) return ( p ) ; return ( NULL ) ; }
Find the connection corresponding to a TID.
Find the connection corresponding to a TID .