Lines Matching defs:txpkts

53 struct txpkts {
140 static int add_to_txpkts(struct sge_txq *txq, struct txpkts *txpkts, mblk_t *m,
142 static void write_txpkts_wr(struct sge_txq *txq, struct txpkts *txpkts);
146 struct txpkts *txpkts, struct txinfo *txinfo);
935 struct txpkts txpkts;
938 txpkts.npkt = 0; /* indicates there's nothing in txpkts */
975 add_to_txpkts(txq, &txpkts, frame, &txinfo) == 0) {
977 /* Successfully absorbed into txpkts */
979 write_ulp_cpl_sgl(pi, txq, &txpkts, &txinfo);
985 * not be coalesced (add_to_txpkts flushes txpkts if a frame
987 * nothing in txpkts.
989 ASSERT(txpkts.npkt == 0);
1021 if (txpkts.npkt > 0)
1022 write_txpkts_wr(txq, &txpkts);
2432 * request. It has either been folded into txpkts or txpkts was flushed and m
2434 * txpkts).
2437 * transmitting m, if there was anything in txpkts it has been flushed.
2440 add_to_txpkts(struct sge_txq *txq, struct txpkts *txpkts, mblk_t *m,
2450 if (txpkts->npkt > 0) {
2453 txpkts->nflits + flits <= TX_WR_FLITS &&
2454 txpkts->nflits + flits <= eq->avail * 8 &&
2455 txpkts->plen + txinfo->len < 65536;
2458 txpkts->tail->b_next = m;
2459 txpkts->tail = m;
2460 txpkts->npkt++;
2461 txpkts->nflits += flits;
2462 txpkts->plen += txinfo->len;
2472 * Couldn't coalesce m into txpkts. The first order of business
2473 * is to send txpkts on its way. Then we'll revisit m.
2475 write_txpkts_wr(txq, txpkts);
2483 ASSERT(txpkts->npkt == 0);
2496 txpkts->tail = m;
2497 txpkts->npkt = 1;
2498 txpkts->nflits = flits;
2499 txpkts->flitp = &eq->desc[eq->pidx].flit[2];
2500 txpkts->plen = txinfo->len;
2516 write_txpkts_wr(struct sge_txq *txq, struct txpkts *txpkts)
2526 ndesc = howmany(txpkts->nflits, 8);
2531 ctrl = V_FW_WR_LEN16(howmany(txpkts->nflits, 2));
2535 wr->plen = cpu_to_be16(txpkts->plen);
2536 wr->npkt = txpkts->npkt;
2555 txq->txpkts_pkts += txpkts->npkt;
2557 txpkts->npkt = 0; /* emptied */
2700 struct txpkts *txpkts, struct txinfo *txinfo)
2709 ASSERT(txpkts->npkt > 0);
2730 flitp = (uintptr_t)txpkts->flitp;
2774 txpkts->nflits++;
2780 txpkts->flitp = (void *)flitp;