Lines Matching refs:flits
769 * Calculates the number of flits (8-byte units) needed for a Direct
785 * first two flits which include the DSGL header, Length0 and
787 * flits for every pair of the remaining N) +1 if (n-1) is odd; and
796 * flits_to_desc - returns the num of TX descriptors for the given flits
797 * @flits: the number of flits
800 * of flits.
802 static inline unsigned int flits_to_desc(unsigned int flits)
804 BUG_ON(flits > SGE_MAX_WR_LEN / sizeof(__be64));
805 return DIV_ROUND_UP(flits, TXD_PER_EQ_UNIT);
828 * calc_tx_flits - calculate the number of flits for a packet TX WR
831 * Returns the number of flits needed for a TX Work Request for the
836 unsigned int flits;
849 * of the skb body and fragments. We also include the flits necessary
856 flits = sgl_len(skb_shinfo(skb)->nr_frags + 1);
858 flits += (sizeof(struct fw_eth_tx_pkt_vm_wr) +
862 flits += (sizeof(struct fw_eth_tx_pkt_vm_wr) +
864 return flits;
1076 unsigned int flits, ndesc;
1114 * Calculate the number of flits and TX Descriptors we're going to
1118 flits = calc_tx_flits(skb);
1119 ndesc = flits_to_desc(flits);
1147 wr_mid = FW_WR_LEN16(DIV_ROUND_UP(flits, 2));
1174 end = (u64 *)wr + flits;