nsg 467 drivers/block/sunvdc.c int nsg, err, i; nsg 485 drivers/block/sunvdc.c nsg = blk_rq_map_sg(req->q, req, sg); nsg 488 drivers/block/sunvdc.c for (i = 0; i < nsg; i++) nsg 493 drivers/block/sunvdc.c err = ldc_map_sg(port->vio.lp, sg, nsg, nsg 42 drivers/crypto/omap-aes-gcm.c int alen, clen, i, ret = 0, nsg; nsg 49 drivers/crypto/omap-aes-gcm.c nsg = !!(dd->assoc_len && dd->total); nsg 70 drivers/crypto/omap-aes-gcm.c omap_crypto_cleanup(&dd->in_sgl[nsg], NULL, 0, clen, nsg 94 drivers/crypto/omap-aes-gcm.c int nsg; nsg 109 drivers/crypto/omap-aes-gcm.c nsg = !!(assoclen && cryptlen); nsg 113 drivers/crypto/omap-aes-gcm.c sg_init_table(dd->in_sgl, nsg + 1); nsg 129 drivers/crypto/omap-aes-gcm.c AES_BLOCK_SIZE, &dd->in_sgl[nsg], nsg 1989 drivers/crypto/talitos.c unsigned int nsg; nsg 2026 drivers/crypto/talitos.c nsg = (req_ctx->nbuf < nbytes_to_hash) ? 2 : 1; nsg 2027 drivers/crypto/talitos.c sg_init_table(req_ctx->bufsl, nsg); nsg 2029 drivers/crypto/talitos.c if (nsg > 1) nsg 309 drivers/infiniband/hw/hns/hns_roce_hem.c chunk->nsg = 0; nsg 331 drivers/infiniband/hw/hns/hns_roce_hem.c ++chunk->nsg; nsg 84 drivers/infiniband/hw/hns/hns_roce_hem.h int nsg; nsg 167 drivers/infiniband/hw/hns/hns_roce_hem.h if (++iter->page_idx >= iter->chunk->nsg) { nsg 68 drivers/infiniband/hw/mthca/mthca_memfree.c if (chunk->nsg > 0) nsg 166 drivers/infiniband/hw/mthca/mthca_memfree.c chunk->nsg = 0; nsg 185 drivers/infiniband/hw/mthca/mthca_memfree.c ++chunk->nsg; nsg 187 drivers/infiniband/hw/mthca/mthca_memfree.c chunk->nsg = pci_map_sg(dev->pdev, chunk->mem, nsg 191 drivers/infiniband/hw/mthca/mthca_memfree.c if (chunk->nsg <= 0) nsg 207 drivers/infiniband/hw/mthca/mthca_memfree.c chunk->nsg = pci_map_sg(dev->pdev, chunk->mem, nsg 211 drivers/infiniband/hw/mthca/mthca_memfree.c if (chunk->nsg <= 0) nsg 54 drivers/infiniband/hw/mthca/mthca_memfree.h int nsg; nsg 116 drivers/infiniband/hw/mthca/mthca_memfree.h if (++iter->page_idx >= iter->chunk->nsg) { nsg 59 drivers/net/ethernet/mellanox/mlx4/icm.c if (chunk->nsg > 0) nsg 205 drivers/net/ethernet/mellanox/mlx4/icm.c ++chunk->nsg; nsg 207 drivers/net/ethernet/mellanox/mlx4/icm.c chunk->nsg = dma_map_sg(&dev->persist->pdev->dev, nsg 211 drivers/net/ethernet/mellanox/mlx4/icm.c if (chunk->nsg <= 0) nsg 222 drivers/net/ethernet/mellanox/mlx4/icm.c chunk->nsg = dma_map_sg(&dev->persist->pdev->dev, chunk->sg, nsg 225 drivers/net/ethernet/mellanox/mlx4/icm.c if (chunk->nsg <= 0) nsg 59 drivers/net/ethernet/mellanox/mlx4/icm.h int nsg; nsg 113 drivers/net/ethernet/mellanox/mlx4/icm.h if (++iter->page_idx >= iter->chunk->nsg) { nsg 3204 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c int nsg, struct srp_direct_buf *md, int nmd, nsg 167 drivers/scsi/ibmvscsi_tgt/libsrp.c int err, nsg = 0, len; nsg 172 drivers/scsi/ibmvscsi_tgt/libsrp.c nsg = dma_map_sg(iue->target->dev, sg, cmd->se_cmd.t_data_nents, nsg 174 drivers/scsi/ibmvscsi_tgt/libsrp.c if (!nsg) { nsg 184 drivers/scsi/ibmvscsi_tgt/libsrp.c err = rdma_io(cmd, sg, nsg, md, 1, dir, len); nsg 187 drivers/scsi/ibmvscsi_tgt/libsrp.c dma_unmap_sg(iue->target->dev, sg, nsg, DMA_BIDIRECTIONAL); nsg 202 drivers/scsi/ibmvscsi_tgt/libsrp.c int nmd, nsg = 0, len; nsg 243 drivers/scsi/ibmvscsi_tgt/libsrp.c nsg = dma_map_sg(iue->target->dev, sg, cmd->se_cmd.t_data_nents, nsg 245 drivers/scsi/ibmvscsi_tgt/libsrp.c if (!nsg) { nsg 256 drivers/scsi/ibmvscsi_tgt/libsrp.c err = rdma_io(cmd, sg, nsg, md, nmd, dir, len); nsg 259 drivers/scsi/ibmvscsi_tgt/libsrp.c dma_unmap_sg(iue->target->dev, sg, nsg, DMA_BIDIRECTIONAL); nsg 3133 drivers/scsi/megaraid/megaraid_mbox.c int nsg; nsg 3149 drivers/scsi/megaraid/megaraid_mbox.c nsg = *(uint8_t *)adapter->ibuf; nsg 3152 drivers/scsi/megaraid/megaraid_mbox.c nsg = MBOX_DEFAULT_SG_SIZE; nsg 3155 drivers/scsi/megaraid/megaraid_mbox.c if (nsg > MBOX_MAX_SG_SIZE) nsg = MBOX_MAX_SG_SIZE; nsg 3157 drivers/scsi/megaraid/megaraid_mbox.c return nsg; nsg 638 drivers/usb/storage/sddr09.c int result, bulklen, nsg, ct; nsg 642 drivers/usb/storage/sddr09.c nsg = bulklen = 0; nsg 647 drivers/usb/storage/sddr09.c nsg++; nsg 649 drivers/usb/storage/sddr09.c command[4*nsg+2] = ct; nsg 650 drivers/usb/storage/sddr09.c command[4*nsg+1] = ((address >> 9) & 0xFF); nsg 651 drivers/usb/storage/sddr09.c command[4*nsg+0] = ((address >> 17) & 0xFF); nsg 652 drivers/usb/storage/sddr09.c command[4*nsg-1] = ((address >> 25) & 0xFF); nsg 655 drivers/usb/storage/sddr09.c nsg++; nsg 657 drivers/usb/storage/sddr09.c command[4*nsg+2] = ct; nsg 658 drivers/usb/storage/sddr09.c command[4*nsg+1] = ((address >> 9) & 0xFF); nsg 659 drivers/usb/storage/sddr09.c command[4*nsg+0] = ((address >> 17) & 0xFF); nsg 660 drivers/usb/storage/sddr09.c command[4*nsg-1] = ((address >> 25) & 0xFF); nsg 663 drivers/usb/storage/sddr09.c nsg++; nsg 665 drivers/usb/storage/sddr09.c command[4*nsg+2] = ct; nsg 666 drivers/usb/storage/sddr09.c command[4*nsg+1] = ((address >> 9) & 0xFF); nsg 667 drivers/usb/storage/sddr09.c command[4*nsg+0] = ((address >> 17) & 0xFF); nsg 668 drivers/usb/storage/sddr09.c command[4*nsg-1] = ((address >> 25) & 0xFF); nsg 670 drivers/usb/storage/sddr09.c command[2] = nsg; nsg 672 drivers/usb/storage/sddr09.c result = sddr09_send_scsi_command(us, command, 4*nsg+3); nsg 228 drivers/video/fbdev/via/via-core.c int viafb_dma_copy_out_sg(unsigned int offset, struct scatterlist *sg, int nsg) nsg 242 drivers/video/fbdev/via/via-core.c nsg*sizeof(struct viafb_vx855_dma_descr), nsg 254 drivers/video/fbdev/via/via-core.c for_each_sg(sg, sgentry, nsg, i) { nsg 300 drivers/video/fbdev/via/via-core.c nsg*sizeof(struct viafb_vx855_dma_descr), descrpages, nsg 148 include/linux/via-core.h int viafb_dma_copy_out_sg(unsigned int offset, struct scatterlist *sg, int nsg); nsg 4247 net/core/skbuff.c int nsg = __skb_to_sgvec(skb, sg, offset, len, 0); nsg 4249 net/core/skbuff.c if (nsg <= 0) nsg 4250 net/core/skbuff.c return nsg; nsg 4252 net/core/skbuff.c sg_mark_end(&sg[nsg - 1]); nsg 4254 net/core/skbuff.c return nsg; nsg 440 net/rxrpc/rxkad.c int nsg, ret; nsg 454 net/rxrpc/rxkad.c nsg = skb_shinfo(skb)->nr_frags; nsg 455 net/rxrpc/rxkad.c if (nsg <= 4) { nsg 456 net/rxrpc/rxkad.c nsg = 4; nsg 458 net/rxrpc/rxkad.c sg = kmalloc_array(nsg, sizeof(*sg), GFP_NOIO); nsg 463 net/rxrpc/rxkad.c sg_init_table(sg, nsg); nsg 773 net/tls/tls_device.c int err = 0, offset = rxm->offset, copy, nsg, data_len, pos; nsg 784 net/tls/tls_device.c nsg = skb_cow_data(skb, 0, &unused); nsg 785 net/tls/tls_device.c if (unlikely(nsg < 0)) { nsg 786 net/tls/tls_device.c err = nsg; nsg 1399 net/tls/tls_sw.c int n_sgin, n_sgout, nsg, mem_size, aead_size, err, pages = 0; nsg 1428 net/tls/tls_sw.c nsg = n_sgin + n_sgout; nsg 1431 net/tls/tls_sw.c mem_size = aead_size + (nsg * sizeof(struct scatterlist));