Lines Matching defs:flits

684  *	Calculates the number of flits needed for a scatter/gather list that
699 * first two flits which include the DSGL header, Length0 and
701 * flits for every pair of the remaining N) +1 if (n-1) is odd; and
710 * flits_to_desc - returns the num of Tx descriptors for the given flits
711 * @n: the number of flits
714 * of flits.
751 * calc_tx_flits - calculate the number of flits for a packet Tx WR
755 * Returns the number of flits needed for a Tx WR for the given Ethernet
761 unsigned int flits;
773 * of the skb body and fragments. We also include the flits necessary
780 flits = sgl_len(skb_shinfo(skb)->nr_frags + 1);
798 flits += (hdrlen / sizeof(__be64));
800 flits += (sizeof(struct fw_eth_tx_pkt_wr) +
803 return flits;
1505 unsigned int last_desc, flits, ndesc;
1562 flits = calc_tx_flits(skb, chip_ver);
1563 ndesc = flits_to_desc(flits);
1592 wr_mid = FW_WR_LEN16_V(DIV_ROUND_UP(flits, 2));
1612 end = (u64 *)eowr + flits;
1614 end = (u64 *)wr + flits;
1779 * t4vf_calc_tx_flits - calculate the number of flits for a packet TX WR
1782 * Returns the number of flits needed for a TX Work Request for the
1787 unsigned int flits;
1798 * of the skb body and fragments. We also include the flits necessary
1805 flits = sgl_len(skb_shinfo(skb)->nr_frags + 1);
1807 flits += (sizeof(struct fw_eth_tx_pkt_vm_wr) +
1811 flits += (sizeof(struct fw_eth_tx_pkt_vm_wr) +
1813 return flits;
1826 unsigned int last_desc, flits, ndesc;
1865 /* Calculate the number of flits and TX Descriptors we're going to
1869 flits = t4vf_calc_tx_flits(skb);
1870 ndesc = flits_to_desc(flits);
1904 wr_mid = FW_WR_LEN16_V(DIV_ROUND_UP(flits, 2));
1930 end = (u64 *)wr + flits;
2175 u8 flits, nsgl = 0;
2186 flits = DIV_ROUND_UP(wrlen, 8);
2197 return flits + nsgl;
2277 u8 flits, ndesc;
2292 flits = DIV_ROUND_UP(hdr_len, 8);
2301 flits = ethofld_calc_tx_flits(adap, skb, hdr_len);
2303 ndesc = flits_to_desc(flits);
2304 wrlen = flits * 8;
2355 end = (u64 *)wr + flits;
2673 u32 ctrl0, ndesc, flits;
2679 flits = DIV_ROUND_UP(pkt_len + sizeof(*cpl) + sizeof(*wr),
2681 ndesc = flits_to_desc(flits);
2702 wr->equiq_to_len16 = htonl(FW_WR_LEN16_V(DIV_ROUND_UP(flits, 2)));
2878 * calc_tx_flits_ofld - calculate # of flits for an offload packet
2881 * Returns the number of flits needed for the given offload packet.
2887 unsigned int flits, cnt;
2892 flits = skb_transport_offset(skb) / 8U; /* headers */
2896 return flits + sgl_len(cnt);
2957 unsigned int flits, ndesc;
2981 flits = skb->priority; /* previously saved */
2982 ndesc = flits_to_desc(flits);
3003 end = (u64 *)pos + flits;
4083 u8 flits, wrlen16;
4109 flits = DIV_ROUND_UP(skb->len, 8);
4120 flits = ethofld_calc_tx_flits(q->adap, skb,
4125 wrlen16 = DIV_ROUND_UP(flits * 8, 16);