/linux-4.1.27/arch/score/kernel/ |
H A D | ptrace.c | 129 read_tsk_long(struct task_struct *child, read_tsk_long() argument 134 copied = access_process_vm(child, addr, res, sizeof(*res), 0); read_tsk_long() 140 read_tsk_short(struct task_struct *child, read_tsk_short() argument 145 copied = access_process_vm(child, addr, res, sizeof(*res), 0); read_tsk_short() 151 write_tsk_short(struct task_struct *child, write_tsk_short() argument 156 copied = access_process_vm(child, addr, &val, sizeof(val), 1); write_tsk_short() 162 write_tsk_long(struct task_struct *child, write_tsk_long() argument 167 copied = access_process_vm(child, addr, &val, sizeof(val), 1); write_tsk_long() 172 void user_enable_single_step(struct task_struct *child) user_enable_single_step() argument 179 struct pt_regs *regs = task_pt_regs(child); user_enable_single_step() 180 child->thread.single_step = 1; user_enable_single_step() 181 child->thread.ss_nextcnt = 1; user_enable_single_step() 184 read_tsk_long(child, epc, &epc_insn); user_enable_single_step() 191 child->thread.ss_nextcnt = 2; user_enable_single_step() 198 child->thread.ss_nextcnt = 2; user_enable_single_step() 211 child->thread.ss_nextcnt = 2; user_enable_single_step() 220 child->thread.ss_nextcnt = 2; user_enable_single_step() 228 if (child->thread.ss_nextcnt == 1) { user_enable_single_step() 229 read_tsk_long(child, epc, &epc_insn); user_enable_single_step() 232 write_tsk_short(child, epc, SINGLESTEP16_INSN); user_enable_single_step() 235 write_tsk_long(child, epc, SINGLESTEP32_INSN); user_enable_single_step() 240 child->thread.insn1_type = 0; user_enable_single_step() 241 child->thread.addr1 = epc; user_enable_single_step() 243 child->thread.insn1 = (short)epc_insn; user_enable_single_step() 245 child->thread.insn1_type = 1; user_enable_single_step() 246 child->thread.addr1 = epc; user_enable_single_step() 247 child->thread.insn1 = epc_insn; user_enable_single_step() 250 /* branch! have two target child->thread.ss_nextcnt=2 */ user_enable_single_step() 251 read_tsk_long(child, epc, &epc_insn); user_enable_single_step() 252 read_tsk_long(child, far_epc, &far_epc_insn); user_enable_single_step() 254 write_tsk_short(child, epc, SINGLESTEP16_INSN); user_enable_single_step() 257 write_tsk_long(child, epc, SINGLESTEP32_INSN); user_enable_single_step() 262 child->thread.insn1_type = 0; user_enable_single_step() 263 child->thread.addr1 = epc; user_enable_single_step() 265 child->thread.insn1 = (short)epc_insn; user_enable_single_step() 267 child->thread.insn1_type = 1; user_enable_single_step() 268 child->thread.addr1 = epc; user_enable_single_step() 269 child->thread.insn1 = epc_insn; user_enable_single_step() 273 write_tsk_short(child, far_epc, SINGLESTEP16_INSN); user_enable_single_step() 276 write_tsk_long(child, far_epc, SINGLESTEP32_INSN); user_enable_single_step() 281 child->thread.insn2_type = 0; user_enable_single_step() 282 child->thread.addr2 = far_epc; user_enable_single_step() 284 child->thread.insn2 = (short)far_epc_insn; user_enable_single_step() 286 child->thread.insn2_type = 1; user_enable_single_step() 287 child->thread.addr2 = far_epc; user_enable_single_step() 288 child->thread.insn2 = far_epc_insn; user_enable_single_step() 293 void user_disable_single_step(struct task_struct *child) user_disable_single_step() argument 295 if (child->thread.insn1_type == 0) user_disable_single_step() 296 write_tsk_short(child, child->thread.addr1, user_disable_single_step() 297 child->thread.insn1); user_disable_single_step() 299 if (child->thread.insn1_type == 1) user_disable_single_step() 300 write_tsk_long(child, child->thread.addr1, user_disable_single_step() 301 child->thread.insn1); user_disable_single_step() 303 if (child->thread.ss_nextcnt == 2) { /* branch */ user_disable_single_step() 304 if (child->thread.insn1_type == 0) user_disable_single_step() 305 write_tsk_short(child, child->thread.addr1, user_disable_single_step() 306 child->thread.insn1); user_disable_single_step() 307 if (child->thread.insn1_type == 1) user_disable_single_step() 308 write_tsk_long(child, child->thread.addr1, user_disable_single_step() 309 child->thread.insn1); user_disable_single_step() 310 if (child->thread.insn2_type == 0) user_disable_single_step() 311 write_tsk_short(child, child->thread.addr2, user_disable_single_step() 312 child->thread.insn2); user_disable_single_step() 313 if (child->thread.insn2_type == 1) user_disable_single_step() 314 write_tsk_long(child, child->thread.addr2, user_disable_single_step() 315 child->thread.insn2); user_disable_single_step() 318 child->thread.single_step = 0; user_disable_single_step() 319 child->thread.ss_nextcnt = 0; user_disable_single_step() 322 void ptrace_disable(struct task_struct *child) ptrace_disable() argument 324 user_disable_single_step(child); ptrace_disable() 328 arch_ptrace(struct task_struct *child, long request, arch_ptrace() argument 336 ret = copy_regset_to_user(child, &user_score_native_view, arch_ptrace() 343 ret = copy_regset_from_user(child, &user_score_native_view, arch_ptrace() 350 ret = ptrace_request(child, request, addr, data); arch_ptrace()
|
/linux-4.1.27/arch/avr32/kernel/ |
H A D | ocd.c | 19 * @child: task to be debugged 21 * If @child is non-NULL, ocd_enable() first checks if debugging has 22 * already been enabled for @child, and if it has, does nothing. 24 * If @child is NULL (e.g. when debugging the kernel), or debugging 28 void ocd_enable(struct task_struct *child) ocd_enable() argument 32 if (child) ocd_enable() 33 pr_debug("ocd_enable: child=%s [%u]\n", ocd_enable() 34 child->comm, child->pid); ocd_enable() 36 pr_debug("ocd_enable (no child)\n"); ocd_enable() 38 if (!child || !test_and_set_tsk_thread_flag(child, TIF_DEBUG)) { ocd_enable() 50 * @child: task that was being debugged, but isn't anymore 52 * If @child is non-NULL, ocd_disable() checks if debugging is enabled 53 * for @child, and if it isn't, does nothing. 55 * If @child is NULL (e.g. when debugging the kernel), or debugging is 59 void ocd_disable(struct task_struct *child) ocd_disable() argument 63 if (!child) ocd_disable() 64 pr_debug("ocd_disable (no child)\n"); ocd_disable() 65 else if (test_tsk_thread_flag(child, TIF_DEBUG)) ocd_disable() 66 pr_debug("ocd_disable: child=%s [%u]\n", ocd_disable() 67 child->comm, child->pid); ocd_disable() 69 if (!child || test_and_clear_tsk_thread_flag(child, TIF_DEBUG)) { ocd_disable()
|
H A D | ptrace.c | 52 void user_disable_single_step(struct task_struct *child) user_disable_single_step() argument 62 void ptrace_disable(struct task_struct *child) ptrace_disable() argument 64 clear_tsk_thread_flag(child, TIF_SINGLE_STEP); ptrace_disable() 65 clear_tsk_thread_flag(child, TIF_BREAKPOINT); ptrace_disable() 66 ocd_disable(child); ptrace_disable() 149 long arch_ptrace(struct task_struct *child, long request, arch_ptrace() argument 156 /* Read the word at location addr in the child process */ arch_ptrace() 159 ret = generic_ptrace_peekdata(child, addr, data); arch_ptrace() 163 ret = ptrace_read_user(child, addr, datap); arch_ptrace() 169 ret = generic_ptrace_pokedata(child, addr, data); arch_ptrace() 173 ret = ptrace_write_user(child, addr, data); arch_ptrace() 177 ret = ptrace_getregs(child, datap); arch_ptrace() 181 ret = ptrace_setregs(child, datap); arch_ptrace() 185 ret = ptrace_request(child, request, addr, data); arch_ptrace()
|
/linux-4.1.27/arch/um/kernel/ |
H A D | ptrace.c | 12 void user_enable_single_step(struct task_struct *child) user_enable_single_step() argument 14 child->ptrace |= PT_DTRACE; user_enable_single_step() 15 child->thread.singlestep_syscall = 0; user_enable_single_step() 18 SUBARCH_SET_SINGLESTEPPING(child, 1); user_enable_single_step() 22 void user_disable_single_step(struct task_struct *child) user_disable_single_step() argument 24 child->ptrace &= ~PT_DTRACE; user_disable_single_step() 25 child->thread.singlestep_syscall = 0; user_disable_single_step() 28 SUBARCH_SET_SINGLESTEPPING(child, 0); user_disable_single_step() 35 void ptrace_disable(struct task_struct *child) ptrace_disable() argument 37 user_disable_single_step(child); ptrace_disable() 40 extern int peek_user(struct task_struct * child, long addr, long data); 41 extern int poke_user(struct task_struct * child, long addr, long data); 43 long arch_ptrace(struct task_struct *child, long request, arch_ptrace() argument 53 ret = peek_user(child, addr, data); arch_ptrace() 58 ret = poke_user(child, addr, data); arch_ptrace() 67 case PTRACE_GETREGS: { /* Get all gp regs from the child. */ arch_ptrace() 73 __put_user(getreg(child, i), p); arch_ptrace() 81 case PTRACE_SETREGS: { /* Set all gp regs in the child. */ arch_ptrace() 89 putreg(child, i, tmp); arch_ptrace() 97 ret = ptrace_get_thread_area(child, addr, vp); arch_ptrace() 101 ret = ptrace_set_thread_area(child, addr, vp); arch_ptrace() 105 ret = ptrace_request(child, request, addr, data); arch_ptrace() 107 ret = subarch_ptrace(child, request, addr, data); arch_ptrace()
|
/linux-4.1.27/kernel/ |
H A D | ptrace.c | 37 void __ptrace_link(struct task_struct *child, struct task_struct *new_parent) __ptrace_link() argument 39 BUG_ON(!list_empty(&child->ptrace_entry)); __ptrace_link() 40 list_add(&child->ptrace_entry, &new_parent->ptraced); __ptrace_link() 41 child->parent = new_parent; __ptrace_link() 46 * @child: ptracee to be unlinked 48 * Remove @child from the ptrace list, move it back to the original parent, 72 void __ptrace_unlink(struct task_struct *child) __ptrace_unlink() argument 74 BUG_ON(!child->ptrace); __ptrace_unlink() 76 child->ptrace = 0; __ptrace_unlink() 77 child->parent = child->real_parent; __ptrace_unlink() 78 list_del_init(&child->ptrace_entry); __ptrace_unlink() 80 spin_lock(&child->sighand->siglock); __ptrace_unlink() 86 task_clear_jobctl_pending(child, JOBCTL_TRAP_MASK); __ptrace_unlink() 87 task_clear_jobctl_trapping(child); __ptrace_unlink() 91 * @child isn't dead. __ptrace_unlink() 93 if (!(child->flags & PF_EXITING) && __ptrace_unlink() 94 (child->signal->flags & SIGNAL_STOP_STOPPED || __ptrace_unlink() 95 child->signal->group_stop_count)) { __ptrace_unlink() 96 child->jobctl |= JOBCTL_STOP_PENDING; __ptrace_unlink() 105 if (!(child->jobctl & JOBCTL_STOP_SIGMASK)) __ptrace_unlink() 106 child->jobctl |= SIGSTOP; __ptrace_unlink() 111 * @child in the butt. Note that @resume should be used iff @child __ptrace_unlink() 115 if (child->jobctl & JOBCTL_STOP_PENDING || task_is_traced(child)) __ptrace_unlink() 116 ptrace_signal_wake_up(child, true); __ptrace_unlink() 118 spin_unlock(&child->sighand->siglock); __ptrace_unlink() 157 * @child: ptracee to check for 158 * @ignore_state: don't check whether @child is currently %TASK_TRACED 160 * Check whether @child is being ptraced by %current and ready for further 161 * ptrace operations. If @ignore_state is %false, @child also should be in 162 * %TASK_TRACED state and on return the child is guaranteed to be traced 163 * and not executing. If @ignore_state is %true, @child can be in any 167 * Grabs and releases tasklist_lock and @child->sighand->siglock. 170 * 0 on success, -ESRCH if %child is not ready. 172 static int ptrace_check_attach(struct task_struct *child, bool ignore_state) ptrace_check_attach() argument 178 * possible race where someone else was tracing our child and ptrace_check_attach() 180 * we are sure that this is our traced child and that can only ptrace_check_attach() 184 if (child->ptrace && child->parent == current) { ptrace_check_attach() 185 WARN_ON(child->state == __TASK_TRACED); ptrace_check_attach() 187 * child->sighand can't be NULL, release_task() ptrace_check_attach() 190 if (ignore_state || ptrace_freeze_traced(child)) ptrace_check_attach() 196 if (!wait_task_inactive(child, __TASK_TRACED)) { ptrace_check_attach() 202 WARN_ON(child->state == __TASK_TRACED); ptrace_check_attach() 236 * because setting up the necessary parent/child relationship __ptrace_may_access() 363 * will be cleared if the child completes the transition or any ptrace_attach() 450 * If it's our own child, there is no notification to do. But if our normal 451 * children self-reap, then this child was prevented by ptrace and we must 480 static int ptrace_detach(struct task_struct *child, unsigned int data) ptrace_detach() argument 486 ptrace_disable(child); ptrace_detach() 487 clear_tsk_thread_flag(child, TIF_SYSCALL_TRACE); ptrace_detach() 494 WARN_ON(!child->ptrace || child->exit_state); ptrace_detach() 499 child->exit_code = data; ptrace_detach() 500 __ptrace_detach(current, child); ptrace_detach() 503 proc_ptrace_connector(child, PTRACE_DETACH); ptrace_detach() 575 static int ptrace_setoptions(struct task_struct *child, unsigned long data) ptrace_setoptions() argument 583 flags = child->ptrace; ptrace_setoptions() 586 child->ptrace = flags; ptrace_setoptions() 591 static int ptrace_getsiginfo(struct task_struct *child, siginfo_t *info) ptrace_getsiginfo() argument 596 if (lock_task_sighand(child, &flags)) { ptrace_getsiginfo() 598 if (likely(child->last_siginfo != NULL)) { ptrace_getsiginfo() 599 *info = *child->last_siginfo; ptrace_getsiginfo() 602 unlock_task_sighand(child, &flags); ptrace_getsiginfo() 607 static int ptrace_setsiginfo(struct task_struct *child, const siginfo_t *info) ptrace_setsiginfo() argument 612 if (lock_task_sighand(child, &flags)) { ptrace_setsiginfo() 614 if (likely(child->last_siginfo != NULL)) { ptrace_setsiginfo() 615 *child->last_siginfo = *info; ptrace_setsiginfo() 618 unlock_task_sighand(child, &flags); ptrace_setsiginfo() 623 static int ptrace_peek_siginfo(struct task_struct *child, ptrace_peek_siginfo() argument 644 pending = &child->signal->shared_pending; ptrace_peek_siginfo() 646 pending = &child->pending; ptrace_peek_siginfo() 652 spin_lock_irq(&child->sighand->siglock); ptrace_peek_siginfo() 659 spin_unlock_irq(&child->sighand->siglock); ptrace_peek_siginfo() 719 static int ptrace_resume(struct task_struct *child, long request, ptrace_resume() argument 728 set_tsk_thread_flag(child, TIF_SYSCALL_TRACE); ptrace_resume() 730 clear_tsk_thread_flag(child, TIF_SYSCALL_TRACE); ptrace_resume() 734 set_tsk_thread_flag(child, TIF_SYSCALL_EMU); ptrace_resume() 736 clear_tsk_thread_flag(child, TIF_SYSCALL_EMU); ptrace_resume() 742 user_enable_block_step(child); ptrace_resume() 746 user_enable_single_step(child); ptrace_resume() 748 user_disable_single_step(child); ptrace_resume() 766 spin_lock_irq(&child->sighand->siglock); ptrace_resume() 767 child->exit_code = data; ptrace_resume() 768 wake_up_state(child, __TASK_TRACED); ptrace_resume() 770 spin_unlock_irq(&child->sighand->siglock); ptrace_resume() 822 int ptrace_request(struct task_struct *child, long request, ptrace_request() argument 825 bool seized = child->ptrace & PT_SEIZED; ptrace_request() 835 return generic_ptrace_peekdata(child, addr, data); ptrace_request() 838 return generic_ptrace_pokedata(child, addr, data); ptrace_request() 844 ret = ptrace_setoptions(child, data); ptrace_request() 847 ret = put_user(child->ptrace_message, datalp); ptrace_request() 851 ret = ptrace_peek_siginfo(child, addr, data); ptrace_request() 855 ret = ptrace_getsiginfo(child, &siginfo); ptrace_request() 864 ret = ptrace_setsiginfo(child, &siginfo); ptrace_request() 873 if (copy_to_user(datavp, &child->blocked, sizeof(sigset_t))) ptrace_request() 900 spin_lock_irq(&child->sighand->siglock); ptrace_request() 901 child->blocked = new_set; ptrace_request() 902 spin_unlock_irq(&child->sighand->siglock); ptrace_request() 912 * after this request. If @child is already trapped, the ptrace_request() 919 if (unlikely(!seized || !lock_task_sighand(child, &flags))) ptrace_request() 928 if (likely(task_set_jobctl_pending(child, JOBCTL_TRAP_STOP))) ptrace_request() 929 ptrace_signal_wake_up(child, child->jobctl & JOBCTL_LISTENING); ptrace_request() 931 unlock_task_sighand(child, &flags); ptrace_request() 944 if (unlikely(!seized || !lock_task_sighand(child, &flags))) ptrace_request() 947 si = child->last_siginfo; ptrace_request() 949 child->jobctl |= JOBCTL_LISTENING; ptrace_request() 954 if (child->jobctl & JOBCTL_TRAP_NOTIFY) ptrace_request() 955 ptrace_signal_wake_up(child, true); ptrace_request() 958 unlock_task_sighand(child, &flags); ptrace_request() 962 ret = ptrace_detach(child, data); ptrace_request() 967 struct mm_struct *mm = get_task_mm(child); ptrace_request() 1003 return ptrace_resume(child, request, data); ptrace_request() 1006 if (child->exit_state) /* already dead */ ptrace_request() 1008 return ptrace_resume(child, request, SIGKILL); ptrace_request() 1023 ret = ptrace_regset(child, request, addr, &kiov); ptrace_request() 1038 struct task_struct *child; ptrace_get_task_struct() local 1041 child = find_task_by_vpid(pid); ptrace_get_task_struct() 1042 if (child) ptrace_get_task_struct() 1043 get_task_struct(child); ptrace_get_task_struct() 1046 if (!child) ptrace_get_task_struct() 1048 return child; ptrace_get_task_struct() 1052 #define arch_ptrace_attach(child) do { } while (0) 1058 struct task_struct *child; SYSCALL_DEFINE4() local 1068 child = ptrace_get_task_struct(pid); SYSCALL_DEFINE4() 1069 if (IS_ERR(child)) { SYSCALL_DEFINE4() 1070 ret = PTR_ERR(child); SYSCALL_DEFINE4() 1075 ret = ptrace_attach(child, request, addr, data); SYSCALL_DEFINE4() 1081 arch_ptrace_attach(child); SYSCALL_DEFINE4() 1085 ret = ptrace_check_attach(child, request == PTRACE_KILL || SYSCALL_DEFINE4() 1090 ret = arch_ptrace(child, request, addr, data); SYSCALL_DEFINE4() 1092 ptrace_unfreeze_traced(child); SYSCALL_DEFINE4() 1095 put_task_struct(child); SYSCALL_DEFINE4() 1123 int compat_ptrace_request(struct task_struct *child, compat_long_t request, compat_ptrace_request() argument 1134 ret = access_process_vm(child, addr, &word, sizeof(word), 0); compat_ptrace_request() 1143 ret = access_process_vm(child, addr, &data, sizeof(data), 1); compat_ptrace_request() 1148 ret = put_user((compat_ulong_t) child->ptrace_message, datap); compat_ptrace_request() 1152 ret = ptrace_getsiginfo(child, &siginfo); compat_ptrace_request() 1165 ret = ptrace_setsiginfo(child, &siginfo); compat_ptrace_request() 1187 ret = ptrace_regset(child, request, addr, &kiov); compat_ptrace_request() 1195 ret = ptrace_request(child, request, addr, data); compat_ptrace_request() 1204 struct task_struct *child; COMPAT_SYSCALL_DEFINE4() local 1212 child = ptrace_get_task_struct(pid); COMPAT_SYSCALL_DEFINE4() 1213 if (IS_ERR(child)) { COMPAT_SYSCALL_DEFINE4() 1214 ret = PTR_ERR(child); COMPAT_SYSCALL_DEFINE4() 1219 ret = ptrace_attach(child, request, addr, data); COMPAT_SYSCALL_DEFINE4() 1225 arch_ptrace_attach(child); COMPAT_SYSCALL_DEFINE4() 1229 ret = ptrace_check_attach(child, request == PTRACE_KILL || COMPAT_SYSCALL_DEFINE4() 1232 ret = compat_arch_ptrace(child, request, addr, data); COMPAT_SYSCALL_DEFINE4() 1234 ptrace_unfreeze_traced(child); COMPAT_SYSCALL_DEFINE4() 1238 put_task_struct(child); COMPAT_SYSCALL_DEFINE4()
|
H A D | resource.c | 69 if (p->child) next_resource() 70 return p->child; next_resource() 93 for (p = p->child; p && l < *pos; p = r_next(m, p, &l)) __acquires() 220 p = &root->child; __request_resource() 240 p = &old->parent->child; __release_resource() 260 p = r->child; __release_child_resources() 261 r->child = NULL; __release_child_resources() 270 printk(KERN_DEBUG "release child resource %pR\n", tmp); __release_child_resources() 360 for (p = iomem_resource.child; p; p = next_resource(p, sibling_only)) { find_next_iomem_res() 512 for (p = iomem_resource.child; p ; p = p->sibling) { region_is_ram() 561 struct resource *this = root->child; __find_resource() 650 if (old->child) { reallocate_resource() 731 for (res = root->child; res; res = res->sibling) { lookup_resource() 776 new->child = first; __insert_resource() 782 if (parent->child == first) { __insert_resource() 783 parent->child = new; __insert_resource() 785 next = parent->child; __insert_resource() 881 tmp = parent->child; __adjust_resource() 890 for (tmp = res->child; tmp; tmp = tmp->sibling) __adjust_resource() 1113 p = &parent->child; __release_region() 1125 p = &res->child; __release_region() 1185 p = &parent->child; release_mem_region_adjustable() 1202 p = &res->child; release_mem_region_adjustable() 1232 new_res->child = NULL; release_mem_region_adjustable() 1405 res->child = NULL; reserve_setup() 1426 for (p = p->child; p ; p = r_next(NULL, p, &l)) { iomem_map_sanity_check() 1482 for (p = p->child; p ; p = r_next(NULL, p, &l)) { iomem_is_exclusive()
|
/linux-4.1.27/drivers/pwm/ |
H A D | sysfs.c | 27 struct device child; member in struct:pwm_export 31 static struct pwm_export *child_to_pwm_export(struct device *child) child_to_pwm_export() argument 33 return container_of(child, struct pwm_export, child); child_to_pwm_export() 36 static struct pwm_device *child_to_pwm_device(struct device *child) child_to_pwm_device() argument 38 struct pwm_export *export = child_to_pwm_export(child); child_to_pwm_device() 43 static ssize_t pwm_period_show(struct device *child, pwm_period_show() argument 47 const struct pwm_device *pwm = child_to_pwm_device(child); pwm_period_show() 52 static ssize_t pwm_period_store(struct device *child, pwm_period_store() argument 56 struct pwm_device *pwm = child_to_pwm_device(child); pwm_period_store() 69 static ssize_t pwm_duty_cycle_show(struct device *child, pwm_duty_cycle_show() argument 73 const struct pwm_device *pwm = child_to_pwm_device(child); pwm_duty_cycle_show() 78 static ssize_t pwm_duty_cycle_store(struct device *child, pwm_duty_cycle_store() argument 82 struct pwm_device *pwm = child_to_pwm_device(child); pwm_duty_cycle_store() 95 static ssize_t pwm_enable_show(struct device *child, pwm_enable_show() argument 99 const struct pwm_device *pwm = child_to_pwm_device(child); pwm_enable_show() 105 static ssize_t pwm_enable_store(struct device *child, pwm_enable_store() argument 109 struct pwm_device *pwm = child_to_pwm_device(child); pwm_enable_store() 131 static ssize_t pwm_polarity_show(struct device *child, pwm_polarity_show() argument 135 const struct pwm_device *pwm = child_to_pwm_device(child); pwm_polarity_show() 140 static ssize_t pwm_polarity_store(struct device *child, pwm_polarity_store() argument 144 struct pwm_device *pwm = child_to_pwm_device(child); pwm_polarity_store() 174 static void pwm_export_release(struct device *child) pwm_export_release() argument 176 struct pwm_export *export = child_to_pwm_export(child); pwm_export_release() 197 export->child.release = pwm_export_release; pwm_export_child() 198 export->child.parent = parent; pwm_export_child() 199 export->child.devt = MKDEV(0, 0); pwm_export_child() 200 export->child.groups = pwm_groups; pwm_export_child() 201 dev_set_name(&export->child, "pwm%u", pwm->hwpwm); pwm_export_child() 203 ret = device_register(&export->child); pwm_export_child() 213 static int pwm_unexport_match(struct device *child, void *data) pwm_unexport_match() argument 215 return child_to_pwm_device(child) == data; pwm_unexport_match() 220 struct device *child; pwm_unexport_child() local 225 child = device_find_child(parent, pwm, pwm_unexport_match); pwm_unexport_child() 226 if (!child) pwm_unexport_child() 230 put_device(child); pwm_unexport_child() 231 device_unregister(child); pwm_unexport_child()
|
/linux-4.1.27/arch/m68k/kernel/ |
H A D | ptrace.c | 29 * does not yet catch signals sent when the child dies. 126 static inline void singlestep_disable(struct task_struct *child) singlestep_disable() argument 128 unsigned long tmp = get_reg(child, PT_SR) & ~TRACE_BITS; singlestep_disable() 129 put_reg(child, PT_SR, tmp); singlestep_disable() 130 clear_tsk_thread_flag(child, TIF_DELAYED_TRACE); singlestep_disable() 136 void ptrace_disable(struct task_struct *child) ptrace_disable() argument 138 singlestep_disable(child); ptrace_disable() 141 void user_enable_single_step(struct task_struct *child) user_enable_single_step() argument 143 unsigned long tmp = get_reg(child, PT_SR) & ~TRACE_BITS; user_enable_single_step() 144 put_reg(child, PT_SR, tmp | T1_BIT); user_enable_single_step() 145 set_tsk_thread_flag(child, TIF_DELAYED_TRACE); user_enable_single_step() 149 void user_enable_block_step(struct task_struct *child) user_enable_block_step() argument 151 unsigned long tmp = get_reg(child, PT_SR) & ~TRACE_BITS; user_enable_block_step() 152 put_reg(child, PT_SR, tmp | T0_BIT); user_enable_block_step() 156 void user_disable_single_step(struct task_struct *child) user_disable_single_step() argument 158 singlestep_disable(child); user_disable_single_step() 161 long arch_ptrace(struct task_struct *child, long request, arch_ptrace() argument 176 tmp = get_reg(child, regno); arch_ptrace() 178 tmp = child->thread.fp[regno - 21]; arch_ptrace() 187 tmp = child->mm->start_code; arch_ptrace() 189 tmp = child->mm->start_data; arch_ptrace() 191 tmp = child->mm->end_code; arch_ptrace() 205 data |= get_reg(child, PT_SR) & ~SR_MASK; arch_ptrace() 208 if (put_reg(child, regno, data)) arch_ptrace() 219 child->thread.fp[regno - 21] = data; arch_ptrace() 224 case PTRACE_GETREGS: /* Get all gp regs from the child. */ arch_ptrace() 226 tmp = get_reg(child, i); arch_ptrace() 234 case PTRACE_SETREGS: /* Set all gp regs in the child. */ arch_ptrace() 241 tmp |= get_reg(child, PT_SR) & ~SR_MASK; arch_ptrace() 243 put_reg(child, i, tmp); arch_ptrace() 248 case PTRACE_GETFPREGS: /* Get the child FPU state. */ arch_ptrace() 249 if (copy_to_user(datap, &child->thread.fp, arch_ptrace() 254 case PTRACE_SETFPREGS: /* Set the child FPU state. */ arch_ptrace() 255 if (copy_from_user(&child->thread.fp, datap, arch_ptrace() 261 ret = put_user(task_thread_info(child)->tp_value, datap); arch_ptrace() 265 ret = ptrace_request(child, request, addr, data); arch_ptrace()
|
/linux-4.1.27/arch/alpha/kernel/ |
H A D | ptrace.c | 42 * does not yet catch signals sent when the child dies. 175 ptrace_set_bpt(struct task_struct * child) ptrace_set_bpt() argument 181 pc = get_reg(child, REG_PC); ptrace_set_bpt() 182 res = read_int(child, pc, (int *) &insn); ptrace_set_bpt() 197 task_thread_info(child)->bpt_addr[nsaved++] = pc + 4; ptrace_set_bpt() 199 task_thread_info(child)->bpt_addr[nsaved++] ptrace_set_bpt() 204 task_thread_info(child)->bpt_addr[nsaved++] = get_reg(child, reg_b); ptrace_set_bpt() 207 task_thread_info(child)->bpt_addr[nsaved++] = pc + 4; ptrace_set_bpt() 213 res = read_int(child, task_thread_info(child)->bpt_addr[i], ptrace_set_bpt() 217 task_thread_info(child)->bpt_insn[i] = insn; ptrace_set_bpt() 219 task_thread_info(child)->bpt_addr[i])); ptrace_set_bpt() 220 res = write_int(child, task_thread_info(child)->bpt_addr[i], ptrace_set_bpt() 225 task_thread_info(child)->bpt_nsaved = nsaved; ptrace_set_bpt() 231 * value if child was being single-stepped. 234 ptrace_cancel_bpt(struct task_struct * child) ptrace_cancel_bpt() argument 236 int i, nsaved = task_thread_info(child)->bpt_nsaved; ptrace_cancel_bpt() 238 task_thread_info(child)->bpt_nsaved = 0; ptrace_cancel_bpt() 246 write_int(child, task_thread_info(child)->bpt_addr[i], ptrace_cancel_bpt() 247 task_thread_info(child)->bpt_insn[i]); ptrace_cancel_bpt() 252 void user_enable_single_step(struct task_struct *child) user_enable_single_step() argument 255 task_thread_info(child)->bpt_nsaved = -1; user_enable_single_step() 258 void user_disable_single_step(struct task_struct *child) user_disable_single_step() argument 260 ptrace_cancel_bpt(child); user_disable_single_step() 268 void ptrace_disable(struct task_struct *child) ptrace_disable() argument 270 user_disable_single_step(child); ptrace_disable() 273 long arch_ptrace(struct task_struct *child, long request, arch_ptrace() argument 284 copied = access_process_vm(child, addr, &tmp, sizeof(tmp), 0); arch_ptrace() 296 ret = get_reg(child, addr); arch_ptrace() 303 ret = generic_ptrace_pokedata(child, addr, data); arch_ptrace() 308 ret = put_reg(child, addr, data); arch_ptrace() 311 ret = ptrace_request(child, request, addr, data); arch_ptrace()
|
H A D | gct.c | 43 if (node->child) gct6_find_nodes() 44 status |= gct6_find_nodes(GCT_NODE_PTR(node->child), search); gct6_find_nodes()
|
/linux-4.1.27/arch/x86/crypto/ |
H A D | fpu.c | 24 struct crypto_blkcipher *child; member in struct:crypto_fpu_ctx 31 struct crypto_blkcipher *child = ctx->child; crypto_fpu_setkey() local 34 crypto_blkcipher_clear_flags(child, CRYPTO_TFM_REQ_MASK); crypto_fpu_setkey() 35 crypto_blkcipher_set_flags(child, crypto_tfm_get_flags(parent) & crypto_fpu_setkey() 37 err = crypto_blkcipher_setkey(child, key, keylen); crypto_fpu_setkey() 38 crypto_tfm_set_flags(parent, crypto_blkcipher_get_flags(child) & crypto_fpu_setkey() 49 struct crypto_blkcipher *child = ctx->child; crypto_fpu_encrypt() local 51 .tfm = child, crypto_fpu_encrypt() 68 struct crypto_blkcipher *child = ctx->child; crypto_fpu_decrypt() local 70 .tfm = child, crypto_fpu_decrypt() 92 ctx->child = cipher; crypto_fpu_init_tfm() 99 crypto_free_blkcipher(ctx->child); crypto_fpu_exit_tfm()
|
H A D | ghash-clmulni-intel_glue.c | 178 struct crypto_shash *child = cryptd_ahash_child(cryptd_tfm); ghash_async_init() local 180 desc->tfm = child; ghash_async_init() 235 struct crypto_shash *child = cryptd_ahash_child(cryptd_tfm); ghash_async_digest() local 237 desc->tfm = child; ghash_async_digest() 247 struct crypto_ahash *child = &ctx->cryptd_tfm->base; ghash_async_setkey() local 250 crypto_ahash_clear_flags(child, CRYPTO_TFM_REQ_MASK); ghash_async_setkey() 251 crypto_ahash_set_flags(child, crypto_ahash_get_flags(tfm) ghash_async_setkey() 253 err = crypto_ahash_setkey(child, key, keylen); ghash_async_setkey() 254 crypto_ahash_set_flags(tfm, crypto_ahash_get_flags(child) ghash_async_setkey()
|
/linux-4.1.27/tools/testing/selftests/ptrace/ |
H A D | peeksiginfo.c | 43 static int check_error_paths(pid_t child) check_error_paths() argument 72 ret = sys_ptrace(PTRACE_PEEKSIGINFO, child, &arg, addr_rw); check_error_paths() 82 ret = sys_ptrace(PTRACE_PEEKSIGINFO, child, &arg, check_error_paths() 90 ret = sys_ptrace(PTRACE_PEEKSIGINFO, child, &arg, addr_ro); check_error_paths() 104 int check_direct_path(pid_t child, int shared, int nr) check_direct_path() argument 121 ret = sys_ptrace(PTRACE_PEEKSIGINFO, child, &arg, siginfo); check_direct_path() 156 pid_t child; main() local 162 child = fork(); main() 163 if (child == -1) { main() 166 } else if (child == 0) { main() 180 sys_rt_sigqueueinfo(child, SIGRTMIN, siginfo); main() 184 sys_rt_tgsigqueueinfo(child, child, SIGRTMIN, siginfo); main() 187 if (sys_ptrace(PTRACE_ATTACH, child, NULL, NULL) == -1) main() 190 waitpid(child, NULL, 0); main() 193 if (check_direct_path(child, 0, 1)) main() 196 if (check_direct_path(child, 0, SIGNR)) main() 203 if (check_direct_path(child, 1, 3)) main() 206 if (check_error_paths(child)) main() 212 if (sys_ptrace(PTRACE_KILL, child, NULL, NULL) == -1) main() 215 waitpid(child, NULL, 0); main()
|
/linux-4.1.27/arch/x86/kernel/ |
H A D | step.c | 10 unsigned long convert_ip_to_linear(struct task_struct *child, struct pt_regs *regs) convert_ip_to_linear() argument 33 mutex_lock(&child->mm->context.lock); convert_ip_to_linear() 34 if (unlikely(!child->mm->context.ldt || convert_ip_to_linear() 35 seg >= child->mm->context.ldt->size)) convert_ip_to_linear() 38 desc = &child->mm->context.ldt->entries[seg]; convert_ip_to_linear() 46 mutex_unlock(&child->mm->context.lock); convert_ip_to_linear() 52 static int is_setting_trap_flag(struct task_struct *child, struct pt_regs *regs) is_setting_trap_flag() argument 56 unsigned long addr = convert_ip_to_linear(child, regs); is_setting_trap_flag() 58 copied = access_process_vm(child, addr, opcode, sizeof(opcode), 0); is_setting_trap_flag() 106 static int enable_single_step(struct task_struct *child) enable_single_step() argument 108 struct pt_regs *regs = task_pt_regs(child); enable_single_step() 121 if (unlikely(test_tsk_thread_flag(child, TIF_SINGLESTEP))) enable_single_step() 129 set_tsk_thread_flag(child, TIF_SINGLESTEP); enable_single_step() 145 if (is_setting_trap_flag(child, regs)) { enable_single_step() 146 clear_tsk_thread_flag(child, TIF_FORCED_TF); enable_single_step() 155 return test_tsk_thread_flag(child, TIF_FORCED_TF); enable_single_step() 157 set_tsk_thread_flag(child, TIF_FORCED_TF); enable_single_step() 193 static void enable_step(struct task_struct *child, bool block) enable_step() argument 202 if (enable_single_step(child) && block) enable_step() 203 set_task_blockstep(child, true); enable_step() 204 else if (test_tsk_thread_flag(child, TIF_BLOCKSTEP)) enable_step() 205 set_task_blockstep(child, false); enable_step() 208 void user_enable_single_step(struct task_struct *child) user_enable_single_step() argument 210 enable_step(child, 0); user_enable_single_step() 213 void user_enable_block_step(struct task_struct *child) user_enable_block_step() argument 215 enable_step(child, 1); user_enable_block_step() 218 void user_disable_single_step(struct task_struct *child) user_disable_single_step() argument 223 if (test_tsk_thread_flag(child, TIF_BLOCKSTEP)) user_disable_single_step() 224 set_task_blockstep(child, false); user_disable_single_step() 227 clear_tsk_thread_flag(child, TIF_SINGLESTEP); user_disable_single_step() 230 if (test_and_clear_tsk_thread_flag(child, TIF_FORCED_TF)) user_disable_single_step() 231 task_pt_regs(child)->flags &= ~X86_EFLAGS_TF; user_disable_single_step()
|
H A D | ptrace.c | 145 * does not yet catch signals sent when the child dies. 413 static int putreg(struct task_struct *child, putreg() argument 423 return set_segment_reg(child, offset, value); putreg() 426 return set_flags(child, value); putreg() 430 if (value >= TASK_SIZE_OF(child)) putreg() 437 if (child->thread.fs != value) putreg() 438 return do_arch_prctl(child, ARCH_SET_FS, value); putreg() 444 if (value >= TASK_SIZE_OF(child)) putreg() 446 if (child->thread.gs != value) putreg() 447 return do_arch_prctl(child, ARCH_SET_GS, value); putreg() 452 *pt_regs_access(task_pt_regs(child), offset) = value; putreg() 803 void ptrace_disable(struct task_struct *child) ptrace_disable() argument 805 user_disable_single_step(child); ptrace_disable() 807 clear_tsk_thread_flag(child, TIF_SYSCALL_EMU); ptrace_disable() 815 long arch_ptrace(struct task_struct *child, long request, arch_ptrace() argument 832 tmp = getreg(child, addr); arch_ptrace() 836 tmp = ptrace_get_debugreg(child, addr / sizeof(data)); arch_ptrace() 848 ret = putreg(child, addr, data); arch_ptrace() 852 ret = ptrace_set_debugreg(child, arch_ptrace() 857 case PTRACE_GETREGS: /* Get all gp regs from the child. */ arch_ptrace() 858 return copy_regset_to_user(child, arch_ptrace() 864 case PTRACE_SETREGS: /* Set all gp regs in the child. */ arch_ptrace() 865 return copy_regset_from_user(child, arch_ptrace() 871 case PTRACE_GETFPREGS: /* Get the child FPU state. */ arch_ptrace() 872 return copy_regset_to_user(child, arch_ptrace() 878 case PTRACE_SETFPREGS: /* Set the child FPU state. */ arch_ptrace() 879 return copy_regset_from_user(child, arch_ptrace() 886 case PTRACE_GETFPXREGS: /* Get the child extended FPU state. */ arch_ptrace() 887 return copy_regset_to_user(child, &user_x86_32_view, arch_ptrace() 892 case PTRACE_SETFPXREGS: /* Set the child extended FPU state. */ arch_ptrace() 893 return copy_regset_from_user(child, &user_x86_32_view, arch_ptrace() 903 ret = do_get_thread_area(child, addr, arch_ptrace() 910 ret = do_set_thread_area(child, addr, arch_ptrace() 920 ret = do_arch_prctl(child, data, addr); arch_ptrace() 925 ret = ptrace_request(child, request, addr, data); arch_ptrace() 945 return set_segment_reg(child, \ 950 static int putreg32(struct task_struct *child, unsigned regno, u32 value) putreg32() argument 952 struct pt_regs *regs = task_pt_regs(child); putreg32() 982 if (syscall_get_nr(child, regs) >= 0) putreg32() 983 task_thread_info(child)->status |= TS_COMPAT; putreg32() 987 return set_flags(child, value); putreg32() 992 return ptrace_set_debugreg(child, regno / 4, value); putreg32() 1016 *val = get_segment_reg(child, \ 1020 static int getreg32(struct task_struct *child, unsigned regno, u32 *val) getreg32() argument 1022 struct pt_regs *regs = task_pt_regs(child); getreg32() 1045 *val = get_flags(child); getreg32() 1051 *val = ptrace_get_debugreg(child, regno / 4); getreg32() 1127 static long x32_arch_ptrace(struct task_struct *child, x32_arch_ptrace() argument 1149 tmp = getreg(child, addr); x32_arch_ptrace() 1153 tmp = ptrace_get_debugreg(child, addr / sizeof(data)); x32_arch_ptrace() 1169 ret = putreg(child, addr, data); x32_arch_ptrace() 1173 ret = ptrace_set_debugreg(child, x32_arch_ptrace() 1178 case PTRACE_GETREGS: /* Get all gp regs from the child. */ x32_arch_ptrace() 1179 return copy_regset_to_user(child, x32_arch_ptrace() 1185 case PTRACE_SETREGS: /* Set all gp regs in the child. */ x32_arch_ptrace() 1186 return copy_regset_from_user(child, x32_arch_ptrace() 1192 case PTRACE_GETFPREGS: /* Get the child FPU state. */ x32_arch_ptrace() 1193 return copy_regset_to_user(child, x32_arch_ptrace() 1199 case PTRACE_SETFPREGS: /* Set the child FPU state. */ x32_arch_ptrace() 1200 return copy_regset_from_user(child, x32_arch_ptrace() 1207 return compat_ptrace_request(child, request, addr, data); x32_arch_ptrace() 1214 long compat_arch_ptrace(struct task_struct *child, compat_long_t request, compat_arch_ptrace() argument 1225 return x32_arch_ptrace(child, request, caddr, cdata); compat_arch_ptrace() 1230 ret = getreg32(child, addr, &val); compat_arch_ptrace() 1236 ret = putreg32(child, addr, data); compat_arch_ptrace() 1239 case PTRACE_GETREGS: /* Get all gp regs from the child. */ compat_arch_ptrace() 1240 return copy_regset_to_user(child, &user_x86_32_view, compat_arch_ptrace() 1245 case PTRACE_SETREGS: /* Set all gp regs in the child. */ compat_arch_ptrace() 1246 return copy_regset_from_user(child, &user_x86_32_view, compat_arch_ptrace() 1251 case PTRACE_GETFPREGS: /* Get the child FPU state. */ compat_arch_ptrace() 1252 return copy_regset_to_user(child, &user_x86_32_view, compat_arch_ptrace() 1257 case PTRACE_SETFPREGS: /* Set the child FPU state. */ compat_arch_ptrace() 1259 child, &user_x86_32_view, REGSET_FP, compat_arch_ptrace() 1262 case PTRACE_GETFPXREGS: /* Get the child extended FPU state. */ compat_arch_ptrace() 1263 return copy_regset_to_user(child, &user_x86_32_view, compat_arch_ptrace() 1268 case PTRACE_SETFPXREGS: /* Set the child extended FPU state. */ compat_arch_ptrace() 1269 return copy_regset_from_user(child, &user_x86_32_view, compat_arch_ptrace() 1276 return arch_ptrace(child, request, addr, data); compat_arch_ptrace() 1279 return compat_ptrace_request(child, request, addr, data); compat_arch_ptrace()
|
/linux-4.1.27/fs/ceph/ |
H A D | export.c | 125 struct dentry *child, u64 ino) __get_parent() 138 if (child) { __get_parent() 139 req->r_inode = d_inode(child); __get_parent() 140 ihold(d_inode(child)); __get_parent() 167 child ? ceph_ino(d_inode(child)) : ino, __get_parent() 172 static struct dentry *ceph_get_parent(struct dentry *child) ceph_get_parent() argument 175 if (ceph_snap(d_inode(child)) != CEPH_NOSNAP) ceph_get_parent() 179 child, ceph_vinop(d_inode(child))); ceph_get_parent() 180 return __get_parent(child->d_sb, child, 0); ceph_get_parent() 206 struct dentry *child) ceph_get_name() 212 mdsc = ceph_inode_to_client(d_inode(child))->mdsc; ceph_get_name() 220 req->r_inode = d_inode(child); ceph_get_name() 221 ihold(d_inode(child)); ceph_get_name() 234 child, ceph_vinop(d_inode(child)), name); ceph_get_name() 237 child, ceph_vinop(d_inode(child)), err); ceph_get_name() 124 __get_parent(struct super_block *sb, struct dentry *child, u64 ino) __get_parent() argument 205 ceph_get_name(struct dentry *parent, char *name, struct dentry *child) ceph_get_name() argument
|
/linux-4.1.27/arch/frv/kernel/ |
H A D | ptrace.c | 33 * does not yet catch signals sent when the child dies. 241 void user_enable_single_step(struct task_struct *child) user_enable_single_step() argument 243 child->thread.frame0->__status |= REG__STATUS_STEP; user_enable_single_step() 246 void user_disable_single_step(struct task_struct *child) user_disable_single_step() argument 248 child->thread.frame0->__status &= ~REG__STATUS_STEP; user_disable_single_step() 251 void ptrace_disable(struct task_struct *child) ptrace_disable() argument 253 user_disable_single_step(child); ptrace_disable() 256 long arch_ptrace(struct task_struct *child, long request, arch_ptrace() argument 275 tmp = get_reg(child, regno); arch_ptrace() 279 tmp = child->mm->end_code - child->mm->start_code; arch_ptrace() 283 tmp = child->mm->end_data - child->mm->start_data; arch_ptrace() 287 tmp = child->mm->start_stack - child->mm->start_brk; arch_ptrace() 291 tmp = child->mm->start_code; arch_ptrace() 295 tmp = child->mm->start_stack; arch_ptrace() 315 ret = put_reg(child, regno, data); arch_ptrace() 320 case PTRACE_GETREGS: /* Get all integer regs from the child. */ arch_ptrace() 321 return copy_regset_to_user(child, &user_frv_native_view, arch_ptrace() 323 0, sizeof(child->thread.user->i), arch_ptrace() 326 case PTRACE_SETREGS: /* Set all integer regs in the child. */ arch_ptrace() 327 return copy_regset_from_user(child, &user_frv_native_view, arch_ptrace() 329 0, sizeof(child->thread.user->i), arch_ptrace() 332 case PTRACE_GETFPREGS: /* Get the child FP/Media state. */ arch_ptrace() 333 return copy_regset_to_user(child, &user_frv_native_view, arch_ptrace() 335 0, sizeof(child->thread.user->f), arch_ptrace() 338 case PTRACE_SETFPREGS: /* Set the child FP/Media state. */ arch_ptrace() 339 return copy_regset_from_user(child, &user_frv_native_view, arch_ptrace() 341 0, sizeof(child->thread.user->f), arch_ptrace() 345 ret = ptrace_request(child, request, addr, data); arch_ptrace()
|
/linux-4.1.27/arch/x86/um/ |
H A D | ptrace_32.c | 72 int putreg(struct task_struct *child, int regno, unsigned long value) putreg() argument 108 child->thread.regs.regs.gp[HOST_EFLAGS] |= value; putreg() 111 child->thread.regs.regs.syscall = value; putreg() 116 child->thread.regs.regs.gp[reg_offsets[regno]] = value; putreg() 120 int poke_user(struct task_struct *child, long addr, long data) poke_user() argument 126 return putreg(child, addr, data); poke_user() 133 child->thread.arch.debugregs[addr] = data; poke_user() 139 unsigned long getreg(struct task_struct *child, int regno) getreg() argument 146 return child->thread.regs.regs.syscall; getreg() 169 return mask & child->thread.regs.regs.gp[reg_offsets[regno]]; getreg() 173 int peek_user(struct task_struct *child, long addr, long data) peek_user() argument 182 tmp = getreg(child, addr); peek_user() 188 tmp = child->thread.arch.debugregs[addr]; peek_user() 193 static int get_fpregs(struct user_i387_struct __user *buf, struct task_struct *child) get_fpregs() argument 195 int err, n, cpu = ((struct thread_info *) child->stack)->cpu; get_fpregs() 209 static int set_fpregs(struct user_i387_struct __user *buf, struct task_struct *child) set_fpregs() argument 211 int n, cpu = ((struct thread_info *) child->stack)->cpu; set_fpregs() 222 static int get_fpxregs(struct user_fxsr_struct __user *buf, struct task_struct *child) get_fpxregs() argument 224 int err, n, cpu = ((struct thread_info *) child->stack)->cpu; get_fpxregs() 238 static int set_fpxregs(struct user_fxsr_struct __user *buf, struct task_struct *child) set_fpxregs() argument 240 int n, cpu = ((struct thread_info *) child->stack)->cpu; set_fpxregs() 251 long subarch_ptrace(struct task_struct *child, long request, subarch_ptrace() argument 257 case PTRACE_GETFPREGS: /* Get the child FPU state. */ subarch_ptrace() 258 ret = get_fpregs(datap, child); subarch_ptrace() 260 case PTRACE_SETFPREGS: /* Set the child FPU state. */ subarch_ptrace() 261 ret = set_fpregs(datap, child); subarch_ptrace() 263 case PTRACE_GETFPXREGS: /* Get the child FPU state. */ subarch_ptrace() 264 ret = get_fpxregs(datap, child); subarch_ptrace() 266 case PTRACE_SETFPXREGS: /* Set the child FPU state. */ subarch_ptrace() 267 ret = set_fpxregs(datap, child); subarch_ptrace()
|
H A D | ptrace_64.c | 52 int putreg(struct task_struct *child, int regno, unsigned long value) putreg() argument 59 if (test_tsk_thread_flag(child, TIF_IA32)) putreg() 102 child->thread.regs.regs.gp[HOST_EFLAGS] |= value; putreg() 109 child->thread.regs.regs.gp[reg_offsets[regno >> 3]] = value; putreg() 113 int poke_user(struct task_struct *child, long addr, long data) poke_user() argument 119 return putreg(child, addr, data); poke_user() 126 child->thread.arch.debugregs[addr] = data; poke_user() 132 unsigned long getreg(struct task_struct *child, int regno) getreg() argument 136 if (test_tsk_thread_flag(child, TIF_IA32)) getreg() 173 return mask & child->thread.regs.regs.gp[reg_offsets[regno >> 3]]; getreg() 176 int peek_user(struct task_struct *child, long addr, long data) peek_user() argument 186 tmp = getreg(child, addr); peek_user() 191 tmp = child->thread.arch.debugregs[addr]; peek_user() 221 static int get_fpregs(struct user_i387_struct __user *buf, struct task_struct *child) get_fpregs() argument 223 int err, n, cpu = ((struct thread_info *) child->stack)->cpu; get_fpregs() 238 static int set_fpregs(struct user_i387_struct __user *buf, struct task_struct *child) set_fpregs() argument 240 int n, cpu = ((struct thread_info *) child->stack)->cpu; set_fpregs() 251 long subarch_ptrace(struct task_struct *child, long request, subarch_ptrace() argument 258 case PTRACE_GETFPREGS: /* Get the child FPU state. */ subarch_ptrace() 259 ret = get_fpregs(datap, child); subarch_ptrace() 261 case PTRACE_SETFPREGS: /* Set the child FPU state. */ subarch_ptrace() 262 ret = set_fpregs(datap, child); subarch_ptrace() 266 ret = arch_prctl(child, data, (void __user *) addr); subarch_ptrace()
|
/linux-4.1.27/arch/m32r/kernel/ |
H A D | ptrace.c | 216 check_condition_bit(struct task_struct *child) check_condition_bit() argument 218 return (int)((get_stack_long(child, PT_PSW) >> 8) & 1); check_condition_bit() 223 unsigned long regno2, struct task_struct *child) check_condition_src() 227 reg2 = get_stack_long(child, reg_offset[regno2]); check_condition_src() 231 reg1 = get_stack_long(child, reg_offset[regno1]); check_condition_src() 234 reg1 = get_stack_long(child, reg_offset[regno1]); check_condition_src() 257 struct task_struct *child) compute_next_pc_for_16bit_insn() 279 if (!check_condition_bit(child)) { compute_next_pc_for_16bit_insn() 287 if (check_condition_bit(child)) { compute_next_pc_for_16bit_insn() 320 *next_pc = get_stack_long(child, PT_BPC); compute_next_pc_for_16bit_insn() 325 if (op3 == 0xc && check_condition_bit(child)) { compute_next_pc_for_16bit_insn() 327 *next_pc = get_stack_long(child, compute_next_pc_for_16bit_insn() 333 if (op3 == 0xc && !check_condition_bit(child)) { compute_next_pc_for_16bit_insn() 335 *next_pc = get_stack_long(child, compute_next_pc_for_16bit_insn() 344 *next_pc = get_stack_long(child, compute_next_pc_for_16bit_insn() 360 struct task_struct *child) compute_next_pc_for_32bit_insn() 373 if (!check_condition_bit(child)) { compute_next_pc_for_32bit_insn() 381 if (check_condition_bit(child)) { compute_next_pc_for_32bit_insn() 406 if (check_condition_src(op2, regno1, regno2, child)) { compute_next_pc_for_32bit_insn() 419 unsigned long *next_pc, struct task_struct *child) compute_next_pc() 422 compute_next_pc_for_32bit_insn(insn, pc, next_pc, child); compute_next_pc() 424 compute_next_pc_for_16bit_insn(insn, pc, next_pc, child); compute_next_pc() 428 register_debug_trap(struct task_struct *child, unsigned long next_pc, register_debug_trap() argument 431 struct debug_trap *p = &child->thread.debug_trap; register_debug_trap() 458 unregister_debug_trap(struct task_struct *child, unsigned long addr, unregister_debug_trap() argument 461 struct debug_trap *p = &child->thread.debug_trap; unregister_debug_trap() 490 unregister_all_debug_traps(struct task_struct *child) unregister_all_debug_traps() argument 492 struct debug_trap *p = &child->thread.debug_trap; unregister_all_debug_traps() 496 access_process_vm(child, p->addr[i], &p->insn[i], sizeof(p->insn[i]), 1); unregister_all_debug_traps() 535 embed_debug_trap(struct task_struct *child, unsigned long next_pc) embed_debug_trap() argument 540 if (access_process_vm(child, addr, &next_insn, sizeof(next_insn), 0) embed_debug_trap() 546 if (register_debug_trap(child, next_pc, next_insn, &code)) { embed_debug_trap() 549 if (access_process_vm(child, addr, &code, sizeof(code), 1) embed_debug_trap() 571 init_debug_traps(struct task_struct *child) init_debug_traps() argument 573 struct debug_trap *p = &child->thread.debug_trap; init_debug_traps() 582 void user_enable_single_step(struct task_struct *child) user_enable_single_step() argument 587 clear_tsk_thread_flag(child, TIF_SYSCALL_TRACE); user_enable_single_step() 590 pc = get_stack_long(child, PT_BPC); user_enable_single_step() 592 if (access_process_vm(child, pc&~3, &insn, sizeof(insn), 0) user_enable_single_step() 596 compute_next_pc(insn, pc, &next_pc, child); user_enable_single_step() 600 if (embed_debug_trap(child, next_pc)) user_enable_single_step() 606 void user_disable_single_step(struct task_struct *child) user_disable_single_step() argument 608 unregister_all_debug_traps(child); user_disable_single_step() 617 void ptrace_disable(struct task_struct *child) ptrace_disable() argument 623 arch_ptrace(struct task_struct *child, long request, arch_ptrace() argument 631 * read word at location "addr" in the child process. arch_ptrace() 635 ret = generic_ptrace_peekdata(child, addr, data); arch_ptrace() 642 ret = ptrace_read_user(child, addr, datap); arch_ptrace() 650 ret = generic_ptrace_pokedata(child, addr, data); arch_ptrace() 659 ret = ptrace_write_user(child, addr, data); arch_ptrace() 663 ret = ptrace_getregs(child, datap); arch_ptrace() 667 ret = ptrace_setregs(child, datap); arch_ptrace() 671 ret = ptrace_request(child, request, addr, data); arch_ptrace() 222 check_condition_src(unsigned long op, unsigned long regno1, unsigned long regno2, struct task_struct *child) check_condition_src() argument 255 compute_next_pc_for_16bit_insn(unsigned long insn, unsigned long pc, unsigned long *next_pc, struct task_struct *child) compute_next_pc_for_16bit_insn() argument 358 compute_next_pc_for_32bit_insn(unsigned long insn, unsigned long pc, unsigned long *next_pc, struct task_struct *child) compute_next_pc_for_32bit_insn() argument 418 compute_next_pc(unsigned long insn, unsigned long pc, unsigned long *next_pc, struct task_struct *child) compute_next_pc() argument
|
/linux-4.1.27/arch/xtensa/kernel/ |
H A D | ptrace.c | 33 void user_enable_single_step(struct task_struct *child) user_enable_single_step() argument 35 child->ptrace |= PT_SINGLESTEP; user_enable_single_step() 38 void user_disable_single_step(struct task_struct *child) user_disable_single_step() argument 40 child->ptrace &= ~PT_SINGLESTEP; user_disable_single_step() 47 void ptrace_disable(struct task_struct *child) ptrace_disable() argument 52 int ptrace_getregs(struct task_struct *child, void __user *uregs) ptrace_getregs() argument 54 struct pt_regs *regs = task_pt_regs(child); ptrace_getregs() 78 int ptrace_setregs(struct task_struct *child, void __user *uregs) ptrace_setregs() argument 80 struct pt_regs *regs = task_pt_regs(child); ptrace_setregs() 127 int ptrace_getxregs(struct task_struct *child, void __user *uregs) ptrace_getxregs() argument 129 struct pt_regs *regs = task_pt_regs(child); ptrace_getxregs() 130 struct thread_info *ti = task_thread_info(child); ptrace_getxregs() 151 int ptrace_setxregs(struct task_struct *child, void __user *uregs) ptrace_setxregs() argument 153 struct thread_info *ti = task_thread_info(child); ptrace_setxregs() 154 struct pt_regs *regs = task_pt_regs(child); ptrace_setxregs() 177 int ptrace_peekusr(struct task_struct *child, long regno, long __user *ret) ptrace_peekusr() argument 182 regs = task_pt_regs(child); ptrace_peekusr() 242 int ptrace_pokeusr(struct task_struct *child, long regno, long val) ptrace_pokeusr() argument 245 regs = task_pt_regs(child); ptrace_pokeusr() 270 long arch_ptrace(struct task_struct *child, long request, arch_ptrace() argument 279 ret = generic_ptrace_peekdata(child, addr, data); arch_ptrace() 283 ret = ptrace_peekusr(child, addr, datap); arch_ptrace() 288 ret = generic_ptrace_pokedata(child, addr, data); arch_ptrace() 292 ret = ptrace_pokeusr(child, addr, data); arch_ptrace() 296 ret = ptrace_getregs(child, datap); arch_ptrace() 300 ret = ptrace_setregs(child, datap); arch_ptrace() 304 ret = ptrace_getxregs(child, datap); arch_ptrace() 308 ret = ptrace_setxregs(child, datap); arch_ptrace() 312 ret = ptrace_request(child, request, addr, data); arch_ptrace()
|
/linux-4.1.27/arch/powerpc/kernel/ |
H A D | ptrace.c | 149 * does not yet catch signals sent when the child dies. 1064 void ptrace_disable(struct task_struct *child) ptrace_disable() argument 1067 user_disable_single_step(child); ptrace_disable() 1071 static long set_instruction_bp(struct task_struct *child, set_instruction_bp() argument 1075 int slot1_in_use = ((child->thread.debug.dbcr0 & DBCR0_IAC1) != 0); set_instruction_bp() 1076 int slot2_in_use = ((child->thread.debug.dbcr0 & DBCR0_IAC2) != 0); set_instruction_bp() 1077 int slot3_in_use = ((child->thread.debug.dbcr0 & DBCR0_IAC3) != 0); set_instruction_bp() 1078 int slot4_in_use = ((child->thread.debug.dbcr0 & DBCR0_IAC4) != 0); set_instruction_bp() 1080 if (dbcr_iac_range(child) & DBCR_IAC12MODE) set_instruction_bp() 1082 if (dbcr_iac_range(child) & DBCR_IAC34MODE) set_instruction_bp() 1097 child->thread.debug.iac1 = bp_info->addr; set_instruction_bp() 1098 child->thread.debug.iac2 = bp_info->addr2; set_instruction_bp() 1099 child->thread.debug.dbcr0 |= DBCR0_IAC1; set_instruction_bp() 1102 dbcr_iac_range(child) |= DBCR_IAC12X; set_instruction_bp() 1104 dbcr_iac_range(child) |= DBCR_IAC12I; set_instruction_bp() 1108 child->thread.debug.iac3 = bp_info->addr; set_instruction_bp() 1109 child->thread.debug.iac4 = bp_info->addr2; set_instruction_bp() 1110 child->thread.debug.dbcr0 |= DBCR0_IAC3; set_instruction_bp() 1113 dbcr_iac_range(child) |= DBCR_IAC34X; set_instruction_bp() 1115 dbcr_iac_range(child) |= DBCR_IAC34I; set_instruction_bp() 1130 child->thread.debug.iac1 = bp_info->addr; set_instruction_bp() 1131 child->thread.debug.dbcr0 |= DBCR0_IAC1; set_instruction_bp() 1137 child->thread.debug.iac2 = bp_info->addr; set_instruction_bp() 1138 child->thread.debug.dbcr0 |= DBCR0_IAC2; set_instruction_bp() 1142 child->thread.debug.iac3 = bp_info->addr; set_instruction_bp() 1143 child->thread.debug.dbcr0 |= DBCR0_IAC3; set_instruction_bp() 1146 child->thread.debug.iac4 = bp_info->addr; set_instruction_bp() 1147 child->thread.debug.dbcr0 |= DBCR0_IAC4; set_instruction_bp() 1153 child->thread.debug.dbcr0 |= DBCR0_IDM; set_instruction_bp() 1154 child->thread.regs->msr |= MSR_DE; set_instruction_bp() 1159 static int del_instruction_bp(struct task_struct *child, int slot) del_instruction_bp() argument 1163 if ((child->thread.debug.dbcr0 & DBCR0_IAC1) == 0) del_instruction_bp() 1166 if (dbcr_iac_range(child) & DBCR_IAC12MODE) { del_instruction_bp() 1168 child->thread.debug.iac2 = 0; del_instruction_bp() 1169 dbcr_iac_range(child) &= ~DBCR_IAC12MODE; del_instruction_bp() 1171 child->thread.debug.iac1 = 0; del_instruction_bp() 1172 child->thread.debug.dbcr0 &= ~DBCR0_IAC1; del_instruction_bp() 1175 if ((child->thread.debug.dbcr0 & DBCR0_IAC2) == 0) del_instruction_bp() 1178 if (dbcr_iac_range(child) & DBCR_IAC12MODE) del_instruction_bp() 1181 child->thread.debug.iac2 = 0; del_instruction_bp() 1182 child->thread.debug.dbcr0 &= ~DBCR0_IAC2; del_instruction_bp() 1186 if ((child->thread.debug.dbcr0 & DBCR0_IAC3) == 0) del_instruction_bp() 1189 if (dbcr_iac_range(child) & DBCR_IAC34MODE) { del_instruction_bp() 1191 child->thread.debug.iac4 = 0; del_instruction_bp() 1192 dbcr_iac_range(child) &= ~DBCR_IAC34MODE; del_instruction_bp() 1194 child->thread.debug.iac3 = 0; del_instruction_bp() 1195 child->thread.debug.dbcr0 &= ~DBCR0_IAC3; del_instruction_bp() 1198 if ((child->thread.debug.dbcr0 & DBCR0_IAC4) == 0) del_instruction_bp() 1201 if (dbcr_iac_range(child) & DBCR_IAC34MODE) del_instruction_bp() 1204 child->thread.debug.iac4 = 0; del_instruction_bp() 1205 child->thread.debug.dbcr0 &= ~DBCR0_IAC4; del_instruction_bp() 1214 static int set_dac(struct task_struct *child, struct ppc_hw_breakpoint *bp_info) set_dac() argument 1229 if ((dbcr_dac(child) & (DBCR_DAC1R | DBCR_DAC1W)) == 0) { set_dac() 1232 dbcr_dac(child) |= DBCR_DAC1R; set_dac() 1234 dbcr_dac(child) |= DBCR_DAC1W; set_dac() 1235 child->thread.debug.dac1 = (unsigned long)bp_info->addr; set_dac() 1238 child->thread.debug.dvc1 = set_dac() 1240 child->thread.debug.dbcr2 |= set_dac() 1246 } else if (child->thread.debug.dbcr2 & DBCR2_DAC12MODE) { set_dac() 1250 } else if ((dbcr_dac(child) & (DBCR_DAC2R | DBCR_DAC2W)) == 0) { set_dac() 1253 dbcr_dac(child) |= DBCR_DAC2R; set_dac() 1255 dbcr_dac(child) |= DBCR_DAC2W; set_dac() 1256 child->thread.debug.dac2 = (unsigned long)bp_info->addr; set_dac() 1259 child->thread.debug.dvc2 = set_dac() 1261 child->thread.debug.dbcr2 |= set_dac() 1268 child->thread.debug.dbcr0 |= DBCR0_IDM; set_dac() 1269 child->thread.regs->msr |= MSR_DE; set_dac() 1274 static int del_dac(struct task_struct *child, int slot) del_dac() argument 1277 if ((dbcr_dac(child) & (DBCR_DAC1R | DBCR_DAC1W)) == 0) del_dac() 1280 child->thread.debug.dac1 = 0; del_dac() 1281 dbcr_dac(child) &= ~(DBCR_DAC1R | DBCR_DAC1W); del_dac() 1283 if (child->thread.debug.dbcr2 & DBCR2_DAC12MODE) { del_dac() 1284 child->thread.debug.dac2 = 0; del_dac() 1285 child->thread.debug.dbcr2 &= ~DBCR2_DAC12MODE; del_dac() 1287 child->thread.debug.dbcr2 &= ~(DBCR2_DVC1M | DBCR2_DVC1BE); del_dac() 1290 child->thread.debug.dvc1 = 0; del_dac() 1293 if ((dbcr_dac(child) & (DBCR_DAC2R | DBCR_DAC2W)) == 0) del_dac() 1297 if (child->thread.debug.dbcr2 & DBCR2_DAC12MODE) del_dac() 1300 child->thread.debug.dbcr2 &= ~(DBCR2_DVC2M | DBCR2_DVC2BE); del_dac() 1303 child->thread.debug.dvc2 = 0; del_dac() 1305 child->thread.debug.dac2 = 0; del_dac() 1306 dbcr_dac(child) &= ~(DBCR_DAC2R | DBCR_DAC2W); del_dac() 1315 static int set_dac_range(struct task_struct *child, set_dac_range() argument 1347 if (child->thread.debug.dbcr0 & set_dac_range() 1352 child->thread.debug.dbcr0 |= (DBCR0_DAC1R | DBCR0_IDM); set_dac_range() 1354 child->thread.debug.dbcr0 |= (DBCR0_DAC1W | DBCR0_IDM); set_dac_range() 1355 child->thread.debug.dac1 = bp_info->addr; set_dac_range() 1356 child->thread.debug.dac2 = bp_info->addr2; set_dac_range() 1358 child->thread.debug.dbcr2 |= DBCR2_DAC12M; set_dac_range() 1360 child->thread.debug.dbcr2 |= DBCR2_DAC12MX; set_dac_range() 1362 child->thread.debug.dbcr2 |= DBCR2_DAC12MM; set_dac_range() 1363 child->thread.regs->msr |= MSR_DE; set_dac_range() 1369 static long ppc_set_hwdebug(struct task_struct *child, ppc_set_hwdebug() argument 1374 struct thread_struct *thread = &(child->thread); ppc_set_hwdebug() 1405 return set_instruction_bp(child, bp_info); ppc_set_hwdebug() 1408 return set_dac(child, bp_info); ppc_set_hwdebug() 1411 return set_dac_range(child, bp_info); ppc_set_hwdebug() 1456 ptrace_triggered, NULL, child); ppc_set_hwdebug() 1468 if (child->thread.hw_brk.address) ppc_set_hwdebug() 1471 child->thread.hw_brk = brk; ppc_set_hwdebug() 1477 static long ppc_del_hwdebug(struct task_struct *child, long data) ppc_del_hwdebug() argument 1481 struct thread_struct *thread = &(child->thread); ppc_del_hwdebug() 1488 rc = del_instruction_bp(child, (int)data); ppc_del_hwdebug() 1490 rc = del_dac(child, (int)data - 4); ppc_del_hwdebug() 1493 if (!DBCR_ACTIVE_EVENTS(child->thread.debug.dbcr0, ppc_del_hwdebug() 1494 child->thread.debug.dbcr1)) { ppc_del_hwdebug() 1495 child->thread.debug.dbcr0 &= ~DBCR0_IDM; ppc_del_hwdebug() 1496 child->thread.regs->msr &= ~MSR_DE; ppc_del_hwdebug() 1513 if (child->thread.hw_brk.address == 0) ppc_del_hwdebug() 1516 child->thread.hw_brk.address = 0; ppc_del_hwdebug() 1517 child->thread.hw_brk.type = 0; ppc_del_hwdebug() 1524 long arch_ptrace(struct task_struct *child, long request, arch_ptrace() argument 1541 || (child->thread.regs == NULL)) arch_ptrace() 1548 CHECK_FULL_REGS(child->thread.regs); arch_ptrace() 1550 ret = ptrace_get_reg(child, (int) index, &tmp); arch_ptrace() 1556 flush_fp_to_thread(child); arch_ptrace() 1558 memcpy(&tmp, &child->thread.TS_FPR(fpidx), arch_ptrace() 1561 tmp = child->thread.fp_state.fpscr; arch_ptrace() 1576 || (child->thread.regs == NULL)) arch_ptrace() 1583 CHECK_FULL_REGS(child->thread.regs); arch_ptrace() 1585 ret = ptrace_put_reg(child, index, data); arch_ptrace() 1589 flush_fp_to_thread(child); arch_ptrace() 1591 memcpy(&child->thread.TS_FPR(fpidx), &data, arch_ptrace() 1594 child->thread.fp_state.fpscr = data; arch_ptrace() 1655 ret = ppc_set_hwdebug(child, &bp_info); arch_ptrace() 1660 ret = ppc_del_hwdebug(child, data); arch_ptrace() 1673 ret = put_user(child->thread.debug.dac1, datalp); arch_ptrace() 1675 dabr_fake = ((child->thread.hw_brk.address & (~HW_BRK_TYPE_DABR)) | arch_ptrace() 1676 (child->thread.hw_brk.type & HW_BRK_TYPE_DABR)); arch_ptrace() 1683 ret = ptrace_set_debugreg(child, addr, data); arch_ptrace() 1689 case PTRACE_GETREGS: /* Get all pt_regs from the child. */ arch_ptrace() 1690 return copy_regset_to_user(child, &user_ppc_native_view, arch_ptrace() 1698 case PTRACE_SETREGS: /* Set all gp regs in the child. */ arch_ptrace() 1699 return copy_regset_from_user(child, &user_ppc_native_view, arch_ptrace() 1704 case PTRACE_GETFPREGS: /* Get the child FPU state (FPR0...31 + FPSCR) */ arch_ptrace() 1705 return copy_regset_to_user(child, &user_ppc_native_view, arch_ptrace() 1710 case PTRACE_SETFPREGS: /* Set the child FPU state (FPR0...31 + FPSCR) */ arch_ptrace() 1711 return copy_regset_from_user(child, &user_ppc_native_view, arch_ptrace() 1718 return copy_regset_to_user(child, &user_ppc_native_view, arch_ptrace() 1725 return copy_regset_from_user(child, &user_ppc_native_view, arch_ptrace() 1733 return copy_regset_to_user(child, &user_ppc_native_view, arch_ptrace() 1739 return copy_regset_from_user(child, &user_ppc_native_view, arch_ptrace() 1746 /* Get the child spe register state. */ arch_ptrace() 1747 return copy_regset_to_user(child, &user_ppc_native_view, arch_ptrace() 1752 /* Set the child spe register state. */ arch_ptrace() 1753 return copy_regset_from_user(child, &user_ppc_native_view, arch_ptrace() 1759 ret = ptrace_request(child, request, addr, data); arch_ptrace()
|
H A D | ptrace32.c | 38 * does not yet catch signals sent when the child dies. 47 long compat_arch_ptrace(struct task_struct *child, compat_long_t request, compat_arch_ptrace() argument 76 copied = access_process_vm(child, (u64)addrOthers, &tmp, compat_arch_ptrace() 95 CHECK_FULL_REGS(child->thread.regs); compat_arch_ptrace() 97 ret = ptrace_get_reg(child, index, &tmp); compat_arch_ptrace() 101 flush_fp_to_thread(child); compat_arch_ptrace() 107 tmp = ((unsigned int *)child->thread.fp_state.fpr) compat_arch_ptrace() 145 CHECK_FULL_REGS(child->thread.regs); compat_arch_ptrace() 147 flush_fp_to_thread(child); compat_arch_ptrace() 149 tmp = child->thread.fp_state.fpr[numReg - PT_FPR0][0]; compat_arch_ptrace() 152 ret = ptrace_get_reg(child, numReg, &tmp2); compat_arch_ptrace() 181 if (access_process_vm(child, (u64)addrOthers, &tmp, compat_arch_ptrace() 198 CHECK_FULL_REGS(child->thread.regs); compat_arch_ptrace() 200 ret = ptrace_put_reg(child, index, data); compat_arch_ptrace() 202 flush_fp_to_thread(child); compat_arch_ptrace() 208 ((unsigned int *)child->thread.fp_state.fpr) compat_arch_ptrace() 237 CHECK_FULL_REGS(child->thread.regs); compat_arch_ptrace() 240 ret = ptrace_get_reg(child, numReg, &freg); compat_arch_ptrace() 247 ret = ptrace_put_reg(child, numReg, freg); compat_arch_ptrace() 250 flush_fp_to_thread(child); compat_arch_ptrace() 252 tmp = &child->thread.fp_state.fpr[numReg - PT_FPR0][0]; compat_arch_ptrace() 269 ret = put_user(child->thread.debug.dac1, (u32 __user *)data); compat_arch_ptrace() 272 (child->thread.hw_brk.address & (~HW_BRK_TYPE_DABR)) | compat_arch_ptrace() 273 (child->thread.hw_brk.type & HW_BRK_TYPE_DABR)); compat_arch_ptrace() 279 case PTRACE_GETREGS: /* Get all pt_regs from the child. */ compat_arch_ptrace() 281 child, task_user_regset_view(current), 0, compat_arch_ptrace() 285 case PTRACE_SETREGS: /* Set all gp regs in the child. */ compat_arch_ptrace() 287 child, task_user_regset_view(current), 0, compat_arch_ptrace() 308 ret = arch_ptrace(child, request, addr, data); compat_arch_ptrace() 312 ret = compat_ptrace_request(child, request, addr, data); compat_arch_ptrace()
|
H A D | pci_of_scan.c | 199 * of_scan_pci_bridge - Set up a PCI bridge and scan for child nodes 203 * this routine in turn call of_scan_bus() recusively to scan for more child 346 * __of_scan_bus - given a PCI bus node, setup bus and scan for child devices 354 struct device_node *child; __of_scan_bus() local 361 for_each_child_of_node(node, child) { for_each_child_of_node() 362 dev = of_scan_pci_dev(bus, child); for_each_child_of_node() 375 /* Now scan child busses */ 384 * of_scan_bus - given a PCI bus node, setup bus and scan for child devices 395 * of_rescan_bus - given a PCI bus node, scan for child devices
|
/linux-4.1.27/arch/tile/kernel/ |
H A D | ptrace.c | 32 void user_enable_single_step(struct task_struct *child) user_enable_single_step() argument 34 set_tsk_thread_flag(child, TIF_SINGLESTEP); user_enable_single_step() 37 void user_disable_single_step(struct task_struct *child) user_disable_single_step() argument 39 clear_tsk_thread_flag(child, TIF_SINGLESTEP); user_disable_single_step() 45 void ptrace_disable(struct task_struct *child) ptrace_disable() argument 47 clear_tsk_thread_flag(child, TIF_SINGLESTEP); ptrace_disable() 53 clear_tsk_thread_flag(child, TIF_SYSCALL_TRACE); ptrace_disable() 63 static char *getregs(struct task_struct *child, struct pt_regs *uregs) getregs() argument 65 *uregs = *task_pt_regs(child); getregs() 70 if (task_thread_info(child)->status & TS_COMPAT) getregs() 78 static void putregs(struct task_struct *child, struct pt_regs *uregs) putregs() argument 80 struct pt_regs *regs = task_pt_regs(child); putregs() 150 long arch_ptrace(struct task_struct *child, long request, arch_ptrace() argument 164 childreg = getregs(child, ©regs) + addr; arch_ptrace() 183 childreg = getregs(child, ©regs) + addr; arch_ptrace() 196 putregs(child, ©regs); arch_ptrace() 200 case PTRACE_GETREGS: /* Get all registers from the child. */ arch_ptrace() 201 ret = copy_regset_to_user(child, &tile_user_regset_view, arch_ptrace() 206 case PTRACE_SETREGS: /* Set all registers in the child. */ arch_ptrace() 207 ret = copy_regset_from_user(child, &tile_user_regset_view, arch_ptrace() 212 case PTRACE_GETFPREGS: /* Get the child FPU state. */ arch_ptrace() 213 case PTRACE_SETFPREGS: /* Set the child FPU state. */ arch_ptrace() 221 ret = ptrace_request(child, request, addr, data); arch_ptrace() 223 unsigned int flags = child->ptrace; arch_ptrace() 226 child->ptrace = flags; arch_ptrace() 233 ret = compat_ptrace_request(child, request, arch_ptrace() 238 ret = ptrace_request(child, request, addr, data); arch_ptrace() 247 long compat_arch_ptrace(struct task_struct *child, compat_long_t request, compat_arch_ptrace() argument
|
/linux-4.1.27/drivers/pci/ |
H A D | remove.c | 65 struct pci_dev *child, *tmp; pci_stop_bus_device() local 74 list_for_each_entry_safe_reverse(child, tmp, pci_stop_bus_device() 76 pci_stop_bus_device(child); pci_stop_bus_device() 85 struct pci_dev *child, *tmp; pci_remove_bus_device() local 88 list_for_each_entry_safe(child, tmp, pci_remove_bus_device() 90 pci_remove_bus_device(child); pci_remove_bus_device() 128 struct pci_dev *child, *tmp; pci_stop_root_bus() local 135 list_for_each_entry_safe_reverse(child, tmp, pci_stop_root_bus() 137 pci_stop_bus_device(child); pci_stop_root_bus() 146 struct pci_dev *child, *tmp; pci_remove_root_bus() local 153 list_for_each_entry_safe(child, tmp, pci_remove_root_bus() 155 pci_remove_bus_device(child); pci_remove_root_bus()
|
H A D | probe.c | 338 static void pci_read_bridge_io(struct pci_bus *child) pci_read_bridge_io() argument 340 struct pci_dev *dev = child->self; pci_read_bridge_io() 354 res = child->resource[0]; pci_read_bridge_io() 378 static void pci_read_bridge_mmio(struct pci_bus *child) pci_read_bridge_mmio() argument 380 struct pci_dev *dev = child->self; pci_read_bridge_mmio() 386 res = child->resource[1]; pci_read_bridge_mmio() 400 static void pci_read_bridge_mmio_pref(struct pci_bus *child) pci_read_bridge_mmio_pref() argument 402 struct pci_dev *dev = child->self; pci_read_bridge_mmio_pref() 409 res = child->resource[2]; pci_read_bridge_mmio_pref() 453 void pci_read_bridge_bases(struct pci_bus *child) pci_read_bridge_bases() argument 455 struct pci_dev *dev = child->self; pci_read_bridge_bases() 459 if (pci_is_root_bus(child)) /* It's a host bus, nothing to read */ pci_read_bridge_bases() 463 &child->busn_res, pci_read_bridge_bases() 466 pci_bus_remove_resources(child); pci_read_bridge_bases() 468 child->resource[i] = &dev->resource[PCI_BRIDGE_RESOURCES+i]; pci_read_bridge_bases() 470 pci_read_bridge_io(child); pci_read_bridge_bases() 471 pci_read_bridge_mmio(child); pci_read_bridge_bases() 472 pci_read_bridge_mmio_pref(child); pci_read_bridge_bases() 475 pci_bus_for_each_resource(child->parent, res, i) { pci_read_bridge_bases() 477 pci_bus_add_resource(child, res, pci_read_bridge_bases() 670 struct pci_bus *child; pci_alloc_child_bus() local 677 child = pci_alloc_bus(parent); pci_alloc_child_bus() 678 if (!child) pci_alloc_child_bus() 681 child->parent = parent; pci_alloc_child_bus() 682 child->ops = parent->ops; pci_alloc_child_bus() 683 child->msi = parent->msi; pci_alloc_child_bus() 684 child->sysdata = parent->sysdata; pci_alloc_child_bus() 685 child->bus_flags = parent->bus_flags; pci_alloc_child_bus() 690 child->dev.class = &pcibus_class; pci_alloc_child_bus() 691 dev_set_name(&child->dev, "%04x:%02x", pci_domain_nr(child), busnr); pci_alloc_child_bus() 697 child->number = child->busn_res.start = busnr; pci_alloc_child_bus() 698 child->primary = parent->busn_res.start; pci_alloc_child_bus() 699 child->busn_res.end = 0xff; pci_alloc_child_bus() 702 child->dev.parent = parent->bridge; pci_alloc_child_bus() 706 child->self = bridge; pci_alloc_child_bus() 707 child->bridge = get_device(&bridge->dev); pci_alloc_child_bus() 708 child->dev.parent = child->bridge; pci_alloc_child_bus() 709 pci_set_bus_of_node(child); pci_alloc_child_bus() 710 pci_set_bus_speed(child); pci_alloc_child_bus() 714 child->resource[i] = &bridge->resource[PCI_BRIDGE_RESOURCES+i]; pci_alloc_child_bus() 715 child->resource[i]->name = child->name; pci_alloc_child_bus() 717 bridge->subordinate = child; pci_alloc_child_bus() 720 ret = device_register(&child->dev); pci_alloc_child_bus() 723 pcibios_add_bus(child); pci_alloc_child_bus() 726 pci_create_legacy_files(child); pci_alloc_child_bus() 728 return child; pci_alloc_child_bus() 734 struct pci_bus *child; pci_add_new_bus() local 736 child = pci_alloc_child_bus(parent, dev, busnr); pci_add_new_bus() 737 if (child) { pci_add_new_bus() 739 list_add_tail(&child->node, &parent->children); pci_add_new_bus() 742 return child; pci_add_new_bus() 769 struct pci_bus *child; pci_scan_bridge() local 822 child = pci_find_bus(pci_domain_nr(bus), secondary); pci_scan_bridge() 823 if (!child) { pci_scan_bridge() 824 child = pci_add_new_bus(bus, dev, secondary); pci_scan_bridge() 825 if (!child) pci_scan_bridge() 827 child->primary = primary; pci_scan_bridge() 828 pci_bus_insert_busn_res(child, secondary, subordinate); pci_scan_bridge() 829 child->bridge_ctl = bctl; pci_scan_bridge() 832 cmax = pci_scan_child_bus(child); pci_scan_bridge() 836 /* subordinate should equal child->busn_res.end */ pci_scan_bridge() 863 child = pci_find_bus(pci_domain_nr(bus), max+1); pci_scan_bridge() 864 if (!child) { pci_scan_bridge() 865 child = pci_add_new_bus(bus, dev, max+1); pci_scan_bridge() 866 if (!child) pci_scan_bridge() 868 pci_bus_insert_busn_res(child, max+1, 0xff); pci_scan_bridge() 872 | ((unsigned int)(child->primary) << 0) pci_scan_bridge() 873 | ((unsigned int)(child->busn_res.start) << 8) pci_scan_bridge() 874 | ((unsigned int)(child->busn_res.end) << 16); pci_scan_bridge() 891 child->bridge_ctl = bctl; pci_scan_bridge() 892 max = pci_scan_child_bus(child); pci_scan_bridge() 927 pci_bus_update_busn_res_end(child, max); pci_scan_bridge() 931 sprintf(child->name, pci_scan_bridge() 933 pci_domain_nr(bus), child->number); pci_scan_bridge() 937 if ((child->busn_res.end > bus->busn_res.end) || pci_scan_bridge() 938 (child->number > bus->busn_res.end) || pci_scan_bridge() 939 (child->number < bus->number) || pci_scan_bridge() 940 (child->busn_res.end < bus->number)) { pci_scan_bridge() 941 dev_info(&child->dev, "%pR %s hidden behind%s bridge %s %pR\n", pci_scan_bridge() 942 &child->busn_res, pci_scan_bridge() 943 (bus->number > child->busn_res.end && pci_scan_bridge() 944 bus->busn_res.end < child->number) ? pci_scan_bridge() 1739 * walk from the top down and set the MPS of the child pcie_write_mps() 2171 * Scan a PCI bus and child buses for new devices, add them, 2173 * and possible. The caller must ensure the child devices are already 2196 * Scan a PCI bus and child buses for new devices, adds them,
|
/linux-4.1.27/arch/mips/kernel/ |
H A D | ptrace32.c | 42 long compat_arch_ptrace(struct task_struct *child, compat_long_t request, compat_arch_ptrace() argument 72 copied = access_process_vm(child, (u64)addrOthers, &tmp, compat_arch_ptrace() 86 regs = task_pt_regs(child); compat_arch_ptrace() 94 if (!tsk_used_math(child)) { compat_arch_ptrace() 99 fregs = get_fpu_regs(child); compat_arch_ptrace() 128 tmp = child->thread.fpu.fcr31; compat_arch_ptrace() 142 dregs = __get_dsp_regs(child); compat_arch_ptrace() 152 tmp = child->thread.dsp.dspcontrol; compat_arch_ptrace() 181 if (access_process_vm(child, (u64)addrOthers, &data, compat_arch_ptrace() 191 regs = task_pt_regs(child); compat_arch_ptrace() 198 union fpureg *fregs = get_fpu_regs(child); compat_arch_ptrace() 200 if (!tsk_used_math(child)) { compat_arch_ptrace() 202 memset(&child->thread.fpu, ~0, compat_arch_ptrace() 203 sizeof(child->thread.fpu)); compat_arch_ptrace() 204 child->thread.fpu.fcr31 = 0; compat_arch_ptrace() 229 child->thread.fpu.fcr31 = data; compat_arch_ptrace() 239 dregs = __get_dsp_regs(child); compat_arch_ptrace() 248 child->thread.dsp.dspcontrol = data; compat_arch_ptrace() 259 ret = ptrace_getregs(child, compat_arch_ptrace() 264 ret = ptrace_setregs(child, compat_arch_ptrace() 269 ret = ptrace_getfpregs(child, (__u32 __user *) (__u64) data); compat_arch_ptrace() 273 ret = ptrace_setfpregs(child, (__u32 __user *) (__u64) data); compat_arch_ptrace() 277 ret = put_user(task_thread_info(child)->tp_value, compat_arch_ptrace() 282 ret = put_user(task_thread_info(child)->tp_value, compat_arch_ptrace() 287 ret = ptrace_get_watch_regs(child, compat_arch_ptrace() 292 ret = ptrace_set_watch_regs(child, compat_arch_ptrace() 297 ret = compat_ptrace_request(child, request, addr, data); compat_arch_ptrace()
|
H A D | ptrace.c | 74 void ptrace_disable(struct task_struct *child) ptrace_disable() argument 76 /* Don't load the watchpoint registers for the ex-child. */ ptrace_disable() 77 clear_tsk_thread_flag(child, TIF_LOAD_WATCH); ptrace_disable() 85 static void ptrace_setfcr31(struct task_struct *child, u32 value) ptrace_setfcr31() argument 91 fcr31 = child->thread.fpu.fcr31; ptrace_setfcr31() 93 child->thread.fpu.fcr31 = (value & ~mask) | (fcr31 & mask); ptrace_setfcr31() 101 int ptrace_getregs(struct task_struct *child, struct user_pt_regs __user *data) ptrace_getregs() argument 109 regs = task_pt_regs(child); ptrace_getregs() 128 int ptrace_setregs(struct task_struct *child, struct user_pt_regs __user *data) ptrace_setregs() argument 136 regs = task_pt_regs(child); ptrace_setregs() 149 int ptrace_getfpregs(struct task_struct *child, __u32 __user *data) ptrace_getfpregs() argument 156 if (tsk_used_math(child)) { ptrace_getfpregs() 157 union fpureg *fregs = get_fpu_regs(child); ptrace_getfpregs() 166 __put_user(child->thread.fpu.fcr31, data + 64); ptrace_getfpregs() 172 int ptrace_setfpregs(struct task_struct *child, __u32 __user *data) ptrace_setfpregs() argument 182 init_fp_ctx(child); ptrace_setfpregs() 183 fregs = get_fpu_regs(child); ptrace_setfpregs() 191 ptrace_setfcr31(child, value); ptrace_setfpregs() 198 int ptrace_get_watch_regs(struct task_struct *child, ptrace_get_watch_regs() argument 221 __put_user(child->thread.watch.mips3264.watchlo[i], ptrace_get_watch_regs() 223 __put_user(child->thread.watch.mips3264.watchhi[i] & 0xfff, ptrace_get_watch_regs() 237 int ptrace_set_watch_regs(struct task_struct *child, ptrace_set_watch_regs() argument 256 if (test_tsk_thread_flag(child, TIF_32BIT_ADDR)) { ptrace_set_watch_regs() 272 child->thread.watch.mips3264.watchlo[i] = lt[i]; ptrace_set_watch_regs() 274 child->thread.watch.mips3264.watchhi[i] = ht[i]; ptrace_set_watch_regs() 278 set_tsk_thread_flag(child, TIF_LOAD_WATCH); ptrace_set_watch_regs() 280 clear_tsk_thread_flag(child, TIF_LOAD_WATCH); ptrace_set_watch_regs() 579 long arch_ptrace(struct task_struct *child, long request, arch_ptrace() argument 591 ret = generic_ptrace_peekdata(child, addr, data); arch_ptrace() 600 regs = task_pt_regs(child); arch_ptrace() 608 if (!tsk_used_math(child)) { arch_ptrace() 613 fregs = get_fpu_regs(child); arch_ptrace() 650 tmp = child->thread.fpu.fcr31; arch_ptrace() 664 dregs = __get_dsp_regs(child); arch_ptrace() 674 tmp = child->thread.dsp.dspcontrol; arch_ptrace() 688 ret = generic_ptrace_pokedata(child, addr, data); arch_ptrace() 694 regs = task_pt_regs(child); arch_ptrace() 701 union fpureg *fregs = get_fpu_regs(child); arch_ptrace() 703 init_fp_ctx(child); arch_ptrace() 734 ptrace_setfcr31(child, data); arch_ptrace() 744 dregs = __get_dsp_regs(child); arch_ptrace() 753 child->thread.dsp.dspcontrol = data; arch_ptrace() 764 ret = ptrace_getregs(child, datavp); arch_ptrace() 768 ret = ptrace_setregs(child, datavp); arch_ptrace() 772 ret = ptrace_getfpregs(child, datavp); arch_ptrace() 776 ret = ptrace_setfpregs(child, datavp); arch_ptrace() 780 ret = put_user(task_thread_info(child)->tp_value, datalp); arch_ptrace() 784 ret = ptrace_get_watch_regs(child, addrp); arch_ptrace() 788 ret = ptrace_set_watch_regs(child, addrp); arch_ptrace() 792 ret = ptrace_request(child, request, addr, data); arch_ptrace()
|
/linux-4.1.27/arch/cris/arch-v32/kernel/ |
H A D | ptrace.c | 31 static unsigned long get_pseudo_pc(struct task_struct *child); 80 void user_enable_single_step(struct task_struct *child) user_enable_single_step() argument 88 if (!get_reg(child, PT_SPC)) { user_enable_single_step() 90 tmp = get_reg(child, PT_ERP) & ~1; user_enable_single_step() 91 put_reg(child, PT_SPC, tmp); user_enable_single_step() 93 tmp = get_reg(child, PT_CCS) | SBIT_USER; user_enable_single_step() 94 put_reg(child, PT_CCS, tmp); user_enable_single_step() 97 void user_disable_single_step(struct task_struct *child) user_disable_single_step() argument 99 put_reg(child, PT_SPC, 0); user_disable_single_step() 101 if (!get_debugreg(child->pid, PT_BP_CTRL)) { user_disable_single_step() 104 tmp = get_reg(child, PT_CCS) & ~SBIT_USER; user_disable_single_step() 105 put_reg(child, PT_CCS, tmp); user_disable_single_step() 115 ptrace_disable(struct task_struct *child) ptrace_disable() argument 118 user_disable_single_step(child); ptrace_disable() 119 put_reg(child, PT_SPC, 0); ptrace_disable() 121 /* Deconfigure any watchpoints associated with the child. */ ptrace_disable() 122 deconfigure_bp(child->pid); ptrace_disable() 126 long arch_ptrace(struct task_struct *child, long request, arch_ptrace() argument 150 copied = access_process_vm(child, addr, &tmp, sizeof(tmp), 0); arch_ptrace() 168 tmp = get_reg(child, regno); arch_ptrace() 176 ret = generic_ptrace_pokedata(child, addr, data); arch_ptrace() 190 data |= get_reg(child, PT_CCS) & ~CCS_MASK; arch_ptrace() 192 if (put_reg(child, regno, data)) arch_ptrace() 197 /* Get all GP registers from the child. */ arch_ptrace() 203 tmp = get_reg(child, i); arch_ptrace() 217 /* Set all GP registers in the child. */ arch_ptrace() 230 tmp |= get_reg(child, PT_CCS) & ~CCS_MASK; arch_ptrace() 233 put_reg(child, i, tmp); arch_ptrace() 242 ret = ptrace_request(child, request, addr, data); arch_ptrace() 275 static int insn_size(struct task_struct *child, unsigned long pc) insn_size() argument 282 copied = access_process_vm(child, pc, &opcode, sizeof(opcode), 0); insn_size() 311 static unsigned long get_pseudo_pc(struct task_struct *child) get_pseudo_pc() argument 314 unsigned long pc = get_reg(child, PT_ERP); get_pseudo_pc() 317 unsigned long spc = get_reg(child, PT_SPC); get_pseudo_pc() 328 pc += insn_size(child, pc & ~1) - 1; get_pseudo_pc()
|
/linux-4.1.27/crypto/ |
H A D | ecb.c | 22 struct crypto_cipher *child; member in struct:crypto_ecb_ctx 29 struct crypto_cipher *child = ctx->child; crypto_ecb_setkey() local 32 crypto_cipher_clear_flags(child, CRYPTO_TFM_REQ_MASK); crypto_ecb_setkey() 33 crypto_cipher_set_flags(child, crypto_tfm_get_flags(parent) & crypto_ecb_setkey() 35 err = crypto_cipher_setkey(child, key, keylen); crypto_ecb_setkey() 36 crypto_tfm_set_flags(parent, crypto_cipher_get_flags(child) & crypto_ecb_setkey() 76 struct crypto_cipher *child = ctx->child; crypto_ecb_encrypt() local 79 return crypto_ecb_crypt(desc, &walk, child, crypto_ecb_encrypt() 80 crypto_cipher_alg(child)->cia_encrypt); crypto_ecb_encrypt() 90 struct crypto_cipher *child = ctx->child; crypto_ecb_decrypt() local 93 return crypto_ecb_crypt(desc, &walk, child, crypto_ecb_decrypt() 94 crypto_cipher_alg(child)->cia_decrypt); crypto_ecb_decrypt() 108 ctx->child = cipher; crypto_ecb_init_tfm() 115 crypto_free_cipher(ctx->child); crypto_ecb_exit_tfm()
|
H A D | ctr.c | 25 struct crypto_cipher *child; member in struct:crypto_ctr_ctx 29 struct crypto_ablkcipher *child; member in struct:crypto_rfc3686_ctx 42 struct crypto_cipher *child = ctx->child; crypto_ctr_setkey() local 45 crypto_cipher_clear_flags(child, CRYPTO_TFM_REQ_MASK); crypto_ctr_setkey() 46 crypto_cipher_set_flags(child, crypto_tfm_get_flags(parent) & crypto_ctr_setkey() 48 err = crypto_cipher_setkey(child, key, keylen); crypto_ctr_setkey() 49 crypto_tfm_set_flags(parent, crypto_cipher_get_flags(child) & crypto_ctr_setkey() 134 struct crypto_cipher *child = ctx->child; crypto_ctr_crypt() local 135 unsigned int bsize = crypto_cipher_blocksize(child); crypto_ctr_crypt() 143 nbytes = crypto_ctr_crypt_inplace(&walk, child); crypto_ctr_crypt() 145 nbytes = crypto_ctr_crypt_segment(&walk, child); crypto_ctr_crypt() 151 crypto_ctr_crypt_final(&walk, child); crypto_ctr_crypt() 169 ctx->child = cipher; crypto_ctr_init_tfm() 178 crypto_free_cipher(ctx->child); crypto_ctr_exit_tfm() 256 struct crypto_ablkcipher *child = ctx->child; crypto_rfc3686_setkey() local 268 crypto_ablkcipher_clear_flags(child, CRYPTO_TFM_REQ_MASK); crypto_rfc3686_setkey() 269 crypto_ablkcipher_set_flags(child, crypto_ablkcipher_get_flags(parent) & crypto_rfc3686_setkey() 271 err = crypto_ablkcipher_setkey(child, key, keylen); crypto_rfc3686_setkey() 272 crypto_ablkcipher_set_flags(parent, crypto_ablkcipher_get_flags(child) & crypto_rfc3686_setkey() 282 struct crypto_ablkcipher *child = ctx->child; crypto_rfc3686_crypt() local 297 ablkcipher_request_set_tfm(subreq, child); crypto_rfc3686_crypt() 318 ctx->child = cipher; crypto_rfc3686_init_tfm() 333 crypto_free_ablkcipher(ctx->child); crypto_rfc3686_exit_tfm()
|
H A D | cryptd.c | 61 struct crypto_blkcipher *child; member in struct:cryptd_blkcipher_ctx 69 struct crypto_shash *child; member in struct:cryptd_hash_ctx 78 struct crypto_aead *child; member in struct:cryptd_aead_ctx 189 struct crypto_blkcipher *child = ctx->child; cryptd_blkcipher_setkey() local 192 crypto_blkcipher_clear_flags(child, CRYPTO_TFM_REQ_MASK); cryptd_blkcipher_setkey() 193 crypto_blkcipher_set_flags(child, crypto_ablkcipher_get_flags(parent) & cryptd_blkcipher_setkey() 195 err = crypto_blkcipher_setkey(child, key, keylen); cryptd_blkcipher_setkey() 196 crypto_ablkcipher_set_flags(parent, crypto_blkcipher_get_flags(child) & cryptd_blkcipher_setkey() 202 struct crypto_blkcipher *child, cryptd_blkcipher_crypt() 217 desc.tfm = child; cryptd_blkcipher_crypt() 234 struct crypto_blkcipher *child = ctx->child; cryptd_blkcipher_encrypt() local 236 cryptd_blkcipher_crypt(ablkcipher_request_cast(req), child, err, cryptd_blkcipher_encrypt() local 237 crypto_blkcipher_crt(child)->encrypt); cryptd_blkcipher_encrypt() 243 struct crypto_blkcipher *child = ctx->child; cryptd_blkcipher_decrypt() local 245 cryptd_blkcipher_crypt(ablkcipher_request_cast(req), child, err, cryptd_blkcipher_decrypt() local 246 crypto_blkcipher_crt(child)->decrypt); cryptd_blkcipher_decrypt() 285 ctx->child = cipher; cryptd_blkcipher_init_tfm() 295 crypto_free_blkcipher(ctx->child); cryptd_blkcipher_exit_tfm() 406 ctx->child = hash; cryptd_hash_init_tfm() 417 crypto_free_shash(ctx->child); cryptd_hash_exit_tfm() 424 struct crypto_shash *child = ctx->child; cryptd_hash_setkey() local 427 crypto_shash_clear_flags(child, CRYPTO_TFM_REQ_MASK); cryptd_hash_setkey() 428 crypto_shash_set_flags(child, crypto_ahash_get_flags(parent) & cryptd_hash_setkey() 430 err = crypto_shash_setkey(child, key, keylen); cryptd_hash_setkey() 431 crypto_ahash_set_flags(parent, crypto_shash_get_flags(child) & cryptd_hash_setkey() 453 struct crypto_shash *child = ctx->child; cryptd_hash_init() local 461 desc->tfm = child; cryptd_hash_init() 553 struct crypto_shash *child = ctx->child; cryptd_hash_digest() local 561 desc->tfm = child; cryptd_hash_digest() 658 struct crypto_aead *child, cryptd_aead_crypt() 667 aead_request_set_tfm(req, child); cryptd_aead_crypt() 679 struct crypto_aead *child = ctx->child; cryptd_aead_encrypt() local 683 cryptd_aead_crypt(req, child, err, crypto_aead_crt(child)->encrypt); cryptd_aead_encrypt() 689 struct crypto_aead *child = ctx->child; cryptd_aead_decrypt() local 693 cryptd_aead_crypt(req, child, err, crypto_aead_crt(child)->decrypt); cryptd_aead_decrypt() 731 ctx->child = cipher; cryptd_aead_init_tfm() 739 crypto_free_aead(ctx->child); cryptd_aead_exit_tfm() 879 return ctx->child; cryptd_ablkcipher_child() 914 return ctx->child; cryptd_ahash_child() 955 return ctx->child; cryptd_aead_child() 201 cryptd_blkcipher_crypt(struct ablkcipher_request *req, struct crypto_blkcipher *child, int err, int (*crypt)(struct blkcipher_desc *desc, struct scatterlist *dst, struct scatterlist *src, unsigned int len)) cryptd_blkcipher_crypt() argument 657 cryptd_aead_crypt(struct aead_request *req, struct crypto_aead *child, int err, int (*crypt)(struct aead_request *req)) cryptd_aead_crypt() argument
|
H A D | xts.c | 29 struct crypto_cipher *child; member in struct:priv 37 struct crypto_cipher *child = ctx->tweak; setkey() local 54 crypto_cipher_clear_flags(child, CRYPTO_TFM_REQ_MASK); setkey() 55 crypto_cipher_set_flags(child, crypto_tfm_get_flags(parent) & setkey() 57 err = crypto_cipher_setkey(child, key + keylen/2, keylen/2); setkey() 61 crypto_tfm_set_flags(parent, crypto_cipher_get_flags(child) & setkey() 64 child = ctx->child; setkey() 67 crypto_cipher_clear_flags(child, CRYPTO_TFM_REQ_MASK); setkey() 68 crypto_cipher_set_flags(child, crypto_tfm_get_flags(parent) & setkey() 70 err = crypto_cipher_setkey(child, key, keylen/2); setkey() 74 crypto_tfm_set_flags(parent, crypto_cipher_get_flags(child) & setkey() 102 .tfm = crypto_cipher_tfm(ctx->child), crypt() 155 crypto_cipher_alg(ctx->child)->cia_encrypt); encrypt() 166 crypto_cipher_alg(ctx->child)->cia_decrypt); decrypt() 259 ctx->child = cipher; init_tfm() 263 crypto_free_cipher(ctx->child); init_tfm() 270 crypto_free_cipher(ctx->child); init_tfm() 283 crypto_free_cipher(ctx->child); exit_tfm()
|
H A D | cbc.c | 23 struct crypto_cipher *child; member in struct:crypto_cbc_ctx 30 struct crypto_cipher *child = ctx->child; crypto_cbc_setkey() local 33 crypto_cipher_clear_flags(child, CRYPTO_TFM_REQ_MASK); crypto_cbc_setkey() 34 crypto_cipher_set_flags(child, crypto_tfm_get_flags(parent) & crypto_cbc_setkey() 36 err = crypto_cipher_setkey(child, key, keylen); crypto_cbc_setkey() 37 crypto_tfm_set_flags(parent, crypto_cipher_get_flags(child) & crypto_cbc_setkey() 97 struct crypto_cipher *child = ctx->child; crypto_cbc_encrypt() local 105 nbytes = crypto_cbc_encrypt_inplace(desc, &walk, child); crypto_cbc_encrypt() 107 nbytes = crypto_cbc_encrypt_segment(desc, &walk, child); crypto_cbc_encrypt() 176 struct crypto_cipher *child = ctx->child; crypto_cbc_decrypt() local 184 nbytes = crypto_cbc_decrypt_inplace(desc, &walk, child); crypto_cbc_decrypt() 186 nbytes = crypto_cbc_decrypt_segment(desc, &walk, child); crypto_cbc_decrypt() 204 ctx->child = cipher; crypto_cbc_init_tfm() 211 crypto_free_cipher(ctx->child); crypto_cbc_exit_tfm()
|
H A D | pcbc.c | 26 struct crypto_cipher *child; member in struct:crypto_pcbc_ctx 33 struct crypto_cipher *child = ctx->child; crypto_pcbc_setkey() local 36 crypto_cipher_clear_flags(child, CRYPTO_TFM_REQ_MASK); crypto_pcbc_setkey() 37 crypto_cipher_set_flags(child, crypto_tfm_get_flags(parent) & crypto_pcbc_setkey() 39 err = crypto_cipher_setkey(child, key, keylen); crypto_pcbc_setkey() 40 crypto_tfm_set_flags(parent, crypto_cipher_get_flags(child) & crypto_pcbc_setkey() 104 struct crypto_cipher *child = ctx->child; crypto_pcbc_encrypt() local 113 child); crypto_pcbc_encrypt() 116 child); crypto_pcbc_encrypt() 184 struct crypto_cipher *child = ctx->child; crypto_pcbc_decrypt() local 193 child); crypto_pcbc_decrypt() 196 child); crypto_pcbc_decrypt() 214 ctx->child = cipher; crypto_pcbc_init_tfm() 221 crypto_free_cipher(ctx->child); crypto_pcbc_exit_tfm()
|
H A D | lrw.c | 33 struct crypto_cipher *child; member in struct:priv 83 struct crypto_cipher *child = ctx->child; setkey() local 87 crypto_cipher_clear_flags(child, CRYPTO_TFM_REQ_MASK); setkey() 88 crypto_cipher_set_flags(child, crypto_tfm_get_flags(parent) & setkey() 90 err = crypto_cipher_setkey(child, key, keylen - bsize); setkey() 93 crypto_tfm_set_flags(parent, crypto_cipher_get_flags(child) & setkey() 146 .tfm = crypto_cipher_tfm(ctx->child), crypt() 203 crypto_cipher_alg(ctx->child)->cia_encrypt); encrypt() 214 crypto_cipher_alg(ctx->child)->cia_decrypt); decrypt() 314 ctx->child = cipher; init_tfm() 323 crypto_free_cipher(ctx->child); exit_tfm()
|
H A D | ablk_helper.c | 41 struct crypto_ablkcipher *child = &ctx->cryptd_tfm->base; ablk_set_key() local 44 crypto_ablkcipher_clear_flags(child, CRYPTO_TFM_REQ_MASK); ablk_set_key() 45 crypto_ablkcipher_set_flags(child, crypto_ablkcipher_get_flags(tfm) ablk_set_key() 47 err = crypto_ablkcipher_setkey(child, key, key_len); ablk_set_key() 48 crypto_ablkcipher_set_flags(tfm, crypto_ablkcipher_get_flags(child) ablk_set_key()
|
H A D | xcbc.c | 41 struct crypto_cipher *child; member in struct:xcbc_tfm_ctx 71 if ((err = crypto_cipher_setkey(ctx->child, inkey, keylen))) crypto_xcbc_digest_setkey() 74 crypto_cipher_encrypt_one(ctx->child, consts, (u8 *)ks + bs); crypto_xcbc_digest_setkey() 75 crypto_cipher_encrypt_one(ctx->child, consts + bs, (u8 *)ks + bs * 2); crypto_xcbc_digest_setkey() 76 crypto_cipher_encrypt_one(ctx->child, key1, (u8 *)ks); crypto_xcbc_digest_setkey() 78 return crypto_cipher_setkey(ctx->child, key1, bs); crypto_xcbc_digest_setkey() 102 struct crypto_cipher *tfm = tctx->child; crypto_xcbc_digest_update() 148 struct crypto_cipher *tfm = tctx->child; crypto_xcbc_digest_final() 188 ctx->child = cipher; xcbc_init_tfm() 196 crypto_free_cipher(ctx->child); xcbc_exit_tfm()
|
H A D | cts.c | 54 struct crypto_blkcipher *child; member in struct:crypto_cts_ctx 61 struct crypto_blkcipher *child = ctx->child; crypto_cts_setkey() local 64 crypto_blkcipher_clear_flags(child, CRYPTO_TFM_REQ_MASK); crypto_cts_setkey() 65 crypto_blkcipher_set_flags(child, crypto_tfm_get_flags(parent) & crypto_cts_setkey() 67 err = crypto_blkcipher_setkey(child, key, keylen); crypto_cts_setkey() 68 crypto_tfm_set_flags(parent, crypto_blkcipher_get_flags(child) & crypto_cts_setkey() 100 lcldesc.tfm = ctx->child; cts_cbc_encrypt() 136 lcldesc.tfm = ctx->child; crypto_cts_encrypt() 183 lcldesc.tfm = ctx->child; cts_cbc_decrypt() 231 lcldesc.tfm = ctx->child; crypto_cts_decrypt() 264 ctx->child = cipher; crypto_cts_init_tfm() 271 crypto_free_blkcipher(ctx->child); crypto_cts_exit_tfm()
|
H A D | mcryptd.c | 287 ctx->child = hash; mcryptd_hash_init_tfm() 298 crypto_free_shash(ctx->child); mcryptd_hash_exit_tfm() 305 struct crypto_shash *child = ctx->child; mcryptd_hash_setkey() local 308 crypto_shash_clear_flags(child, CRYPTO_TFM_REQ_MASK); mcryptd_hash_setkey() 309 crypto_shash_set_flags(child, crypto_ahash_get_flags(parent) & mcryptd_hash_setkey() 311 err = crypto_shash_setkey(child, key, keylen); mcryptd_hash_setkey() 312 crypto_ahash_set_flags(parent, crypto_shash_get_flags(child) & mcryptd_hash_setkey() 338 struct crypto_shash *child = ctx->child; mcryptd_hash_init() local 346 desc->tfm = child; mcryptd_hash_init() 446 struct crypto_shash *child = ctx->child; mcryptd_hash_digest() local 454 desc->tfm = child; mcryptd_hash_digest() 670 return ctx->child; mcryptd_ahash_child()
|
H A D | cmac.c | 34 struct crypto_cipher *child; member in struct:cmac_tfm_ctx 65 err = crypto_cipher_setkey(ctx->child, inkey, keylen); crypto_cmac_digest_setkey() 71 crypto_cipher_encrypt_one(ctx->child, (u8 *)consts, (u8 *)consts); crypto_cmac_digest_setkey() 128 struct crypto_cipher *tfm = tctx->child; crypto_cmac_digest_update() 174 struct crypto_cipher *tfm = tctx->child; crypto_cmac_digest_final() 214 ctx->child = cipher; cmac_init_tfm() 222 crypto_free_cipher(ctx->child); cmac_exit_tfm()
|
H A D | gcm.c | 36 struct crypto_aead *child; member in struct:crypto_rfc4106_ctx 46 struct crypto_aead *child; member in struct:crypto_rfc4543_ctx 862 struct crypto_aead *child = ctx->child; crypto_rfc4106_setkey() local 871 crypto_aead_clear_flags(child, CRYPTO_TFM_REQ_MASK); crypto_rfc4106_setkey() 872 crypto_aead_set_flags(child, crypto_aead_get_flags(parent) & crypto_rfc4106_setkey() 874 err = crypto_aead_setkey(child, key, keylen); crypto_rfc4106_setkey() 875 crypto_aead_set_flags(parent, crypto_aead_get_flags(child) & crypto_rfc4106_setkey() 895 return crypto_aead_setauthsize(ctx->child, authsize); crypto_rfc4106_setauthsize() 903 struct crypto_aead *child = ctx->child; crypto_rfc4106_crypt() local 904 u8 *iv = PTR_ALIGN((u8 *)(subreq + 1) + crypto_aead_reqsize(child), crypto_rfc4106_crypt() 905 crypto_aead_alignmask(child) + 1); crypto_rfc4106_crypt() 910 aead_request_set_tfm(subreq, child); crypto_rfc4106_crypt() 945 ctx->child = aead; crypto_rfc4106_init_tfm() 961 crypto_free_aead(ctx->child); crypto_rfc4106_exit_tfm() 1073 struct crypto_aead *child = ctx->child; crypto_rfc4543_setkey() local 1082 crypto_aead_clear_flags(child, CRYPTO_TFM_REQ_MASK); crypto_rfc4543_setkey() 1083 crypto_aead_set_flags(child, crypto_aead_get_flags(parent) & crypto_rfc4543_setkey() 1085 err = crypto_aead_setkey(child, key, keylen); crypto_rfc4543_setkey() 1086 crypto_aead_set_flags(parent, crypto_aead_get_flags(child) & crypto_rfc4543_setkey() 1100 return crypto_aead_setauthsize(ctx->child, authsize); crypto_rfc4543_setauthsize() 1133 u8 *iv = PTR_ALIGN((u8 *)(rctx + 1) + crypto_aead_reqsize(ctx->child), crypto_rfc4543_crypt() 1134 crypto_aead_alignmask(ctx->child) + 1); crypto_rfc4543_crypt() 1173 aead_request_set_tfm(subreq, ctx->child); crypto_rfc4543_crypt() 1254 ctx->child = aead; crypto_rfc4543_init_tfm() 1275 crypto_free_aead(ctx->child); crypto_rfc4543_exit_tfm()
|
H A D | ccm.c | 35 struct crypto_aead *child; member in struct:crypto_rfc4309_ctx 642 struct crypto_aead *child = ctx->child; crypto_rfc4309_setkey() local 651 crypto_aead_clear_flags(child, CRYPTO_TFM_REQ_MASK); crypto_rfc4309_setkey() 652 crypto_aead_set_flags(child, crypto_aead_get_flags(parent) & crypto_rfc4309_setkey() 654 err = crypto_aead_setkey(child, key, keylen); crypto_rfc4309_setkey() 655 crypto_aead_set_flags(parent, crypto_aead_get_flags(child) & crypto_rfc4309_setkey() 675 return crypto_aead_setauthsize(ctx->child, authsize); crypto_rfc4309_setauthsize() 683 struct crypto_aead *child = ctx->child; crypto_rfc4309_crypt() local 684 u8 *iv = PTR_ALIGN((u8 *)(subreq + 1) + crypto_aead_reqsize(child), crypto_rfc4309_crypt() 685 crypto_aead_alignmask(child) + 1); crypto_rfc4309_crypt() 693 aead_request_set_tfm(subreq, child); crypto_rfc4309_crypt() 728 ctx->child = aead; crypto_rfc4309_init_tfm() 744 crypto_free_aead(ctx->child); crypto_rfc4309_exit_tfm()
|
/linux-4.1.27/drivers/mfd/ |
H A D | twl-core.c | 727 struct device *child; add_children() local 730 child = add_child(TWL4030_MODULE_GPIO, "twl4030_gpio", add_children() 733 if (IS_ERR(child)) add_children() 734 return PTR_ERR(child); add_children() 738 child = add_child(TWL4030_MODULE_KEYPAD, "twl4030_keypad", add_children() 741 if (IS_ERR(child)) add_children() 742 return PTR_ERR(child); add_children() 747 child = add_child(TWL4030_MODULE_MADC, "twl4030_madc", add_children() 750 if (IS_ERR(child)) add_children() 751 return PTR_ERR(child); add_children() 762 child = add_child(TWL_MODULE_RTC, "twl_rtc", NULL, 0, add_children() 764 if (IS_ERR(child)) add_children() 765 return PTR_ERR(child); add_children() 769 child = add_child(TWL_MODULE_PWM, "twl-pwm", NULL, 0, add_children() 771 if (IS_ERR(child)) add_children() 772 return PTR_ERR(child); add_children() 776 child = add_child(TWL_MODULE_LED, "twl-pwmled", NULL, 0, add_children() 778 if (IS_ERR(child)) add_children() 779 return PTR_ERR(child); add_children() 808 child = add_regulator_linked(TWL4030_REG_VUSB1V5, add_children() 811 if (IS_ERR(child)) add_children() 812 return PTR_ERR(child); add_children() 814 child = add_regulator_linked(TWL4030_REG_VUSB1V8, add_children() 817 if (IS_ERR(child)) add_children() 818 return PTR_ERR(child); add_children() 820 child = add_regulator_linked(TWL4030_REG_VUSB3V1, add_children() 823 if (IS_ERR(child)) add_children() 824 return PTR_ERR(child); add_children() 828 child = add_child(TWL_MODULE_USB, "twl4030_usb", add_children() 834 if (IS_ERR(child)) add_children() 835 return PTR_ERR(child); add_children() 838 if (IS_ENABLED(CONFIG_REGULATOR_TWL4030) && child) { add_children() 839 usb1v5.dev_name = dev_name(child); add_children() 840 usb1v8.dev_name = dev_name(child); add_children() 841 usb3v1[0].dev_name = dev_name(child); add_children() 846 child = add_child(TWL_MODULE_PM_RECEIVER, "twl4030_wdt", NULL, add_children() 848 if (IS_ERR(child)) add_children() 849 return PTR_ERR(child); add_children() 853 child = add_child(TWL_MODULE_PM_MASTER, "twl4030_pwrbutton", add_children() 855 if (IS_ERR(child)) add_children() 856 return PTR_ERR(child); add_children() 861 child = add_child(TWL4030_MODULE_AUDIO_VOICE, "twl4030-audio", add_children() 864 if (IS_ERR(child)) add_children() 865 return PTR_ERR(child); add_children() 870 child = add_regulator(TWL4030_REG_VPLL1, pdata->vpll1, add_children() 872 if (IS_ERR(child)) add_children() 873 return PTR_ERR(child); add_children() 875 child = add_regulator(TWL4030_REG_VIO, pdata->vio, add_children() 877 if (IS_ERR(child)) add_children() 878 return PTR_ERR(child); add_children() 880 child = add_regulator(TWL4030_REG_VDD1, pdata->vdd1, add_children() 882 if (IS_ERR(child)) add_children() 883 return PTR_ERR(child); add_children() 885 child = add_regulator(TWL4030_REG_VDD2, pdata->vdd2, add_children() 887 if (IS_ERR(child)) add_children() 888 return PTR_ERR(child); add_children() 890 child = add_regulator(TWL4030_REG_VMMC1, pdata->vmmc1, add_children() 892 if (IS_ERR(child)) add_children() 893 return PTR_ERR(child); add_children() 895 child = add_regulator(TWL4030_REG_VDAC, pdata->vdac, add_children() 897 if (IS_ERR(child)) add_children() 898 return PTR_ERR(child); add_children() 900 child = add_regulator((features & TWL4030_VAUX2) add_children() 904 if (IS_ERR(child)) add_children() 905 return PTR_ERR(child); add_children() 907 child = add_regulator(TWL4030_REG_VINTANA1, pdata->vintana1, add_children() 909 if (IS_ERR(child)) add_children() 910 return PTR_ERR(child); add_children() 912 child = add_regulator(TWL4030_REG_VINTANA2, pdata->vintana2, add_children() 914 if (IS_ERR(child)) add_children() 915 return PTR_ERR(child); add_children() 917 child = add_regulator(TWL4030_REG_VINTDIG, pdata->vintdig, add_children() 919 if (IS_ERR(child)) add_children() 920 return PTR_ERR(child); add_children() 926 child = add_regulator(TWL4030_REG_VPLL2, pdata->vpll2, add_children() 928 if (IS_ERR(child)) add_children() 929 return PTR_ERR(child); add_children() 931 child = add_regulator(TWL4030_REG_VMMC2, pdata->vmmc2, add_children() 933 if (IS_ERR(child)) add_children() 934 return PTR_ERR(child); add_children() 936 child = add_regulator(TWL4030_REG_VSIM, pdata->vsim, add_children() 938 if (IS_ERR(child)) add_children() 939 return PTR_ERR(child); add_children() 941 child = add_regulator(TWL4030_REG_VAUX1, pdata->vaux1, add_children() 943 if (IS_ERR(child)) add_children() 944 return PTR_ERR(child); add_children() 946 child = add_regulator(TWL4030_REG_VAUX3, pdata->vaux3, add_children() 948 if (IS_ERR(child)) add_children() 949 return PTR_ERR(child); add_children() 951 child = add_regulator(TWL4030_REG_VAUX4, pdata->vaux4, add_children() 953 if (IS_ERR(child)) add_children() 954 return PTR_ERR(child); add_children() 959 child = add_child(TWL_MODULE_MAIN_CHARGE, "twl4030_bci", add_children() 964 if (IS_ERR(child)) add_children() 965 return PTR_ERR(child); add_children() 969 child = add_child(TWL_MODULE_PM_MASTER, "twl4030_power", add_children() 972 if (IS_ERR(child)) add_children() 973 return PTR_ERR(child); add_children()
|
H A D | dm355evm_msp.c | 257 struct device *child; add_children() local 300 child = add_child(client, "leds-gpio", add_children() 303 if (IS_ERR(child)) add_children() 304 return PTR_ERR(child); add_children() 326 child = add_child(client, "rtc-dm355evm", add_children() 328 if (IS_ERR(child)) add_children() 329 return PTR_ERR(child); add_children() 334 child = add_child(client, "dm355evm_keys", add_children() 336 if (IS_ERR(child)) add_children() 337 return PTR_ERR(child); add_children()
|
H A D | tc3589x.c | 301 dev_err(tc3589x->dev, "failed to add gpio child\n"); tc3589x_device_init() 312 dev_err(tc3589x->dev, "failed to keypad child\n"); tc3589x_device_init() 340 struct device_node *child; tc3589x_of_probe() local 352 for_each_child_of_node(np, child) { for_each_child_of_node() 353 if (of_device_is_compatible(child, "toshiba,tc3589x-gpio")) for_each_child_of_node() 355 if (of_device_is_compatible(child, "toshiba,tc3589x-keypad")) for_each_child_of_node() 432 dev_err(tc3589x->dev, "failed to add child devices\n"); tc3589x_probe()
|
/linux-4.1.27/drivers/scsi/ |
H A D | scsi_sysctl.c | 27 .child = scsi_table }, 34 .child = scsi_dir_table },
|
/linux-4.1.27/fs/ |
H A D | pnode.c | 212 struct mount *child; propagate_one() local 249 child = copy_tree(last_source, last_source->mnt.mnt_root, type); propagate_one() 250 if (IS_ERR(child)) propagate_one() 251 return PTR_ERR(child); propagate_one() 252 child->mnt.mnt_flags &= ~MNT_LOCKED; propagate_one() 253 mnt_set_mountpoint(m, mp, child); propagate_one() 255 last_source = child; propagate_one() 261 hlist_add_head(&child->mnt_hash, list); propagate_one() 347 struct mount *m, *child; propagate_mount_busy() local 364 child = __lookup_mnt_last(&m->mnt, mnt->mnt_mountpoint); propagate_mount_busy() 365 if (child && list_empty(&child->mnt_mounts) && propagate_mount_busy() 366 (ret = do_refcount_check(child, 1))) propagate_mount_busy() 380 struct mount *m, *child; propagate_mount_unlock() local 386 child = __lookup_mnt_last(&m->mnt, mnt->mnt_mountpoint); propagate_mount_unlock() 387 if (child) propagate_mount_unlock() 388 child->mnt.mnt_flags &= ~MNT_LOCKED; propagate_mount_unlock() 404 struct mount *child = __lookup_mnt_last(&m->mnt, mark_umount_candidates() local 406 if (child && (!IS_MNT_LOCKED(child) || IS_MNT_MARKED(m))) { mark_umount_candidates() 407 SET_MNT_MARK(child); mark_umount_candidates() 426 struct mount *child = __lookup_mnt_last(&m->mnt, __propagate_umount() local 429 * umount the child only if the child has no children __propagate_umount() 430 * and the child is marked safe to unmount. __propagate_umount() 432 if (!child || !IS_MNT_MARKED(child)) __propagate_umount() 434 CLEAR_MNT_MARK(child); __propagate_umount() 435 if (list_empty(&child->mnt_mounts)) { __propagate_umount() 436 list_del_init(&child->mnt_child); __propagate_umount() 437 child->mnt.mnt_flags |= MNT_UMOUNT; __propagate_umount() 438 list_move_tail(&child->mnt_list, &mnt->mnt_list); __propagate_umount()
|
/linux-4.1.27/arch/sh/kernel/ |
H A D | ptrace_32.c | 114 void user_enable_single_step(struct task_struct *child) user_enable_single_step() argument 116 unsigned long pc = get_stack_long(child, offsetof(struct pt_regs, pc)); user_enable_single_step() 118 set_tsk_thread_flag(child, TIF_SINGLESTEP); user_enable_single_step() 120 set_single_step(child, pc); user_enable_single_step() 123 void user_disable_single_step(struct task_struct *child) user_disable_single_step() argument 125 clear_tsk_thread_flag(child, TIF_SINGLESTEP); user_disable_single_step() 133 void ptrace_disable(struct task_struct *child) ptrace_disable() argument 135 user_disable_single_step(child); ptrace_disable() 370 long arch_ptrace(struct task_struct *child, long request, arch_ptrace() argument 387 tmp = get_stack_long(child, addr); arch_ptrace() 390 if (!tsk_used_math(child)) { arch_ptrace() 397 ret = init_fpu(child); arch_ptrace() 401 tmp = ((unsigned long *)child->thread.xstate) arch_ptrace() 405 tmp = !!tsk_used_math(child); arch_ptrace() 407 tmp = child->mm->start_code; arch_ptrace() 409 tmp = child->mm->start_data; arch_ptrace() 411 tmp = child->mm->end_code; arch_ptrace() 413 tmp = child->mm->end_code - child->mm->start_code; arch_ptrace() 427 ret = put_stack_long(child, addr, data); arch_ptrace() 431 ret = init_fpu(child); arch_ptrace() 435 set_stopped_child_used_math(child); arch_ptrace() 436 ((unsigned long *)child->thread.xstate) arch_ptrace() 440 conditional_stopped_child_used_math(data, child); arch_ptrace() 446 return copy_regset_to_user(child, &user_sh_native_view, arch_ptrace() 451 return copy_regset_from_user(child, &user_sh_native_view, arch_ptrace() 457 return copy_regset_to_user(child, &user_sh_native_view, arch_ptrace() 462 return copy_regset_from_user(child, &user_sh_native_view, arch_ptrace() 469 return copy_regset_to_user(child, &user_sh_native_view, arch_ptrace() 474 return copy_regset_from_user(child, &user_sh_native_view, arch_ptrace() 480 ret = ptrace_request(child, request, addr, data); arch_ptrace()
|
H A D | ptrace_64.c | 51 * does not yet catch signals sent when the child dies. 130 void user_enable_single_step(struct task_struct *child) user_enable_single_step() argument 132 struct pt_regs *regs = child->thread.uregs; user_enable_single_step() 136 set_tsk_thread_flag(child, TIF_SINGLESTEP); user_enable_single_step() 139 void user_disable_single_step(struct task_struct *child) user_disable_single_step() argument 141 struct pt_regs *regs = child->thread.uregs; user_disable_single_step() 145 clear_tsk_thread_flag(child, TIF_SINGLESTEP); user_disable_single_step() 386 long arch_ptrace(struct task_struct *child, long request, arch_ptrace() argument 402 tmp = get_stack_long(child, addr); arch_ptrace() 406 ret = init_fpu(child); arch_ptrace() 410 tmp = get_fpu_long(child, index); arch_ptrace() 412 tmp = !!tsk_used_math(child); arch_ptrace() 439 long cursr = get_stack_long(child, addr); arch_ptrace() 443 ret = put_stack_long(child, addr, data); arch_ptrace() 448 ret = init_fpu(child); arch_ptrace() 452 ret = put_fpu_long(child, index, data); arch_ptrace() 457 return copy_regset_to_user(child, &user_sh64_native_view, arch_ptrace() 462 return copy_regset_from_user(child, &user_sh64_native_view, arch_ptrace() 468 return copy_regset_to_user(child, &user_sh64_native_view, arch_ptrace() 473 return copy_regset_from_user(child, &user_sh64_native_view, arch_ptrace() 479 ret = ptrace_request(child, request, addr, data); arch_ptrace() 575 void ptrace_disable(struct task_struct *child) ptrace_disable() argument 577 user_disable_single_step(child); ptrace_disable()
|
/linux-4.1.27/scripts/kconfig/ |
H A D | conf.c | 238 struct menu *child; conf_choice() local 273 for (child = menu->list; child; child = child->next) { conf_choice() 274 if (!menu_is_visible(child)) conf_choice() 276 if (!child->sym) { conf_choice() 277 printf("%*c %s\n", indent, '*', _(menu_get_prompt(child))); conf_choice() 281 if (child->sym == def_sym) { conf_choice() 286 printf(" %d. %s", cnt, _(menu_get_prompt(child))); conf_choice() 287 if (child->sym->name) conf_choice() 288 printf(" (%s)", child->sym->name); conf_choice() 289 if (!sym_has_value(child->sym)) conf_choice() 332 for (child = menu->list; child; child = child->next) { conf_choice() 333 if (!child->sym || !menu_is_visible(child)) conf_choice() 338 if (!child) conf_choice() 341 print_help(child); conf_choice() 344 sym_set_choice_value(sym, child->sym); conf_choice() 345 for (child = child->list; child; child = child->next) { conf_choice() 347 conf(child); conf_choice() 358 struct menu *child; conf() local 414 for (child = menu->list; child; child = child->next) conf() 415 conf(child); conf() 423 struct menu *child; check_conf() local 445 for (child = menu->list; child; child = child->next) check_conf() 446 check_conf(child); check_conf()
|
H A D | kxgettext.c | 173 struct menu *child; menu_build_message_list() local 184 for (child = menu->list; child != NULL; child = child->next) menu_build_message_list() 185 if (child->prompt != NULL) menu_build_message_list() 186 menu_build_message_list(child); menu_build_message_list()
|
H A D | gconf.c | 1091 struct menu *child; fill_row() local 1097 for (child = menu->list; child; child = child->next) { fill_row() 1098 if (menu_is_visible(child) fill_row() 1099 && child->sym == def_sym) fill_row() 1100 def_menu = child; fill_row() 1218 GtkTreeIter *child = &iter; gtktree_iter_find_node() local 1222 valid = gtk_tree_model_iter_children(model2, child, parent); gtktree_iter_find_node() 1226 gtk_tree_model_get(model2, child, 6, &menu, -1); gtktree_iter_find_node() 1229 memcpy(&found, child, sizeof(GtkTreeIter)); gtktree_iter_find_node() 1233 ret = gtktree_iter_find_node(child, tofind); gtktree_iter_find_node() 1237 valid = gtk_tree_model_iter_next(model2, child); gtktree_iter_find_node() 1272 menu2 = NULL; // force adding of a first child update_tree() 1293 goto reparse; /* next child */ update_tree() 1318 goto reparse; // next child update_tree() 1338 struct menu *child; display_tree() local 1346 for (child = menu->list; child; child = child->next) { display_tree() 1347 prop = child->prompt; display_tree() 1348 sym = child->sym; display_tree() 1355 && !(child->flags & MENU_ROOT) && (tree == tree1)) display_tree() 1358 if ((view_mode == SPLIT_VIEW) && (child->flags & MENU_ROOT) display_tree() 1362 if ((opt_mode == OPT_NORMAL && menu_is_visible(child)) || display_tree() 1363 (opt_mode == OPT_PROMPT && menu_has_prompt(child)) || display_tree() 1364 (opt_mode == OPT_ALL && menu_get_prompt(child))) display_tree() 1365 place_node(child, fill_row(child)); display_tree() 1367 printf("%*c%s: ", indent, ' ', menu_get_prompt(child)); display_tree() 1368 printf("%s", child->flags & MENU_ROOT ? "rootmenu | " : ""); display_tree() 1396 display_tree(child); display_tree() 1428 struct menu *child; fixup_rootmenu() local 1432 for (child = menu->list; child; child = child->next) { fixup_rootmenu() 1433 if (child->prompt && child->prompt->type == P_MENU) { fixup_rootmenu() 1435 fixup_rootmenu(child); fixup_rootmenu() 1438 fixup_rootmenu(child); fixup_rootmenu()
|
H A D | nconf.c | 737 struct menu *child; build_conf() local 798 for (child = menu->list; child; child = child->next) { build_conf() 799 if (menu_is_visible(child) && child->sym == def_sym) build_conf() 800 def_menu = child; build_conf() 914 for (child = menu->list; child; child = child->next) build_conf() 915 build_conf(child); build_conf() 1235 struct menu *child = 0; conf_choice() local 1251 for (i = 0, child = menu->list; child; child = child->next) { conf_choice() 1252 if (!show_all_items && !menu_is_visible(child)) conf_choice() 1255 if (child->sym == sym_get_choice_value(menu->sym)) conf_choice() 1256 item_make(child, ':', "<X> %s", conf_choice() 1257 _(menu_get_prompt(child))); conf_choice() 1258 else if (child->sym) conf_choice() 1259 item_make(child, ':', " %s", conf_choice() 1260 _(menu_get_prompt(child))); conf_choice() 1262 item_make(child, ':', "*** %s ***", conf_choice() 1263 _(menu_get_prompt(child))); conf_choice() 1265 if (child->sym == active){ conf_choice() 1329 child = item_data(); conf_choice() 1330 if (!child || !menu_is_visible(child) || !child->sym) conf_choice() 1336 sym_set_tristate_value(child->sym, yes); conf_choice() 1340 show_help(child); conf_choice() 1341 active = child->sym; conf_choice()
|
H A D | mconf.c | 470 struct menu *child; build_conf() local 535 for (child = menu->list; child; child = child->next) { build_conf() 536 if (menu_is_visible(child) && child->sym == def_sym) build_conf() 537 def_menu = child; build_conf() 640 for (child = menu->list; child; child = child->next) build_conf() 641 build_conf(child); build_conf() 803 struct menu *child; conf_choice() local 813 for (child = menu->list; child; child = child->next) { conf_choice() 814 if (!menu_is_visible(child)) conf_choice() 816 if (child->sym) conf_choice() 817 item_make("%s", _(menu_get_prompt(child))); conf_choice() 819 item_make("*** %s ***", _(menu_get_prompt(child))); conf_choice() 822 item_set_data(child); conf_choice() 823 if (child->sym == active) conf_choice() 825 if (child->sym == sym_get_choice_value(menu->sym)) conf_choice() 838 child = item_data(); conf_choice() 839 if (!child->sym) conf_choice() 842 sym_set_tristate_value(child->sym, yes); conf_choice() 847 child = item_data(); conf_choice() 848 show_help(child); conf_choice() 849 active = child->sym; conf_choice()
|
H A D | qconf.cc | 144 * depending whether it's at the view root or a child. updateMenu() 603 struct menu* child; updateMenuList() local 618 for (child = menu->list; child; child = child->next) { updateMenuList() 620 type = child->prompt ? child->prompt->type : P_UNKNOWN; updateMenuList() 624 if (!(child->flags & MENU_ROOT)) updateMenuList() 628 if (child->flags & MENU_ROOT) updateMenuList() 635 visible = menu_is_visible(child); updateMenuList() 636 if (!menuSkip(child)) { updateMenuList() 637 if (!child->sym && !child->list && !child->prompt) updateMenuList() 639 if (!item || item->menu != child) updateMenuList() 640 item = new ConfigItem(parent, last, child, visible); updateMenuList() 645 updateMenuList(item, child); updateMenuList() 652 if (item && item->menu == child) { updateMenuList() 1731 struct menu *child; fixup_rootmenu() local 1735 for (child = menu->list; child; child = child->next) { fixup_rootmenu() 1736 if (child->prompt && child->prompt->type == P_MENU) { fixup_rootmenu() 1738 fixup_rootmenu(child); fixup_rootmenu() 1741 fixup_rootmenu(child); fixup_rootmenu()
|
/linux-4.1.27/fs/openpromfs/ |
H A D | inode.c | 182 struct device_node *dp, *child; openpromfs_lookup() local 200 child = dp->child; openpromfs_lookup() 201 while (child) { openpromfs_lookup() 202 int n = strlen(child->path_component_name); openpromfs_lookup() 205 !strncmp(child->path_component_name, name, len)) { openpromfs_lookup() 207 ent_data.node = child; openpromfs_lookup() 208 ino = child->unique_id; openpromfs_lookup() 211 child = child->sibling; openpromfs_lookup() 268 struct device_node *child; openpromfs_readdir() local 290 child = dp->child; openpromfs_readdir() 291 while (i && child) { openpromfs_readdir() 292 child = child->sibling; openpromfs_readdir() 295 while (child) { openpromfs_readdir() 297 child->path_component_name, openpromfs_readdir() 298 strlen(child->path_component_name), openpromfs_readdir() 299 child->unique_id, DT_DIR)) openpromfs_readdir() 303 child = child->sibling; openpromfs_readdir()
|
/linux-4.1.27/arch/cris/arch-v10/kernel/ |
H A D | ptrace.c | 64 ptrace_disable(struct task_struct *child) ptrace_disable() argument 67 clear_tsk_thread_flag(child, TIF_SYSCALL_TRACE); ptrace_disable() 78 long arch_ptrace(struct task_struct *child, long request, arch_ptrace() argument 89 ret = generic_ptrace_peekdata(child, addr, data); arch_ptrace() 100 tmp = get_reg(child, regno); arch_ptrace() 108 ret = generic_ptrace_pokedata(child, addr, data); arch_ptrace() 122 data |= get_reg(child, PT_DCCR) & ~DCCR_MASK; arch_ptrace() 124 if (put_reg(child, regno, data)) arch_ptrace() 129 /* Get all GP registers from the child. */ arch_ptrace() 136 tmp = get_reg(child, i); arch_ptrace() 149 /* Set all GP registers in the child. */ arch_ptrace() 163 tmp |= get_reg(child, PT_DCCR) & ~DCCR_MASK; arch_ptrace() 166 put_reg(child, i, tmp); arch_ptrace() 174 ret = ptrace_request(child, request, addr, data); arch_ptrace()
|
/linux-4.1.27/include/linux/ |
H A D | of_graph.h | 34 * @child: loop variable pointing to the current endpoint node 36 * When breaking out of the loop, of_node_put(child) has to be called manually. 38 #define for_each_endpoint_of_node(parent, child) \ 39 for (child = of_graph_get_next_endpoint(parent, NULL); child != NULL; \ 40 child = of_graph_get_next_endpoint(parent, child))
|
H A D | ptrace.h | 44 extern long arch_ptrace(struct task_struct *child, long request, 49 extern int ptrace_request(struct task_struct *child, long request, 52 extern void __ptrace_link(struct task_struct *child, 54 extern void __ptrace_unlink(struct task_struct *child); 84 static inline int ptrace_reparented(struct task_struct *child) ptrace_reparented() argument 86 return !same_thread_group(child->real_parent, child->parent); ptrace_reparented() 89 static inline void ptrace_unlink(struct task_struct *child) ptrace_unlink() argument 91 if (unlikely(child->ptrace)) ptrace_unlink() 92 __ptrace_unlink(child); ptrace_unlink() 186 * ptrace_init_task - initialize ptrace state for a new child 187 * @child: new child task 188 * @ptrace: true if child should be ptrace'd by parent's tracer 190 * This is called immediately after adding @child to its parent's children 191 * list. @ptrace is false in the normal case, and true to ptrace @child. 195 static inline void ptrace_init_task(struct task_struct *child, bool ptrace) ptrace_init_task() argument 197 INIT_LIST_HEAD(&child->ptrace_entry); ptrace_init_task() 198 INIT_LIST_HEAD(&child->ptraced); ptrace_init_task() 199 child->jobctl = 0; ptrace_init_task() 200 child->ptrace = 0; ptrace_init_task() 201 child->parent = child->real_parent; ptrace_init_task() 204 child->ptrace = current->ptrace; ptrace_init_task() 205 __ptrace_link(child, current->parent); ptrace_init_task() 207 if (child->ptrace & PT_SEIZED) ptrace_init_task() 208 task_set_jobctl_pending(child, JOBCTL_TRAP_STOP); ptrace_init_task() 210 sigaddset(&child->pending.signal, SIGSTOP); ptrace_init_task() 212 set_tsk_thread_flag(child, TIF_SIGPENDING); ptrace_init_task()
|
H A D | i2c-mux-pinctrl.h | 25 * @base_bus_num: Base I2C bus number for the child busses. 0 for dynamic. 26 * @bus_count: Number of child busses. Also the number of elements in 28 * @pinctrl_states: The names of the pinctrl state to select for each child bus 29 * @pinctrl_state_idle: The pinctrl state to select when no child bus is being
|
H A D | rbtree_augmented.h | 140 struct rb_node *child = node->rb_right, *tmp = node->rb_left; __rb_erase_augmented() local 146 * Case 1: node to erase has no more than 1 child (easy!) __rb_erase_augmented() 148 * Note that if there is one child it must be red due to 5) __rb_erase_augmented() 154 __rb_change_child(node, child, parent, root); __rb_erase_augmented() 155 if (child) { __rb_erase_augmented() 156 child->__rb_parent_color = pc; __rb_erase_augmented() 161 } else if (!child) { __rb_erase_augmented() 162 /* Still case 1, but this time the child is node->rb_left */ __rb_erase_augmented() 169 struct rb_node *successor = child, *child2; __rb_erase_augmented() 170 tmp = child->rb_left; __rb_erase_augmented() 173 * Case 2: node's successor is its right child __rb_erase_augmented() 187 * node's right child subtree __rb_erase_augmented() 205 successor->rb_right = child; __rb_erase_augmented() 206 rb_set_parent(child, successor); __rb_erase_augmented()
|
H A D | property.h | 64 struct fwnode_handle *child); 66 #define device_for_each_child_node(dev, child) \ 67 for (child = device_get_next_child_node(dev, NULL); child; \ 68 child = device_get_next_child_node(dev, child))
|
H A D | of_irq.h | 76 extern struct device_node *of_irq_find_parent(struct device_node *child); 85 static inline void *of_irq_find_parent(struct device_node *child) of_irq_find_parent() argument
|
/linux-4.1.27/arch/s390/kernel/ |
H A D | ptrace.c | 147 static inline unsigned long __peek_user_per(struct task_struct *child, __peek_user_per() argument 155 PER_EVENT_IFETCH : child->thread.per_user.control; __peek_user_per() 159 0 : child->thread.per_user.start; __peek_user_per() 163 PSW_ADDR_INSN : child->thread.per_user.end; __peek_user_per() 170 return child->thread.per_user.start; __peek_user_per() 173 return child->thread.per_user.end; __peek_user_per() 177 child->thread.per_event.cause << (BITS_PER_LONG - 16); __peek_user_per() 180 return child->thread.per_event.address; __peek_user_per() 184 child->thread.per_event.paid << (BITS_PER_LONG - 8); __peek_user_per() 197 static unsigned long __peek_user(struct task_struct *child, addr_t addr) __peek_user() argument 206 tmp = *(addr_t *)((addr_t) &task_pt_regs(child)->psw + addr); __peek_user() 224 tmp = ((unsigned long) child->thread.acrs[15]) << 32; __peek_user() 226 tmp = *(addr_t *)((addr_t) &child->thread.acrs + offset); __peek_user() 232 tmp = (addr_t) task_pt_regs(child)->orig_gpr2; __peek_user() 245 tmp = child->thread.fp_regs.fpc; __peek_user() 250 * floating point regs. are either in child->thread.fp_regs __peek_user() 251 * or the child->thread.vxrs array __peek_user() 254 if (child->thread.vxrs) __peek_user() 256 ((addr_t) child->thread.vxrs + 2*offset); __peek_user() 259 ((addr_t) &child->thread.fp_regs.fprs + offset); __peek_user() 266 tmp = __peek_user_per(child, addr); __peek_user() 275 peek_user(struct task_struct *child, addr_t addr, addr_t data) peek_user() argument 290 tmp = __peek_user(child, addr); peek_user() 294 static inline void __poke_user_per(struct task_struct *child, __poke_user_per() argument 313 child->thread.per_user.control = __poke_user_per() 317 child->thread.per_user.start = data; __poke_user_per() 320 child->thread.per_user.end = data; __poke_user_per() 329 static int __poke_user(struct task_struct *child, addr_t addr, addr_t data) __poke_user() argument 341 mask |= is_ri_task(child) ? PSW_MASK_RI : 0; __poke_user() 352 *(addr_t *)((addr_t) &task_pt_regs(child)->psw + addr) = data; __poke_user() 366 child->thread.acrs[15] = (unsigned int) (data >> 32); __poke_user() 368 *(addr_t *)((addr_t) &child->thread.acrs + offset) = data; __poke_user() 374 task_pt_regs(child)->orig_gpr2 = data; __poke_user() 390 child->thread.fp_regs.fpc = data >> (BITS_PER_LONG - 32); __poke_user() 394 * floating point regs. are either in child->thread.fp_regs __poke_user() 395 * or the child->thread.vxrs array __poke_user() 398 if (child->thread.vxrs) __poke_user() 400 child->thread.vxrs + 2*offset) = data; __poke_user() 403 &child->thread.fp_regs.fprs + offset) = data; __poke_user() 410 __poke_user_per(child, addr, data); __poke_user() 417 static int poke_user(struct task_struct *child, addr_t addr, addr_t data) poke_user() argument 432 return __poke_user(child, addr, data); poke_user() 435 long arch_ptrace(struct task_struct *child, long request, arch_ptrace() argument 444 return peek_user(child, addr, data); arch_ptrace() 448 return poke_user(child, addr, data); arch_ptrace() 460 ret = peek_user(child, addr, data); arch_ptrace() 466 ret = poke_user(child, addr, utmp); arch_ptrace() 476 put_user(task_thread_info(child)->last_break, arch_ptrace() 482 child->thread.per_flags &= ~PER_FLAG_NO_TE; arch_ptrace() 487 child->thread.per_flags |= PER_FLAG_NO_TE; arch_ptrace() 488 child->thread.per_flags &= ~PER_FLAG_TE_ABORT_RAND; arch_ptrace() 491 if (!MACHINE_HAS_TE || (child->thread.per_flags & PER_FLAG_NO_TE)) arch_ptrace() 495 child->thread.per_flags &= ~PER_FLAG_TE_ABORT_RAND; arch_ptrace() 498 child->thread.per_flags |= PER_FLAG_TE_ABORT_RAND; arch_ptrace() 499 child->thread.per_flags |= PER_FLAG_TE_ABORT_RAND_TEND; arch_ptrace() 502 child->thread.per_flags |= PER_FLAG_TE_ABORT_RAND; arch_ptrace() 503 child->thread.per_flags &= ~PER_FLAG_TE_ABORT_RAND_TEND; arch_ptrace() 512 return ptrace_request(child, request, addr, data); arch_ptrace() 534 static inline __u32 __peek_user_per_compat(struct task_struct *child, __peek_user_per_compat() argument 542 PER_EVENT_IFETCH : child->thread.per_user.control; __peek_user_per_compat() 546 0 : child->thread.per_user.start; __peek_user_per_compat() 550 PSW32_ADDR_INSN : child->thread.per_user.end; __peek_user_per_compat() 557 return (__u32) child->thread.per_user.start; __peek_user_per_compat() 560 return (__u32) child->thread.per_user.end; __peek_user_per_compat() 563 return (__u32) child->thread.per_event.cause << 16; __peek_user_per_compat() 566 return (__u32) child->thread.per_event.address; __peek_user_per_compat() 569 return (__u32) child->thread.per_event.paid << 24; __peek_user_per_compat() 576 static u32 __peek_user_compat(struct task_struct *child, addr_t addr) __peek_user_compat() argument 583 struct pt_regs *regs = task_pt_regs(child); __peek_user_compat() 605 tmp = *(__u32*)((addr_t) &child->thread.acrs + offset); __peek_user_compat() 611 tmp = *(__u32*)((addr_t) &task_pt_regs(child)->orig_gpr2 + 4); __peek_user_compat() 624 tmp = child->thread.fp_regs.fpc; __peek_user_compat() 628 * floating point regs. are either in child->thread.fp_regs __peek_user_compat() 629 * or the child->thread.vxrs array __peek_user_compat() 632 if (child->thread.vxrs) __peek_user_compat() 634 ((addr_t) child->thread.vxrs + 2*offset); __peek_user_compat() 637 ((addr_t) &child->thread.fp_regs.fprs + offset); __peek_user_compat() 644 tmp = __peek_user_per_compat(child, addr); __peek_user_compat() 652 static int peek_user_compat(struct task_struct *child, peek_user_compat() argument 660 tmp = __peek_user_compat(child, addr); peek_user_compat() 667 static inline void __poke_user_per_compat(struct task_struct *child, __poke_user_per_compat() argument 674 child->thread.per_user.control = __poke_user_per_compat() 678 child->thread.per_user.start = data; __poke_user_per_compat() 681 child->thread.per_user.end = data; __poke_user_per_compat() 687 static int __poke_user_compat(struct task_struct *child, __poke_user_compat() argument 695 struct pt_regs *regs = task_pt_regs(child); __poke_user_compat() 702 mask |= is_ri_task(child) ? PSW32_MASK_RI : 0; __poke_user_compat() 728 *(__u32*)((addr_t) &child->thread.acrs + offset) = tmp; __poke_user_compat() 734 *(__u32*)((addr_t) &task_pt_regs(child)->orig_gpr2 + 4) = tmp; __poke_user_compat() 749 child->thread.fp_regs.fpc = data; __poke_user_compat() 753 * floating point regs. are either in child->thread.fp_regs __poke_user_compat() 754 * or the child->thread.vxrs array __poke_user_compat() 757 if (child->thread.vxrs) __poke_user_compat() 759 child->thread.vxrs + 2*offset) = tmp; __poke_user_compat() 762 &child->thread.fp_regs.fprs + offset) = tmp; __poke_user_compat() 769 __poke_user_per_compat(child, addr, data); __poke_user_compat() 775 static int poke_user_compat(struct task_struct *child, poke_user_compat() argument 782 return __poke_user_compat(child, addr, data); poke_user_compat() 785 long compat_arch_ptrace(struct task_struct *child, compat_long_t request, compat_arch_ptrace() argument 796 return peek_user_compat(child, addr, data); compat_arch_ptrace() 800 return poke_user_compat(child, addr, data); compat_arch_ptrace() 812 ret = peek_user_compat(child, addr, data); compat_arch_ptrace() 818 ret = poke_user_compat(child, addr, utmp); compat_arch_ptrace() 828 put_user(task_thread_info(child)->last_break, compat_arch_ptrace() 832 return compat_ptrace_request(child, request, addr, data); compat_arch_ptrace()
|
/linux-4.1.27/drivers/regulator/ |
H A D | of_regulator.c | 200 * contain a set of child nodes, each providing the init data for one 201 * regulator. The data parsed from a child node will be matched to a regulator 203 * or otherwise the child node's name. Note that the match table is modified 216 struct device_node *child; of_regulator_match() local 239 for_each_child_of_node(node, child) { for_each_child_of_node() 240 name = of_get_property(child, for_each_child_of_node() 243 name = child->name; for_each_child_of_node() 253 of_get_regulator_init_data(dev, child, for_each_child_of_node() 258 child->name); for_each_child_of_node() 261 match->of_node = of_node_get(child); for_each_child_of_node() 276 struct device_node *search, *child; regulator_of_get_init_data() local 295 for_each_child_of_node(search, child) { for_each_child_of_node() 296 name = of_get_property(child, "regulator-compatible", NULL); for_each_child_of_node() 298 name = child->name; for_each_child_of_node() 303 init_data = of_get_regulator_init_data(dev, child, desc); for_each_child_of_node() 307 child->name); for_each_child_of_node() 312 if (desc->of_parse_cb(child, desc, config)) { for_each_child_of_node() 315 child->name); for_each_child_of_node() 321 of_node_get(child); for_each_child_of_node() 322 *node = child; for_each_child_of_node()
|
H A D | mc13xxx-regulator-core.c | 168 struct device_node *parent, *child; mc13xxx_parse_regulators_dt() local 187 for_each_child_of_node(parent, child) { for_each_child_of_node() 193 if (!of_node_cmp(child->name, for_each_child_of_node() 197 &pdev->dev, child, for_each_child_of_node() 199 p->node = child; for_each_child_of_node() 210 "Unknown regulator: %s\n", child->name); for_each_child_of_node()
|
/linux-4.1.27/tools/perf/util/ |
H A D | run-command.h | 20 * - Specify 0 for no redirections (child inherits stdin, stdout, 24 * the readable pipe end becomes child's stdin 26 * it, the writable pipe end becomes child's stdout/stderr 30 * .in: a readable FD, becomes child's stdin 31 * .out: a writable FD, becomes child's stdout/stderr
|
H A D | callchain.c | 299 struct callchain_node *child; __sort_chain_flat() local 303 child = rb_entry(n, struct callchain_node, rb_node_in); __sort_chain_flat() 306 __sort_chain_flat(rb_root, child, min_hit); __sort_chain_flat() 328 struct callchain_node *child; __sort_chain_graph_abs() local 334 child = rb_entry(n, struct callchain_node, rb_node_in); __sort_chain_graph_abs() 337 __sort_chain_graph_abs(child, min_hit); __sort_chain_graph_abs() 338 if (callchain_cumul_hits(child) >= min_hit) __sort_chain_graph_abs() 339 rb_insert_callchain(&node->rb_root, child, __sort_chain_graph_abs() 356 struct callchain_node *child; __sort_chain_graph_rel() local 364 child = rb_entry(n, struct callchain_node, rb_node_in); __sort_chain_graph_rel() 367 __sort_chain_graph_rel(child, min_percent); __sort_chain_graph_rel() 368 if (callchain_cumul_hits(child) >= min_hit) __sort_chain_graph_rel() 369 rb_insert_callchain(&node->rb_root, child, __sort_chain_graph_rel() 402 * Create a child for a parent. If inherit_children, then the new child 412 perror("not enough memory to create child for code path tree"); create_child() 420 struct callchain_node *child; create_child() local 427 child = rb_entry(n, struct callchain_node, rb_node_in); create_child() 428 child->parent = new; create_child() 432 /* make it the first child */ create_child() 501 * Split the parent in two parts (a new child is created) and 502 * give a part of its callchain to the created child. 503 * Then create another child to host the given callchain of new branch 518 /* split the callchain and move a part to the new child */ split_add_child() 533 /* create a new child for the new branch if any */ split_add_child() 547 * This is second child since we moved parent's children split_add_child() 548 * to new (first) child above. split_add_child() 693 struct callchain_node *child; merge_chain_branch() local 713 child = container_of(n, struct callchain_node, rb_node_in); merge_chain_branch() 715 rb_erase(&child->rb_node_in, &src->rb_root_in); merge_chain_branch() 717 err = merge_chain_branch(cursor, dst, child); merge_chain_branch() 721 free(child); merge_chain_branch() 856 struct callchain_node *child; free_callchain_node() local 866 child = container_of(n, struct callchain_node, rb_node_in); free_callchain_node() 868 rb_erase(&child->rb_node_in, &node->rb_root_in); free_callchain_node() 870 free_callchain_node(child); free_callchain_node() 871 free(child); free_callchain_node()
|
/linux-4.1.27/tools/testing/selftests/powerpc/pmu/ebb/ |
H A D | ebb_on_willing_child_test.c | 18 * Tests we can setup an EBB on our child. The child expects this and enables 19 * EBBs, which are then delivered to the child, even though the event is 50 /* Tests we can setup an EBB on our child - if it's expecting it */ ebb_on_willing_child() 66 /* Signal the child to setup its EBB handler */ ebb_on_willing_child()
|
H A D | fork_cleanup_test.c | 20 * Test that a fork clears the PMU state of the child. eg. BESCR/EBBHR/EBBRR 21 * are cleared, and MMCR0_PMCC is reset, preventing the child from accessing 27 static int child(void) child() function 65 exit(child()); fork_cleanup()
|
H A D | cpu_event_vs_ebb_test.c | 64 /* Signal the child to install its EBB event and wait */ cpu_event_vs_ebb() 69 /* Signal the child to run */ cpu_event_vs_ebb() 73 /* We expect the child to succeed */ cpu_event_vs_ebb()
|
H A D | task_event_vs_ebb_test.c | 59 /* Signal the child to install its EBB event and wait */ task_event_vs_ebb() 64 /* Signal the child to run */ task_event_vs_ebb() 68 /* The EBB event should push the task event off so the child should succeed */ task_event_vs_ebb()
|
H A D | cpu_event_pinned_vs_ebb_test.c | 66 /* Signal the child to install its EBB event and wait */ cpu_event_pinned_vs_ebb() 71 /* Signal the child to run */ cpu_event_pinned_vs_ebb()
|
H A D | ebb_on_child_test.c | 18 * Tests we can setup an EBB on our child. Nothing interesting happens, because 19 * even though the event is enabled and running the child hasn't enabled the
|
H A D | ebb_vs_cpu_event_test.c | 57 /* Signal the child to install its EBB event and wait */ ebb_vs_cpu_event() 67 /* Signal the child to run */ ebb_vs_cpu_event()
|
H A D | task_event_pinned_vs_ebb_test.c | 61 /* Signal the child to install its EBB event and wait */ task_event_pinned_vs_ebb() 66 /* Signal the child to run */ task_event_pinned_vs_ebb()
|
/linux-4.1.27/drivers/scsi/libsas/ |
H A D | sas_expander.c | 739 struct domain_device *child, sas_ex_get_linkrate() 746 child->pathways = 0; sas_ex_get_linkrate() 758 SAS_ADDR(child->sas_addr)) { sas_ex_get_linkrate() 760 child->min_linkrate = min(parent->min_linkrate, sas_ex_get_linkrate() 762 child->max_linkrate = max(parent->max_linkrate, sas_ex_get_linkrate() 764 child->pathways++; sas_ex_get_linkrate() 768 child->linkrate = min(parent_phy->linkrate, child->max_linkrate); sas_ex_get_linkrate() 769 child->pathways = min(child->pathways, parent->pathways); sas_ex_get_linkrate() 777 struct domain_device *child = NULL; sas_ex_discover_end_dev() local 784 child = sas_alloc_device(); sas_ex_discover_end_dev() 785 if (!child) sas_ex_discover_end_dev() 789 child->parent = parent; sas_ex_discover_end_dev() 790 child->port = parent->port; sas_ex_discover_end_dev() 791 child->iproto = phy->attached_iproto; sas_ex_discover_end_dev() 792 memcpy(child->sas_addr, phy->attached_sas_addr, SAS_ADDR_SIZE); sas_ex_discover_end_dev() 793 sas_hash_addr(child->hashed_sas_addr, child->sas_addr); sas_ex_discover_end_dev() 803 sas_ex_get_linkrate(parent, child, phy); sas_ex_discover_end_dev() 804 sas_device_set_phy(child, phy->port); sas_ex_discover_end_dev() 808 res = sas_get_ata_info(child, phy); sas_ex_discover_end_dev() 812 sas_init_dev(child); sas_ex_discover_end_dev() 813 res = sas_ata_init(child); sas_ex_discover_end_dev() 820 child->rphy = rphy; sas_ex_discover_end_dev() 823 list_add_tail(&child->disco_list_node, &parent->port->disco_list); sas_ex_discover_end_dev() 825 res = sas_discover_sata(child); sas_ex_discover_end_dev() 829 SAS_ADDR(child->sas_addr), sas_ex_discover_end_dev() 836 child->dev_type = SAS_END_DEVICE; sas_ex_discover_end_dev() 841 child->tproto = phy->attached_tproto; sas_ex_discover_end_dev() 842 sas_init_dev(child); sas_ex_discover_end_dev() 844 child->rphy = rphy; sas_ex_discover_end_dev() 846 sas_fill_in_rphy(child, rphy); sas_ex_discover_end_dev() 848 list_add_tail(&child->disco_list_node, &parent->port->disco_list); sas_ex_discover_end_dev() 850 res = sas_discover_end_dev(child); sas_ex_discover_end_dev() 854 SAS_ADDR(child->sas_addr), sas_ex_discover_end_dev() 865 list_add_tail(&child->siblings, &parent_ex->children); sas_ex_discover_end_dev() 866 return child; sas_ex_discover_end_dev() 869 sas_rphy_free(child->rphy); sas_ex_discover_end_dev() 870 list_del(&child->disco_list_node); sas_ex_discover_end_dev() 872 list_del(&child->dev_list_node); sas_ex_discover_end_dev() 878 sas_put_device(child); sas_ex_discover_end_dev() 911 struct domain_device *child = NULL; sas_ex_discover_expander() local 925 child = sas_alloc_device(); sas_ex_discover_expander() 926 if (!child) sas_ex_discover_expander() 948 child->rphy = rphy; sas_ex_discover_expander() 951 child->dev_type = phy->attached_dev_type; sas_ex_discover_expander() 953 child->parent = parent; sas_ex_discover_expander() 954 child->port = port; sas_ex_discover_expander() 955 child->iproto = phy->attached_iproto; sas_ex_discover_expander() 956 child->tproto = phy->attached_tproto; sas_ex_discover_expander() 957 memcpy(child->sas_addr, phy->attached_sas_addr, SAS_ADDR_SIZE); sas_ex_discover_expander() 958 sas_hash_addr(child->hashed_sas_addr, child->sas_addr); sas_ex_discover_expander() 959 sas_ex_get_linkrate(parent, child, phy); sas_ex_discover_expander() 963 sas_init_dev(child); sas_ex_discover_expander() 964 sas_fill_in_rphy(child, rphy); sas_ex_discover_expander() 968 list_add_tail(&child->dev_list_node, &parent->port->dev_list); sas_ex_discover_expander() 971 res = sas_discover_expander(child); sas_ex_discover_expander() 975 list_del(&child->dev_list_node); sas_ex_discover_expander() 977 sas_put_device(child); sas_ex_discover_expander() 980 list_add_tail(&child->siblings, &parent->ex_dev.children); sas_ex_discover_expander() 981 return child; sas_ex_discover_expander() 988 struct domain_device *child = NULL; sas_ex_discover_dev() local 1054 child = sas_ex_discover_end_dev(dev, phy_id); sas_ex_discover_dev() 1071 child = sas_ex_discover_expander(dev, phy_id); sas_ex_discover_dev() 1077 if (child) { sas_ex_discover_dev() 1089 SAS_ADDR(child->sas_addr)) { sas_ex_discover_dev() 1129 struct domain_device *child; sas_check_level_subtractive_boundary() local 1132 list_for_each_entry(child, &ex->children, siblings) { sas_check_level_subtractive_boundary() 1133 if (child->dev_type != SAS_EDGE_EXPANDER_DEVICE && sas_check_level_subtractive_boundary() 1134 child->dev_type != SAS_FANOUT_EXPANDER_DEVICE) sas_check_level_subtractive_boundary() 1137 sas_find_sub_addr(child, sub_addr); sas_check_level_subtractive_boundary() 1142 if (sas_find_sub_addr(child, s2) && sas_check_level_subtractive_boundary() 1149 SAS_ADDR(child->sas_addr), sas_check_level_subtractive_boundary() 1153 sas_ex_disable_port(child, s2); sas_check_level_subtractive_boundary() 1243 static void sas_print_parent_topology_bug(struct domain_device *child, sas_print_parent_topology_bug() argument 1251 struct domain_device *parent = child->parent; sas_print_parent_topology_bug() 1260 ex_type[child->dev_type], sas_print_parent_topology_bug() 1261 SAS_ADDR(child->sas_addr), sas_print_parent_topology_bug() 1265 sas_route_char(child, child_phy)); sas_print_parent_topology_bug() 1268 static int sas_check_eeds(struct domain_device *child, sas_check_eeds() argument 1273 struct domain_device *parent = child->parent; sas_check_eeds() 1281 SAS_ADDR(child->sas_addr), sas_check_eeds() 1287 memcpy(parent->port->disc.eeds_b, child->sas_addr, sas_check_eeds() 1292 SAS_ADDR(child->sas_addr))) sas_check_eeds() 1297 SAS_ADDR(child->sas_addr)))) sas_check_eeds() 1305 SAS_ADDR(child->sas_addr), sas_check_eeds() 1314 static int sas_check_parent_topology(struct domain_device *child) sas_check_parent_topology() argument 1316 struct expander_device *child_ex = &child->ex_dev; sas_check_parent_topology() 1321 if (!child->parent) sas_check_parent_topology() 1324 if (child->parent->dev_type != SAS_EDGE_EXPANDER_DEVICE && sas_check_parent_topology() 1325 child->parent->dev_type != SAS_FANOUT_EXPANDER_DEVICE) sas_check_parent_topology() 1328 parent_ex = &child->parent->ex_dev; sas_check_parent_topology() 1338 if (SAS_ADDR(parent_phy->attached_sas_addr) != SAS_ADDR(child->sas_addr)) sas_check_parent_topology() 1343 switch (child->parent->dev_type) { sas_check_parent_topology() 1345 if (child->dev_type == SAS_FANOUT_EXPANDER_DEVICE) { sas_check_parent_topology() 1348 sas_print_parent_topology_bug(child, parent_phy, child_phy); sas_check_parent_topology() 1353 res = sas_check_eeds(child, parent_phy, child_phy); sas_check_parent_topology() 1355 sas_print_parent_topology_bug(child, parent_phy, child_phy); sas_check_parent_topology() 1364 sas_print_parent_topology_bug(child, parent_phy, child_phy); sas_check_parent_topology() 1372 sas_print_parent_topology_bug(child, parent_phy, child_phy); sas_check_parent_topology() 1520 * child: child expander 1521 * sas_addr: SAS port identifier of device directly attached to child 1524 struct domain_device *child, sas_configure_parent() 1549 SAS_ADDR(child->sas_addr))) { sas_configure_parent() 1865 struct domain_device *child, *n; sas_unregister_ex_tree() local 1867 list_for_each_entry_safe(child, n, &ex->children, siblings) { sas_unregister_ex_tree() 1868 set_bit(SAS_DEV_GONE, &child->state); sas_unregister_ex_tree() 1869 if (child->dev_type == SAS_EDGE_EXPANDER_DEVICE || sas_unregister_ex_tree() 1870 child->dev_type == SAS_FANOUT_EXPANDER_DEVICE) sas_unregister_ex_tree() 1871 sas_unregister_ex_tree(port, child); sas_unregister_ex_tree() 1873 sas_unregister_dev(port, child); sas_unregister_ex_tree() 1883 struct domain_device *child, *n, *found = NULL; sas_unregister_devs_sas_addr() local 1885 list_for_each_entry_safe(child, n, sas_unregister_devs_sas_addr() 1887 if (SAS_ADDR(child->sas_addr) == sas_unregister_devs_sas_addr() 1889 set_bit(SAS_DEV_GONE, &child->state); sas_unregister_devs_sas_addr() 1890 if (child->dev_type == SAS_EDGE_EXPANDER_DEVICE || sas_unregister_devs_sas_addr() 1891 child->dev_type == SAS_FANOUT_EXPANDER_DEVICE) sas_unregister_devs_sas_addr() 1892 sas_unregister_ex_tree(parent->port, child); sas_unregister_devs_sas_addr() 1894 sas_unregister_dev(parent->port, child); sas_unregister_devs_sas_addr() 1895 found = child; sas_unregister_devs_sas_addr() 1915 struct domain_device *child; sas_discover_bfs_by_root_level() local 1918 list_for_each_entry(child, &ex_root->children, siblings) { sas_discover_bfs_by_root_level() 1919 if (child->dev_type == SAS_EDGE_EXPANDER_DEVICE || sas_discover_bfs_by_root_level() 1920 child->dev_type == SAS_FANOUT_EXPANDER_DEVICE) { sas_discover_bfs_by_root_level() 1922 rphy_to_expander_device(child->rphy); sas_discover_bfs_by_root_level() 1925 res = sas_discover_bfs_by_root_level(child, sas_discover_bfs_by_root_level() 1928 res = sas_ex_discover_devices(child, -1); sas_discover_bfs_by_root_level() 1955 struct domain_device *child; sas_discover_new() local 1970 list_for_each_entry(child, &dev->ex_dev.children, siblings) { sas_discover_new() 1971 if (SAS_ADDR(child->sas_addr) == sas_discover_new() 1973 if (child->dev_type == SAS_EDGE_EXPANDER_DEVICE || sas_discover_new() 1974 child->dev_type == SAS_FANOUT_EXPANDER_DEVICE) sas_discover_new() 1975 res = sas_discover_bfs_by_root(child); sas_discover_new() 738 sas_ex_get_linkrate(struct domain_device *parent, struct domain_device *child, struct ex_phy *parent_phy) sas_ex_get_linkrate() argument 1523 sas_configure_parent(struct domain_device *parent, struct domain_device *child, u8 *sas_addr, int include) sas_configure_parent() argument
|
/linux-4.1.27/net/sched/ |
H A D | sch_red.c | 62 struct Qdisc *child = q->qdisc; red_enqueue() local 67 child->qstats.backlog); red_enqueue() 98 ret = qdisc_enqueue(skb, child); red_enqueue() 116 struct Qdisc *child = q->qdisc; red_dequeue() local 118 skb = child->dequeue(child); red_dequeue() 132 struct Qdisc *child = q->qdisc; red_peek() local 134 return child->ops->peek(child); red_peek() 140 struct Qdisc *child = q->qdisc; red_drop() local 143 if (child->ops->drop && (len = child->ops->drop(child)) > 0) { red_drop() 184 struct Qdisc *child = NULL; red_change() local 204 child = fifo_create_dflt(sch, &bfifo_qdisc_ops, ctl->limit); red_change() 205 if (IS_ERR(child)) red_change() 206 return PTR_ERR(child); red_change() 212 if (child) { red_change() 215 q->qdisc = child; red_change()
|
H A D | sch_prio.c | 191 struct Qdisc *child = q->queues[i]; prio_tune() local 193 if (child != &noop_qdisc) { prio_tune() 194 qdisc_tree_decrease_qlen(child, child->q.qlen); prio_tune() 195 qdisc_destroy(child); prio_tune() 202 struct Qdisc *child, *old; prio_tune() local 204 child = qdisc_create_dflt(sch->dev_queue, prio_tune() 207 if (child) { prio_tune() 210 q->queues[i] = child; prio_tune()
|
H A D | sch_multiq.c | 219 struct Qdisc *child = q->queues[i]; multiq_tune() local 221 qdisc_tree_decrease_qlen(child, child->q.qlen); multiq_tune() 222 qdisc_destroy(child); multiq_tune() 230 struct Qdisc *child, *old; multiq_tune() local 231 child = qdisc_create_dflt(sch->dev_queue, multiq_tune() 235 if (child) { multiq_tune() 238 q->queues[i] = child; multiq_tune()
|
H A D | sch_sfb.c | 81 u32 childdrop; /* drops in child qdisc */ 283 struct Qdisc *child = q->qdisc; sfb_enqueue() local 408 ret = qdisc_enqueue(skb, child); sfb_enqueue() 431 struct Qdisc *child = q->qdisc; sfb_dequeue() local 434 skb = child->dequeue(q->qdisc); sfb_dequeue() 448 struct Qdisc *child = q->qdisc; sfb_peek() local 450 return child->ops->peek(child); sfb_peek() 453 /* No sfb_drop -- impossible since the child doesn't return the dropped skb. */ 494 struct Qdisc *child; sfb_change() local 515 child = fifo_create_dflt(sch, &pfifo_qdisc_ops, limit); sfb_change() 516 if (IS_ERR(child)) sfb_change() 517 return PTR_ERR(child); sfb_change() 523 q->qdisc = child; sfb_change()
|
/linux-4.1.27/drivers/leds/ |
H A D | leds-pwm.c | 100 struct led_pwm *led, struct device_node *child) led_pwm_add() 113 if (child) led_pwm_add() 114 led_data->pwm = devm_of_pwm_get(dev, child, NULL); led_pwm_add() 145 struct device_node *child; led_pwm_create_of() local 151 for_each_child_of_node(dev->of_node, child) { led_pwm_create_of() 152 led.name = of_get_property(child, "label", NULL) ? : led_pwm_create_of() 153 child->name; led_pwm_create_of() 155 led.default_trigger = of_get_property(child, led_pwm_create_of() 157 led.active_low = of_property_read_bool(child, "active-low"); led_pwm_create_of() 158 of_property_read_u32(child, "max-brightness", led_pwm_create_of() 161 ret = led_pwm_add(dev, priv, &led, child); led_pwm_create_of() 163 of_node_put(child); led_pwm_create_of() 99 led_pwm_add(struct device *dev, struct led_pwm_priv *priv, struct led_pwm *led, struct device_node *child) led_pwm_add() argument
|
H A D | leds-syscon.c | 73 struct device_node *child; syscon_leds_spawn() local 76 for_each_available_child_of_node(np, child) { for_each_available_child_of_node() 81 if (of_property_match_string(child, "compatible", for_each_available_child_of_node() 91 if (of_property_read_u32(child, "offset", &sled->offset)) for_each_available_child_of_node() 93 if (of_property_read_u32(child, "mask", &sled->mask)) for_each_available_child_of_node() 96 of_get_property(child, "label", NULL) ? : child->name; for_each_available_child_of_node() 98 of_get_property(child, "linux,default-trigger", NULL); for_each_available_child_of_node() 100 state = of_get_property(child, "default-state", NULL); for_each_available_child_of_node()
|
H A D | leds-gpio.c | 170 struct fwnode_handle *child; gpio_leds_create() local 183 device_for_each_child_node(dev, child) { device_for_each_child_node() 187 led.gpiod = devm_get_gpiod_from_child(dev, NULL, child); device_for_each_child_node() 189 fwnode_handle_put(child); device_for_each_child_node() 194 np = of_node(child); device_for_each_child_node() 196 if (fwnode_property_present(child, "label")) { device_for_each_child_node() 197 fwnode_property_read_string(child, "label", &led.name); device_for_each_child_node() 204 fwnode_property_read_string(child, "linux,default-trigger", device_for_each_child_node() 207 if (!fwnode_property_read_string(child, "default-state", device_for_each_child_node() 217 if (fwnode_property_present(child, "retain-state-suspended")) device_for_each_child_node() 223 fwnode_handle_put(child); device_for_each_child_node()
|
H A D | leds-ns2.c | 261 struct device_node *child; ns2_leds_get_of_pdata() local 275 for_each_child_of_node(np, child) { for_each_child_of_node() 279 ret = of_get_named_gpio(child, "cmd-gpio", 0); for_each_child_of_node() 283 ret = of_get_named_gpio(child, "slow-gpio", 0); for_each_child_of_node() 287 ret = of_property_read_string(child, "label", &string); for_each_child_of_node() 288 leds[i].name = (ret == 0) ? string : child->name; for_each_child_of_node() 289 ret = of_property_read_string(child, "linux,default-trigger", for_each_child_of_node()
|
H A D | leds-mc13783.c | 129 struct device_node *parent, *child; mc13xxx_led_probe_dt() local 156 for_each_child_of_node(parent, child) { for_each_child_of_node() 160 if (of_property_read_u32(child, "reg", &tmp)) for_each_child_of_node() 164 if (!of_property_read_string(child, "label", &str)) for_each_child_of_node() 166 if (!of_property_read_string(child, "linux,default-trigger", for_each_child_of_node()
|
/linux-4.1.27/arch/um/include/asm/ |
H A D | ptrace-generic.h | 33 extern long subarch_ptrace(struct task_struct *child, long request, 35 extern unsigned long getreg(struct task_struct *child, int regno); 36 extern int putreg(struct task_struct *child, int regno, unsigned long value);
|
/linux-4.1.27/arch/blackfin/include/asm/ |
H A D | ptrace.h | 19 #define ptrace_disable(child) user_disable_single_step(child) 22 extern int is_user_addr_valid(struct task_struct *child,
|
/linux-4.1.27/fs/ext4/ |
H A D | crypto_policy.c | 127 struct inode *child) ext4_is_child_context_consistent_with_parent() 132 if ((parent == NULL) || (child == NULL)) { ext4_is_child_context_consistent_with_parent() 133 pr_err("parent %p child %p\n", parent, child); ext4_is_child_context_consistent_with_parent() 144 /* if the child directory is not encrypted, this is always a problem */ ext4_is_child_context_consistent_with_parent() 145 if (!ext4_encrypted_inode(child)) ext4_is_child_context_consistent_with_parent() 147 res = ext4_xattr_get(child, EXT4_XATTR_INDEX_ENCRYPTION, ext4_is_child_context_consistent_with_parent() 162 * ext4_inherit_context() - Sets a child context from its parent 164 * @child: Child inode that inherits the context from @parent. 168 int ext4_inherit_context(struct inode *parent, struct inode *child) ext4_inherit_context() argument 191 res = ext4_xattr_set(child, EXT4_XATTR_INDEX_ENCRYPTION, ext4_inherit_context() 196 ext4_set_inode_flag(child, EXT4_INODE_ENCRYPT); ext4_inherit_context() 126 ext4_is_child_context_consistent_with_parent(struct inode *parent, struct inode *child) ext4_is_child_context_consistent_with_parent() argument
|
/linux-4.1.27/drivers/of/ |
H A D | of_mdio.c | 43 static int of_mdiobus_register_phy(struct mii_bus *mdio, struct device_node *child, of_mdiobus_register_phy() argument 51 is_c45 = of_device_is_compatible(child, of_mdiobus_register_phy() 54 if (!is_c45 && !of_get_phy_id(child, &phy_id)) of_mdiobus_register_phy() 61 rc = irq_of_parse_and_map(child, 0); of_mdiobus_register_phy() 73 of_node_get(child); of_mdiobus_register_phy() 74 phy->dev.of_node = child; of_mdiobus_register_phy() 81 of_node_put(child); of_mdiobus_register_phy() 86 child->name, addr); of_mdiobus_register_phy() 119 * for each child node of @np. 123 struct device_node *child; of_mdiobus_register() local 144 /* Loop over the child nodes and register a phy_device for each one */ for_each_available_child_of_node() 145 for_each_available_child_of_node(np, child) { for_each_available_child_of_node() 146 addr = of_mdio_parse_addr(&mdio->dev, child); for_each_available_child_of_node() 152 rc = of_mdiobus_register_phy(mdio, child, addr); for_each_available_child_of_node() 161 for_each_available_child_of_node(np, child) { for_each_available_child_of_node() 163 paddr = of_get_property(child, "reg", NULL); for_each_available_child_of_node() 174 child->name, addr); for_each_available_child_of_node() 176 rc = of_mdiobus_register_phy(mdio, child, addr); for_each_available_child_of_node()
|
H A D | resolver.c | 27 * the child node links. 32 struct device_node *child, *found; __of_find_node_by_full_name() local 41 for_each_child_of_node(node, child) { for_each_child_of_node() 42 found = __of_find_node_by_full_name(child, full_name); for_each_child_of_node() 80 struct device_node *child; __of_adjust_tree_phandles() local 110 for_each_child_of_node(node, child) 111 __of_adjust_tree_phandles(child, phandle_delta); 214 struct device_node *child, *childtarget; __of_adjust_tree_phandle_references() local 270 for_each_child_of_node(node, child) { for_each_child_of_node() 273 if (__of_node_name_cmp(child, childtarget) == 0) for_each_child_of_node() 277 pr_err("%s: Could not find target child '%s' @%s\n", for_each_child_of_node() 278 __func__, child->name, node->full_name); for_each_child_of_node() 282 err = __of_adjust_tree_phandle_references(child, childtarget, 306 struct device_node *child, *childroot, *refnode; of_resolve_phandles() local 346 for_each_child_of_node(resolve, child) { for_each_child_of_node() 349 of_node_cmp(child->name, "__symbols__") == 0) for_each_child_of_node() 350 resolve_sym = child; for_each_child_of_node() 353 of_node_cmp(child->name, "__fixups__") == 0) for_each_child_of_node() 354 resolve_fix = child; for_each_child_of_node()
|
H A D | overlay.c | 86 struct device_node *target, struct device_node *child) of_overlay_apply_single_device_node() 92 cname = kbasename(child->full_name); of_overlay_apply_single_device_node() 100 ret = of_overlay_apply_one(ov, tchild, child); of_overlay_apply_single_device_node() 104 tchild = __of_node_dup(child, "%s/%s", target->full_name, cname); of_overlay_apply_single_device_node() 115 ret = of_overlay_apply_one(ov, tchild, child); of_overlay_apply_single_device_node() 133 struct device_node *child; of_overlay_apply_one() local 146 for_each_child_of_node(overlay, child) { for_each_child_of_node() 147 ret = of_overlay_apply_single_device_node(ov, target, child); for_each_child_of_node() 151 child->name); for_each_child_of_node() 225 * __overlay__ child node which has the overlay contents. 270 /* worst case; every child is a node */ of_build_overlay_info() 413 struct device_node *child; overlay_subtree_check() local 419 for_each_child_of_node(tree, child) { for_each_child_of_node() 420 if (overlay_subtree_check(child, dn)) for_each_child_of_node() 85 of_overlay_apply_single_device_node(struct of_overlay *ov, struct device_node *target, struct device_node *child) of_overlay_apply_single_device_node() argument
|
H A D | platform.c | 325 * recursively create devices for all the child nodes. 333 struct device_node *child; of_platform_bus_create() local 365 for_each_child_of_node(bus, child) { for_each_child_of_node() 366 pr_debug(" create child: %s\n", child->full_name); for_each_child_of_node() 367 rc = of_platform_bus_create(child, matches, lookup, &dev->dev, strict); for_each_child_of_node() 369 of_node_put(child); for_each_child_of_node() 390 struct device_node *child; of_platform_bus_probe() local 403 } else for_each_child_of_node(root, child) { for_each_child_of_node() 404 if (!of_match_node(matches, child)) for_each_child_of_node() 406 rc = of_platform_bus_create(child, matches, NULL, parent, false); for_each_child_of_node() 440 struct device_node *child; of_platform_populate() local 447 for_each_child_of_node(root, child) { for_each_child_of_node() 448 rc = of_platform_bus_create(child, matches, lookup, parent, true); for_each_child_of_node()
|
H A D | unittest.c | 201 struct device_node *child; of_unittest_check_node_linkage() local 204 for_each_child_of_node(np, child) { for_each_child_of_node() 205 if (child->parent != np) { for_each_child_of_node() 207 child->name, np->name); for_each_child_of_node() 211 rc = of_unittest_check_node_linkage(child); for_each_child_of_node() 517 n2->child = n21; of_unittest_changeset() 762 struct device_node *np, *child, *grandchild; of_unittest_platform_populate() local 800 for_each_child_of_node(np, child) { for_each_child_of_node() 801 for_each_child_of_node(child, grandchild) for_each_child_of_node() 808 for_each_child_of_node(np, child) { for_each_child_of_node() 809 for_each_child_of_node(child, grandchild) for_each_child_of_node() 831 struct device_node *child; update_node_properties() local 836 for_each_child_of_node(np, child) update_node_properties() 837 child->parent = dup; update_node_properties() 848 struct device_node *next, *dup, *child; attach_node_and_children() local 857 child = np->child; attach_node_and_children() 858 np->child = NULL; attach_node_and_children() 862 np->sibling = np->parent->child; attach_node_and_children() 863 np->parent->child = np; attach_node_and_children() 870 while (child) { attach_node_and_children() 871 next = child->sibling; attach_node_and_children() 872 attach_node_and_children(child); attach_node_and_children() 873 child = next; attach_node_and_children() 932 np = unittest_data_node->child; unittest_data_add() 1520 if (unittest(ret, "overlay test %d failed; no child device\n", 10)) of_unittest_overlay_10() 1695 struct device_node *np = client->dev.of_node, *child; unittest_i2c_mux_probe() local 1707 for_each_child_of_node(np, child) { for_each_child_of_node() 1708 ret = of_property_read_u32(child, "reg", ®); for_each_child_of_node()
|
/linux-4.1.27/fs/nfs/ |
H A D | nfs4sysctl.c | 43 .child = nfs4_cb_sysctls, 52 .child = nfs4_cb_sysctl_dir,
|
H A D | sysctl.c | 38 .child = nfs_cb_sysctls, 47 .child = nfs_cb_sysctl_dir,
|
/linux-4.1.27/arch/blackfin/kernel/ |
H A D | ptrace.c | 32 * does not yet catch signals sent when the child dies. 118 is_user_addr_valid(struct task_struct *child, unsigned long start, unsigned long len) is_user_addr_valid() argument 128 down_read(&child->mm->mmap_sem); is_user_addr_valid() 129 vma = find_vma(child->mm, start); is_user_addr_valid() 131 up_read(&child->mm->mmap_sem); is_user_addr_valid() 135 for (sraml = child->mm->context.sram_list; sraml; sraml = sraml->next) is_user_addr_valid() 144 if (child->mm->context.l1_stack_save) is_user_addr_valid() 231 void user_enable_single_step(struct task_struct *child) user_enable_single_step() argument 233 struct pt_regs *regs = task_pt_regs(child); user_enable_single_step() 236 set_tsk_thread_flag(child, TIF_SINGLESTEP); user_enable_single_step() 239 void user_disable_single_step(struct task_struct *child) user_disable_single_step() argument 241 struct pt_regs *regs = task_pt_regs(child); user_disable_single_step() 244 clear_tsk_thread_flag(child, TIF_SINGLESTEP); user_disable_single_step() 247 long arch_ptrace(struct task_struct *child, long request, arch_ptrace() argument 266 if (is_user_addr_valid(child, addr, to_copy) < 0) arch_ptrace() 273 copied = access_process_vm(child, addr, &tmp, arch_ptrace() 319 if (is_user_addr_valid(child, addr, to_copy) < 0) arch_ptrace() 326 copied = access_process_vm(child, addr, &data, arch_ptrace() 361 ret = get_reg(child, addr, datap); arch_ptrace() 367 ret = put_reg(child, addr, data); arch_ptrace() 373 return copy_regset_to_user(child, &user_bfin_native_view, arch_ptrace() 380 return copy_regset_from_user(child, &user_bfin_native_view, arch_ptrace() 387 ret = ptrace_request(child, request, addr, data); arch_ptrace()
|
/linux-4.1.27/scripts/dtc/ |
H A D | livetree.c | 103 struct node *child; build_node() local 110 for_each_child(new, child) { for_each_child() 111 child->parent = new; for_each_child() 183 /* Move the override child nodes into the primary node. If 186 /* Pop the child node off the list */ 207 /* if no collision occured, add child to the old node. */ 259 void add_child(struct node *parent, struct node *child) add_child() argument 263 child->next_sibling = NULL; add_child() 264 child->parent = parent; add_child() 270 *p = child; add_child() 289 struct node *child; delete_node() local 292 for_each_child(node, child) delete_node() 293 delete_node(child); delete_node() 436 struct node *child; get_subnode() local 438 for_each_child(node, child) get_subnode() 439 if (streq(child->name, nodename)) get_subnode() 440 return child; get_subnode() 448 struct node *child; get_node_by_path() local 461 for_each_child(tree, child) { for_each_child() 462 if (p && strneq(path, child->name, p-path)) for_each_child() 463 return get_node_by_path(child, p+1); for_each_child() 464 else if (!p && streq(path, child->name)) for_each_child() 465 return child; for_each_child() 473 struct node *child, *node; get_node_by_label() local 482 for_each_child(tree, child) { for_each_child() 483 node = get_node_by_label(child, label); for_each_child() 493 struct node *child, *node; get_node_by_phandle() local 503 for_each_child(tree, child) { for_each_child() 504 node = get_node_by_phandle(child, phandle); for_each_child()
|
/linux-4.1.27/net/ipv4/ |
H A D | tcp_fastopen.c | 134 struct sock *child; tcp_fastopen_create_child() local 141 child = inet_csk(sk)->icsk_af_ops->syn_recv_sock(sk, skb, req, NULL); tcp_fastopen_create_child() 142 if (!child) tcp_fastopen_create_child() 149 /* Initialize the child socket. Have to fix some values to take tcp_fastopen_create_child() 150 * into account the child is a Fast Open socket and is created tcp_fastopen_create_child() 153 tp = tcp_sk(child); tcp_fastopen_create_child() 167 inet_csk_reset_xmit_timer(child, ICSK_TIME_RETRANS, tcp_fastopen_create_child() 171 /* Add the child socket directly into the accept queue */ tcp_fastopen_create_child() 172 inet_csk_reqsk_queue_add(sk, req, child); tcp_fastopen_create_child() 174 /* Now finish processing the fastopen child socket. */ tcp_fastopen_create_child() 175 inet_csk(child)->icsk_af_ops->rebuild_header(child); tcp_fastopen_create_child() 176 tcp_init_congestion_control(child); tcp_fastopen_create_child() 177 tcp_mtup_init(child); tcp_fastopen_create_child() 178 tcp_init_metrics(child); tcp_fastopen_create_child() 179 tcp_init_buffer_space(child); tcp_fastopen_create_child() 204 skb_set_owner_r(skb2, child); tcp_fastopen_create_child() 205 __skb_queue_tail(&child->sk_receive_queue, skb2); tcp_fastopen_create_child() 218 bh_unlock_sock(child); tcp_fastopen_create_child() 219 sock_put(child); tcp_fastopen_create_child() 290 /* Cookie is valid. Create a (full) child socket to accept tcp_try_fastopen()
|
/linux-4.1.27/drivers/net/wireless/ti/wlcore/ |
H A D | spi.c | 86 static void wl12xx_spi_reset(struct device *child) wl12xx_spi_reset() argument 88 struct wl12xx_spi_glue *glue = dev_get_drvdata(child->parent); wl12xx_spi_reset() 95 dev_err(child->parent, wl12xx_spi_reset() 114 static void wl12xx_spi_init(struct device *child) wl12xx_spi_init() argument 116 struct wl12xx_spi_glue *glue = dev_get_drvdata(child->parent); wl12xx_spi_init() 122 dev_err(child->parent, wl12xx_spi_init() 168 static int wl12xx_spi_read_busy(struct device *child) wl12xx_spi_read_busy() argument 170 struct wl12xx_spi_glue *glue = dev_get_drvdata(child->parent); wl12xx_spi_read_busy() 171 struct wl1271 *wl = dev_get_drvdata(child); wl12xx_spi_read_busy() 199 dev_err(child->parent, "SPI read busy-word timeout!\n"); wl12xx_spi_read_busy() 203 static int __must_check wl12xx_spi_raw_read(struct device *child, int addr, wl12xx_spi_raw_read() argument 206 struct wl12xx_spi_glue *glue = dev_get_drvdata(child->parent); wl12xx_spi_raw_read() 207 struct wl1271 *wl = dev_get_drvdata(child); wl12xx_spi_raw_read() 246 wl12xx_spi_read_busy(child)) { wl12xx_spi_raw_read() 270 static int __must_check wl12xx_spi_raw_write(struct device *child, int addr, wl12xx_spi_raw_write() argument 273 struct wl12xx_spi_glue *glue = dev_get_drvdata(child->parent); wl12xx_spi_raw_write()
|
H A D | sdio.c | 64 static void wl1271_sdio_set_block_size(struct device *child, wl1271_sdio_set_block_size() argument 67 struct wl12xx_sdio_glue *glue = dev_get_drvdata(child->parent); wl1271_sdio_set_block_size() 75 static int __must_check wl12xx_sdio_raw_read(struct device *child, int addr, wl12xx_sdio_raw_read() argument 79 struct wl12xx_sdio_glue *glue = dev_get_drvdata(child->parent); wl12xx_sdio_raw_read() 93 dev_dbg(child->parent, "sdio read 52 addr 0x%x, byte 0x%02x\n", wl12xx_sdio_raw_read() 101 dev_dbg(child->parent, "sdio read 53 addr 0x%x, %zu bytes\n", wl12xx_sdio_raw_read() 108 dev_err(child->parent, "sdio read failed (%d)\n", ret); wl12xx_sdio_raw_read() 113 static int __must_check wl12xx_sdio_raw_write(struct device *child, int addr, wl12xx_sdio_raw_write() argument 117 struct wl12xx_sdio_glue *glue = dev_get_drvdata(child->parent); wl12xx_sdio_raw_write() 131 dev_dbg(child->parent, "sdio write 52 addr 0x%x, byte 0x%02x\n", wl12xx_sdio_raw_write() 134 dev_dbg(child->parent, "sdio write 53 addr 0x%x, %zu bytes\n", wl12xx_sdio_raw_write() 146 dev_err(child->parent, "sdio write failed (%d)\n", ret); wl12xx_sdio_raw_write() 201 static int wl12xx_sdio_set_power(struct device *child, bool enable) wl12xx_sdio_set_power() argument 203 struct wl12xx_sdio_glue *glue = dev_get_drvdata(child->parent); wl12xx_sdio_set_power()
|
/linux-4.1.27/arch/x86/um/asm/ |
H A D | ptrace.h | 50 extern int ptrace_get_thread_area(struct task_struct *child, int idx, 53 extern int ptrace_set_thread_area(struct task_struct *child, int idx, 69 static inline int ptrace_get_thread_area(struct task_struct *child, int idx, ptrace_get_thread_area() argument 75 static inline int ptrace_set_thread_area(struct task_struct *child, int idx, ptrace_set_thread_area() argument
|
/linux-4.1.27/tools/testing/selftests/mount/ |
H A D | unprivileged-remount-test.c | 184 pid_t child; test_unpriv_remount() local 186 child = fork(); test_unpriv_remount() 187 if (child == -1) { test_unpriv_remount() 191 if (child != 0) { /* parent */ test_unpriv_remount() 194 pid = waitpid(child, &status, 0); test_unpriv_remount() 199 if (pid != child) { test_unpriv_remount() 201 child, pid); test_unpriv_remount() 204 die("child did not terminate cleanly\n"); test_unpriv_remount() 258 pid_t child; test_priv_mount_unpriv_remount() local 264 child = fork(); test_priv_mount_unpriv_remount() 265 if (child == -1) { test_priv_mount_unpriv_remount() 269 if (child != 0) { /* parent */ test_priv_mount_unpriv_remount() 272 pid = waitpid(child, &status, 0); test_priv_mount_unpriv_remount() 277 if (pid != child) { test_priv_mount_unpriv_remount() 279 child, pid); test_priv_mount_unpriv_remount() 282 die("child did not terminate cleanly\n"); test_priv_mount_unpriv_remount()
|
/linux-4.1.27/drivers/i2c/busses/ |
H A D | i2c-pxa-pci.c | 25 struct device_node *child; add_i2c_device() local 40 for_each_child_of_node(dev->dev.of_node, child) { add_i2c_device() 45 ret = of_address_to_resource(child, 0, &r); add_i2c_device() 55 prop = of_get_property(child, "fast-mode", NULL); add_i2c_device() 62 if (!child) { add_i2c_device() 71 of_node_put(child); add_i2c_device() 76 pdev->dev.of_node = child; add_i2c_device()
|
/linux-4.1.27/include/uapi/linux/ |
H A D | sched.h | 12 #define CLONE_PTRACE 0x00002000 /* set if we want to let tracing continue on the child too */ 13 #define CLONE_VFORK 0x00004000 /* set if the parent wants the child to wake it up on mm_release */ 18 #define CLONE_SETTLS 0x00080000 /* create a new TLS for the child */ 20 #define CLONE_CHILD_CLEARTID 0x00200000 /* clear the TID in the child */ 23 #define CLONE_CHILD_SETTID 0x01000000 /* set the TID in the child */
|
H A D | cn_proc.h | 41 * child process ID = child->tgid 42 * child thread ID = child->pid
|
/linux-4.1.27/arch/mn10300/kernel/ |
H A D | ptrace.c | 262 void user_enable_single_step(struct task_struct *child) user_enable_single_step() argument 268 tmp = get_stack_long(child, (unsigned long) &dummy->regs.epsw); user_enable_single_step() 270 put_stack_long(child, (unsigned long) &dummy->regs.epsw, tmp); user_enable_single_step() 277 void user_disable_single_step(struct task_struct *child) user_disable_single_step() argument 283 tmp = get_stack_long(child, (unsigned long) &dummy->regs.epsw); user_disable_single_step() 285 put_stack_long(child, (unsigned long) &dummy->regs.epsw, tmp); user_disable_single_step() 289 void ptrace_disable(struct task_struct *child) ptrace_disable() argument 291 user_disable_single_step(child); ptrace_disable() 297 long arch_ptrace(struct task_struct *child, long request, arch_ptrace() argument 313 tmp = get_stack_long(child, arch_ptrace() 326 ret = put_stack_long(child, ptrace_regid_to_frame[addr], arch_ptrace() 330 case PTRACE_GETREGS: /* Get all integer regs from the child. */ arch_ptrace() 331 return copy_regset_to_user(child, &user_mn10300_native_view, arch_ptrace() 336 case PTRACE_SETREGS: /* Set all integer regs in the child. */ arch_ptrace() 337 return copy_regset_from_user(child, &user_mn10300_native_view, arch_ptrace() 342 case PTRACE_GETFPREGS: /* Get the child FPU state. */ arch_ptrace() 343 return copy_regset_to_user(child, &user_mn10300_native_view, arch_ptrace() 348 case PTRACE_SETFPREGS: /* Set the child FPU state. */ arch_ptrace() 349 return copy_regset_from_user(child, &user_mn10300_native_view, arch_ptrace() 355 ret = ptrace_request(child, request, addr, data); arch_ptrace()
|
/linux-4.1.27/drivers/memory/ |
H A D | jz4780-nemc.c | 58 * @dev: device to count banks for, must be a child of the NEMC. 61 * child device. Unique here means that a device that references the same bank 85 * @dev: child device of the NEMC. 114 * @dev: child device of the NEMC. 271 struct device_node *child; jz4780_nemc_probe() local 313 * Iterate over child devices, check that they do not conflict with jz4780_nemc_probe() 314 * each other, and register child devices for them. If a child device jz4780_nemc_probe() 318 for_each_child_of_node(nemc->dev->of_node, child) { jz4780_nemc_probe() 321 while ((prop = of_get_address(child, i++, NULL, NULL))) { jz4780_nemc_probe() 326 child->full_name, bank); jz4780_nemc_probe() 338 child->full_name); jz4780_nemc_probe() 342 child->full_name); jz4780_nemc_probe() 348 if (!jz4780_nemc_configure_bank(nemc, bank, child)) { jz4780_nemc_probe() 355 if (of_platform_device_create(child, NULL, nemc->dev)) jz4780_nemc_probe()
|
H A D | omap-gpmc.c | 1668 * @np: pointer to device-tree node for a gpmc child device 1671 * Reads the GPMC settings for a GPMC child device from device-tree and 1781 struct device_node *child) gpmc_probe_nand_child() 1788 if (of_property_read_u32(child, "reg", &val) < 0) { gpmc_probe_nand_child() 1790 child->full_name); gpmc_probe_nand_child() 1800 gpmc_nand_data->of_node = child; gpmc_probe_nand_child() 1803 gpmc_nand_data->elm_of_node = of_parse_phandle(child, "ti,elm-id", 0); gpmc_probe_nand_child() 1806 of_parse_phandle(child, "elm_id", 0); gpmc_probe_nand_child() 1809 if (of_property_read_string(child, "ti,nand-ecc-opt", &s)) { gpmc_probe_nand_child() 1844 if (!of_property_read_string(child, "ti,nand-xfer-type", &s)) gpmc_probe_nand_child() 1851 gpmc_nand_data->flash_bbt = of_get_nand_on_flash_bbt(child); gpmc_probe_nand_child() 1853 val = of_get_nand_bus_width(child); gpmc_probe_nand_child() 1857 gpmc_read_timings_dt(child, &gpmc_t); gpmc_probe_nand_child() 1864 struct device_node *child) gpmc_probe_nand_child() 1872 struct device_node *child) gpmc_probe_onenand_child() 1877 if (of_property_read_u32(child, "reg", &val) < 0) { gpmc_probe_onenand_child() 1879 child->full_name); gpmc_probe_onenand_child() 1889 gpmc_onenand_data->of_node = child; gpmc_probe_onenand_child() 1892 if (!of_property_read_u32(child, "dma-channel", &val)) gpmc_probe_onenand_child() 1901 struct device_node *child) gpmc_probe_onenand_child() 1908 * gpmc_probe_generic_child - configures the gpmc for a child device 1910 * @child: pointer to device-tree node for child device 1912 * Allocates and configures a GPMC chip-select for a child device. 1916 struct device_node *child) gpmc_probe_generic_child() 1926 if (of_property_read_u32(child, "reg", &cs) < 0) { gpmc_probe_generic_child() 1928 child->full_name); gpmc_probe_generic_child() 1932 if (of_address_to_resource(child, 0, &res) < 0) { gpmc_probe_generic_child() 1934 child->full_name); gpmc_probe_generic_child() 1944 if (name && child->name && of_node_cmp(child->name, name) == 0) gpmc_probe_generic_child() 1952 gpmc_cs_set_name(cs, child->name); gpmc_probe_generic_child() 1954 gpmc_read_settings_dt(child, &gpmc_s); gpmc_probe_generic_child() 1955 gpmc_read_timings_dt(child, &gpmc_t); gpmc_probe_generic_child() 1988 ret = of_property_read_u32(child, "bank-width", &gpmc_s.device_width); gpmc_probe_generic_child() 1999 child->name); gpmc_probe_generic_child() 2014 if (!of_platform_device_create(child, NULL, &pdev->dev)) gpmc_probe_generic_child() 2017 /* is child a common bus? */ gpmc_probe_generic_child() 2018 if (of_match_node(of_default_bus_match_table, child)) gpmc_probe_generic_child() 2020 if (of_platform_populate(child, of_default_bus_match_table, gpmc_probe_generic_child() 2028 dev_err(&pdev->dev, "failed to create gpmc child %s\n", child->name); gpmc_probe_generic_child() 2040 struct device_node *child; gpmc_probe_dt() local 2068 for_each_available_child_of_node(pdev->dev.of_node, child) { gpmc_probe_dt() 2070 if (!child->name) gpmc_probe_dt() 2073 if (of_node_cmp(child->name, "nand") == 0) gpmc_probe_dt() 2074 ret = gpmc_probe_nand_child(pdev, child); gpmc_probe_dt() 2075 else if (of_node_cmp(child->name, "onenand") == 0) gpmc_probe_dt() 2076 ret = gpmc_probe_onenand_child(pdev, child); gpmc_probe_dt() 2077 else if (of_node_cmp(child->name, "ethernet") == 0 || gpmc_probe_dt() 2078 of_node_cmp(child->name, "nor") == 0 || gpmc_probe_dt() 2079 of_node_cmp(child->name, "uart") == 0) gpmc_probe_dt() 2080 ret = gpmc_probe_generic_child(pdev, child); gpmc_probe_dt() 2082 if (WARN(ret < 0, "%s: probing gpmc child %s failed\n", gpmc_probe_dt() 2083 __func__, child->full_name)) gpmc_probe_dt() 2084 of_node_put(child); gpmc_probe_dt() 1780 gpmc_probe_nand_child(struct platform_device *pdev, struct device_node *child) gpmc_probe_nand_child() argument 1863 gpmc_probe_nand_child(struct platform_device *pdev, struct device_node *child) gpmc_probe_nand_child() argument 1871 gpmc_probe_onenand_child(struct platform_device *pdev, struct device_node *child) gpmc_probe_onenand_child() argument 1900 gpmc_probe_onenand_child(struct platform_device *pdev, struct device_node *child) gpmc_probe_onenand_child() argument 1915 gpmc_probe_generic_child(struct platform_device *pdev, struct device_node *child) gpmc_probe_generic_child() argument
|
/linux-4.1.27/arch/ia64/kernel/ |
H A D | ptrace.c | 199 * kernel RNAT values and/or the RNAT value saved in the child's 402 ia64_peek (struct task_struct *child, struct switch_stack *child_stack, ia64_peek() argument 412 child_regs = task_pt_regs(child); ia64_peek() 414 krbs = (unsigned long *) child + IA64_RBS_OFFSET/8; ia64_peek() 424 ret = get_rnat(child, child_stack, krbs, rnat_addr, urbs_end); ia64_peek() 456 copied = access_process_vm(child, addr, &ret, sizeof(ret), 0); ia64_peek() 464 ia64_poke (struct task_struct *child, struct switch_stack *child_stack, ia64_poke() argument 472 child_regs = task_pt_regs(child); ia64_poke() 474 krbs = (unsigned long *) child + IA64_RBS_OFFSET/8; ia64_poke() 484 put_rnat(child, child_stack, krbs, laddr, val, ia64_poke() 492 } else if (access_process_vm(child, addr, &val, sizeof(val), 1) ia64_poke() 507 ia64_get_user_rbs_end (struct task_struct *child, struct pt_regs *pt, ia64_get_user_rbs_end() argument 513 krbs = (unsigned long *) child + IA64_RBS_OFFSET/8; ia64_get_user_rbs_end() 535 ia64_sync_user_rbs (struct task_struct *child, struct switch_stack *sw, ia64_sync_user_rbs() argument 543 ret = ia64_peek(child, sw, user_rbs_end, addr, &val); ia64_sync_user_rbs() 546 if (access_process_vm(child, addr, &val, sizeof(val), 1) ia64_sync_user_rbs() 554 ia64_sync_kernel_rbs (struct task_struct *child, struct switch_stack *sw, ia64_sync_kernel_rbs() argument 562 if (access_process_vm(child, addr, &val, sizeof(val), 0) ia64_sync_kernel_rbs() 566 ret = ia64_poke(child, sw, user_rbs_end, addr, val); ia64_sync_kernel_rbs() 622 * But if the child was already stopped for job control when we attach 627 ptrace_attach_sync_user_rbs (struct task_struct *child) ptrace_attach_sync_user_rbs() argument 633 * If the child is in TASK_STOPPED, we need to change that to ptrace_attach_sync_user_rbs() 635 * that the child won't be woken up and return to user mode while ptrace_attach_sync_user_rbs() 640 if (child->sighand) { ptrace_attach_sync_user_rbs() 641 spin_lock_irq(&child->sighand->siglock); ptrace_attach_sync_user_rbs() 642 if (child->state == TASK_STOPPED && ptrace_attach_sync_user_rbs() 643 !test_and_set_tsk_thread_flag(child, TIF_RESTORE_RSE)) { ptrace_attach_sync_user_rbs() 644 set_notify_resume(child); ptrace_attach_sync_user_rbs() 646 child->state = TASK_TRACED; ptrace_attach_sync_user_rbs() 649 spin_unlock_irq(&child->sighand->siglock); ptrace_attach_sync_user_rbs() 656 unw_init_from_blocked_task(&info, child); ptrace_attach_sync_user_rbs() 660 * Now move the child back into TASK_STOPPED if it should be in a ptrace_attach_sync_user_rbs() 664 if (child->sighand) { ptrace_attach_sync_user_rbs() 665 spin_lock_irq(&child->sighand->siglock); ptrace_attach_sync_user_rbs() 666 if (child->state == TASK_TRACED && ptrace_attach_sync_user_rbs() 667 (child->signal->flags & SIGNAL_STOP_STOPPED)) { ptrace_attach_sync_user_rbs() 668 child->state = TASK_STOPPED; ptrace_attach_sync_user_rbs() 670 spin_unlock_irq(&child->sighand->siglock); ptrace_attach_sync_user_rbs() 723 convert_to_non_syscall (struct task_struct *child, struct pt_regs *pt, convert_to_non_syscall() argument 729 unw_init_from_blocked_task(&info, child); convert_to_non_syscall() 736 if ((long)((unsigned long)child + IA64_STK_OFFSET - sp) convert_to_non_syscall() 783 access_nat_bits (struct task_struct *child, struct pt_regs *pt, access_nat_bits() argument 818 access_uarea (struct task_struct *child, unsigned long addr, 822 ptrace_getregs (struct task_struct *child, struct pt_all_user_regs __user *ppr) ptrace_getregs() argument 836 pt = task_pt_regs(child); ptrace_getregs() 837 sw = (struct switch_stack *) (child->thread.ksp + 16); ptrace_getregs() 838 unw_init_from_blocked_task(&info, child); ptrace_getregs() 848 if (access_uarea(child, PT_CR_IPSR, &psr, 0) < 0 ptrace_getregs() 849 || access_uarea(child, PT_AR_EC, &ec, 0) < 0 ptrace_getregs() 850 || access_uarea(child, PT_AR_LC, &lc, 0) < 0 ptrace_getregs() 851 || access_uarea(child, PT_AR_RNAT, &rnat, 0) < 0 ptrace_getregs() 852 || access_uarea(child, PT_AR_BSP, &bsp, 0) < 0 ptrace_getregs() 853 || access_uarea(child, PT_CFM, &cfm, 0) ptrace_getregs() 854 || access_uarea(child, PT_NAT_BITS, &nat_bits, 0)) ptrace_getregs() 949 ia64_flush_fph(child); ptrace_getregs() 950 retval |= __copy_to_user(&ppr->fr[32], &child->thread.fph, ptrace_getregs() 966 ptrace_setregs (struct task_struct *child, struct pt_all_user_regs __user *ppr) ptrace_setregs() argument 981 pt = task_pt_regs(child); ptrace_setregs() 982 sw = (struct switch_stack *) (child->thread.ksp + 16); ptrace_setregs() 983 unw_init_from_blocked_task(&info, child); ptrace_setregs() 1086 ia64_sync_fph(child); ptrace_setregs() 1087 retval |= __copy_from_user(&child->thread.fph, &ppr->fr[32], ptrace_setregs() 1098 retval |= access_uarea(child, PT_CR_IPSR, &psr, 1); ptrace_setregs() 1099 retval |= access_uarea(child, PT_AR_RSC, &rsc, 1); ptrace_setregs() 1100 retval |= access_uarea(child, PT_AR_EC, &ec, 1); ptrace_setregs() 1101 retval |= access_uarea(child, PT_AR_LC, &lc, 1); ptrace_setregs() 1102 retval |= access_uarea(child, PT_AR_RNAT, &rnat, 1); ptrace_setregs() 1103 retval |= access_uarea(child, PT_AR_BSP, &bsp, 1); ptrace_setregs() 1104 retval |= access_uarea(child, PT_CFM, &cfm, 1); ptrace_setregs() 1105 retval |= access_uarea(child, PT_NAT_BITS, &nat_bits, 1); ptrace_setregs() 1112 user_enable_single_step (struct task_struct *child) user_enable_single_step() argument 1114 struct ia64_psr *child_psr = ia64_psr(task_pt_regs(child)); user_enable_single_step() 1116 set_tsk_thread_flag(child, TIF_SINGLESTEP); user_enable_single_step() 1121 user_enable_block_step (struct task_struct *child) user_enable_block_step() argument 1123 struct ia64_psr *child_psr = ia64_psr(task_pt_regs(child)); user_enable_block_step() 1125 set_tsk_thread_flag(child, TIF_SINGLESTEP); user_enable_block_step() 1130 user_disable_single_step (struct task_struct *child) user_disable_single_step() argument 1132 struct ia64_psr *child_psr = ia64_psr(task_pt_regs(child)); user_disable_single_step() 1135 clear_tsk_thread_flag(child, TIF_SINGLESTEP); user_disable_single_step() 1146 ptrace_disable (struct task_struct *child) ptrace_disable() argument 1148 user_disable_single_step(child); ptrace_disable() 1152 arch_ptrace (struct task_struct *child, long request, arch_ptrace() argument 1159 if (access_process_vm(child, addr, &data, sizeof(data), 0) arch_ptrace() 1172 if (access_uarea(child, addr, &data, 0) < 0) arch_ptrace() 1180 if (access_uarea(child, addr, &data, 1) < 0) arch_ptrace() 1186 return ptrace_request(child, PTRACE_GETSIGINFO, addr, data); arch_ptrace() 1190 return ptrace_request(child, PTRACE_SETSIGINFO, addr, data); arch_ptrace() 1193 return ptrace_getregs(child, arch_ptrace() 1197 return ptrace_setregs(child, arch_ptrace() 1201 return ptrace_request(child, request, addr, data); arch_ptrace() 1906 access_uarea(struct task_struct *child, unsigned long addr, access_uarea() argument 1943 ret = fpregs_set(child, NULL, pos, access_uarea() 1946 ret = fpregs_get(child, NULL, pos, access_uarea() 2036 ret = gpregs_set(child, NULL, pos, access_uarea() 2039 ret = gpregs_get(child, NULL, pos, access_uarea() 2049 ptr = &child->thread.ibr[0]; access_uarea() 2052 ptr = &child->thread.dbr[0]; access_uarea() 2078 if (pfm_use_debug_registers(child)) access_uarea() 2082 if (!(child->thread.flags & IA64_THREAD_DBG_VALID)) { access_uarea() 2083 child->thread.flags |= IA64_THREAD_DBG_VALID; access_uarea() 2084 memset(child->thread.dbr, 0, access_uarea() 2085 sizeof(child->thread.dbr)); access_uarea() 2086 memset(child->thread.ibr, 0, access_uarea() 2087 sizeof(child->thread.ibr)); access_uarea()
|
/linux-4.1.27/arch/mips/pci/ |
H A D | pci-rt3883.c | 420 struct device_node *child; rt3883_pci_probe() local 434 /* find the interrupt controller child node */ for_each_child_of_node() 435 for_each_child_of_node(np, child) { for_each_child_of_node() 436 if (of_get_property(child, "interrupt-controller", NULL) && for_each_child_of_node() 437 of_node_get(child)) { for_each_child_of_node() 438 rpc->intc_of_node = child; for_each_child_of_node() 444 dev_err(dev, "%s has no %s child node", 450 /* find the PCI host bridge child node */ for_each_child_of_node() 451 for_each_child_of_node(np, child) { for_each_child_of_node() 452 if (child->type && for_each_child_of_node() 453 of_node_cmp(child->type, "pci") == 0 && for_each_child_of_node() 454 of_node_get(child)) { for_each_child_of_node() 455 rpc->pci_controller.of_node = child; for_each_child_of_node() 461 dev_err(dev, "%s has no %s child node", 469 for_each_available_child_of_node(rpc->pci_controller.of_node, child) { 472 if (!child->type || 473 of_node_cmp(child->type, "pci") != 0) 476 devfn = of_pci_get_devfn(child);
|
/linux-4.1.27/drivers/phy/ |
H A D | phy-rockchip-usb.c | 98 struct device_node *child; rockchip_usb_phy_probe() local 108 for_each_available_child_of_node(dev->of_node, child) { rockchip_usb_phy_probe() 113 if (of_property_read_u32(child, "reg", ®_offset)) { rockchip_usb_phy_probe() 115 child->name); rockchip_usb_phy_probe() 122 rk_phy->clk = of_clk_get_by_name(child, "phyclk"); rockchip_usb_phy_probe() 126 rk_phy->phy = devm_phy_create(dev, child, &ops); rockchip_usb_phy_probe()
|
H A D | phy-berlin-sata.c | 193 struct device_node *child; phy_berlin_sata_probe() local 234 for_each_available_child_of_node(dev->of_node, child) { phy_berlin_sata_probe() 237 if (of_property_read_u32(child, "reg", &phy_id)) { phy_berlin_sata_probe() 239 child->name); phy_berlin_sata_probe() 244 dev_err(dev, "invalid reg in node %s\n", child->name); phy_berlin_sata_probe()
|
/linux-4.1.27/arch/unicore32/kernel/ |
H A D | ptrace.c | 56 void ptrace_disable(struct task_struct *child) ptrace_disable() argument 87 long arch_ptrace(struct task_struct *child, long request, arch_ptrace() argument 95 ret = ptrace_read_user(child, addr, datap); arch_ptrace() 99 ret = ptrace_write_user(child, addr, data); arch_ptrace() 103 ret = put_user(task_pt_regs(child)->UCreg_16, arch_ptrace() 108 ret = ptrace_request(child, request, addr, data); arch_ptrace()
|
/linux-4.1.27/drivers/acpi/acpica/ |
H A D | nsalloc.c | 175 next_node = parent_node->child; acpi_ns_remove_node() 177 /* Find the node that is the previous peer in the parent's child list */ acpi_ns_remove_node() 186 /* Node is not first child, unlink it */ acpi_ns_remove_node() 191 * Node is first child (has no previous peer). acpi_ns_remove_node() 194 parent_node->child = node->peer; acpi_ns_remove_node() 242 * A method is creating a new node that is not a child of the acpi_ns_install_node() 256 child_node = parent_node->child; acpi_ns_install_node() 259 parent_node->child = node; acpi_ns_install_node() 312 next_node = parent_node->child; acpi_ns_delete_children() 317 if (next_node->child) { acpi_ns_delete_children() 323 * Delete this child node and move on to the next child in the list. acpi_ns_delete_children() 331 /* Clear the parent's child pointer */ acpi_ns_delete_children() 333 parent_node->child = NULL; acpi_ns_delete_children() 380 /* Found a child node - detach any attached object */ acpi_ns_delete_namespace_subtree() 386 if (child_node->child) { acpi_ns_delete_namespace_subtree() 388 * There is at least one child of this node, acpi_ns_delete_namespace_subtree() 408 /* New "last child" is this parent node */ acpi_ns_delete_namespace_subtree() 470 * Get the next child of this parent node. When child_node is NULL, acpi_ns_delete_namespace_by_owner() 471 * the first child of the parent is returned acpi_ns_delete_namespace_by_owner() 484 /* Found a matching child node - detach any attached object */ acpi_ns_delete_namespace_by_owner() 491 if (child_node->child) { acpi_ns_delete_namespace_by_owner() 493 * There is at least one child of this node, acpi_ns_delete_namespace_by_owner() 514 /* New "last child" is this parent node */ acpi_ns_delete_namespace_by_owner()
|
H A D | nswalk.c | 57 * child_node - Previous child that was found. 58 * The NEXT child will be returned 60 * RETURN: struct acpi_namespace_node - Pointer to the NEXT child or NULL if 79 return (parent_node->child); acpi_ns_get_next_node() 94 * child_node - Previous child that was found. 95 * The NEXT child will be returned 97 * RETURN: struct acpi_namespace_node - Pointer to the NEXT child or NULL if 208 /* Null child means "get first node" */ acpi_ns_walk_namespace() 223 /* Found next child, get the type if we are not searching for ANY */ acpi_ns_walk_namespace() 314 if (child_node->child) { acpi_ns_walk_namespace() 316 /* There is at least one child of this node, visit it */ acpi_ns_walk_namespace()
|
H A D | pstree.c | 214 /* Look for an argument or child */ acpi_ps_get_depth_next() 264 * PARAMETERS: op - Get the child of this Op 274 union acpi_parse_object *child = NULL; acpi_ps_get_child() local 285 child = acpi_ps_get_arg(op, 0); acpi_ps_get_child() 295 child = acpi_ps_get_arg(op, 1); acpi_ps_get_child() 301 child = acpi_ps_get_arg(op, 2); acpi_ps_get_child() 307 child = acpi_ps_get_arg(op, 3); acpi_ps_get_child() 317 return (child); acpi_ps_get_child()
|
H A D | nsxfobj.c | 174 * last_child - Previous child that was found. ACPI_EXPORT_SYMBOL() 175 * The NEXT child will be returned ACPI_EXPORT_SYMBOL() 188 acpi_handle child, acpi_handle * ret_handle) ACPI_EXPORT_SYMBOL() 208 if (!child) { ACPI_EXPORT_SYMBOL() 221 child_node = acpi_ns_validate_handle(child); ACPI_EXPORT_SYMBOL()
|
/linux-4.1.27/arch/powerpc/platforms/pseries/ |
H A D | pci_dlpar.c | 41 struct pci_bus *child = NULL; find_bus_among_children() local 50 child = find_bus_among_children(tmp, dn); find_bus_among_children() 51 if (child) find_bus_among_children() 54 return child; find_bus_among_children() 87 if (dn->child) init_phb_dynamic() 111 /* We -know- there aren't any child devices anymore at this stage remove_phb_dynamic()
|
H A D | dlpar.c | 113 if (dn->child) dlpar_free_cc_nodes() 114 dlpar_free_cc_nodes(dn->child); dlpar_free_cc_nodes() 198 last_dn->child = dn; dlpar_configure_connector() 291 struct device_node *child; dlpar_detach_node() local 294 child = of_get_next_child(dn, NULL); dlpar_detach_node() 295 while (child) { dlpar_detach_node() 296 dlpar_detach_node(child); dlpar_detach_node() 297 child = of_get_next_child(dn, child); dlpar_detach_node()
|
/linux-4.1.27/arch/mips/include/asm/ |
H A D | ptrace.h | 50 extern int ptrace_getregs(struct task_struct *child, 52 extern int ptrace_setregs(struct task_struct *child, 55 extern int ptrace_getfpregs(struct task_struct *child, __u32 __user *data); 56 extern int ptrace_setfpregs(struct task_struct *child, __u32 __user *data); 58 extern int ptrace_get_watch_regs(struct task_struct *child, 60 extern int ptrace_set_watch_regs(struct task_struct *child,
|
/linux-4.1.27/net/dccp/ |
H A D | minisocks.c | 144 struct sock *child = NULL; dccp_check_req() local 185 child = inet_csk(sk)->icsk_af_ops->syn_recv_sock(sk, skb, req, NULL); dccp_check_req() 186 if (child == NULL) dccp_check_req() 190 inet_csk_reqsk_queue_add(sk, req, child); dccp_check_req() 192 return child; dccp_check_req() 211 int dccp_child_process(struct sock *parent, struct sock *child, dccp_child_process() argument 215 const int state = child->sk_state; dccp_child_process() 217 if (!sock_owned_by_user(child)) { dccp_child_process() 218 ret = dccp_rcv_state_process(child, skb, dccp_hdr(skb), dccp_child_process() 222 if (state == DCCP_RESPOND && child->sk_state != state) dccp_child_process() 229 __sk_add_backlog(child, skb); dccp_child_process() 232 bh_unlock_sock(child); dccp_child_process() 233 sock_put(child); dccp_child_process()
|
/linux-4.1.27/sound/soc/fsl/ |
H A D | imx-audmux.c | 258 struct device_node *child; imx_audmux_parse_dt_defaults() local 260 for_each_available_child_of_node(of_node, child) { for_each_available_child_of_node() 269 ret = of_property_read_u32(child, "fsl,audmux-port", &port); for_each_available_child_of_node() 271 dev_warn(&pdev->dev, "Failed to get fsl,audmux-port of child node \"%s\"\n", for_each_available_child_of_node() 272 child->full_name); for_each_available_child_of_node() 275 if (!of_property_read_bool(child, "fsl,port-config")) { for_each_available_child_of_node() 276 dev_warn(&pdev->dev, "child node \"%s\" does not have property fsl,port-config\n", for_each_available_child_of_node() 277 child->full_name); for_each_available_child_of_node() 281 for (i = 0; (ret = of_property_read_u32_index(child, for_each_available_child_of_node() 295 dev_err(&pdev->dev, "Failed to read u32 at index %d of child %s\n", for_each_available_child_of_node() 296 i, child->full_name); for_each_available_child_of_node() 302 dev_err(&pdev->dev, "One pdcr value is missing in child node %s\n", for_each_available_child_of_node() 303 child->full_name); for_each_available_child_of_node()
|
/linux-4.1.27/drivers/pinctrl/freescale/ |
H A D | pinctrl-mxs.c | 400 struct device_node *child; mxs_pinctrl_probe_dt() local 408 child = of_get_next_child(np, NULL); mxs_pinctrl_probe_dt() 409 if (!child) { mxs_pinctrl_probe_dt() 416 for_each_child_of_node(np, child) { for_each_child_of_node() 417 if (of_device_is_compatible(child, gpio_compat)) for_each_child_of_node() 421 if (of_property_read_u32(child, "reg", &val)) for_each_child_of_node() 423 if (strcmp(fn, child->name)) { for_each_child_of_node() 424 fn = child->name; for_each_child_of_node() 442 for_each_child_of_node(np, child) { for_each_child_of_node() 443 if (of_device_is_compatible(child, gpio_compat)) for_each_child_of_node() 445 if (of_property_read_u32(child, "reg", &val)) for_each_child_of_node() 447 if (strcmp(fn, child->name)) { for_each_child_of_node() 452 * of_get_next_child(np, * child) for_each_child_of_node() 454 of_node_get(child); for_each_child_of_node() 464 for (child2 = of_get_next_child(np, child); for_each_child_of_node() 474 f->name = fn = child->name; for_each_child_of_node() 482 for_each_child_of_node(np, child) { for_each_child_of_node() 483 if (of_device_is_compatible(child, gpio_compat)) for_each_child_of_node() 485 if (of_property_read_u32(child, "reg", &val)) { for_each_child_of_node() 486 ret = mxs_pinctrl_parse_group(pdev, child, for_each_child_of_node() 493 if (strcmp(fn, child->name)) { for_each_child_of_node() 500 fn = child->name; for_each_child_of_node() 503 ret = mxs_pinctrl_parse_group(pdev, child, idxg++, for_each_child_of_node()
|
/linux-4.1.27/arch/sparc/kernel/ |
H A D | of_device_common.h | 20 void of_bus_sbus_count_cells(struct device_node *child, int *addrc, int *sizec); 29 void (*count_cells)(struct device_node *child,
|
H A D | ptrace_32.c | 38 void ptrace_disable(struct task_struct *child) ptrace_disable() argument 340 long arch_ptrace(struct task_struct *child, long request, arch_ptrace() argument 357 ret = copy_regset_to_user(child, view, REGSET_GENERAL, arch_ptrace() 362 copy_regset_to_user(child, view, REGSET_GENERAL, arch_ptrace() 370 ret = copy_regset_from_user(child, view, REGSET_GENERAL, arch_ptrace() 375 copy_regset_from_user(child, view, REGSET_GENERAL, arch_ptrace() 383 ret = copy_regset_to_user(child, view, REGSET_FP, arch_ptrace() 388 ret = copy_regset_to_user(child, view, REGSET_FP, arch_ptrace() 404 ret = copy_regset_from_user(child, view, REGSET_FP, arch_ptrace() 409 ret = copy_regset_from_user(child, view, REGSET_FP, arch_ptrace() 418 ret = ptrace_readdata(child, addr, addr2p, data); arch_ptrace() 428 ret = ptrace_writedata(child, addr2p, addr, data); arch_ptrace() 439 ret = ptrace_request(child, request, addr, data); arch_ptrace()
|
H A D | ptrace_64.c | 54 void ptrace_disable(struct task_struct *child) ptrace_disable() argument 863 long compat_arch_ptrace(struct task_struct *child, compat_long_t request, compat_arch_ptrace() argument 884 ret = copy_regset_to_user(child, view, REGSET_GENERAL, compat_arch_ptrace() 889 ret = copy_regset_to_user(child, view, REGSET_GENERAL, compat_arch_ptrace() 896 ret = copy_regset_from_user(child, view, REGSET_GENERAL, compat_arch_ptrace() 901 ret = copy_regset_from_user(child, view, REGSET_GENERAL, compat_arch_ptrace() 908 ret = copy_regset_to_user(child, view, REGSET_FP, compat_arch_ptrace() 913 ret = copy_regset_to_user(child, view, REGSET_FP, compat_arch_ptrace() 927 ret = copy_regset_from_user(child, view, REGSET_FP, compat_arch_ptrace() 932 ret = copy_regset_from_user(child, view, REGSET_FP, compat_arch_ptrace() 940 ret = ptrace_readdata(child, addr, compat_arch_ptrace() 950 ret = ptrace_writedata(child, (char __user *) addr2, compat_arch_ptrace() 961 ret = compat_ptrace_request(child, request, addr, data); compat_arch_ptrace() 974 long arch_ptrace(struct task_struct *child, long request, arch_ptrace() argument 994 ret = copy_regset_to_user(child, view, REGSET_GENERAL, arch_ptrace() 1000 ret = copy_regset_to_user(child, view, REGSET_GENERAL, arch_ptrace() 1008 ret = copy_regset_from_user(child, view, REGSET_GENERAL, arch_ptrace() 1014 ret = copy_regset_from_user(child, view, REGSET_GENERAL, arch_ptrace() 1022 ret = copy_regset_to_user(child, view, REGSET_FP, arch_ptrace() 1029 ret = copy_regset_from_user(child, view, REGSET_FP, arch_ptrace() 1037 ret = ptrace_readdata(child, addr, addr2p, data); arch_ptrace() 1046 ret = ptrace_writedata(child, addr2p, addr, data); arch_ptrace() 1056 ret = ptrace_request(child, request, addr, data); arch_ptrace()
|
H A D | of_device_common.c | 54 * BUS and propagate to all child platform_device objects. 62 for (dp = bus_dp->child; dp; dp = dp->sibling) { of_propagate_archdata() 70 if (dp->child) of_propagate_archdata() 127 /* Add in the child address offset. */ of_bus_default_map() 172 void of_bus_sbus_count_cells(struct device_node *child, int *addrc, int *sizec) of_bus_sbus_count_cells() argument
|
H A D | of_device_32.c | 65 /* Add in the child address offset, skipping high cell. */ of_bus_pci_map() 80 /* For PCI, we override whatever child busses may have used. */ of_bus_pci_get_flags() 111 static void of_bus_ambapp_count_cells(struct device_node *child, of_bus_ambapp_count_cells() argument 399 scan_tree(dp->child, &op->dev); scan_tree() 414 scan_tree(root->child, &parent->dev); scan_of_devices()
|
/linux-4.1.27/arch/microblaze/kernel/ |
H A D | ptrace.c | 77 long arch_ptrace(struct task_struct *child, long request, arch_ptrace() argument 95 val = child->mm->start_code; arch_ptrace() 97 val = child->mm->start_data; arch_ptrace() 99 val = child->mm->end_code arch_ptrace() 100 - child->mm->start_code; arch_ptrace() 105 microblaze_reg_t *reg_addr = reg_save_addr(addr, child); arch_ptrace() 130 rval = ptrace_request(child, request, addr, data); arch_ptrace() 166 void ptrace_disable(struct task_struct *child) ptrace_disable() argument
|
/linux-4.1.27/arch/avr32/include/asm/ |
H A D | ptrace.h | 19 #define arch_ptrace_attach(child) ocd_enable(child)
|
/linux-4.1.27/arch/m32r/include/asm/ |
H A D | ptrace.h | 22 #define arch_ptrace_attach(child) \ 23 init_debug_traps(child)
|
/linux-4.1.27/drivers/md/persistent-data/ |
H A D | dm-btree-remove.c | 49 * Once this rebalancing has occurred we can then step into the child node 136 struct child { struct 144 unsigned index, struct child *result) init_child() 168 static int exit_child(struct dm_btree_info *info, struct child *c) exit_child() 200 struct child *l, struct child *r) __rebalance2() 236 struct child left, right; rebalance2() 267 struct child *l, struct child *c, struct child *r, delete_center_node() 298 struct child *l, struct child *c, struct child *r, redistribute3() 345 struct child *l, struct child *c, struct child *r) __rebalance3() 373 struct child left, center, right; rebalance3() 445 struct dm_block *child; rebalance_children() local 448 r = dm_tm_read_lock(info->tm, b, &btree_node_validator, &child); rebalance_children() 452 memcpy(n, dm_block_data(child), rebalance_children() 454 r = dm_tm_unlock(info->tm, child); rebalance_children() 458 dm_tm_dec(info->tm, dm_block_location(child)); rebalance_children()
|
/linux-4.1.27/fs/ext3/ |
H A D | namei.h | 8 extern struct dentry *ext3_get_parent(struct dentry *child);
|
/linux-4.1.27/include/linux/mfd/ |
H A D | smsc.h | 42 static inline int smsc_read(struct device *child, unsigned int reg, smsc_read() argument 45 struct smsc *smsc = dev_get_drvdata(child->parent); smsc_read() 50 static inline int smsc_write(struct device *child, unsigned int reg, smsc_write() argument 53 struct smsc *smsc = dev_get_drvdata(child->parent); smsc_write()
|
/linux-4.1.27/fs/notify/ |
H A D | fsnotify.c | 48 * on a child we run all of our children and set a dentry flag saying that the 49 * parent cares. Thus when an event happens on a child it can quickly tell if 67 struct dentry *child; __fsnotify_update_child_dentry_flags() local 73 list_for_each_entry(child, &alias->d_subdirs, d_child) { __fsnotify_update_child_dentry_flags() 74 if (!child->d_inode) __fsnotify_update_child_dentry_flags() 77 spin_lock_nested(&child->d_lock, DENTRY_D_LOCK_NESTED); __fsnotify_update_child_dentry_flags() 79 child->d_flags |= DCACHE_FSNOTIFY_PARENT_WATCHED; __fsnotify_update_child_dentry_flags() 81 child->d_flags &= ~DCACHE_FSNOTIFY_PARENT_WATCHED; __fsnotify_update_child_dentry_flags() 82 spin_unlock(&child->d_lock); __fsnotify_update_child_dentry_flags() 89 /* Notify this dentry's parent about a child's events. */ __fsnotify_parent() 109 * specifies these are events which came from a child. */ __fsnotify_parent() 199 /* global tests shouldn't care about events on child only the specific event */ fsnotify()
|
/linux-4.1.27/net/core/ |
H A D | request_sock.c | 132 * Before TFO, a child socket is created only after 3WHS is completed, 134 * complex with TFO. A child socket, accepted or not, has to access its 137 * until either the child socket is accepted, or in the rare case when the 138 * listener is closed before the child is accepted. 141 * (or aborted) and the child socket has been accepted (or listener closed). 142 * When a child socket is accepted, its corresponding req->sk is set to 144 * will be used by the code below to determine if a child socket has been 148 * Note that fastopen_rsk is only accessed from the child socket's context 150 * both its child socket through fastopen_rsk, and a listener socket through 153 * only in the rare case when both the listener and the child locks are held, 163 * acquire a child's lock while holding listener's socket lock. A corner 183 if (req->sk) /* the child socket hasn't been accepted yet */ reqsk_fastopen_remove()
|
/linux-4.1.27/drivers/firewire/ |
H A D | core-topology.c | 142 * the hop count is the sum of the two biggest child depths plus 2. 144 * containted in a child tree, in which case the max hop count is just 145 * the max hop count of this child. 186 struct fw_node *node, *child, *local_node, *irm_node; build_tree() local 225 * start of the child nodes for this node. build_tree() 233 child = fw_node(h); build_tree() 267 node->ports[i] = child; build_tree() 270 * child node. build_tree() 272 child->ports[child->color] = node; build_tree() 273 child->color = card->color; build_tree() 274 child = fw_node(child->link.next); build_tree() 291 /* Pop the child nodes off the stack and push the new node. */ build_tree() 329 struct fw_node *node, *next, *child, *parent; for_each_fw_node() local 341 child = node->ports[i]; for_each_fw_node() 342 if (!child) for_each_fw_node() 344 if (child->color == card->color) for_each_fw_node() 345 parent = child; for_each_fw_node() 347 fw_node_get(child); for_each_fw_node() 348 list_add_tail(&child->link, &list); for_each_fw_node()
|
/linux-4.1.27/drivers/parport/ |
H A D | procfs.c | 236 #define PARPORT_PORT_DIR(CHILD) { .procname = NULL, .mode = 0555, .child = CHILD } 238 .mode = 0555, .child = CHILD } 239 #define PARPORT_DEV_DIR(CHILD) { .procname = "dev", .mode = 0555, .child = CHILD } 241 .mode = 0555, .child = NULL } 400 .child = NULL 459 .child = parport_default_sysctl_table.vars 489 t->vars[5].child = t->device_dir; parport_proc_register() 496 t->port_dir[0].child = t->vars; parport_proc_register() 497 t->parport_dir[0].child = t->port_dir; parport_proc_register() 498 t->dev_dir[0].child = t->parport_dir; parport_proc_register() 529 t->dev_dir[0].child = t->parport_dir; parport_device_proc_register() 530 t->parport_dir[0].child = t->port_dir; parport_device_proc_register() 532 t->port_dir[0].child = t->devices_root_dir; parport_device_proc_register() 533 t->devices_root_dir[0].child = t->device_dir; parport_device_proc_register() 536 t->device_dir[0].child = t->vars; parport_device_proc_register()
|
/linux-4.1.27/security/yama/ |
H A D | yama_lsm.c | 209 * @parent: the process to compare against while walking up from child 210 * @child: the process to start from while looking upwards for parent 212 * Returns 1 if child is a descendant of parent, 0 if not. 215 struct task_struct *child) task_is_descendant() 218 struct task_struct *walker = child; task_is_descendant() 220 if (!parent || !child) task_is_descendant() 277 * @child: task that current task is attempting to ptrace 282 int yama_ptrace_access_check(struct task_struct *child, yama_ptrace_access_check() argument 290 rc = cap_ptrace_access_check(child, mode); yama_ptrace_access_check() 294 /* require ptrace target be a child of ptracer on attach */ yama_ptrace_access_check() 302 if (!task_is_descendant(current, child) && yama_ptrace_access_check() 303 !ptracer_exception_found(current, child) && yama_ptrace_access_check() 304 !ns_capable(__task_cred(child)->user_ns, CAP_SYS_PTRACE)) yama_ptrace_access_check() 310 if (!ns_capable(__task_cred(child)->user_ns, CAP_SYS_PTRACE)) yama_ptrace_access_check() 324 child->pid, current->comm, current->pid); yama_ptrace_access_check() 214 task_is_descendant(struct task_struct *parent, struct task_struct *child) task_is_descendant() argument
|
/linux-4.1.27/drivers/pci/pcie/ |
H A D | aspm.c | 46 struct list_head children; /* list of child link states */ 128 struct pci_dev *child; pcie_set_clkpm_nocheck() local 131 list_for_each_entry(child, &linkbus->devices, bus_list) { pcie_set_clkpm_nocheck() 133 pcie_capability_set_word(child, PCI_EXP_LNKCTL, pcie_set_clkpm_nocheck() 136 pcie_capability_clear_word(child, PCI_EXP_LNKCTL, pcie_set_clkpm_nocheck() 158 struct pci_dev *child; pcie_clkpm_cap_init() local 162 list_for_each_entry(child, &linkbus->devices, bus_list) { pcie_clkpm_cap_init() 163 pcie_capability_read_dword(child, PCI_EXP_LNKCAP, ®32); pcie_clkpm_cap_init() 169 pcie_capability_read_word(child, PCI_EXP_LNKCTL, ®16); pcie_clkpm_cap_init() 188 struct pci_dev *child, *parent = link->pdev; pcie_aspm_configure_common_clock() local 194 child = list_entry(linkbus->devices.next, struct pci_dev, bus_list); pcie_aspm_configure_common_clock() 195 BUG_ON(!pci_is_pcie(child)); pcie_aspm_configure_common_clock() 198 pcie_capability_read_word(child, PCI_EXP_LNKSTA, ®16); pcie_aspm_configure_common_clock() 208 list_for_each_entry(child, &linkbus->devices, bus_list) { pcie_aspm_configure_common_clock() 209 pcie_capability_read_word(child, PCI_EXP_LNKCTL, ®16); pcie_aspm_configure_common_clock() 210 child_reg[PCI_FUNC(child->devfn)] = reg16; pcie_aspm_configure_common_clock() 215 pcie_capability_write_word(child, PCI_EXP_LNKCTL, reg16); pcie_aspm_configure_common_clock() 246 list_for_each_entry(child, &linkbus->devices, bus_list) pcie_aspm_configure_common_clock() 247 pcie_capability_write_word(child, PCI_EXP_LNKCTL, pcie_aspm_configure_common_clock() 248 child_reg[PCI_FUNC(child->devfn)]); pcie_aspm_configure_common_clock() 346 struct pci_dev *child, *parent = link->pdev; pcie_aspm_cap_init() local 362 child = list_entry(linkbus->devices.next, struct pci_dev, bus_list); pcie_aspm_cap_init() 363 pcie_get_aspm_reg(child, &dwreg); pcie_aspm_cap_init() 398 list_for_each_entry(child, &linkbus->devices, bus_list) { pcie_aspm_cap_init() 399 if (pci_pcie_type(child) == PCI_EXP_TYPE_PCI_BRIDGE) { pcie_aspm_cap_init() 406 list_for_each_entry(child, &linkbus->devices, bus_list) { pcie_aspm_cap_init() 409 &link->acceptable[PCI_FUNC(child->devfn)]; pcie_aspm_cap_init() 411 if (pci_pcie_type(child) != PCI_EXP_TYPE_ENDPOINT && pcie_aspm_cap_init() 412 pci_pcie_type(child) != PCI_EXP_TYPE_LEG_END) pcie_aspm_cap_init() 415 pcie_capability_read_dword(child, PCI_EXP_DEVCAP, ®32); pcie_aspm_cap_init() 423 pcie_aspm_check_latency(child); pcie_aspm_cap_init() 436 struct pci_dev *child, *parent = link->pdev; pcie_config_aspm_link() local 460 list_for_each_entry(child, &linkbus->devices, bus_list) pcie_config_aspm_link() 461 pcie_config_aspm_dev(child, dwstream); pcie_config_aspm_link() 484 struct pci_dev *child; pcie_aspm_sanity_check() local 491 list_for_each_entry(child, &pdev->subordinate->devices, bus_list) { pcie_aspm_sanity_check() 492 if (!pci_is_pcie(child)) pcie_aspm_sanity_check() 508 pcie_capability_read_dword(child, PCI_EXP_DEVCAP, ®32); pcie_aspm_sanity_check() 510 dev_info(&child->dev, "disabling ASPM on pre-1.1 PCIe device. You can enable it with 'pcie_aspm=force'\n"); pcie_aspm_sanity_check() 621 struct pci_dev *child; pcie_update_aspm_capable() local 625 list_for_each_entry(child, &linkbus->devices, bus_list) { pcie_update_aspm_capable() 626 if ((pci_pcie_type(child) != PCI_EXP_TYPE_ENDPOINT) && pcie_update_aspm_capable() 627 (pci_pcie_type(child) != PCI_EXP_TYPE_LEG_END)) pcie_update_aspm_capable() 629 pcie_aspm_check_latency(child); pcie_update_aspm_capable()
|
/linux-4.1.27/fs/nfs/blocklayout/ |
H A D | dev.c | 135 struct pnfs_block_dev *child = &dev->children[i]; bl_map_concat() local 137 if (child->start > offset || bl_map_concat() 138 child->start + child->len <= offset) bl_map_concat() 141 child->map(child, offset - child->start, map); bl_map_concat() 152 struct pnfs_block_dev *child; bl_map_stripe() local 173 child = &dev->children[chunk_idx]; bl_map_stripe() 174 child->map(child, disk_offset, map); bl_map_stripe()
|
/linux-4.1.27/fs/isofs/ |
H A D | export.c | 39 * that "child" is always a directory. So, to find its parent, you 43 static struct dentry *isofs_export_get_parent(struct dentry *child) isofs_export_get_parent() argument 47 struct inode *child_inode = d_inode(child); isofs_export_get_parent() 53 /* "child" must always be a directory. */ isofs_export_get_parent() 56 "child is not a directory!\n"); isofs_export_get_parent() 66 "child directory not normalized!\n"); isofs_export_get_parent() 71 /* The child inode has been normalized such that its isofs_export_get_parent()
|
/linux-4.1.27/arch/arm/mach-mvebu/ |
H A D | mvebu-soc-id.c | 64 struct device_node *child; get_soc_id_by_pci() local 74 child = of_get_next_child(np, NULL); get_soc_id_by_pci() 75 if (child == NULL) { get_soc_id_by_pci() 81 clk = of_clk_get_by_name(child, NULL); get_soc_id_by_pci() 94 pci_base = of_iomap(child, 0); get_soc_id_by_pci() 122 if (!of_device_is_available(child) || !IS_ENABLED(CONFIG_PCI_MVEBU)) { get_soc_id_by_pci() 128 of_node_put(child); get_soc_id_by_pci()
|
/linux-4.1.27/scripts/tracing/ |
H A D | draw_functrace.py | 47 @return: A reference to the newly created child node. 49 child = CallTree(func, calltime, self) 50 self._children.append(child) 51 return child 56 on a parent, then create it as new child of root 63 child = CallTree.ROOT.calls(func, None) 64 return child
|
/linux-4.1.27/drivers/input/keyboard/ |
H A D | gpio_keys_polled.c | 107 struct fwnode_handle *child; gpio_keys_polled_get_devtree_pdata() local 125 device_for_each_child_node(dev, child) { device_for_each_child_node() 128 desc = devm_get_gpiod_from_child(dev, NULL, child); device_for_each_child_node() 135 fwnode_handle_put(child); device_for_each_child_node() 142 if (fwnode_property_read_u32(child, "linux,code", &button->code)) { device_for_each_child_node() 145 fwnode_handle_put(child); device_for_each_child_node() 149 fwnode_property_read_string(child, "label", &button->desc); device_for_each_child_node() 151 if (fwnode_property_read_u32(child, "linux,input-type", device_for_each_child_node() 155 button->wakeup = fwnode_property_present(child, "gpio-key,wakeup"); device_for_each_child_node() 157 if (fwnode_property_read_u32(child, "debounce-interval", device_for_each_child_node()
|
/linux-4.1.27/arch/hexagon/kernel/ |
H A D | ptrace.c | 37 void user_enable_single_step(struct task_struct *child) user_enable_single_step() argument 39 pt_set_singlestep(task_pt_regs(child)); user_enable_single_step() 40 set_tsk_thread_flag(child, TIF_SINGLESTEP); user_enable_single_step() 43 void user_disable_single_step(struct task_struct *child) user_disable_single_step() argument 45 pt_clr_singlestep(task_pt_regs(child)); user_disable_single_step() 46 clear_tsk_thread_flag(child, TIF_SINGLESTEP); user_disable_single_step() 195 void ptrace_disable(struct task_struct *child) ptrace_disable() argument 198 user_disable_single_step(child); ptrace_disable() 201 long arch_ptrace(struct task_struct *child, long request, arch_ptrace() argument 204 return ptrace_request(child, request, addr, data); arch_ptrace()
|
/linux-4.1.27/arch/parisc/kernel/ |
H A D | ptrace.c | 114 long arch_ptrace(struct task_struct *child, long request, arch_ptrace() argument 128 tmp = *(unsigned long *) ((char *) task_regs(child) + addr); arch_ptrace() 150 task_regs(child)->gr[0] &= ~USER_PSW_BITS; arch_ptrace() 151 task_regs(child)->gr[0] |= data; arch_ptrace() 163 *(unsigned long *) ((char *) task_regs(child) + addr) = data; arch_ptrace() 169 ret = ptrace_request(child, request, addr, data); arch_ptrace() 204 long compat_arch_ptrace(struct task_struct *child, compat_long_t request, compat_arch_ptrace() argument 219 tmp = *(compat_uint_t *) ((char *) task_regs(child) + addr); compat_arch_ptrace() 238 ret = arch_ptrace(child, request, addr, data); compat_arch_ptrace() 247 *(__u64 *) ((char *) task_regs(child) + addr) = data; compat_arch_ptrace() 254 *(__u32 *) ((char *) task_regs(child) + addr - 4) = 0; compat_arch_ptrace() 255 *(__u32 *) ((char *) task_regs(child) + addr) = data; compat_arch_ptrace() 262 ret = compat_ptrace_request(child, request, addr, data); compat_arch_ptrace()
|
/linux-4.1.27/arch/arm/kernel/ |
H A D | ptrace.c | 39 * does not yet catch signals sent when the child dies. 195 void ptrace_disable(struct task_struct *child) ptrace_disable() argument 301 * Get the child iWMMXt state. 315 * Set the child iWMMXt state. 332 * Get the child Crunch state. 344 * Set the child Crunch state. 410 * This is required in order to prevent child processes from unregistering 798 long arch_ptrace(struct task_struct *child, long request, arch_ptrace() argument 806 ret = ptrace_read_user(child, addr, datap); arch_ptrace() 810 ret = ptrace_write_user(child, addr, data); arch_ptrace() 814 ret = copy_regset_to_user(child, arch_ptrace() 821 ret = copy_regset_from_user(child, arch_ptrace() 828 ret = copy_regset_to_user(child, arch_ptrace() 835 ret = copy_regset_from_user(child, arch_ptrace() 843 ret = ptrace_getwmmxregs(child, datap); arch_ptrace() 847 ret = ptrace_setwmmxregs(child, datap); arch_ptrace() 852 ret = put_user(task_thread_info(child)->tp_value[0], arch_ptrace() 857 task_thread_info(child)->syscall = data; arch_ptrace() 863 ret = ptrace_getcrunchregs(child, datap); arch_ptrace() 867 ret = ptrace_setcrunchregs(child, datap); arch_ptrace() 873 ret = copy_regset_to_user(child, arch_ptrace() 880 ret = copy_regset_from_user(child, arch_ptrace() 889 ret = ptrace_gethbpregs(child, addr, arch_ptrace() 893 ret = ptrace_sethbpregs(child, addr, arch_ptrace() 899 ret = ptrace_request(child, request, addr, data); arch_ptrace()
|
H A D | isa.c | 51 .child = ctl_isa_vars, 59 .child = ctl_isa,
|
/linux-4.1.27/drivers/bus/ |
H A D | imx-weim.c | 118 /* get the CS index from this child node's "reg" property. */ weim_timing_setup() 144 struct device_node *child; weim_parse_dt() local 153 for_each_available_child_of_node(pdev->dev.of_node, child) { weim_parse_dt() 154 if (!child->name) weim_parse_dt() 157 ret = weim_timing_setup(child, base, devtype); weim_parse_dt() 160 child->full_name); weim_parse_dt()
|
/linux-4.1.27/arch/openrisc/kernel/ |
H A D | ptrace.c | 141 * does not yet catch signals sent when the child dies. 151 void ptrace_disable(struct task_struct *child) ptrace_disable() argument 155 user_disable_single_step(child); ptrace_disable() 156 clear_tsk_thread_flag(child, TIF_SYSCALL_TRACE); ptrace_disable() 159 long arch_ptrace(struct task_struct *child, long request, unsigned long addr, arch_ptrace() argument 166 ret = ptrace_request(child, request, addr, data); arch_ptrace()
|
/linux-4.1.27/tools/lib/traceevent/ |
H A D | plugin_function.c | 59 static void add_child(struct func_stack *stack, const char *child, int pos) add_child() argument 63 if (!child) add_child() 85 stack->stack[pos] = strdup(child); add_child() 88 static int add_and_get_index(const char *parent, const char *child, int cpu) add_and_get_index() argument 114 add_child(&fstack[cpu], child, i+1); add_and_get_index() 121 add_child(&fstack[cpu], child, 1); add_and_get_index()
|
/linux-4.1.27/arch/x86/pci/ |
H A D | i386.c | 223 * child resource allocations in this pcibios_allocate_bridge_resources() 234 struct pci_bus *child; pcibios_allocate_bus_resources() local 239 list_for_each_entry(child, &bus->children, node) pcibios_allocate_bus_resources() 240 pcibios_allocate_bus_resources(child); pcibios_allocate_bus_resources() 309 struct pci_bus *child; pcibios_allocate_resources() local 314 child = dev->subordinate; pcibios_allocate_resources() 315 if (child) pcibios_allocate_resources() 316 pcibios_allocate_resources(child, pass); pcibios_allocate_resources() 343 struct pci_bus *child; pcibios_allocate_rom_resources() local 348 child = dev->subordinate; pcibios_allocate_rom_resources() 349 if (child) pcibios_allocate_rom_resources() 350 pcibios_allocate_rom_resources(child); pcibios_allocate_rom_resources()
|
/linux-4.1.27/fs/efs/ |
H A D | namei.c | 109 struct dentry *efs_get_parent(struct dentry *child) efs_get_parent() argument 114 ino = efs_find_entry(d_inode(child), "..", 2); efs_get_parent() 116 parent = d_obtain_alias(efs_iget(d_inode(child)->i_sb, ino)); efs_get_parent()
|
/linux-4.1.27/drivers/net/phy/ |
H A D | mdio-mux-mmioreg.c | 36 * 'desired_child' is the value of the 'reg' property of the target child MDIO 108 * Verify that the 'reg' property of each child MDIO bus does not mdio_mux_mmioreg_probe() 114 dev_err(&pdev->dev, "mdio-mux child node %s is " for_each_available_child_of_node() 119 dev_err(&pdev->dev, "mdio-mux child node %s has " for_each_available_child_of_node()
|
/linux-4.1.27/drivers/usb/musb/ |
H A D | musb_am335x.c | 42 MODULE_DESCRIPTION("AM33xx child devices");
|
/linux-4.1.27/arch/arm/crypto/ |
H A D | ghash-ce-glue.c | 164 struct crypto_shash *child = cryptd_ahash_child(cryptd_tfm); ghash_async_init() local 166 desc->tfm = child; ghash_async_init() 221 struct crypto_shash *child = cryptd_ahash_child(cryptd_tfm); ghash_async_digest() local 223 desc->tfm = child; ghash_async_digest() 233 struct crypto_ahash *child = &ctx->cryptd_tfm->base; ghash_async_setkey() local 236 crypto_ahash_clear_flags(child, CRYPTO_TFM_REQ_MASK); ghash_async_setkey() 237 crypto_ahash_set_flags(child, crypto_ahash_get_flags(tfm) ghash_async_setkey() 239 err = crypto_ahash_setkey(child, key, keylen); ghash_async_setkey() 240 crypto_ahash_set_flags(tfm, crypto_ahash_get_flags(child) ghash_async_setkey()
|
/linux-4.1.27/arch/alpha/include/asm/ |
H A D | gct.h | 25 gct6_handle child; member in struct:__gct6_node
|
/linux-4.1.27/fs/coda/ |
H A D | sysctl.c | 46 .child = coda_table
|
/linux-4.1.27/drivers/staging/lustre/lustre/ldlm/ |
H A D | interval_tree.c | 247 * - node will be linked to node->right's left child, and 248 * - node->right's left child will be linked to node's right child. */ __rotate_left() 276 * - node will be linked to node->left's right child, and 277 * - node->left's right child will be linked to node's left child. */ __rotate_right() 511 struct interval_node *child, *parent; interval_erase() local 517 child = node->in_right; interval_erase() 519 child = node->in_left; interval_erase() 520 } else { /* Both left and right child are not NULL */ interval_erase() 524 child = node->in_right; interval_erase() 528 if (child) interval_erase() 529 child->in_parent = parent; interval_erase() 531 parent->in_right = child; interval_erase() 533 parent->in_left = child; interval_erase() 552 update_maxhigh(child ? : parent, node->in_max_high); interval_erase() 561 if (child) interval_erase() 562 child->in_parent = parent; interval_erase() 565 parent->in_left = child; interval_erase() 567 parent->in_right = child; interval_erase() 569 *root = child; interval_erase() 572 update_maxhigh(child ? : parent, node->in_max_high); interval_erase() 576 interval_erase_color(child, parent, root); interval_erase()
|
/linux-4.1.27/drivers/thermal/ |
H A D | of-thermal.c | 459 struct device_node *np, *child, *sensor_np; thermal_zone_of_sensor_register() local 473 for_each_child_of_node(np, child) { for_each_child_of_node() 477 /* Check whether child is enabled or not */ for_each_child_of_node() 478 if (!of_device_is_available(child)) for_each_child_of_node() 482 ret = of_parse_phandle_with_args(child, "thermal-sensors", for_each_child_of_node() 498 tzd = thermal_zone_of_add_sensor(child, sensor_np, for_each_child_of_node() 504 of_node_put(child); for_each_child_of_node() 727 struct device_node *child = NULL, *gchild; thermal_of_build_thermal_zone() local 756 child = of_get_child_by_name(np, "trips"); thermal_of_build_thermal_zone() 759 if (!child) thermal_of_build_thermal_zone() 762 tz->ntrips = of_get_child_count(child); thermal_of_build_thermal_zone() 763 if (tz->ntrips == 0) /* must have at least one child */ thermal_of_build_thermal_zone() 773 for_each_child_of_node(child, gchild) { for_each_child_of_node() 779 of_node_put(child); 782 child = of_get_child_by_name(np, "cooling-maps"); 785 if (!child) 788 tz->num_tbps = of_get_child_count(child); 799 for_each_child_of_node(child, gchild) { for_each_child_of_node() 807 of_node_put(child); 823 of_node_put(child); 855 struct device_node *np, *child; of_parse_thermal_zones() local 865 for_each_child_of_node(np, child) { for_each_child_of_node() 869 /* Check whether child is enabled or not */ for_each_child_of_node() 870 if (!of_device_is_available(child)) for_each_child_of_node() 873 tz = thermal_of_build_thermal_zone(child); for_each_child_of_node() 876 child->name, for_each_child_of_node() 894 zone = thermal_zone_device_register(child->name, tz->ntrips, for_each_child_of_node() 900 pr_err("Failed to build %s zone %ld\n", child->name, for_each_child_of_node() 913 of_node_put(child); 932 struct device_node *np, *child; of_thermal_destroy_zones() local 940 for_each_child_of_node(np, child) { for_each_child_of_node() 943 /* Check whether child is enabled or not */ for_each_child_of_node() 944 if (!of_device_is_available(child)) for_each_child_of_node() 947 zone = thermal_zone_get_zone_by_name(child->name); for_each_child_of_node()
|
/linux-4.1.27/drivers/macintosh/ |
H A D | windfarm_smu_sat.c | 213 struct device_node *child; wf_sat_probe() local 231 child = NULL; wf_sat_probe() 232 while ((child = of_get_next_child(dev, child)) != NULL) { wf_sat_probe() 233 reg = of_get_property(child, "reg", NULL); wf_sat_probe() 234 type = of_get_property(child, "device_type", NULL); wf_sat_probe() 235 loc = of_get_property(child, "location", NULL); wf_sat_probe() 251 "location %s for %s\n", loc, child->full_name); wf_sat_probe()
|
/linux-4.1.27/drivers/gpu/drm/imx/ |
H A D | imx-ldb.c | 60 struct device_node *child; member in struct:imx_ldb_channel 218 int mux = imx_drm_encoder_get_mux_id(imx_ldb_ch->child, encoder); imx_ldb_encoder_commit() 268 int mux = imx_drm_encoder_get_mux_id(imx_ldb_ch->child, encoder); imx_ldb_encoder_mode_set() 408 imx_ldb_ch->child); imx_ldb_register() 512 struct device_node *child; imx_ldb_bind() local 561 for_each_child_of_node(np, child) { for_each_child_of_node() 565 ret = of_property_read_u32(child, "reg", &i); for_each_child_of_node() 574 if (!of_device_is_available(child)) for_each_child_of_node() 580 channel->child = child; for_each_child_of_node() 586 port = of_graph_get_port_by_id(child, imx_ldb->lvds_mux ? 4 : 2); for_each_child_of_node() 605 edidp = of_get_property(child, "edid", &channel->edid_len); for_each_child_of_node() 610 ret = of_get_drm_display_mode(child, &channel->mode, 0); for_each_child_of_node() 615 channel->bus_format = of_get_bus_format(dev, child); for_each_child_of_node()
|
/linux-4.1.27/drivers/video/fbdev/omap2/dss/ |
H A D | omapdss-boot-init.c | 190 struct device_node *dss, *child; omapdss_boot_init() local 201 for_each_available_child_of_node(dss, child) { for_each_available_child_of_node() 202 if (!of_find_property(child, "compatible", NULL)) { for_each_available_child_of_node() 203 of_node_put(child); for_each_available_child_of_node() 207 omapdss_walk_device(child, true); for_each_available_child_of_node()
|
/linux-4.1.27/arch/arc/kernel/ |
H A D | process.c | 90 struct pt_regs *c_regs; /* child's pt_regs */ copy_thread() 92 struct callee_regs *c_callee; /* child's callee regs */ copy_thread() 130 /* Copy parents pt regs on child's kernel mode stack */ copy_thread() 136 c_regs->r0 = 0; /* fork returns 0 in child */ copy_thread() 148 /* Normal fork case: set parent's TLS ptr in child */ copy_thread()
|
H A D | ptrace.c | 137 void ptrace_disable(struct task_struct *child) ptrace_disable() argument 141 long arch_ptrace(struct task_struct *child, long request, arch_ptrace() argument 150 ret = put_user(task_thread_info(child)->thr_ptr, arch_ptrace() 154 ret = ptrace_request(child, request, addr, data); arch_ptrace()
|
/linux-4.1.27/drivers/input/gameport/ |
H A D | gameport.c | 429 * Destroy child gameport port (if any) that has not been fully registered yet. 431 * Note that we rely on the fact that port can have only one child and therefore 432 * only one child registration request can be pending. Additionally, children 434 * pending registration together with a child. 439 struct gameport *gameport, *child = NULL; gameport_get_pending_child() local 448 child = gameport; gameport_get_pending_child() 455 return child; gameport_get_pending_child() 559 gameport->parent->child = gameport; gameport_add_port() 587 struct gameport *child; gameport_destroy_port() local 589 child = gameport_get_pending_child(gameport); gameport_destroy_port() 590 if (child) { gameport_destroy_port() 591 gameport_remove_pending_events(child); gameport_destroy_port() 592 put_device(&child->dev); gameport_destroy_port() 596 gameport->parent->child = NULL; gameport_destroy_port() 621 gameport = gameport->child; gameport_reconnect_port() 627 * all child ports are unbound and destroyed. 633 if (gameport->child) { gameport_disconnect_port() 639 for (s = gameport; s->child; s = s->child) gameport_disconnect_port()
|
/linux-4.1.27/drivers/gpu/drm/gma500/ |
H A D | intel_bios.c | 350 /* judge whether the size of child device meets the requirements. parse_sdvo_device_mapping() 351 * If the child device size obtained from general definition block parse_sdvo_device_mapping() 356 /* different child dev size . Ignore it */ parse_sdvo_device_mapping() 357 DRM_DEBUG_KMS("different child size is found. Invalid.\n"); parse_sdvo_device_mapping() 362 /* get the number of child device */ parse_sdvo_device_mapping() 460 /* judge whether the size of child device meets the requirements. parse_device_mapping() 461 * If the child device size obtained from general definition block parse_device_mapping() 466 /* different child dev size . Ignore it */ parse_device_mapping() 467 DRM_DEBUG_KMS("different child size is found. Invalid.\n"); parse_device_mapping() 472 /* get the number of child device */ parse_device_mapping() 476 /* get the number of child devices that are present */ parse_device_mapping() 486 DRM_DEBUG_KMS("no child dev is parsed from VBT\n"); parse_device_mapping() 491 DRM_DEBUG_KMS("No memory space for child devices\n"); parse_device_mapping()
|
/linux-4.1.27/drivers/gpu/drm/i915/ |
H A D | intel_bios.c | 469 /* judge whether the size of child device meets the requirements. parse_sdvo_device_mapping() 470 * If the child device size obtained from general definition block parse_sdvo_device_mapping() 475 /* different child dev size . Ignore it */ parse_sdvo_device_mapping() 476 DRM_DEBUG_KMS("different child size is found. Invalid.\n"); parse_sdvo_device_mapping() 481 /* get the number of child device */ parse_sdvo_device_mapping() 948 union child_device_config *it, *child = NULL; parse_ddi_port() local 965 /* Find the child device to use, abort if more than one found. */ parse_ddi_port() 974 if (child) { parse_ddi_port() 975 DRM_DEBUG_KMS("More than one child device for port %c in VBT.\n", parse_ddi_port() 979 child = it; parse_ddi_port() 983 if (!child) parse_ddi_port() 986 aux_channel = child->raw[25]; parse_ddi_port() 988 is_dvi = child->common.device_type & DEVICE_TYPE_TMDS_DVI_SIGNALING; parse_ddi_port() 989 is_dp = child->common.device_type & DEVICE_TYPE_DISPLAYPORT_OUTPUT; parse_ddi_port() 990 is_crt = child->common.device_type & DEVICE_TYPE_ANALOG_OUTPUT; parse_ddi_port() 991 is_hdmi = is_dvi && (child->common.device_type & DEVICE_TYPE_NOT_HDMI_OUTPUT) == 0; parse_ddi_port() 992 is_edp = is_dp && (child->common.device_type & DEVICE_TYPE_INTERNAL_CONNECTOR); parse_ddi_port() 1018 if (child->common.ddc_pin == 0x05 && port != PORT_B) parse_ddi_port() 1020 if (child->common.ddc_pin == 0x04 && port != PORT_C) parse_ddi_port() 1022 if (child->common.ddc_pin == 0x06 && port != PORT_D) parse_ddi_port() 1039 hdmi_level_shift = child->raw[7] & 0xF; parse_ddi_port() 1080 /* judge whether the size of child device meets the requirements. parse_device_mapping() 1081 * If the child device size obtained from general definition block parse_device_mapping() 1086 /* different child dev size . Ignore it */ parse_device_mapping() 1087 DRM_DEBUG_KMS("different child size is found. Invalid.\n"); parse_device_mapping() 1092 /* get the number of child device */ parse_device_mapping() 1096 /* get the number of child device that is present */ parse_device_mapping() 1106 DRM_DEBUG_KMS("no child dev is parsed from VBT\n"); parse_device_mapping() 1111 DRM_DEBUG_KMS("No memory space for child device\n"); parse_device_mapping()
|
/linux-4.1.27/drivers/irqchip/ |
H A D | irq-gic-v2m.c | 318 struct device_node *child; gicv2m_of_init() local 320 for (child = of_find_matching_node(node, gicv2m_device_id); child; gicv2m_of_init() 321 child = of_find_matching_node(child, gicv2m_device_id)) { gicv2m_of_init() 322 if (!of_find_property(child, "msi-controller", NULL)) gicv2m_of_init() 325 ret = gicv2m_init_one(child, parent); gicv2m_of_init()
|
/linux-4.1.27/include/uapi/asm-generic/ |
H A D | siginfo.h | 80 __kernel_pid_t _pid; /* which child */ 235 #define CLD_EXITED (__SI_CHLD|1) /* child has exited */ 236 #define CLD_KILLED (__SI_CHLD|2) /* child was killed */ 237 #define CLD_DUMPED (__SI_CHLD|3) /* child terminated abnormally */ 238 #define CLD_TRAPPED (__SI_CHLD|4) /* traced child has trapped */ 239 #define CLD_STOPPED (__SI_CHLD|5) /* child has stopped */ 240 #define CLD_CONTINUED (__SI_CHLD|6) /* stopped child has continued */
|
/linux-4.1.27/tools/perf/tests/ |
H A D | builtin-test.c | 154 .desc = "Test cumulation of child hist entries", 204 int status, err = -1, child = fork(); run_test() local 207 if (child < 0) { run_test() 213 if (!child) { run_test() 214 pr_debug("test child forked, pid %d\n", getpid()); run_test() 223 pr_debug("test child finished with %d\n", err); run_test() 226 pr_debug("test child interrupted\n"); run_test()
|
/linux-4.1.27/tools/perf/ui/stdio/ |
H A D | hist.c | 85 struct callchain_node *child; __callchain__fprintf_graph() local 100 child = rb_entry(node, struct callchain_node, rb_node); __callchain__fprintf_graph() 101 cumul = callchain_cumul_hits(child); __callchain__fprintf_graph() 107 * level for the last child of this depth. __callchain__fprintf_graph() 109 * supersede the last child __callchain__fprintf_graph() 117 * to keep the level link until we reach the last child __callchain__fprintf_graph() 122 list_for_each_entry(chain, &child->val, list) { __callchain__fprintf_graph() 131 new_total = child->children_hit; __callchain__fprintf_graph() 135 ret += __callchain__fprintf_graph(fp, &child->rb_root, new_total, __callchain__fprintf_graph()
|
/linux-4.1.27/drivers/staging/fsl-mc/include/ |
H A D | dprc.h | 87 * to spawn and have its own child containers. 133 * dprc_create_container() - Create child container 137 * @child_container_id: Returned child container ID 139 * child portal 150 * dprc_destroy_container() - Destroy child container. 155 * This function terminates the child container, so following this call the 156 * child container ID becomes invalid. 161 * - This function destroy all the child containers of the specified 164 * warning: Only the parent container is allowed to destroy a child policy 175 * dprc_reset_container - Reset child container. 184 * This routine informs all objects assigned to the child container that the 186 * needed. All objects handles that were owned by the child container shall be 189 * Note that such request may be submitted even if the child software context 408 * type in a child container 411 * @child_container_id: ID of the child container 414 * that the child container is allowed to allocate from its parent; 428 * @warning Only the parent container is allowed to change a child policy. 438 * resource/object type in a child container 441 * @child_container_id; ID of the child container 444 * that the child container is allowed to allocate from the parent; 501 * dprc_assign() - Assigns objects or resource to a child container. 504 * @container_id: ID of the child container 508 * Assignment is usually done by a parent (this DPRC) to one of its child 526 * If IRQ information has been set in the child DPRC, it will signal an 537 * dprc_unassign() - Un-assigns objects or resources from a child container 541 * @child_container_id: ID of the child container 543 * the child container
|
/linux-4.1.27/drivers/clk/ux500/ |
H A D | u8500_of_clk.c | 62 struct device_node *child = NULL; u8500_of_clk_init() local 540 for_each_child_of_node(np, child) { for_each_child_of_node() 543 if (!of_node_cmp(child->name, "prcmu-clock")) { for_each_child_of_node() 546 of_clk_add_provider(child, of_clk_src_onecell_get, &clk_data); for_each_child_of_node() 548 if (!of_node_cmp(child->name, "prcc-periph-clock")) for_each_child_of_node() 549 of_clk_add_provider(child, ux500_twocell_get, prcc_pclk); for_each_child_of_node() 551 if (!of_node_cmp(child->name, "prcc-kernel-clock")) for_each_child_of_node() 552 of_clk_add_provider(child, ux500_twocell_get, prcc_kclk); for_each_child_of_node() 554 if (!of_node_cmp(child->name, "rtc32k-clock")) for_each_child_of_node() 555 of_clk_add_provider(child, of_clk_src_simple_get, rtc_clk); for_each_child_of_node() 557 if (!of_node_cmp(child->name, "smp-twd-clock")) for_each_child_of_node() 558 of_clk_add_provider(child, of_clk_src_simple_get, twd_clk); for_each_child_of_node()
|
/linux-4.1.27/drivers/acpi/ |
H A D | container.c | 49 struct acpi_device *child; acpi_container_offline() local 52 list_for_each_entry(child, &adev->children, node) acpi_container_offline() 53 if (!acpi_scan_is_offline(child, false)) acpi_container_offline()
|
/linux-4.1.27/tools/testing/selftests/exec/ |
H A D | execveat.c | 69 pid_t child; check_execveat_invoked_rc() local 78 child = fork(); check_execveat_invoked_rc() 79 if (child < 0) { check_execveat_invoked_rc() 83 if (child == 0) { check_execveat_invoked_rc() 90 /* Parent: wait for & check child's exit status. */ check_execveat_invoked_rc() 91 rc = waitpid(child, &status, 0); check_execveat_invoked_rc() 92 if (rc != child) { check_execveat_invoked_rc() 93 printf("[FAIL] (waitpid(%d,...) returned %d)\n", child, rc); check_execveat_invoked_rc() 97 printf("[FAIL] (child %d did not exit cleanly, status=%08x)\n", check_execveat_invoked_rc() 98 child, status); check_execveat_invoked_rc() 103 printf("[FAIL] (child %d exited with %d not %d nor %d)\n", check_execveat_invoked_rc() 104 child, WEXITSTATUS(status), expected_rc, expected_rc2); check_execveat_invoked_rc()
|
/linux-4.1.27/arch/um/kernel/skas/ |
H A D | clone.c | 50 * child: retcode of mmap already saved and it jumps around this stub_clone_handler()
|
/linux-4.1.27/arch/sh/kernel/cpu/ |
H A D | clock.c | 42 /* Kick the child clocks.. */ clk_init()
|
/linux-4.1.27/arch/powerpc/include/asm/ |
H A D | bootx.h | 42 u32 child; member in struct:bootx_dt_node
|
/linux-4.1.27/arch/c6x/kernel/ |
H A D | ptrace.c | 25 void ptrace_disable(struct task_struct *child) ptrace_disable() argument 142 long arch_ptrace(struct task_struct *child, long request, arch_ptrace() argument 152 ret = generic_ptrace_pokedata(child, addr, data); arch_ptrace() 157 ret = ptrace_request(child, request, addr, data); arch_ptrace()
|
/linux-4.1.27/arch/arm/mach-shmobile/ |
H A D | clock.c | 40 /* Kick the child clocks.. */ shmobile_clk_init()
|
/linux-4.1.27/fs/gfs2/ |
H A D | export.c | 89 struct dentry *child) gfs2_get_name() 92 struct inode *inode = d_inode(child); gfs2_get_name() 129 static struct dentry *gfs2_get_parent(struct dentry *child) gfs2_get_parent() argument 131 return d_obtain_alias(gfs2_lookupi(d_inode(child), &gfs2_qdotdot, 1)); gfs2_get_parent() 88 gfs2_get_name(struct dentry *parent, char *name, struct dentry *child) gfs2_get_name() argument
|
/linux-4.1.27/security/apparmor/ |
H A D | apparmorfs.c | 354 struct aa_profile *child; __aa_fs_profile_rmdir() local 360 list_for_each_entry(child, &profile->base.profiles, base.list) __aa_fs_profile_rmdir() 361 __aa_fs_profile_rmdir(child); __aa_fs_profile_rmdir() 403 struct aa_profile *child; __aa_fs_profile_mkdir() local 460 list_for_each_entry(child, &profile->base.profiles, base.list) { __aa_fs_profile_mkdir() 461 error = __aa_fs_profile_mkdir(child, prof_child_dir(profile)); __aa_fs_profile_mkdir() 480 struct aa_profile *child; __aa_fs_namespace_rmdir() local 486 list_for_each_entry(child, &ns->base.profiles, base.list) __aa_fs_namespace_rmdir() 487 __aa_fs_profile_rmdir(child); __aa_fs_namespace_rmdir() 505 struct aa_profile *child; __aa_fs_namespace_mkdir() local 527 list_for_each_entry(child, &ns->base.profiles, base.list) { __aa_fs_namespace_mkdir() 528 error = __aa_fs_profile_mkdir(child, ns_subprofs_dir(ns)); __aa_fs_namespace_mkdir() 574 /* is next namespace a child */ __next_namespace() 630 /* is next profile a child */ __next_profile() 853 * @fs_dir: aa_fs_entry (and all child entries) to build (NOT NULL) 902 * @fs_dir: aa_fs_entry (and all child entries) to detach (NOT NULL)
|
/linux-4.1.27/ipc/ |
H A D | mq_sysctl.c | 107 .child = mq_sysctls, 116 .child = mq_sysctl_dir,
|
/linux-4.1.27/arch/mips/include/uapi/asm/ |
H A D | siginfo.h | 67 __kernel_pid_t _pid; /* which child */ 76 __kernel_pid_t _pid; /* which child */
|
/linux-4.1.27/tools/testing/selftests/powerpc/ |
H A D | harness.c | 78 printf("!! child died by signal %d\n", WTERMSIG(status)); run_test() 80 printf("!! child died by unknown cause\n"); run_test()
|
/linux-4.1.27/drivers/usb/host/ |
H A D | ehci-exynos.c | 55 struct device_node *child; exynos_ehci_get_phy() local 61 for_each_available_child_of_node(dev->of_node, child) { exynos_ehci_get_phy() 62 ret = of_property_read_u32(child, "reg", &phy_number); exynos_ehci_get_phy() 65 of_node_put(child); exynos_ehci_get_phy() 71 of_node_put(child); exynos_ehci_get_phy() 75 phy = devm_of_phy_get(dev, child, NULL); exynos_ehci_get_phy()
|
H A D | ohci-exynos.c | 44 struct device_node *child; exynos_ohci_get_phy() local 50 for_each_available_child_of_node(dev->of_node, child) { exynos_ohci_get_phy() 51 ret = of_property_read_u32(child, "reg", &phy_number); exynos_ohci_get_phy() 54 of_node_put(child); exynos_ohci_get_phy() 60 of_node_put(child); exynos_ohci_get_phy() 64 phy = devm_of_phy_get(dev, child, NULL); exynos_ohci_get_phy()
|
/linux-4.1.27/arch/powerpc/platforms/44x/ |
H A D | warp.c | 175 struct device_node *np, *child; pika_setup_leds() local 183 for_each_child_of_node(np, child) pika_setup_leds() 184 if (strcmp(child->name, "green") == 0) pika_setup_leds() 185 green_led = of_get_gpio(child, 0); pika_setup_leds() 186 else if (strcmp(child->name, "red") == 0) pika_setup_leds() 187 red_led = of_get_gpio(child, 0); pika_setup_leds()
|
/linux-4.1.27/drivers/firmware/ |
H A D | dmi-sysfs.c | 38 struct kobject *child; member in struct:dmi_sysfs_entry 451 entry->child = kzalloc(sizeof(*entry->child), GFP_KERNEL); dmi_system_event_log() 452 if (!entry->child) dmi_system_event_log() 454 ret = kobject_init_and_add(entry->child, dmi_system_event_log() 461 ret = sysfs_create_bin_file(entry->child, &dmi_sel_raw_attr); dmi_system_event_log() 468 kobject_del(entry->child); dmi_system_event_log() 470 kfree(entry->child); dmi_system_event_log() 633 kobject_put(entry->child); dmi_sysfs_register_handle() 644 kobject_put(entry->child); cleanup_entry_list()
|
/linux-4.1.27/fs/exportfs/ |
H A D | expfs.c | 22 static int get_name(const struct path *path, char *name, struct dentry *child); 26 char *name, struct dentry *child) exportfs_get_name() 32 return nop->get_name(dir, name, child); exportfs_get_name() 34 return get_name(&path, name, child); exportfs_get_name() 265 * @child: the dentry for the child directory. 268 * the same inode number as the child, and returns that. 270 static int get_name(const struct path *path, char *name, struct dentry *child) get_name() argument 279 .dentry = child, get_name() 521 * by the child dentry anyway. exportfs_decode_fh() 25 exportfs_get_name(struct vfsmount *mnt, struct dentry *dir, char *name, struct dentry *child) exportfs_get_name() argument
|
/linux-4.1.27/lib/ |
H A D | btree.c | 532 /* Exchange left and right child in parent */ merge() 535 /* Remove left (formerly right) child from parent */ merge() 541 unsigned long *key, int level, unsigned long *child, int fill) rebalance() 548 * can happen. Parent node contains a single child, this rebalance() 552 mempool_free(child, head->mempool); rebalance() 558 BUG_ON(bval(geo, parent, i) != child); rebalance() 566 child, fill, rebalance() 576 child, fill, rebalance() 684 unsigned long *child; __btree_for_each() local 687 child = bval(geo, node, i); __btree_for_each() 688 if (!child) __btree_for_each() 691 count = __btree_for_each(head, geo, child, opaque, __btree_for_each() 694 func(child, opaque, bkey(geo, node, i), count++, __btree_for_each() 540 rebalance(struct btree_head *head, struct btree_geo *geo, unsigned long *key, int level, unsigned long *child, int fill) rebalance() argument
|
/linux-4.1.27/arch/um/os-Linux/skas/ |
H A D | process.c | 427 printk(UM_KERN_ERR "userspace - child stopped " userspace() 472 * prepare offset and fd of child's stack as argument for parent's copy_context_skas0() 473 * and child's mmap2 calls copy_context_skas0() 496 /* set a well known return code for detection of child write failure */ copy_context_skas0() 500 * Wait, until parent has finished its work: read child's pid from copy_context_skas0() 521 * Wait, until child has finished too: read child's result from copy_context_skas0() 522 * child's stack and check it. copy_context_skas0() 526 printk(UM_KERN_ERR "copy_context_skas0 - stub-child reports " copy_context_skas0()
|
/linux-4.1.27/drivers/i2c/muxes/ |
H A D | i2c-arb-gpio-challenge.c | 32 * @child: Child bus 46 struct i2c_adapter *child; member in struct:i2c_arbitrator_data 206 arb->child = i2c_add_mux_adapter(arb->parent, dev, arb, 0, 0, 0, i2c_arbitrator_probe() 209 if (!arb->child) { i2c_arbitrator_probe() 222 i2c_del_mux_adapter(arb->child); i2c_arbitrator_remove()
|
/linux-4.1.27/drivers/misc/ |
H A D | sram.c | 62 struct device_node *np = pdev->dev.of_node, *child; sram_probe() local 115 for_each_available_child_of_node(np, child) { for_each_available_child_of_node() 118 ret = of_address_to_resource(child, 0, &child_res); for_each_available_child_of_node() 122 child->full_name); for_each_available_child_of_node() 129 child->full_name); for_each_available_child_of_node()
|
/linux-4.1.27/fs/ocfs2/ |
H A D | export.c | 145 static struct dentry *ocfs2_get_parent(struct dentry *child) ocfs2_get_parent() argument 150 struct inode *dir = d_inode(child); ocfs2_get_parent() 152 trace_ocfs2_get_parent(child, child->d_name.len, child->d_name.name, ocfs2_get_parent()
|