/arch/x86/kernel/ |
D | pci-calgary_64.c | 523 unsigned long target = ((unsigned long)bar) | offset; in calgary_reg() local 524 return (void __iomem*)target; in calgary_reg() 548 void __iomem *target; in calgary_tce_cache_blast() local 551 target = calgary_reg(bbar, phb_offset(tbl->it_busno) | PHB_AER_OFFSET); in calgary_tce_cache_blast() 552 aer = readl(target); in calgary_tce_cache_blast() 553 writel(0, target); in calgary_tce_cache_blast() 556 target = calgary_reg(bbar, phb_offset(tbl->it_busno) | PHB_PLSSR_OFFSET); in calgary_tce_cache_blast() 557 val = readl(target); in calgary_tce_cache_blast() 560 target = calgary_reg(bbar, split_queue_offset(tbl->it_busno)); in calgary_tce_cache_blast() 562 val = readq(target); in calgary_tce_cache_blast() [all …]
|
/arch/sparc/kernel/ |
D | ptrace_64.c | 123 static int get_from_target(struct task_struct *target, unsigned long uaddr, in get_from_target() argument 126 if (target == current) { in get_from_target() 130 int len2 = access_process_vm(target, uaddr, kbuf, len, 0); in get_from_target() 137 static int set_to_target(struct task_struct *target, unsigned long uaddr, in set_to_target() argument 140 if (target == current) { in set_to_target() 144 int len2 = access_process_vm(target, uaddr, kbuf, len, 1); in set_to_target() 151 static int regwindow64_get(struct task_struct *target, in regwindow64_get() argument 161 if (get_from_target(target, rw_addr, &win32, sizeof(win32))) in regwindow64_get() 169 if (get_from_target(target, rw_addr, wbuf, sizeof(*wbuf))) in regwindow64_get() 176 static int regwindow64_set(struct task_struct *target, in regwindow64_set() argument [all …]
|
D | ptrace_32.c | 48 static int regwindow32_get(struct task_struct *target, in regwindow32_get() argument 55 if (target == current) { in regwindow32_get() 59 if (access_process_vm(target, reg_window, uregs, size, in regwindow32_get() 66 static int regwindow32_set(struct task_struct *target, in regwindow32_set() argument 73 if (target == current) { in regwindow32_set() 77 if (access_process_vm(target, reg_window, uregs, size, in regwindow32_set() 84 static int genregs32_get(struct task_struct *target, in genregs32_get() argument 89 const struct pt_regs *regs = target->thread.kregs; in genregs32_get() 93 if (target == current) in genregs32_get() 103 if (regwindow32_get(target, regs, uregs)) in genregs32_get() [all …]
|
D | vio.c | 174 u64 target; in vio_fill_channel_info() local 176 target = mdesc_arc_target(hp, a); in vio_fill_channel_info() 178 irq = mdesc_get_property(hp, target, "tx-ino", NULL); in vio_fill_channel_info() 182 irq = mdesc_get_property(hp, target, "rx-ino", NULL); in vio_fill_channel_info() 188 chan_id = mdesc_get_property(hp, target, "id", NULL); in vio_fill_channel_info() 231 u64 target; in vio_create_one() local 233 target = mdesc_arc_target(hp, a); in vio_create_one() 234 cfg_handle = mdesc_get_property(hp, target, in vio_create_one() 380 u64 target; in vio_remove() local 382 target = mdesc_arc_target(hp, a); in vio_remove() [all …]
|
/arch/tile/lib/ |
D | delay.c | 32 cycles_t target = get_cycles(); in __ndelay() local 33 target += ns2cycles(nsecs); in __ndelay() 34 while (get_cycles() < target) in __ndelay() 41 cycles_t target = get_cycles() + cycles; in __delay() local 42 while (get_cycles() < target) in __delay()
|
/arch/x86/kernel/fpu/ |
D | regset.c | 13 int regset_fpregs_active(struct task_struct *target, const struct user_regset *regset) in regset_fpregs_active() argument 15 struct fpu *target_fpu = &target->thread.fpu; in regset_fpregs_active() 20 int regset_xregset_fpregs_active(struct task_struct *target, const struct user_regset *regset) in regset_xregset_fpregs_active() argument 22 struct fpu *target_fpu = &target->thread.fpu; in regset_xregset_fpregs_active() 27 int xfpregs_get(struct task_struct *target, const struct user_regset *regset, in xfpregs_get() argument 31 struct fpu *fpu = &target->thread.fpu; in xfpregs_get() 43 int xfpregs_set(struct task_struct *target, const struct user_regset *regset, in xfpregs_set() argument 47 struct fpu *fpu = &target->thread.fpu; in xfpregs_set() 74 int xstateregs_get(struct task_struct *target, const struct user_regset *regset, in xstateregs_get() argument 78 struct fpu *fpu = &target->thread.fpu; in xstateregs_get() [all …]
|
/arch/s390/numa/ |
D | toptree.c | 113 static int toptree_insert(struct toptree *cand, struct toptree *target) in toptree_insert() argument 115 if (!cand || !target) in toptree_insert() 117 if (target->level != (cand->level + 1)) in toptree_insert() 119 list_add_tail(&cand->sibling, &target->children); in toptree_insert() 120 cand->parent = target; in toptree_insert() 121 toptree_update_mask(target); in toptree_insert() 132 static void toptree_move_children(struct toptree *cand, struct toptree *target) in toptree_move_children() argument 137 toptree_move(child, target); in toptree_move_children() 189 void toptree_move(struct toptree *cand, struct toptree *target) in toptree_move() argument 193 if (cand->level + 1 == target->level) { in toptree_move() [all …]
|
/arch/parisc/math-emu/ |
D | decode_exc.c | 107 int target, exception_index = 1; in decode_fpu() local 223 target = current_ir & fivebits; in decode_fpu() 236 Sgl_decrement(Fpu_sgl(target)); in decode_fpu() 239 sgl_denormalize(&Fpu_sgl(target),&inexact,Rounding_mode()); in decode_fpu() 248 Dbl_decrement(Fpu_dblp1(target),Fpu_dblp2(target)); in decode_fpu() 251 dbl_denormalize(&Fpu_dblp1(target),&Fpu_dblp2(target), in decode_fpu() 301 target = current_ir & fivebits; in decode_fpu() 304 Sgl_setoverflow(Fpu_sgl(target)); in decode_fpu() 307 Dbl_setoverflow(Fpu_dblp1(target),Fpu_dblp2(target)); in decode_fpu()
|
/arch/s390/kernel/ |
D | ptrace.c | 876 static int s390_regs_get(struct task_struct *target, in s390_regs_get() argument 881 if (target == current) in s390_regs_get() 882 save_access_regs(target->thread.acrs); in s390_regs_get() 887 *k++ = __peek_user(target, pos); in s390_regs_get() 894 if (__put_user(__peek_user(target, pos), u++)) in s390_regs_get() 903 static int s390_regs_set(struct task_struct *target, in s390_regs_set() argument 910 if (target == current) in s390_regs_set() 911 save_access_regs(target->thread.acrs); in s390_regs_set() 916 rc = __poke_user(target, pos, *k++); in s390_regs_set() 927 rc = __poke_user(target, pos, word); in s390_regs_set() [all …]
|
/arch/powerpc/kernel/ |
D | ptrace.c | 264 static int gpr_get(struct task_struct *target, const struct user_regset *regset, in gpr_get() argument 270 if (target->thread.regs == NULL) in gpr_get() 273 if (!FULL_REGS(target->thread.regs)) { in gpr_get() 276 target->thread.regs->gpr[i] = NV_REG_POISON; in gpr_get() 280 target->thread.regs, in gpr_get() 283 unsigned long msr = get_user_msr(target); in gpr_get() 295 &target->thread.regs->orig_gpr3, in gpr_get() 305 static int gpr_set(struct task_struct *target, const struct user_regset *regset, in gpr_set() argument 312 if (target->thread.regs == NULL) in gpr_set() 315 CHECK_FULL_REGS(target->thread.regs); in gpr_set() [all …]
|
/arch/sh/kernel/ |
D | ptrace_32.c | 138 static int genregs_get(struct task_struct *target, in genregs_get() argument 143 const struct pt_regs *regs = task_pt_regs(target); in genregs_get() 162 static int genregs_set(struct task_struct *target, in genregs_set() argument 167 struct pt_regs *regs = task_pt_regs(target); in genregs_set() 186 int fpregs_get(struct task_struct *target, in fpregs_get() argument 193 ret = init_fpu(target); in fpregs_get() 199 &target->thread.xstate->hardfpu, 0, -1); in fpregs_get() 202 &target->thread.xstate->softfpu, 0, -1); in fpregs_get() 205 static int fpregs_set(struct task_struct *target, in fpregs_set() argument 212 ret = init_fpu(target); in fpregs_set() [all …]
|
D | ptrace_64.c | 148 static int genregs_get(struct task_struct *target, in genregs_get() argument 153 const struct pt_regs *regs = task_pt_regs(target); in genregs_get() 181 static int genregs_set(struct task_struct *target, in genregs_set() argument 186 struct pt_regs *regs = task_pt_regs(target); in genregs_set() 216 int fpregs_get(struct task_struct *target, in fpregs_get() argument 223 ret = init_fpu(target); in fpregs_get() 228 &target->thread.xstate->hardfpu, 0, -1); in fpregs_get() 231 static int fpregs_set(struct task_struct *target, in fpregs_set() argument 238 ret = init_fpu(target); in fpregs_set() 242 set_stopped_child_used_math(target); in fpregs_set() [all …]
|
/arch/mn10300/kernel/ |
D | ptrace.c | 81 static int genregs_get(struct task_struct *target, in genregs_get() argument 86 const struct pt_regs *regs = task_pt_regs(target); in genregs_get() 108 static int genregs_set(struct task_struct *target, in genregs_set() argument 113 struct pt_regs *regs = task_pt_regs(target); in genregs_set() 157 static int fpuregs_get(struct task_struct *target, in fpuregs_get() argument 162 const struct fpu_state_struct *fpregs = &target->thread.fpu_state; in fpuregs_get() 165 unlazy_fpu(target); in fpuregs_get() 179 static int fpuregs_set(struct task_struct *target, in fpuregs_set() argument 184 struct fpu_state_struct fpu_state = target->thread.fpu_state; in fpuregs_set() 192 fpu_kill_state(target); in fpuregs_set() [all …]
|
/arch/arm64/kernel/ |
D | ptrace.c | 374 static int hw_break_get(struct task_struct *target, in hw_break_get() argument 405 ret = ptrace_hbp_get_addr(note_type, target, idx, &addr); in hw_break_get() 414 ret = ptrace_hbp_get_ctrl(note_type, target, idx, &ctrl); in hw_break_get() 435 static int hw_break_set(struct task_struct *target, in hw_break_set() argument 460 ret = ptrace_hbp_set_addr(note_type, target, idx, addr); in hw_break_set() 471 ret = ptrace_hbp_set_ctrl(note_type, target, idx, ctrl); in hw_break_set() 489 static int gpr_get(struct task_struct *target, in gpr_get() argument 494 struct user_pt_regs *uregs = &task_pt_regs(target)->user_regs; in gpr_get() 498 static int gpr_set(struct task_struct *target, const struct user_regset *regset, in gpr_set() argument 503 struct user_pt_regs newregs = task_pt_regs(target)->user_regs; in gpr_set() [all …]
|
D | alternative.c | 70 unsigned long target; in get_alt_insn() local 72 target = (unsigned long)altinsnptr + offset; in get_alt_insn() 79 if (branch_insn_requires_update(alt, target)) { in get_alt_insn() 80 offset = target - (unsigned long)insnptr; in get_alt_insn()
|
/arch/mips/kernel/ |
D | jump_label.c | 49 BUG_ON((e->target & ~J_RANGE_MASK) != ((e->code + 4) & ~J_RANGE_MASK)); in arch_jump_label_transform() 52 BUG_ON((e->target & J_ALIGN_MASK) != J_ISA_BIT); in arch_jump_label_transform() 56 insn.j_format.target = e->target >> J_RANGE_SHIFT; in arch_jump_label_transform()
|
D | ptrace.c | 51 static void init_fp_ctx(struct task_struct *target) in init_fp_ctx() argument 54 if (tsk_used_math(target)) in init_fp_ctx() 58 memset(&target->thread.fpu.fpr, ~0, sizeof(target->thread.fpu.fpr)); in init_fp_ctx() 67 set_stopped_child_used_math(target); in init_fp_ctx() 289 static int gpr32_get(struct task_struct *target, in gpr32_get() argument 294 struct pt_regs *regs = task_pt_regs(target); in gpr32_get() 317 static int gpr32_set(struct task_struct *target, in gpr32_set() argument 322 struct pt_regs *regs = task_pt_regs(target); in gpr32_set() 368 static int gpr64_get(struct task_struct *target, in gpr64_get() argument 373 struct pt_regs *regs = task_pt_regs(target); in gpr64_get() [all …]
|
/arch/metag/kernel/ |
D | ptrace.c | 147 static int metag_gp_regs_get(struct task_struct *target, in metag_gp_regs_get() argument 152 const struct pt_regs *regs = task_pt_regs(target); in metag_gp_regs_get() 156 static int metag_gp_regs_set(struct task_struct *target, in metag_gp_regs_set() argument 161 struct pt_regs *regs = task_pt_regs(target); in metag_gp_regs_set() 193 static int metag_cb_regs_get(struct task_struct *target, in metag_cb_regs_get() argument 198 const struct pt_regs *regs = task_pt_regs(target); in metag_cb_regs_get() 202 static int metag_cb_regs_set(struct task_struct *target, in metag_cb_regs_set() argument 207 struct pt_regs *regs = task_pt_regs(target); in metag_cb_regs_set() 284 static int metag_rp_state_get(struct task_struct *target, in metag_rp_state_get() argument 289 const struct pt_regs *regs = task_pt_regs(target); in metag_rp_state_get() [all …]
|
/arch/powerpc/include/asm/ |
D | code-patching.h | 26 unsigned long target, int flags); 28 unsigned long target, int flags); 29 int patch_branch(unsigned int *addr, unsigned long target, int flags); 32 int patch_branch_site(s32 *site, unsigned long target, int flags);
|
/arch/frv/kernel/ |
D | ptrace.c | 40 static int genregs_get(struct task_struct *target, in genregs_get() argument 45 const struct user_int_regs *iregs = &target->thread.user->i; in genregs_get() 60 static int genregs_set(struct task_struct *target, in genregs_set() argument 65 struct user_int_regs *iregs = &target->thread.user->i; in genregs_set() 105 static int fpmregs_get(struct task_struct *target, in fpmregs_get() argument 110 const struct user_fpmedia_regs *fpregs = &target->thread.user->f; in fpmregs_get() 125 static int fpmregs_set(struct task_struct *target, in fpmregs_set() argument 130 struct user_fpmedia_regs *fpregs = &target->thread.user->f; in fpmregs_set() 145 static int fpmregs_active(struct task_struct *target, in fpmregs_active() argument 148 return tsk_used_math(target) ? regset->n : 0; in fpmregs_active()
|
/arch/s390/include/asm/ |
D | ftrace.h | 75 unsigned long target; in ftrace_generate_call_insn() local 78 target = is_module_addr((void *) ip) ? ftrace_plt : FTRACE_ADDR; in ftrace_generate_call_insn() 80 insn->disp = (target - ip) / 2; in ftrace_generate_call_insn()
|
/arch/x86/kernel/cpu/ |
D | perf_event_intel_cstate.c | 476 int i, id, target; in cstate_cpu_exit() local 481 target = -1; in cstate_cpu_exit() 487 target = i; in cstate_cpu_exit() 491 if (cpumask_test_and_clear_cpu(cpu, &cstate_core_cpu_mask) && target >= 0) in cstate_cpu_exit() 492 cpumask_set_cpu(target, &cstate_core_cpu_mask); in cstate_cpu_exit() 494 if (target >= 0) in cstate_cpu_exit() 495 perf_pmu_migrate_context(&cstate_core_pmu, cpu, target); in cstate_cpu_exit() 501 target = -1; in cstate_cpu_exit() 507 target = i; in cstate_cpu_exit() 511 if (cpumask_test_and_clear_cpu(cpu, &cstate_pkg_cpu_mask) && target >= 0) in cstate_cpu_exit() [all …]
|
/arch/powerpc/lib/ |
D | code-patching.c | 43 int patch_branch(unsigned int *addr, unsigned long target, int flags) in patch_branch() argument 45 return patch_instruction(addr, create_branch(addr, target, flags)); in patch_branch() 48 int patch_branch_site(s32 *site, unsigned long target, int flags) in patch_branch_site() argument 53 return patch_instruction(addr, create_branch(addr, target, flags)); in patch_branch_site() 65 unsigned long target, int flags) in create_branch() argument 70 offset = target; in create_branch() 85 unsigned long target, int flags) in create_cond_branch() argument 90 offset = target; in create_cond_branch() 179 unsigned long target; in translate_branch() local 181 target = branch_target(src); in translate_branch() [all …]
|
/arch/powerpc/platforms/86xx/ |
D | mpc86xx_smp.c | 63 unsigned long target, flags; in smp_86xx_kick_cpu() local 78 target = (unsigned long) __secondary_start_mpc86xx; in smp_86xx_kick_cpu() 79 patch_branch(vector, target, BRANCH_SET_LINK); in smp_86xx_kick_cpu()
|
/arch/avr32/kernel/ |
D | setup.c | 179 unsigned long target; in find_free_region() local 181 target = ALIGN(mem->start, align); in find_free_region() 183 if ((target + size) <= res->start) in find_free_region() 185 if (target <= res->end) in find_free_region() 186 target = ALIGN(res->end + 1, align); in find_free_region() 189 if ((target + size) > (mem->end + 1)) in find_free_region() 192 return target; in find_free_region() 200 resource_size_t target; in alloc_reserved_region() local 204 target = find_free_region(mem, size, align); in alloc_reserved_region() 205 if (target <= mem->end) { in alloc_reserved_region() [all …]
|