Lines Matching refs:targdata
616 struct sim710_target *targdata = hostdata->target + cmd->target; in handle_sdtr() local
631 memcpy(targdata->dsa_msgout, async_message, sizeof(async_message)); in handle_sdtr()
632 targdata->dsa[DSA_MSGOUT] = sizeof(async_message); in handle_sdtr()
684 struct sim710_target *targdata = hostdata->target + cmd->target; in handle_idd() local
691 cmd->result = targdata->dsa_status[0]; in handle_idd()
693 targdata->cur_cmd = NULL; in handle_idd()
698 targdata->resume_offset = Ent_resume_msgin2a; in handle_idd()
703 targdata->resume_offset = Ent_resume_msgin3a; in handle_idd()
708 targdata->resume_offset = Ent_resume_msgin1a; in handle_idd()
729 struct sim710_target *targdata = hostdata->target + cmd->target; in handle_phase_mismatch() local
776 targdata->data_in_jump = hostdata->script[Ent_patch_input_data/4+1] = in handle_phase_mismatch()
778 olen = targdata->dsa[DSA_DATAIN + sg_id * 2]; in handle_phase_mismatch()
779 oaddr = targdata->dsa[DSA_DATAIN + sg_id * 2 + 1]; in handle_phase_mismatch()
793 targdata->dsa[DSA_DATAIN + sg_id * 2] = nlen; in handle_phase_mismatch()
794 targdata->dsa[DSA_DATAIN + sg_id * 2 + 1] = naddr; in handle_phase_mismatch()
805 targdata->data_out_jump = hostdata->script[Ent_patch_output_data/4+1] = in handle_phase_mismatch()
807 olen = targdata->dsa[DSA_DATAOUT + sg_id * 2]; in handle_phase_mismatch()
808 oaddr = targdata->dsa[DSA_DATAOUT + sg_id * 2 + 1]; in handle_phase_mismatch()
819 targdata->dsa[DSA_DATAOUT + sg_id * 2] = nlen; in handle_phase_mismatch()
820 targdata->dsa[DSA_DATAOUT + sg_id * 2 + 1] = naddr; in handle_phase_mismatch()
850 struct sim710_target *targdata = hostdata->target + cmd->target; in handle_script_int() local
858 cmd->result = targdata->dsa_status[0]; in handle_script_int()
860 targdata->cur_cmd = NULL; in handle_script_int()
875 targdata->resume_offset = Ent_resume_msgin1a; in handle_script_int()
880 targdata->resume_offset = Ent_resume_msgin2a; in handle_script_int()
885 targdata->resume_offset = Ent_resume_msgin3a; in handle_script_int()
889 hostdata->script[Ent_patch_output_data/4+1] = targdata->data_out_jump; in handle_script_int()
890 hostdata->script[Ent_patch_input_data/4+1] = targdata->data_in_jump; in handle_script_int()
891 NCR_write32(DSA_REG, virt_to_bus(targdata->dsa)); in handle_script_int()
892 resume_offset = targdata->resume_offset; in handle_script_int()
928 struct sim710_target *targdata = hostdata->target + cmd->target; in run_command() local
963 memcpy(targdata->dsa_cdb, cmd->cmnd, MAX_CMND); in run_command()
965 targdata->dsa_msgout[0] = in run_command()
970 targdata->dsa[DSA_MSGOUT] = 1; in run_command()
976 memcpy(targdata->dsa_msgout+1, async_message, sizeof(async_message)); in run_command()
977 targdata->dsa[DSA_MSGOUT] = sizeof(async_message) + 1; in run_command()
981 targdata->dsa[DSA_MSGOUT] = 1; in run_command()
983 targdata->dsa_msgin[0] = 0xff; in run_command()
984 targdata->dsa_status[0] = 0xff; in run_command()
986 targdata->dsa[DSA_SELECT] = (1 << cmd->target) << 16; in run_command()
987 targdata->dsa[DSA_MSGOUT+1] = virt_to_bus(targdata->dsa_msgout); in run_command()
988 targdata->dsa[DSA_CMND] = cmd->cmd_len; in run_command()
989 targdata->dsa[DSA_CMND+1] = virt_to_bus(targdata->dsa_cdb); in run_command()
990 targdata->dsa[DSA_STATUS] = 1; in run_command()
991 targdata->dsa[DSA_STATUS+1] = virt_to_bus(targdata->dsa_status); in run_command()
992 targdata->dsa[DSA_MSGIN] = 1; in run_command()
993 targdata->dsa[DSA_MSGIN+1] = virt_to_bus(targdata->dsa_msgin); in run_command()
996 dip = targdata->dsa + DSA_DATAIN + sg_start; in run_command()
997 dop = targdata->dsa + DSA_DATAOUT + sg_start; in run_command()
1017 targdata->data_out_jump = hostdata->script[Ent_patch_output_data/4+1] = in run_command()
1019 targdata->data_in_jump = hostdata->script[Ent_patch_input_data/4+1] = in run_command()
1022 for (i = 0, dsa = virt_to_bus(targdata->dsa); i < 4; i++) { in run_command()
1030 hostdata->running = targdata->cur_cmd = cmd; in run_command()