Home
last modified time | relevance | path

Searched refs:child (Results 1 – 200 of 799) sorted by relevance

1234

/linux-4.4.14/arch/score/kernel/
Dptrace.c129 read_tsk_long(struct task_struct *child, in read_tsk_long() argument
134 copied = access_process_vm(child, addr, res, sizeof(*res), 0); in read_tsk_long()
140 read_tsk_short(struct task_struct *child, in read_tsk_short() argument
145 copied = access_process_vm(child, addr, res, sizeof(*res), 0); in read_tsk_short()
151 write_tsk_short(struct task_struct *child, in write_tsk_short() argument
156 copied = access_process_vm(child, addr, &val, sizeof(val), 1); in write_tsk_short()
162 write_tsk_long(struct task_struct *child, in write_tsk_long() argument
167 copied = access_process_vm(child, addr, &val, sizeof(val), 1); in write_tsk_long()
172 void user_enable_single_step(struct task_struct *child) in user_enable_single_step() argument
179 struct pt_regs *regs = task_pt_regs(child); in user_enable_single_step()
[all …]
/linux-4.4.14/arch/x86/kernel/
Dstep.c10 unsigned long convert_ip_to_linear(struct task_struct *child, struct pt_regs *regs) in convert_ip_to_linear() argument
34 mutex_lock(&child->mm->context.lock); in convert_ip_to_linear()
35 if (unlikely(!child->mm->context.ldt || in convert_ip_to_linear()
36 seg >= child->mm->context.ldt->size)) in convert_ip_to_linear()
39 desc = &child->mm->context.ldt->entries[seg]; in convert_ip_to_linear()
47 mutex_unlock(&child->mm->context.lock); in convert_ip_to_linear()
54 static int is_setting_trap_flag(struct task_struct *child, struct pt_regs *regs) in is_setting_trap_flag() argument
58 unsigned long addr = convert_ip_to_linear(child, regs); in is_setting_trap_flag()
60 copied = access_process_vm(child, addr, opcode, sizeof(opcode), 0); in is_setting_trap_flag()
108 static int enable_single_step(struct task_struct *child) in enable_single_step() argument
[all …]
Dptrace.c411 static int putreg(struct task_struct *child, in putreg() argument
421 return set_segment_reg(child, offset, value); in putreg()
424 return set_flags(child, value); in putreg()
428 if (value >= TASK_SIZE_OF(child)) in putreg()
435 if (child->thread.fs != value) in putreg()
436 return do_arch_prctl(child, ARCH_SET_FS, value); in putreg()
442 if (value >= TASK_SIZE_OF(child)) in putreg()
444 if (child->thread.gs != value) in putreg()
445 return do_arch_prctl(child, ARCH_SET_GS, value); in putreg()
450 *pt_regs_access(task_pt_regs(child), offset) = value; in putreg()
[all …]
/linux-4.4.14/kernel/
Dptrace.c37 void __ptrace_link(struct task_struct *child, struct task_struct *new_parent) in __ptrace_link() argument
39 BUG_ON(!list_empty(&child->ptrace_entry)); in __ptrace_link()
40 list_add(&child->ptrace_entry, &new_parent->ptraced); in __ptrace_link()
41 child->parent = new_parent; in __ptrace_link()
72 void __ptrace_unlink(struct task_struct *child) in __ptrace_unlink() argument
74 BUG_ON(!child->ptrace); in __ptrace_unlink()
76 child->ptrace = 0; in __ptrace_unlink()
77 child->parent = child->real_parent; in __ptrace_unlink()
78 list_del_init(&child->ptrace_entry); in __ptrace_unlink()
80 spin_lock(&child->sighand->siglock); in __ptrace_unlink()
[all …]
Dresource.c69 if (p->child) in next_resource()
70 return p->child; in next_resource()
93 for (p = p->child; p && l < *pos; p = r_next(m, p, &l)) in r_start()
220 p = &root->child; in __request_resource()
240 p = &old->parent->child; in __release_resource()
260 p = r->child; in __release_child_resources()
261 r->child = NULL; in __release_child_resources()
360 for (p = iomem_resource.child; p; p = next_resource(p, sibling_only)) { in find_next_iomem_res()
521 for (p = iomem_resource.child; p ; p = p->sibling) { in region_intersects()
572 struct resource *this = root->child; in __find_resource()
[all …]
/linux-4.4.14/drivers/mfd/
Dtwl-core.c727 struct device *child; in add_children() local
730 child = add_child(TWL4030_MODULE_GPIO, "twl4030_gpio", in add_children()
733 if (IS_ERR(child)) in add_children()
734 return PTR_ERR(child); in add_children()
738 child = add_child(TWL4030_MODULE_KEYPAD, "twl4030_keypad", in add_children()
741 if (IS_ERR(child)) in add_children()
742 return PTR_ERR(child); in add_children()
747 child = add_child(TWL4030_MODULE_MADC, "twl4030_madc", in add_children()
750 if (IS_ERR(child)) in add_children()
751 return PTR_ERR(child); in add_children()
[all …]
Ddm355evm_msp.c257 struct device *child; in add_children() local
300 child = add_child(client, "leds-gpio", in add_children()
303 if (IS_ERR(child)) in add_children()
304 return PTR_ERR(child); in add_children()
326 child = add_child(client, "rtc-dm355evm", in add_children()
328 if (IS_ERR(child)) in add_children()
329 return PTR_ERR(child); in add_children()
334 child = add_child(client, "dm355evm_keys", in add_children()
336 if (IS_ERR(child)) in add_children()
337 return PTR_ERR(child); in add_children()
Dmfd-core.c86 struct acpi_device *parent, *child; in mfd_acpi_add_device() local
108 list_for_each_entry(child, &parent->children, node) { in mfd_acpi_add_device()
109 if (acpi_match_device_ids(child, ids)) { in mfd_acpi_add_device()
110 adev = child; in mfd_acpi_add_device()
118 list_for_each_entry(child, &parent->children, node) { in mfd_acpi_add_device()
119 status = acpi_evaluate_integer(child->handle, in mfd_acpi_add_device()
123 adev = child; in mfd_acpi_add_device()
/linux-4.4.14/arch/m32r/kernel/
Dptrace.c216 check_condition_bit(struct task_struct *child) in check_condition_bit() argument
218 return (int)((get_stack_long(child, PT_PSW) >> 8) & 1); in check_condition_bit()
223 unsigned long regno2, struct task_struct *child) in check_condition_src() argument
227 reg2 = get_stack_long(child, reg_offset[regno2]); in check_condition_src()
231 reg1 = get_stack_long(child, reg_offset[regno1]); in check_condition_src()
234 reg1 = get_stack_long(child, reg_offset[regno1]); in check_condition_src()
257 struct task_struct *child) in compute_next_pc_for_16bit_insn() argument
279 if (!check_condition_bit(child)) { in compute_next_pc_for_16bit_insn()
287 if (check_condition_bit(child)) { in compute_next_pc_for_16bit_insn()
320 *next_pc = get_stack_long(child, PT_BPC); in compute_next_pc_for_16bit_insn()
[all …]
/linux-4.4.14/drivers/pwm/
Dsysfs.c27 struct device child; member
31 static struct pwm_export *child_to_pwm_export(struct device *child) in child_to_pwm_export() argument
33 return container_of(child, struct pwm_export, child); in child_to_pwm_export()
36 static struct pwm_device *child_to_pwm_device(struct device *child) in child_to_pwm_device() argument
38 struct pwm_export *export = child_to_pwm_export(child); in child_to_pwm_device()
43 static ssize_t period_show(struct device *child, in period_show() argument
47 const struct pwm_device *pwm = child_to_pwm_device(child); in period_show()
52 static ssize_t period_store(struct device *child, in period_store() argument
56 struct pwm_device *pwm = child_to_pwm_device(child); in period_store()
69 static ssize_t duty_cycle_show(struct device *child, in duty_cycle_show() argument
[all …]
/linux-4.4.14/arch/m68k/kernel/
Dptrace.c126 static inline void singlestep_disable(struct task_struct *child) in singlestep_disable() argument
128 unsigned long tmp = get_reg(child, PT_SR) & ~TRACE_BITS; in singlestep_disable()
129 put_reg(child, PT_SR, tmp); in singlestep_disable()
130 clear_tsk_thread_flag(child, TIF_DELAYED_TRACE); in singlestep_disable()
136 void ptrace_disable(struct task_struct *child) in ptrace_disable() argument
138 singlestep_disable(child); in ptrace_disable()
141 void user_enable_single_step(struct task_struct *child) in user_enable_single_step() argument
143 unsigned long tmp = get_reg(child, PT_SR) & ~TRACE_BITS; in user_enable_single_step()
144 put_reg(child, PT_SR, tmp | T1_BIT); in user_enable_single_step()
145 set_tsk_thread_flag(child, TIF_DELAYED_TRACE); in user_enable_single_step()
[all …]
/linux-4.4.14/arch/mips/kernel/
Dptrace32.c42 long compat_arch_ptrace(struct task_struct *child, compat_long_t request, in compat_arch_ptrace() argument
72 copied = access_process_vm(child, (u64)addrOthers, &tmp, in compat_arch_ptrace()
86 regs = task_pt_regs(child); in compat_arch_ptrace()
94 if (!tsk_used_math(child)) { in compat_arch_ptrace()
99 fregs = get_fpu_regs(child); in compat_arch_ptrace()
128 tmp = child->thread.fpu.fcr31; in compat_arch_ptrace()
142 dregs = __get_dsp_regs(child); in compat_arch_ptrace()
152 tmp = child->thread.dsp.dspcontrol; in compat_arch_ptrace()
181 if (access_process_vm(child, (u64)addrOthers, &data, in compat_arch_ptrace()
191 regs = task_pt_regs(child); in compat_arch_ptrace()
[all …]
Dptrace.c75 void ptrace_disable(struct task_struct *child) in ptrace_disable() argument
78 clear_tsk_thread_flag(child, TIF_LOAD_WATCH); in ptrace_disable()
86 static void ptrace_setfcr31(struct task_struct *child, u32 value) in ptrace_setfcr31() argument
92 fcr31 = child->thread.fpu.fcr31; in ptrace_setfcr31()
94 child->thread.fpu.fcr31 = (value & ~mask) | (fcr31 & mask); in ptrace_setfcr31()
102 int ptrace_getregs(struct task_struct *child, struct user_pt_regs __user *data) in ptrace_getregs() argument
110 regs = task_pt_regs(child); in ptrace_getregs()
129 int ptrace_setregs(struct task_struct *child, struct user_pt_regs __user *data) in ptrace_setregs() argument
137 regs = task_pt_regs(child); in ptrace_setregs()
150 int ptrace_getfpregs(struct task_struct *child, __u32 __user *data) in ptrace_getfpregs() argument
[all …]
/linux-4.4.14/arch/um/kernel/
Dptrace.c13 void user_enable_single_step(struct task_struct *child) in user_enable_single_step() argument
15 child->ptrace |= PT_DTRACE; in user_enable_single_step()
16 child->thread.singlestep_syscall = 0; in user_enable_single_step()
19 SUBARCH_SET_SINGLESTEPPING(child, 1); in user_enable_single_step()
23 void user_disable_single_step(struct task_struct *child) in user_disable_single_step() argument
25 child->ptrace &= ~PT_DTRACE; in user_disable_single_step()
26 child->thread.singlestep_syscall = 0; in user_disable_single_step()
29 SUBARCH_SET_SINGLESTEPPING(child, 0); in user_disable_single_step()
36 void ptrace_disable(struct task_struct *child) in ptrace_disable() argument
38 user_disable_single_step(child); in ptrace_disable()
[all …]
/linux-4.4.14/arch/powerpc/kernel/
Dptrace.c1064 void ptrace_disable(struct task_struct *child) in ptrace_disable() argument
1067 user_disable_single_step(child); in ptrace_disable()
1071 static long set_instruction_bp(struct task_struct *child, in set_instruction_bp() argument
1075 int slot1_in_use = ((child->thread.debug.dbcr0 & DBCR0_IAC1) != 0); in set_instruction_bp()
1076 int slot2_in_use = ((child->thread.debug.dbcr0 & DBCR0_IAC2) != 0); in set_instruction_bp()
1077 int slot3_in_use = ((child->thread.debug.dbcr0 & DBCR0_IAC3) != 0); in set_instruction_bp()
1078 int slot4_in_use = ((child->thread.debug.dbcr0 & DBCR0_IAC4) != 0); in set_instruction_bp()
1080 if (dbcr_iac_range(child) & DBCR_IAC12MODE) in set_instruction_bp()
1082 if (dbcr_iac_range(child) & DBCR_IAC34MODE) in set_instruction_bp()
1097 child->thread.debug.iac1 = bp_info->addr; in set_instruction_bp()
[all …]
Dptrace32.c47 long compat_arch_ptrace(struct task_struct *child, compat_long_t request, in compat_arch_ptrace() argument
76 copied = access_process_vm(child, (u64)addrOthers, &tmp, in compat_arch_ptrace()
95 CHECK_FULL_REGS(child->thread.regs); in compat_arch_ptrace()
97 ret = ptrace_get_reg(child, index, &tmp); in compat_arch_ptrace()
101 flush_fp_to_thread(child); in compat_arch_ptrace()
107 tmp = ((unsigned int *)child->thread.fp_state.fpr) in compat_arch_ptrace()
145 CHECK_FULL_REGS(child->thread.regs); in compat_arch_ptrace()
147 flush_fp_to_thread(child); in compat_arch_ptrace()
149 tmp = child->thread.fp_state.fpr[numReg - PT_FPR0][0]; in compat_arch_ptrace()
152 ret = ptrace_get_reg(child, numReg, &tmp2); in compat_arch_ptrace()
[all …]
Deeh_pe.c78 INIT_LIST_HEAD(&pe->child); in eeh_pe_alloc()
105 list_add_tail(&pe->child, &eeh_phb_pe); in eeh_phb_pe_create()
124 list_for_each_entry(pe, &eeh_phb_pe, child) { in eeh_phb_pe_get()
154 next = pe->child.next; in eeh_pe_next()
161 return list_entry(next, struct eeh_pe, child); in eeh_pe_next()
416 list_add_tail(&pe->child, &parent->child_list); in eeh_add_to_parent_pe()
441 struct eeh_pe *pe, *parent, *child; in eeh_rmv_from_parent_pe() local
472 list_del(&pe->child); in eeh_rmv_from_parent_pe()
480 list_for_each_entry(child, &pe->child_list, child) { in eeh_rmv_from_parent_pe()
481 if (!(child->type & EEH_PE_INVALID)) { in eeh_rmv_from_parent_pe()
/linux-4.4.14/arch/cris/arch-v32/kernel/
Dptrace.c31 static unsigned long get_pseudo_pc(struct task_struct *child);
80 void user_enable_single_step(struct task_struct *child) in user_enable_single_step() argument
88 if (!get_reg(child, PT_SPC)) { in user_enable_single_step()
90 tmp = get_reg(child, PT_ERP) & ~1; in user_enable_single_step()
91 put_reg(child, PT_SPC, tmp); in user_enable_single_step()
93 tmp = get_reg(child, PT_CCS) | SBIT_USER; in user_enable_single_step()
94 put_reg(child, PT_CCS, tmp); in user_enable_single_step()
97 void user_disable_single_step(struct task_struct *child) in user_disable_single_step() argument
99 put_reg(child, PT_SPC, 0); in user_disable_single_step()
101 if (!get_debugreg(child->pid, PT_BP_CTRL)) { in user_disable_single_step()
[all …]
/linux-4.4.14/arch/s390/numa/
Dtoptree.c70 struct toptree *child, *tmp; in toptree_free() local
74 toptree_for_each_child_safe(child, tmp, cand) in toptree_free()
75 toptree_free(child); in toptree_free()
93 struct toptree *child; in toptree_update_mask() local
96 list_for_each_entry(child, &cand->children, sibling) in toptree_update_mask()
97 cpumask_or(&cand->mask, &cand->mask, &child->mask); in toptree_update_mask()
134 struct toptree *child, *tmp; in toptree_move_children() local
136 toptree_for_each_child_safe(child, tmp, cand) in toptree_move_children()
137 toptree_move(child, target); in toptree_move_children()
150 struct toptree *child, *tmp, *cand_copy; in toptree_unify() local
[all …]
Dtoptree.h35 #define toptree_for_each_child(child, ptree) \ argument
36 list_for_each_entry(child, &ptree->children, sibling)
38 #define toptree_for_each_child_safe(child, ptmp, ptree) \ argument
39 list_for_each_entry_safe(child, ptmp, &ptree->children, sibling)
/linux-4.4.14/arch/alpha/kernel/
Dptrace.c175 ptrace_set_bpt(struct task_struct * child) in ptrace_set_bpt() argument
181 pc = get_reg(child, REG_PC); in ptrace_set_bpt()
182 res = read_int(child, pc, (int *) &insn); in ptrace_set_bpt()
197 task_thread_info(child)->bpt_addr[nsaved++] = pc + 4; in ptrace_set_bpt()
199 task_thread_info(child)->bpt_addr[nsaved++] in ptrace_set_bpt()
204 task_thread_info(child)->bpt_addr[nsaved++] = get_reg(child, reg_b); in ptrace_set_bpt()
207 task_thread_info(child)->bpt_addr[nsaved++] = pc + 4; in ptrace_set_bpt()
213 res = read_int(child, task_thread_info(child)->bpt_addr[i], in ptrace_set_bpt()
217 task_thread_info(child)->bpt_insn[i] = insn; in ptrace_set_bpt()
219 task_thread_info(child)->bpt_addr[i])); in ptrace_set_bpt()
[all …]
/linux-4.4.14/arch/x86/um/
Dptrace_32.c73 int putreg(struct task_struct *child, int regno, unsigned long value) in putreg() argument
109 child->thread.regs.regs.gp[HOST_EFLAGS] |= value; in putreg()
112 child->thread.regs.regs.syscall = value; in putreg()
117 child->thread.regs.regs.gp[reg_offsets[regno]] = value; in putreg()
121 int poke_user(struct task_struct *child, long addr, long data) in poke_user() argument
127 return putreg(child, addr, data); in poke_user()
134 child->thread.arch.debugregs[addr] = data; in poke_user()
140 unsigned long getreg(struct task_struct *child, int regno) in getreg() argument
147 return child->thread.regs.regs.syscall; in getreg()
170 return mask & child->thread.regs.regs.gp[reg_offsets[regno]]; in getreg()
[all …]
Dptrace_64.c53 int putreg(struct task_struct *child, int regno, unsigned long value) in putreg() argument
60 if (test_tsk_thread_flag(child, TIF_IA32)) in putreg()
103 child->thread.regs.regs.gp[HOST_EFLAGS] |= value; in putreg()
110 child->thread.regs.regs.gp[reg_offsets[regno >> 3]] = value; in putreg()
114 int poke_user(struct task_struct *child, long addr, long data) in poke_user() argument
120 return putreg(child, addr, data); in poke_user()
127 child->thread.arch.debugregs[addr] = data; in poke_user()
133 unsigned long getreg(struct task_struct *child, int regno) in getreg() argument
137 if (test_tsk_thread_flag(child, TIF_IA32)) in getreg()
174 return mask & child->thread.regs.regs.gp[reg_offsets[regno >> 3]]; in getreg()
[all …]
/linux-4.4.14/include/linux/
Dptrace.h45 extern long arch_ptrace(struct task_struct *child, long request,
50 extern int ptrace_request(struct task_struct *child, long request,
53 extern void __ptrace_link(struct task_struct *child,
55 extern void __ptrace_unlink(struct task_struct *child);
85 static inline int ptrace_reparented(struct task_struct *child) in ptrace_reparented() argument
87 return !same_thread_group(child->real_parent, child->parent); in ptrace_reparented()
90 static inline void ptrace_unlink(struct task_struct *child) in ptrace_unlink() argument
92 if (unlikely(child->ptrace)) in ptrace_unlink()
93 __ptrace_unlink(child); in ptrace_unlink()
196 static inline void ptrace_init_task(struct task_struct *child, bool ptrace) in ptrace_init_task() argument
[all …]
Dof_graph.h38 #define for_each_endpoint_of_node(parent, child) \ argument
39 for (child = of_graph_get_next_endpoint(parent, NULL); child != NULL; \
40 child = of_graph_get_next_endpoint(parent, child))
Drbtree_augmented.h140 struct rb_node *child = node->rb_right; in __rb_erase_augmented() local
155 __rb_change_child(node, child, parent, root); in __rb_erase_augmented()
156 if (child) { in __rb_erase_augmented()
157 child->__rb_parent_color = pc; in __rb_erase_augmented()
162 } else if (!child) { in __rb_erase_augmented()
170 struct rb_node *successor = child, *child2; in __rb_erase_augmented()
172 tmp = child->rb_left; in __rb_erase_augmented()
209 WRITE_ONCE(successor->rb_right, child); in __rb_erase_augmented()
210 rb_set_parent(child, successor); in __rb_erase_augmented()
Dproperty.h74 struct fwnode_handle *child);
76 #define device_for_each_child_node(dev, child) \ argument
77 for (child = device_get_next_child_node(dev, NULL); child; \
78 child = device_get_next_child_node(dev, child))
Dof.h59 struct device_node *child; member
899 #define for_each_child_of_node(parent, child) \ argument
900 for (child = of_get_next_child(parent, NULL); child != NULL; \
901 child = of_get_next_child(parent, child))
902 #define for_each_available_child_of_node(parent, child) \ argument
903 for (child = of_get_next_available_child(parent, NULL); child != NULL; \
904 child = of_get_next_available_child(parent, child))
912 struct device_node *child; in of_get_child_count() local
915 for_each_child_of_node(np, child) in of_get_child_count()
923 struct device_node *child; in of_get_available_child_count() local
[all …]
/linux-4.4.14/tools/testing/selftests/ptrace/
Dpeeksiginfo.c43 static int check_error_paths(pid_t child) in check_error_paths() argument
72 ret = sys_ptrace(PTRACE_PEEKSIGINFO, child, &arg, addr_rw); in check_error_paths()
82 ret = sys_ptrace(PTRACE_PEEKSIGINFO, child, &arg, in check_error_paths()
90 ret = sys_ptrace(PTRACE_PEEKSIGINFO, child, &arg, addr_ro); in check_error_paths()
104 int check_direct_path(pid_t child, int shared, int nr) in check_direct_path() argument
121 ret = sys_ptrace(PTRACE_PEEKSIGINFO, child, &arg, siginfo); in check_direct_path()
156 pid_t child; in main() local
162 child = fork(); in main()
163 if (child == -1) { in main()
166 } else if (child == 0) { in main()
[all …]
/linux-4.4.14/arch/frv/kernel/
Dptrace.c241 void user_enable_single_step(struct task_struct *child) in user_enable_single_step() argument
243 child->thread.frame0->__status |= REG__STATUS_STEP; in user_enable_single_step()
246 void user_disable_single_step(struct task_struct *child) in user_disable_single_step() argument
248 child->thread.frame0->__status &= ~REG__STATUS_STEP; in user_disable_single_step()
251 void ptrace_disable(struct task_struct *child) in ptrace_disable() argument
253 user_disable_single_step(child); in ptrace_disable()
256 long arch_ptrace(struct task_struct *child, long request, in arch_ptrace() argument
275 tmp = get_reg(child, regno); in arch_ptrace()
279 tmp = child->mm->end_code - child->mm->start_code; in arch_ptrace()
283 tmp = child->mm->end_data - child->mm->start_data; in arch_ptrace()
[all …]
/linux-4.4.14/arch/tile/kernel/
Dptrace.c32 void user_enable_single_step(struct task_struct *child) in user_enable_single_step() argument
34 set_tsk_thread_flag(child, TIF_SINGLESTEP); in user_enable_single_step()
37 void user_disable_single_step(struct task_struct *child) in user_disable_single_step() argument
39 clear_tsk_thread_flag(child, TIF_SINGLESTEP); in user_disable_single_step()
45 void ptrace_disable(struct task_struct *child) in ptrace_disable() argument
47 clear_tsk_thread_flag(child, TIF_SINGLESTEP); in ptrace_disable()
53 clear_tsk_thread_flag(child, TIF_SYSCALL_TRACE); in ptrace_disable()
63 static char *getregs(struct task_struct *child, struct pt_regs *uregs) in getregs() argument
65 *uregs = *task_pt_regs(child); in getregs()
70 if (task_thread_info(child)->status & TS_COMPAT) in getregs()
[all …]
/linux-4.4.14/arch/xtensa/kernel/
Dptrace.c33 void user_enable_single_step(struct task_struct *child) in user_enable_single_step() argument
35 child->ptrace |= PT_SINGLESTEP; in user_enable_single_step()
38 void user_disable_single_step(struct task_struct *child) in user_disable_single_step() argument
40 child->ptrace &= ~PT_SINGLESTEP; in user_disable_single_step()
47 void ptrace_disable(struct task_struct *child) in ptrace_disable() argument
52 int ptrace_getregs(struct task_struct *child, void __user *uregs) in ptrace_getregs() argument
54 struct pt_regs *regs = task_pt_regs(child); in ptrace_getregs()
78 int ptrace_setregs(struct task_struct *child, void __user *uregs) in ptrace_setregs() argument
80 struct pt_regs *regs = task_pt_regs(child); in ptrace_setregs()
127 int ptrace_getxregs(struct task_struct *child, void __user *uregs) in ptrace_getxregs() argument
[all …]
/linux-4.4.14/scripts/kconfig/
Dconf.c238 struct menu *child; in conf_choice() local
273 for (child = menu->list; child; child = child->next) { in conf_choice()
274 if (!menu_is_visible(child)) in conf_choice()
276 if (!child->sym) { in conf_choice()
277 printf("%*c %s\n", indent, '*', _(menu_get_prompt(child))); in conf_choice()
281 if (child->sym == def_sym) { in conf_choice()
286 printf(" %d. %s", cnt, _(menu_get_prompt(child))); in conf_choice()
287 if (child->sym->name) in conf_choice()
288 printf(" (%s)", child->sym->name); in conf_choice()
289 if (!sym_has_value(child->sym)) in conf_choice()
[all …]
Dmconf.c470 struct menu *child; in build_conf() local
535 for (child = menu->list; child; child = child->next) { in build_conf()
536 if (menu_is_visible(child) && child->sym == def_sym) in build_conf()
537 def_menu = child; in build_conf()
640 for (child = menu->list; child; child = child->next) in build_conf()
641 build_conf(child); in build_conf()
803 struct menu *child; in conf_choice() local
813 for (child = menu->list; child; child = child->next) { in conf_choice()
814 if (!menu_is_visible(child)) in conf_choice()
816 if (child->sym) in conf_choice()
[all …]
Dnconf.c737 struct menu *child; in build_conf() local
798 for (child = menu->list; child; child = child->next) { in build_conf()
799 if (menu_is_visible(child) && child->sym == def_sym) in build_conf()
800 def_menu = child; in build_conf()
914 for (child = menu->list; child; child = child->next) in build_conf()
915 build_conf(child); in build_conf()
1235 struct menu *child = 0; in conf_choice() local
1251 for (i = 0, child = menu->list; child; child = child->next) { in conf_choice()
1252 if (!show_all_items && !menu_is_visible(child)) in conf_choice()
1255 if (child->sym == sym_get_choice_value(menu->sym)) in conf_choice()
[all …]
Dgconf.c1091 struct menu *child; in fill_row() local
1097 for (child = menu->list; child; child = child->next) { in fill_row()
1098 if (menu_is_visible(child) in fill_row()
1099 && child->sym == def_sym) in fill_row()
1100 def_menu = child; in fill_row()
1218 GtkTreeIter *child = &iter; in gtktree_iter_find_node() local
1222 valid = gtk_tree_model_iter_children(model2, child, parent); in gtktree_iter_find_node()
1226 gtk_tree_model_get(model2, child, 6, &menu, -1); in gtktree_iter_find_node()
1229 memcpy(&found, child, sizeof(GtkTreeIter)); in gtktree_iter_find_node()
1233 ret = gtktree_iter_find_node(child, tofind); in gtktree_iter_find_node()
[all …]
Dkxgettext.c173 struct menu *child; in menu_build_message_list() local
184 for (child = menu->list; child != NULL; child = child->next) in menu_build_message_list()
185 if (child->prompt != NULL) in menu_build_message_list()
186 menu_build_message_list(child); in menu_build_message_list()
Dqconf.cc580 struct menu* child; in updateMenuList() local
598 for (child = menu->list; child; child = child->next) { in updateMenuList()
600 type = child->prompt ? child->prompt->type : P_UNKNOWN; in updateMenuList()
604 if (!(child->flags & MENU_ROOT)) in updateMenuList()
608 if (child->flags & MENU_ROOT) in updateMenuList()
615 visible = menu_is_visible(child); in updateMenuList()
616 if (!menuSkip(child)) { in updateMenuList()
617 if (!child->sym && !child->list && !child->prompt) in updateMenuList()
619 if (!item || item->menu != child) in updateMenuList()
620 item = new ConfigItem(parent, last, child, visible); in updateMenuList()
[all …]
/linux-4.4.14/arch/s390/kernel/
Dptrace.c135 static inline unsigned long __peek_user_per(struct task_struct *child, in __peek_user_per() argument
143 PER_EVENT_IFETCH : child->thread.per_user.control; in __peek_user_per()
147 0 : child->thread.per_user.start; in __peek_user_per()
151 PSW_ADDR_INSN : child->thread.per_user.end; in __peek_user_per()
158 return child->thread.per_user.start; in __peek_user_per()
161 return child->thread.per_user.end; in __peek_user_per()
165 child->thread.per_event.cause << (BITS_PER_LONG - 16); in __peek_user_per()
168 return child->thread.per_event.address; in __peek_user_per()
172 child->thread.per_event.paid << (BITS_PER_LONG - 8); in __peek_user_per()
185 static unsigned long __peek_user(struct task_struct *child, addr_t addr) in __peek_user() argument
[all …]
/linux-4.4.14/arch/avr32/kernel/
Docd.c28 void ocd_enable(struct task_struct *child) in ocd_enable() argument
32 if (child) in ocd_enable()
34 child->comm, child->pid); in ocd_enable()
38 if (!child || !test_and_set_tsk_thread_flag(child, TIF_DEBUG)) { in ocd_enable()
59 void ocd_disable(struct task_struct *child) in ocd_disable() argument
63 if (!child) in ocd_disable()
65 else if (test_tsk_thread_flag(child, TIF_DEBUG)) in ocd_disable()
67 child->comm, child->pid); in ocd_disable()
69 if (!child || test_and_clear_tsk_thread_flag(child, TIF_DEBUG)) { in ocd_disable()
Dptrace.c52 void user_disable_single_step(struct task_struct *child) in user_disable_single_step() argument
62 void ptrace_disable(struct task_struct *child) in ptrace_disable() argument
64 clear_tsk_thread_flag(child, TIF_SINGLE_STEP); in ptrace_disable()
65 clear_tsk_thread_flag(child, TIF_BREAKPOINT); in ptrace_disable()
66 ocd_disable(child); in ptrace_disable()
149 long arch_ptrace(struct task_struct *child, long request, in arch_ptrace() argument
159 ret = generic_ptrace_peekdata(child, addr, data); in arch_ptrace()
163 ret = ptrace_read_user(child, addr, datap); in arch_ptrace()
169 ret = generic_ptrace_pokedata(child, addr, data); in arch_ptrace()
173 ret = ptrace_write_user(child, addr, data); in arch_ptrace()
[all …]
/linux-4.4.14/arch/h8300/kernel/
Dptrace_h.c18 void user_disable_single_step(struct task_struct *child) in user_disable_single_step() argument
20 if ((long)child->thread.breakinfo.addr != -1L) { in user_disable_single_step()
21 *(child->thread.breakinfo.addr) = child->thread.breakinfo.inst; in user_disable_single_step()
22 child->thread.breakinfo.addr = (unsigned short *)-1L; in user_disable_single_step()
162 static unsigned short *decode(struct task_struct *child, in decode() argument
181 sp = (unsigned long *)h8300_get_reg(child, PT_USP); in decode()
193 addr = h8300_get_reg(child, PT_ER0); in decode()
195 addr = h8300_get_reg(child, regno-1 + PT_ER1); in decode()
198 if (inst == 0x55 || isbranch(child, inst & 0x0f)) in decode()
203 if (inst == 0x5c || isbranch(child, (*fetch_p & 0xf0) >> 4)) in decode()
[all …]
Dptrace_s.c21 void user_disable_single_step(struct task_struct *child) in user_disable_single_step() argument
25 exr = h8300_get_reg(child, PT_EXR); in user_disable_single_step()
27 h8300_put_reg(child, PT_EXR, exr); in user_disable_single_step()
31 void user_enable_single_step(struct task_struct *child) in user_enable_single_step() argument
35 exr = h8300_get_reg(child, PT_EXR); in user_enable_single_step()
37 h8300_put_reg(child, PT_EXR, exr); in user_enable_single_step()
Dptrace.c24 extern void user_disable_single_step(struct task_struct *child);
157 void ptrace_disable(struct task_struct *child) in ptrace_disable() argument
159 user_disable_single_step(child); in ptrace_disable()
162 long arch_ptrace(struct task_struct *child, long request, in arch_ptrace() argument
169 ret = ptrace_request(child, request, addr, data); in arch_ptrace()
/linux-4.4.14/drivers/scsi/libsas/
Dsas_expander.c739 struct domain_device *child, in sas_ex_get_linkrate() argument
746 child->pathways = 0; in sas_ex_get_linkrate()
758 SAS_ADDR(child->sas_addr)) { in sas_ex_get_linkrate()
760 child->min_linkrate = min(parent->min_linkrate, in sas_ex_get_linkrate()
762 child->max_linkrate = max(parent->max_linkrate, in sas_ex_get_linkrate()
764 child->pathways++; in sas_ex_get_linkrate()
768 child->linkrate = min(parent_phy->linkrate, child->max_linkrate); in sas_ex_get_linkrate()
769 child->pathways = min(child->pathways, parent->pathways); in sas_ex_get_linkrate()
777 struct domain_device *child = NULL; in sas_ex_discover_end_dev() local
784 child = sas_alloc_device(); in sas_ex_discover_end_dev()
[all …]
/linux-4.4.14/fs/
Dpnode.c212 struct mount *child; in propagate_one() local
249 child = copy_tree(last_source, last_source->mnt.mnt_root, type); in propagate_one()
250 if (IS_ERR(child)) in propagate_one()
251 return PTR_ERR(child); in propagate_one()
252 child->mnt.mnt_flags &= ~MNT_LOCKED; in propagate_one()
253 mnt_set_mountpoint(m, mp, child); in propagate_one()
255 last_source = child; in propagate_one()
261 hlist_add_head(&child->mnt_hash, list); in propagate_one()
347 struct mount *m, *child; in propagate_mount_busy() local
364 child = __lookup_mnt_last(&m->mnt, mnt->mnt_mountpoint); in propagate_mount_busy()
[all …]
/linux-4.4.14/arch/sh/kernel/
Dptrace_32.c114 void user_enable_single_step(struct task_struct *child) in user_enable_single_step() argument
116 unsigned long pc = get_stack_long(child, offsetof(struct pt_regs, pc)); in user_enable_single_step()
118 set_tsk_thread_flag(child, TIF_SINGLESTEP); in user_enable_single_step()
120 set_single_step(child, pc); in user_enable_single_step()
123 void user_disable_single_step(struct task_struct *child) in user_disable_single_step() argument
125 clear_tsk_thread_flag(child, TIF_SINGLESTEP); in user_disable_single_step()
133 void ptrace_disable(struct task_struct *child) in ptrace_disable() argument
135 user_disable_single_step(child); in ptrace_disable()
370 long arch_ptrace(struct task_struct *child, long request, in arch_ptrace() argument
387 tmp = get_stack_long(child, addr); in arch_ptrace()
[all …]
Dptrace_64.c130 void user_enable_single_step(struct task_struct *child) in user_enable_single_step() argument
132 struct pt_regs *regs = child->thread.uregs; in user_enable_single_step()
136 set_tsk_thread_flag(child, TIF_SINGLESTEP); in user_enable_single_step()
139 void user_disable_single_step(struct task_struct *child) in user_disable_single_step() argument
141 struct pt_regs *regs = child->thread.uregs; in user_disable_single_step()
145 clear_tsk_thread_flag(child, TIF_SINGLESTEP); in user_disable_single_step()
386 long arch_ptrace(struct task_struct *child, long request, in arch_ptrace() argument
402 tmp = get_stack_long(child, addr); in arch_ptrace()
406 ret = init_fpu(child); in arch_ptrace()
410 tmp = get_fpu_long(child, index); in arch_ptrace()
[all …]
/linux-4.4.14/crypto/
Decb.c22 struct crypto_cipher *child; member
29 struct crypto_cipher *child = ctx->child; in crypto_ecb_setkey() local
32 crypto_cipher_clear_flags(child, CRYPTO_TFM_REQ_MASK); in crypto_ecb_setkey()
33 crypto_cipher_set_flags(child, crypto_tfm_get_flags(parent) & in crypto_ecb_setkey()
35 err = crypto_cipher_setkey(child, key, keylen); in crypto_ecb_setkey()
36 crypto_tfm_set_flags(parent, crypto_cipher_get_flags(child) & in crypto_ecb_setkey()
76 struct crypto_cipher *child = ctx->child; in crypto_ecb_encrypt() local
79 return crypto_ecb_crypt(desc, &walk, child, in crypto_ecb_encrypt()
80 crypto_cipher_alg(child)->cia_encrypt); in crypto_ecb_encrypt()
90 struct crypto_cipher *child = ctx->child; in crypto_ecb_decrypt() local
[all …]
Dcryptd.c61 struct crypto_blkcipher *child; member
69 struct crypto_shash *child; member
78 struct crypto_aead *child; member
188 struct crypto_blkcipher *child = ctx->child; in cryptd_blkcipher_setkey() local
191 crypto_blkcipher_clear_flags(child, CRYPTO_TFM_REQ_MASK); in cryptd_blkcipher_setkey()
192 crypto_blkcipher_set_flags(child, crypto_ablkcipher_get_flags(parent) & in cryptd_blkcipher_setkey()
194 err = crypto_blkcipher_setkey(child, key, keylen); in cryptd_blkcipher_setkey()
195 crypto_ablkcipher_set_flags(parent, crypto_blkcipher_get_flags(child) & in cryptd_blkcipher_setkey()
201 struct crypto_blkcipher *child, in cryptd_blkcipher_crypt() argument
216 desc.tfm = child; in cryptd_blkcipher_crypt()
[all …]
Dctr.c25 struct crypto_cipher *child; member
29 struct crypto_ablkcipher *child; member
42 struct crypto_cipher *child = ctx->child; in crypto_ctr_setkey() local
45 crypto_cipher_clear_flags(child, CRYPTO_TFM_REQ_MASK); in crypto_ctr_setkey()
46 crypto_cipher_set_flags(child, crypto_tfm_get_flags(parent) & in crypto_ctr_setkey()
48 err = crypto_cipher_setkey(child, key, keylen); in crypto_ctr_setkey()
49 crypto_tfm_set_flags(parent, crypto_cipher_get_flags(child) & in crypto_ctr_setkey()
134 struct crypto_cipher *child = ctx->child; in crypto_ctr_crypt() local
135 unsigned int bsize = crypto_cipher_blocksize(child); in crypto_ctr_crypt()
143 nbytes = crypto_ctr_crypt_inplace(&walk, child); in crypto_ctr_crypt()
[all …]
Dkeywrap.c91 struct crypto_cipher *child; member
141 struct crypto_cipher *child = ctx->child; in crypto_kw_decrypt() local
144 crypto_cipher_alignmask(child)); in crypto_kw_decrypt()
193 crypto_cipher_decrypt_one(child, (u8*)block, in crypto_kw_decrypt()
226 struct crypto_cipher *child = ctx->child; in crypto_kw_encrypt() local
229 crypto_cipher_alignmask(child)); in crypto_kw_encrypt()
277 crypto_cipher_encrypt_one(child, (u8 *)block, in crypto_kw_encrypt()
309 struct crypto_cipher *child = ctx->child; in crypto_kw_setkey() local
312 crypto_cipher_clear_flags(child, CRYPTO_TFM_REQ_MASK); in crypto_kw_setkey()
313 crypto_cipher_set_flags(child, crypto_tfm_get_flags(parent) & in crypto_kw_setkey()
[all …]
Dxts.c29 struct crypto_cipher *child; member
37 struct crypto_cipher *child = ctx->tweak; in setkey() local
54 crypto_cipher_clear_flags(child, CRYPTO_TFM_REQ_MASK); in setkey()
55 crypto_cipher_set_flags(child, crypto_tfm_get_flags(parent) & in setkey()
57 err = crypto_cipher_setkey(child, key + keylen/2, keylen/2); in setkey()
61 crypto_tfm_set_flags(parent, crypto_cipher_get_flags(child) & in setkey()
64 child = ctx->child; in setkey()
67 crypto_cipher_clear_flags(child, CRYPTO_TFM_REQ_MASK); in setkey()
68 crypto_cipher_set_flags(child, crypto_tfm_get_flags(parent) & in setkey()
70 err = crypto_cipher_setkey(child, key, keylen/2); in setkey()
[all …]
Dpcbc.c26 struct crypto_cipher *child; member
33 struct crypto_cipher *child = ctx->child; in crypto_pcbc_setkey() local
36 crypto_cipher_clear_flags(child, CRYPTO_TFM_REQ_MASK); in crypto_pcbc_setkey()
37 crypto_cipher_set_flags(child, crypto_tfm_get_flags(parent) & in crypto_pcbc_setkey()
39 err = crypto_cipher_setkey(child, key, keylen); in crypto_pcbc_setkey()
40 crypto_tfm_set_flags(parent, crypto_cipher_get_flags(child) & in crypto_pcbc_setkey()
104 struct crypto_cipher *child = ctx->child; in crypto_pcbc_encrypt() local
113 child); in crypto_pcbc_encrypt()
116 child); in crypto_pcbc_encrypt()
184 struct crypto_cipher *child = ctx->child; in crypto_pcbc_decrypt() local
[all …]
Dcbc.c23 struct crypto_cipher *child; member
30 struct crypto_cipher *child = ctx->child; in crypto_cbc_setkey() local
33 crypto_cipher_clear_flags(child, CRYPTO_TFM_REQ_MASK); in crypto_cbc_setkey()
34 crypto_cipher_set_flags(child, crypto_tfm_get_flags(parent) & in crypto_cbc_setkey()
36 err = crypto_cipher_setkey(child, key, keylen); in crypto_cbc_setkey()
37 crypto_tfm_set_flags(parent, crypto_cipher_get_flags(child) & in crypto_cbc_setkey()
97 struct crypto_cipher *child = ctx->child; in crypto_cbc_encrypt() local
105 nbytes = crypto_cbc_encrypt_inplace(desc, &walk, child); in crypto_cbc_encrypt()
107 nbytes = crypto_cbc_encrypt_segment(desc, &walk, child); in crypto_cbc_encrypt()
176 struct crypto_cipher *child = ctx->child; in crypto_cbc_decrypt() local
[all …]
Dcts.c54 struct crypto_blkcipher *child; member
61 struct crypto_blkcipher *child = ctx->child; in crypto_cts_setkey() local
64 crypto_blkcipher_clear_flags(child, CRYPTO_TFM_REQ_MASK); in crypto_cts_setkey()
65 crypto_blkcipher_set_flags(child, crypto_tfm_get_flags(parent) & in crypto_cts_setkey()
67 err = crypto_blkcipher_setkey(child, key, keylen); in crypto_cts_setkey()
68 crypto_tfm_set_flags(parent, crypto_blkcipher_get_flags(child) & in crypto_cts_setkey()
100 lcldesc.tfm = ctx->child; in cts_cbc_encrypt()
136 lcldesc.tfm = ctx->child; in crypto_cts_encrypt()
183 lcldesc.tfm = ctx->child; in cts_cbc_decrypt()
231 lcldesc.tfm = ctx->child; in crypto_cts_decrypt()
[all …]
Dxcbc.c41 struct crypto_cipher *child; member
71 if ((err = crypto_cipher_setkey(ctx->child, inkey, keylen))) in crypto_xcbc_digest_setkey()
74 crypto_cipher_encrypt_one(ctx->child, consts, (u8 *)ks + bs); in crypto_xcbc_digest_setkey()
75 crypto_cipher_encrypt_one(ctx->child, consts + bs, (u8 *)ks + bs * 2); in crypto_xcbc_digest_setkey()
76 crypto_cipher_encrypt_one(ctx->child, key1, (u8 *)ks); in crypto_xcbc_digest_setkey()
78 return crypto_cipher_setkey(ctx->child, key1, bs); in crypto_xcbc_digest_setkey()
102 struct crypto_cipher *tfm = tctx->child; in crypto_xcbc_digest_update()
148 struct crypto_cipher *tfm = tctx->child; in crypto_xcbc_digest_final()
188 ctx->child = cipher; in xcbc_init_tfm()
196 crypto_free_cipher(ctx->child); in xcbc_exit_tfm()
Dlrw.c33 struct crypto_cipher *child; member
83 struct crypto_cipher *child = ctx->child; in setkey() local
87 crypto_cipher_clear_flags(child, CRYPTO_TFM_REQ_MASK); in setkey()
88 crypto_cipher_set_flags(child, crypto_tfm_get_flags(parent) & in setkey()
90 err = crypto_cipher_setkey(child, key, keylen - bsize); in setkey()
93 crypto_tfm_set_flags(parent, crypto_cipher_get_flags(child) & in setkey()
146 .tfm = crypto_cipher_tfm(ctx->child), in crypt()
203 crypto_cipher_alg(ctx->child)->cia_encrypt); in encrypt()
214 crypto_cipher_alg(ctx->child)->cia_decrypt); in decrypt()
314 ctx->child = cipher; in init_tfm()
[all …]
Dablk_helper.c41 struct crypto_ablkcipher *child = &ctx->cryptd_tfm->base; in ablk_set_key() local
44 crypto_ablkcipher_clear_flags(child, CRYPTO_TFM_REQ_MASK); in ablk_set_key()
45 crypto_ablkcipher_set_flags(child, crypto_ablkcipher_get_flags(tfm) in ablk_set_key()
47 err = crypto_ablkcipher_setkey(child, key, key_len); in ablk_set_key()
48 crypto_ablkcipher_set_flags(tfm, crypto_ablkcipher_get_flags(child) in ablk_set_key()
Daead.c180 return crypto_aead_setkey(ctx->child, key, keylen); in aead_geniv_setkey()
188 return crypto_aead_setauthsize(ctx->child, authsize); in aead_geniv_setauthsize()
282 struct crypto_aead *child; in aead_init_geniv() local
302 child = crypto_spawn_aead(aead_instance_ctx(inst)); in aead_init_geniv()
303 err = PTR_ERR(child); in aead_init_geniv()
304 if (IS_ERR(child)) in aead_init_geniv()
307 ctx->child = child; in aead_init_geniv()
308 crypto_aead_set_reqsize(aead, crypto_aead_reqsize(child) + in aead_init_geniv()
326 crypto_free_aead(ctx->child); in aead_exit_geniv()
Dgcm.c37 struct crypto_aead *child; member
52 struct crypto_aead *child; member
787 struct crypto_aead *child = ctx->child; in crypto_rfc4106_setkey() local
796 crypto_aead_clear_flags(child, CRYPTO_TFM_REQ_MASK); in crypto_rfc4106_setkey()
797 crypto_aead_set_flags(child, crypto_aead_get_flags(parent) & in crypto_rfc4106_setkey()
799 err = crypto_aead_setkey(child, key, keylen); in crypto_rfc4106_setkey()
800 crypto_aead_set_flags(parent, crypto_aead_get_flags(child) & in crypto_rfc4106_setkey()
820 return crypto_aead_setauthsize(ctx->child, authsize); in crypto_rfc4106_setauthsize()
829 struct crypto_aead *child = ctx->child; in crypto_rfc4106_crypt() local
831 u8 *iv = PTR_ALIGN((u8 *)(subreq + 1) + crypto_aead_reqsize(child), in crypto_rfc4106_crypt()
[all …]
Dmcryptd.c287 ctx->child = hash; in mcryptd_hash_init_tfm()
298 crypto_free_shash(ctx->child); in mcryptd_hash_exit_tfm()
305 struct crypto_shash *child = ctx->child; in mcryptd_hash_setkey() local
308 crypto_shash_clear_flags(child, CRYPTO_TFM_REQ_MASK); in mcryptd_hash_setkey()
309 crypto_shash_set_flags(child, crypto_ahash_get_flags(parent) & in mcryptd_hash_setkey()
311 err = crypto_shash_setkey(child, key, keylen); in mcryptd_hash_setkey()
312 crypto_ahash_set_flags(parent, crypto_shash_get_flags(child) & in mcryptd_hash_setkey()
338 struct crypto_shash *child = ctx->child; in mcryptd_hash_init() local
346 desc->tfm = child; in mcryptd_hash_init()
446 struct crypto_shash *child = ctx->child; in mcryptd_hash_digest() local
[all …]
Dcmac.c34 struct crypto_cipher *child; member
65 err = crypto_cipher_setkey(ctx->child, inkey, keylen); in crypto_cmac_digest_setkey()
71 crypto_cipher_encrypt_one(ctx->child, (u8 *)consts, (u8 *)consts); in crypto_cmac_digest_setkey()
128 struct crypto_cipher *tfm = tctx->child; in crypto_cmac_digest_update()
174 struct crypto_cipher *tfm = tctx->child; in crypto_cmac_digest_final()
214 ctx->child = cipher; in cmac_init_tfm()
222 crypto_free_cipher(ctx->child); in cmac_exit_tfm()
Dccm.c35 struct crypto_aead *child; member
669 struct crypto_aead *child = ctx->child; in crypto_rfc4309_setkey() local
678 crypto_aead_clear_flags(child, CRYPTO_TFM_REQ_MASK); in crypto_rfc4309_setkey()
679 crypto_aead_set_flags(child, crypto_aead_get_flags(parent) & in crypto_rfc4309_setkey()
681 err = crypto_aead_setkey(child, key, keylen); in crypto_rfc4309_setkey()
682 crypto_aead_set_flags(parent, crypto_aead_get_flags(child) & in crypto_rfc4309_setkey()
702 return crypto_aead_setauthsize(ctx->child, authsize); in crypto_rfc4309_setauthsize()
711 struct crypto_aead *child = ctx->child; in crypto_rfc4309_crypt() local
713 u8 *iv = PTR_ALIGN((u8 *)(subreq + 1) + crypto_aead_reqsize(child), in crypto_rfc4309_crypt()
714 crypto_aead_alignmask(child) + 1); in crypto_rfc4309_crypt()
[all …]
/linux-4.4.14/fs/ceph/
Dexport.c125 struct dentry *child, u64 ino) in __get_parent() argument
138 if (child) { in __get_parent()
139 req->r_inode = d_inode(child); in __get_parent()
140 ihold(d_inode(child)); in __get_parent()
167 child ? ceph_ino(d_inode(child)) : ino, in __get_parent()
172 static struct dentry *ceph_get_parent(struct dentry *child) in ceph_get_parent() argument
175 if (ceph_snap(d_inode(child)) != CEPH_NOSNAP) in ceph_get_parent()
179 child, ceph_vinop(d_inode(child))); in ceph_get_parent()
180 return __get_parent(child->d_sb, child, 0); in ceph_get_parent()
206 struct dentry *child) in ceph_get_name() argument
[all …]
/linux-4.4.14/arch/cris/arch-v10/kernel/
Dptrace.c64 ptrace_disable(struct task_struct *child) in ptrace_disable() argument
67 clear_tsk_thread_flag(child, TIF_SYSCALL_TRACE); in ptrace_disable()
78 long arch_ptrace(struct task_struct *child, long request, in arch_ptrace() argument
89 ret = generic_ptrace_peekdata(child, addr, data); in arch_ptrace()
100 tmp = get_reg(child, regno); in arch_ptrace()
108 ret = generic_ptrace_pokedata(child, addr, data); in arch_ptrace()
122 data |= get_reg(child, PT_DCCR) & ~DCCR_MASK; in arch_ptrace()
124 if (put_reg(child, regno, data)) in arch_ptrace()
136 tmp = get_reg(child, i); in arch_ptrace()
163 tmp |= get_reg(child, PT_DCCR) & ~DCCR_MASK; in arch_ptrace()
[all …]
/linux-4.4.14/arch/x86/crypto/
Dfpu.c24 struct crypto_blkcipher *child; member
31 struct crypto_blkcipher *child = ctx->child; in crypto_fpu_setkey() local
34 crypto_blkcipher_clear_flags(child, CRYPTO_TFM_REQ_MASK); in crypto_fpu_setkey()
35 crypto_blkcipher_set_flags(child, crypto_tfm_get_flags(parent) & in crypto_fpu_setkey()
37 err = crypto_blkcipher_setkey(child, key, keylen); in crypto_fpu_setkey()
38 crypto_tfm_set_flags(parent, crypto_blkcipher_get_flags(child) & in crypto_fpu_setkey()
49 struct crypto_blkcipher *child = ctx->child; in crypto_fpu_encrypt() local
51 .tfm = child, in crypto_fpu_encrypt()
68 struct crypto_blkcipher *child = ctx->child; in crypto_fpu_decrypt() local
70 .tfm = child, in crypto_fpu_decrypt()
[all …]
Dghash-clmulni-intel_glue.c178 struct crypto_shash *child = cryptd_ahash_child(cryptd_tfm); in ghash_async_init() local
180 desc->tfm = child; in ghash_async_init()
235 struct crypto_shash *child = cryptd_ahash_child(cryptd_tfm); in ghash_async_digest() local
237 desc->tfm = child; in ghash_async_digest()
247 struct crypto_ahash *child = &ctx->cryptd_tfm->base; in ghash_async_setkey() local
250 crypto_ahash_clear_flags(child, CRYPTO_TFM_REQ_MASK); in ghash_async_setkey()
251 crypto_ahash_set_flags(child, crypto_ahash_get_flags(tfm) in ghash_async_setkey()
253 err = crypto_ahash_setkey(child, key, keylen); in ghash_async_setkey()
254 crypto_ahash_set_flags(tfm, crypto_ahash_get_flags(child) in ghash_async_setkey()
/linux-4.4.14/arch/blackfin/kernel/
Dptrace.c118 is_user_addr_valid(struct task_struct *child, unsigned long start, unsigned long len) in is_user_addr_valid() argument
128 down_read(&child->mm->mmap_sem); in is_user_addr_valid()
129 vma = find_vma(child->mm, start); in is_user_addr_valid()
131 up_read(&child->mm->mmap_sem); in is_user_addr_valid()
135 for (sraml = child->mm->context.sram_list; sraml; sraml = sraml->next) in is_user_addr_valid()
144 if (child->mm->context.l1_stack_save) in is_user_addr_valid()
231 void user_enable_single_step(struct task_struct *child) in user_enable_single_step() argument
233 struct pt_regs *regs = task_pt_regs(child); in user_enable_single_step()
236 set_tsk_thread_flag(child, TIF_SINGLESTEP); in user_enable_single_step()
239 void user_disable_single_step(struct task_struct *child) in user_disable_single_step() argument
[all …]
/linux-4.4.14/drivers/pci/
Dremove.c65 struct pci_dev *child, *tmp; in pci_stop_bus_device() local
74 list_for_each_entry_safe_reverse(child, tmp, in pci_stop_bus_device()
76 pci_stop_bus_device(child); in pci_stop_bus_device()
85 struct pci_dev *child, *tmp; in pci_remove_bus_device() local
88 list_for_each_entry_safe(child, tmp, in pci_remove_bus_device()
90 pci_remove_bus_device(child); in pci_remove_bus_device()
128 struct pci_dev *child, *tmp; in pci_stop_root_bus() local
135 list_for_each_entry_safe_reverse(child, tmp, in pci_stop_root_bus()
137 pci_stop_bus_device(child); in pci_stop_root_bus()
146 struct pci_dev *child, *tmp; in pci_remove_root_bus() local
[all …]
Dprobe.c340 static void pci_read_bridge_io(struct pci_bus *child) in pci_read_bridge_io() argument
342 struct pci_dev *dev = child->self; in pci_read_bridge_io()
356 res = child->resource[0]; in pci_read_bridge_io()
380 static void pci_read_bridge_mmio(struct pci_bus *child) in pci_read_bridge_mmio() argument
382 struct pci_dev *dev = child->self; in pci_read_bridge_mmio()
388 res = child->resource[1]; in pci_read_bridge_mmio()
402 static void pci_read_bridge_mmio_pref(struct pci_bus *child) in pci_read_bridge_mmio_pref() argument
404 struct pci_dev *dev = child->self; in pci_read_bridge_mmio_pref()
411 res = child->resource[2]; in pci_read_bridge_mmio_pref()
455 void pci_read_bridge_bases(struct pci_bus *child) in pci_read_bridge_bases() argument
[all …]
/linux-4.4.14/net/ipv4/
Dtcp_fastopen.c134 struct sock *child; in tcp_fastopen_create_child() local
142 child = inet_csk(sk)->icsk_af_ops->syn_recv_sock(sk, skb, req, NULL, in tcp_fastopen_create_child()
144 if (!child) in tcp_fastopen_create_child()
155 tp = tcp_sk(child); in tcp_fastopen_create_child()
169 inet_csk_reset_xmit_timer(child, ICSK_TIME_RETRANS, in tcp_fastopen_create_child()
175 inet_csk(child)->icsk_af_ops->rebuild_header(child); in tcp_fastopen_create_child()
176 tcp_init_congestion_control(child); in tcp_fastopen_create_child()
177 tcp_mtup_init(child); in tcp_fastopen_create_child()
178 tcp_init_metrics(child); in tcp_fastopen_create_child()
179 tcp_init_buffer_space(child); in tcp_fastopen_create_child()
[all …]
Dinet_connection_sock.c768 struct sock *child) in inet_child_forget() argument
770 sk->sk_prot->disconnect(child, O_NONBLOCK); in inet_child_forget()
772 sock_orphan(child); in inet_child_forget()
777 BUG_ON(tcp_sk(child)->fastopen_rsk != req); in inet_child_forget()
786 tcp_sk(child)->fastopen_rsk = NULL; in inet_child_forget()
788 inet_csk_destroy_sock(child); in inet_child_forget()
794 struct sock *child) in inet_csk_reqsk_queue_add() argument
800 inet_child_forget(sk, req, child); in inet_csk_reqsk_queue_add()
801 child = NULL; in inet_csk_reqsk_queue_add()
803 req->sk = child; in inet_csk_reqsk_queue_add()
[all …]
Dtcp_minisocks.c576 struct sock *child; in tcp_check_req() local
768 child = inet_csk(sk)->icsk_af_ops->syn_recv_sock(sk, skb, req, NULL, in tcp_check_req()
770 if (!child) in tcp_check_req()
773 sock_rps_save_rxhash(child, skb); in tcp_check_req()
774 tcp_synack_rtt_meas(child, req); in tcp_check_req()
775 return inet_csk_complete_hashdance(sk, child, req, own_req); in tcp_check_req()
815 int tcp_child_process(struct sock *parent, struct sock *child, in tcp_child_process() argument
819 int state = child->sk_state; in tcp_child_process()
821 tcp_sk(child)->segs_in += max_t(u16, 1, skb_shinfo(skb)->gso_segs); in tcp_child_process()
822 if (!sock_owned_by_user(child)) { in tcp_child_process()
[all …]
/linux-4.4.14/drivers/pci/pcie/
Daspm.c128 struct pci_dev *child; in pcie_set_clkpm_nocheck() local
132 list_for_each_entry(child, &linkbus->devices, bus_list) in pcie_set_clkpm_nocheck()
133 pcie_capability_clear_and_set_word(child, PCI_EXP_LNKCTL, in pcie_set_clkpm_nocheck()
155 struct pci_dev *child; in pcie_clkpm_cap_init() local
159 list_for_each_entry(child, &linkbus->devices, bus_list) { in pcie_clkpm_cap_init()
160 pcie_capability_read_dword(child, PCI_EXP_LNKCAP, &reg32); in pcie_clkpm_cap_init()
166 pcie_capability_read_word(child, PCI_EXP_LNKCTL, &reg16); in pcie_clkpm_cap_init()
185 struct pci_dev *child, *parent = link->pdev; in pcie_aspm_configure_common_clock() local
191 child = list_entry(linkbus->devices.next, struct pci_dev, bus_list); in pcie_aspm_configure_common_clock()
192 BUG_ON(!pci_is_pcie(child)); in pcie_aspm_configure_common_clock()
[all …]
/linux-4.4.14/arch/ia64/kernel/
Dptrace.c402 ia64_peek (struct task_struct *child, struct switch_stack *child_stack, in ia64_peek() argument
412 child_regs = task_pt_regs(child); in ia64_peek()
414 krbs = (unsigned long *) child + IA64_RBS_OFFSET/8; in ia64_peek()
424 ret = get_rnat(child, child_stack, krbs, rnat_addr, urbs_end); in ia64_peek()
456 copied = access_process_vm(child, addr, &ret, sizeof(ret), 0); in ia64_peek()
464 ia64_poke (struct task_struct *child, struct switch_stack *child_stack, in ia64_poke() argument
472 child_regs = task_pt_regs(child); in ia64_poke()
474 krbs = (unsigned long *) child + IA64_RBS_OFFSET/8; in ia64_poke()
484 put_rnat(child, child_stack, krbs, laddr, val, in ia64_poke()
492 } else if (access_process_vm(child, addr, &val, sizeof(val), 1) in ia64_poke()
[all …]
/linux-4.4.14/drivers/of/
Dof_mdio.c44 static int of_mdiobus_register_phy(struct mii_bus *mdio, struct device_node *child, in of_mdiobus_register_phy() argument
52 is_c45 = of_device_is_compatible(child, in of_mdiobus_register_phy()
55 if (!is_c45 && !of_get_phy_id(child, &phy_id)) in of_mdiobus_register_phy()
62 rc = irq_of_parse_and_map(child, 0); in of_mdiobus_register_phy()
72 if (of_property_read_bool(child, "broken-turn-around")) in of_mdiobus_register_phy()
77 of_node_get(child); in of_mdiobus_register_phy()
78 phy->dev.of_node = child; in of_mdiobus_register_phy()
85 of_node_put(child); in of_mdiobus_register_phy()
90 child->name, addr); in of_mdiobus_register_phy()
127 struct device_node *child; in of_mdiobus_register() local
[all …]
Dresolver.c32 struct device_node *child, *found; in __of_find_node_by_full_name() local
41 for_each_child_of_node(node, child) { in __of_find_node_by_full_name()
42 found = __of_find_node_by_full_name(child, full_name); in __of_find_node_by_full_name()
80 struct device_node *child; in __of_adjust_tree_phandles() local
110 for_each_child_of_node(node, child) in __of_adjust_tree_phandles()
111 __of_adjust_tree_phandles(child, phandle_delta); in __of_adjust_tree_phandles()
214 struct device_node *child, *childtarget; in __of_adjust_tree_phandle_references() local
270 for_each_child_of_node(node, child) { in __of_adjust_tree_phandle_references()
273 if (__of_node_name_cmp(child, childtarget) == 0) in __of_adjust_tree_phandle_references()
278 __func__, child->name, node->full_name); in __of_adjust_tree_phandle_references()
[all …]
Doverlay.c86 struct device_node *target, struct device_node *child) in of_overlay_apply_single_device_node() argument
92 cname = kbasename(child->full_name); in of_overlay_apply_single_device_node()
100 ret = of_overlay_apply_one(ov, tchild, child); in of_overlay_apply_single_device_node()
104 tchild = __of_node_dup(child, "%s/%s", target->full_name, cname); in of_overlay_apply_single_device_node()
115 ret = of_overlay_apply_one(ov, tchild, child); in of_overlay_apply_single_device_node()
133 struct device_node *child; in of_overlay_apply_one() local
146 for_each_child_of_node(overlay, child) { in of_overlay_apply_one()
147 ret = of_overlay_apply_single_device_node(ov, target, child); in of_overlay_apply_one()
151 child->name); in of_overlay_apply_one()
152 of_node_put(child); in of_overlay_apply_one()
[all …]
Dplatform.c334 struct device_node *child; in of_platform_bus_create() local
366 for_each_child_of_node(bus, child) { in of_platform_bus_create()
367 pr_debug(" create child: %s\n", child->full_name); in of_platform_bus_create()
368 rc = of_platform_bus_create(child, matches, lookup, &dev->dev, strict); in of_platform_bus_create()
370 of_node_put(child); in of_platform_bus_create()
391 struct device_node *child; in of_platform_bus_probe() local
404 } else for_each_child_of_node(root, child) { in of_platform_bus_probe()
405 if (!of_match_node(matches, child)) in of_platform_bus_probe()
407 rc = of_platform_bus_create(child, matches, NULL, parent, false); in of_platform_bus_probe()
409 of_node_put(child); in of_platform_bus_probe()
[all …]
Dunittest.c201 struct device_node *child; in of_unittest_check_node_linkage() local
204 for_each_child_of_node(np, child) { in of_unittest_check_node_linkage()
205 if (child->parent != np) { in of_unittest_check_node_linkage()
207 child->name, np->name); in of_unittest_check_node_linkage()
212 rc = of_unittest_check_node_linkage(child); in of_unittest_check_node_linkage()
220 of_node_put(child); in of_unittest_check_node_linkage()
521 n2->child = n21; in of_unittest_changeset()
766 struct device_node *np, *child, *grandchild; in of_unittest_platform_populate() local
804 for_each_child_of_node(np, child) { in of_unittest_platform_populate()
805 for_each_child_of_node(child, grandchild) in of_unittest_platform_populate()
[all …]
Dbase.c252 } else if (prev->child) { in __of_find_all_nodes()
253 np = prev->child; in __of_find_all_nodes()
645 next = prev ? prev->sibling : node->child; in __of_get_next_child()
652 #define __for_each_child_of_node(parent, child) \ argument
653 for (child = __of_get_next_child(parent, NULL); child != NULL; \
654 child = __of_get_next_child(parent, child))
696 next = prev ? prev->sibling : node->child; in of_get_next_available_child()
723 struct device_node *child; in of_get_child_by_name() local
725 for_each_child_of_node(node, child) in of_get_child_by_name()
726 if (child->name && (of_node_cmp(child->name, name) == 0)) in of_get_child_by_name()
[all …]
Dfdt.c252 np->sibling = dad->child; in unflatten_dt_node()
253 dad->child = np; in unflatten_dt_node()
356 if (!dryrun && np->child) { in unflatten_dt_node()
357 struct device_node *child = np->child; in unflatten_dt_node() local
358 np->child = NULL; in unflatten_dt_node()
359 while (child) { in unflatten_dt_node()
360 struct device_node *next = child->sibling; in unflatten_dt_node()
361 child->sibling = np->child; in unflatten_dt_node()
362 np->child = child; in unflatten_dt_node()
363 child = next; in unflatten_dt_node()
/linux-4.4.14/fs/openpromfs/
Dinode.c182 struct device_node *dp, *child; in openpromfs_lookup() local
200 child = dp->child; in openpromfs_lookup()
201 while (child) { in openpromfs_lookup()
202 int n = strlen(child->path_component_name); in openpromfs_lookup()
205 !strncmp(child->path_component_name, name, len)) { in openpromfs_lookup()
207 ent_data.node = child; in openpromfs_lookup()
208 ino = child->unique_id; in openpromfs_lookup()
211 child = child->sibling; in openpromfs_lookup()
268 struct device_node *child; in openpromfs_readdir() local
290 child = dp->child; in openpromfs_readdir()
[all …]
/linux-4.4.14/drivers/regulator/
Dof_regulator.c234 struct device_node *child; in of_regulator_match() local
257 for_each_child_of_node(node, child) { in of_regulator_match()
258 name = of_get_property(child, in of_regulator_match()
261 name = child->name; in of_regulator_match()
271 of_get_regulator_init_data(dev, child, in of_regulator_match()
276 child->name); in of_regulator_match()
279 match->of_node = of_node_get(child); in of_regulator_match()
294 struct device_node *search, *child; in regulator_of_get_init_data() local
313 for_each_available_child_of_node(search, child) { in regulator_of_get_init_data()
314 name = of_get_property(child, "regulator-compatible", NULL); in regulator_of_get_init_data()
[all …]
Dmc13xxx-regulator-core.c168 struct device_node *parent, *child; in mc13xxx_parse_regulators_dt() local
187 for_each_child_of_node(parent, child) { in mc13xxx_parse_regulators_dt()
193 if (!of_node_cmp(child->name, in mc13xxx_parse_regulators_dt()
197 &pdev->dev, child, in mc13xxx_parse_regulators_dt()
199 p->node = child; in mc13xxx_parse_regulators_dt()
210 "Unknown regulator: %s\n", child->name); in mc13xxx_parse_regulators_dt()
/linux-4.4.14/drivers/thermal/
Dof-thermal.c464 struct device_node *np, *child, *sensor_np; in thermal_zone_of_sensor_register() local
478 for_each_child_of_node(np, child) { in thermal_zone_of_sensor_register()
483 if (!of_device_is_available(child)) in thermal_zone_of_sensor_register()
487 ret = of_parse_phandle_with_args(child, "thermal-sensors", in thermal_zone_of_sensor_register()
503 tzd = thermal_zone_of_add_sensor(child, sensor_np, in thermal_zone_of_sensor_register()
509 of_node_put(child); in thermal_zone_of_sensor_register()
732 struct device_node *child = NULL, *gchild; in thermal_of_build_thermal_zone() local
775 child = of_get_child_by_name(np, "trips"); in thermal_of_build_thermal_zone()
778 if (!child) in thermal_of_build_thermal_zone()
781 tz->ntrips = of_get_child_count(child); in thermal_of_build_thermal_zone()
[all …]
/linux-4.4.14/arch/parisc/kernel/
Dptrace.c114 long arch_ptrace(struct task_struct *child, long request, in arch_ptrace() argument
128 tmp = *(unsigned long *) ((char *) task_regs(child) + addr); in arch_ptrace()
150 task_regs(child)->gr[0] &= ~USER_PSW_BITS; in arch_ptrace()
151 task_regs(child)->gr[0] |= data; in arch_ptrace()
163 *(unsigned long *) ((char *) task_regs(child) + addr) = data; in arch_ptrace()
169 ret = ptrace_request(child, request, addr, data); in arch_ptrace()
204 long compat_arch_ptrace(struct task_struct *child, compat_long_t request, in compat_arch_ptrace() argument
219 tmp = *(compat_uint_t *) ((char *) task_regs(child) + addr); in compat_arch_ptrace()
238 ret = arch_ptrace(child, request, addr, data); in compat_arch_ptrace()
247 *(__u64 *) ((char *) task_regs(child) + addr) = data; in compat_arch_ptrace()
[all …]
/linux-4.4.14/arch/mn10300/kernel/
Dptrace.c262 void user_enable_single_step(struct task_struct *child) in user_enable_single_step() argument
268 tmp = get_stack_long(child, (unsigned long) &dummy->regs.epsw); in user_enable_single_step()
270 put_stack_long(child, (unsigned long) &dummy->regs.epsw, tmp); in user_enable_single_step()
277 void user_disable_single_step(struct task_struct *child) in user_disable_single_step() argument
283 tmp = get_stack_long(child, (unsigned long) &dummy->regs.epsw); in user_disable_single_step()
285 put_stack_long(child, (unsigned long) &dummy->regs.epsw, tmp); in user_disable_single_step()
289 void ptrace_disable(struct task_struct *child) in ptrace_disable() argument
291 user_disable_single_step(child); in ptrace_disable()
297 long arch_ptrace(struct task_struct *child, long request, in arch_ptrace() argument
313 tmp = get_stack_long(child, in arch_ptrace()
[all …]
/linux-4.4.14/arch/microblaze/kernel/
Dptrace.c77 long arch_ptrace(struct task_struct *child, long request, in arch_ptrace() argument
95 val = child->mm->start_code; in arch_ptrace()
97 val = child->mm->start_data; in arch_ptrace()
99 val = child->mm->end_code in arch_ptrace()
100 - child->mm->start_code; in arch_ptrace()
105 microblaze_reg_t *reg_addr = reg_save_addr(addr, child); in arch_ptrace()
130 rval = ptrace_request(child, request, addr, data); in arch_ptrace()
166 void ptrace_disable(struct task_struct *child) in ptrace_disable() argument
/linux-4.4.14/drivers/leds/
Dleds-pwm.c100 struct led_pwm *led, struct device_node *child) in led_pwm_add() argument
113 if (child) in led_pwm_add()
114 led_data->pwm = devm_of_pwm_get(dev, child, NULL); in led_pwm_add()
145 struct device_node *child; in led_pwm_create_of() local
151 for_each_child_of_node(dev->of_node, child) { in led_pwm_create_of()
152 led.name = of_get_property(child, "label", NULL) ? : in led_pwm_create_of()
153 child->name; in led_pwm_create_of()
155 led.default_trigger = of_get_property(child, in led_pwm_create_of()
157 led.active_low = of_property_read_bool(child, "active-low"); in led_pwm_create_of()
158 of_property_read_u32(child, "max-brightness", in led_pwm_create_of()
[all …]
Dleds-gpio.c171 struct fwnode_handle *child; in gpio_leds_create() local
184 device_for_each_child_node(dev, child) { in gpio_leds_create()
188 led.gpiod = devm_get_gpiod_from_child(dev, NULL, child); in gpio_leds_create()
190 fwnode_handle_put(child); in gpio_leds_create()
195 np = to_of_node(child); in gpio_leds_create()
197 if (fwnode_property_present(child, "label")) { in gpio_leds_create()
198 fwnode_property_read_string(child, "label", &led.name); in gpio_leds_create()
207 fwnode_property_read_string(child, "linux,default-trigger", in gpio_leds_create()
210 if (!fwnode_property_read_string(child, "default-state", in gpio_leds_create()
220 if (fwnode_property_present(child, "retain-state-suspended")) in gpio_leds_create()
[all …]
Dleds-ns2.c264 struct device_node *child; in ns2_leds_get_of_pdata() local
278 for_each_child_of_node(np, child) { in ns2_leds_get_of_pdata()
283 ret = of_get_named_gpio(child, "cmd-gpio", 0); in ns2_leds_get_of_pdata()
287 ret = of_get_named_gpio(child, "slow-gpio", 0); in ns2_leds_get_of_pdata()
291 ret = of_property_read_string(child, "label", &string); in ns2_leds_get_of_pdata()
292 led->name = (ret == 0) ? string : child->name; in ns2_leds_get_of_pdata()
293 ret = of_property_read_string(child, "linux,default-trigger", in ns2_leds_get_of_pdata()
298 ret = of_property_count_u32_elems(child, "modes-map"); in ns2_leds_get_of_pdata()
313 of_property_read_u32_index(child, in ns2_leds_get_of_pdata()
316 of_property_read_u32_index(child, in ns2_leds_get_of_pdata()
[all …]
Dleds-netxbig.c387 struct device_node *child; in netxbig_leds_get_of_pdata() local
452 for_each_child_of_node(np, child) { in netxbig_leds_get_of_pdata()
457 ret = of_property_read_u32(child, "mode-addr", in netxbig_leds_get_of_pdata()
462 ret = of_property_read_u32(child, "bright-addr", in netxbig_leds_get_of_pdata()
467 ret = of_property_read_u32(child, "max-brightness", in netxbig_leds_get_of_pdata()
484 ret = of_property_count_u32_elems(child, "mode-val"); in netxbig_leds_get_of_pdata()
499 of_property_read_u32_index(child, in netxbig_leds_get_of_pdata()
501 of_property_read_u32_index(child, in netxbig_leds_get_of_pdata()
511 if (!of_property_read_string(child, "label", &string)) in netxbig_leds_get_of_pdata()
514 led->name = child->name; in netxbig_leds_get_of_pdata()
[all …]
Dleds-tlc591xx.c215 struct device_node *np = client->dev.of_node, *child; in tlc591xx_probe() local
248 for_each_child_of_node(np, child) { in tlc591xx_probe()
249 err = of_property_read_u32(child, "reg", &reg); in tlc591xx_probe()
258 of_get_property(child, "label", NULL) ? : child->name; in tlc591xx_probe()
260 of_get_property(child, "linux,default-trigger", NULL); in tlc591xx_probe()
Dleds-bcm6358.c162 struct device_node *child; in bcm6358_leds_probe() local
204 for_each_available_child_of_node(np, child) { in bcm6358_leds_probe()
208 if (of_property_read_u32(child, "reg", &reg)) in bcm6358_leds_probe()
217 rc = bcm6358_led(dev, child, reg, mem, lock); in bcm6358_leds_probe()
219 of_node_put(child); in bcm6358_leds_probe()
Dleds-bcm6328.c341 struct device_node *child; in bcm6328_leds_probe() local
387 for_each_available_child_of_node(np, child) { in bcm6328_leds_probe()
391 if (of_property_read_u32(child, "reg", &reg)) in bcm6328_leds_probe()
400 if (of_property_read_bool(child, "brcm,hardware-controlled")) in bcm6328_leds_probe()
401 rc = bcm6328_hwled(dev, child, reg, mem, lock); in bcm6328_leds_probe()
403 rc = bcm6328_led(dev, child, reg, mem, lock, in bcm6328_leds_probe()
407 of_node_put(child); in bcm6328_leds_probe()
/linux-4.4.14/net/dccp/
Dminisocks.c144 struct sock *child = NULL; in dccp_check_req() local
186 child = inet_csk(sk)->icsk_af_ops->syn_recv_sock(sk, skb, req, NULL, in dccp_check_req()
188 if (!child) in dccp_check_req()
191 return inet_csk_complete_hashdance(sk, child, req, own_req); in dccp_check_req()
211 int dccp_child_process(struct sock *parent, struct sock *child, in dccp_child_process() argument
215 const int state = child->sk_state; in dccp_child_process()
217 if (!sock_owned_by_user(child)) { in dccp_child_process()
218 ret = dccp_rcv_state_process(child, skb, dccp_hdr(skb), in dccp_child_process()
222 if (state == DCCP_RESPOND && child->sk_state != state) in dccp_child_process()
229 __sk_add_backlog(child, skb); in dccp_child_process()
[all …]
/linux-4.4.14/net/sched/
Dsch_red.c62 struct Qdisc *child = q->qdisc; in red_enqueue() local
67 child->qstats.backlog); in red_enqueue()
98 ret = qdisc_enqueue(skb, child); in red_enqueue()
116 struct Qdisc *child = q->qdisc; in red_dequeue() local
118 skb = child->dequeue(child); in red_dequeue()
132 struct Qdisc *child = q->qdisc; in red_peek() local
134 return child->ops->peek(child); in red_peek()
140 struct Qdisc *child = q->qdisc; in red_drop() local
143 if (child->ops->drop && (len = child->ops->drop(child)) > 0) { in red_drop()
184 struct Qdisc *child = NULL; in red_change() local
[all …]
Dsch_prio.c191 struct Qdisc *child = q->queues[i]; in prio_tune() local
193 if (child != &noop_qdisc) { in prio_tune()
194 qdisc_tree_reduce_backlog(child, child->q.qlen, child->qstats.backlog); in prio_tune()
195 qdisc_destroy(child); in prio_tune()
202 struct Qdisc *child, *old; in prio_tune() local
204 child = qdisc_create_dflt(sch->dev_queue, in prio_tune()
207 if (child) { in prio_tune()
210 q->queues[i] = child; in prio_tune()
Dsch_multiq.c219 struct Qdisc *child = q->queues[i]; in multiq_tune() local
221 qdisc_tree_reduce_backlog(child, child->q.qlen, in multiq_tune()
222 child->qstats.backlog); in multiq_tune()
223 qdisc_destroy(child); in multiq_tune()
231 struct Qdisc *child, *old; in multiq_tune() local
232 child = qdisc_create_dflt(sch->dev_queue, in multiq_tune()
236 if (child) { in multiq_tune()
239 q->queues[i] = child; in multiq_tune()
Dsch_sfb.c282 struct Qdisc *child = q->qdisc; in sfb_enqueue() local
400 ret = qdisc_enqueue(skb, child); in sfb_enqueue()
423 struct Qdisc *child = q->qdisc; in sfb_dequeue() local
426 skb = child->dequeue(q->qdisc); in sfb_dequeue()
440 struct Qdisc *child = q->qdisc; in sfb_peek() local
442 return child->ops->peek(child); in sfb_peek()
486 struct Qdisc *child; in sfb_change() local
507 child = fifo_create_dflt(sch, &pfifo_qdisc_ops, limit); in sfb_change()
508 if (IS_ERR(child)) in sfb_change()
509 return PTR_ERR(child); in sfb_change()
[all …]
/linux-4.4.14/tools/testing/selftests/mount/
Dunprivileged-remount-test.c184 pid_t child; in test_unpriv_remount() local
186 child = fork(); in test_unpriv_remount()
187 if (child == -1) { in test_unpriv_remount()
191 if (child != 0) { /* parent */ in test_unpriv_remount()
194 pid = waitpid(child, &status, 0); in test_unpriv_remount()
199 if (pid != child) { in test_unpriv_remount()
201 child, pid); in test_unpriv_remount()
258 pid_t child; in test_priv_mount_unpriv_remount() local
264 child = fork(); in test_priv_mount_unpriv_remount()
265 if (child == -1) { in test_priv_mount_unpriv_remount()
[all …]
/linux-4.4.14/drivers/net/wireless/ti/wlcore/
Dspi.c86 static void wl12xx_spi_reset(struct device *child) in wl12xx_spi_reset() argument
88 struct wl12xx_spi_glue *glue = dev_get_drvdata(child->parent); in wl12xx_spi_reset()
95 dev_err(child->parent, in wl12xx_spi_reset()
114 static void wl12xx_spi_init(struct device *child) in wl12xx_spi_init() argument
116 struct wl12xx_spi_glue *glue = dev_get_drvdata(child->parent); in wl12xx_spi_init()
122 dev_err(child->parent, in wl12xx_spi_init()
168 static int wl12xx_spi_read_busy(struct device *child) in wl12xx_spi_read_busy() argument
170 struct wl12xx_spi_glue *glue = dev_get_drvdata(child->parent); in wl12xx_spi_read_busy()
171 struct wl1271 *wl = dev_get_drvdata(child); in wl12xx_spi_read_busy()
199 dev_err(child->parent, "SPI read busy-word timeout!\n"); in wl12xx_spi_read_busy()
[all …]
Dsdio.c64 static void wl1271_sdio_set_block_size(struct device *child, in wl1271_sdio_set_block_size() argument
67 struct wl12xx_sdio_glue *glue = dev_get_drvdata(child->parent); in wl1271_sdio_set_block_size()
75 static int __must_check wl12xx_sdio_raw_read(struct device *child, int addr, in wl12xx_sdio_raw_read() argument
79 struct wl12xx_sdio_glue *glue = dev_get_drvdata(child->parent); in wl12xx_sdio_raw_read()
93 dev_dbg(child->parent, "sdio read 52 addr 0x%x, byte 0x%02x\n", in wl12xx_sdio_raw_read()
101 dev_dbg(child->parent, "sdio read 53 addr 0x%x, %zu bytes\n", in wl12xx_sdio_raw_read()
108 dev_err(child->parent, "sdio read failed (%d)\n", ret); in wl12xx_sdio_raw_read()
113 static int __must_check wl12xx_sdio_raw_write(struct device *child, int addr, in wl12xx_sdio_raw_write() argument
117 struct wl12xx_sdio_glue *glue = dev_get_drvdata(child->parent); in wl12xx_sdio_raw_write()
131 dev_dbg(child->parent, "sdio write 52 addr 0x%x, byte 0x%02x\n", in wl12xx_sdio_raw_write()
[all …]
Dwlcore_i.h193 int __must_check (*read)(struct device *child, int addr, void *buf,
195 int __must_check (*write)(struct device *child, int addr, void *buf,
197 void (*reset)(struct device *child);
198 void (*init)(struct device *child);
199 int (*power)(struct device *child, bool enable);
200 void (*set_block_size) (struct device *child, unsigned int blksz);
/linux-4.4.14/arch/hexagon/kernel/
Dptrace.c37 void user_enable_single_step(struct task_struct *child) in user_enable_single_step() argument
39 pt_set_singlestep(task_pt_regs(child)); in user_enable_single_step()
40 set_tsk_thread_flag(child, TIF_SINGLESTEP); in user_enable_single_step()
43 void user_disable_single_step(struct task_struct *child) in user_disable_single_step() argument
45 pt_clr_singlestep(task_pt_regs(child)); in user_disable_single_step()
46 clear_tsk_thread_flag(child, TIF_SINGLESTEP); in user_disable_single_step()
195 void ptrace_disable(struct task_struct *child) in ptrace_disable() argument
198 user_disable_single_step(child); in ptrace_disable()
201 long arch_ptrace(struct task_struct *child, long request, in arch_ptrace() argument
204 return ptrace_request(child, request, addr, data); in arch_ptrace()
/linux-4.4.14/scripts/dtc/
Dlivetree.c103 struct node *child; in build_node() local
110 for_each_child(new, child) { in build_node()
111 child->parent = new; in build_node()
259 void add_child(struct node *parent, struct node *child) in add_child() argument
263 child->next_sibling = NULL; in add_child()
264 child->parent = parent; in add_child()
270 *p = child; in add_child()
289 struct node *child; in delete_node() local
292 for_each_child(node, child) in delete_node()
293 delete_node(child); in delete_node()
[all …]
/linux-4.4.14/fs/ext4/
Dcrypto_policy.c146 struct inode *child) in ext4_is_child_context_consistent_with_parent() argument
151 if ((parent == NULL) || (child == NULL)) { in ext4_is_child_context_consistent_with_parent()
152 pr_err("parent %p child %p\n", parent, child); in ext4_is_child_context_consistent_with_parent()
160 if (!ext4_encrypted_inode(child)) in ext4_is_child_context_consistent_with_parent()
165 res = ext4_get_encryption_info(child); in ext4_is_child_context_consistent_with_parent()
169 child_ci = EXT4_I(child)->i_crypt_info; in ext4_is_child_context_consistent_with_parent()
190 int ext4_inherit_context(struct inode *parent, struct inode *child) in ext4_inherit_context() argument
220 res = ext4_xattr_set(child, EXT4_XATTR_INDEX_ENCRYPTION, in ext4_inherit_context()
224 ext4_set_inode_flag(child, EXT4_INODE_ENCRYPT); in ext4_inherit_context()
225 ext4_clear_inode_state(child, EXT4_STATE_MAY_INLINE_DATA); in ext4_inherit_context()
[all …]
/linux-4.4.14/arch/arm/mach-mvebu/
Dmvebu-soc-id.c64 struct device_node *child; in get_soc_id_by_pci() local
74 child = of_get_next_child(np, NULL); in get_soc_id_by_pci()
75 if (child == NULL) { in get_soc_id_by_pci()
81 clk = of_clk_get_by_name(child, NULL); in get_soc_id_by_pci()
94 pci_base = of_iomap(child, 0); in get_soc_id_by_pci()
122 if (!of_device_is_available(child) || !IS_ENABLED(CONFIG_PCI_MVEBU)) { in get_soc_id_by_pci()
128 of_node_put(child); in get_soc_id_by_pci()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/core/
Dobject.c114 struct nvkm_object *child; in nvkm_object_fini() local
120 list_for_each_entry(child, &object->tree, head) { in nvkm_object_fini()
121 ret = nvkm_object_fini(child, suspend); in nvkm_object_fini()
147 list_for_each_entry_continue_reverse(child, &object->tree, head) { in nvkm_object_fini()
148 nvkm_object_init(child); in nvkm_object_fini()
156 struct nvkm_object *child; in nvkm_object_init() local
169 list_for_each_entry(child, &object->tree, head) { in nvkm_object_init()
170 ret = nvkm_object_init(child); in nvkm_object_init()
180 list_for_each_entry_continue_reverse(child, &object->tree, head) in nvkm_object_init()
181 nvkm_object_fini(child, false); in nvkm_object_init()
[all …]
/linux-4.4.14/drivers/pinctrl/freescale/
Dpinctrl-mxs.c400 struct device_node *child; in mxs_pinctrl_probe_dt() local
408 child = of_get_next_child(np, NULL); in mxs_pinctrl_probe_dt()
409 if (!child) { in mxs_pinctrl_probe_dt()
416 for_each_child_of_node(np, child) { in mxs_pinctrl_probe_dt()
417 if (of_device_is_compatible(child, gpio_compat)) in mxs_pinctrl_probe_dt()
421 if (of_property_read_u32(child, "reg", &val)) in mxs_pinctrl_probe_dt()
423 if (strcmp(fn, child->name)) { in mxs_pinctrl_probe_dt()
424 fn = child->name; in mxs_pinctrl_probe_dt()
442 for_each_child_of_node(np, child) { in mxs_pinctrl_probe_dt()
443 if (of_device_is_compatible(child, gpio_compat)) in mxs_pinctrl_probe_dt()
[all …]
Dpinctrl-imx1-core.c514 struct device_node *child; in imx1_pinctrl_parse_functions() local
537 for_each_child_of_node(np, child) { in imx1_pinctrl_parse_functions()
538 func->groups[i] = child->name; in imx1_pinctrl_parse_functions()
540 ret = imx1_pinctrl_parse_groups(child, grp, info, i++); in imx1_pinctrl_parse_functions()
542 of_node_put(child); in imx1_pinctrl_parse_functions()
554 struct device_node *child; in imx1_pinctrl_parse_dt() local
563 for_each_child_of_node(np, child) { in imx1_pinctrl_parse_dt()
565 ngroups += of_get_child_count(child); in imx1_pinctrl_parse_dt()
585 for_each_child_of_node(np, child) { in imx1_pinctrl_parse_dt()
586 ret = imx1_pinctrl_parse_functions(child, info, ifunc++); in imx1_pinctrl_parse_dt()
[all …]
/linux-4.4.14/drivers/phy/
Dphy-rockchip-usb.c98 struct device_node *child; in rockchip_usb_phy_probe() local
109 for_each_available_child_of_node(dev->of_node, child) { in rockchip_usb_phy_probe()
116 if (of_property_read_u32(child, "reg", &reg_offset)) { in rockchip_usb_phy_probe()
118 child->name); in rockchip_usb_phy_probe()
126 rk_phy->clk = of_clk_get_by_name(child, "phyclk"); in rockchip_usb_phy_probe()
130 rk_phy->phy = devm_phy_create(dev, child, &ops); in rockchip_usb_phy_probe()
147 of_node_put(child); in rockchip_usb_phy_probe()
Dphy-brcmstb-sata.c139 struct device_node *dn = dev->of_node, *child; in brcm_sata_phy_probe() local
159 for_each_available_child_of_node(dn, child) { in brcm_sata_phy_probe()
163 if (of_property_read_u32(child, "reg", &id)) { in brcm_sata_phy_probe()
165 child->name); in brcm_sata_phy_probe()
184 port->phy = devm_phy_create(dev, child, &phy_ops_28nm); in brcm_sata_phy_probe()
185 port->ssc_en = of_property_read_bool(child, "brcm,enable-ssc"); in brcm_sata_phy_probe()
206 of_node_put(child); in brcm_sata_phy_probe()
Dphy-bcm-cygnus-pcie.c126 struct device_node *node = dev->of_node, *child; in cygnus_pcie_phy_probe() local
151 for_each_available_child_of_node(node, child) { in cygnus_pcie_phy_probe()
155 if (of_property_read_u32(child, "reg", &id)) { in cygnus_pcie_phy_probe()
157 child->name); in cygnus_pcie_phy_probe()
175 p->phy = devm_phy_create(dev, child, &cygnus_pcie_phy_ops); in cygnus_pcie_phy_probe()
200 of_node_put(child); in cygnus_pcie_phy_probe()
Dphy-berlin-sata.c193 struct device_node *child; in phy_berlin_sata_probe() local
234 for_each_available_child_of_node(dev->of_node, child) { in phy_berlin_sata_probe()
237 if (of_property_read_u32(child, "reg", &phy_id)) { in phy_berlin_sata_probe()
239 child->name); in phy_berlin_sata_probe()
245 dev_err(dev, "invalid reg in node %s\n", child->name); in phy_berlin_sata_probe()
278 of_node_put(child); in phy_berlin_sata_probe()
/linux-4.4.14/Documentation/devicetree/bindings/i2c/
Di2c-mux-pinctrl.txt12 | +---+ +------+ | child bus A, on first set of pins
14 | +---+ +------+ | child bus B, on second set of pins
28 * Standard pinctrl properties that specify the pin mux state for each child
33 * I2C child bus nodes. See mux.txt in this directory.
35 For each named state defined in the pinctrl-names property, an I2C child bus
36 will be created. I2C child bus numbers are assigned based on the index into
47 Whenever an access is made to a device on a child bus, the relevant pinctrl
51 on a child bus, the idle pinctrl state will be programmed into hardware.
55 a child bus.
Di2c-mux-gpio.txt11 | +------+ | +------+ child bus A, on GPIO value set to 0
13 | +------+ | +--+---+ child bus B, on GPIO value set to 1
26 * I2C child bus nodes. See mux.txt in this directory.
32 For each i2c child node, an I2C child bus will be created. They will
35 Whenever an access is made to a device on a child bus, the value set
40 whenever an access is not being made to a device on a child bus, the
45 device on a child bus.
Di2c-mux.txt3 An i2c bus multiplexer/switch will have several child busses that are
5 multiplexer/switch will have one child node for each child
12 Required properties for child nodes:
17 Optional properties for child nodes:
/linux-4.4.14/arch/unicore32/kernel/
Dptrace.c56 void ptrace_disable(struct task_struct *child) in ptrace_disable() argument
87 long arch_ptrace(struct task_struct *child, long request, in arch_ptrace() argument
95 ret = ptrace_read_user(child, addr, datap); in arch_ptrace()
99 ret = ptrace_write_user(child, addr, data); in arch_ptrace()
103 ret = put_user(task_pt_regs(child)->UCreg_16, in arch_ptrace()
108 ret = ptrace_request(child, request, addr, data); in arch_ptrace()
/linux-4.4.14/tools/perf/util/
Dcallchain.c248 struct callchain_node *child; in __sort_chain_flat() local
252 child = rb_entry(n, struct callchain_node, rb_node_in); in __sort_chain_flat()
255 __sort_chain_flat(rb_root, child, min_hit); in __sort_chain_flat()
277 struct callchain_node *child; in __sort_chain_graph_abs() local
283 child = rb_entry(n, struct callchain_node, rb_node_in); in __sort_chain_graph_abs()
286 __sort_chain_graph_abs(child, min_hit); in __sort_chain_graph_abs()
287 if (callchain_cumul_hits(child) >= min_hit) in __sort_chain_graph_abs()
288 rb_insert_callchain(&node->rb_root, child, in __sort_chain_graph_abs()
305 struct callchain_node *child; in __sort_chain_graph_rel() local
313 child = rb_entry(n, struct callchain_node, rb_node_in); in __sort_chain_graph_rel()
[all …]
/linux-4.4.14/drivers/staging/lustre/lustre/ldlm/
Dinterval_tree.c414 struct interval_node *child, *parent; in interval_erase() local
420 child = node->in_right; in interval_erase()
422 child = node->in_left; in interval_erase()
427 child = node->in_right; in interval_erase()
431 if (child) in interval_erase()
432 child->in_parent = parent; in interval_erase()
434 parent->in_right = child; in interval_erase()
436 parent->in_left = child; in interval_erase()
455 update_maxhigh(child ? : parent, node->in_max_high); in interval_erase()
464 if (child) in interval_erase()
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/pwm/
Dpwm-tipwmss.txt6 - address-cells: Specify the number of u32 entries needed in child nodes.
8 - size-cells: specify number of u32 entries needed to specify child nodes size
11 physical address map of child's base address, physical address within
13 3 set of child register maps present, ECAP register space, EQEP
16 Also child nodes should also populated under PWMSS DT node.
30 /* child nodes go here */
/linux-4.4.14/fs/f2fs/
Dcrypto_policy.c139 struct inode *child) in f2fs_is_child_context_consistent_with_parent() argument
144 if ((parent == NULL) || (child == NULL)) { in f2fs_is_child_context_consistent_with_parent()
145 pr_err("parent %p child %p\n", parent, child); in f2fs_is_child_context_consistent_with_parent()
153 if (!f2fs_encrypted_inode(child)) in f2fs_is_child_context_consistent_with_parent()
158 res = f2fs_get_encryption_info(child); in f2fs_is_child_context_consistent_with_parent()
162 child_ci = F2FS_I(child)->i_crypt_info; in f2fs_is_child_context_consistent_with_parent()
183 int f2fs_inherit_context(struct inode *parent, struct inode *child, in f2fs_inherit_context() argument
206 return f2fs_setxattr(child, F2FS_XATTR_INDEX_ENCRYPTION, in f2fs_inherit_context()
/linux-4.4.14/drivers/acpi/acpica/
Dnsalloc.c175 next_node = parent_node->child; in acpi_ns_remove_node()
194 parent_node->child = node->peer; in acpi_ns_remove_node()
256 child_node = parent_node->child; in acpi_ns_install_node()
259 parent_node->child = node; in acpi_ns_install_node()
312 next_node = parent_node->child; in acpi_ns_delete_children()
317 if (next_node->child) { in acpi_ns_delete_children()
333 parent_node->child = NULL; in acpi_ns_delete_children()
386 if (child_node->child) { in acpi_ns_delete_namespace_subtree()
491 if (child_node->child) { in acpi_ns_delete_namespace_by_owner()
Dpstree.c273 union acpi_parse_object *child = NULL; in acpi_ps_get_child() local
284 child = acpi_ps_get_arg(op, 0); in acpi_ps_get_child()
294 child = acpi_ps_get_arg(op, 1); in acpi_ps_get_child()
300 child = acpi_ps_get_arg(op, 2); in acpi_ps_get_child()
306 child = acpi_ps_get_arg(op, 3); in acpi_ps_get_child()
316 return (child); in acpi_ps_get_child()
Dnsxfobj.c188 acpi_handle child, acpi_handle * ret_handle) in ACPI_EXPORT_SYMBOL()
208 if (!child) { in ACPI_EXPORT_SYMBOL()
221 child_node = acpi_ns_validate_handle(child); in ACPI_EXPORT_SYMBOL()
/linux-4.4.14/arch/mips/include/asm/
Dptrace.h130 extern int ptrace_getregs(struct task_struct *child,
132 extern int ptrace_setregs(struct task_struct *child,
135 extern int ptrace_getfpregs(struct task_struct *child, __u32 __user *data);
136 extern int ptrace_setfpregs(struct task_struct *child, __u32 __user *data);
138 extern int ptrace_get_watch_regs(struct task_struct *child,
140 extern int ptrace_set_watch_regs(struct task_struct *child,
/linux-4.4.14/arch/sparc/kernel/
Dptrace_32.c38 void ptrace_disable(struct task_struct *child) in ptrace_disable() argument
340 long arch_ptrace(struct task_struct *child, long request, in arch_ptrace() argument
357 ret = copy_regset_to_user(child, view, REGSET_GENERAL, in arch_ptrace()
362 copy_regset_to_user(child, view, REGSET_GENERAL, in arch_ptrace()
370 ret = copy_regset_from_user(child, view, REGSET_GENERAL, in arch_ptrace()
375 copy_regset_from_user(child, view, REGSET_GENERAL, in arch_ptrace()
383 ret = copy_regset_to_user(child, view, REGSET_FP, in arch_ptrace()
388 ret = copy_regset_to_user(child, view, REGSET_FP, in arch_ptrace()
404 ret = copy_regset_from_user(child, view, REGSET_FP, in arch_ptrace()
409 ret = copy_regset_from_user(child, view, REGSET_FP, in arch_ptrace()
[all …]
Dptrace_64.c54 void ptrace_disable(struct task_struct *child) in ptrace_disable() argument
863 long compat_arch_ptrace(struct task_struct *child, compat_long_t request, in compat_arch_ptrace() argument
884 ret = copy_regset_to_user(child, view, REGSET_GENERAL, in compat_arch_ptrace()
889 ret = copy_regset_to_user(child, view, REGSET_GENERAL, in compat_arch_ptrace()
896 ret = copy_regset_from_user(child, view, REGSET_GENERAL, in compat_arch_ptrace()
901 ret = copy_regset_from_user(child, view, REGSET_GENERAL, in compat_arch_ptrace()
908 ret = copy_regset_to_user(child, view, REGSET_FP, in compat_arch_ptrace()
913 ret = copy_regset_to_user(child, view, REGSET_FP, in compat_arch_ptrace()
927 ret = copy_regset_from_user(child, view, REGSET_FP, in compat_arch_ptrace()
932 ret = copy_regset_from_user(child, view, REGSET_FP, in compat_arch_ptrace()
[all …]
/linux-4.4.14/drivers/i2c/busses/
Di2c-pxa-pci.c25 struct device_node *child; in add_i2c_device() local
40 for_each_child_of_node(dev->dev.of_node, child) { in add_i2c_device()
45 ret = of_address_to_resource(child, 0, &r); in add_i2c_device()
55 prop = of_get_property(child, "fast-mode", NULL); in add_i2c_device()
62 if (!child) { in add_i2c_device()
71 of_node_put(child); in add_i2c_device()
76 pdev->dev.of_node = child; in add_i2c_device()
/linux-4.4.14/tools/include/linux/
Drbtree_augmented.h143 struct rb_node *child = node->rb_right, *tmp = node->rb_left; in __rb_erase_augmented() local
157 __rb_change_child(node, child, parent, root); in __rb_erase_augmented()
158 if (child) { in __rb_erase_augmented()
159 child->__rb_parent_color = pc; in __rb_erase_augmented()
164 } else if (!child) { in __rb_erase_augmented()
172 struct rb_node *successor = child, *child2; in __rb_erase_augmented()
173 tmp = child->rb_left; in __rb_erase_augmented()
208 successor->rb_right = child; in __rb_erase_augmented()
209 rb_set_parent(child, successor); in __rb_erase_augmented()
/linux-4.4.14/arch/x86/pci/
Di386.c234 struct pci_bus *child; in pcibios_allocate_bus_resources() local
239 list_for_each_entry(child, &bus->children, node) in pcibios_allocate_bus_resources()
240 pcibios_allocate_bus_resources(child); in pcibios_allocate_bus_resources()
309 struct pci_bus *child; in pcibios_allocate_resources() local
314 child = dev->subordinate; in pcibios_allocate_resources()
315 if (child) in pcibios_allocate_resources()
316 pcibios_allocate_resources(child, pass); in pcibios_allocate_resources()
343 struct pci_bus *child; in pcibios_allocate_rom_resources() local
348 child = dev->subordinate; in pcibios_allocate_rom_resources()
349 if (child) in pcibios_allocate_rom_resources()
[all …]
/linux-4.4.14/drivers/parport/
Dprocfs.c237 #define PARPORT_PORT_DIR(CHILD) { .procname = NULL, .mode = 0555, .child = CHILD }
239 .mode = 0555, .child = CHILD }
240 #define PARPORT_DEV_DIR(CHILD) { .procname = "dev", .mode = 0555, .child = CHILD }
242 .mode = 0555, .child = NULL }
401 .child = NULL
460 .child = parport_default_sysctl_table.vars
490 t->vars[5].child = t->device_dir; in parport_proc_register()
497 t->port_dir[0].child = t->vars; in parport_proc_register()
498 t->parport_dir[0].child = t->port_dir; in parport_proc_register()
499 t->dev_dir[0].child = t->parport_dir; in parport_proc_register()
[all …]
/linux-4.4.14/drivers/firewire/
Dcore-topology.c186 struct fw_node *node, *child, *local_node, *irm_node; in build_tree() local
233 child = fw_node(h); in build_tree()
267 node->ports[i] = child; in build_tree()
272 child->ports[child->color] = node; in build_tree()
273 child->color = card->color; in build_tree()
274 child = fw_node(child->link.next); in build_tree()
329 struct fw_node *node, *next, *child, *parent; in for_each_fw_node() local
341 child = node->ports[i]; in for_each_fw_node()
342 if (!child) in for_each_fw_node()
344 if (child->color == card->color) in for_each_fw_node()
[all …]
/linux-4.4.14/drivers/misc/
Dsram.c180 struct device_node *np = sram->dev->of_node, *child; in sram_reserve_regions() local
202 for_each_available_child_of_node(np, child) { in sram_reserve_regions()
205 ret = of_address_to_resource(child, 0, &child_res); in sram_reserve_regions()
209 child->full_name); in sram_reserve_regions()
216 child->full_name); in sram_reserve_regions()
225 if (of_find_property(child, "export", NULL)) in sram_reserve_regions()
228 if (of_find_property(child, "pool", NULL)) in sram_reserve_regions()
235 ret = of_property_read_string(child, "label", &label); in sram_reserve_regions()
239 child->full_name); in sram_reserve_regions()
243 label = child->name; in sram_reserve_regions()
[all …]
/linux-4.4.14/drivers/input/keyboard/
Dgpio_keys_polled.c149 struct fwnode_handle *child; in gpio_keys_polled_get_devtree_pdata() local
167 device_for_each_child_node(dev, child) { in gpio_keys_polled_get_devtree_pdata()
170 desc = devm_get_gpiod_from_child(dev, NULL, child); in gpio_keys_polled_get_devtree_pdata()
177 fwnode_handle_put(child); in gpio_keys_polled_get_devtree_pdata()
184 if (fwnode_property_read_u32(child, "linux,code", &button->code)) { in gpio_keys_polled_get_devtree_pdata()
187 fwnode_handle_put(child); in gpio_keys_polled_get_devtree_pdata()
191 fwnode_property_read_string(child, "label", &button->desc); in gpio_keys_polled_get_devtree_pdata()
193 if (fwnode_property_read_u32(child, "linux,input-type", in gpio_keys_polled_get_devtree_pdata()
197 if (fwnode_property_read_u32(child, "linux,input-value", in gpio_keys_polled_get_devtree_pdata()
202 fwnode_property_read_bool(child, "wakeup-source") || in gpio_keys_polled_get_devtree_pdata()
[all …]
/linux-4.4.14/drivers/gpu/drm/i915/
Dintel_bios.c408 const struct old_child_dev_config *child; /* legacy */ in parse_sdvo_device_mapping() local
423 if (p_defs->child_dev_size != sizeof(*child)) { in parse_sdvo_device_mapping()
434 child = &child_device_ptr(p_defs, i)->old; in parse_sdvo_device_mapping()
435 if (!child->device_type) { in parse_sdvo_device_mapping()
439 if (child->slave_addr != SLAVE_ADDR1 && in parse_sdvo_device_mapping()
440 child->slave_addr != SLAVE_ADDR2) { in parse_sdvo_device_mapping()
447 if (child->dvo_port != DEVICE_PORT_DVOB && in parse_sdvo_device_mapping()
448 child->dvo_port != DEVICE_PORT_DVOC) { in parse_sdvo_device_mapping()
455 child->slave_addr, in parse_sdvo_device_mapping()
456 (child->dvo_port == DEVICE_PORT_DVOB) ? in parse_sdvo_device_mapping()
[all …]
/linux-4.4.14/security/yama/
Dyama_lsm.c211 struct task_struct *child) in task_is_descendant() argument
214 struct task_struct *walker = child; in task_is_descendant()
216 if (!parent || !child) in task_is_descendant()
278 static int yama_ptrace_access_check(struct task_struct *child, in yama_ptrace_access_check() argument
291 if (!task_is_descendant(current, child) && in yama_ptrace_access_check()
292 !ptracer_exception_found(current, child) && in yama_ptrace_access_check()
293 !ns_capable(__task_cred(child)->user_ns, CAP_SYS_PTRACE)) in yama_ptrace_access_check()
299 if (!ns_capable(__task_cred(child)->user_ns, CAP_SYS_PTRACE)) in yama_ptrace_access_check()
313 child->pid, current->comm, current->pid); in yama_ptrace_access_check()
/linux-4.4.14/Documentation/networking/
Dfib_trie.txt11 An internal node, holding an array of child (leaf or tnode) pointers,
18 child array - the "child index". See Level Compression.
22 the child array. See Path Compression.
25 Any given tnode is linked to from the child array of its parent, using
35 Level Compression / child arrays
37 children of a full child (see "full_children") up one level, so that
40 Conversely, a tnode with a mostly empty child array (see empty_children)
42 in order to avoid ever-increasing child arrays.
45 the number of positions in the child array of a given tnode that are
81 Analyzes a tnode and optimizes the child array size by either inflating
[all …]
/linux-4.4.14/arch/powerpc/platforms/pseries/
Dpci_dlpar.c41 struct pci_bus *child = NULL; in find_bus_among_children() local
50 child = find_bus_among_children(tmp, dn); in find_bus_among_children()
51 if (child) in find_bus_among_children()
54 return child; in find_bus_among_children()
87 if (dn->child) in init_phb_dynamic()
Ddlpar.c115 if (dn->child) in dlpar_free_cc_nodes()
116 dlpar_free_cc_nodes(dn->child); in dlpar_free_cc_nodes()
200 last_dn->child = dn; in dlpar_configure_connector()
270 struct device_node *child; in dlpar_detach_node() local
273 child = of_get_next_child(dn, NULL); in dlpar_detach_node()
274 while (child) { in dlpar_detach_node()
275 dlpar_detach_node(child); in dlpar_detach_node()
276 child = of_get_next_child(dn, child); in dlpar_detach_node()
/linux-4.4.14/scripts/tracing/
Ddraw_functrace.py49 child = CallTree(func, calltime, self)
50 self._children.append(child)
51 return child
63 child = CallTree.ROOT.calls(func, None)
64 return child
/linux-4.4.14/Documentation/devicetree/bindings/spmi/
Dspmi.txt4 controller is modelled in device tree as a node with zero or more child nodes,
13 An SPMI controller node can contain zero or more child nodes representing slave
20 Each child node must have one and only one 'reg' entry of type SPMI_USID.
31 child@0 {
36 child@7 {
/linux-4.4.14/include/linux/mfd/
Dsmsc.h42 static inline int smsc_read(struct device *child, unsigned int reg, in smsc_read() argument
45 struct smsc *smsc = dev_get_drvdata(child->parent); in smsc_read()
50 static inline int smsc_write(struct device *child, unsigned int reg, in smsc_write() argument
53 struct smsc *smsc = dev_get_drvdata(child->parent); in smsc_write()
/linux-4.4.14/sound/soc/fsl/
Dimx-audmux.c258 struct device_node *child; in imx_audmux_parse_dt_defaults() local
260 for_each_available_child_of_node(of_node, child) { in imx_audmux_parse_dt_defaults()
269 ret = of_property_read_u32(child, "fsl,audmux-port", &port); in imx_audmux_parse_dt_defaults()
272 child->full_name); in imx_audmux_parse_dt_defaults()
275 if (!of_property_read_bool(child, "fsl,port-config")) { in imx_audmux_parse_dt_defaults()
277 child->full_name); in imx_audmux_parse_dt_defaults()
281 for (i = 0; (ret = of_property_read_u32_index(child, in imx_audmux_parse_dt_defaults()
296 i, child->full_name); in imx_audmux_parse_dt_defaults()
303 child->full_name); in imx_audmux_parse_dt_defaults()
/linux-4.4.14/drivers/md/persistent-data/
Ddm-btree-remove.c136 struct child { struct
144 unsigned index, struct child *result) in init_child() argument
168 static void exit_child(struct dm_btree_info *info, struct child *c) in exit_child()
200 struct child *l, struct child *r) in __rebalance2()
236 struct child left, right; in rebalance2()
264 struct child *l, struct child *c, struct child *r, in delete_center_node()
295 struct child *l, struct child *c, struct child *r, in redistribute3()
342 struct child *l, struct child *c, struct child *r) in __rebalance3()
370 struct child left, center, right; in rebalance3()
411 struct dm_block *child; in rebalance_children() local
[all …]
/linux-4.4.14/arch/arm/kernel/
Dptrace.c195 void ptrace_disable(struct task_struct *child) in ptrace_disable() argument
798 long arch_ptrace(struct task_struct *child, long request, in arch_ptrace() argument
806 ret = ptrace_read_user(child, addr, datap); in arch_ptrace()
810 ret = ptrace_write_user(child, addr, data); in arch_ptrace()
814 ret = copy_regset_to_user(child, in arch_ptrace()
821 ret = copy_regset_from_user(child, in arch_ptrace()
828 ret = copy_regset_to_user(child, in arch_ptrace()
835 ret = copy_regset_from_user(child, in arch_ptrace()
843 ret = ptrace_getwmmxregs(child, datap); in arch_ptrace()
847 ret = ptrace_setwmmxregs(child, datap); in arch_ptrace()
[all …]
/linux-4.4.14/tools/lib/traceevent/
Dplugin_function.c59 static void add_child(struct func_stack *stack, const char *child, int pos) in add_child() argument
63 if (!child) in add_child()
85 stack->stack[pos] = strdup(child); in add_child()
88 static int add_and_get_index(const char *parent, const char *child, int cpu) in add_and_get_index() argument
114 add_child(&fstack[cpu], child, i+1); in add_and_get_index()
121 add_child(&fstack[cpu], child, 1); in add_and_get_index()
/linux-4.4.14/arch/blackfin/include/asm/
Dptrace.h19 #define ptrace_disable(child) user_disable_single_step(child) argument
22 extern int is_user_addr_valid(struct task_struct *child,
/linux-4.4.14/arch/openrisc/kernel/
Dptrace.c151 void ptrace_disable(struct task_struct *child) in ptrace_disable() argument
155 user_disable_single_step(child); in ptrace_disable()
156 clear_tsk_thread_flag(child, TIF_SYSCALL_TRACE); in ptrace_disable()
159 long arch_ptrace(struct task_struct *child, long request, unsigned long addr, in arch_ptrace() argument
166 ret = ptrace_request(child, request, addr, data); in arch_ptrace()
/linux-4.4.14/drivers/media/i2c/
Dadp1653.c430 struct device_node *child; in adp1653_of_init() local
437 child = of_get_child_by_name(node, "flash"); in adp1653_of_init()
438 if (!child) in adp1653_of_init()
441 if (of_property_read_u32(child, "flash-timeout-us", in adp1653_of_init()
445 if (of_property_read_u32(child, "flash-max-microamp", in adp1653_of_init()
451 if (of_property_read_u32(child, "led-max-microamp", in adp1653_of_init()
456 of_node_put(child); in adp1653_of_init()
458 child = of_get_child_by_name(node, "indicator"); in adp1653_of_init()
459 if (!child) in adp1653_of_init()
462 if (of_property_read_u32(child, "led-max-microamp", in adp1653_of_init()
[all …]
/linux-4.4.14/arch/arm/crypto/
Dghash-ce-glue.c164 struct crypto_shash *child = cryptd_ahash_child(cryptd_tfm); in ghash_async_init() local
166 desc->tfm = child; in ghash_async_init()
221 struct crypto_shash *child = cryptd_ahash_child(cryptd_tfm); in ghash_async_digest() local
223 desc->tfm = child; in ghash_async_digest()
233 struct crypto_ahash *child = &ctx->cryptd_tfm->base; in ghash_async_setkey() local
236 crypto_ahash_clear_flags(child, CRYPTO_TFM_REQ_MASK); in ghash_async_setkey()
237 crypto_ahash_set_flags(child, crypto_ahash_get_flags(tfm) in ghash_async_setkey()
239 err = crypto_ahash_setkey(child, key, keylen); in ghash_async_setkey()
240 crypto_ahash_set_flags(tfm, crypto_ahash_get_flags(child) in ghash_async_setkey()
/linux-4.4.14/fs/notify/
Dfsnotify.c66 struct dentry *child; in __fsnotify_update_child_dentry_flags() local
72 list_for_each_entry(child, &alias->d_subdirs, d_child) { in __fsnotify_update_child_dentry_flags()
73 if (!child->d_inode) in __fsnotify_update_child_dentry_flags()
76 spin_lock_nested(&child->d_lock, DENTRY_D_LOCK_NESTED); in __fsnotify_update_child_dentry_flags()
78 child->d_flags |= DCACHE_FSNOTIFY_PARENT_WATCHED; in __fsnotify_update_child_dentry_flags()
80 child->d_flags &= ~DCACHE_FSNOTIFY_PARENT_WATCHED; in __fsnotify_update_child_dentry_flags()
81 spin_unlock(&child->d_lock); in __fsnotify_update_child_dentry_flags()
/linux-4.4.14/drivers/memory/
Djz4780-nemc.c271 struct device_node *child; in jz4780_nemc_probe() local
318 for_each_child_of_node(nemc->dev->of_node, child) { in jz4780_nemc_probe()
321 while ((prop = of_get_address(child, i++, NULL, NULL))) { in jz4780_nemc_probe()
326 child->full_name, bank); in jz4780_nemc_probe()
338 child->full_name); in jz4780_nemc_probe()
342 child->full_name); in jz4780_nemc_probe()
348 if (!jz4780_nemc_configure_bank(nemc, bank, child)) { in jz4780_nemc_probe()
355 if (of_platform_device_create(child, NULL, nemc->dev)) in jz4780_nemc_probe()
Domap-gpmc.c1779 struct device_node *child) in gpmc_probe_nand_child() argument
1786 if (of_property_read_u32(child, "reg", &val) < 0) { in gpmc_probe_nand_child()
1788 child->full_name); in gpmc_probe_nand_child()
1798 gpmc_nand_data->of_node = child; in gpmc_probe_nand_child()
1801 gpmc_nand_data->elm_of_node = of_parse_phandle(child, "ti,elm-id", 0); in gpmc_probe_nand_child()
1804 of_parse_phandle(child, "elm_id", 0); in gpmc_probe_nand_child()
1807 if (of_property_read_string(child, "ti,nand-ecc-opt", &s)) { in gpmc_probe_nand_child()
1842 if (!of_property_read_string(child, "ti,nand-xfer-type", &s)) in gpmc_probe_nand_child()
1849 gpmc_nand_data->flash_bbt = of_get_nand_on_flash_bbt(child); in gpmc_probe_nand_child()
1851 val = of_get_nand_bus_width(child); in gpmc_probe_nand_child()
[all …]
/linux-4.4.14/fs/nfs/blocklayout/
Ddev.c140 struct pnfs_block_dev *child = &dev->children[i]; in bl_map_concat() local
142 if (child->start > offset || in bl_map_concat()
143 child->start + child->len <= offset) in bl_map_concat()
146 child->map(child, offset - child->start, map); in bl_map_concat()
157 struct pnfs_block_dev *child; in bl_map_stripe() local
178 child = &dev->children[chunk_idx]; in bl_map_stripe()
179 child->map(child, disk_offset, map); in bl_map_stripe()
/linux-4.4.14/Documentation/devicetree/bindings/soc/qcom/
Dqcom,gsbi.txt3 The GSBI controller is modeled as a node with zero or more child nodes, each
20 - syscon-tcsr: indicates phandle of TCSR syscon node. Required if child uses
23 Required properties if child node exists:
30 A GSBI controller node can contain 0 or more child nodes representing serial
34 See the following for child node definitions:
57 /* child nodes go under here */
/linux-4.4.14/arch/um/include/asm/
Dptrace-generic.h34 extern long subarch_ptrace(struct task_struct *child, long request,
36 extern unsigned long getreg(struct task_struct *child, int regno);
37 extern int putreg(struct task_struct *child, int regno, unsigned long value);
/linux-4.4.14/arch/mips/pci/
Dpci-rt3883.c419 struct device_node *child; in rt3883_pci_probe() local
434 for_each_child_of_node(np, child) { in rt3883_pci_probe()
435 if (of_get_property(child, "interrupt-controller", NULL)) { in rt3883_pci_probe()
436 rpc->intc_of_node = child; in rt3883_pci_probe()
449 for_each_child_of_node(np, child) { in rt3883_pci_probe()
450 if (child->type && in rt3883_pci_probe()
451 of_node_cmp(child->type, "pci") == 0) { in rt3883_pci_probe()
452 rpc->pci_controller.of_node = child; in rt3883_pci_probe()
466 for_each_available_child_of_node(rpc->pci_controller.of_node, child) { in rt3883_pci_probe()
469 if (!child->type || in rt3883_pci_probe()
[all …]
/linux-4.4.14/drivers/clk/
Dclk.c177 struct clk_core *child; in clk_unprepare_unused_subtree() local
181 hlist_for_each_entry(child, &core->children, child_node) in clk_unprepare_unused_subtree()
182 clk_unprepare_unused_subtree(child); in clk_unprepare_unused_subtree()
202 struct clk_core *child; in clk_disable_unused_subtree() local
207 hlist_for_each_entry(child, &core->children, child_node) in clk_disable_unused_subtree()
208 clk_disable_unused_subtree(child); in clk_disable_unused_subtree()
308 struct clk_core *child; in __clk_lookup_subtree() local
314 hlist_for_each_entry(child, &core->children, child_node) { in __clk_lookup_subtree()
315 ret = __clk_lookup_subtree(name, child); in __clk_lookup_subtree()
938 struct clk_core *child; in __clk_recalc_accuracies() local
[all …]
Dclk-scpi.c266 struct device_node *child, *np = dev->of_node; in scpi_clocks_remove() local
273 for_each_available_child_of_node(np, child) in scpi_clocks_remove()
282 struct device_node *child, *np = dev->of_node; in scpi_clocks_probe() local
288 for_each_available_child_of_node(np, child) { in scpi_clocks_probe()
289 match = of_match_node(scpi_clk_match, child); in scpi_clocks_probe()
292 ret = scpi_clk_add(dev, child, match); in scpi_clocks_probe()
295 of_node_put(child); in scpi_clocks_probe()
/linux-4.4.14/tools/testing/selftests/exec/
Dexecveat.c69 pid_t child; in check_execveat_invoked_rc() local
78 child = fork(); in check_execveat_invoked_rc()
79 if (child < 0) { in check_execveat_invoked_rc()
83 if (child == 0) { in check_execveat_invoked_rc()
91 rc = waitpid(child, &status, 0); in check_execveat_invoked_rc()
92 if (rc != child) { in check_execveat_invoked_rc()
93 printf("[FAIL] (waitpid(%d,...) returned %d)\n", child, rc); in check_execveat_invoked_rc()
98 child, status); in check_execveat_invoked_rc()
104 child, WEXITSTATUS(status), expected_rc, expected_rc2); in check_execveat_invoked_rc()
/linux-4.4.14/drivers/input/gameport/
Dgameport.c439 struct gameport *gameport, *child = NULL; in gameport_get_pending_child() local
448 child = gameport; in gameport_get_pending_child()
455 return child; in gameport_get_pending_child()
559 gameport->parent->child = gameport; in gameport_add_port()
587 struct gameport *child; in gameport_destroy_port() local
589 child = gameport_get_pending_child(gameport); in gameport_destroy_port()
590 if (child) { in gameport_destroy_port()
591 gameport_remove_pending_events(child); in gameport_destroy_port()
592 put_device(&child->dev); in gameport_destroy_port()
596 gameport->parent->child = NULL; in gameport_destroy_port()
[all …]
/linux-4.4.14/drivers/gpu/drm/imx/
Dimx-ldb.c60 struct device_node *child; member
218 int mux = imx_drm_encoder_get_mux_id(imx_ldb_ch->child, encoder); in imx_ldb_encoder_commit()
268 int mux = imx_drm_encoder_get_mux_id(imx_ldb_ch->child, encoder); in imx_ldb_encoder_mode_set()
408 imx_ldb_ch->child); in imx_ldb_register()
512 struct device_node *child; in imx_ldb_bind() local
561 for_each_child_of_node(np, child) { in imx_ldb_bind()
565 ret = of_property_read_u32(child, "reg", &i); in imx_ldb_bind()
574 if (!of_device_is_available(child)) in imx_ldb_bind()
580 channel->child = child; in imx_ldb_bind()
586 port = of_graph_get_port_by_id(child, imx_ldb->lvds_mux ? 4 : 2); in imx_ldb_bind()
[all …]
/linux-4.4.14/arch/powerpc/platforms/44x/
Dwarp.c175 struct device_node *np, *child; in pika_setup_leds() local
183 for_each_child_of_node(np, child) in pika_setup_leds()
184 if (strcmp(child->name, "green") == 0) in pika_setup_leds()
185 green_led = of_get_gpio(child, 0); in pika_setup_leds()
186 else if (strcmp(child->name, "red") == 0) in pika_setup_leds()
187 red_led = of_get_gpio(child, 0); in pika_setup_leds()
/linux-4.4.14/arch/x86/um/asm/
Dptrace.h50 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, in ptrace_get_thread_area() argument
75 static inline int ptrace_set_thread_area(struct task_struct *child, int idx, in ptrace_set_thread_area() argument
/linux-4.4.14/drivers/macintosh/
Dwindfarm_smu_sat.c213 struct device_node *child; in wf_sat_probe() local
231 child = NULL; in wf_sat_probe()
232 while ((child = of_get_next_child(dev, child)) != NULL) { in wf_sat_probe()
233 reg = of_get_property(child, "reg", NULL); in wf_sat_probe()
234 type = of_get_property(child, "device_type", NULL); in wf_sat_probe()
235 loc = of_get_property(child, "location", NULL); in wf_sat_probe()
251 "location %s for %s\n", loc, child->full_name); in wf_sat_probe()
/linux-4.4.14/drivers/video/fbdev/omap2/dss/
Domapdss-boot-init.c190 struct device_node *dss, *child; in omapdss_boot_init() local
201 for_each_available_child_of_node(dss, child) { in omapdss_boot_init()
202 if (!of_find_property(child, "compatible", NULL)) { in omapdss_boot_init()
203 of_node_put(child); in omapdss_boot_init()
207 omapdss_walk_device(child, true); in omapdss_boot_init()
/linux-4.4.14/arch/c6x/kernel/
Dptrace.c25 void ptrace_disable(struct task_struct *child) in ptrace_disable() argument
142 long arch_ptrace(struct task_struct *child, long request, in arch_ptrace() argument
152 ret = generic_ptrace_pokedata(child, addr, data); in arch_ptrace()
157 ret = ptrace_request(child, request, addr, data); in arch_ptrace()
/linux-4.4.14/drivers/bus/
Dimx-weim.c144 struct device_node *child; in weim_parse_dt() local
153 for_each_available_child_of_node(pdev->dev.of_node, child) { in weim_parse_dt()
154 if (!child->name) in weim_parse_dt()
157 ret = weim_timing_setup(child, base, devtype); in weim_parse_dt()
160 child->full_name); in weim_parse_dt()
Dsunxi-rsb.c549 struct device_node *child, *np = dev->of_node; in of_rsb_register_devices() local
558 for_each_available_child_of_node(np, child) { in of_rsb_register_devices()
560 child->full_name); in of_rsb_register_devices()
562 ret = of_property_read_u32(child, "reg", &hwaddr); in of_rsb_register_devices()
565 child->full_name, ret); in of_rsb_register_devices()
572 child->full_name); in of_rsb_register_devices()
590 child->full_name, ret); in of_rsb_register_devices()
594 for_each_available_child_of_node(np, child) { in of_rsb_register_devices()
597 dev_dbg(dev, "adding child %s\n", child->full_name); in of_rsb_register_devices()
599 ret = of_property_read_u32(child, "reg", &hwaddr); in of_rsb_register_devices()
[all …]
/linux-4.4.14/drivers/clk/ux500/
Du8500_of_clk.c70 struct device_node *child = NULL; in u8500_clk_init() local
559 for_each_child_of_node(np, child) { in u8500_clk_init()
562 if (!of_node_cmp(child->name, "prcmu-clock")) { in u8500_clk_init()
565 of_clk_add_provider(child, of_clk_src_onecell_get, &clk_data); in u8500_clk_init()
567 if (!of_node_cmp(child->name, "prcc-periph-clock")) in u8500_clk_init()
568 of_clk_add_provider(child, ux500_twocell_get, prcc_pclk); in u8500_clk_init()
570 if (!of_node_cmp(child->name, "prcc-kernel-clock")) in u8500_clk_init()
571 of_clk_add_provider(child, ux500_twocell_get, prcc_kclk); in u8500_clk_init()
573 if (!of_node_cmp(child->name, "rtc32k-clock")) in u8500_clk_init()
574 of_clk_add_provider(child, of_clk_src_simple_get, rtc_clk); in u8500_clk_init()
[all …]
/linux-4.4.14/Documentation/cgroups/
Dpids.txt33 pids.current tracks all child cgroup hierarchies, so parent/pids.current is a
34 superset of parent/child/pids.current.
44 # mkdir -p /sys/fs/cgroup/pids/parent/child
60 Even if we migrate to a child cgroup (which doesn't have a set limit), we will
64 # echo $$ > /sys/fs/cgroup/pids/parent/child/cgroup.procs
67 # cat /sys/fs/cgroup/pids/parent/child/pids.current
69 # cat /sys/fs/cgroup/pids/parent/child/pids.max
/linux-4.4.14/drivers/usb/host/
Dohci-exynos.c44 struct device_node *child; in exynos_ohci_get_phy() local
50 for_each_available_child_of_node(dev->of_node, child) { in exynos_ohci_get_phy()
51 ret = of_property_read_u32(child, "reg", &phy_number); in exynos_ohci_get_phy()
54 of_node_put(child); in exynos_ohci_get_phy()
60 of_node_put(child); in exynos_ohci_get_phy()
64 phy = devm_of_phy_get(dev, child, NULL); in exynos_ohci_get_phy()
Dehci-exynos.c55 struct device_node *child; in exynos_ehci_get_phy() local
61 for_each_available_child_of_node(dev->of_node, child) { in exynos_ehci_get_phy()
62 ret = of_property_read_u32(child, "reg", &phy_number); in exynos_ehci_get_phy()
65 of_node_put(child); in exynos_ehci_get_phy()
71 of_node_put(child); in exynos_ehci_get_phy()
75 phy = devm_of_phy_get(dev, child, NULL); in exynos_ehci_get_phy()
/linux-4.4.14/tools/perf/Documentation/
Dcallchain-overhead-calculation.txt10 the child functions so that it can show the total overhead of the
17 'self' overhead of its child functions. But with this enabled, users
39 In this case 'foo' is a child of 'bar', and 'bar' is an immediate
40 child of 'main' so 'foo' also is a child of 'main'. In other words,
65 child functions (i.e. 'foo' and 'bar') are added to the parents to
/linux-4.4.14/tools/testing/selftests/futex/functional/
Dfutex_requeue_pi_mismatched_ops.c59 pthread_t child; in main() local
82 if (pthread_create(&child, NULL, blocking_child, NULL)) { in main()
126 pthread_join(child, NULL); in main()
/linux-4.4.14/Documentation/devicetree/bindings/sound/
Dimx-audmux.txt11 An initial configuration can be setup using child nodes.
13 Required properties of optional child nodes:
16 child node.
/linux-4.4.14/Documentation/devicetree/bindings/pinctrl/
Dsamsung-pinctrl.txt26 - Pin banks as child nodes: Pin banks of the controller are represented by child
45 - Pin mux/config groups as child nodes: The pin mux (selecting pin function
47 as child nodes of the pin-controller node. There should be atleast one
48 child node and there is no limit on the count of these child nodes. It is
49 also possible for a child node to consist of several further child nodes
51 level child nodes is exactly the same as for first level ones and is
54 The child node should contain a list of pin(s) on which a particular pin
66 child node is specified using the "samsung,pin-function" property. The value
69 for the specified pin group. This property is optional in the child node if
70 no specific function selection is desired for the pins listed in the child
[all …]
/linux-4.4.14/drivers/irqchip/
Dirq-gic-v2m.c383 struct device_node *child; in gicv2m_of_init() local
385 for (child = of_find_matching_node(node, gicv2m_device_id); child; in gicv2m_of_init()
386 child = of_find_matching_node(child, gicv2m_device_id)) { in gicv2m_of_init()
387 if (!of_find_property(child, "msi-controller", NULL)) in gicv2m_of_init()
390 ret = gicv2m_init_one(child, parent); in gicv2m_of_init()
/linux-4.4.14/Documentation/devicetree/bindings/media/i2c/
Dadp1653.txt12 represented by one child node, nodes need to be named "flash" and "indicator".
14 Required properties of the LED child node:
17 Required properties of the flash LED child node:
/linux-4.4.14/fs/ocfs2/
Dexport.c145 static struct dentry *ocfs2_get_parent(struct dentry *child) in ocfs2_get_parent() argument
150 struct inode *dir = d_inode(child); in ocfs2_get_parent()
152 trace_ocfs2_get_parent(child, child->d_name.len, child->d_name.name, in ocfs2_get_parent()
/linux-4.4.14/Documentation/devicetree/bindings/memory-controllers/
Dingenic,jz4780-nemc.txt18 Each child of the NEMC node describes a device connected to the NEMC.
20 Required child node properties:
30 Optional child node properties:
38 If a child node references multiple banks in its "reg" property, the same value
45 Example (NEMC node with a NAND child device attached at CS1):
Darm,pl172.txt23 - clock-ranges: Empty property indicating that child nodes can inherit
31 Required child cs node properties:
37 - ranges: Empty property indicating that child nodes can inherit
40 - clock-ranges: Empty property indicating that child nodes can inherit
50 Optional child cs node config properties:
65 Optional child cs node timing properties:
/linux-4.4.14/drivers/acpi/
Dcontainer.c45 struct acpi_device *child; in acpi_container_offline() local
48 list_for_each_entry(child, &adev->children, node) in acpi_container_offline()
49 if (!acpi_scan_is_offline(child, false)) in acpi_container_offline()
/linux-4.4.14/fs/tracefs/
Dinode.c564 struct dentry *child, *parent; in tracefs_remove_recursive() local
583 list_for_each_entry(child, &parent->d_subdirs, d_child) { in tracefs_remove_recursive()
584 if (!simple_positive(child)) in tracefs_remove_recursive()
588 if (!list_empty(&child->d_subdirs)) { in tracefs_remove_recursive()
591 parent = child; in tracefs_remove_recursive()
597 if (!__tracefs_remove(child, parent)) in tracefs_remove_recursive()
612 child = parent; in tracefs_remove_recursive()
616 if (child != dentry) in tracefs_remove_recursive()
620 if (!__tracefs_remove(child, parent)) in tracefs_remove_recursive()
/linux-4.4.14/Documentation/devicetree/bindings/dma/xilinx/
Dxilinx_dma.txt10 - dma-channel child node: Should have atleast one channel and can have upto
12 DMA channel (see child node properties below).
18 Required child node properties:
25 Option child node properties:
/linux-4.4.14/drivers/firmware/
Ddmi-sysfs.c38 struct kobject *child; member
451 entry->child = kzalloc(sizeof(*entry->child), GFP_KERNEL); in dmi_system_event_log()
452 if (!entry->child) in dmi_system_event_log()
454 ret = kobject_init_and_add(entry->child, in dmi_system_event_log()
461 ret = sysfs_create_bin_file(entry->child, &dmi_sel_raw_attr); in dmi_system_event_log()
468 kobject_del(entry->child); in dmi_system_event_log()
470 kfree(entry->child); in dmi_system_event_log()
632 kobject_put(entry->child); in dmi_sysfs_register_handle()
643 kobject_put(entry->child); in cleanup_entry_list()
/linux-4.4.14/tools/testing/selftests/x86/
Dldt_gdt.c280 pid_t child = fork(); in do_simple_tests() local
281 if (child == 0) { in do_simple_tests()
291 if (waitpid(child, &status, 0) != child || in do_simple_tests()
544 pid_t child = fork(); in do_exec_test() local
545 if (child == 0) { in do_exec_test()
551 if (waitpid(child, &status, 0) != child || in do_exec_test()
/linux-4.4.14/arch/avr32/include/asm/
Dptrace.h19 #define arch_ptrace_attach(child) ocd_enable(child) argument
/linux-4.4.14/drivers/scsi/
Dscsi_sysctl.c27 .child = scsi_table },
34 .child = scsi_dir_table },
/linux-4.4.14/fs/debugfs/
Dinode.c586 struct dentry *child, *parent; in debugfs_remove_recursive() local
605 list_for_each_entry(child, &parent->d_subdirs, d_child) { in debugfs_remove_recursive()
606 if (!simple_positive(child)) in debugfs_remove_recursive()
610 if (!list_empty(&child->d_subdirs)) { in debugfs_remove_recursive()
613 parent = child; in debugfs_remove_recursive()
619 if (!__debugfs_remove(child, parent)) in debugfs_remove_recursive()
634 child = parent; in debugfs_remove_recursive()
638 if (child != dentry) in debugfs_remove_recursive()
642 if (!__debugfs_remove(child, parent)) in debugfs_remove_recursive()
/linux-4.4.14/drivers/i2c/muxes/
Di2c-arb-gpio-challenge.c46 struct i2c_adapter *child; member
207 arb->child = i2c_add_mux_adapter(arb->parent, dev, arb, 0, 0, 0, in i2c_arbitrator_probe()
210 if (!arb->child) { in i2c_arbitrator_probe()
223 i2c_del_mux_adapter(arb->child); in i2c_arbitrator_remove()
/linux-4.4.14/drivers/staging/lustre/lustre/llite/
Dstatahead.c437 struct ll_inode_info *child = ll_i2info(inode); in ll_agl_add() local
441 spin_lock(&child->lli_agl_lock); in ll_agl_add()
442 if (child->lli_agl_index == 0) { in ll_agl_add()
443 child->lli_agl_index = index; in ll_agl_add()
444 spin_unlock(&child->lli_agl_lock); in ll_agl_add()
446 LASSERT(list_empty(&child->lli_agl_list)); in ll_agl_add()
452 list_add_tail(&child->lli_agl_list, &sai->sai_entries_agl); in ll_agl_add()
455 spin_unlock(&child->lli_agl_lock); in ll_agl_add()
614 struct inode *child; in ll_post_statahead() local
644 child = entry->se_inode; in ll_post_statahead()
[all …]
/linux-4.4.14/fs/nfs/
Dsysctl.c38 .child = nfs_cb_sysctls,
47 .child = nfs_cb_sysctl_dir,
Dnfs4sysctl.c43 .child = nfs4_cb_sysctls,
52 .child = nfs4_cb_sysctl_dir,
/linux-4.4.14/drivers/staging/lustre/lustre/lov/
Dlovsub_lock.c274 struct cl_lock *child, struct lov_lock *lov) in lovsub_lock_delete_one() argument
358 cl_lock_mutex_put(env, child); in lovsub_lock_delete_one()
384 struct cl_lock *child = slice->cls_lock; in lovsub_lock_delete() local
388 LASSERT(cl_lock_is_mutexed(child)); in lovsub_lock_delete()
411 restart = lovsub_lock_delete_one(env, child, lov); in lovsub_lock_delete()
415 cl_lock_mutex_get(env, child); in lovsub_lock_delete()
/linux-4.4.14/Documentation/devicetree/
Dof_unittest.txt64 struct device_node *child;
70 considering only child and sibling pointers. There exists another pointer,
72 a particular level the child node and all the sibling nodes will have a parent
133 In the function of_attach_node(), the new node is attached as the child of the
134 given parent in live tree. But, if parent already has a child then the new node
135 replaces the current child and turns it into its sibling. So, when the testcase
177 test-child0 the test-sibling1 is attached that pushes the child node
178 (i.e. test-child0) to become a sibling and makes itself a child node,
195 To detach a node, of_detach_node() either updates the child pointer of given

1234