src/sys/dev/cxgbe/t4_sge.c
/*
 * len16 for a txpkts type 0 WR with a GL.  Does not include the firmware work
 * request header.
 */
len16 for a txpkts type 0 WR with a GL.  Does not include the firmware work
request header.
len16 for a txpkts type 0 WR with a GL . Does not include the firmware work request header .
static inline u_int
txpkts0_len16(u_int nsegs)
{
	u_int n;
	MPASS(nsegs > 0);
	nsegs--; 
	n = sizeof(struct ulp_txpkt) + sizeof(struct ulptx_idata) +
	    sizeof(struct cpl_tx_pkt_core) + sizeof(struct ulptx_sgl) +
	    8 * ((3 * nsegs) / 2 + (nsegs & 1));
	return (howmany(n, 16));
}
static inline u_int txpkts0_len16 ( u_int nsegs ) { u_int n ; MPASS ( nsegs > 0 ) ; nsegs -- ; n = sizeof ( struct ulp_txpkt ) + sizeof ( struct ulptx_idata ) + sizeof ( struct cpl_tx_pkt_core ) + sizeof ( struct ulptx_sgl ) + 8 * ( ( 3 * nsegs ) / 2 + ( nsegs & 1 ) ) ; return ( howmany ( n , 16 ) ) ; }
len16 for a txpkts type 0 WR with a GL.
len16 for a txpkts type 0 WR with a GL .
/* first segment is part of ulptx_sgl */