Lines Matching refs:curr_sg
4184 struct SGDescriptor *curr_sg; in hpsa_scatter_gather() local
4202 curr_sg = cp->SG; in hpsa_scatter_gather()
4207 hpsa_set_sg_descriptor(curr_sg, sg); in hpsa_scatter_gather()
4208 curr_sg++; in hpsa_scatter_gather()
4218 curr_sg = h->cmd_sg_list[cp->cmdindex]; in hpsa_scatter_gather()
4221 hpsa_set_sg_descriptor(curr_sg, sg); in hpsa_scatter_gather()
4222 curr_sg++; in hpsa_scatter_gather()
4227 (curr_sg - 1)->Ext = cpu_to_le32(HPSA_SG_LAST); in hpsa_scatter_gather()
4303 struct SGDescriptor *curr_sg; in hpsa_scsi_ioaccel1_queue_command() local
4333 curr_sg = cp->SG; in hpsa_scsi_ioaccel1_queue_command()
4338 curr_sg->Addr = cpu_to_le64(addr64); in hpsa_scsi_ioaccel1_queue_command()
4339 curr_sg->Len = cpu_to_le32(len); in hpsa_scsi_ioaccel1_queue_command()
4340 curr_sg->Ext = cpu_to_le32(0); in hpsa_scsi_ioaccel1_queue_command()
4341 curr_sg++; in hpsa_scsi_ioaccel1_queue_command()
4343 (--curr_sg)->Ext = cpu_to_le32(HPSA_SG_LAST); in hpsa_scsi_ioaccel1_queue_command()
4458 struct ioaccel2_sg_element *curr_sg; in hpsa_scsi_ioaccel2_queue_command() local
4488 curr_sg = cp->sg; in hpsa_scsi_ioaccel2_queue_command()
4492 curr_sg->address = cpu_to_le64(addr64); in hpsa_scsi_ioaccel2_queue_command()
4493 curr_sg->length = 0; in hpsa_scsi_ioaccel2_queue_command()
4494 curr_sg->reserved[0] = 0; in hpsa_scsi_ioaccel2_queue_command()
4495 curr_sg->reserved[1] = 0; in hpsa_scsi_ioaccel2_queue_command()
4496 curr_sg->reserved[2] = 0; in hpsa_scsi_ioaccel2_queue_command()
4497 curr_sg->chain_indicator = 0x80; in hpsa_scsi_ioaccel2_queue_command()
4499 curr_sg = h->ioaccel2_cmd_sg_list[c->cmdindex]; in hpsa_scsi_ioaccel2_queue_command()
4505 curr_sg->address = cpu_to_le64(addr64); in hpsa_scsi_ioaccel2_queue_command()
4506 curr_sg->length = cpu_to_le32(len); in hpsa_scsi_ioaccel2_queue_command()
4507 curr_sg->reserved[0] = 0; in hpsa_scsi_ioaccel2_queue_command()
4508 curr_sg->reserved[1] = 0; in hpsa_scsi_ioaccel2_queue_command()
4509 curr_sg->reserved[2] = 0; in hpsa_scsi_ioaccel2_queue_command()
4510 curr_sg->chain_indicator = 0; in hpsa_scsi_ioaccel2_queue_command()
4511 curr_sg++; in hpsa_scsi_ioaccel2_queue_command()