/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/inline_crypto/ch_ipsec/ |
H A D | chcr_ipsec.c | 369 unsigned int flits; in calc_tx_sec_flits() local 389 flits = sgl_len(skb_shinfo(skb)->nr_frags + 1); in calc_tx_sec_flits() 392 * of the skb body and fragments. We also include the flits necessary 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() 672 * flits_to_desc - returns the num of Tx descriptors for the given flits 673 * @n: the number of flits 709 unsigned int last_desc, ndesc, flits = 0; ch_ipsec_xmit() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/inline_crypto/ch_ipsec/ |
H A 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() 396 * of the skb body and fragments. We also include the flits necessary 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() 676 * flits_to_desc - returns the num of Tx descriptors for the given flits 677 * @n: the number of flits 713 unsigned int last_desc, ndesc, flits = 0; ch_ipsec_xmit() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/ |
H A D | chcr_ktls.c | 941 * returns number of flits to be sent out, it includes key context length, WR 1113 u32 len16, wr_mid = 0, flits = 0, ndesc, cipher_start; in chcr_ktls_xmit_wr_complete() local 1125 /* get the number of flits required */ in chcr_ktls_xmit_wr_complete() 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() 1206 /* These two flits are actually a CPL_TLS_TX_SCMD_FMT. */ in chcr_ktls_xmit_wr_complete() 1290 unsigned int flits = 0, ndesc; in chcr_ktls_xmit_wr_short() local 1303 /* get the number of flits require in chcr_ktls_xmit_wr_short() 1475 unsigned int flits = 0, ndesc; chcr_ktls_tx_plaintxt() local 1584 unsigned int flits, ndesc; chcr_ktls_tunnel_pkt() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/ |
H A D | chcr_ktls.c | 935 * returns number of flits to be sent out, it includes key context length, WR 1107 u32 len16, wr_mid = 0, flits = 0, ndesc, cipher_start; in chcr_ktls_xmit_wr_complete() local 1119 /* get the number of flits required */ in chcr_ktls_xmit_wr_complete() 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() 1200 /* These two flits are actually a CPL_TLS_TX_SCMD_FMT. */ in chcr_ktls_xmit_wr_complete() 1284 unsigned int flits = 0, ndesc; in chcr_ktls_xmit_wr_short() local 1297 /* get the number of flits require in chcr_ktls_xmit_wr_short() 1469 unsigned int flits = 0, ndesc; chcr_ktls_tx_plaintxt() local 1577 unsigned int flits, ndesc; chcr_ktls_tunnel_pkt() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | sge.c | 684 * Calculates the number of flits needed for a scatter/gather list that 699 * first two flits which include the DSGL header, Length0 and in sgl_len() 701 * flits for every pair of the remaining N) +1 if (n-1) is odd; and in sgl_len() 710 * flits_to_desc - returns the num of Tx descriptors for the given flits 711 * @n: the number of flits 714 * of flits. 751 * calc_tx_flits - calculate the number of flits for a packet Tx WR 755 * Returns the number of flits needed for a Tx WR for the given Ethernet 761 unsigned int flits; in calc_tx_flits() local 773 * of the skb body and fragments. We also include the flits necessar in calc_tx_flits() 1505 unsigned int last_desc, flits, ndesc; cxgb4_eth_xmit() local 1786 unsigned int flits; t4vf_calc_tx_flits() local 1825 unsigned int last_desc, flits, ndesc; cxgb4_vf_eth_xmit() local 2169 u8 flits, nsgl = 0; ethofld_calc_tx_flits() local 2271 u8 flits, ndesc; ethofld_hard_xmit() local 2667 u32 ctrl0, ndesc, flits; cxgb4_selftest_lb_pkt() local 2881 unsigned int flits, cnt; calc_tx_flits_ofld() local 2951 unsigned int flits, ndesc; global() variable 4058 u8 flits, wrlen16; cxgb4_ethofld_rx_handler() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | sge.c | 684 * Calculates the number of flits needed for a scatter/gather list that 699 * first two flits which include the DSGL header, Length0 and in sgl_len() 701 * flits for every pair of the remaining N) +1 if (n-1) is odd; and in sgl_len() 710 * flits_to_desc - returns the num of Tx descriptors for the given flits 711 * @n: the number of flits 714 * of flits. 751 * calc_tx_flits - calculate the number of flits for a packet Tx WR 755 * Returns the number of flits needed for a Tx WR for the given Ethernet 761 unsigned int flits; in calc_tx_flits() local 773 * of the skb body and fragments. We also include the flits necessar in calc_tx_flits() 1505 unsigned int last_desc, flits, ndesc; cxgb4_eth_xmit() local 1787 unsigned int flits; t4vf_calc_tx_flits() local 1826 unsigned int last_desc, flits, ndesc; cxgb4_vf_eth_xmit() local 2175 u8 flits, nsgl = 0; ethofld_calc_tx_flits() local 2277 u8 flits, ndesc; ethofld_hard_xmit() local 2673 u32 ctrl0, ndesc, flits; cxgb4_selftest_lb_pkt() local 2887 unsigned int flits, cnt; calc_tx_flits_ofld() local 2957 unsigned int flits, ndesc; global() variable 4083 u8 flits, wrlen16; cxgb4_ethofld_rx_handler() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb3/ |
H A D | sge.c | 143 * Maps a number of flits to the number of Tx descriptors that can hold them. 146 * desc = 1 + (flits - 2) / (WR_FLITS - 1). 746 * Calculates the number of flits needed for a scatter/gather list that 756 * flits_to_desc - returns the num of Tx descriptors for the given flits 757 * @n: the number of flits 760 * of flits. 946 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() 1092 write_wr_hdr_sgl(unsigned int ndesc, struct sk_buff *skb, struct tx_desc *d, unsigned int pidx, const struct sge_txq *q, const struct sg_ent *sgl, unsigned int flits, unsigned int sgl_flits, unsigned int gen, __be32 wr_hi, __be32 wr_lo) write_wr_hdr_sgl() argument 1187 unsigned int flits, sgl_flits, cntrl, tso_info; write_tx_pkt_wr() local 1637 unsigned int sgl_flits, flits; write_ofld_wr() local 1677 unsigned int flits, cnt; calc_tx_descs_ofld() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/cxgb3/ |
H A D | sge.c | 145 * Maps a number of flits to the number of Tx descriptors that can hold them. 148 * desc = 1 + (flits - 2) / (WR_FLITS - 1). 742 * Calculates the number of flits needed for a scatter/gather list that 752 * flits_to_desc - returns the num of Tx descriptors for the given flits 753 * @n: the number of flits 756 * of flits. 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() 1087 write_wr_hdr_sgl(unsigned int ndesc, struct sk_buff *skb, struct tx_desc *d, unsigned int pidx, const struct sge_txq *q, const struct sg_ent *sgl, unsigned int flits, unsigned int sgl_flits, unsigned int gen, __be32 wr_hi, __be32 wr_lo) write_wr_hdr_sgl() argument 1182 unsigned int flits, sgl_flits, cntrl, tso_info; write_tx_pkt_wr() local 1634 unsigned int sgl_flits, flits; write_ofld_wr() local 1674 unsigned int flits, cnt; calc_tx_descs_ofld() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4vf/ |
H A D | sge.c | 786 * Calculates the number of flits (8-byte units) needed for a Direct 802 * first two flits which include the DSGL header, Length0 and in sgl_len() 804 * flits for every pair of the remaining N) +1 if (n-1) is odd; and in sgl_len() 813 * flits_to_desc - returns the num of TX descriptors for the given flits 814 * @flits: the number of flits 817 * of flits. 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_UNI in flits_to_desc() 853 unsigned int flits; calc_tx_flits() local 1162 unsigned int flits, ndesc; t4vf_eth_xmit() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/cxgb4vf/ |
H A D | sge.c | 786 * Calculates the number of flits (8-byte units) needed for a Direct 802 * first two flits which include the DSGL header, Length0 and in sgl_len() 804 * flits for every pair of the remaining N) +1 if (n-1) is odd; and in sgl_len() 813 * flits_to_desc - returns the num of TX descriptors for the given flits 814 * @flits: the number of flits 817 * of flits. 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_UNI in flits_to_desc() 853 unsigned int flits; calc_tx_flits() local 1162 unsigned int flits, ndesc; t4vf_eth_xmit() local [all...] |
/kernel/linux/linux-5.10/drivers/infiniband/hw/cxgb4/ |
H A 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
|
/kernel/linux/linux-6.6/drivers/infiniband/hw/cxgb4/ |
H A 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
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/ |
H A D | driver.c | 1799 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-6.6/drivers/infiniband/hw/hfi1/ |
H A 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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/inline_crypto/chtls/ |
H A 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()
|
/kernel/linux/linux-5.10/drivers/target/iscsi/cxgbit/ |
H A D | cxgbit_target.c | 95 * Calculates the number of flits needed for a scatter/gather list that 105 * cxgbit_calc_tx_flits_ofld - calculate # of flits for an offload packet 108 * Returns the number of flits needed for the given offload packet. 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()
|
/kernel/linux/linux-6.6/drivers/target/iscsi/cxgbit/ |
H A D | cxgbit_target.c | 95 * Calculates the number of flits needed for a scatter/gather list that 105 * cxgbit_calc_tx_flits_ofld - calculate # of flits for an offload packet 108 * Returns the number of flits needed for the given offload packet. 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()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/inline_crypto/chtls/ |
H A 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()
|
/kernel/linux/linux-5.10/drivers/scsi/cxgbi/cxgb4i/ |
H A D | cxgb4i.c | 559 * Calculates the number of flits needed for a scatter/gather list that 569 * calc_tx_flits_ofld - calculate # of flits for an offload packet 572 * Returns the number of flits needed for the given offload packet. 578 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()
|
/kernel/linux/linux-6.6/drivers/scsi/cxgbi/cxgb4i/ |
H A D | cxgb4i.c | 560 * Calculates the number of flits needed for a scatter/gather list that 570 * calc_tx_flits_ofld - calculate # of flits for an offload packet 573 * Returns the number of flits needed for the given offload packet. 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()
|