/linux-master/drivers/spi/ |
H A D | spi-stm32.c | 1440 xfer->rx_sg.nents, 1452 xfer->tx_sg.nents,
|
H A D | spi.c | 1212 sgt->nents = 0;
|
H A D | spi-s3c64xx.c | 331 desc = dmaengine_prep_slave_sg(dma->ch, sgt->sgl, sgt->nents,
|
H A D | spi-fsl-lpspi.c | 565 rx->sgl, rx->nents, DMA_DEV_TO_MEM, 577 tx->sgl, tx->nents, DMA_MEM_TO_DEV,
|
H A D | spi-imx.c | 1411 struct scatterlist *last_sg = sg_last(rx->sgl, rx->nents); 1443 rx->sgl, rx->nents, DMA_DEV_TO_MEM, 1457 tx->sgl, tx->nents, DMA_MEM_TO_DEV,
|
/linux-master/drivers/nvme/host/ |
H A D | pci.c | 550 WARN_ON_ONCE(!iod->sgt.nents); 565 static void nvme_print_sgl(struct scatterlist *sgl, int nents) argument 570 for_each_sg(sgl, sg, nents, i) { 663 WARN(DO_ONCE(nvme_print_sgl, iod->sgt.sgl, iod->sgt.nents), 664 "Invalid SGL for payload:%d nents:%d\n", 665 blk_rq_payload_bytes(req), iod->sgt.nents); 692 unsigned int entries = iod->sgt.nents; 809 if (nvme_pci_use_sgls(dev, req, iod->sgt.nents)) 844 iod->sgt.nents = 0;
|
H A D | fc.c | 107 u32 nents; member in struct:nvme_fc_fcp_op 992 fc_map_sg(struct scatterlist *sg, int nents) argument 997 WARN_ON(nents == 0 || sg[0].length == 0); 999 for_each_sg(sg, s, nents, i) { 1005 return nents; 1009 fc_dma_map_sg(struct device *dev, struct scatterlist *sg, int nents, argument 1012 return dev ? dma_map_sg(dev, sg, nents, dir) : fc_map_sg(sg, nents); 1016 fc_dma_unmap_sg(struct device *dev, struct scatterlist *sg, int nents, argument 1020 dma_unmap_sg(dev, sg, nents, di [all...] |
/linux-master/net/smc/ |
H A D | smc_ib.c | 748 buf_slot->sgt[lnk->link_idx].nents, i) { 775 buf_slot->sgt[lnk->link_idx].nents, i) { 798 buf_slot->sgt[lnk->link_idx].nents, i) {
|
/linux-master/drivers/usb/gadget/function/ |
H A D | f_fs.c | 1104 req->num_sgs = io_data->sgt.nents; 1155 req->num_sgs = io_data->sgt.nents;
|
H A D | uvc_video.c | 145 sg_init_table(sg, ureq->sgt.nents); 162 for_each_sg(sg, iter, ureq->sgt.nents - 1, i) {
|
/linux-master/lib/ |
H A D | scatterlist.c | 49 int nents; local 50 for (nents = 0; sg; sg = sg_next(sg)) 51 nents++; 52 return nents; 72 int nents; local 78 for (nents = 0, total = 0; sg; sg = sg_next(sg)) { 79 nents++; 82 return nents; 92 * @nents: Number of entries in the scatterlist 99 * the important bit is that @nents 103 sg_last(struct scatterlist *sgl, unsigned int nents) argument 126 sg_init_table(struct scatterlist *sgl, unsigned int nents) argument 151 sg_kmalloc(unsigned int nents, gfp_t gfp_mask) argument 171 sg_kfree(struct scatterlist *sg, unsigned int nents) argument 285 __sg_alloc_table(struct sg_table *table, unsigned int nents, unsigned int max_ents, struct scatterlist *first_chunk, unsigned int nents_first_chunk, gfp_t gfp_mask, sg_alloc_fn *alloc_fn) argument 374 sg_alloc_table(struct sg_table *table, unsigned int nents, gfp_t gfp_mask) argument 685 sgl_free_n_order(struct scatterlist *sgl, int nents, int order) argument 725 __sg_page_iter_start(struct sg_page_iter *piter, struct scatterlist *sglist, unsigned int nents, unsigned long pgoffset) argument 800 sg_miter_start(struct sg_mapping_iter *miter, struct scatterlist *sgl, unsigned int nents, unsigned int flags) argument 962 sg_copy_buffer(struct scatterlist *sgl, unsigned int nents, void *buf, size_t buflen, off_t skip, bool to_buffer) argument 1008 sg_copy_from_buffer(struct scatterlist *sgl, unsigned int nents, const void *buf, size_t buflen) argument 1025 sg_copy_to_buffer(struct scatterlist *sgl, unsigned int nents, void *buf, size_t buflen) argument 1043 sg_pcopy_from_buffer(struct scatterlist *sgl, unsigned int nents, const void *buf, size_t buflen, off_t skip) argument 1061 sg_pcopy_to_buffer(struct scatterlist *sgl, unsigned int nents, void *buf, size_t buflen, off_t skip) argument 1077 sg_zero_buffer(struct scatterlist *sgl, unsigned int nents, size_t buflen, off_t skip) argument [all...] |
/linux-master/fs/smb/client/ |
H A D | smb2ops.c | 4171 sgtable.orig_nents = sgtable.nents; 4174 num_sgs - sgtable.nents, 0); 4176 sgtable.orig_nents = sgtable.nents; 4180 sg_mark_end(&sgtable.sgl[sgtable.nents - 1]);
|
H A D | cifsglob.h | 2224 unsigned int nents = 0; local 2265 nents += DIV_ROUND_UP(offset_in_page(addr) + len, 2268 nents++; 2273 nents += iov_iter_npages(&rqst[i].rq_iter, INT_MAX); 2275 nents += DIV_ROUND_UP(offset_in_page(sig) + SMB2_SIGNATURE_SIZE, PAGE_SIZE); 2276 return nents; 2294 sg_set_page(&sgtable->sgl[sgtable->nents++], 2302 sg_set_page(&sgtable->sgl[sgtable->nents++],
|
/linux-master/drivers/scsi/ |
H A D | scsi_lib.c | 579 if (cmd->sdb.table.nents) 1161 BUG_ON(count > cmd->sdb.table.nents); 1162 cmd->sdb.table.nents = count; 1194 cmd->prot_sdb->table.nents = count;
|
H A D | scsi_debug.c | 1481 act_len = sg_copy_from_buffer(sdb->table.sgl, sdb->table.nents, 1505 act_len = sg_pcopy_from_buffer(sdb->table.sgl, sdb->table.nents, 3412 ret = sg_copy_buffer(sdb->table.sgl, sdb->table.nents, 3419 ret += sg_copy_buffer(sdb->table.sgl, sdb->table.nents, 3437 return sg_copy_buffer(sdb->table.sgl, sdb->table.nents, doutp,
|
/linux-master/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_ttm_buffer.c | 140 vmw_tt->sgt.nents = vmw_tt->sgt.orig_nents;
|
/linux-master/net/rds/ |
H A D | rdma.c | 183 unsigned int nents = 0; local 271 nents = ret; 272 sg = kmalloc_array(nents, sizeof(*sg), GFP_KERNEL); 277 WARN_ON(!nents); 278 sg_init_table(sg, nents); 281 for (i = 0 ; i < nents; i++) 284 rdsdebug("RDS: trans_private nents is %u\n", nents); 291 sg, nents, rs, &mr->r_key, cp ? cp->cp_conn : NULL,
|
/linux-master/drivers/nvme/target/ |
H A D | fc.c | 324 fc_map_sg(struct scatterlist *sg, int nents) argument 329 WARN_ON(nents == 0 || sg[0].length == 0); 331 for_each_sg(sg, s, nents, i) { 337 return nents; 341 fc_dma_map_sg(struct device *dev, struct scatterlist *sg, int nents, argument 344 return dev ? dma_map_sg(dev, sg, nents, dir) : fc_map_sg(sg, nents); 348 fc_dma_unmap_sg(struct device *dev, struct scatterlist *sg, int nents, argument 352 dma_unmap_sg(dev, sg, nents, dir);
|
/linux-master/drivers/usb/storage/ |
H A D | uas.c | 459 urb->num_sgs = udev->bus->sg_tablesize ? sdb->table.nents : 0;
|
/linux-master/drivers/gpu/drm/i915/ |
H A D | i915_vma.c | 981 st->nents++; 1000 st->nents++; 1036 st->nents = 0; 1063 st->nents++; 1111 st->nents++; 1159 st->nents++; 1246 st->nents = 0; 1284 st->nents = 0;
|
/linux-master/drivers/net/wireless/intel/iwlwifi/fw/ |
H A D | dbg.c | 567 int alloc_size, nents, i; local 572 nents = DIV_ROUND_UP(size, PAGE_SIZE); 573 table = kcalloc(nents, sizeof(*table), GFP_KERNEL); 576 sg_init_table(table, nents);
|
/linux-master/drivers/iommu/ |
H A D | iommu.c | 2595 struct scatterlist *sg, unsigned int nents, int prot, 2611 while (i <= nents) { 2636 if (++i < nents) 2594 iommu_map_sg(struct iommu_domain *domain, unsigned long iova, struct scatterlist *sg, unsigned int nents, int prot, gfp_t gfp) argument
|
H A D | dma-iommu.c | 613 int nents, enum dma_data_direction dir) 630 for_each_sg(sg, s, nents, i) 1222 static int __finalise_sg(struct device *dev, struct scatterlist *sg, int nents, argument 1230 for_each_sg(sg, s, nents, i) { 1290 static void __invalidate_sg(struct scatterlist *sg, int nents) argument 1295 for_each_sg(sg, s, nents, i) { 1310 int nents, enum dma_data_direction dir, unsigned long attrs) 1315 for_each_sg(sg, s, nents, i) 1321 int nents, enum dma_data_direction dir, unsigned long attrs) 1328 for_each_sg(sg, s, nents, 612 dev_use_sg_swiotlb(struct device *dev, struct scatterlist *sg, int nents, enum dma_data_direction dir) argument 1309 iommu_dma_unmap_sg_swiotlb(struct device *dev, struct scatterlist *sg, int nents, enum dma_data_direction dir, unsigned long attrs) argument 1320 iommu_dma_map_sg_swiotlb(struct device *dev, struct scatterlist *sg, int nents, enum dma_data_direction dir, unsigned long attrs) argument 1350 iommu_dma_map_sg(struct device *dev, struct scatterlist *sg, int nents, enum dma_data_direction dir, unsigned long attrs) argument 1470 iommu_dma_unmap_sg(struct device *dev, struct scatterlist *sg, int nents, enum dma_data_direction dir, unsigned long attrs) argument [all...] |
/linux-master/drivers/iommu/arm/arm-smmu-v3/ |
H A D | arm-smmu-v3.c | 3144 unsigned int nents = 1 << cmdq->q.llq.max_n_shift; local 3149 cmdq->valid_map = (atomic_long_t *)devm_bitmap_zalloc(smmu->dev, nents,
|
/linux-master/drivers/usb/core/ |
H A D | message.c | 484 * @nents: how many entries in the scatterlist 504 int nents, size_t length, gfp_t mem_flags) 513 || nents <= 0) 525 io->entries = nents; 559 urb->num_sgs = nents; 567 for_each_sg(sg, sg2, nents, j) 502 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
|