/linux-master/drivers/spi/ |
H A D | spi-qup.c | 413 unsigned int nents, enum dma_transfer_direction dir, 427 desc = dmaengine_prep_slave_sg(chan, sgl, nents, dir, flags); 449 u32 *nents) 462 (*nents)++; 412 spi_qup_prep_sg(struct spi_controller *host, struct scatterlist *sgl, unsigned int nents, enum dma_transfer_direction dir, dma_async_tx_callback callback) argument 448 spi_qup_sgl_get_nents_len(struct scatterlist *sgl, u32 max, u32 *nents) argument
|
H A D | spi-dw-core.c | 620 u32 nents; local 622 nents = dw_readl(dws, DW_SPI_TXFLR); 623 ns = NSEC_PER_SEC / dws->current_freq * nents;
|
/linux-master/drivers/gpu/drm/tegra/ |
H A D | gem.c | 27 static unsigned int sg_dma_count_chunks(struct scatterlist *sgl, unsigned int nents) argument 33 for_each_sg(sgl, s, nents, i) { 49 return sg_dma_count_chunks(sgt->sgl, sgt->nents);
|
/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) {
|
H A D | smc_core.c | 2077 int rc, i, nents, offset, buf_size, size, access_flags; local 2088 nents = PAGE_ALIGN(buf_size + offset) / PAGE_SIZE; 2090 nents = 1; 2093 rc = sg_alloc_table(&buf_desc->sgt[lnk->link_idx], nents, GFP_KERNEL); 2099 for_each_sg(buf_desc->sgt[lnk->link_idx].sgl, sg, nents, i) { 2116 if (rc != nents) {
|
/linux-master/drivers/crypto/intel/keembay/ |
H A D | keembay-ocs-aes-core.c | 224 static void sg_swap_blocks(struct scatterlist *sgl, unsigned int nents, argument 233 sg_pcopy_to_buffer(sgl, nents, tmp_buf1, AES_BLOCK_SIZE, blk1_offset); 234 sg_pcopy_to_buffer(sgl, nents, tmp_buf2, AES_BLOCK_SIZE, blk2_offset); 235 sg_pcopy_from_buffer(sgl, nents, tmp_buf1, AES_BLOCK_SIZE, blk2_offset); 236 sg_pcopy_from_buffer(sgl, nents, tmp_buf2, AES_BLOCK_SIZE, blk1_offset);
|
/linux-master/drivers/accel/qaic/ |
H A D | qaic_control.c | 493 int nents; local 496 nents = sgt->nents; 497 nents_dma = nents; 545 return nents_dma < nents ? 1 : 0;
|
/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
|
/linux-master/drivers/gpu/drm/i915/gem/selftests/ |
H A D | huge_pages.c | 102 st->nents = 0; 125 st->nents++; 235 st->nents = 0; 248 st->nents++; 283 st->nents = 1;
|
/linux-master/drivers/hsi/controllers/ |
H A D | omap_ssi_port.c | 225 err = dma_map_sg(&ssi->device, msg->sgt.sgl, msg->sgt.nents, 242 err = dma_map_sg(&ssi->device, msg->sgt.sgl, msg->sgt.nents, 324 if ((msg->sgt.nents) && (msg->sgt.sgl->length > sizeof(u32))) 380 if (msg->sgt.nents > 1) 899 if ((!msg->sgt.nents) || (!msg->sgt.sgl->length)) {
|
/linux-master/drivers/accel/habanalabs/common/ |
H A D | memory.c | 1542 unsigned int nents, i; local 1571 nents = 1; 1601 ++nents; 1606 rc = sg_alloc_table(sgt, nents, GFP_KERNEL | __GFP_ZERO); 1670 left_size_to_export, sgt->nents); 1678 * only nents (length of DMA list). 1683 nents, dev_name(dev)); 1784 sgt->orig_nents = sgt->nents;
|
/linux-master/drivers/crypto/inside-secure/ |
H A D | safexcel_hash.c | 49 int nents; member in struct:safexcel_ahash_req 251 if (sreq->nents) { 252 dma_unmap_sg(priv->dev, areq->src, sreq->nents, DMA_TO_DEVICE); 253 sreq->nents = 0; 423 req->nents = dma_map_sg(priv->dev, areq->src, 427 if (!req->nents) { 432 for_each_sg(areq->src, sg, req->nents, i) { 499 if (req->nents) { 500 dma_unmap_sg(priv->dev, areq->src, req->nents, DMA_TO_DEVICE); 501 req->nents [all...] |
/linux-master/drivers/scsi/cxgbi/ |
H A D | libcxgbi.c | 1149 *sgcnt = sdb->table.nents; 1238 static int cxgbi_ddp_sgl_check(struct scatterlist *sgl, int nents) argument 1241 int last_sgidx = nents - 1; 1244 for (i = 0; i < nents; i++, sg = sg_next(sg)) { 1251 i, nents, sg->offset, sg->length); 1269 unsigned int sgcnt = ttinfo->nents; 1284 xferlen, ttinfo->nents); 1371 dma_unmap_sg(&ppm->pdev->dev, ttinfo->sgl, ttinfo->nents, 1399 scmd_get_params(sc, &ttinfo->sgl, &ttinfo->nents, 1408 ttinfo->nents); [all...] |
/linux-master/kernel/dma/ |
H A D | debug.c | 60 * @sg_call_ents: 'nents' from dma_map_sg 417 * other hand, consumes a single dma_debug_entry, but inserts 'nents' 1300 int nents, int mapped_ents, int direction, 1310 for_each_sg(sg, s, nents, i) { 1328 entry->sg_call_ents = nents; 1299 debug_dma_map_sg(struct device *dev, struct scatterlist *sg, int nents, int mapped_ents, int direction, unsigned long attrs) argument
|
/linux-master/drivers/mmc/host/ |
H A D | mxcmmc.c | 293 int i, nents; local 322 nents = dma_map_sg(host->dma->device->dev, data->sg, 324 if (nents != data->sg_len)
|
/linux-master/drivers/scsi/be2iscsi/ |
H A D | be_mgmt.c | 1502 unsigned int nents) 1512 if (!nents || nents > BE_INVLDT_CMD_TBL_SZ) 1541 for (i = 0; i < nents; i++) { 1500 beiscsi_mgmt_invalidate_icds(struct beiscsi_hba *phba, struct invldt_cmd_tbl *inv_tbl, unsigned int nents) argument
|
/linux-master/drivers/target/iscsi/cxgbit/ |
H A D | cxgbit_target.c | 812 unsigned int nents, u32 skip) 830 consumed += sg_pcopy_from_buffer(sg, nents, (void *)buf, 1072 dma_unmap_sg(&ppm->pdev->dev, ttinfo->sgl, ttinfo->nents, 1074 ttinfo->nents = 0; 811 cxgbit_skb_copy_to_sg(struct sk_buff *skb, struct scatterlist *sg, unsigned int nents, u32 skip) argument
|
/linux-master/drivers/crypto/ccp/ |
H A D | ccp-dev.h | 468 int nents; member in struct:ccp_sg_workarea
|
/linux-master/include/media/drv-intf/ |
H A D | saa7146.h | 72 int nents; member in struct:saa7146_pgtable
|
/linux-master/drivers/media/common/saa7146/ |
H A D | saa7146_vbi.c | 254 int length = sgt->nents;
|
/linux-master/drivers/vfio/pci/pds/ |
H A D | cmds.c | 221 lm_file->num_sge = lm_file->sg_table.nents;
|
/linux-master/drivers/scsi/libfc/ |
H A D | fc_lport.c | 139 * @nents: job->reply_payload.sg_cnt 147 u32 nents; member in struct:fc_bsg_info 1993 fc_copy_buffer_to_sglist(buf, len, info->sg, &info->nents, 2061 info->nents = job->reply_payload.sg_cnt; 2121 info->nents = job->reply_payload.sg_cnt;
|
H A D | fc_fcp.c | 484 u32 nents; local 522 nents = scsi_sg_count(sc); 525 copy_len = fc_copy_buffer_to_sglist(buf, len, sg, &nents, 529 copy_len = fc_copy_buffer_to_sglist(buf, len, sg, &nents,
|
/linux-master/drivers/block/mtip32xx/ |
H A D | mtip32xx.c | 1441 * @nents Number of scatter list entries. 1448 int nents) 1457 for_each_sg(command->sg, sg, nents, n) { 2056 unsigned int nents; local 2059 nents = blk_rq_map_sg(hctx->queue, rq, command->sg); 2060 nents = dma_map_sg(&dd->pdev->dev, command->sg, nents, dma_dir); 2064 command->scatter_ents = nents; 2094 fill_command_sg(dd, command, nents); 2103 hdr->opts = cpu_to_le32((nents << 1 1446 fill_command_sg(struct driver_data *dd, struct mtip_cmd *command, int nents) argument [all...] |
/linux-master/drivers/infiniband/ulp/srpt/ |
H A D | ib_srpt.c | 920 ret = target_alloc_sgl(&ctx->sg, &ctx->nents, size, false, 926 ctx->sg, ctx->nents, 0, remote_addr, rkey, dir); 928 target_free_sgl(ctx->sg, ctx->nents); 943 prev_nents = ctx->nents; 945 *sg_cnt += ctx->nents; 955 ctx->sg, ctx->nents, dir); 956 target_free_sgl(ctx->sg, ctx->nents); 973 ctx->sg, ctx->nents, dir); 974 target_free_sgl(ctx->sg, ctx->nents);
|