Home
last modified time | relevance | path

Searched refs:nfrags (Results 1 – 25 of 34) sorted by relevance

12

/kernel/linux/linux-5.10/net/ipv6/
Desp6.c63 static void *esp_alloc_tmp(struct crypto_aead *aead, int nfrags, int seqihlen) in esp_alloc_tmp() argument
80 len += sizeof(struct scatterlist) * nfrags; in esp_alloc_tmp()
481 int nfrags; in esp6_output_head() local
500 nfrags = 1; in esp6_output_head()
529 nfrags = skb_shinfo(skb)->nr_frags; in esp6_output_head()
531 __skb_fill_page_desc(skb, nfrags, page, pfrag->offset, in esp6_output_head()
533 skb_shinfo(skb)->nr_frags = ++nfrags; in esp6_output_head()
539 nfrags++; in esp6_output_head()
554 nfrags = skb_cow_data(skb, tailen, &trailer); in esp6_output_head()
555 if (nfrags < 0) in esp6_output_head()
[all …]
Dah6.c49 static void *ah_alloc_tmp(struct crypto_ahash *ahash, int nfrags, in ah_alloc_tmp() argument
63 len += sizeof(struct scatterlist) * nfrags; in ah_alloc_tmp()
325 int nfrags; in ah6_output() local
349 nfrags = err; in ah6_output()
361 iph_base = ah_alloc_tmp(ahash, nfrags + sglists, IPV6HDR_BASELEN + in ah6_output()
371 seqhisg = sg + nfrags; in ah6_output()
415 sg_init_table(sg, nfrags + sglists); in ah6_output()
526 int nfrags; in ah6_input() local
561 nfrags = err; in ah6_input()
573 work_iph = ah_alloc_tmp(ahash, nfrags + sglists, hdr_len + in ah6_input()
[all …]
Desp6_offload.c325 esp.nfrags = esp6_output_head(x, skb, &esp); in esp6_xmit()
326 if (esp.nfrags < 0) in esp6_xmit()
327 return esp.nfrags; in esp6_xmit()
/kernel/linux/linux-5.10/net/ipv4/
Desp4.c46 static void *esp_alloc_tmp(struct crypto_aead *aead, int nfrags, int extralen) in esp_alloc_tmp() argument
63 len += sizeof(struct scatterlist) * nfrags; in esp_alloc_tmp()
446 int nfrags; in esp_output_head() local
466 nfrags = 1; in esp_output_head()
495 nfrags = skb_shinfo(skb)->nr_frags; in esp_output_head()
497 __skb_fill_page_desc(skb, nfrags, page, pfrag->offset, in esp_output_head()
499 skb_shinfo(skb)->nr_frags = ++nfrags; in esp_output_head()
505 nfrags++; in esp_output_head()
520 nfrags = skb_cow_data(skb, tailen, &trailer); in esp_output_head()
521 if (nfrags < 0) in esp_output_head()
[all …]
Dah4.c25 static void *ah_alloc_tmp(struct crypto_ahash *ahash, int nfrags, in ah_alloc_tmp() argument
39 len += sizeof(struct scatterlist) * nfrags; in ah_alloc_tmp()
150 int nfrags; in ah_output() local
170 nfrags = err; in ah_output()
181 iph = ah_alloc_tmp(ahash, nfrags + sglists, ihl + seqhi_len); in ah_output()
188 seqhisg = sg + nfrags; in ah_output()
224 sg_init_table(sg, nfrags + sglists); in ah_output()
308 int nfrags; in ah_input() local
357 nfrags = err; in ah_input()
368 work_iph = ah_alloc_tmp(ahash, nfrags + sglists, ihl + in ah_input()
[all …]
Desp4_offload.c294 esp.nfrags = esp_output_head(x, skb, &esp); in esp_xmit()
295 if (esp.nfrags < 0) in esp_xmit()
296 return esp.nfrags; in esp_xmit()
/kernel/linux/linux-5.10/drivers/net/ethernet/pasemi/
Dpasemi_mac.c243 const int nfrags, in pasemi_mac_unmap_tx_skb() argument
252 for (f = 0; f < nfrags; f++) { in pasemi_mac_unmap_tx_skb()
262 return (nfrags + 3) & ~1; in pasemi_mac_unmap_tx_skb()
513 int freed, nfrags; in pasemi_mac_free_tx_resources() local
526 nfrags = skb_shinfo(info->skb)->nr_frags; in pasemi_mac_free_tx_resources()
527 for (j = 0; j <= nfrags; j++) in pasemi_mac_free_tx_resources()
530 freed = pasemi_mac_unmap_tx_skb(mac, nfrags, in pasemi_mac_free_tx_resources()
1350 const int nfrags = skb_shinfo(skb)->nr_frags; in pasemi_mac_queue_csdesc() local
1384 for (i = 1; i <= nfrags; i++) in pasemi_mac_queue_csdesc()
1436 int i, nfrags; in pasemi_mac_start_tx() local
[all …]
/kernel/linux/linux-5.10/drivers/target/iscsi/cxgbit/
Dcxgbit_main.c222 for (i = 1; i < gl->nfrags; i++) in cxgbit_copy_frags()
228 skb_shinfo(skb)->nr_frags += gl->nfrags; in cxgbit_copy_frags()
231 get_page(gl->frags[gl->nfrags - 1].page); in cxgbit_copy_frags()
253 if (unlikely(gl->nfrags > 1)) in cxgbit_lro_add_packet_gl()
265 pdu_cb->nr_dfrags = gl->nfrags; in cxgbit_lro_add_packet_gl()
281 if (unlikely(gl->nfrags > 1)) in cxgbit_lro_add_packet_gl()
301 pdu_cb->frags += gl->nfrags; in cxgbit_lro_add_packet_gl()
406 if ((gl && (((skb_shinfo(skb)->nr_frags + gl->nfrags) > in cxgbit_lro_receive()
/kernel/linux/linux-5.10/drivers/net/ethernet/pensando/ionic/
Dionic_txrx.c335 unsigned int nfrags; in ionic_rx_fill() local
340 nfrags = round_up(len, PAGE_SIZE) / PAGE_SIZE; in ionic_rx_fill()
355 desc->opcode = (nfrags > 1) ? IONIC_RXQ_DESC_OPCODE_SG : in ionic_rx_fill()
357 desc_info->npages = nfrags; in ionic_rx_fill()
370 for (j = 0; j < nfrags - 1; j++) { in ionic_rx_fill()
798 unsigned int nfrags; in ionic_tx_tso() local
818 nfrags = skb_shinfo(skb)->nr_frags; in ionic_tx_tso()
862 if (nfrags > 0 && frag_left > 0) in ionic_tx_tso()
864 done = (nfrags == 0 && left == 0); in ionic_tx_tso()
884 nfrags--; in ionic_tx_tso()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4vf/
Dsge.c310 unsigned int nfrags = skb_shinfo(skb)->nr_frags; in unmap_sgl() local
318 nfrags--; in unmap_sgl()
325 for (p = sgl->sge; nfrags >= 2; nfrags -= 2) { in unmap_sgl()
354 if (nfrags) { in unmap_sgl()
908 unsigned int nfrags = si->nr_frags; in write_sgl() local
915 nfrags++; in write_sgl()
922 ULPTX_NSGE_V(nfrags)); in write_sgl()
923 if (likely(--nfrags == 0)) in write_sgl()
932 for (i = (nfrags != si->nr_frags); nfrags >= 2; nfrags -= 2, to++) { in write_sgl()
938 if (nfrags) { in write_sgl()
[all …]
Dadapter.h155 unsigned int nfrags; /* # of fragments */ member
/kernel/linux/linux-5.10/drivers/net/ethernet/google/gve/
Dgve_tx.c79 int nfrags = 0; in gve_tx_alloc_fifo() local
93 nfrags++; in gve_tx_alloc_fifo()
103 nfrags++; in gve_tx_alloc_fifo()
115 iov[nfrags - 1].iov_padding = padding; in gve_tx_alloc_fifo()
122 return nfrags; in gve_tx_alloc_fifo()
/kernel/linux/linux-5.10/include/net/
Desp.h38 int nfrags; member
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb/
Dsge.c1123 unsigned int nfrags = skb_shinfo(skb)->nr_frags; in compute_large_page_tx_descs() local
1129 for (i = 0; nfrags--; i++) { in compute_large_page_tx_descs()
1171 unsigned int nfrags, in write_large_page_tx_descs() argument
1181 *gen, nfrags == 0 && *desc_len == 0); in write_large_page_tx_descs()
1214 nfrags = skb_shinfo(skb)->nr_frags; in write_tx_descs() local
1226 V_CMD_EOP(nfrags == 0 && desc_len <= SGE_TX_DESC_MAX_PLEN) | in write_tx_descs()
1250 nfrags, q); in write_tx_descs()
1254 nfrags == 0); in write_tx_descs()
1261 for (i = 0; nfrags--; i++) { in write_tx_descs()
1279 nfrags, q); in write_tx_descs()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/
Dchcr_ktls.c26 u8 nfrags = 0, frag_idx = 0; in chcr_get_nfrags_to_send() local
50 nfrags++; in chcr_get_nfrags_to_send()
55 nfrags++; in chcr_get_nfrags_to_send()
58 return nfrags; in chcr_get_nfrags_to_send()
1110 u32 skb_offset, u32 nfrags, in chcr_ktls_xmit_wr_complete() argument
1126 flits = chcr_ktls_get_tx_flits(nfrags, tx_info->key_ctx_len); in chcr_ktls_xmit_wr_complete()
1288 u32 len16, wr_mid = 0, cipher_start, nfrags; in chcr_ktls_xmit_wr_short() local
1302 nfrags = chcr_get_nfrags_to_send(skb, skb_offset, data_len); in chcr_ktls_xmit_wr_short()
1306 flits = chcr_ktls_get_tx_flits(nfrags, tx_info->key_ctx_len) + 2; in chcr_ktls_xmit_wr_short()
1481 u32 wr_mid = 0, nfrags; in chcr_ktls_tx_plaintxt() local
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/cortina/
Dgemini.c616 unsigned short nfrags; in gmac_clean_txq() local
655 nfrags = word0.bits.desc_count - 1; in gmac_clean_txq()
656 if (nfrags) { in gmac_clean_txq()
657 if (nfrags >= TX_MAX_FRAGS) in gmac_clean_txq()
658 nfrags = TX_MAX_FRAGS - 1; in gmac_clean_txq()
661 port->tx_frag_stats[nfrags]++; in gmac_clean_txq()
1234 int txq_num, nfrags; in gmac_start_xmit() local
1244 nfrags = skb_shinfo(skb)->nr_frags; in gmac_start_xmit()
1253 if (d < nfrags + 2) { in gmac_start_xmit()
1258 if (d < nfrags + 2) { in gmac_start_xmit()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4/
Dsge.c844 unsigned int nfrags = si->nr_frags; in cxgb4_write_sgl() local
851 nfrags++; in cxgb4_write_sgl()
858 ULPTX_NSGE_V(nfrags)); in cxgb4_write_sgl()
859 if (likely(--nfrags == 0)) in cxgb4_write_sgl()
868 for (i = (nfrags != si->nr_frags); nfrags >= 2; nfrags -= 2, to++) { in cxgb4_write_sgl()
874 if (nfrags) { in cxgb4_write_sgl()
913 u8 i = 0, frag_idx = 0, nfrags = 0; in cxgb4_write_partial_sgl() local
924 nfrags++; in cxgb4_write_partial_sgl()
941 nfrags++; in cxgb4_write_partial_sgl()
967 nfrags++; in cxgb4_write_partial_sgl()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dktls_tx.c16 mlx5e_ktls_dumps_num_wqes(struct mlx5e_txqsq *sq, unsigned int nfrags, in mlx5e_ktls_dumps_num_wqes() argument
22 return nfrags + DIV_ROUND_UP(sync_len, sq->hw_mtu); in mlx5e_ktls_dumps_num_wqes()
/kernel/linux/linux-5.10/drivers/infiniband/hw/qib/
Dqib_user_sdma.c826 int nfrags = 0; in qib_user_sdma_queue_pkts() local
895 nfrags++; in qib_user_sdma_queue_pkts()
996 if (nfrags) { in qib_user_sdma_queue_pkts()
999 nfrags, npages); in qib_user_sdma_queue_pkts()
/kernel/linux/linux-5.10/drivers/net/ethernet/faraday/
Dftgmac100.c710 unsigned int pointer, nfrags, len, i, j; in ftgmac100_hard_start_xmit() local
730 nfrags = skb_shinfo(skb)->nr_frags; in ftgmac100_hard_start_xmit()
767 if (nfrags == 0) in ftgmac100_hard_start_xmit()
776 for (i = 0; i < nfrags; i++) { in ftgmac100_hard_start_xmit()
793 if (i == (nfrags - 1)) in ftgmac100_hard_start_xmit()
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb3/
Dsge.c241 int nfrags, frag_idx, curflit, j = d->addr_idx; in unmap_skb() local
253 nfrags = skb_shinfo(skb)->nr_frags; in unmap_skb()
255 while (frag_idx < nfrags && curflit < WR_FLITS) { in unmap_skb()
268 if (frag_idx < nfrags) { /* SGL continues into next Tx descriptor */ in unmap_skb()
1016 unsigned int i, j = 0, k = 0, nfrags; in write_sgl() local
1023 nfrags = skb_shinfo(skb)->nr_frags; in write_sgl()
1024 for (i = 0; i < nfrags; i++) { in write_sgl()
1035 return ((nfrags + (len != 0)) * 3) / 2 + j; in write_sgl()
/kernel/linux/linux-5.10/net/core/
Dskbuff.c1939 int nfrags = skb_shinfo(skb)->nr_frags; in ___pskb_trim() local
1951 for (; i < nfrags; i++) { in ___pskb_trim()
1964 for (; i < nfrags; i++) in ___pskb_trim()
3238 const int nfrags = skb_shinfo(skb)->nr_frags; in skb_split_no_header() local
3245 for (i = 0; i < nfrags; i++) { in skb_split_no_header()
3810 int nfrags = skb_shinfo(head_skb)->nr_frags; in skb_segment() local
3911 if (!hsize && i >= nfrags && skb_headlen(list_skb) && in skb_segment()
3916 nfrags = skb_shinfo(list_skb)->nr_frags; in skb_segment()
3922 BUG_ON(i >= nfrags); in skb_segment()
4014 if (i >= nfrags) { in skb_segment()
[all …]
Dpktgen.c276 int nfrags; member
560 pkt_dev->nfrags, (unsigned long long) pkt_dev->delay, in pktgen_if_show()
983 pkt_dev->nfrags = value; in pktgen_if_write()
984 sprintf(pg_result, "OK: frags=%d", pkt_dev->nfrags); in pktgen_if_write()
2622 if (pkt_dev->nfrags <= 0) { in pktgen_finalize_skb()
2625 int frags = pkt_dev->nfrags; in pktgen_finalize_skb()
3617 pkt_dev->nfrags = 0; in pktgen_add_device()
/kernel/linux/linux-5.10/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_main.c3169 int nfrags = skb_shinfo(skb)->nr_frags; in stmmac_tso_xmit() local
3270 stmmac_tso_allocator(priv, des, tmp_pay_len, (nfrags == 0), queue); in stmmac_tso_xmit()
3273 for (i = 0; i < nfrags; i++) { in stmmac_tso_xmit()
3283 (i == nfrags - 1), queue); in stmmac_tso_xmit()
3336 priv->xstats.tx_tso_nfrags += nfrags; in stmmac_tso_xmit()
3377 tx_q->cur_tx, first, nfrags); in stmmac_tso_xmit()
3417 int nfrags = skb_shinfo(skb)->nr_frags; in stmmac_xmit() local
3440 if (unlikely(stmmac_tx_avail(priv, queue) < nfrags + 1)) { in stmmac_xmit()
3484 for (i = 0; i < nfrags; i++) { in stmmac_xmit()
3487 bool last_segment = (i == (nfrags - 1)); in stmmac_xmit()
[all …]
/kernel/linux/linux-5.10/fs/ufs/
Dinode.c263 unsigned nfrags = uspi->s_fpb; in ufs_inode_getfrag() local
280 nfrags = (new_fragment & uspi->s_fpbmask) + 1; in ufs_inode_getfrag()
290 goal, nfrags, err, locked_page); in ufs_inode_getfrag()

12