• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/drivers/net/cxgb3/

Lines Matching refs:flits

142  * Maps a number of flits to the number of Tx descriptors that can hold them.
145 * desc = 1 + (flits - 2) / (WR_FLITS - 1).
739 * Calculates the number of flits needed for a scatter/gather list that
749 * flits_to_desc - returns the num of Tx descriptors for the given flits
750 * @n: the number of flits
753 * of flits.
938 unsigned int flits;
943 flits = sgl_len(skb_shinfo(skb)->nr_frags + 1) + 2;
945 flits++;
946 return flits_to_desc(flits);
1035 * @flits: number of flits to the start of the SGL in the first descriptor
1036 * @sgl_flits: the SGL size in flits
1050 unsigned int flits, unsigned int sgl_flits,
1061 sd->sflit = flits;
1067 V_WR_SGLSFLT(flits)) | wr_hi;
1069 wrp->wr_lo = htonl(V_WR_LEN(flits + sgl_flits) |
1078 V_WR_SGLSFLT(flits)) | wr_hi;
1081 unsigned int avail = WR_FLITS - flits;
1085 memcpy(&d->flit[flits], fp, avail * sizeof(*fp));
1110 flits = 1;
1140 unsigned int flits, sgl_flits, cntrl, tso_info;
1165 flits = 3;
1180 flits = (skb->len + 7) / 8 + 2;
1185 cpl->wr.wr_lo = htonl(V_WR_LEN(flits) | V_WR_GEN(gen) |
1192 flits = 2;
1195 sgp = ndesc == 1 ? (struct sg_ent *)&d->flit[flits] : sgl;
1198 write_wr_hdr_sgl(ndesc, skb, d, pidx, q, sgl, flits, sgl_flits, gen,
1580 unsigned int sgl_flits, flits;
1597 flits = skb_transport_offset(skb) / 8;
1598 sgp = ndesc == 1 ? (struct sg_ent *)&d->flit[flits] : sgl;
1607 write_wr_hdr_sgl(ndesc, skb, d, pidx, q, sgl, flits, sgl_flits,
1620 unsigned int flits, cnt;
1625 flits = skb_transport_offset(skb) / 8; /* headers */
1629 return flits_to_desc(flits + sgl_len(cnt));