Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/inline_crypto/ch_ipsec/
Dchcr_ipsec.c369 unsigned int flits; in calc_tx_sec_flits() local
389 flits = sgl_len(skb_shinfo(skb)->nr_frags + 1); in calc_tx_sec_flits()
399 flits += (sizeof(struct fw_ulptx_wr) + in calc_tx_sec_flits()
404 return flits; in calc_tx_sec_flits()
565 unsigned int flits; in ch_ipsec_crypto_wreq() local
582 flits = calc_tx_sec_flits(skb, sa_entry, &immediate); in ch_ipsec_crypto_wreq()
583 ndesc = DIV_ROUND_UP(flits, 2); in ch_ipsec_crypto_wreq()
709 unsigned int last_desc, ndesc, flits = 0; in ch_ipsec_xmit() local
738 flits = calc_tx_sec_flits(skb, sa_entry, &immediate); in ch_ipsec_xmit()
739 ndesc = flits_to_desc(flits); in ch_ipsec_xmit()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/
Dchcr_ktls.c1113 u32 len16, wr_mid = 0, flits = 0, ndesc, cipher_start; in chcr_ktls_xmit_wr_complete() local
1126 flits = chcr_ktls_get_tx_flits(nfrags, tx_info->key_ctx_len); in chcr_ktls_xmit_wr_complete()
1128 ndesc = chcr_flits_to_desc(flits); in chcr_ktls_xmit_wr_complete()
1159 end = (u64 *)pos + flits; in chcr_ktls_xmit_wr_complete()
1163 len16 = DIV_ROUND_UP(flits, 2); in chcr_ktls_xmit_wr_complete()
1290 unsigned int flits = 0, ndesc; in chcr_ktls_xmit_wr_short() local
1306 flits = chcr_ktls_get_tx_flits(nfrags, tx_info->key_ctx_len) + 2; in chcr_ktls_xmit_wr_short()
1314 flits += 2; in chcr_ktls_xmit_wr_short()
1316 ndesc = chcr_flits_to_desc(flits); in chcr_ktls_xmit_wr_short()
1341 end = (u64 *)pos + flits; in chcr_ktls_xmit_wr_short()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4/
Dsge.c761 unsigned int flits; in calc_tx_flits() local
780 flits = sgl_len(skb_shinfo(skb)->nr_frags + 1); in calc_tx_flits()
798 flits += (hdrlen / sizeof(__be64)); in calc_tx_flits()
800 flits += (sizeof(struct fw_eth_tx_pkt_wr) + in calc_tx_flits()
803 return flits; in calc_tx_flits()
1505 unsigned int last_desc, flits, ndesc; in cxgb4_eth_xmit() local
1562 flits = calc_tx_flits(skb, chip_ver); in cxgb4_eth_xmit()
1563 ndesc = flits_to_desc(flits); in cxgb4_eth_xmit()
1592 wr_mid = FW_WR_LEN16_V(DIV_ROUND_UP(flits, 2)); in cxgb4_eth_xmit()
1611 end = (u64 *)eowr + flits; in cxgb4_eth_xmit()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb3/
Dsge.c946 unsigned int flits; in calc_tx_descs() local
951 flits = sgl_len(skb_shinfo(skb)->nr_frags + 1) + 2; in calc_tx_descs()
953 flits++; in calc_tx_descs()
954 return flits_to_desc(flits); in calc_tx_descs()
1096 unsigned int flits, unsigned int sgl_flits, in write_wr_hdr_sgl() argument
1107 sd->sflit = flits; in write_wr_hdr_sgl()
1113 V_WR_SGLSFLT(flits)) | wr_hi; in write_wr_hdr_sgl()
1115 wrp->wr_lo = htonl(V_WR_LEN(flits + sgl_flits) | in write_wr_hdr_sgl()
1124 V_WR_SGLSFLT(flits)) | wr_hi; in write_wr_hdr_sgl()
1127 unsigned int avail = WR_FLITS - flits; in write_wr_hdr_sgl()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4vf/
Dsge.c819 static inline unsigned int flits_to_desc(unsigned int flits) in flits_to_desc() argument
821 BUG_ON(flits > SGE_MAX_WR_LEN / sizeof(__be64)); in flits_to_desc()
822 return DIV_ROUND_UP(flits, TXD_PER_EQ_UNIT); in flits_to_desc()
853 unsigned int flits; in calc_tx_flits() local
873 flits = sgl_len(skb_shinfo(skb)->nr_frags + 1); in calc_tx_flits()
875 flits += (sizeof(struct fw_eth_tx_pkt_vm_wr) + in calc_tx_flits()
879 flits += (sizeof(struct fw_eth_tx_pkt_vm_wr) + in calc_tx_flits()
881 return flits; in calc_tx_flits()
1162 unsigned int flits, ndesc; in t4vf_eth_xmit() local
1215 flits = calc_tx_flits(skb); in t4vf_eth_xmit()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/cxgb4/
Dt4.h110 __be64 flits[T4_EQ_ENTRY_SIZE / sizeof(__be64) * T4_SQ_NUM_SLOTS]; member
116 __be64 flits[T4_EQ_ENTRY_SIZE / sizeof(__be64) * T4_RQ_NUM_SLOTS]; member
214 __be64 flits[3]; member
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/
Ddriver.c1799 u64 *flits = packet->ebuf; in process_receive_bypass() local
1801 if (flits && !(packet->rhf & RHF_LEN_ERR)) { in process_receive_bypass()
1802 dd->err_info_rcvport.packet_flit1 = flits[0]; in process_receive_bypass()
1804 packet->tlen > sizeof(flits[0]) ? in process_receive_bypass()
1805 flits[1] : 0; in process_receive_bypass()
/kernel/linux/linux-5.10/drivers/target/iscsi/cxgbit/
Dcxgbit_target.c114 unsigned int flits, cnt; in cxgbit_calc_tx_flits_ofld() local
118 flits = skb_transport_offset(skb) / 8; in cxgbit_calc_tx_flits_ofld()
122 return flits + cxgbit_sgl_len(cnt); in cxgbit_calc_tx_flits_ofld()
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/inline_crypto/chtls/
Dchtls_io.c582 unsigned int flits, cnt; in calc_tx_flits() local
584 flits = immdlen / 8; /* headers */ in calc_tx_flits()
588 return flits + sgl_len(cnt); in calc_tx_flits()
/kernel/linux/linux-5.10/drivers/scsi/cxgbi/cxgb4i/
Dcxgb4i.c578 unsigned int flits, cnt; in calc_tx_flits_ofld() local
582 flits = skb_transport_offset(skb) / 8; in calc_tx_flits_ofld()
586 return flits + sgl_len(cnt); in calc_tx_flits_ofld()