/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/ |
D | alloc.c | 82 buf->frags = kcalloc(buf->npages, sizeof(struct mlx5_buf_list), in mlx5_frag_buf_alloc_node() 84 if (!buf->frags) in mlx5_frag_buf_alloc_node() 88 struct mlx5_buf_list *frag = &buf->frags[i]; in mlx5_frag_buf_alloc_node() 97 buf->frags[i].buf, buf->frags[i].map); in mlx5_frag_buf_alloc_node() 109 dma_free_coherent(mlx5_core_dma_dev(dev), PAGE_SIZE, buf->frags[i].buf, in mlx5_frag_buf_alloc_node() 110 buf->frags[i].map); in mlx5_frag_buf_alloc_node() 111 kfree(buf->frags); in mlx5_frag_buf_alloc_node() 125 dma_free_coherent(mlx5_core_dma_dev(dev), frag_sz, buf->frags[i].buf, in mlx5_frag_buf_free() 126 buf->frags[i].map); in mlx5_frag_buf_free() 129 kfree(buf->frags); in mlx5_frag_buf_free() [all …]
|
D | wq.c | 61 mlx5_init_fbc(wq_ctrl->buf.frags, log_wq_stride, log_wq_sz, fbc); in mlx5_wq_cyc_create() 128 mlx5_init_fbc(wq_ctrl->buf.frags, log_rq_stride, log_rq_sz, &wq->rq.fbc); in mlx5_wq_qp_create() 136 mlx5_init_fbc_offset(wq_ctrl->buf.frags, in mlx5_wq_qp_create() 142 mlx5_init_fbc(wq_ctrl->buf.frags + rq_npages, in mlx5_wq_qp_create() 185 mlx5_init_fbc(wq_ctrl->buf.frags, log_wq_stride, log_wq_sz, &wq->fbc); in mlx5_cqwq_create() 234 mlx5_init_fbc(wq_ctrl->buf.frags, log_wq_stride, log_wq_sz, fbc); in mlx5_wq_ll_create()
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx4/ |
D | en_rx.c | 77 struct mlx4_en_rx_alloc *frags, in mlx4_en_alloc_frags() argument 82 for (i = 0; i < priv->num_frags; i++, frags++) { in mlx4_en_alloc_frags() 83 if (!frags->page) { in mlx4_en_alloc_frags() 84 if (mlx4_alloc_page(priv, frags, gfp)) in mlx4_en_alloc_frags() 88 rx_desc->data[i].addr = cpu_to_be64(frags->dma + in mlx4_en_alloc_frags() 89 frags->page_offset); in mlx4_en_alloc_frags() 139 struct mlx4_en_rx_alloc *frags = ring->rx_info + in mlx4_en_prepare_rx_desc() local 143 if (!frags->page) { in mlx4_en_prepare_rx_desc() 145 frags->page = ring->page_cache.buf[ring->page_cache.index].page; in mlx4_en_prepare_rx_desc() 146 frags->dma = ring->page_cache.buf[ring->page_cache.index].dma; in mlx4_en_prepare_rx_desc() [all …]
|
/linux-6.1.9/drivers/net/ethernet/fungible/funeth/ |
D | funeth_rx.c | 141 static void *fun_run_xdp(struct funeth_rxq *q, skb_frag_t *frags, void *buf_va, in fun_run_xdp() argument 150 xdp_init_buff(&xdp, ALIGN(skb_frag_size(frags), FUN_EPRQ_PKT_ALIGN), in fun_run_xdp() 152 xdp_prepare_buff(&xdp, buf_va, FUN_XDP_HEADROOM, skb_frag_size(frags) - in fun_run_xdp() 161 skb_frag_size_set(frags, xdp.data_end - xdp.data); in fun_run_xdp() 162 skb_frag_off_add(frags, xdp.data - xdp.data_hard_start); in fun_run_xdp() 297 skb_frag_t *frags) in fun_gather_pkt() argument 326 __skb_frag_set_page(frags, buf->page); in fun_gather_pkt() 327 skb_frag_off_set(frags, q->buf_offset); in fun_gather_pkt() 328 skb_frag_size_set(frags++, frag_len); in fun_gather_pkt() 371 skb_frag_t frags[RX_MAX_FRAGS]; in fun_handle_cqe_pkt() local [all …]
|
/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/ |
D | iwl-dbg-tlv.c | 394 struct iwl_dram_data *frag = &fw_mon->frags[i]; in iwl_dbg_tlv_fragments_free() 404 kfree(fw_mon->frags); in iwl_dbg_tlv_fragments_free() 405 fw_mon->frags = NULL; in iwl_dbg_tlv_fragments_free() 601 fw_mon->frags = kcalloc(num_frags, sizeof(*fw_mon->frags), GFP_KERNEL); in iwl_dbg_tlv_alloc_fragments() 602 if (!fw_mon->frags) in iwl_dbg_tlv_alloc_fragments() 612 pages = iwl_dbg_tlv_alloc_fragment(fwrt, &fw_mon->frags[i], in iwl_dbg_tlv_alloc_fragments() 687 struct iwl_buf_alloc_frag *frag = &data.frags[j]; in iwl_dbg_tlv_apply_buffer() 689 &fw_mon->frags[fw_mon_idx++]; in iwl_dbg_tlv_apply_buffer() 758 struct iwl_buf_alloc_frag *frag = &data->frags[j]; in iwl_dbg_tlv_update_dram() 759 struct iwl_dram_data *fw_mon_frag = &fw_mon->frags[fw_mon_idx++]; in iwl_dbg_tlv_update_dram() [all …]
|
/linux-6.1.9/net/core/ |
D | gro.c | 196 frag = pinfo->frags + nr_frags; in skb_gro_receive() 197 frag2 = skbinfo->frags + i; in skb_gro_receive() 217 skb_frag_t *frag = pinfo->frags + nr_frags; in skb_gro_receive() 235 memcpy(frag + 1, skbinfo->frags, sizeof(*frag) * skbinfo->nr_frags); in skb_gro_receive() 252 skb_frag_off_add(&skbinfo->frags[0], eat); in skb_gro_receive() 253 skb_frag_size_sub(&skbinfo->frags[0], eat); in skb_gro_receive() 417 const skb_frag_t *frag0 = &pinfo->frags[0]; in skb_gro_reset_offset() 444 skb_frag_off_add(&pinfo->frags[0], grow); in gro_pull_from_frag0() 445 skb_frag_size_sub(&pinfo->frags[0], grow); in gro_pull_from_frag0() 447 if (unlikely(!skb_frag_size(&pinfo->frags[0]))) { in gro_pull_from_frag0() [all …]
|
D | skbuff.c | 723 skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; in skb_coalesce_rx_frag() 783 __skb_frag_unref(&shinfo->frags[i], skb->pp_recycle); in skb_release_data() 974 skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; in skb_dump() 1574 skb_frag_t *f = &skb_shinfo(skb)->frags[i]; in skb_copy_ubufs() 1781 skb_shinfo(n)->frags[i] = skb_shinfo(skb)->frags[i]; in __pskb_copy_fclone() 1845 offsetof(struct skb_shared_info, frags[skb_shinfo(skb)->nr_frags])); in pskb_expand_head() 1948 offsetof(struct skb_shared_info, frags[shinfo->nr_frags])); in __skb_unclone_keeptruesize() 2253 int end = offset + skb_frag_size(&skb_shinfo(skb)->frags[i]); in ___pskb_trim() 2260 skb_frag_size_set(&skb_shinfo(skb)->frags[i++], len - offset); in ___pskb_trim() 2392 int size = skb_frag_size(&skb_shinfo(skb)->frags[i]); in __pskb_pull_tail() [all …]
|
D | tso.c | 62 skb_frag_t *frag = &skb_shinfo(skb)->frags[tso->next_frag_idx]; in tso_build_data() 88 skb_frag_t *frag = &skb_shinfo(skb)->frags[tso->next_frag_idx]; in tso_start()
|
/linux-6.1.9/drivers/net/ethernet/marvell/octeon_ep/ |
D | octep_tx.c | 41 u8 frags, i; in octep_iq_process_completions() local 68 frags = shinfo->nr_frags; in octep_iq_process_completions() 75 while (frags--) { in octep_iq_process_completions() 111 u8 frags, i; in octep_iq_free_pending() local 130 frags = shinfo->nr_frags; in octep_iq_free_pending() 138 while (frags--) { in octep_iq_free_pending()
|
/linux-6.1.9/drivers/net/wireless/ath/ath10k/ |
D | htt_tx.c | 1397 struct htt_data_tx_desc_frag *frags; in ath10k_htt_tx_32() local 1460 frags = (struct htt_data_tx_desc_frag *) in ath10k_htt_tx_32() 1461 &ext_desc_t[msdu_id].frags; in ath10k_htt_tx_32() 1463 frags[0].tword_addr.paddr_lo = in ath10k_htt_tx_32() 1465 frags[0].tword_addr.paddr_hi = 0; in ath10k_htt_tx_32() 1466 frags[0].tword_addr.len_16 = __cpu_to_le16(msdu->len); in ath10k_htt_tx_32() 1471 frags = txbuf->frags; in ath10k_htt_tx_32() 1472 frags[0].dword_addr.paddr = in ath10k_htt_tx_32() 1474 frags[0].dword_addr.len = __cpu_to_le32(msdu->len); in ath10k_htt_tx_32() 1475 frags[1].dword_addr.paddr = 0; in ath10k_htt_tx_32() [all …]
|
/linux-6.1.9/drivers/net/wireless/ath/wil6210/ |
D | trace.h | 212 TP_PROTO(u8 vring, u16 index, unsigned int len, u8 frags), 213 TP_ARGS(vring, index, len, frags), 216 __field(u8, frags) 222 __entry->frags = frags; 227 __entry->vring, __entry->index, __entry->len, __entry->frags)
|
/linux-6.1.9/drivers/net/xen-netback/ |
D | netback.c | 388 skb_frag_t *frags = shinfo->frags; in xenvif_get_requests() local 457 frag_set_pending_idx(&frags[shinfo->nr_frags], pending_idx); in xenvif_get_requests() 468 frags = shinfo->frags; in xenvif_get_requests() 476 frag_set_pending_idx(&frags[shinfo->nr_frags], in xenvif_get_requests() 531 frag_get_pending_idx(&shinfo->frags[0]) == in xenvif_tx_check_gop() 567 pending_idx = frag_get_pending_idx(&shinfo->frags[i]); in xenvif_tx_check_gop() 610 pending_idx = frag_get_pending_idx(&shinfo->frags[j]); in xenvif_tx_check_gop() 621 pending_idx = frag_get_pending_idx(&first_shinfo->frags[j]); in xenvif_tx_check_gop() 652 skb_frag_t *frag = shinfo->frags + i; in xenvif_fill_frags() 1084 skb_frag_t frags[MAX_SKB_FRAGS]; in xenvif_handle_frag_list() local [all …]
|
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb4vf/ |
D | sge.c | 288 end = &si->frags[si->nr_frags]; in map_skb() 289 for (fp = si->frags; fp < end; fp++) { in map_skb() 298 while (fp-- > si->frags) in map_skb() 917 sgl->len0 = htonl(skb_frag_size(&si->frags[0])); in write_sgl() 933 to->len[0] = cpu_to_be32(skb_frag_size(&si->frags[i])); in write_sgl() 934 to->len[1] = cpu_to_be32(skb_frag_size(&si->frags[++i])); in write_sgl() 939 to->len[0] = cpu_to_be32(skb_frag_size(&si->frags[i])); in write_sgl() 1476 __skb_fill_page_desc(skb, 0, gl->frags[0].page, in copy_frags() 1477 gl->frags[0].offset + offset, in copy_frags() 1478 gl->frags[0].size - offset); in copy_frags() [all …]
|
/linux-6.1.9/net/sunrpc/auth_gss/ |
D | gss_krb5_crypto.c | 427 struct scatterlist frags[4]; member 444 sg_set_page(&desc->frags[desc->fragno], sg_page(sg), sg->length, in decryptor() 455 sg_mark_end(&desc->frags[desc->fragno - 1]); in decryptor() 457 skcipher_request_set_crypt(desc->req, desc->frags, desc->frags, in decryptor() 464 sg_init_table(desc->frags, 4); in decryptor() 467 sg_set_page(&desc->frags[0], sg_page(sg), fraglen, in decryptor() 497 sg_init_table(desc.frags, 4); in gss_decrypt_xdr_buf() 771 sg_init_table(desc.frags, 4); in gss_krb5_aes_decrypt()
|
/linux-6.1.9/block/partitions/ |
D | ldm.c | 1218 static bool ldm_frag_add (const u8 *data, int size, struct list_head *frags) in ldm_frag_add() argument 1224 BUG_ON (!data || !frags); in ldm_frag_add() 1243 list_for_each (item, frags) { in ldm_frag_add() 1260 list_add_tail (&f->list, frags); in ldm_frag_add() 1309 static bool ldm_frag_commit (struct list_head *frags, struct ldmdb *ldb) in ldm_frag_commit() argument 1314 BUG_ON (!frags || !ldb); in ldm_frag_commit() 1316 list_for_each (item, frags) { in ldm_frag_commit() 1350 LIST_HEAD (frags); in ldm_get_vblks() 1377 if (!ldm_frag_add (data, size, &frags)) in ldm_get_vblks() 1386 result = ldm_frag_commit (&frags, ldb); /* Failures, already logged */ in ldm_get_vblks() [all …]
|
/linux-6.1.9/drivers/target/iscsi/cxgbit/ |
D | cxgbit_main.c | 226 __skb_fill_page_desc(skb, skb_frag_idx, gl->frags[0].page, in cxgbit_copy_frags() 227 gl->frags[0].offset + offset, in cxgbit_copy_frags() 228 gl->frags[0].size - offset); in cxgbit_copy_frags() 231 gl->frags[i].page, in cxgbit_copy_frags() 232 gl->frags[i].offset, in cxgbit_copy_frags() 233 gl->frags[i].size); in cxgbit_copy_frags() 238 get_page(gl->frags[gl->nfrags - 1].page); in cxgbit_copy_frags() 308 pdu_cb->frags += gl->nfrags; in cxgbit_lro_add_packet_gl()
|
D | cxgbit_target.c | 882 skb_frag_t *dfrag = &ssi->frags[pdu_cb->dfrag_idx]; in cxgbit_handle_immediate_data() 1401 pdu_cb->ddigest, pdu_cb->frags); in cxgbit_lro_skb_dump() 1404 skb, i, skb_frag_off(&ssi->frags[i]), in cxgbit_lro_skb_dump() 1405 skb_frag_size(&ssi->frags[i])); in cxgbit_lro_skb_dump() 1416 put_page(skb_frag_page(&ssi->frags[i])); in cxgbit_lro_hskb_reset() 1441 memcpy(&hssi->frags[hfrag_idx], &ssi->frags[pdu_cb->hfrag_idx], in cxgbit_lro_skb_merge() 1444 get_page(skb_frag_page(&hssi->frags[hfrag_idx])); in cxgbit_lro_skb_merge() 1446 hpdu_cb->frags++; in cxgbit_lro_skb_merge() 1449 len = skb_frag_size(&hssi->frags[hfrag_idx]); in cxgbit_lro_skb_merge() 1463 memcpy(&hssi->frags[dfrag_idx], in cxgbit_lro_skb_merge() [all …]
|
/linux-6.1.9/sound/soc/intel/skylake/ |
D | skl-sst-cldma.c | 83 ctx->cl_dev.frags = 0; in skl_cldma_setup_bdle() 86 (ctx->cl_dev.frags * ctx->cl_dev.bufsize)); in skl_cldma_setup_bdle() 97 ctx->cl_dev.frags++; in skl_cldma_setup_bdle() 361 ctx->cl_dev.bufsize, ctx->cl_dev.frags); in skl_cldma_prepare()
|
/linux-6.1.9/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_xdp.c | 60 skb_frag_t *frag = &sinfo->frags[i]; in bnxt_xmit_bd() 136 int i, j, frags; in bnxt_tx_int_xdp() local 155 frags = tx_buf->nr_frags; in bnxt_tx_int_xdp() 156 for (j = 0; j < frags; j++) { in bnxt_tx_int_xdp() 210 struct page *page = skb_frag_page(&shinfo->frags[i]); in bnxt_xdp_buff_frags_free()
|
/linux-6.1.9/drivers/staging/media/deprecated/saa7146/av7110/ |
D | av7110_av.c | 570 p->frags = 0; in av7110_p2t_init() 580 p->frags = 0; in clear_p2t() 584 static int find_pes_header(u8 const *buf, long int length, int *frags) in find_pes_header() argument 589 *frags = 0; in find_pes_header() 618 *frags = 1; in find_pes_header() 621 *frags = 2; in find_pes_header() 625 *frags = 3; in find_pes_header() 639 if (p->frags){ in av7110_p2t_write() 641 switch(p->frags) { in av7110_p2t_write() 686 p->frags = 0; in av7110_p2t_write() [all …]
|
/linux-6.1.9/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_nic.c | 607 skb_frag_t *frag = &sinfo->frags[frag_count]; in aq_nic_map_xdp() 756 skb_frag_t *frag = &skb_shinfo(skb)->frags[frag_count]; in aq_nic_map_skb() 833 unsigned int frags = 1; in aq_nic_xmit_xdpf() local 837 frags += sinfo->nr_frags; in aq_nic_xmit_xdpf() 840 if (frags > AQ_CFG_SKB_FRAGS_MAX) in aq_nic_xmit_xdpf() 852 frags = aq_nic_map_xdp(aq_nic, xdpf, tx_ring); in aq_nic_xmit_xdpf() 853 if (likely(frags)) in aq_nic_xmit_xdpf() 855 frags); in aq_nic_xmit_xdpf() 868 unsigned int frags = 0U; in aq_nic_xmit() local 871 frags = skb_shinfo(skb)->nr_frags + 1; in aq_nic_xmit() [all …]
|
/linux-6.1.9/drivers/staging/qlge/ |
D | TODO | 8 while containing two frags of order-1 allocations, ie. >16K) 12 head room but only puts data in the frags.
|
/linux-6.1.9/sound/hda/ |
D | hdac_stream.c | 268 snd_hdac_stream_writew(azx_dev, SD_LVI, azx_dev->frags - 1); in snd_hdac_stream_setup() 435 if (azx_dev->frags >= AZX_MAX_BDL_ENTRIES) in setup_bdle() 458 azx_dev->frags++; in setup_bdle() 491 azx_dev->frags = 0; in snd_hdac_stream_setup_periods() 765 azx_dev->frags = 0; in snd_hdac_dsp_prepare()
|
/linux-6.1.9/fs/jffs2/ |
D | nodelist.c | 105 this->node->frags--; in jffs2_obsolete_node_frag() 106 if (!this->node->frags) { in jffs2_obsolete_node_frag() 114 …ref_offset(this->node->raw), this->node->ofs, this->node->ofs+this->node->size, this->node->frags); in jffs2_obsolete_node_frag() 286 this->node->frags++; in jffs2_add_frag_to_fragtree() 374 newfrag->node->frags = 1; in jffs2_add_full_dnode_to_inode() 571 if (frag->node && !(--frag->node->frags)) { in jffs2_kill_fragtree()
|
/linux-6.1.9/sound/soc/sof/intel/ |
D | hda-stream.c | 72 if (hstream->frags >= HDA_DSP_MAX_BDL_ENTRIES) { in hda_setup_bdle() 95 hstream->frags++; in hda_setup_bdle() 132 hstream->frags = 0; in hda_dsp_stream_setup_bdl() 428 hstream->frags = 0; in hda_dsp_iccmax_stream_hw_params() 452 0xffff, (hstream->frags - 1)); in hda_dsp_iccmax_stream_hw_params() 569 hstream->frags = 0; in hda_dsp_stream_hw_params() 621 0xffff, (hstream->frags - 1)); in hda_dsp_stream_hw_params()
|