Home
last modified time | relevance | path

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

/Linux-v5.4/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.c3204 int nsg, struct srp_direct_buf *md, int nmd, in ibmvscsis_rdma() argument
/Linux-v5.4/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 …]
/Linux-v5.4/drivers/crypto/
Domap-aes-gcm.c42 int alen, clen, i, ret = 0, nsg; in omap_aes_gcm_done_task() local
49 nsg = !!(dd->assoc_len && dd->total); in omap_aes_gcm_done_task()
70 omap_crypto_cleanup(&dd->in_sgl[nsg], NULL, 0, clen, in omap_aes_gcm_done_task()
94 int nsg; in omap_aes_gcm_copy_buffers() local
109 nsg = !!(assoclen && cryptlen); in omap_aes_gcm_copy_buffers()
113 sg_init_table(dd->in_sgl, nsg + 1); in omap_aes_gcm_copy_buffers()
129 AES_BLOCK_SIZE, &dd->in_sgl[nsg], in omap_aes_gcm_copy_buffers()
Dtalitos.c1989 unsigned int nsg; in ahash_process_req() local
2026 nsg = (req_ctx->nbuf < nbytes_to_hash) ? 2 : 1; in ahash_process_req()
2027 sg_init_table(req_ctx->bufsl, nsg); in ahash_process_req()
2029 if (nsg > 1) in ahash_process_req()
/Linux-v5.4/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 <= 0) in mlx4_alloc_icm()
222 chunk->nsg = dma_map_sg(&dev->persist->pdev->dev, chunk->sg, in mlx4_alloc_icm()
225 if (chunk->nsg <= 0) in mlx4_alloc_icm()
Dicm.h59 int nsg; member
113 if (++iter->page_idx >= iter->chunk->nsg) { in mlx4_icm_next()
/Linux-v5.4/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 = pci_map_sg(dev->pdev, chunk->mem, in mthca_alloc_icm()
191 if (chunk->nsg <= 0) in mthca_alloc_icm()
207 chunk->nsg = pci_map_sg(dev->pdev, 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()
/Linux-v5.4/drivers/infiniband/hw/hns/
Dhns_roce_hem.h84 int nsg; member
167 if (++iter->page_idx >= iter->chunk->nsg) { in hns_roce_hem_next()
Dhns_roce_hem.c309 chunk->nsg = 0; in hns_roce_alloc_hem()
331 ++chunk->nsg; in hns_roce_alloc_hem()
/Linux-v5.4/drivers/video/fbdev/via/
Dvia-core.c228 int viafb_dma_copy_out_sg(unsigned int offset, struct scatterlist *sg, int nsg) in viafb_dma_copy_out_sg() argument
242 nsg*sizeof(struct viafb_vx855_dma_descr), in viafb_dma_copy_out_sg()
254 for_each_sg(sg, sgentry, nsg, i) { in viafb_dma_copy_out_sg()
300 nsg*sizeof(struct viafb_vx855_dma_descr), descrpages, in viafb_dma_copy_out_sg()
/Linux-v5.4/net/rxrpc/
Drxkad.c440 int nsg, ret; in rxkad_verify_packet_2() local
454 nsg = skb_shinfo(skb)->nr_frags; in rxkad_verify_packet_2()
455 if (nsg <= 4) { in rxkad_verify_packet_2()
456 nsg = 4; in rxkad_verify_packet_2()
458 sg = kmalloc_array(nsg, sizeof(*sg), GFP_NOIO); in rxkad_verify_packet_2()
463 sg_init_table(sg, nsg); in rxkad_verify_packet_2()
/Linux-v5.4/include/linux/
Dvia-core.h148 int viafb_dma_copy_out_sg(unsigned int offset, struct scatterlist *sg, int nsg);
/Linux-v5.4/drivers/block/
Dsunvdc.c467 int nsg, err, i; in __send_request() local
485 nsg = blk_rq_map_sg(req->q, req, sg); in __send_request()
488 for (i = 0; i < nsg; i++) in __send_request()
493 err = ldc_map_sg(port->vio.lp, sg, nsg, in __send_request()
/Linux-v5.4/net/tls/
Dtls_device.c755 int err = 0, offset = rxm->offset, copy, nsg, data_len, pos; in tls_device_reencrypt() local
766 nsg = skb_cow_data(skb, 0, &unused); in tls_device_reencrypt()
767 if (unlikely(nsg < 0)) { in tls_device_reencrypt()
768 err = nsg; in tls_device_reencrypt()
Dtls_sw.c1355 int n_sgin, n_sgout, nsg, mem_size, aead_size, err, pages = 0; in decrypt_internal() local
1384 nsg = n_sgin + n_sgout; in decrypt_internal()
1387 mem_size = aead_size + (nsg * sizeof(struct scatterlist)); in decrypt_internal()
/Linux-v5.4/drivers/scsi/megaraid/
Dmegaraid_mbox.c3133 int nsg; in megaraid_mbox_get_max_sg() local
3149 nsg = *(uint8_t *)adapter->ibuf; in megaraid_mbox_get_max_sg()
3152 nsg = MBOX_DEFAULT_SG_SIZE; in megaraid_mbox_get_max_sg()
3155 if (nsg > MBOX_MAX_SG_SIZE) nsg = MBOX_MAX_SG_SIZE; in megaraid_mbox_get_max_sg()
3157 return nsg; in megaraid_mbox_get_max_sg()
/Linux-v5.4/net/core/
Dskbuff.c4247 int nsg = __skb_to_sgvec(skb, sg, offset, len, 0); in skb_to_sgvec() local
4249 if (nsg <= 0) in skb_to_sgvec()
4250 return nsg; in skb_to_sgvec()
4252 sg_mark_end(&sg[nsg - 1]); in skb_to_sgvec()
4254 return nsg; in skb_to_sgvec()