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