/openbmc/qemu/audio/ |
H A D | ossaudio.c | 45 int nfrags; member 54 int nfrags; member 63 int nfrags; member 215 dolog ("nfrags | %10d | %10d\n", req->nfrags, obt->nfrags); in oss_dump_info() 275 req->nfrags = opdo->has_buffer_count ? opdo->buffer_count : 4; in oss_open() 322 int mmmmssss = (req->nfrags << 16) | ctz32 (req->fragsize); in oss_open() 325 req->nfrags, req->fragsize); in oss_open() 344 obt->nfrags = abinfo.fragstotal; in oss_open() 353 (req->nfrags != obt->nfrags)) { in oss_open() 526 oss->nfrags = obt.nfrags; in oss_init_out() [all …]
|
/openbmc/linux/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() 480 int nfrags; in esp6_output_head() local 499 nfrags = 1; in esp6_output_head() 528 nfrags = skb_shinfo(skb)->nr_frags; in esp6_output_head() 530 __skb_fill_page_desc(skb, nfrags, page, pfrag->offset, in esp6_output_head() 532 skb_shinfo(skb)->nr_frags = ++nfrags; in esp6_output_head() 538 nfrags++; in esp6_output_head() 553 nfrags = skb_cow_data(skb, tailen, &trailer); in esp6_output_head() 554 if (nfrags < 0) in esp6_output_head() [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 + sglists, hdr_len + in ah6_input() [all …]
|
H A D | esp6_offload.c | 328 esp.nfrags = esp6_output_head(x, skb, &esp); in esp6_xmit() 329 if (esp.nfrags < 0) in esp6_xmit() 330 return esp.nfrags; in esp6_xmit()
|
/openbmc/linux/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() 444 int nfrags; in esp_output_head() local 464 nfrags = 1; in esp_output_head() 493 nfrags = skb_shinfo(skb)->nr_frags; in esp_output_head() 495 __skb_fill_page_desc(skb, nfrags, page, pfrag->offset, in esp_output_head() 497 skb_shinfo(skb)->nr_frags = ++nfrags; in esp_output_head() 503 nfrags++; in esp_output_head() 516 nfrags = skb_cow_data(skb, tailen, &trailer); in esp_output_head() 517 if (nfrags < 0) in esp_output_head() [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 + sglists, ihl + in ah_input() [all …]
|
H A D | esp4_offload.c | 297 esp.nfrags = esp_output_head(x, skb, &esp); in esp_xmit() 298 if (esp.nfrags < 0) in esp_xmit() 299 return esp.nfrags; in esp_xmit()
|
/openbmc/linux/drivers/net/ethernet/pasemi/ |
H A D | pasemi_mac.c | 243 const int nfrags, in pasemi_mac_unmap_tx_skb() argument 252 for (f = 0; f < nfrags; f++) { 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; i++) in pasemi_mac_queue_csdesc() 1436 int i, nfrags; in pasemi_mac_start_tx() local [all …]
|
/openbmc/linux/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()
|
/openbmc/linux/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 != si->nr_frags); nfrags >= 2; nfrags -= 2, to++) { in write_sgl() 938 if (nfrags) { in write_sgl() [all …]
|
H A D | adapter.h | 156 unsigned int nfrags; /* # of fragments */ member
|
/openbmc/linux/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()
|
/openbmc/linux/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() 729 int pad, nfrags, ndescs, iovi, offset; in gve_tx_fill_xdp() local 741 nfrags = gve_tx_alloc_fifo(&tx->tx_fifo, pad + len, in gve_tx_fill_xdp() 744 ndescs = nfrags - iovi; in gve_tx_fill_xdp() 747 while (iovi < nfrags) { in gve_tx_fill_xdp()
|
/openbmc/linux/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()
|
/openbmc/linux/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()
|
/openbmc/linux/include/net/ |
H A D | esp.h | 39 int nfrags; member
|
/openbmc/linux/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/ |
H A D | chcr_ktls.c | 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() argument 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_info->key_ctx_len) + 2; in chcr_ktls_xmit_wr_short() 1475 u32 wr_mid = 0, nfrags; in chcr_ktls_tx_plaintxt() local [all …]
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb/ |
H A D | sge.c | 1118 unsigned int nfrags = skb_shinfo(skb)->nr_frags; in compute_large_page_tx_descs() local 1124 for (i = 0; nfrags--; i++) { in compute_large_page_tx_descs() 1166 unsigned int nfrags, in write_large_page_tx_descs() argument 1176 *gen, nfrags == 0 && *desc_len == 0); in write_large_page_tx_descs() 1209 nfrags = skb_shinfo(skb)->nr_frags; in write_tx_descs() local 1221 V_CMD_EOP(nfrags == 0 && desc_len <= SGE_TX_DESC_MAX_PLEN) | in write_tx_descs() 1245 nfrags, q); in write_tx_descs() 1249 nfrags == 0); in write_tx_descs() 1256 for (i = 0; nfrags--; i++) { in write_tx_descs() 1274 nfrags, q); in write_tx_descs() [all …]
|
/openbmc/linux/drivers/net/ethernet/cortina/ |
H A D | gemini.c | 615 unsigned short nfrags; in gmac_clean_txq() local 654 nfrags = word0.bits.desc_count - 1; in gmac_clean_txq() 655 if (nfrags) { in gmac_clean_txq() 656 if (nfrags >= TX_MAX_FRAGS) in gmac_clean_txq() 657 nfrags = TX_MAX_FRAGS - 1; in gmac_clean_txq() 660 port->tx_frag_stats[nfrags]++; in gmac_clean_txq() 1264 int txq_num, nfrags; in gmac_start_xmit() local 1274 nfrags = skb_shinfo(skb)->nr_frags; in gmac_start_xmit() 1283 if (d < nfrags + 2) { in gmac_start_xmit() 1288 if (d < nfrags + 2) { in gmac_start_xmit() [all …]
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | sge.c | 844 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 …]
|
/openbmc/linux/drivers/infiniband/hw/qib/ |
H A D | qib_user_sdma.c | 821 int nfrags = 0; in qib_user_sdma_queue_pkts() local 890 nfrags++; in qib_user_sdma_queue_pkts() 991 if (nfrags) { in qib_user_sdma_queue_pkts() 994 nfrags, npages); in qib_user_sdma_queue_pkts()
|
/openbmc/linux/drivers/net/ethernet/faraday/ |
H A D | ftgmac100.c | 718 unsigned int pointer, nfrags, len, i, j; in ftgmac100_hard_start_xmit() local 738 nfrags = skb_shinfo(skb)->nr_frags; in ftgmac100_hard_start_xmit() 775 if (nfrags == 0) in ftgmac100_hard_start_xmit() 784 for (i = 0; i < nfrags; i++) { in ftgmac100_hard_start_xmit() 801 if (i == (nfrags - 1)) in ftgmac100_hard_start_xmit()
|
/openbmc/linux/net/core/ |
H A D | skbuff.c | 2526 int nfrags = skb_shinfo(skb)->nr_frags; in ___pskb_trim() local 2538 for (; i < nfrags; i++) { in ___pskb_trim() 2551 for (; i < nfrags; i++) in ___pskb_trim() 3894 const int nfrags = skb_shinfo(skb)->nr_frags; in skb_split_no_header() local 3901 for (i = 0; i < nfrags; i++) { in skb_split_no_header() 4457 int nfrags, pos; in skb_segment() local 4538 nfrags = skb_shinfo(head_skb)->nr_frags; in skb_segment() 4558 if (hsize <= 0 && i >= nfrags && skb_headlen(list_skb) && in skb_segment() 4567 nfrags = skb_shinfo(list_skb)->nr_frags; in skb_segment() 4573 BUG_ON(i >= nfrags); in skb_segment() [all …]
|
H A D | pktgen.c | 285 int nfrags; member 584 pkt_dev->nfrags, (unsigned long long) pkt_dev->delay, in pktgen_if_show() 1089 pkt_dev->nfrags = value; in pktgen_if_write() 1090 sprintf(pg_result, "OK: frags=%d", pkt_dev->nfrags); in pktgen_if_write() 2758 if (pkt_dev->nfrags <= 0) { in pktgen_finalize_skb() 2761 int frags = pkt_dev->nfrags; in pktgen_finalize_skb() 3758 pkt_dev->nfrags = 0; in pktgen_add_device()
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb3/ |
H A D | sge.c | 238 int nfrags, frag_idx, curflit, j = d->addr_idx; in unmap_skb() local 250 nfrags = skb_shinfo(skb)->nr_frags; in unmap_skb() 252 while (frag_idx < nfrags && curflit < WR_FLITS) { in unmap_skb() 265 if (frag_idx < nfrags) { /* SGL continues into next Tx descriptor */ in unmap_skb() 1011 unsigned int i, j = 0, k = 0, nfrags; in write_sgl() local 1018 nfrags = skb_shinfo(skb)->nr_frags; in write_sgl() 1019 for (i = 0; i < nfrags; i++) { in write_sgl() 1030 return ((nfrags + (len != 0)) * 3) / 2 + j; in write_sgl()
|