Home
last modified time | relevance | path

Searched refs:nsg (Results 1 – 16 of 16) sorted by relevance

/drivers/scsi/ibmvscsi_tgt/
Dlibsrp.c167 int err, nsg = 0, len; in srp_direct_data() local
172 nsg = dma_map_sg(iue->target->dev, sg, cmd->se_cmd.t_data_nents, in srp_direct_data()
174 if (!nsg) { in srp_direct_data()
184 err = rdma_io(cmd, sg, nsg, md, 1, dir, len); in srp_direct_data()
187 dma_unmap_sg(iue->target->dev, sg, nsg, DMA_BIDIRECTIONAL); in srp_direct_data()
202 int nmd, nsg = 0, len; in srp_indirect_data() local
243 nsg = dma_map_sg(iue->target->dev, sg, cmd->se_cmd.t_data_nents, in srp_indirect_data()
245 if (!nsg) { in srp_indirect_data()
256 err = rdma_io(cmd, sg, nsg, md, nmd, dir, len); in srp_indirect_data()
259 dma_unmap_sg(iue->target->dev, sg, nsg, DMA_BIDIRECTIONAL); in srp_indirect_data()
Dibmvscsi_tgt.c3189 int nsg, struct srp_direct_buf *md, int nmd, in ibmvscsis_rdma() argument
/drivers/vdpa/mlx5/core/
Dmr.c38 int nsg = mr->nsg; in populate_mtts() local
46 nsg && dma_len; in populate_mtts()
47 nsg--, dma_addr += BIT(mr->log_size), dma_len -= BIT(mr->log_size)) in populate_mtts()
59 inlen = MLX5_ST_SZ_BYTES(create_mkey_in) + roundup(MLX5_ST_SZ_BYTES(mtt) * mr->nsg, 16); in create_direct_mr()
233 unsigned int nsg; in map_direct_mr() local
249 nsg = MLX5_DIV_ROUND_UP_POW2(mr->end - mr->start, log_entity_size); in map_direct_mr()
251 err = sg_alloc_table(&mr->sg_head, nsg, GFP_KERNEL); in map_direct_mr()
275 mr->nsg = nsg; in map_direct_mr()
276 mr->nent = dma_map_sg_attrs(dma, mr->sg_head.sgl, mr->nsg, DMA_BIDIRECTIONAL, 0); in map_direct_mr()
289 dma_unmap_sg_attrs(dma, mr->sg_head.sgl, mr->nsg, DMA_BIDIRECTIONAL, 0); in map_direct_mr()
[all …]
Dmlx5_vdpa.h21 int nsg; member
/drivers/usb/storage/
Dsddr09.c638 int result, bulklen, nsg, ct;
642 nsg = bulklen = 0;
647 nsg++;
649 command[4*nsg+2] = ct;
650 command[4*nsg+1] = ((address >> 9) & 0xFF);
651 command[4*nsg+0] = ((address >> 17) & 0xFF);
652 command[4*nsg-1] = ((address >> 25) & 0xFF);
655 nsg++;
657 command[4*nsg+2] = ct;
658 command[4*nsg+1] = ((address >> 9) & 0xFF);
[all …]
/drivers/crypto/
Domap-aes-gcm.c45 int alen, clen, i, ret = 0, nsg; in omap_aes_gcm_done_task() local
52 nsg = !!(dd->assoc_len && dd->total); in omap_aes_gcm_done_task()
73 omap_crypto_cleanup(&dd->in_sgl[nsg], NULL, 0, clen, in omap_aes_gcm_done_task()
95 int nsg; in omap_aes_gcm_copy_buffers() local
110 nsg = !!(assoclen && cryptlen); in omap_aes_gcm_copy_buffers()
114 sg_init_table(dd->in_sgl, nsg + 1); in omap_aes_gcm_copy_buffers()
131 if (nsg) in omap_aes_gcm_copy_buffers()
135 AES_BLOCK_SIZE, &dd->in_sgl[nsg], in omap_aes_gcm_copy_buffers()
Dtalitos.c1991 unsigned int nsg; in ahash_process_req() local
2028 nsg = (req_ctx->nbuf < nbytes_to_hash) ? 2 : 1; in ahash_process_req()
2029 sg_init_table(req_ctx->bufsl, nsg); in ahash_process_req()
2031 if (nsg > 1) in ahash_process_req()
/drivers/net/ethernet/mellanox/mlx4/
Dicm.c59 if (chunk->nsg > 0) in mlx4_free_icm_pages()
205 ++chunk->nsg; in mlx4_alloc_icm()
207 chunk->nsg = dma_map_sg(&dev->persist->pdev->dev, in mlx4_alloc_icm()
211 if (!chunk->nsg) in mlx4_alloc_icm()
222 chunk->nsg = dma_map_sg(&dev->persist->pdev->dev, chunk->sg, in mlx4_alloc_icm()
225 if (!chunk->nsg) in mlx4_alloc_icm()
Dicm.h59 int nsg; member
113 if (++iter->page_idx >= iter->chunk->nsg) { in mlx4_icm_next()
/drivers/infiniband/hw/mthca/
Dmthca_memfree.c68 if (chunk->nsg > 0) in mthca_free_icm_pages()
166 chunk->nsg = 0; in mthca_alloc_icm()
185 ++chunk->nsg; in mthca_alloc_icm()
187 chunk->nsg = in mthca_alloc_icm()
192 if (chunk->nsg <= 0) in mthca_alloc_icm()
208 chunk->nsg = dma_map_sg(&dev->pdev->dev, chunk->mem, in mthca_alloc_icm()
211 if (chunk->nsg <= 0) in mthca_alloc_icm()
Dmthca_memfree.h54 int nsg; member
116 if (++iter->page_idx >= iter->chunk->nsg) { in mthca_icm_next()
/drivers/infiniband/hw/hns/
Dhns_roce_hem.h78 int nsg; member
153 if (++iter->page_idx >= iter->chunk->nsg) { in hns_roce_hem_next()
Dhns_roce_hem.c282 chunk->nsg = 0; in hns_roce_alloc_hem()
304 ++chunk->nsg; in hns_roce_alloc_hem()
/drivers/video/fbdev/via/
Dvia-core.c229 int viafb_dma_copy_out_sg(unsigned int offset, struct scatterlist *sg, int nsg) in viafb_dma_copy_out_sg() argument
243 nsg*sizeof(struct viafb_vx855_dma_descr), in viafb_dma_copy_out_sg()
255 for_each_sg(sg, sgentry, nsg, i) { in viafb_dma_copy_out_sg()
301 nsg*sizeof(struct viafb_vx855_dma_descr), descrpages, in viafb_dma_copy_out_sg()
/drivers/block/
Dsunvdc.c470 int nsg, err, i; in __send_request() local
488 nsg = blk_rq_map_sg(req->q, req, sg); in __send_request()
491 for (i = 0; i < nsg; i++) in __send_request()
496 err = ldc_map_sg(port->vio.lp, sg, nsg, in __send_request()
/drivers/scsi/megaraid/
Dmegaraid_mbox.c3126 int nsg; in megaraid_mbox_get_max_sg() local
3142 nsg = *(uint8_t *)adapter->ibuf; in megaraid_mbox_get_max_sg()
3145 nsg = MBOX_DEFAULT_SG_SIZE; in megaraid_mbox_get_max_sg()
3148 if (nsg > MBOX_MAX_SG_SIZE) nsg = MBOX_MAX_SG_SIZE; in megaraid_mbox_get_max_sg()
3150 return nsg; in megaraid_mbox_get_max_sg()