Lines Matching refs:use_sg

4583 	int use_sg, i, sg_limit, chained, last_sg;  in hpsa_scatter_gather()  local
4588 use_sg = scsi_dma_map(cmd); in hpsa_scatter_gather()
4589 if (use_sg < 0) in hpsa_scatter_gather()
4590 return use_sg; in hpsa_scatter_gather()
4592 if (!use_sg) in hpsa_scatter_gather()
4603 chained = use_sg > h->max_cmd_sg_entries; in hpsa_scatter_gather()
4604 sg_limit = chained ? h->max_cmd_sg_entries - 1 : use_sg; in hpsa_scatter_gather()
4619 sg_limit = use_sg - sg_limit; in hpsa_scatter_gather()
4629 if (use_sg + chained > h->maxSG) in hpsa_scatter_gather()
4630 h->maxSG = use_sg + chained; in hpsa_scatter_gather()
4634 cp->Header.SGTotal = cpu_to_le16(use_sg + 1); in hpsa_scatter_gather()
4644 cp->Header.SGList = (u8) use_sg; /* no. SGs contig in this cmd */ in hpsa_scatter_gather()
4645 cp->Header.SGTotal = cpu_to_le16(use_sg); /* total sgs in cmd list */ in hpsa_scatter_gather()
4745 int use_sg, i; in hpsa_scsi_ioaccel1_queue_command() local
4775 use_sg = scsi_dma_map(cmd); in hpsa_scsi_ioaccel1_queue_command()
4776 if (use_sg < 0) { in hpsa_scsi_ioaccel1_queue_command()
4778 return use_sg; in hpsa_scsi_ioaccel1_queue_command()
4781 if (use_sg) { in hpsa_scsi_ioaccel1_queue_command()
4783 scsi_for_each_sg(cmd, sg, use_sg, i) { in hpsa_scsi_ioaccel1_queue_command()
4814 c->Header.SGList = use_sg; in hpsa_scsi_ioaccel1_queue_command()
4916 int use_sg, i; in hpsa_scsi_ioaccel2_queue_command() local
4950 use_sg = scsi_dma_map(cmd); in hpsa_scsi_ioaccel2_queue_command()
4951 if (use_sg < 0) { in hpsa_scsi_ioaccel2_queue_command()
4953 return use_sg; in hpsa_scsi_ioaccel2_queue_command()
4956 if (use_sg) { in hpsa_scsi_ioaccel2_queue_command()
4958 if (use_sg > h->ioaccel_maxsg) { in hpsa_scsi_ioaccel2_queue_command()
4970 scsi_for_each_sg(cmd, sg, use_sg, i) { in hpsa_scsi_ioaccel2_queue_command()
5025 if (use_sg > h->ioaccel_maxsg) { in hpsa_scsi_ioaccel2_queue_command()
5027 cp->sg[0].length = cpu_to_le32(use_sg * sizeof(cp->sg[0])); in hpsa_scsi_ioaccel2_queue_command()
5034 cp->sg_count = (u8) use_sg; in hpsa_scsi_ioaccel2_queue_command()