/kernel/linux/linux-5.10/net/ipv6/ |
H A D | esp6.c | 63 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 < in esp6_output_head() 935 int nfrags; esp6_input() local [all...] |
H A D | ah6.c | 49 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 in ah6_input() [all...] |
/kernel/linux/linux-6.6/net/ipv6/ |
H A D | esp6.c | 63 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 < in esp6_output_head() 929 int nfrags; esp6_input() local [all...] |
H A D | ah6.c | 49 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() 322 int nfrags; in ah6_output() local 346 nfrags = err; in ah6_output() 358 iph_base = ah_alloc_tmp(ahash, nfrags + sglists, IPV6HDR_BASELEN + in ah6_output() 368 seqhisg = sg + nfrags; in ah6_output() 412 sg_init_table(sg, nfrags + sglists); in ah6_output() 523 int nfrags; in ah6_input() local 558 nfrags = err; in ah6_input() 570 work_iph = ah_alloc_tmp(ahash, nfrags in ah6_input() [all...] |
/kernel/linux/linux-5.10/net/ipv4/ |
H A D | esp4.c | 46 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 < in esp_output_head() 894 int nfrags; esp_input() local [all...] |
H A D | ah4.c | 25 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 in ah_input() [all...] |
/kernel/linux/linux-6.6/net/ipv4/ |
H A D | esp4.c | 46 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() 445 int nfrags; in esp_output_head() local 465 nfrags = 1; in esp_output_head() 494 nfrags = skb_shinfo(skb)->nr_frags; in esp_output_head() 496 __skb_fill_page_desc(skb, nfrags, page, pfrag->offset, in esp_output_head() 498 skb_shinfo(skb)->nr_frags = ++nfrags; in esp_output_head() 504 nfrags++; in esp_output_head() 517 nfrags = skb_cow_data(skb, tailen, &trailer); in esp_output_head() 518 if (nfrags < in esp_output_head() 885 int nfrags; esp_input() local [all...] |
H A D | ah4.c | 25 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 in ah_input() [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/pasemi/ |
H A D | pasemi_mac.c | 243 const int nfrags, in pasemi_mac_unmap_tx_skb() 252 for (f = 0; f < nfrags; f++) { in pasemi_mac_unmap_tx_skb() 259 /* Freed descriptor slot + main SKB ptr + nfrags additional ptrs, 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; in pasemi_mac_queue_csdesc() 242 pasemi_mac_unmap_tx_skb(struct pasemi_mac *mac, const int nfrags, struct sk_buff *skb, const dma_addr_t *dmas) pasemi_mac_unmap_tx_skb() argument 1436 int i, nfrags; pasemi_mac_start_tx() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/pasemi/ |
H A D | pasemi_mac.c | 243 const int nfrags, in pasemi_mac_unmap_tx_skb() 252 for (f = 0; f < nfrags; f++) { in pasemi_mac_unmap_tx_skb() 260 /* Freed descriptor slot + main SKB ptr + nfrags additional ptrs, in pasemi_mac_unmap_tx_skb() 263 return (nfrags + 3) & ~1; in pasemi_mac_unmap_tx_skb() 514 int freed, nfrags; in pasemi_mac_free_tx_resources() local 527 nfrags = skb_shinfo(info->skb)->nr_frags; in pasemi_mac_free_tx_resources() 528 for (j = 0; j <= nfrags; j++) in pasemi_mac_free_tx_resources() 531 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; in pasemi_mac_queue_csdesc() 242 pasemi_mac_unmap_tx_skb(struct pasemi_mac *mac, const int nfrags, struct sk_buff *skb, const dma_addr_t *dmas) pasemi_mac_unmap_tx_skb() argument 1436 int i, nfrags; pasemi_mac_start_tx() local [all...] |
/kernel/linux/linux-5.10/drivers/target/iscsi/cxgbit/ |
H A D | cxgbit_main.c | 222 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-6.6/drivers/target/iscsi/cxgbit/ |
H A D | cxgbit_main.c | 229 for (i = 1; i < gl->nfrags; i++) in cxgbit_copy_frags() 235 skb_shinfo(skb)->nr_frags += gl->nfrags; in cxgbit_copy_frags() 238 get_page(gl->frags[gl->nfrags - 1].page); in cxgbit_copy_frags() 260 if (unlikely(gl->nfrags > 1)) in cxgbit_lro_add_packet_gl() 272 pdu_cb->nr_dfrags = gl->nfrags; in cxgbit_lro_add_packet_gl() 288 if (unlikely(gl->nfrags > 1)) in cxgbit_lro_add_packet_gl() 308 pdu_cb->frags += gl->nfrags; in cxgbit_lro_add_packet_gl() 413 if ((gl && (((skb_shinfo(skb)->nr_frags + gl->nfrags) > in cxgbit_lro_receive()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/pensando/ionic/ |
H A D | ionic_txrx.c | 335 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/ |
H A D | sge.c | 310 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 ! in write_sgl() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/cxgb4vf/ |
H A D | sge.c | 310 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 ! in write_sgl() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/pensando/ionic/ |
H A D | ionic_txrx.c | 425 unsigned int nfrags; in ionic_rx_fill() local 440 nfrags = 0; in ionic_rx_fill() 461 nfrags++; in ionic_rx_fill() 482 nfrags++; in ionic_rx_fill() 491 desc->opcode = (nfrags > 1) ? IONIC_RXQ_DESC_OPCODE_SG : in ionic_rx_fill() 493 desc_info->nbufs = nfrags; in ionic_rx_fill() 727 unsigned int nfrags; in ionic_tx_map_skb() local 741 nfrags = skb_shinfo(skb)->nr_frags; in ionic_tx_map_skb() 742 for (frag_idx = 0; frag_idx < nfrags; frag_idx++, frag++) { in ionic_tx_map_skb() 753 desc_info->nbufs = 1 + nfrags; in ionic_tx_map_skb() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/fungible/funeth/ |
H A D | funeth_tx.c | 516 unsigned int idx, nfrags = 1, ndesc = 1, tot_len = xdpf->len; in fun_xdp_tx() local 528 nfrags += si->nr_frags; in fun_xdp_tx() 529 ndesc = DIV_ROUND_UP((sizeof(*req) + nfrags * in fun_xdp_tx() 554 req->dataop = FUN_DATAOP_HDR_INIT(nfrags, 0, nfrags, 0, tot_len); in fun_xdp_tx() 556 fun_write_gl(q, req, dma, lens, nfrags); in fun_xdp_tx() 565 trace_funeth_tx(q, tot_len, idx, nfrags); in fun_xdp_tx()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/google/gve/ |
H A D | gve_tx.c | 79 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-6.6/drivers/net/wireless/mediatek/mt76/ |
H A D | testmode.c | 111 int nfrags, i; in mt76_testmode_alloc_skb() local 119 nfrags = len / MT_TXP_MAX_LEN; in mt76_testmode_alloc_skb() 120 head_len = nfrags ? MT_TXP_MAX_LEN : len; in mt76_testmode_alloc_skb() 146 for (i = 0; i < nfrags; i++) { in mt76_testmode_alloc_skb() 150 if (i == nfrags - 1) in mt76_testmode_alloc_skb()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/google/gve/ |
H A D | gve_tx.c | 89 int nfrags = 0; in gve_tx_alloc_fifo() local 103 nfrags++; in gve_tx_alloc_fifo() 113 nfrags++; in gve_tx_alloc_fifo() 125 iov[nfrags - 1].iov_padding = padding; in gve_tx_alloc_fifo() 132 return nfrags; in gve_tx_alloc_fifo() 728 int pad, nfrags, ndescs, iovi, offset; in gve_tx_fill_xdp() local 740 nfrags = gve_tx_alloc_fifo(&tx->tx_fifo, pad + len, in gve_tx_fill_xdp() 743 ndescs = nfrags - iovi; in gve_tx_fill_xdp() 746 while (iovi < nfrags) { in gve_tx_fill_xdp()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/ |
H A D | chcr_ktls.c | 17 /* chcr_get_nfrags_to_send: get the remaining nfrags after start offset 26 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() 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_inf in chcr_ktls_xmit_wr_short() 1106 chcr_ktls_xmit_wr_complete(struct sk_buff *skb, struct chcr_ktls_info *tx_info, struct sge_eth_txq *q, u32 tcp_seq, bool is_last_wr, u32 data_len, u32 skb_offset, u32 nfrags, bool tcp_push, u32 mss) chcr_ktls_xmit_wr_complete() argument 1481 u32 wr_mid = 0, nfrags; chcr_ktls_tx_plaintxt() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/ |
H A D | chcr_ktls.c | 18 /* chcr_get_nfrags_to_send: get the remaining nfrags after start offset 27 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() 1104 u32 skb_offset, u32 nfrags, 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() 1282 u32 len16, wr_mid = 0, cipher_start, nfrags; in chcr_ktls_xmit_wr_short() local 1296 nfrags = chcr_get_nfrags_to_send(skb, skb_offset, data_len); in chcr_ktls_xmit_wr_short() 1300 flits = chcr_ktls_get_tx_flits(nfrags, tx_inf in chcr_ktls_xmit_wr_short() 1100 chcr_ktls_xmit_wr_complete(struct sk_buff *skb, struct chcr_ktls_info *tx_info, struct sge_eth_txq *q, u32 tcp_seq, bool is_last_wr, u32 data_len, u32 skb_offset, u32 nfrags, bool tcp_push, u32 mss) chcr_ktls_xmit_wr_complete() argument 1475 u32 wr_mid = 0, nfrags; chcr_ktls_tx_plaintxt() local [all...] |
/kernel/linux/linux-5.10/include/net/ |
H A D | esp.h | 38 int nfrags; member
|
/kernel/linux/linux-6.6/include/net/ |
H A D | esp.h | 39 int nfrags; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb/ |
H A D | sge.c | 1123 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() 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, in write_tx_descs() 1165 write_large_page_tx_descs(unsigned int pidx, struct cmdQ_e **e, struct cmdQ_ce **ce, unsigned int *gen, dma_addr_t *desc_mapping, unsigned int *desc_len, unsigned int nfrags, struct cmdQ *q) write_large_page_tx_descs() argument [all...] |