TSEC_TX_NUM_DESC
if_setsendqlen(ifp, TSEC_TX_NUM_DESC - 1);
for (i = 0; i < TSEC_TX_NUM_DESC; i++)
& (TSEC_TX_NUM_DESC - 1);
tx_idx = (tx_idx + 1) & (TSEC_TX_NUM_DESC - 1);
&sc->tsec_tx_dmap, sizeof(*sc->tsec_tx_vaddr) * TSEC_TX_NUM_DESC,
MCLBYTES * (TSEC_TX_NUM_DESC - 1), /* maxsize */
for (i = 0; i < TSEC_TX_NUM_DESC; i++) {
if_setsendqlen(ifp, TSEC_TX_NUM_DESC - 1);
for (i = 0; i < TSEC_TX_NUM_DESC; i++) {
tx_desc[i].flags = ((i == TSEC_TX_NUM_DESC - 1) ?
tx_idx = (tx_idx + (uint32_t)nsegs) & (TSEC_TX_NUM_DESC - 1);
tx_idx = (tx_idx - 1) & (TSEC_TX_NUM_DESC - 1);
tx_desc->flags = (tx_idx == (TSEC_TX_NUM_DESC - 1) ?
(((sc)->tx_idx_tail - (sc)->tx_idx_head - 1) & (TSEC_TX_NUM_DESC - 1))
struct tsec_bufmap tx_bufmap[TSEC_TX_NUM_DESC];