Home
last modified time | relevance | path

Searched refs:target (Results 1 – 25 of 241) sorted by relevance

12345678910

/arch/powerpc/kernel/
Dptrace.c337 static int gpr_get(struct task_struct *target, const struct user_regset *regset, in gpr_get() argument
343 if (target->thread.regs == NULL) in gpr_get()
346 if (!FULL_REGS(target->thread.regs)) { in gpr_get()
349 target->thread.regs->gpr[i] = NV_REG_POISON; in gpr_get()
353 target->thread.regs, in gpr_get()
356 unsigned long msr = get_user_msr(target); in gpr_get()
368 &target->thread.regs->orig_gpr3, in gpr_get()
378 static int gpr_set(struct task_struct *target, const struct user_regset *regset, in gpr_set() argument
385 if (target->thread.regs == NULL) in gpr_set()
388 CHECK_FULL_REGS(target->thread.regs); in gpr_set()
[all …]
/arch/x86/kernel/
Dpci-calgary_64.c508 unsigned long target = ((unsigned long)bar) | offset; in calgary_reg() local
509 return (void __iomem*)target; in calgary_reg()
533 void __iomem *target; in calgary_tce_cache_blast() local
536 target = calgary_reg(bbar, phb_offset(tbl->it_busno) | PHB_AER_OFFSET); in calgary_tce_cache_blast()
537 aer = readl(target); in calgary_tce_cache_blast()
538 writel(0, target); in calgary_tce_cache_blast()
541 target = calgary_reg(bbar, phb_offset(tbl->it_busno) | PHB_PLSSR_OFFSET); in calgary_tce_cache_blast()
542 val = readl(target); in calgary_tce_cache_blast()
545 target = calgary_reg(bbar, split_queue_offset(tbl->it_busno)); in calgary_tce_cache_blast()
547 val = readq(target); in calgary_tce_cache_blast()
[all …]
/arch/sparc/kernel/
Dptrace_64.c162 static int get_from_target(struct task_struct *target, unsigned long uaddr, in get_from_target() argument
165 if (target == current) { in get_from_target()
169 int len2 = access_process_vm(target, uaddr, kbuf, len, in get_from_target()
177 static int set_to_target(struct task_struct *target, unsigned long uaddr, in set_to_target() argument
180 if (target == current) { in set_to_target()
184 int len2 = access_process_vm(target, uaddr, kbuf, len, in set_to_target()
192 static int regwindow64_get(struct task_struct *target, in regwindow64_get() argument
202 if (get_from_target(target, rw_addr, &win32, sizeof(win32))) in regwindow64_get()
210 if (get_from_target(target, rw_addr, wbuf, sizeof(*wbuf))) in regwindow64_get()
217 static int regwindow64_set(struct task_struct *target, in regwindow64_set() argument
[all …]
Dptrace_32.c49 static int regwindow32_get(struct task_struct *target, in regwindow32_get() argument
56 if (target == current) { in regwindow32_get()
60 if (access_process_vm(target, reg_window, uregs, size, in regwindow32_get()
67 static int regwindow32_set(struct task_struct *target, in regwindow32_set() argument
74 if (target == current) { in regwindow32_set()
78 if (access_process_vm(target, reg_window, uregs, size, in regwindow32_set()
85 static int genregs32_get(struct task_struct *target, in genregs32_get() argument
90 const struct pt_regs *regs = target->thread.kregs; in genregs32_get()
94 if (target == current) in genregs32_get()
104 if (regwindow32_get(target, regs, uregs)) in genregs32_get()
[all …]
/arch/s390/kernel/
Dptrace.c924 static int s390_regs_get(struct task_struct *target, in s390_regs_get() argument
929 if (target == current) in s390_regs_get()
930 save_access_regs(target->thread.acrs); in s390_regs_get()
935 *k++ = __peek_user(target, pos); in s390_regs_get()
942 if (__put_user(__peek_user(target, pos), u++)) in s390_regs_get()
951 static int s390_regs_set(struct task_struct *target, in s390_regs_set() argument
958 if (target == current) in s390_regs_set()
959 save_access_regs(target->thread.acrs); in s390_regs_set()
964 rc = __poke_user(target, pos, *k++); in s390_regs_set()
975 rc = __poke_user(target, pos, word); in s390_regs_set()
[all …]
/arch/mips/kernel/
Dptrace.c212 static int gpr32_get(struct task_struct *target, in gpr32_get() argument
217 struct pt_regs *regs = task_pt_regs(target); in gpr32_get()
225 static int gpr32_set(struct task_struct *target, in gpr32_set() argument
230 struct pt_regs *regs = task_pt_regs(target); in gpr32_set()
270 mips_syscall_update_nr(target, regs); in gpr32_set()
279 static int gpr64_get(struct task_struct *target, in gpr64_get() argument
284 struct pt_regs *regs = task_pt_regs(target); in gpr64_get()
292 static int gpr64_set(struct task_struct *target, in gpr64_set() argument
297 struct pt_regs *regs = task_pt_regs(target); in gpr64_set()
333 mips_syscall_update_nr(target, regs); in gpr64_set()
[all …]
Djump_label.c48 BUG_ON((e->target & J_ALIGN_MASK) != J_ISA_BIT); in arch_jump_label_transform()
52 offset = e->target - ((unsigned long)insn_p + 4); in arch_jump_label_transform()
63 insn.j_format.target = offset; in arch_jump_label_transform()
69 WARN_ON((e->target & ~J_RANGE_MASK) != in arch_jump_label_transform()
73 insn.j_format.target = e->target >> J_RANGE_SHIFT; in arch_jump_label_transform()
/arch/arm64/kernel/
Dptrace.c476 static int hw_break_get(struct task_struct *target, in hw_break_get() argument
507 ret = ptrace_hbp_get_addr(note_type, target, idx, &addr); in hw_break_get()
516 ret = ptrace_hbp_get_ctrl(note_type, target, idx, &ctrl); in hw_break_get()
537 static int hw_break_set(struct task_struct *target, in hw_break_set() argument
562 ret = ptrace_hbp_set_addr(note_type, target, idx, addr); in hw_break_set()
573 ret = ptrace_hbp_set_ctrl(note_type, target, idx, ctrl); in hw_break_set()
591 static int gpr_get(struct task_struct *target, in gpr_get() argument
596 struct user_pt_regs *uregs = &task_pt_regs(target)->user_regs; in gpr_get()
600 static int gpr_set(struct task_struct *target, const struct user_regset *regset, in gpr_set() argument
605 struct user_pt_regs newregs = task_pt_regs(target)->user_regs; in gpr_set()
[all …]
/arch/x86/include/asm/
Djump_label.h58 .macro STATIC_JUMP_IF_TRUE target, key, def
63 .long \target - .Lstatic_jump_after_\@
70 .long .Lstatic_jump_\@ - ., \target - .
75 .macro STATIC_JUMP_IF_FALSE target, key, def
82 .long \target - .Lstatic_jump_after_\@
87 .long .Lstatic_jump_\@ - ., \target - .
Dmcsafe_test.h53 .macro MCSAFE_TEST_SRC reg count target
56 ja \target
59 .macro MCSAFE_TEST_DST reg count target
62 ja \target
68 .macro MCSAFE_TEST_SRC reg count target
71 .macro MCSAFE_TEST_DST reg count target
/arch/s390/numa/
Dtoptree.c122 static int toptree_insert(struct toptree *cand, struct toptree *target) in toptree_insert() argument
124 if (!cand || !target) in toptree_insert()
126 if (target->level != (cand->level + 1)) in toptree_insert()
128 list_add_tail(&cand->sibling, &target->children); in toptree_insert()
129 cand->parent = target; in toptree_insert()
130 toptree_update_mask(target); in toptree_insert()
141 static void toptree_move_children(struct toptree *cand, struct toptree *target) in toptree_move_children() argument
146 toptree_move(child, target); in toptree_move_children()
198 void toptree_move(struct toptree *cand, struct toptree *target) in toptree_move() argument
202 if (cand->level + 1 == target->level) { in toptree_move()
[all …]
/arch/parisc/math-emu/
Ddecode_exc.c94 int target, exception_index = 1; in decode_fpu() local
210 target = current_ir & fivebits; in decode_fpu()
223 Sgl_decrement(Fpu_sgl(target)); in decode_fpu()
226 sgl_denormalize(&Fpu_sgl(target),&inexact,Rounding_mode()); in decode_fpu()
235 Dbl_decrement(Fpu_dblp1(target),Fpu_dblp2(target)); in decode_fpu()
238 dbl_denormalize(&Fpu_dblp1(target),&Fpu_dblp2(target), in decode_fpu()
288 target = current_ir & fivebits; in decode_fpu()
291 Sgl_setoverflow(Fpu_sgl(target)); in decode_fpu()
294 Dbl_setoverflow(Fpu_dblp1(target),Fpu_dblp2(target)); in decode_fpu()
/arch/x86/kernel/fpu/
Dregset.c16 int regset_fpregs_active(struct task_struct *target, const struct user_regset *regset) in regset_fpregs_active() argument
21 int regset_xregset_fpregs_active(struct task_struct *target, const struct user_regset *regset) in regset_xregset_fpregs_active() argument
29 int xfpregs_get(struct task_struct *target, const struct user_regset *regset, in xfpregs_get() argument
33 struct fpu *fpu = &target->thread.fpu; in xfpregs_get()
45 int xfpregs_set(struct task_struct *target, const struct user_regset *regset, in xfpregs_set() argument
49 struct fpu *fpu = &target->thread.fpu; in xfpregs_set()
76 int xstateregs_get(struct task_struct *target, const struct user_regset *regset, in xstateregs_get() argument
80 struct fpu *fpu = &target->thread.fpu; in xstateregs_get()
113 int xstateregs_set(struct task_struct *target, const struct user_regset *regset, in xstateregs_set() argument
117 struct fpu *fpu = &target->thread.fpu; in xstateregs_set()
[all …]
/arch/sh/kernel/
Dptrace_32.c136 static int genregs_get(struct task_struct *target, in genregs_get() argument
141 const struct pt_regs *regs = task_pt_regs(target); in genregs_get()
160 static int genregs_set(struct task_struct *target, in genregs_set() argument
165 struct pt_regs *regs = task_pt_regs(target); in genregs_set()
184 int fpregs_get(struct task_struct *target, in fpregs_get() argument
191 ret = init_fpu(target); in fpregs_get()
197 &target->thread.xstate->hardfpu, 0, -1); in fpregs_get()
200 &target->thread.xstate->softfpu, 0, -1); in fpregs_get()
203 static int fpregs_set(struct task_struct *target, in fpregs_set() argument
210 ret = init_fpu(target); in fpregs_set()
[all …]
/arch/riscv/kernel/
Dptrace.c31 static int riscv_gpr_get(struct task_struct *target, in riscv_gpr_get() argument
38 regs = task_pt_regs(target); in riscv_gpr_get()
42 static int riscv_gpr_set(struct task_struct *target, in riscv_gpr_set() argument
50 regs = task_pt_regs(target); in riscv_gpr_set()
56 static int riscv_fpr_get(struct task_struct *target, in riscv_fpr_get() argument
62 struct __riscv_d_ext_state *fstate = &target->thread.fstate; in riscv_fpr_get()
75 static int riscv_fpr_set(struct task_struct *target, in riscv_fpr_set() argument
81 struct __riscv_d_ext_state *fstate = &target->thread.fstate; in riscv_fpr_set()
/arch/powerpc/sysdev/xive/
Dcommon.c270 u32 target; in xmon_xive_get_irq_config() local
274 rc = xive_ops->get_irq_config(hw_irq, &target, &prio, &lirq); in xmon_xive_get_irq_config()
281 hw_irq, target, prio, lirq); in xmon_xive_get_irq_config()
600 int target, rc; in xive_irq_startup() local
618 target = xive_pick_irq_target(d, irq_data_get_affinity_mask(d)); in xive_irq_startup()
619 if (target == XIVE_INVALID_TARGET) { in xive_irq_startup()
621 target = xive_pick_irq_target(d, cpu_online_mask); in xive_irq_startup()
622 if (target == XIVE_INVALID_TARGET) in xive_irq_startup()
628 if (WARN_ON(target == XIVE_INVALID_TARGET || in xive_irq_startup()
629 target >= nr_cpu_ids)) in xive_irq_startup()
[all …]
Dspapr.c193 unsigned long target, in plpar_int_set_source_config() argument
201 flags, lisn, target, prio, sw_irq); in plpar_int_set_source_config()
206 target, prio, sw_irq); in plpar_int_set_source_config()
211 lisn, target, prio, rc); in plpar_int_set_source_config()
220 unsigned long *target, in plpar_int_get_source_config() argument
231 target, prio, sw_irq); in plpar_int_get_source_config()
240 *target = retbuf[0]; in plpar_int_get_source_config()
251 unsigned long target, in plpar_int_get_queue_info() argument
260 rc = plpar_hcall(H_INT_GET_QUEUE_INFO, retbuf, flags, target, in plpar_int_get_queue_info()
266 target, priority, rc); in plpar_int_get_queue_info()
[all …]
/arch/x86/events/amd/
Dpower.c225 int target; in power_cpu_exit() local
235 target = cpumask_any_but(topology_sibling_cpumask(cpu), cpu); in power_cpu_exit()
236 if (target < nr_cpumask_bits) { in power_cpu_exit()
237 cpumask_set_cpu(target, &cpu_mask); in power_cpu_exit()
238 perf_pmu_migrate_context(&pmu_class, cpu, target); in power_cpu_exit()
245 int target; in power_cpu_init() local
256 target = cpumask_any_but(topology_sibling_cpumask(cpu), cpu); in power_cpu_init()
257 if (target >= nr_cpumask_bits) in power_cpu_init()
/arch/nds32/kernel/
Dptrace.c14 static int gpr_get(struct task_struct *target, in gpr_get() argument
19 struct user_pt_regs *uregs = &task_pt_regs(target)->user_regs; in gpr_get()
23 static int gpr_set(struct task_struct *target, const struct user_regset *regset, in gpr_set() argument
28 struct user_pt_regs newregs = task_pt_regs(target)->user_regs; in gpr_set()
34 task_pt_regs(target)->user_regs = newregs; in gpr_set()
/arch/csky/kernel/
Dptrace.c72 static int gpr_get(struct task_struct *target, in gpr_get() argument
79 regs = task_pt_regs(target); in gpr_get()
82 regs->tls = task_thread_info(target)->tp_value; in gpr_get()
87 static int gpr_set(struct task_struct *target, in gpr_set() argument
100 regs.sr = (regs.sr & BIT(0)) | (task_pt_regs(target)->sr & ~BIT(0)); in gpr_set()
102 regs.dcsr = task_pt_regs(target)->dcsr; in gpr_set()
104 task_thread_info(target)->tp_value = regs.tls; in gpr_set()
106 *task_pt_regs(target) = regs; in gpr_set()
111 static int fpr_get(struct task_struct *target, in fpr_get() argument
116 struct user_fp *regs = (struct user_fp *)&target->thread.user_fp; in fpr_get()
[all …]
/arch/powerpc/perf/
D8xx-pmu.c99 unsigned long target = patch_site_addr(&patch__itlbmiss_perf); in mpc8xx_pmu_add() local
101 patch_branch_site(&patch__itlbmiss_exit_1, target, 0); in mpc8xx_pmu_add()
103 patch_branch_site(&patch__itlbmiss_exit_2, target, 0); in mpc8xx_pmu_add()
110 unsigned long target = patch_site_addr(&patch__dtlbmiss_perf); in mpc8xx_pmu_add() local
112 patch_branch_site(&patch__dtlbmiss_exit_1, target, 0); in mpc8xx_pmu_add()
113 patch_branch_site(&patch__dtlbmiss_exit_2, target, 0); in mpc8xx_pmu_add()
114 patch_branch_site(&patch__dtlbmiss_exit_3, target, 0); in mpc8xx_pmu_add()
/arch/arm/boot/dts/
Dam33xx-l4.dtsi33 target-module@0 { /* 0x44d00000, ap 4 28.0 */
43 target-module@80000 { /* 0x44d80000, ap 6 10.0 */
89 target-module@0 { /* 0x44e00000, ap 8 58.0 */
114 target-module@3000 { /* 0x44e03000, ap 10 0a.0 */
122 target-module@5000 { /* 0x44e05000, ap 12 30.0 */
130 gpio0_target: target-module@7000 { /* 0x44e07000, ap 14 20.0 */
164 target-module@9000 { /* 0x44e09000, ap 16 04.0 */
196 target-module@b000 { /* 0x44e0b000, ap 18 48.0 */
229 target-module@d000 { /* 0x44e0d000, ap 20 38.0 */
265 target-module@10000 { /* 0x44e10000, ap 22 0c.0 */
[all …]
Ddra7-l4.dtsi47 target-module@2000 { /* 0x4a002000, ap 3 08.0 */
136 target-module@5000 { /* 0x4a005000, ap 5 10.0 */
162 target-module@8000 { /* 0x4a008000, ap 7 0e.0 */
187 target-module@56000 { /* 0x4a056000, ap 9 02.0 */
227 target-module@5e000 { /* 0x4a05e000, ap 11 1a.0 */
235 target-module@80000 { /* 0x4a080000, ap 13 20.0 */
303 target-module@90000 { /* 0x4a090000, ap 59 42.0 */
387 target-module@a0000 { /* 0x4a0a0000, ap 15 40.0 */
395 target-module@d9000 { /* 0x4a0d9000, ap 17 72.0 */
415 target-module@dd000 { /* 0x4a0dd000, ap 19 18.0 */
[all …]
/arch/mips/include/asm/
Dfpu.h206 static inline bool init_fp_ctx(struct task_struct *target) in init_fp_ctx() argument
209 if (tsk_used_math(target)) in init_fp_ctx()
213 memset(&target->thread.fpu.fpr, ~0, sizeof(target->thread.fpu.fpr)); in init_fp_ctx()
222 set_stopped_child_used_math(target); in init_fp_ctx()
299 static inline bool init_fp_ctx(struct task_struct *target) in init_fp_ctx() argument
/arch/x86/kernel/cpu/
Dintel_pconfig.c27 int pconfig_target_supported(enum pconfig_target target) in pconfig_target_supported() argument
35 if (WARN_ON_ONCE(target >= 64)) in pconfig_target_supported()
37 return targets_supported & (1ULL << target); in pconfig_target_supported()

12345678910