Lines Matching refs: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));
1611 end = (u64 *)eowr + flits;
1613 end = (u64 *)wr + flits;
1778 * t4vf_calc_tx_flits - calculate the number of flits for a packet TX WR
1781 * Returns the number of flits needed for a TX Work Request for the
1786 unsigned int flits;
1797 * of the skb body and fragments. We also include the flits necessary
1804 flits = sgl_len(skb_shinfo(skb)->nr_frags + 1);
1806 flits += (sizeof(struct fw_eth_tx_pkt_vm_wr) +
1810 flits += (sizeof(struct fw_eth_tx_pkt_vm_wr) +
1812 return flits;
1825 unsigned int last_desc, flits, ndesc;
1861 /* Calculate the number of flits and TX Descriptors we're going to
1865 flits = t4vf_calc_tx_flits(skb);
1866 ndesc = flits_to_desc(flits);
1899 wr_mid = FW_WR_LEN16_V(DIV_ROUND_UP(flits, 2));
1924 end = (u64 *)wr + flits;
2169 u8 flits, nsgl = 0;
2180 flits = DIV_ROUND_UP(wrlen, 8);
2191 return flits + nsgl;
2271 u8 flits, ndesc;
2286 flits = DIV_ROUND_UP(hdr_len, 8);
2295 flits = ethofld_calc_tx_flits(adap, skb, hdr_len);
2297 ndesc = flits_to_desc(flits);
2298 wrlen = flits * 8;
2349 end = (u64 *)wr + flits;
2667 u32 ctrl0, ndesc, flits;
2673 flits = DIV_ROUND_UP(pkt_len + sizeof(*cpl) + sizeof(*wr),
2675 ndesc = flits_to_desc(flits);
2696 wr->equiq_to_len16 = htonl(FW_WR_LEN16_V(DIV_ROUND_UP(flits, 2)));
2872 * calc_tx_flits_ofld - calculate # of flits for an offload packet
2875 * Returns the number of flits needed for the given offload packet.
2881 unsigned int flits, cnt;
2886 flits = skb_transport_offset(skb) / 8U; /* headers */
2890 return flits + sgl_len(cnt);
2951 unsigned int flits, ndesc;
2975 flits = skb->priority; /* previously saved */
2976 ndesc = flits_to_desc(flits);
2997 end = (u64 *)pos + flits;
4058 u8 flits, wrlen16;
4084 flits = DIV_ROUND_UP(skb->len, 8);
4095 flits = ethofld_calc_tx_flits(q->adap, skb,
4100 wrlen16 = DIV_ROUND_UP(flits * 8, 16);