Lines Matching refs:flits

143  * Maps a number of flits to the number of Tx descriptors that can hold them.
146 * desc = 1 + (flits - 2) / (WR_FLITS - 1).
746 * Calculates the number of flits needed for a scatter/gather list that
756 * flits_to_desc - returns the num of Tx descriptors for the given flits
757 * @n: the number of flits
760 * of flits.
946 unsigned int flits;
951 flits = sgl_len(skb_shinfo(skb)->nr_frags + 1) + 2;
953 flits++;
954 return flits_to_desc(flits);
1081 * @flits: number of flits to the start of the SGL in the first descriptor
1082 * @sgl_flits: the SGL size in flits
1096 unsigned int flits, unsigned int sgl_flits,
1107 sd->sflit = flits;
1113 V_WR_SGLSFLT(flits)) | wr_hi;
1115 wrp->wr_lo = htonl(V_WR_LEN(flits + sgl_flits) |
1124 V_WR_SGLSFLT(flits)) | wr_hi;
1127 unsigned int avail = WR_FLITS - flits;
1131 memcpy(&d->flit[flits], fp, avail * sizeof(*fp));
1156 flits = 1;
1187 unsigned int flits, sgl_flits, cntrl, tso_info;
1212 flits = 3;
1227 flits = (skb->len + 7) / 8 + 2;
1232 cpl->wr.wr_lo = htonl(V_WR_LEN(flits) | V_WR_GEN(gen) |
1239 flits = 2;
1242 sgp = ndesc == 1 ? (struct sg_ent *)&d->flit[flits] : sgl;
1245 write_wr_hdr_sgl(ndesc, skb, d, pidx, q, sgl, flits, sgl_flits, gen,
1637 unsigned int sgl_flits, flits;
1654 flits = skb_transport_offset(skb) / 8;
1655 sgp = ndesc == 1 ? (struct sg_ent *)&d->flit[flits] : sgl;
1664 write_wr_hdr_sgl(ndesc, skb, d, pidx, q, sgl, flits, sgl_flits,
1677 unsigned int flits, cnt;
1682 flits = skb_transport_offset(skb) / 8; /* headers */
1686 return flits_to_desc(flits + sgl_len(cnt));