Home
last modified time | relevance | path

Searched refs:flits (Results 1 – 8 of 8) 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.c824 static inline unsigned int flits_to_desc(unsigned int flits) in flits_to_desc() argument
826 BUG_ON(flits > SGE_MAX_WR_LEN / sizeof(__be64)); in flits_to_desc()
827 return DIV_ROUND_UP(flits, TXD_PER_EQ_UNIT); in flits_to_desc()
858 unsigned int flits; in calc_tx_flits() local
878 flits = sgl_len(skb_shinfo(skb)->nr_frags + 1); in calc_tx_flits()
880 flits += (sizeof(struct fw_eth_tx_pkt_vm_wr) + in calc_tx_flits()
884 flits += (sizeof(struct fw_eth_tx_pkt_vm_wr) + in calc_tx_flits()
886 return flits; in calc_tx_flits()
1167 unsigned int flits, ndesc; in t4vf_eth_xmit() local
1216 flits = calc_tx_flits(skb); in t4vf_eth_xmit()
[all …]
/drivers/net/ethernet/chelsio/cxgb4/
Dsge.c794 unsigned int flits; in calc_tx_flits() local
813 flits = sgl_len(skb_shinfo(skb)->nr_frags + 1); in calc_tx_flits()
815 flits += (sizeof(struct fw_eth_tx_pkt_wr) + in calc_tx_flits()
819 flits += (sizeof(struct fw_eth_tx_pkt_wr) + in calc_tx_flits()
821 return flits; in calc_tx_flits()
1170 unsigned int flits, ndesc; in t4_eth_xmit() local
1214 flits = calc_tx_flits(skb); in t4_eth_xmit()
1215 ndesc = flits_to_desc(flits); in t4_eth_xmit()
1235 wr_mid = FW_WR_LEN16_V(DIV_ROUND_UP(flits, 2)); in t4_eth_xmit()
1244 end = (u64 *)wr + flits; in t4_eth_xmit()
[all …]
/drivers/infiniband/hw/hfi1/
Ddriver.c1374 u64 *flits = packet->ebuf; in process_receive_bypass() local
1376 if (flits && !(packet->rhf & RHF_LEN_ERR)) { in process_receive_bypass()
1377 dd->err_info_rcvport.packet_flit1 = flits[0]; in process_receive_bypass()
1379 packet->tlen > sizeof(flits[0]) ? flits[1] : 0; in process_receive_bypass()
/drivers/infiniband/hw/cxgb4/
Dt4.h101 __be64 flits[T4_EQ_ENTRY_SIZE / sizeof(__be64) * T4_SQ_NUM_SLOTS]; member
107 __be64 flits[T4_EQ_ENTRY_SIZE / sizeof(__be64) * T4_RQ_NUM_SLOTS]; member
/drivers/target/iscsi/cxgbit/
Dcxgbit_target.c115 unsigned int flits, cnt; in cxgbit_calc_tx_flits_ofld() local
119 flits = skb_transport_offset(skb) / 8; in cxgbit_calc_tx_flits_ofld()
123 return flits + cxgbit_sgl_len(cnt); in cxgbit_calc_tx_flits_ofld()
/drivers/crypto/chelsio/
Dchcr_algo.c169 unsigned int flits, cnt; in calc_tx_flits_ofld() local
174 flits = skb_transport_offset(skb) / 8; /* headers */ in calc_tx_flits_ofld()
178 return flits + sgl_len(cnt); in calc_tx_flits_ofld()
/drivers/scsi/cxgbi/cxgb4i/
Dcxgb4i.c499 unsigned int flits, cnt; in calc_tx_flits_ofld() local
503 flits = skb_transport_offset(skb) / 8; in calc_tx_flits_ofld()
507 return flits + sgl_len(cnt); in calc_tx_flits_ofld()