Lines Matching refs:curr_sg
4584 struct SGDescriptor *curr_sg; in hpsa_scatter_gather() local
4602 curr_sg = cp->SG; in hpsa_scatter_gather()
4607 hpsa_set_sg_descriptor(curr_sg, sg); in hpsa_scatter_gather()
4608 curr_sg++; in hpsa_scatter_gather()
4618 curr_sg = h->cmd_sg_list[cp->cmdindex]; in hpsa_scatter_gather()
4621 hpsa_set_sg_descriptor(curr_sg, sg); in hpsa_scatter_gather()
4622 curr_sg++; in hpsa_scatter_gather()
4627 (curr_sg - 1)->Ext = cpu_to_le32(HPSA_SG_LAST); in hpsa_scatter_gather()
4746 struct SGDescriptor *curr_sg; in hpsa_scsi_ioaccel1_queue_command() local
4782 curr_sg = cp->SG; in hpsa_scsi_ioaccel1_queue_command()
4787 curr_sg->Addr = cpu_to_le64(addr64); in hpsa_scsi_ioaccel1_queue_command()
4788 curr_sg->Len = cpu_to_le32(len); in hpsa_scsi_ioaccel1_queue_command()
4789 curr_sg->Ext = cpu_to_le32(0); in hpsa_scsi_ioaccel1_queue_command()
4790 curr_sg++; in hpsa_scsi_ioaccel1_queue_command()
4792 (--curr_sg)->Ext = cpu_to_le32(HPSA_SG_LAST); in hpsa_scsi_ioaccel1_queue_command()
4915 struct ioaccel2_sg_element *curr_sg; in hpsa_scsi_ioaccel2_queue_command() local
4957 curr_sg = cp->sg; in hpsa_scsi_ioaccel2_queue_command()
4961 curr_sg->address = cpu_to_le64(addr64); in hpsa_scsi_ioaccel2_queue_command()
4962 curr_sg->length = 0; in hpsa_scsi_ioaccel2_queue_command()
4963 curr_sg->reserved[0] = 0; in hpsa_scsi_ioaccel2_queue_command()
4964 curr_sg->reserved[1] = 0; in hpsa_scsi_ioaccel2_queue_command()
4965 curr_sg->reserved[2] = 0; in hpsa_scsi_ioaccel2_queue_command()
4966 curr_sg->chain_indicator = IOACCEL2_CHAIN; in hpsa_scsi_ioaccel2_queue_command()
4968 curr_sg = h->ioaccel2_cmd_sg_list[c->cmdindex]; in hpsa_scsi_ioaccel2_queue_command()
4974 curr_sg->address = cpu_to_le64(addr64); in hpsa_scsi_ioaccel2_queue_command()
4975 curr_sg->length = cpu_to_le32(len); in hpsa_scsi_ioaccel2_queue_command()
4976 curr_sg->reserved[0] = 0; in hpsa_scsi_ioaccel2_queue_command()
4977 curr_sg->reserved[1] = 0; in hpsa_scsi_ioaccel2_queue_command()
4978 curr_sg->reserved[2] = 0; in hpsa_scsi_ioaccel2_queue_command()
4979 curr_sg->chain_indicator = 0; in hpsa_scsi_ioaccel2_queue_command()
4980 curr_sg++; in hpsa_scsi_ioaccel2_queue_command()
4986 (curr_sg - 1)->chain_indicator = IOACCEL2_LAST_SG; in hpsa_scsi_ioaccel2_queue_command()