Lines Matching refs:iov
108 struct iovec iov; in ptrace_read_regs() local
113 iov.iov_base = regs; in ptrace_read_regs()
114 iov.iov_len = n * sizeof(unsigned long); in ptrace_read_regs()
116 ret = ptrace(PTRACE_GETREGSET, child, type, &iov); in ptrace_read_regs()
128 struct iovec iov; in ptrace_write_regs() local
133 iov.iov_base = regs; in ptrace_write_regs()
134 iov.iov_len = n * sizeof(unsigned long); in ptrace_write_regs()
136 ret = ptrace(PTRACE_SETREGSET, child, type, &iov); in ptrace_write_regs()
146 struct iovec iov; in show_tar_registers() local
155 iov.iov_base = (u64 *) reg; in show_tar_registers()
156 iov.iov_len = sizeof(unsigned long); in show_tar_registers()
158 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TAR, &iov); in show_tar_registers()
166 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_PPR, &iov); in show_tar_registers()
174 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_DSCR, &iov); in show_tar_registers()
192 struct iovec iov; in write_tar_registers() local
202 iov.iov_base = (u64 *) reg; in write_tar_registers()
203 iov.iov_len = sizeof(unsigned long); in write_tar_registers()
206 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_TAR, &iov); in write_tar_registers()
213 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_PPR, &iov); in write_tar_registers()
220 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_DSCR, &iov); in write_tar_registers()
235 struct iovec iov; in show_tm_checkpointed_state() local
245 iov.iov_base = (u64 *) reg; in show_tm_checkpointed_state()
246 iov.iov_len = sizeof(unsigned long); in show_tm_checkpointed_state()
248 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_CTAR, &iov); in show_tm_checkpointed_state()
256 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_CPPR, &iov); in show_tm_checkpointed_state()
264 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_CDSCR, &iov); in show_tm_checkpointed_state()
283 struct iovec iov; in write_ckpt_tar_registers() local
293 iov.iov_base = (u64 *) reg; in write_ckpt_tar_registers()
294 iov.iov_len = sizeof(unsigned long); in write_ckpt_tar_registers()
297 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_TM_CTAR, &iov); in write_ckpt_tar_registers()
304 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_TM_CPPR, &iov); in write_ckpt_tar_registers()
311 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_TM_CDSCR, &iov); in write_ckpt_tar_registers()
370 struct iovec iov; in show_ckpt_fpr() local
374 iov.iov_base = regs; in show_ckpt_fpr()
375 iov.iov_len = sizeof(struct fpr_regs); in show_ckpt_fpr()
377 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_CFPR, &iov); in show_ckpt_fpr()
394 struct iovec iov; in write_ckpt_fpr() local
398 iov.iov_base = regs; in write_ckpt_fpr()
399 iov.iov_len = sizeof(struct fpr_regs); in write_ckpt_fpr()
401 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_CFPR, &iov); in write_ckpt_fpr()
410 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_TM_CFPR, &iov); in write_ckpt_fpr()
539 struct iovec iov; in show_ckpt_gpr() local
548 iov.iov_base = (u64 *) regs; in show_ckpt_gpr()
549 iov.iov_len = sizeof(struct pt_regs); in show_ckpt_gpr()
551 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_CGPR, &iov); in show_ckpt_gpr()
568 struct iovec iov; in write_ckpt_gpr() local
576 iov.iov_base = (u64 *) regs; in write_ckpt_gpr()
577 iov.iov_len = sizeof(struct pt_regs); in write_ckpt_gpr()
579 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_CGPR, &iov); in write_ckpt_gpr()
588 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_TM_CGPR, &iov); in write_ckpt_gpr()
612 struct iovec iov; in show_vmx_ckpt() local
615 iov.iov_base = (u64 *) regs; in show_vmx_ckpt()
616 iov.iov_len = sizeof(regs); in show_vmx_ckpt()
617 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_CVMX, &iov); in show_vmx_ckpt()
642 struct iovec iov; in write_vmx_ckpt() local
646 iov.iov_base = (u64 *) regs; in write_vmx_ckpt()
647 iov.iov_len = sizeof(regs); in write_vmx_ckpt()
648 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_TM_CVMX, &iov); in write_vmx_ckpt()
672 struct iovec iov; in show_vsx_ckpt() local
675 iov.iov_base = (u64 *) regs; in show_vsx_ckpt()
676 iov.iov_len = sizeof(regs); in show_vsx_ckpt()
677 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_CVSX, &iov); in show_vsx_ckpt()
701 struct iovec iov; in write_vsx_ckpt() local
705 iov.iov_base = (u64 *) regs; in write_vsx_ckpt()
706 iov.iov_len = sizeof(regs); in write_vsx_ckpt()
707 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_TM_CVSX, &iov); in write_vsx_ckpt()
719 struct iovec iov; in show_tm_spr() local
728 iov.iov_base = (u64 *) regs; in show_tm_spr()
729 iov.iov_len = sizeof(struct tm_spr_regs); in show_tm_spr()
731 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_SPR, &iov); in show_tm_spr()