/drivers/message/i2o/ |
H A D | i2o_block.c | 320 int nents; local 324 nents = blk_rq_map_sg(ireq->req->q, ireq->req, ireq->sg_table); 331 ireq->sg_nents = nents; 333 return i2o_dma_map_sg(c, ireq->sg_table, nents, direction, mptr);
|
/drivers/staging/android/ion/ |
H A D | ion_test.c | 66 for_each_sg_page(table->sgl, &sg_iter, table->nents, offset_page) {
|
H A D | ion_system_heap.c | 195 for_each_sg(table->sgl, sg, table->nents, i)
|
/drivers/staging/lustre/lnet/klnds/o2iblnd/ |
H A D | o2iblnd.h | 915 struct scatterlist *sg, int nents, 918 return ib_dma_map_sg(dev, sg, nents, direction); 922 struct scatterlist *sg, int nents, 925 ib_dma_unmap_sg(dev, sg, nents, direction); 914 kiblnd_dma_map_sg(struct ib_device *dev, struct scatterlist *sg, int nents, enum dma_data_direction direction) argument 921 kiblnd_dma_unmap_sg(struct ib_device *dev, struct scatterlist *sg, int nents, enum dma_data_direction direction) argument
|
/drivers/crypto/ux500/hash/ |
H A D | hash_core.c | 171 ctx->device->dma.sg, ctx->device->dma.nents, 506 * hash_get_nents - Return number of entries (nents) in scatterlist (sg). 515 int nents = 0; local 519 nents++; 536 return nents; 924 /* Store the nents in the dma struct. */ 925 ctx->device->dma.nents = hash_get_nents(req->src, req->nbytes, NULL); 926 if (!ctx->device->dma.nents) { 927 dev_err(device_data->dev, "%s: ctx->device->dma.nents = 0\n", 929 ret = ctx->device->dma.nents; [all...] |
/drivers/media/pci/solo6x10/ |
H A D | solo6x10-v4l2-enc.c | 333 for_each_sg(vbuf->sgl, sg, vbuf->nents, i) { 477 if (!dma_map_sg(&solo_dev->pdev->dev, vbuf->sgl, vbuf->nents, 484 dma_unmap_sg(&solo_dev->pdev->dev, vbuf->sgl, vbuf->nents, 488 sg_copy_from_buffer(vbuf->sgl, vbuf->nents, 525 if (!dma_map_sg(&solo_dev->pdev->dev, vbuf->sgl, vbuf->nents, 531 dma_unmap_sg(&solo_dev->pdev->dev, vbuf->sgl, vbuf->nents, 536 sg_copy_from_buffer(vbuf->sgl, vbuf->nents,
|
/drivers/usb/core/ |
H A D | message.c | 341 * @nents: how many entries in the scatterlist 361 int nents, size_t length, gfp_t mem_flags) 370 || nents <= 0) 382 io->entries = nents; 416 urb->num_sgs = nents; 424 for_each_sg(sg, sg2, nents, j) 359 usb_sg_init(struct usb_sg_request *io, struct usb_device *dev, unsigned pipe, unsigned period, struct scatterlist *sg, int nents, size_t length, gfp_t mem_flags) argument
|
H A D | usb.c | 865 * @nents: the number of entries in the scatterlist 888 struct scatterlist *sg, int nents) 900 return dma_map_sg(controller, sg, nents,
|
/drivers/gpu/drm/i915/ |
H A D | i915_gem_gtt.c | 304 for_each_sg_page(pages->sgl, &sg_iter, pages->nents, 0) { 879 for_each_sg_page(pages->sgl, &sg_iter, pages->nents, 0) { 1365 obj->pages->sgl, obj->pages->nents, 1395 for_each_sg_page(st->sgl, &sg_iter, st->nents, 0) { 1441 for_each_sg_page(st->sgl, &sg_iter, st->nents, 0) { 1630 obj->pages->sgl, obj->pages->nents,
|
/drivers/block/ |
H A D | nvme-core.c | 381 iod->nents = 0; 457 if (iod->nents) { 458 dma_unmap_sg(nvmeq->q_dmadev, iod->sg, iod->nents, 606 iod->nents = nsegs; 608 if (dma_map_sg(nvmeq->q_dmadev, iod->sg, iod->nents, dma_dir) == 0) 1495 int i, err, count, nents, offset; local 1533 iod->nents = count; 1535 nents = dma_map_sg(&dev->pci_dev->dev, sg, count, 1537 if (!nents) 1557 dma_unmap_sg(&dev->pci_dev->dev, iod->sg, iod->nents, [all...] |
/drivers/gpu/drm/msm/ |
H A D | msm_gem.c | 99 msm_obj->sgt->nents, DMA_BIDIRECTIONAL); 115 msm_obj->sgt->nents, DMA_BIDIRECTIONAL);
|
/drivers/usb/misc/ |
H A D | usbtest.c | 466 static void free_sglist(struct scatterlist *sg, int nents) argument 472 for (i = 0; i < nents; i++) { 481 alloc_sglist(int nents, int max, int vary) argument 490 sg = kmalloc_array(nents, sizeof(*sg), GFP_KERNEL); 493 sg_init_table(sg, nents); 495 for (i = 0; i < nents; i++) { 543 int nents 557 sg, nents, 0, GFP_KERNEL);
|
/drivers/gpu/drm/ |
H A D | drm_gem_cma_helper.c | 325 if (sgt->nents != 1)
|
/drivers/hsi/controllers/ |
H A D | omap_ssi_port.c | 227 err = dma_map_sg(&ssi->device, msg->sgt.sgl, msg->sgt.nents, 243 err = dma_map_sg(&ssi->device, msg->sgt.sgl, msg->sgt.nents, 320 if ((msg->sgt.nents) && (msg->sgt.sgl->length > sizeof(u32))) 375 if (msg->sgt.nents > 1) 862 if ((!msg->sgt.nents) || (!msg->sgt.sgl->length)) {
|
/drivers/block/mtip32xx/ |
H A D | mtip32xx.c | 1745 * @nents Number of scatter list entries. 1752 int nents) 1761 for (n = 0; n < nents; n++) { 2360 * @nents Number of entries in scatter list for the read command. 2372 struct mtip_cmd *command, int nents, 2382 nents = dma_map_sg(&dd->pdev->dev, command->sg, nents, dma_dir); 2386 command->scatter_ents = nents; 2416 fill_command_sg(dd, command, nents); 2424 (nents << 1 1750 fill_command_sg(struct driver_data *dd, struct mtip_cmd *command, int nents) argument 2371 mtip_hw_submit_io(struct driver_data *dd, struct request *rq, struct mtip_cmd *command, int nents, struct blk_mq_hw_ctx *hctx) argument 3717 unsigned int nents; local [all...] |
/drivers/usb/wusbcore/ |
H A D | wa-xfer.c | 1025 nents; local 1048 nents = DIV_ROUND_UP((bytes_to_transfer + 1053 out_sg = kmalloc((sizeof(struct scatterlist) * nents), GFP_ATOMIC); 1055 sg_init_table(out_sg, nents); 1062 /* reset nents and calculate the actual number of sg entries 1064 nents = 0; 1084 nents++; 1090 *out_num_sgs = nents;
|
/drivers/infiniband/ulp/isert/ |
H A D | ib_isert.c | 1516 struct scatterlist *sg, u32 nents, u32 length, u32 offset, 1529 data->nents = min_t(unsigned int, nents - data->sg_off, 1534 data->dma_nents = ib_dma_map_sg(ib_dev, data->sg, data->nents, 1542 isert_cmd, data->dma_nents, data->sg, data->nents, data->len); 1552 ib_dma_unmap_sg(ib_dev, data->sg, data->nents, data->dma_dir); 2439 ib_sge = kzalloc(sizeof(struct ib_sge) * data->nents, GFP_KERNEL); 2447 wr->send_wr_num = DIV_ROUND_UP(data->nents, isert_conn->max_sge); 2576 fr_desc, mem->nents, mem->offset); 2578 pagelist_len = isert_map_fr_pagelist(ib_dev, mem->sg, mem->nents, 1515 isert_map_data_buf(struct isert_conn *isert_conn, struct isert_cmd *isert_cmd, struct scatterlist *sg, u32 nents, u32 length, u32 offset, enum iser_ib_op_code op, struct isert_data_buf *data) argument [all...] |
/drivers/mmc/host/ |
H A D | mxcmmc.c | 308 int i, nents; local 340 nents = dma_map_sg(host->dma->device->dev, data->sg, 342 if (nents != data->sg_len)
|
/drivers/gpu/drm/tegra/ |
H A D | gem.c | 215 if (bo->sgt->nents > 1) {
|
/drivers/scsi/libfc/ |
H A D | fc_fcp.c | 454 u32 nents; local 492 nents = scsi_sg_count(sc); 495 copy_len = fc_copy_buffer_to_sglist(buf, len, sg, &nents, 499 copy_len = fc_copy_buffer_to_sglist(buf, len, sg, &nents,
|
H A D | fc_lport.c | 148 * @nents: job->reply_payload.sg_cnt 156 u32 nents; member in struct:fc_bsg_info 1940 fc_copy_buffer_to_sglist(buf, len, info->sg, &info->nents, 2008 info->nents = job->reply_payload.sg_cnt; 2069 info->nents = job->reply_payload.sg_cnt;
|
/drivers/crypto/ |
H A D | bfin_crc.c | 122 static struct scatterlist *sg_get(struct scatterlist *sg_list, unsigned int nents, argument 128 for_each_sg(sg_list, sg, nents, i)
|
/drivers/media/pci/tw68/ |
H A D | tw68-video.c | 471 rc = dma_map_sg(&dev->pci->dev, dma->sgl, dma->nents, DMA_FROM_DEVICE); 511 dma_unmap_sg(&dev->pci->dev, dma->sgl, dma->nents, DMA_FROM_DEVICE);
|
/drivers/media/platform/omap3isp/ |
H A D | ispstat.c | 165 buf->sgt.nents, DMA_FROM_DEVICE); 175 buf->sgt.nents, DMA_FROM_DEVICE);
|
/drivers/spi/ |
H A D | spi-imx.c | 902 tx->sgl, tx->nents, DMA_TO_DEVICE, 914 rx->sgl, rx->nents, DMA_FROM_DEVICE,
|