Lines Matching defs:flits
786 * Calculates the number of flits (8-byte units) needed for a Direct
802 * first two flits which include the DSGL header, Length0 and
804 * flits for every pair of the remaining N) +1 if (n-1) is odd; and
813 * flits_to_desc - returns the num of TX descriptors for the given flits
814 * @flits: the number of flits
817 * of flits.
819 static inline unsigned int flits_to_desc(unsigned int flits)
821 BUG_ON(flits > SGE_MAX_WR_LEN / sizeof(__be64));
822 return DIV_ROUND_UP(flits, TXD_PER_EQ_UNIT);
845 * calc_tx_flits - calculate the number of flits for a packet TX WR
848 * Returns the number of flits needed for a TX Work Request for the
853 unsigned int flits;
866 * of the skb body and fragments. We also include the flits necessary
873 flits = sgl_len(skb_shinfo(skb)->nr_frags + 1);
875 flits += (sizeof(struct fw_eth_tx_pkt_vm_wr) +
879 flits += (sizeof(struct fw_eth_tx_pkt_vm_wr) +
881 return flits;
1162 unsigned int flits, ndesc;
1208 * Calculate the number of flits and TX Descriptors we're going to
1212 flits = calc_tx_flits(skb);
1213 ndesc = flits_to_desc(flits);
1241 wr_mid = FW_WR_LEN16_V(DIV_ROUND_UP(flits, 2));
1268 end = (u64 *)wr + flits;