Lines Matching refs:nseg

325 	int		nseg;  in qla2x00_start_scsi()  local
368 nseg = dma_map_sg(&ha->pdev->dev, scsi_sglist(cmd), in qla2x00_start_scsi()
370 if (unlikely(!nseg)) in qla2x00_start_scsi()
373 nseg = 0; in qla2x00_start_scsi()
375 tot_dsds = nseg; in qla2x00_start_scsi()
1541 int nseg; in qla24xx_start_scsi() local
1582 nseg = dma_map_sg(&ha->pdev->dev, scsi_sglist(cmd), in qla24xx_start_scsi()
1584 if (unlikely(!nseg)) in qla24xx_start_scsi()
1587 nseg = 0; in qla24xx_start_scsi()
1589 tot_dsds = nseg; in qla24xx_start_scsi()
1696 int nseg; in qla24xx_dif_start_scsi() local
1746 nseg = dma_map_sg(&ha->pdev->dev, scsi_sglist(cmd), in qla24xx_dif_start_scsi()
1748 if (unlikely(!nseg)) in qla24xx_dif_start_scsi()
1763 nseg = 0; in qla24xx_dif_start_scsi()
1766 nseg++; in qla24xx_dif_start_scsi()
1769 nseg = 0; in qla24xx_dif_start_scsi()
1772 tot_dsds = nseg; in qla24xx_dif_start_scsi()
1776 nseg = dma_map_sg(&ha->pdev->dev, scsi_prot_sglist(cmd), in qla24xx_dif_start_scsi()
1778 if (unlikely(!nseg)) in qla24xx_dif_start_scsi()
1785 nseg = scsi_bufflen(cmd) / cmd->device->sector_size; in qla24xx_dif_start_scsi()
1788 nseg = 0; in qla24xx_dif_start_scsi()
1793 tot_prot_dsds = nseg; in qla24xx_dif_start_scsi()
1794 tot_dsds += nseg; in qla24xx_dif_start_scsi()
1901 int nseg; in qla2xxx_start_scsi_mq() local
1945 nseg = dma_map_sg(&ha->pdev->dev, scsi_sglist(cmd), in qla2xxx_start_scsi_mq()
1947 if (unlikely(!nseg)) in qla2xxx_start_scsi_mq()
1950 nseg = 0; in qla2xxx_start_scsi_mq()
1952 tot_dsds = nseg; in qla2xxx_start_scsi_mq()
2060 int nseg; in qla2xxx_dif_start_scsi_mq() local
2124 nseg = dma_map_sg(&ha->pdev->dev, scsi_sglist(cmd), in qla2xxx_dif_start_scsi_mq()
2126 if (unlikely(!nseg)) in qla2xxx_dif_start_scsi_mq()
2141 nseg = 0; in qla2xxx_dif_start_scsi_mq()
2144 nseg++; in qla2xxx_dif_start_scsi_mq()
2147 nseg = 0; in qla2xxx_dif_start_scsi_mq()
2150 tot_dsds = nseg; in qla2xxx_dif_start_scsi_mq()
2154 nseg = dma_map_sg(&ha->pdev->dev, scsi_prot_sglist(cmd), in qla2xxx_dif_start_scsi_mq()
2156 if (unlikely(!nseg)) in qla2xxx_dif_start_scsi_mq()
2163 nseg = scsi_bufflen(cmd) / cmd->device->sector_size; in qla2xxx_dif_start_scsi_mq()
2166 nseg = 0; in qla2xxx_dif_start_scsi_mq()
2171 tot_prot_dsds = nseg; in qla2xxx_dif_start_scsi_mq()
2172 tot_dsds += nseg; in qla2xxx_dif_start_scsi_mq()
3343 int nseg; in qla82xx_start_scsi() local
3392 nseg = dma_map_sg(&ha->pdev->dev, scsi_sglist(cmd), in qla82xx_start_scsi()
3394 if (unlikely(!nseg)) in qla82xx_start_scsi()
3397 nseg = 0; in qla82xx_start_scsi()
3399 tot_dsds = nseg; in qla82xx_start_scsi()