Home
last modified time | relevance | path

Searched refs:flits (Results 1 – 5 of 5) sorted by relevance

/drivers/net/ethernet/chelsio/cxgb3/
Dsge.c941 unsigned int flits; in calc_tx_descs() local
946 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() argument
1064 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 …]
/drivers/net/ethernet/chelsio/cxgb4vf/
Dsge.c803 static inline unsigned int flits_to_desc(unsigned int flits) in flits_to_desc() argument
805 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() local
857 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() local
1119 flits = calc_tx_flits(skb); in t4vf_eth_xmit()
[all …]
/drivers/net/ethernet/chelsio/cxgb4/
Dsge.c758 unsigned int flits; in calc_tx_flits() local
764 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() local
1074 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 …]
/drivers/infiniband/hw/cxgb4/
Dt4.h99 __be64 flits[T4_EQ_ENTRY_SIZE / sizeof(__be64) * T4_SQ_NUM_SLOTS]; member
105 __be64 flits[T4_EQ_ENTRY_SIZE / sizeof(__be64) * T4_RQ_NUM_SLOTS]; member
/drivers/scsi/cxgbi/cxgb4i/
Dcxgb4i.c481 unsigned int flits, cnt; in calc_tx_flits_ofld() local
485 flits = skb_transport_offset(skb) / 8; in calc_tx_flits_ofld()
489 return flits + sgl_len(cnt); in calc_tx_flits_ofld()