/openbmc/linux/drivers/usb/misc/ |
H A D | usbtest.c | 34 __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 …]
|
/openbmc/linux/drivers/crypto/nx/ |
H A D | nx.c | 149 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() 273 max_sg_len = min_t(u64, nx_ctx->ap->sglen, in nx_build_sg_lists() 390 if (!trip->sglen || trip->databytelen < NX_PAGE_SIZE) { in nx_of_update_msc() 392 "%u/%u (ignored)\n", trip->sglen, in nx_of_update_msc() 402 props->ap[msc->fc][msc->mode][0].sglen = in nx_of_update_msc() 403 trip->sglen; in nx_of_update_msc() 408 props->ap[msc->fc][msc->mode][1].sglen = in nx_of_update_msc() 409 trip->sglen; in nx_of_update_msc() [all …]
|
H A D | nx-aes-xcbc.c | 82 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()
|
H A D | nx.h | 33 u32 sglen; member 45 u32 sglen; member
|
H A D | nx-aes-ccm.c | 236 nx_insg = nx_build_sg_list(nx_insg, b1, &len, nx_ctx->ap->sglen); in generate_pat() 242 nx_ctx->ap->sglen); in generate_pat() 273 max_sg_len = min_t(u64, nx_ctx->ap->sglen, in generate_pat() 283 nx_ctx->ap->sglen, in generate_pat()
|
H A D | nx-aes-gcm.c | 123 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()
|
/openbmc/linux/lib/ |
H A D | sg_split.c | 25 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()
|
/openbmc/linux/drivers/dma/ |
H A D | sa11x0-dma.c | 80 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 …]
|
H A D | sprd-dma.c | 746 unsigned int sglen, int sg_index, in sprd_dma_fill_desc() argument 848 temp = sglen ? (sg_index + 1) % sglen : 0; in sprd_dma_fill_desc() 877 unsigned int sglen, int sg_index, in sprd_dma_fill_linklist_desc() argument 892 return sprd_dma_fill_desc(chan, hw, sglen, sg_index, src, dst, len, in sprd_dma_fill_linklist_desc() 953 unsigned int sglen, enum dma_transfer_direction dir, in sprd_dma_prep_slave_sg() argument 997 for_each_sg(sgl, sg, sglen, i) { in sprd_dma_prep_slave_sg() 1018 if (sglen < 2) in sprd_dma_prep_slave_sg() 1021 ret = sprd_dma_fill_linklist_desc(chan, sglen, i, src, dst, len, in sprd_dma_prep_slave_sg()
|
H A D | moxart-dma.c | 123 unsigned int sglen; member 322 d->sglen = sg_len; in moxart_prep_slave_sg() 453 for (size = i = completed_sgs; i < d->sglen; i++) in moxart_dma_desc_size() 541 if (++ch->sgidx < ch->desc->sglen) { in moxart_dma_interrupt()
|
H A D | at_hdmac.c | 232 unsigned int sglen; member 590 for (i = 0; i < desc->sglen; i++) { in atdma_desc_free() 713 for (i = 1; i < desc->sglen; i++) { in atc_get_llis_residue() 786 for (i = 0; i < desc->sglen; i++) in atc_handle_error() 925 desc->sglen = 1; in atc_prep_dma_interleaved() 988 desc->sglen = sg_len; in atc_prep_dma_memcpy() 1127 desc->sglen = 1; in atc_prep_dma_memset() 1187 desc->sglen = sg_len; in atc_prep_dma_memset_sg() 1270 desc->sglen = sg_len; in atc_prep_slave_sg() 1527 desc->sglen = periods; in atc_prep_dma_cyclic()
|
/openbmc/linux/drivers/misc/bcm-vk/ |
H A D | bcm_vk_sg.c | 87 dma->sglen = (dma->nr_pages * sizeof(*sgdata)) + in bcm_vk_dma_alloc() 92 dma->sglen, in bcm_vk_dma_alloc() 165 dma->sglen, in bcm_vk_dma_alloc() 234 dev_dbg(dev, "free sglist=%p sglen=0x%x\n", dma->sglist, dma->sglen); in bcm_vk_dma_free() 247 dma_free_coherent(dev, dma->sglen, dma->sglist, dma->handle); in bcm_vk_dma_free()
|
H A D | bcm_vk_sg.h | 35 int sglen; /* Length (bytes) of sglist */ member
|
/openbmc/linux/drivers/crypto/cavium/nitrox/ |
H A D | nitrox_req.h | 595 unsigned int sglen; in create_multi_sg() local 597 for (; buflen && from_sg; buflen -= sglen) { in create_multi_sg() 598 sglen = from_sg->length; in create_multi_sg() 599 if (sglen > buflen) in create_multi_sg() 600 sglen = buflen; in create_multi_sg() 602 sg_set_buf(sg, sg_virt(from_sg), sglen); in create_multi_sg()
|
/openbmc/linux/drivers/media/v4l2-core/ |
H A D | videobuf-dma-sg.c | 297 dma->sglen = 1; in videobuf_dma_map() 309 dma->sglen = dma_map_sg(dev, dma->sglist, in videobuf_dma_map() 311 if (0 == dma->sglen) { in videobuf_dma_map() 316 dma->sglen = 0; in videobuf_dma_map() 328 if (!dma->sglen) in videobuf_dma_unmap() 335 dma->sglen = 0; in videobuf_dma_unmap() 345 BUG_ON(dma->sglen); in videobuf_dma_free() 573 BUG_ON(!mem || !mem->dma.sglen); in __videobuf_sync()
|
/openbmc/linux/drivers/staging/rts5208/ |
H A D | rtsx_transport.c | 79 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() 105 sglen -= plen; in rtsx_stor_access_xfer_buf()
|
/openbmc/linux/drivers/dma/ti/ |
H A D | omap-dma.c | 126 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() 796 for (size = i = 0; i < d->sglen; i++) in omap_dma_desc_size() 807 for (size = i = 0; i < d->sglen; i++) { in omap_dma_desc_size_pos() 960 struct dma_chan *chan, struct scatterlist *sgl, unsigned sglen, in omap_dma_prep_slave_sg() argument 1005 d = kzalloc(struct_size(d, sg, sglen), GFP_ATOMIC); in omap_dma_prep_slave_sg() 1098 if (sglen >= 2) in omap_dma_prep_slave_sg() 1101 for_each_sg(sgl, sgent, sglen, i) { in omap_dma_prep_slave_sg() 1119 omap_dma_fill_type2_desc(d, i, dir, (i == sglen - 1)); in omap_dma_prep_slave_sg() [all …]
|
/openbmc/linux/drivers/media/pci/cx23885/ |
H A D | cx23885-alsa.c | 116 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()
|
/openbmc/linux/drivers/media/pci/cx25821/ |
H A D | cx25821-alsa.c | 56 int sglen; member 179 buf->sglen = dma_map_sg(&dev->pci->dev, buf->sglist, in cx25821_alsa_dma_map() 182 if (0 == buf->sglen) { in cx25821_alsa_dma_map() 193 if (!buf->sglen) in cx25821_alsa_dma_unmap() 197 buf->sglen = 0; in cx25821_alsa_dma_unmap()
|
/openbmc/linux/tools/usb/ |
H A D | testusb.c | 48 unsigned sglen; member 396 param.sglen = 32; in main() 418 if (parse_num(¶m.sglen, optarg)) in main()
|
/openbmc/linux/include/media/ |
H A D | videobuf-dma-sg.h | 62 int sglen; member
|
/openbmc/linux/drivers/media/pci/cobalt/ |
H A D | cobalt-omnitek.h | 35 struct scatterlist *scatter_list, bool to_pci, unsigned sglen,
|
/openbmc/linux/drivers/media/pci/cx88/ |
H A D | cx88-alsa.c | 49 int sglen; member 318 buf->sglen = dma_map_sg(&dev->pci->dev, buf->sglist, in cx88_alsa_dma_map() 321 if (buf->sglen == 0) { in cx88_alsa_dma_map() 332 if (!buf->sglen) in cx88_alsa_dma_unmap() 337 buf->sglen = 0; in cx88_alsa_dma_unmap()
|
/openbmc/linux/drivers/vdpa/mlx5/core/ |
H A D | mr.c | 233 int sglen; in map_direct_mr() local 246 sglen = 1 << log_entity_size; in map_direct_mr() 259 for (; pa < paend; pa += sglen) { in map_direct_mr() 267 sg_set_page(sg, pg, sglen, 0); in map_direct_mr()
|
/openbmc/linux/drivers/ata/ |
H A D | pata_arasan_cf.c | 434 u32 xfer_cnt, sglen, dma_len, xfer_ctr; in sg_xfer() local 439 sglen = sg_dma_len(sg); in sg_xfer() 455 while (sglen) { in sg_xfer() 456 xfer_cnt = min(sglen, MAX_XFER_COUNT); in sg_xfer() 486 sglen -= dma_len; in sg_xfer()
|