Searched refs:sgcnt (Results 1 – 7 of 7) sorted by relevance
/linux/drivers/target/iscsi/cxgbit/ |
H A D | cxgbit_ddp.c | 177 unsigned int sgcnt = ttinfo->nents; in cxgbit_ddp_reserve() local 181 if ((xferlen < DDP_THRESHOLD) || (!sgcnt)) { in cxgbit_ddp_reserve() 188 if (cxgbit_ddp_sgl_check(sgl, sgcnt) < 0) in cxgbit_ddp_reserve() 204 ret = dma_map_sg(&ppm->pdev->dev, sgl, sgcnt, DMA_FROM_DEVICE); in cxgbit_ddp_reserve() 208 __func__, 0, xferlen, sgcnt); in cxgbit_ddp_reserve() 218 dma_unmap_sg(&ppm->pdev->dev, sgl, sgcnt, DMA_FROM_DEVICE); in cxgbit_ddp_reserve()
|
/linux/drivers/scsi/cxgbi/ |
H A D | libcxgbi.c | 1143 unsigned int *sgcnt, unsigned int *dlen, in scmd_get_params() argument 1149 *sgcnt = sdb->table.nents; in scmd_get_params() 1269 unsigned int sgcnt = ttinfo->nents; in cxgbi_ddp_reserve() local 1279 if (!ppm || xferlen < DDP_THRESHOLD || !sgcnt || in cxgbi_ddp_reserve() 1289 if (cxgbi_ddp_sgl_check(sgl, sgcnt) < 0) in cxgbi_ddp_reserve() 1310 err = dma_map_sg(&ppm->pdev->dev, sgl, sgcnt, DMA_FROM_DEVICE); in cxgbi_ddp_reserve() 1314 __func__, sw_tag, xferlen, sgcnt); in cxgbi_ddp_reserve() 1320 __func__, sw_tag, xferlen, sgcnt, err); in cxgbi_ddp_reserve() 1346 dma_unmap_sg(&ppm->pdev->dev, sgl, sgcnt, DMA_FROM_DEVICE); in cxgbi_ddp_reserve() 1742 static int sgl_seek_offset(struct scatterlist *sgl, unsigned int sgcnt, in sgl_seek_offset() argument [all …]
|
/linux/drivers/scsi/megaraid/ |
H A D | megaraid_mbox.c | 1342 int sgcnt; in megaraid_mbox_mksgl() local 1349 sgcnt = scsi_dma_map(scp); in megaraid_mbox_mksgl() 1350 BUG_ON(sgcnt < 0 || sgcnt > adapter->sglen); in megaraid_mbox_mksgl() 1353 if (!sgcnt) in megaraid_mbox_mksgl() 1358 scsi_for_each_sg(scp, sgl, sgcnt, i) { in megaraid_mbox_mksgl() 1364 return sgcnt; in megaraid_mbox_mksgl()
|
/linux/drivers/scsi/ |
H A D | hptiop.c | 858 HPT_SCP(scp)->sgcnt = nseg; in hptiop_buildsgl() 861 BUG_ON(HPT_SCP(scp)->sgcnt > hba->max_sg_descriptors); in hptiop_buildsgl() 863 scsi_for_each_sg(scp, sg, HPT_SCP(scp)->sgcnt, idx) { in hptiop_buildsgl() 867 psg[idx].eot = (idx == HPT_SCP(scp)->sgcnt - 1) ? in hptiop_buildsgl() 870 return HPT_SCP(scp)->sgcnt; in hptiop_buildsgl()
|
H A D | hptiop.h | 256 int sgcnt; member
|
H A D | megaraid.c | 1713 int sgcnt; in mega_build_sglist() local 1723 sgcnt = scsi_dma_map(cmd); in mega_build_sglist() 1727 BUG_ON(sgcnt > adapter->sglen || sgcnt < 0); in mega_build_sglist() 1739 scsi_for_each_sg(cmd, sg, sgcnt, idx) { in mega_build_sglist() 1753 return sgcnt; in mega_build_sglist()
|
H A D | advansys.c | 7476 int sgcnt; in asc_build_req() local 7509 scsi_for_each_sg(scp, slp, use_sg, sgcnt) { in asc_build_req() 7510 asc_sg_head->sg_list[sgcnt].addr = in asc_build_req() 7512 asc_sg_head->sg_list[sgcnt].bytes = in asc_build_req()
|