/linux-6.6.21/drivers/net/ethernet/chelsio/inline_crypto/ch_ipsec/ |
D | chcr_ipsec.c | 373 unsigned int flits; in calc_tx_sec_flits() local 393 flits = sgl_len(skb_shinfo(skb)->nr_frags + 1); in calc_tx_sec_flits() 403 flits += (sizeof(struct fw_ulptx_wr) + in calc_tx_sec_flits() 408 return flits; in calc_tx_sec_flits() 569 unsigned int flits; in ch_ipsec_crypto_wreq() local 586 flits = calc_tx_sec_flits(skb, sa_entry, &immediate); in ch_ipsec_crypto_wreq() 587 ndesc = DIV_ROUND_UP(flits, 2); in ch_ipsec_crypto_wreq() 713 unsigned int last_desc, ndesc, flits = 0; in ch_ipsec_xmit() local 742 flits = calc_tx_sec_flits(skb, sa_entry, &immediate); in ch_ipsec_xmit() 743 ndesc = flits_to_desc(flits); in ch_ipsec_xmit() [all …]
|
/linux-6.6.21/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/ |
D | chcr_ktls.c | 1107 u32 len16, wr_mid = 0, flits = 0, ndesc, cipher_start; in chcr_ktls_xmit_wr_complete() local 1120 flits = chcr_ktls_get_tx_flits(nfrags, tx_info->key_ctx_len); in chcr_ktls_xmit_wr_complete() 1122 ndesc = chcr_flits_to_desc(flits); in chcr_ktls_xmit_wr_complete() 1153 end = (u64 *)pos + flits; in chcr_ktls_xmit_wr_complete() 1157 len16 = DIV_ROUND_UP(flits, 2); in chcr_ktls_xmit_wr_complete() 1284 unsigned int flits = 0, ndesc; in chcr_ktls_xmit_wr_short() local 1300 flits = chcr_ktls_get_tx_flits(nfrags, tx_info->key_ctx_len) + 2; in chcr_ktls_xmit_wr_short() 1308 flits += 2; in chcr_ktls_xmit_wr_short() 1310 ndesc = chcr_flits_to_desc(flits); in chcr_ktls_xmit_wr_short() 1335 end = (u64 *)pos + flits; in chcr_ktls_xmit_wr_short() [all …]
|
/linux-6.6.21/drivers/net/ethernet/chelsio/cxgb4/ |
D | sge.c | 761 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() 1612 end = (u64 *)eowr + flits; in cxgb4_eth_xmit() [all …]
|
/linux-6.6.21/drivers/net/ethernet/chelsio/cxgb3/ |
D | sge.c | 940 unsigned int flits; in calc_tx_descs() local 945 flits = sgl_len(skb_shinfo(skb)->nr_frags + 1) + 2; in calc_tx_descs() 947 flits++; in calc_tx_descs() 948 return flits_to_desc(flits); in calc_tx_descs() 1091 unsigned int flits, unsigned int sgl_flits, in write_wr_hdr_sgl() argument 1102 sd->sflit = flits; in write_wr_hdr_sgl() 1108 V_WR_SGLSFLT(flits)) | wr_hi; in write_wr_hdr_sgl() 1110 wrp->wr_lo = htonl(V_WR_LEN(flits + sgl_flits) | in write_wr_hdr_sgl() 1119 V_WR_SGLSFLT(flits)) | wr_hi; in write_wr_hdr_sgl() 1122 unsigned int avail = WR_FLITS - flits; in write_wr_hdr_sgl() [all …]
|
/linux-6.6.21/drivers/net/ethernet/chelsio/cxgb4vf/ |
D | sge.c | 819 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 1212 flits = calc_tx_flits(skb); in t4vf_eth_xmit() [all …]
|
/linux-6.6.21/drivers/infiniband/hw/cxgb4/ |
D | t4.h | 110 __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
|
/linux-6.6.21/drivers/infiniband/hw/hfi1/ |
D | driver.c | 1750 u64 *flits = packet->ebuf; in process_receive_bypass() local 1752 if (flits && !(packet->rhf & RHF_LEN_ERR)) { in process_receive_bypass() 1753 dd->err_info_rcvport.packet_flit1 = flits[0]; in process_receive_bypass() 1755 packet->tlen > sizeof(flits[0]) ? in process_receive_bypass() 1756 flits[1] : 0; in process_receive_bypass()
|
/linux-6.6.21/drivers/target/iscsi/cxgbit/ |
D | cxgbit_target.c | 114 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()
|
/linux-6.6.21/drivers/net/ethernet/chelsio/inline_crypto/chtls/ |
D | chtls_io.c | 582 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()
|
/linux-6.6.21/drivers/scsi/cxgbi/cxgb4i/ |
D | cxgb4i.c | 579 unsigned int flits, cnt; in calc_tx_flits_ofld() local 583 flits = skb_transport_offset(skb) / 8; in calc_tx_flits_ofld() 587 return flits + sgl_len(cnt); in calc_tx_flits_ofld()
|