/linux-master/drivers/infiniband/hw/mlx5/ |
H A D | umr.c | 432 static void *mlx5r_umr_alloc_xlt(size_t *nents, size_t ent_size, gfp_t gfp_mask) argument 453 size = min_t(size_t, ent_size * ALIGN(*nents, xlt_chunk_align), 455 *nents = size / ent_size; 463 *nents = size / ent_size; 470 *nents = PAGE_SIZE / ent_size; 503 size_t nents, size_t ent_size, 510 xlt = mlx5r_umr_alloc_xlt(&nents, ent_size, 513 sg->length = nents * ent_size; 502 mlx5r_umr_create_xlt(struct mlx5_ib_dev *dev, struct ib_sge *sg, size_t nents, size_t ent_size, unsigned int flags) argument
|
/linux-master/mm/ |
H A D | page_reporting.c | 106 struct scatterlist *sgl, unsigned int nents, bool reported) 137 sg_init_table(sgl, nents); 105 page_reporting_drain(struct page_reporting_dev_info *prdev, struct scatterlist *sgl, unsigned int nents, bool reported) argument
|
/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,
|
H A D | ib_frmr.c | 404 unsigned long nents, u32 *key) 418 ibmr = rds_ib_alloc_frmr(rds_ibdev, nents); 426 ret = rds_ib_map_frmr(rds_ibdev, ibmr->pool, ibmr, sg, nents); 401 rds_ib_reg_frmr(struct rds_ib_device *rds_ibdev, struct rds_ib_connection *ic, struct scatterlist *sg, unsigned long nents, u32 *key) argument
|
/linux-master/include/scsi/ |
H A D | scsi_cmnd.h | 183 return cmd->sdb.table.nents; 318 return cmd->prot_sdb ? cmd->prot_sdb->table.nents : 0;
|
/linux-master/drivers/crypto/marvell/cesa/ |
H A D | cesa.h | 875 struct scatterlist *sgl, unsigned int nents, 881 unsigned int nents, 885 return mv_cesa_sg_copy(engine, sgl, nents, sram_off, buflen, skip, 891 unsigned int nents, 895 return mv_cesa_sg_copy(engine, sgl, nents, sram_off, buflen, skip, 879 mv_cesa_sg_copy_to_sram(struct mv_cesa_engine *engine, struct scatterlist *sgl, unsigned int nents, unsigned int sram_off, size_t buflen, off_t skip) argument 889 mv_cesa_sg_copy_from_sram(struct mv_cesa_engine *engine, struct scatterlist *sgl, unsigned int nents, unsigned int sram_off, size_t buflen, off_t skip) argument
|
/linux-master/drivers/usb/usbip/ |
H A D | stub_rx.c | 464 int nents; local 494 sgl = sgl_alloc(buf_len, GFP_KERNEL, &nents); 514 num_urbs = nents; 544 priv->urbs[0]->num_sgs = nents; 561 for_each_sg(sgl, sg, nents, i) {
|
/linux-master/drivers/crypto/ |
H A D | atmel-aes.c | 167 int nents; member in struct:atmel_aes_dma 652 int nents; local 657 for (nents = 0; sg; sg = sg_next(sg), ++nents) { 665 dma->nents = nents+1; 683 int nents = dma->nents; local 688 while (--nents > 0 && sg) 724 dd->src.nents [all...] |
H A D | atmel-sha.c | 126 int nents; member in struct:atmel_sha_dma 1395 int nents; local 1397 for (nents = 0; sg; sg = sg_next(sg), ++nents) { 1406 dma->nents = nents + 1; 1427 int nents; local 1429 dma_unmap_sg(dd->dev, dma->sg, dma->nents, DMA_TO_DEVICE); 1432 for (nents = 0; nents < dm [all...] |
/linux-master/drivers/accel/qaic/ |
H A D | qaic_data.c | 163 slice->bo->total_slice_nents -= slice->nents; 175 int total_len, len, nents, offf = 0, offl = 0; local 180 /* find out number of relevant nents needed for this mem */ 184 nents = 0; 197 nents++; 218 ret = sg_alloc_table(sgt, nents, GFP_KERNEL); 404 slice->reqs = kcalloc(sgt->nents, sizeof(*slice->reqs), GFP_KERNEL); 412 slice->nents = sgt->nents; 422 bo->total_slice_nents += sgt->nents; [all...] |
/linux-master/drivers/spi/ |
H A D | spi-qcom-qspi.c | 353 if (!sgt->nents || sgt->nents > QSPI_MAX_SG) { 354 dev_warn_once(ctrl->dev, "Cannot handle %d entries in scatter list\n", sgt->nents); 358 for (i = 0; i < sgt->nents; i++) { 378 for (i = 0; i < sgt->nents; i++) { 449 if (xfer->rx_sg.nents || xfer->tx_sg.nents) {
|
H A D | spi-pl022.c | 687 pl022->sgt_tx.nents, DMA_TO_DEVICE); 689 pl022->sgt_rx.nents, DMA_FROM_DEVICE); 713 pl022->sgt_rx.nents, 716 for_each_sg(pl022->sgt_rx.sgl, sg, pl022->sgt_rx.nents, i) { 726 for_each_sg(pl022->sgt_tx.sgl, sg, pl022->sgt_tx.nents, i) { 756 for_each_sg(sgtab->sgl, sg, sgtab->nents, i) { 777 for_each_sg(sgtab->sgl, sg, sgtab->nents, i) { 932 pl022->sgt_rx.nents, DMA_FROM_DEVICE); 937 pl022->sgt_tx.nents, DMA_TO_DEVICE); 976 pl022->sgt_tx.nents, DMA_TO_DEVIC [all...] |
H A D | spi-geni-qcom.c | 512 rx_desc = dmaengine_prep_slave_sg(mas->rx, xfer->rx_sg.sgl, xfer->rx_sg.nents, 525 tx_desc = dmaengine_prep_slave_sg(mas->tx, xfer->tx_sg.sgl, xfer->tx_sg.nents, 883 if (!xfer->tx_sg.nents && !xfer->rx_sg.nents) 885 else if (xfer->tx_sg.nents > 1 || xfer->rx_sg.nents > 1) { 887 xfer->tx_sg.nents, xfer->rx_sg.nents);
|
H A D | spi-bcm2835.c | 679 unsigned int nents; local 689 nents = tfr->tx_sg.nents; 695 nents = tfr->rx_sg.nents; 700 desc = dmaengine_prep_slave_sg(chan, sgl, nents, dir, flags);
|
/linux-master/drivers/crypto/intel/keembay/ |
H A D | keembay-ocs-hcu-core.c | 233 size_t nents; local 252 nents = sg_nents_for_len(req->src, rctx->sg_data_total - remainder); 255 if (nents) { 256 rctx->sg_dma_nents = dma_map_sg(dev, req->src, nents, 264 * The value returned by dma_map_sg() can be < nents; so update 265 * nents accordingly. 267 nents = rctx->sg_dma_nents; 285 nents++; 289 rctx->dma_list = ocs_hcu_dma_list_alloc(rctx->hcu_dev, nents);
|
/linux-master/drivers/staging/media/ipu3/ |
H A D | ipu3-mmu.c | 294 * @nents: number of entries in the scatterlist 300 struct scatterlist *sg, unsigned int nents) 308 for_each_sg(sg, s, nents, i) { 317 if (i == nents - 1 && !IS_ALIGNED(s->length, IPU3_PAGE_SIZE)) 299 imgu_mmu_map_sg(struct imgu_mmu_info *info, unsigned long iova, struct scatterlist *sg, unsigned int nents) argument
|
/linux-master/drivers/nvme/host/ |
H A D | apple.c | 163 int nents; /* Used in scatterlist */ member in struct:apple_nvme_iod 368 WARN_ON_ONCE(!iod->nents); 370 dma_unmap_sg(anv->dev, iod->sg, iod->nents, rq_dma_dir(req)); 379 static void apple_nvme_print_sgl(struct scatterlist *sgl, int nents) argument 384 for_each_sg(sgl, sg, nents, i) { 481 WARN(DO_ONCE(apple_nvme_print_sgl, iod->sg, iod->nents), 482 "Invalid SGL for payload:%d nents:%d\n", blk_rq_payload_bytes(req), 483 iod->nents); 528 iod->nents = blk_rq_map_sg(req->q, req, iod->sg); 529 if (!iod->nents) [all...] |
/linux-master/drivers/infiniband/ulp/srpt/ |
H A D | ib_srpt.h | 192 unsigned int nents; member in struct:srpt_rw_ctx
|
/linux-master/lib/crypto/mpi/ |
H A D | mpicoder.c | 368 int nents; local 376 nents = sg_nents_for_len(sgl, nbytes); 377 if (nents < 0) 380 sg_miter_start(&miter, sgl, nents, SG_MITER_ATOMIC | SG_MITER_TO_SG);
|
/linux-master/drivers/fpga/ |
H A D | fpga-mgr.c | 189 sg_miter_start(&miter, sgt->sgl, sgt->nents, SG_MITER_FROM_SG); 236 len = sg_pcopy_to_buffer(sgt->sgl, sgt->nents, 313 sg_miter_start(&miter, sgt->sgl, sgt->nents, SG_MITER_FROM_SG); 379 sg_miter_start(&miter, sgt->sgl, sgt->nents, SG_MITER_FROM_SG);
|
/linux-master/crypto/ |
H A D | essiv.c | 209 int nents; local 214 nents = sg_nents_for_len(req->src, ssize); 215 if (nents < 0) 221 if (unlikely(nents > 1)) {
|
/linux-master/drivers/media/pci/mgb4/ |
H A D | mgb4_dma.c | 51 tx = dmaengine_prep_slave_sg(chan->chan, sgt->sgl, sgt->nents,
|
/linux-master/include/rdma/ |
H A D | ib_umem.h | 79 umem->sgt_append.sgt.nents, pgsz);
|
/linux-master/include/linux/ |
H A D | dma-mapping.h | 110 int nents, enum dma_data_direction dir, unsigned long attrs); 112 int nents, enum dma_data_direction dir, 164 struct scatterlist *sg, int nents, enum dma_data_direction dir, 170 struct scatterlist *sg, int nents, enum dma_data_direction dir, 163 dma_map_sg_attrs(struct device *dev, struct scatterlist *sg, int nents, enum dma_data_direction dir, unsigned long attrs) argument 169 dma_unmap_sg_attrs(struct device *dev, struct scatterlist *sg, int nents, enum dma_data_direction dir, unsigned long attrs) argument
|
/linux-master/mm/kmsan/ |
H A D | hooks.c | 361 void kmsan_handle_dma_sg(struct scatterlist *sg, int nents, argument 367 for_each_sg(sg, item, nents, i)
|