Searched refs:sg_set_page (Results 1 - 99 of 99) sorted by relevance

/linux-4.4.14/tools/virtio/linux/
H A Dscatterlist.h24 * Assign page to sg entry. Also see sg_set_page(), the most commonly used
45 * sg_set_page - Set sg entry to point at given page
58 static inline void sg_set_page(struct scatterlist *sg, struct page *page, sg_set_page() function
180 sg_set_page(sg, virt_to_page(buf), buflen, offset_in_page(buf)); sg_set_buf()
/linux-4.4.14/drivers/block/
H A Dcryptoloop.c152 sg_set_page(&sg_in, in_page, sz, in_offs); cryptoloop_transfer()
153 sg_set_page(&sg_out, out_page, sz, out_offs); cryptoloop_transfer()
H A Dskd_main.c1579 sg_set_page(sg, page, nbytes, 0); skd_skreq_prep_buffering()
/linux-4.4.14/drivers/crypto/qce/
H A Ddma.c72 sg_set_page(sg, sg_page(new_sgl), new_sgl->length, qce_sgtable_add()
/linux-4.4.14/crypto/
H A Dscatterwalk.c166 sg_set_page(dst, sg_page(src), src->length - len, src->offset + len); scatterwalk_ffwd()
H A Dalgif_skcipher.c468 sg_set_page(sgl->sg + sgl->cur, page, size, offset); skcipher_sendpage()
574 sg_set_page(&tmp[x], sg_page(&sreq->tsg[x]), skcipher_recvmsg_async()
584 sg_set_page(sreq->tsg + txbufs++, sg_page(sg), sg->length, skcipher_recvmsg_async()
H A Daf_alg.c413 sg_set_page(sgl->sg + i, sgl->pages[i], plen, off); af_alg_make_sg()
H A Dalgif_hash.c117 sg_set_page(ctx->sgl.sg, page, size, offset); hash_sendpage()
H A Dalgif_aead.c332 sg_set_page(sgl->sg + sgl->cur, page, size, offset); aead_sendpage()
/linux-4.4.14/include/linux/
H A Dscatterlist.h78 * Assign page to sg entry. Also see sg_set_page(), the most commonly used
99 * sg_set_page - Set sg entry to point at given page
112 static inline void sg_set_page(struct scatterlist *sg, struct page *page, sg_set_page() function
142 sg_set_page(sg, virt_to_page(buf), buflen, offset_in_page(buf)); sg_set_buf()
/linux-4.4.14/drivers/staging/android/ion/
H A Dion_system_heap.c162 sg_set_page(sg, page, PAGE_SIZE << compound_order(page), 0); ion_system_heap_allocate()
359 sg_set_page(table->sgl, page, len, 0); ion_system_contig_heap_allocate()
H A Dion_carveout_heap.c97 sg_set_page(table->sgl, pfn_to_page(PFN_DOWN(paddr)), size, 0); ion_carveout_heap_allocate()
H A Dion_chunk_heap.c73 sg_set_page(sg, pfn_to_page(PFN_DOWN(paddr)), ion_chunk_heap_allocate()
H A Dion_heap.c159 sg_set_page(&sg, page, size, 0); ion_heap_pages_zero()
H A Dion.c902 sg_set_page(&sg, page, size, 0); ion_pages_sync_for_device()
/linux-4.4.14/drivers/media/pci/ivtv/
H A Divtv-udma.c64 sg_set_page(&dma->SGlist[map_offset], dma->bouncemap[map_offset], len, offset); ivtv_udma_fill_sg_list()
67 sg_set_page(&dma->SGlist[map_offset], dma->map[map_offset], len, offset); ivtv_udma_fill_sg_list()
/linux-4.4.14/net/rds/
H A Dpage.c113 sg_set_page(scat, page, PAGE_SIZE, 0); rds_page_remainder_alloc()
132 sg_set_page(scat, rem->r_page, bytes, rem->r_offset); rds_page_remainder_alloc()
H A Dmessage.c259 sg_set_page(&rm->data.op_sg[i], rds_message_map_pages()
H A Drdma.c256 sg_set_page(&sg[i], pages[i], PAGE_SIZE, 0); __rds_rdma_map()
675 sg_set_page(sg, pages[j], rds_cmsg_rdma_args()
834 sg_set_page(rm->atomic.op_sg, page, 8, offset_in_page(args->local_addr)); rds_cmsg_atomic()
/linux-4.4.14/drivers/media/v4l2-core/
H A Dvideobuf-dma-sg.c81 sg_set_page(&sglist[i], pg, PAGE_SIZE, 0); videobuf_vmalloc_to_sg()
111 sg_set_page(&sglist[0], pages[0], videobuf_pages_to_sg()
119 sg_set_page(&sglist[i], pages[i], min_t(size_t, PAGE_SIZE, size), 0); videobuf_pages_to_sg()
H A Dvideobuf2-vmalloc.c236 sg_set_page(sg, page, PAGE_SIZE, 0); vb2_vmalloc_dmabuf_ops_attach()
H A Dvideobuf2-dma-sg.c411 sg_set_page(wr, sg_page(rd), rd->length, rd->offset); vb2_dma_sg_dmabuf_ops_attach()
H A Dvideobuf2-dma-contig.c245 sg_set_page(wr, sg_page(rd), rd->length, rd->offset); vb2_dc_dmabuf_ops_attach()
/linux-4.4.14/drivers/mmc/core/
H A Dsdio_ops.c169 sg_set_page(sg_ptr, virt_to_page(buf + (i * seg_size)), for_each_sg()
/linux-4.4.14/drivers/gpu/drm/omapdrm/
H A Domap_gem_dmabuf.c50 sg_set_page(sg->sgl, pfn_to_page(PFN_DOWN(paddr)), obj->size, 0); omap_gem_map_dma_buf()
/linux-4.4.14/fs/f2fs/
H A Dcrypto.c355 sg_set_page(&dst, dest_page, PAGE_CACHE_SIZE, 0); f2fs_page_crypto()
357 sg_set_page(&src, src_page, PAGE_CACHE_SIZE, 0); f2fs_page_crypto()
/linux-4.4.14/fs/ext4/
H A Dcrypto.c288 sg_set_page(&dst, dest_page, PAGE_CACHE_SIZE, 0); ext4_page_crypto()
290 sg_set_page(&src, src_page, PAGE_CACHE_SIZE, 0); ext4_page_crypto()
/linux-4.4.14/net/sunrpc/auth_gss/
H A Dgss_krb5_crypto.c422 sg_set_page(&desc->infrags[desc->fragno], in_page, sg->length, encryptor()
424 sg_set_page(&desc->outfrags[desc->fragno], sg_page(sg), sg->length, encryptor()
448 sg_set_page(&desc->outfrags[0], sg_page(sg), fraglen, encryptor()
505 sg_set_page(&desc->frags[desc->fragno], sg_page(sg), sg->length, decryptor()
526 sg_set_page(&desc->frags[0], sg_page(sg), fraglen, decryptor()
/linux-4.4.14/block/
H A Dblk-merge.c372 sg_set_page(*sg, bvec->bv_page, nbytes, bvec->bv_offset); __blk_segment_map_sg()
408 sg_set_page(*sg, bvec.bv_page, bvec.bv_len, bvec.bv_offset); __blk_bios_map_sg()
448 sg_set_page(sg, virt_to_page(q->dma_drain_buffer), blk_rq_map_sg()
H A Dblk-integrity.c117 sg_set_page(sg, iv.bv_page, iv.bv_len, iv.bv_offset); bio_for_each_integrity_vec()
/linux-4.4.14/drivers/spi/
H A Dspi-topcliff-pch.c1023 sg_set_page(sg, virt_to_page(dma->rx_buf_virt), rem, pch_spi_handle_dma()
1029 sg_set_page(sg, virt_to_page(dma->rx_buf_virt), size, pch_spi_handle_dma()
1035 sg_set_page(sg, virt_to_page(dma->rx_buf_virt), size, pch_spi_handle_dma()
1082 sg_set_page(sg, virt_to_page(dma->tx_buf_virt), size + head, pch_spi_handle_dma()
1088 sg_set_page(sg, virt_to_page(dma->tx_buf_virt), rem, pch_spi_handle_dma()
1094 sg_set_page(sg, virt_to_page(dma->tx_buf_virt), size, pch_spi_handle_dma()
H A Dspi-mxs.c236 sg_set_page(&dma_xfer[sg_count].sg, vm_page, mxs_spi_txrx_dma()
H A Dspi-ep93xx.c497 sg_set_page(sg, virt_to_page(pbuf), bytes, ep93xx_spi_dma_prepare()
500 sg_set_page(sg, virt_to_page(espi->zeropage), ep93xx_spi_dma_prepare()
H A Dspi-pl022.c902 sg_set_page(sg, virt_to_page(bufp), setup_dma_scatter()
917 sg_set_page(sg, virt_to_page(pl022->dummypage), setup_dma_scatter()
H A Dspi.c717 sg_set_page(&sgt->sgl[i], vm_page, spi_map_buf()
/linux-4.4.14/drivers/gpu/drm/armada/
H A Darmada_gem.c454 sg_set_page(sg, page, PAGE_SIZE, 0); armada_gem_prime_map_dma_buf()
466 sg_set_page(sgt->sgl, dobj->page, dobj->obj.size, 0); armada_gem_prime_map_dma_buf()
/linux-4.4.14/lib/
H A Dkfifo.c334 sg_set_page(sgl, page, l - off, off); setup_sgl_buf()
343 sg_set_page(sgl, page, len, off); setup_sgl_buf()
H A Dscatterlist.c426 sg_set_page(s, pages[cur_page], min(size, chunk_size), offset); sg_alloc_table_from_pages()
/linux-4.4.14/sound/soc/sh/
H A Dsiu_pcm.c128 sg_set_page(&sg, pfn_to_page(PFN_DOWN(buff)), siu_pcm_wr_set()
178 sg_set_page(&sg, pfn_to_page(PFN_DOWN(buff)), siu_pcm_rd_set()
/linux-4.4.14/drivers/staging/lustre/lustre/libcfs/linux/
H A Dlinux-crypto.c154 sg_set_page(&sl, page, len, offset & ~CFS_PAGE_MASK); cfs_crypto_hash_update_page()
/linux-4.4.14/drivers/gpu/drm/udl/
H A Dudl_dmabuf.c120 sg_set_page(wr, sg_page(rd), rd->length, rd->offset); udl_map_dma_buf()
/linux-4.4.14/drivers/base/
H A Ddma-mapping.c238 sg_set_page(sgt->sgl, page, PAGE_ALIGN(size), 0); dma_common_get_sgtable()
/linux-4.4.14/drivers/gpu/drm/i915/
H A Di915_gem_dmabuf.c67 sg_set_page(dst, sg_page(src), src->length, 0); i915_gem_map_dma_buf()
H A Di915_gem_userptr.c494 sg_set_page(sg, pvec[n], PAGE_SIZE, 0); st_set_pages()
H A Di915_gem_gtt.c3291 sg_set_page(sg, NULL, PAGE_SIZE, 0); rotate_pages()
3416 sg_set_page(sg, NULL, PAGE_SIZE, 0); intel_partial_pages()
H A Di915_gem.c2307 sg_set_page(sg, page, PAGE_SIZE, 0); i915_gem_object_get_pages_gtt()
2316 sg_set_page(sg, page, PAGE_SIZE, 0); i915_gem_object_get_pages_gtt()
/linux-4.4.14/drivers/mmc/card/
H A Dmmc_test.c418 sg_set_page(sg, mem->arr[i].page, len, 0); mmc_test_map_sg()
473 sg_set_page(sg, virt_to_page(addr), len, 0); mmc_test_map_sg_max_scatter()
1279 sg_set_page(&sg, test->highmem, 512, 0); mmc_test_write_high()
1289 sg_set_page(&sg, test->highmem, 512, 0); mmc_test_read_high()
1311 sg_set_page(&sg, test->highmem, size, 0); mmc_test_multi_write_high()
1333 sg_set_page(&sg, test->highmem, size, 0); mmc_test_multi_read_high()
/linux-4.4.14/drivers/infiniband/hw/mthca/
H A Dmthca_memfree.c119 sg_set_page(mem, page, PAGE_SIZE << order, 0); mthca_alloc_icm_pages()
480 sg_set_page(&db_tab->page[i].mem, pages[0], MTHCA_ICM_PAGE_SIZE, mthca_map_user_db()
/linux-4.4.14/drivers/usb/musb/
H A Dux500_dma.c106 sg_set_page(&sg, pfn_to_page(PFN_DOWN(dma_addr)), len, ux500_configure_channel()
/linux-4.4.14/drivers/infiniband/core/
H A Dumem.c207 sg_set_page(sg, page_list[i], PAGE_SIZE, 0); for_each_sg()
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/
H A Dicm.c109 sg_set_page(mem, page, PAGE_SIZE << order, 0); mlx4_alloc_icm_pages()
/linux-4.4.14/drivers/crypto/ccp/
H A Dccp-crypto-main.c312 sg_set_page(sg, sg_page(sg_add), sg_add->length, ccp_crypto_sg_table_add()
/linux-4.4.14/sound/soc/txx9/
H A Dtxx9aclc.c128 sg_set_page(&sg, pfn_to_page(PFN_DOWN(buf_dma_addr)), txx9aclc_dma_submit()
/linux-4.4.14/drivers/tty/serial/
H A Dpch_uart.c878 sg_set_page(&priv->sg_rx, virt_to_page(priv->rx_buf_virt), dma_handle_rx()
1021 sg_set_page(sg, virt_to_page(xmit->buf), dma_handle_tx()
1024 sg_set_page(sg, virt_to_page(xmit->buf), dma_handle_tx()
H A Datmel_serial.c934 sg_set_page(&atmel_port->sg_tx, atmel_prepare_tx_dma()
1116 sg_set_page(&atmel_port->sg_rx, atmel_prepare_rx_dma()
H A Damba-pl011.c263 sg_set_page(&sg->sg, phys_to_page(dma_addr), pl011_sgbuf_init()
/linux-4.4.14/drivers/media/common/saa7146/
H A Dsaa7146_core.c164 sg_set_page(&sglist[i], pg, PAGE_SIZE, 0); vmalloc_to_sg()
/linux-4.4.14/drivers/gpu/drm/tegra/
H A Dgem.c526 sg_set_page(sg, bo->pages[i], PAGE_SIZE, 0); tegra_gem_prime_map_dma_buf()
/linux-4.4.14/drivers/media/pci/cx23885/
H A Dcx23885-alsa.c111 sg_set_page(&buf->sglist[i], pg, PAGE_SIZE, 0); cx23885_alsa_dma_init()
/linux-4.4.14/drivers/infiniband/hw/usnic/
H A Dusnic_uiom.c171 sg_set_page(sg, page_list[i + off], usnic_uiom_get_pages()
/linux-4.4.14/net/ceph/
H A Dcrypto.c142 sg_set_page(sg, page, len, off); setup_sgtable()
/linux-4.4.14/net/sunrpc/xprtrdma/
H A Dfrwr_ops.c345 sg_set_page(&frmr->sg[i], frwr_op_map()
H A Dsvc_rdma_recvfrom.c254 sg_set_page(&frmr->sg[pno], rqstp->rq_arg.pages[pg_no], rdma_read_chunk_frmr()
/linux-4.4.14/drivers/target/
H A Dtarget_core_sbc.c563 sg_set_page(&write_sg[i], m.page, block_size, compare_and_write_callback()
567 sg_set_page(&write_sg[i], m.page, block_size, compare_and_write_callback()
H A Dtarget_core_transport.c2306 sg_set_page(&sg[i], page, page_len, 0); target_alloc_sgl()
/linux-4.4.14/drivers/dma/sh/
H A Dshdma-base.c655 sg_set_page(&sg, pfn_to_page(PFN_DOWN(dma_src)), len, shdma_prep_memcpy()
743 sg_set_page(&sgl[i], pfn_to_page(PFN_DOWN(src)), period_len, shdma_prep_dma_cyclic()
H A Drcar-dmac.c1015 sg_set_page(&sgl, pfn_to_page(PFN_DOWN(dma_src)), len, rcar_dmac_prep_dma_memcpy()
1089 sg_set_page(&sgl[i], pfn_to_page(PFN_DOWN(src)), period_len, rcar_dmac_prep_dma_cyclic()
/linux-4.4.14/drivers/memstick/core/
H A Dms_block.c56 sg_set_page(sg_to, sg_page(sg_from), msb_sg_copy()
74 sg_set_page(sg_to, sg_page(sg_from), msb_sg_copy()
85 sg_set_page(sg_to, sg_page(sg_from), len, sg_from->offset); msb_sg_copy()
H A Dmspro_block.c638 sg_set_page(&t_sg, h_mspro_block_transfer_data()
/linux-4.4.14/drivers/block/drbd/
H A Ddrbd_worker.c288 sg_set_page(&sg, page, PAGE_SIZE, 0); drbd_csum_ee()
294 sg_set_page(&sg, page, len ?: PAGE_SIZE, 0); drbd_csum_ee()
313 sg_set_page(&sg, bvec.bv_page, bvec.bv_len, bvec.bv_offset); bio_for_each_segment()
/linux-4.4.14/fs/ecryptfs/
H A Dcrypto.c295 sg_set_page(&sg[i], pg, 0, offset); virt_to_scatterlist()
451 sg_set_page(&src_sg, src_page, extent_size, crypt_extent()
453 sg_set_page(&dst_sg, dst_page, extent_size, crypt_extent()
/linux-4.4.14/drivers/media/pci/cx25821/
H A Dcx25821-alsa.c175 sg_set_page(&buf->sglist[i], pg, PAGE_SIZE, 0); cx25821_alsa_dma_init()
/linux-4.4.14/drivers/media/pci/cx88/
H A Dcx88-alsa.c322 sg_set_page(&buf->sglist[i], pg, PAGE_SIZE, 0); cx88_alsa_dma_init()
/linux-4.4.14/net/9p/
H A Dtrans_virtio.c242 sg_set_page(&sg[index++], pdata[i++], s, data_off); pack_sg_list_p()
/linux-4.4.14/drivers/video/fbdev/
H A Dmx3fb.c825 sg_set_page(&sg[0], virt_to_page(fbi->screen_base), __set_par()
1198 sg_set_page(&sg[mx3_fbi->cur_ipu_buf], mx3fb_pan_display()
H A Dsh_mobile_lcdcfb.c458 sg_set_page(&ch->sglist[nr_pages++], page, PAGE_SIZE, 0); sh_mobile_lcdc_sginit()
/linux-4.4.14/drivers/md/
H A Ddm-crypt.c853 sg_set_page(&dmreq->sg_in, bv_in.bv_page, 1 << SECTOR_SHIFT, crypt_convert_block()
857 sg_set_page(&dmreq->sg_out, bv_out.bv_page, 1 << SECTOR_SHIFT, crypt_convert_block()
/linux-4.4.14/drivers/char/
H A Dvirtio_console.c891 sg_set_page(&(sgl->sg[sgl->n]), buf->page, len, buf->offset); pipe_to_sg()
910 sg_set_page(&(sgl->sg[sgl->n]), page, len, offset); pipe_to_sg()
/linux-4.4.14/drivers/scsi/
H A Dlibiscsi_tcp.c211 sg_set_page(&sg, sg_page(segment->sg), copied, iscsi_tcp_segment_done()
H A Dosst.c5364 sg_set_page(&STbuffer->sg[0], page, b_size, 0); enlarge_buffer()
5387 sg_set_page(&STbuffer->sg[segs], page, (OS_FRAME_SIZE - got <= PAGE_SIZE / 2) ? (OS_FRAME_SIZE - got) : b_size, 0); enlarge_buffer()
H A Dpmcraid.c3311 sg_set_page(&scatterlist[i], page, pmcraid_alloc_sglist()
H A Dipr.c3789 sg_set_page(&scatterlist[i], page, 0, 0); ipr_alloc_ucode_buffer()
/linux-4.4.14/drivers/hsi/clients/
H A Dssi_protocol.c194 sg_set_page(sg, frag->page.p, frag->size, frag->page_offset); ssip_skb_to_msg()
/linux-4.4.14/drivers/media/pci/saa7134/
H A Dsaa7134-alsa.c296 sg_set_page(&dma->sglist[i], pg, PAGE_SIZE, 0); saa7134_alsa_dma_init()
/linux-4.4.14/drivers/char/agp/
H A Dintel-gtt.c110 sg_set_page(sg, pages[i], PAGE_SIZE, 0); intel_gtt_map_memory()
/linux-4.4.14/arch/arm64/mm/
H A Ddma-mapping.c338 sg_set_page(sgt->sgl, phys_to_page(dma_to_phys(dev, handle)), __swiotlb_get_sgtable()
/linux-4.4.14/drivers/staging/lustre/lnet/klnds/o2iblnd/
H A Do2iblnd_cb.c695 sg_set_page(sg, page, fragnob, page_offset); kiblnd_setup_rd_iov()
738 sg_set_page(sg, kiov->kiov_page, fragnob, kiblnd_setup_rd_kiov()
/linux-4.4.14/drivers/misc/mic/scif/
H A Dscif_nodeqp.c381 sg_set_page(&sg[i], page, page_size, 0); scif_p2p_setsg()
H A Dscif_rma.c556 sg_set_page(sg, pin->pages[i], PAGE_SIZE, 0x0); scif_iommu_map()
/linux-4.4.14/net/sunrpc/
H A Dxdr.c1488 sg_set_page(sg, buf->pages[i], thislen, page_offset); xdr_process_buf()
/linux-4.4.14/drivers/xen/
H A Dxen-scsiback.c557 sg_set_page(sg, pg[i], seg->length, seg->offset); scsiback_gnttab_data_map()
/linux-4.4.14/drivers/vhost/
H A Dscsi.c669 sg_set_page(sg, pages[npages], nbytes, offset); vhost_scsi_map_to_sgl()
/linux-4.4.14/drivers/net/usb/
H A Dusbnet.c1296 sg_set_page(&urb->sg[i + s], f->page.p, f->size, build_dma_sg()
/linux-4.4.14/arch/arm/mm/
H A Ddma-mapping.c788 sg_set_page(sgt->sgl, page, PAGE_ALIGN(size), 0); arm_dma_get_sgtable()
/linux-4.4.14/drivers/usb/wusbcore/
H A Dwa-xfer.c1071 sg_set_page(current_seg_sg, sg_page(current_xfer_sg), wa_xfer_create_subset_sg()
/linux-4.4.14/drivers/crypto/
H A Dhifn_795x.c1436 sg_set_page(s, page, PAGE_SIZE, 0); hifn_cipher_walk_init()
/linux-4.4.14/net/ipv4/
H A Dtcp.c3041 sg_set_page(&sg, page, skb_frag_size(f), tcp_md5_hash_skb_data()
/linux-4.4.14/drivers/scsi/qla2xxx/
H A Dqla_target.c4375 sg_set_page(sgp, sg_page(sg), qlt_set_data_offset()
4379 sg_set_page(sgp, sg_page(sg), sg->length, 0); qlt_set_data_offset()
/linux-4.4.14/net/core/
H A Dskbuff.c3389 sg_set_page(&sg[elt], skb_frag_page(frag), copy, __skb_to_sgvec()

Completed in 3537 milliseconds