Lines Matching refs:r1_cmd

3320 					   struct megasas_cmd_fusion *r1_cmd)  in megasas_prepare_secondRaid1_IO()  argument
3327 memcpy(r1_cmd->io_request, cmd->io_request, in megasas_prepare_secondRaid1_IO()
3329 memcpy(&r1_cmd->io_request->SGL, &cmd->io_request->SGL, in megasas_prepare_secondRaid1_IO()
3332 r1_cmd->io_request->SenseBufferLowAddress = in megasas_prepare_secondRaid1_IO()
3333 cpu_to_le32(lower_32_bits(r1_cmd->sense_phys_addr)); in megasas_prepare_secondRaid1_IO()
3334 r1_cmd->scmd = cmd->scmd; in megasas_prepare_secondRaid1_IO()
3336 (r1_cmd->index - 1)); in megasas_prepare_secondRaid1_IO()
3338 r1_cmd->request_desc = req_desc2; in megasas_prepare_secondRaid1_IO()
3339 req_desc2->SCSIIO.SMID = cpu_to_le16(r1_cmd->index); in megasas_prepare_secondRaid1_IO()
3341 r1_cmd->request_desc->SCSIIO.DevHandle = cmd->r1_alt_dev_handle; in megasas_prepare_secondRaid1_IO()
3342 r1_cmd->io_request->DevHandle = cmd->r1_alt_dev_handle; in megasas_prepare_secondRaid1_IO()
3343 r1_cmd->r1_alt_dev_handle = cmd->io_request->DevHandle; in megasas_prepare_secondRaid1_IO()
3345 cpu_to_le16(r1_cmd->index); in megasas_prepare_secondRaid1_IO()
3346 r1_cmd->io_request->RaidContext.raid_context_g35.flow_specific.peer_smid = in megasas_prepare_secondRaid1_IO()
3349 r1_cmd->request_desc->SCSIIO.MSIxIndex = in megasas_prepare_secondRaid1_IO()
3352 r1_cmd->io_request->RaidContext.raid_context_g35.span_arm = in megasas_prepare_secondRaid1_IO()
3366 struct megasas_cmd_fusion *cmd, *r1_cmd = NULL; in megasas_build_and_issue_cmd_fusion() local
3424 r1_cmd = megasas_get_cmd_fusion(instance, in megasas_build_and_issue_cmd_fusion()
3426 megasas_prepare_secondRaid1_IO(instance, cmd, r1_cmd); in megasas_build_and_issue_cmd_fusion()
3437 if (r1_cmd) in megasas_build_and_issue_cmd_fusion()
3438 megasas_fire_cmd_fusion(instance, r1_cmd->request_desc); in megasas_build_and_issue_cmd_fusion()
3459 struct megasas_cmd_fusion *r1_cmd = NULL; in megasas_complete_r1_command() local
3467 r1_cmd = fusion->cmd_list[peer_smid - 1]; in megasas_complete_r1_command()
3477 if (r1_cmd->cmd_completed) { in megasas_complete_r1_command()
3478 rctx_g35 = &r1_cmd->io_request->RaidContext.raid_context_g35; in megasas_complete_r1_command()
3482 data_length = r1_cmd->io_request->DataLength; in megasas_complete_r1_command()
3483 sense = r1_cmd->sense; in megasas_complete_r1_command()
3486 megasas_return_cmd_fusion(instance, r1_cmd); in megasas_complete_r1_command()
4871 struct megasas_cmd_fusion *cmd_fusion, *r1_cmd; in megasas_reset_fusion() local
4956 r1_cmd = fusion->cmd_list[i + instance->max_fw_cmds]; in megasas_reset_fusion()
4957 megasas_return_cmd_fusion(instance, r1_cmd); in megasas_reset_fusion()