Home
last modified time | relevance | path

Searched refs:frags (Results 1 – 25 of 255) sorted by relevance

1234567891011

/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
Dalloc.c83 buf->frags = kzalloc(sizeof(*buf->frags), GFP_KERNEL); in mlx5_buf_alloc_node()
84 if (!buf->frags) in mlx5_buf_alloc_node()
87 buf->frags->buf = mlx5_dma_zalloc_coherent_node(dev, size, in mlx5_buf_alloc_node()
89 if (!buf->frags->buf) in mlx5_buf_alloc_node()
92 buf->frags->map = t; in mlx5_buf_alloc_node()
101 kfree(buf->frags); in mlx5_buf_alloc_node()
114 dma_free_coherent(mlx5_core_dma_dev(dev), buf->size, buf->frags->buf, in mlx5_buf_free()
115 buf->frags->map); in mlx5_buf_free()
117 kfree(buf->frags); in mlx5_buf_free()
129 buf->frags = kcalloc(buf->npages, sizeof(struct mlx5_buf_list), in mlx5_frag_buf_alloc_node()
[all …]
Dwq.c66 mlx5_init_fbc(wq_ctrl->buf.frags, log_wq_stride, log_wq_sz, fbc); in mlx5_wq_cyc_create()
133 mlx5_init_fbc(wq_ctrl->buf.frags, log_rq_stride, log_rq_sz, &wq->rq.fbc); in mlx5_wq_qp_create()
141 mlx5_init_fbc_offset(wq_ctrl->buf.frags, in mlx5_wq_qp_create()
147 mlx5_init_fbc(wq_ctrl->buf.frags + rq_npages, in mlx5_wq_qp_create()
190 mlx5_init_fbc(wq_ctrl->buf.frags, log_wq_stride, log_wq_sz, &wq->fbc); in mlx5_cqwq_create()
239 mlx5_init_fbc(wq_ctrl->buf.frags, log_wq_stride, log_wq_sz, fbc); in mlx5_wq_ll_create()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/
Den_rx.c77 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 …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dtls_rxtx.c52 skb_frag_t frags[MAX_SKB_FRAGS]; member
126 info->frags[i] = record->frags[i]; in mlx5e_tls_get_sync_data()
127 __skb_frag_ref(&info->frags[i]); in mlx5e_tls_get_sync_data()
128 remaining -= skb_frag_size(&info->frags[i]); in mlx5e_tls_get_sync_data()
131 skb_frag_size_add(&info->frags[i], remaining); in mlx5e_tls_get_sync_data()
239 skb_shinfo(nskb)->frags[i] = info.frags[i]; in mlx5e_tls_handle_ooo()
Dktls_tx.c213 skb_frag_t frags[MAX_SKB_FRAGS]; member
262 skb_frag_t *frag = &record->frags[i]; in tx_sync_info_get()
266 info->frags[i++] = *frag; in tx_sync_info_get()
270 skb_frag_size_add(&info->frags[i - 1], remaining); in tx_sync_info_get()
405 skb_frag_t *f = &info.frags[i]; in mlx5e_ktls_tx_handle_ooo()
437 put_page(skb_frag_page(&info.frags[i])); in mlx5e_ktls_tx_handle_ooo()
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath10k/
Dhtt_tx.c1413 struct htt_data_tx_desc_frag *frags; in ath10k_htt_tx_32() local
1472 frags = (struct htt_data_tx_desc_frag *) in ath10k_htt_tx_32()
1473 &ext_desc_t[msdu_id].frags; in ath10k_htt_tx_32()
1475 frags[0].tword_addr.paddr_lo = in ath10k_htt_tx_32()
1477 frags[0].tword_addr.paddr_hi = 0; in ath10k_htt_tx_32()
1478 frags[0].tword_addr.len_16 = __cpu_to_le16(msdu->len); in ath10k_htt_tx_32()
1483 frags = txbuf->frags; in ath10k_htt_tx_32()
1484 frags[0].dword_addr.paddr = in ath10k_htt_tx_32()
1486 frags[0].dword_addr.len = __cpu_to_le32(msdu->len); in ath10k_htt_tx_32()
1487 frags[1].dword_addr.paddr = 0; in ath10k_htt_tx_32()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/ath/wil6210/
Dtrace.h215 TP_PROTO(u8 vring, u16 index, unsigned int len, u8 frags),
216 TP_ARGS(vring, index, len, frags),
219 __field(u8, frags)
225 __entry->frags = frags;
230 __entry->vring, __entry->index, __entry->len, __entry->frags)
/kernel/linux/linux-5.10/net/core/
Dskbuff.c569 skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; in skb_coalesce_rx_frag()
618 __skb_frag_unref(&shinfo->frags[i]); in skb_release_data()
793 skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; in skb_dump()
1382 skb_frag_t *f = &skb_shinfo(skb)->frags[i]; in skb_copy_ubufs()
1588 skb_shinfo(n)->frags[i] = skb_shinfo(skb)->frags[i]; in __pskb_copy_fclone()
1650 offsetof(struct skb_shared_info, frags[skb_shinfo(skb)->nr_frags])); in pskb_expand_head()
1952 int end = offset + skb_frag_size(&skb_shinfo(skb)->frags[i]); in ___pskb_trim()
1959 skb_frag_size_set(&skb_shinfo(skb)->frags[i++], len - offset); in ___pskb_trim()
2091 int size = skb_frag_size(&skb_shinfo(skb)->frags[i]); in __pskb_pull_tail()
2159 int size = skb_frag_size(&skb_shinfo(skb)->frags[i]); in __pskb_pull_tail()
[all …]
Dtso.c62 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()
/kernel/linux/linux-5.10/drivers/net/xen-netback/
Dnetback.c388 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 …]
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4vf/
Dsge.c288 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()
1479 __skb_fill_page_desc(skb, 0, gl->frags[0].page, in copy_frags()
1480 gl->frags[0].offset + offset, in copy_frags()
1481 gl->frags[0].size - offset); in copy_frags()
[all …]
/kernel/linux/linux-5.10/net/sunrpc/auth_gss/
Dgss_krb5_crypto.c427 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()
/kernel/linux/linux-5.10/drivers/target/iscsi/cxgbit/
Dcxgbit_main.c219 __skb_fill_page_desc(skb, skb_frag_idx, gl->frags[0].page, in cxgbit_copy_frags()
220 gl->frags[0].offset + offset, in cxgbit_copy_frags()
221 gl->frags[0].size - offset); in cxgbit_copy_frags()
224 gl->frags[i].page, in cxgbit_copy_frags()
225 gl->frags[i].offset, in cxgbit_copy_frags()
226 gl->frags[i].size); in cxgbit_copy_frags()
231 get_page(gl->frags[gl->nfrags - 1].page); in cxgbit_copy_frags()
301 pdu_cb->frags += gl->nfrags; in cxgbit_lro_add_packet_gl()
Dcxgbit_target.c882 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 …]
/kernel/linux/linux-5.10/sound/soc/sof/intel/
Dhda-stream.c44 if (stream->frags >= HDA_DSP_MAX_BDL_ENTRIES) { in hda_setup_bdle()
67 stream->frags++; in hda_setup_bdle()
71 stream->frags, chunk); in hda_setup_bdle()
107 stream->frags = 0; in hda_dsp_stream_setup_bdl()
354 hstream->frags = 0; in hda_dsp_iccmax_stream_hw_params()
378 0xffff, (hstream->frags - 1)); in hda_dsp_iccmax_stream_hw_params()
515 hstream->frags = 0; in hda_dsp_stream_hw_params()
562 0xffff, (hstream->frags - 1)); in hda_dsp_stream_hw_params()
/kernel/linux/linux-5.10/block/partitions/
Dldm.c1227 static bool ldm_frag_add (const u8 *data, int size, struct list_head *frags) in ldm_frag_add() argument
1233 BUG_ON (!data || !frags); in ldm_frag_add()
1252 list_for_each (item, frags) { in ldm_frag_add()
1269 list_add_tail (&f->list, frags); in ldm_frag_add()
1318 static bool ldm_frag_commit (struct list_head *frags, struct ldmdb *ldb) in ldm_frag_commit() argument
1323 BUG_ON (!frags || !ldb); in ldm_frag_commit()
1325 list_for_each (item, frags) { in ldm_frag_commit()
1359 LIST_HEAD (frags); in ldm_get_vblks()
1386 if (!ldm_frag_add (data, size, &frags)) in ldm_get_vblks()
1395 result = ldm_frag_commit (&frags, ldb); /* Failures, already logged */ in ldm_get_vblks()
[all …]
/kernel/linux/linux-5.10/sound/soc/intel/skylake/
Dskl-sst-cldma.c83 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()
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/
Diwl-dbg-tlv.c390 struct iwl_dram_data *frag = &fw_mon->frags[i]; in iwl_dbg_tlv_fragments_free()
400 kfree(fw_mon->frags); in iwl_dbg_tlv_fragments_free()
401 fw_mon->frags = NULL; in iwl_dbg_tlv_fragments_free()
586 fw_mon->frags = kcalloc(num_frags, sizeof(*fw_mon->frags), GFP_KERNEL); in iwl_dbg_tlv_alloc_fragments()
587 if (!fw_mon->frags) in iwl_dbg_tlv_alloc_fragments()
597 pages = iwl_dbg_tlv_alloc_fragment(fwrt, &fw_mon->frags[i], in iwl_dbg_tlv_alloc_fragments()
671 struct iwl_buf_alloc_frag *frag = &data.frags[j]; in iwl_dbg_tlv_apply_buffer()
673 &fw_mon->frags[fw_mon_idx++]; in iwl_dbg_tlv_apply_buffer()
/kernel/linux/linux-5.10/include/linux/mlx5/
Ddriver.h324 struct mlx5_buf_list *frags; member
331 struct mlx5_buf_list *frags; member
813 return buf->frags->buf + offset; in mlx5_buf_offset()
847 static inline void mlx5_init_fbc_offset(struct mlx5_buf_list *frags, in mlx5_init_fbc_offset() argument
852 fbc->frags = frags; in mlx5_init_fbc_offset()
861 static inline void mlx5_init_fbc(struct mlx5_buf_list *frags, in mlx5_init_fbc() argument
865 mlx5_init_fbc_offset(frags, log_stride, log_sz, 0, fbc); in mlx5_init_fbc()
876 return fbc->frags[frag].buf + ((fbc->frag_sz_m1 & ix) << fbc->log_stride); in mlx5_frag_buf_get_wqe()
/kernel/linux/linux-5.10/drivers/media/pci/ttpci/
Dav7110_av.c569 p->frags = 0; in av7110_p2t_init()
579 p->frags = 0; in clear_p2t()
583 static int find_pes_header(u8 const *buf, long int length, int *frags) in find_pes_header() argument
588 *frags = 0; in find_pes_header()
617 *frags = 1; in find_pes_header()
620 *frags = 2; in find_pes_header()
624 *frags = 3; in find_pes_header()
638 if (p->frags){ in av7110_p2t_write()
640 switch(p->frags) { in av7110_p2t_write()
685 p->frags = 0; in av7110_p2t_write()
[all …]
/kernel/linux/linux-5.10/sound/soc/txx9/
Dtxx9aclc.c85 dmadata->frags = 2; in txx9aclc_pcm_prepare()
88 dmadata->frags = dmadata->buffer_bytes / dmadata->period_bytes; in txx9aclc_pcm_prepare()
167 dmadata->frag_count = NR_DMA_CHAIN % dmadata->frags; in txx9aclc_dma_work()
187 dmadata->frag_count %= dmadata->frags; in txx9aclc_dma_work()
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/
Dodp.c1731 } frags[]; member
1739 if (atomic_dec_and_test(&work->frags[i].mr->num_deferred_work)) in destroy_prefetch_work()
1740 wake_up(&work->frags[i].mr->q_deferred_work); in destroy_prefetch_work()
1786 dev = work->frags[0].mr->dev; in mlx5_ib_prefetch_mr_work()
1790 ret = pagefault_mr(work->frags[i].mr, work->frags[i].io_virt, in mlx5_ib_prefetch_mr_work()
1791 work->frags[i].length, &bytes_mapped, in mlx5_ib_prefetch_mr_work()
1795 mlx5_update_odp_stats(work->frags[i].mr, prefetch, ret); in mlx5_ib_prefetch_mr_work()
1813 work->frags[i].io_virt = sg_list[i].addr; in init_prefetch_work()
1814 work->frags[i].length = sg_list[i].length; in init_prefetch_work()
1815 work->frags[i].mr = in init_prefetch_work()
[all …]
/kernel/linux/linux-5.10/sound/hda/
Dhdac_stream.c250 snd_hdac_stream_writew(azx_dev, SD_LVI, azx_dev->frags - 1); in snd_hdac_stream_setup()
404 if (azx_dev->frags >= AZX_MAX_BDL_ENTRIES) in setup_bdle()
427 azx_dev->frags++; in setup_bdle()
460 azx_dev->frags = 0; in snd_hdac_stream_setup_periods()
741 azx_dev->frags = 0; in snd_hdac_dsp_prepare()
/kernel/linux/linux-5.10/fs/jffs2/
Dnodelist.c105 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()
/kernel/linux/linux-5.10/net/sctp/
Doutqueue.c1205 union sctp_sack_variable *frags; in sctp_sack_update_unack_data() local
1211 frags = sack->variable; in sctp_sack_update_unack_data()
1213 unack_data -= ((ntohs(frags[i].gab.end) - in sctp_sack_update_unack_data()
1214 ntohs(frags[i].gab.start) + 1)); in sctp_sack_update_unack_data()
1232 union sctp_sack_variable *frags = sack->variable; in sctp_outq_sack() local
1294 highest_tsn += ntohs(frags[gap_ack_blocks - 1].gab.end); in sctp_outq_sack()
1750 union sctp_sack_variable *frags; in sctp_acked() local
1769 frags = sack->variable; in sctp_acked()
1773 if (tsn_offset >= ntohs(frags[i].gab.start) && in sctp_acked()
1774 tsn_offset <= ntohs(frags[i].gab.end)) in sctp_acked()

1234567891011