Home
last modified time | relevance | path

Searched refs:sglen (Results 1 – 25 of 50) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/usb/misc/
Dusbtest.c34 __u32 sglen; member
51 __u32 sglen; member
1157 for (i = 1; i < ctx->param->sglen; i++) { in ctrl_complete()
1160 % ctx->param->sglen]; in ctrl_complete()
1208 if (param->sglen == 0 || param->iterations > UINT_MAX / param->sglen) in test_ctrl_queue()
1214 context.count = param->sglen * param->iterations; in test_ctrl_queue()
1224 urb = kcalloc(param->sglen, sizeof(struct urb *), GFP_KERNEL); in test_ctrl_queue()
1227 for (i = 0; i < param->sglen; i++) { in test_ctrl_queue()
1388 for (i = 0; i < param->sglen; i++) { in test_ctrl_queue()
1407 for (i = 0; i < param->sglen; i++) { in test_ctrl_queue()
[all …]
/kernel/linux/linux-5.10/lib/
Dsg_split.c25 unsigned int sglen; in sg_calculate_split() local
36 sglen = mapped ? sg_dma_len(sg) : sg->length; in sg_calculate_split()
37 if (skip > sglen) { in sg_calculate_split()
38 skip -= sglen; in sg_calculate_split()
42 len = min_t(size_t, size, sglen - skip); in sg_calculate_split()
51 while (!size && (skip + len < sglen) && (--nb_splits > 0)) { in sg_calculate_split()
55 len = min_t(size_t, size, sglen - skip); in sg_calculate_split()
/kernel/linux/linux-5.10/drivers/crypto/nx/
Dnx.c149 unsigned int sglen, in nx_walk_and_build() argument
174 while (len && (nx_sg - nx_dst) < sglen) { in nx_walk_and_build()
184 nx_sg = nx_build_sg_list(nx_sg, dst, &n, sglen - (nx_sg - nx_dst)); in nx_walk_and_build()
272 max_sg_len = min_t(u64, nx_ctx->ap->sglen, in nx_build_sg_lists()
389 if (!trip->sglen || trip->databytelen < NX_PAGE_SIZE) { in nx_of_update_msc()
391 "%u/%u (ignored)\n", trip->sglen, in nx_of_update_msc()
401 props->ap[msc->fc][msc->mode][0].sglen = in nx_of_update_msc()
402 trip->sglen; in nx_of_update_msc()
407 props->ap[msc->fc][msc->mode][1].sglen = in nx_of_update_msc()
408 trip->sglen; in nx_of_update_msc()
[all …]
Dnx-aes-xcbc.c82 nx_ctx->ap->sglen); in nx_xcbc_empty()
88 nx_ctx->ap->sglen); in nx_xcbc_empty()
109 nx_ctx->ap->sglen); in nx_xcbc_empty()
116 nx_ctx->ap->sglen); in nx_xcbc_empty()
197 nx_ctx->ap->sglen); in nx_xcbc_update()
203 &len, nx_ctx->ap->sglen); in nx_xcbc_update()
325 &len, nx_ctx->ap->sglen); in nx_xcbc_final()
334 nx_ctx->ap->sglen); in nx_xcbc_final()
Dnx.h33 u32 sglen; member
45 u32 sglen; member
Dnx-aes-gcm.c123 nx_ctx->ap->sglen); in nx_gca()
187 nx_ctx->ap->sglen); in gmac()
270 &len, nx_ctx->ap->sglen); in gcm_empty()
277 nx_ctx->ap->sglen); in gcm_empty()
Dnx-aes-ccm.c239 nx_insg = nx_build_sg_list(nx_insg, b1, &len, nx_ctx->ap->sglen); in generate_pat()
245 nx_ctx->ap->sglen); in generate_pat()
276 max_sg_len = min_t(u64, nx_ctx->ap->sglen, in generate_pat()
286 nx_ctx->ap->sglen, in generate_pat()
Dnx-sha512.c87 max_sg_len = min_t(u64, nx_ctx->ap->sglen, in nx_sha512_update()
193 max_sg_len = min_t(u64, nx_ctx->ap->sglen, in nx_sha512_final()
/kernel/linux/linux-5.10/drivers/dma/
Dsa11x0-dma.c80 unsigned sglen; member
176 if (p->sg_load == txd->sglen) { in sa11x0_dma_start_sg()
227 if (++p->sg_done == txd->sglen) { in sa11x0_dma_complete()
464 for (i = 0; i < txd->sglen; i++) { in sa11x0_dma_tx_status()
480 for (; i < txd->sglen; i++) { in sa11x0_dma_tx_status()
523 struct dma_chan *chan, struct scatterlist *sg, unsigned int sglen, in sa11x0_dma_prep_slave_sg() argument
529 unsigned i, j = sglen; in sa11x0_dma_prep_slave_sg()
540 if (sglen == 0) in sa11x0_dma_prep_slave_sg()
543 for_each_sg(sg, sgent, sglen, i) { in sa11x0_dma_prep_slave_sg()
563 for_each_sg(sg, sgent, sglen, i) { in sa11x0_dma_prep_slave_sg()
[all …]
Dsprd-dma.c746 unsigned int sglen, int sg_index, in sprd_dma_fill_desc() argument
851 temp = sglen ? (sg_index + 1) % sglen : 0; in sprd_dma_fill_desc()
880 unsigned int sglen, int sg_index, in sprd_dma_fill_linklist_desc() argument
895 return sprd_dma_fill_desc(chan, hw, sglen, sg_index, src, dst, len, in sprd_dma_fill_linklist_desc()
956 unsigned int sglen, enum dma_transfer_direction dir, in sprd_dma_prep_slave_sg() argument
1000 for_each_sg(sgl, sg, sglen, i) { in sprd_dma_prep_slave_sg()
1021 if (sglen < 2) in sprd_dma_prep_slave_sg()
1024 ret = sprd_dma_fill_linklist_desc(chan, sglen, i, src, dst, len, in sprd_dma_prep_slave_sg()
Dmoxart-dma.c126 unsigned int sglen; member
325 d->sglen = sg_len; in moxart_prep_slave_sg()
456 for (size = i = completed_sgs; i < d->sglen; i++) in moxart_dma_desc_size()
545 if (++ch->sgidx < ch->desc->sglen) { in moxart_dma_interrupt()
/kernel/linux/linux-5.10/drivers/crypto/cavium/nitrox/
Dnitrox_req.h591 unsigned int sglen; in create_multi_sg() local
593 for (; buflen && from_sg; buflen -= sglen) { in create_multi_sg()
594 sglen = from_sg->length; in create_multi_sg()
595 if (sglen > buflen) in create_multi_sg()
596 sglen = buflen; in create_multi_sg()
598 sg_set_buf(sg, sg_virt(from_sg), sglen); in create_multi_sg()
/kernel/linux/linux-5.10/drivers/media/v4l2-core/
Dvideobuf-dma-sg.c301 dma->sglen = 1; in videobuf_dma_map()
313 dma->sglen = dma_map_sg(dev, dma->sglist, in videobuf_dma_map()
315 if (0 == dma->sglen) { in videobuf_dma_map()
320 dma->sglen = 0; in videobuf_dma_map()
332 if (!dma->sglen) in videobuf_dma_unmap()
339 dma->sglen = 0; in videobuf_dma_unmap()
349 BUG_ON(dma->sglen); in videobuf_dma_free()
578 BUG_ON(!mem || !mem->dma.sglen); in __videobuf_sync()
/kernel/linux/linux-5.10/drivers/staging/rts5208/
Drtsx_transport.c79 unsigned int sglen = sg->length - *offset; in rtsx_stor_access_xfer_buf() local
81 if (sglen > buflen - cnt) { in rtsx_stor_access_xfer_buf()
83 sglen = buflen - cnt; in rtsx_stor_access_xfer_buf()
84 *offset += sglen; in rtsx_stor_access_xfer_buf()
92 while (sglen > 0) { in rtsx_stor_access_xfer_buf()
93 unsigned int plen = min(sglen, (unsigned int) in rtsx_stor_access_xfer_buf()
107 sglen -= plen; in rtsx_stor_access_xfer_buf()
/kernel/linux/linux-5.10/drivers/dma/ti/
Domap-dma.c126 unsigned sglen; member
256 for (i = 0; i < d->sglen; i++) { in omap_dma_desc_free()
621 } else if (d->using_ll || c->sgidx == d->sglen) { in omap_dma_callback()
791 for (size = i = 0; i < d->sglen; i++) in omap_dma_desc_size()
802 for (size = i = 0; i < d->sglen; i++) { in omap_dma_desc_size_pos()
955 struct dma_chan *chan, struct scatterlist *sgl, unsigned sglen, in omap_dma_prep_slave_sg() argument
1000 d = kzalloc(struct_size(d, sg, sglen), GFP_ATOMIC); in omap_dma_prep_slave_sg()
1093 if (sglen >= 2) in omap_dma_prep_slave_sg()
1096 for_each_sg(sgl, sgent, sglen, i) { in omap_dma_prep_slave_sg()
1114 omap_dma_fill_type2_desc(d, i, dir, (i == sglen - 1)); in omap_dma_prep_slave_sg()
[all …]
Dk3-udma.c170 unsigned int sglen; member
753 for (i = 0; i < uc->desc->sglen; i++) in udma_start_desc()
925 d->desc_idx = (d->desc_idx + 1) % d->sglen; in udma_cyclic_packet_elapsed()
1094 d->tr_idx = (d->tr_idx + 1) % d->sglen; in udma_udma_irq_handler()
1923 d->sglen = tr_count; in udma_alloc_tr_desc()
2020 unsigned int sglen, enum dma_transfer_direction dir, in udma_prep_slave_sg_tr() argument
2033 for_each_sg(sgl, sgent, sglen, i) { in udma_prep_slave_sg_tr()
2046 d->sglen = sglen; in udma_prep_slave_sg_tr()
2049 for_each_sg(sgl, sgent, sglen, i) { in udma_prep_slave_sg_tr()
2135 d->static_tr.bstcnt = d->residue / d->sglen / div; in udma_configure_statictr()
[all …]
/kernel/linux/linux-5.10/drivers/media/pci/cx23885/
Dcx23885-alsa.c116 buf->sglen = dma_map_sg(&dev->pci->dev, buf->sglist, in cx23885_alsa_dma_map()
119 if (0 == buf->sglen) { in cx23885_alsa_dma_map()
130 if (!buf->sglen) in cx23885_alsa_dma_unmap()
134 buf->sglen = 0; in cx23885_alsa_dma_unmap()
/kernel/linux/linux-5.10/tools/usb/
Dtestusb.c48 unsigned sglen; member
390 param.sglen = 32; in main()
412 if (parse_num(&param.sglen, optarg)) in main()
/kernel/linux/linux-5.10/drivers/media/pci/cx25821/
Dcx25821-alsa.c56 int sglen; member
180 buf->sglen = dma_map_sg(&dev->pci->dev, buf->sglist, in cx25821_alsa_dma_map()
183 if (0 == buf->sglen) { in cx25821_alsa_dma_map()
194 if (!buf->sglen) in cx25821_alsa_dma_unmap()
198 buf->sglen = 0; in cx25821_alsa_dma_unmap()
/kernel/linux/linux-5.10/include/media/
Dvideobuf-dma-sg.h62 int sglen; member
/kernel/linux/linux-5.10/drivers/media/pci/cobalt/
Dcobalt-omnitek.h35 struct scatterlist *scatter_list, bool to_pci, unsigned sglen,
/kernel/linux/linux-5.10/drivers/vdpa/mlx5/core/
Dmr.c233 int sglen; in map_direct_mr() local
247 sglen = 1 << log_entity_size; in map_direct_mr()
258 for (pa = map->addr; pa < paend; pa += sglen) { in map_direct_mr()
266 sg_set_page(sg, pg, sglen, 0); in map_direct_mr()
/kernel/linux/linux-5.10/drivers/media/pci/cx88/
Dcx88-alsa.c49 int sglen; member
319 buf->sglen = dma_map_sg(&dev->pci->dev, buf->sglist, in cx88_alsa_dma_map()
322 if (buf->sglen == 0) { in cx88_alsa_dma_map()
333 if (!buf->sglen) in cx88_alsa_dma_unmap()
338 buf->sglen = 0; in cx88_alsa_dma_unmap()
/kernel/linux/linux-5.10/drivers/ata/
Dpata_arasan_cf.c433 u32 xfer_cnt, sglen, dma_len, xfer_ctr; in sg_xfer() local
438 sglen = sg_dma_len(sg); in sg_xfer()
454 while (sglen) { in sg_xfer()
455 xfer_cnt = min(sglen, MAX_XFER_COUNT); in sg_xfer()
485 sglen -= dma_len; in sg_xfer()
/kernel/linux/linux-5.10/drivers/media/common/saa7146/
Dsaa7146_core.c236 struct scatterlist *list, int sglen ) in saa7146_pgtable_build_single() argument
242 BUG_ON(0 == sglen); in saa7146_pgtable_build_single()
250 for (i = 0; i < sglen; i++, list++) { in saa7146_pgtable_build_single()

12