Searched refs:flits (Results 1 – 5 of 5) sorted by relevance
941 unsigned int flits; in calc_tx_descs() local946 flits = sgl_len(skb_shinfo(skb)->nr_frags + 1) + 2; in calc_tx_descs()948 flits++; in calc_tx_descs()949 return flits_to_desc(flits); in calc_tx_descs()1053 unsigned int flits, unsigned int sgl_flits, in write_wr_hdr_sgl() argument1064 sd->sflit = flits; in write_wr_hdr_sgl()1070 V_WR_SGLSFLT(flits)) | wr_hi; in write_wr_hdr_sgl()1072 wrp->wr_lo = htonl(V_WR_LEN(flits + sgl_flits) | in write_wr_hdr_sgl()1081 V_WR_SGLSFLT(flits)) | wr_hi; in write_wr_hdr_sgl()1084 unsigned int avail = WR_FLITS - flits; in write_wr_hdr_sgl()[all …]
803 static inline unsigned int flits_to_desc(unsigned int flits) in flits_to_desc() argument805 BUG_ON(flits > SGE_MAX_WR_LEN / sizeof(__be64)); in flits_to_desc()806 return DIV_ROUND_UP(flits, TXD_PER_EQ_UNIT); in flits_to_desc()837 unsigned int flits; in calc_tx_flits() local857 flits = sgl_len(skb_shinfo(skb)->nr_frags + 1); in calc_tx_flits()859 flits += (sizeof(struct fw_eth_tx_pkt_vm_wr) + in calc_tx_flits()863 flits += (sizeof(struct fw_eth_tx_pkt_vm_wr) + in calc_tx_flits()865 return flits; in calc_tx_flits()1077 unsigned int flits, ndesc; in t4vf_eth_xmit() local1119 flits = calc_tx_flits(skb); in t4vf_eth_xmit()[all …]
758 unsigned int flits; in calc_tx_flits() local764 flits = sgl_len(skb_shinfo(skb)->nr_frags + 1) + 4; in calc_tx_flits()766 flits += 2; in calc_tx_flits()767 return flits; in calc_tx_flits()1048 unsigned int flits, ndesc; in t4_eth_xmit() local1074 flits = calc_tx_flits(skb); in t4_eth_xmit()1075 ndesc = flits_to_desc(flits); in t4_eth_xmit()1095 wr_mid = FW_WR_LEN16(DIV_ROUND_UP(flits, 2)); in t4_eth_xmit()1104 end = (u64 *)wr + flits; in t4_eth_xmit()1368 unsigned int flits, cnt; in calc_tx_flits_ofld() local[all …]
99 __be64 flits[T4_EQ_ENTRY_SIZE / sizeof(__be64) * T4_SQ_NUM_SLOTS]; member105 __be64 flits[T4_EQ_ENTRY_SIZE / sizeof(__be64) * T4_RQ_NUM_SLOTS]; member
481 unsigned int flits, cnt; in calc_tx_flits_ofld() local485 flits = skb_transport_offset(skb) / 8; in calc_tx_flits_ofld()489 return flits + sgl_len(cnt); in calc_tx_flits_ofld()