Lines Matching defs:flits

145  * Maps a number of flits to the number of Tx descriptors that can hold them.
148 * desc = 1 + (flits - 2) / (WR_FLITS - 1).
742 * Calculates the number of flits needed for a scatter/gather list that
752 * flits_to_desc - returns the num of Tx descriptors for the given flits
753 * @n: the number of flits
756 * of flits.
940 unsigned int flits;
945 flits = sgl_len(skb_shinfo(skb)->nr_frags + 1) + 2;
947 flits++;
948 return flits_to_desc(flits);
1076 * @flits: number of flits to the start of the SGL in the first descriptor
1077 * @sgl_flits: the SGL size in flits
1091 unsigned int flits, unsigned int sgl_flits,
1102 sd->sflit = flits;
1108 V_WR_SGLSFLT(flits)) | wr_hi;
1110 wrp->wr_lo = htonl(V_WR_LEN(flits + sgl_flits) |
1119 V_WR_SGLSFLT(flits)) | wr_hi;
1122 unsigned int avail = WR_FLITS - flits;
1126 memcpy(&d->flit[flits], fp, avail * sizeof(*fp));
1151 flits = 1;
1182 unsigned int flits, sgl_flits, cntrl, tso_info;
1207 flits = 3;
1222 flits = (skb->len + 7) / 8 + 2;
1227 cpl->wr.wr_lo = htonl(V_WR_LEN(flits) | V_WR_GEN(gen) |
1234 flits = 2;
1237 sgp = ndesc == 1 ? (struct sg_ent *)&d->flit[flits] : sgl;
1240 write_wr_hdr_sgl(ndesc, skb, d, pidx, q, sgl, flits, sgl_flits, gen,
1634 unsigned int sgl_flits, flits;
1651 flits = skb_transport_offset(skb) / 8;
1652 sgp = ndesc == 1 ? (struct sg_ent *)&d->flit[flits] : sgl;
1661 write_wr_hdr_sgl(ndesc, skb, d, pidx, q, sgl, flits, sgl_flits,
1674 unsigned int flits, cnt;
1679 flits = skb_transport_offset(skb) / 8; /* headers */
1683 return flits_to_desc(flits + sgl_len(cnt));