Lines Matching refs:flits
940 unsigned int flits; in calc_tx_descs() local
945 flits = sgl_len(skb_shinfo(skb)->nr_frags + 1) + 2; in calc_tx_descs()
947 flits++; in calc_tx_descs()
948 return flits_to_desc(flits); in calc_tx_descs()
1091 unsigned int flits, unsigned int sgl_flits, in write_wr_hdr_sgl() argument
1102 sd->sflit = flits; in write_wr_hdr_sgl()
1108 V_WR_SGLSFLT(flits)) | wr_hi; in write_wr_hdr_sgl()
1110 wrp->wr_lo = htonl(V_WR_LEN(flits + sgl_flits) | in write_wr_hdr_sgl()
1119 V_WR_SGLSFLT(flits)) | wr_hi; in write_wr_hdr_sgl()
1122 unsigned int avail = WR_FLITS - flits; in write_wr_hdr_sgl()
1126 memcpy(&d->flit[flits], fp, avail * sizeof(*fp)); in write_wr_hdr_sgl()
1151 flits = 1; in write_wr_hdr_sgl()
1182 unsigned int flits, sgl_flits, cntrl, tso_info; in write_tx_pkt_wr() local
1207 flits = 3; in write_tx_pkt_wr()
1222 flits = (skb->len + 7) / 8 + 2; in write_tx_pkt_wr()
1227 cpl->wr.wr_lo = htonl(V_WR_LEN(flits) | V_WR_GEN(gen) | in write_tx_pkt_wr()
1234 flits = 2; in write_tx_pkt_wr()
1237 sgp = ndesc == 1 ? (struct sg_ent *)&d->flit[flits] : sgl; in write_tx_pkt_wr()
1240 write_wr_hdr_sgl(ndesc, skb, d, pidx, q, sgl, flits, sgl_flits, gen, in write_tx_pkt_wr()
1634 unsigned int sgl_flits, flits; in write_ofld_wr() local
1651 flits = skb_transport_offset(skb) / 8; in write_ofld_wr()
1652 sgp = ndesc == 1 ? (struct sg_ent *)&d->flit[flits] : sgl; in write_ofld_wr()
1661 write_wr_hdr_sgl(ndesc, skb, d, pidx, q, sgl, flits, sgl_flits, in write_ofld_wr()
1674 unsigned int flits, cnt; in calc_tx_descs_ofld() local
1679 flits = skb_transport_offset(skb) / 8; /* headers */ in calc_tx_descs_ofld()
1683 return flits_to_desc(flits + sgl_len(cnt)); in calc_tx_descs_ofld()