| /OK3568_Linux_fs/kernel/arch/powerpc/kernel/ptrace/ |
| H A D | ptrace-adv.c | 74 int ptrace_get_debugreg(struct task_struct *child, unsigned long addr, in ptrace_get_debugreg() argument 80 return put_user(child->thread.debug.dac1, datalp); in ptrace_get_debugreg() 139 static long set_instruction_bp(struct task_struct *child, in set_instruction_bp() argument 143 int slot1_in_use = ((child->thread.debug.dbcr0 & DBCR0_IAC1) != 0); in set_instruction_bp() 144 int slot2_in_use = ((child->thread.debug.dbcr0 & DBCR0_IAC2) != 0); in set_instruction_bp() 145 int slot3_in_use = ((child->thread.debug.dbcr0 & DBCR0_IAC3) != 0); in set_instruction_bp() 146 int slot4_in_use = ((child->thread.debug.dbcr0 & DBCR0_IAC4) != 0); in set_instruction_bp() 148 if (dbcr_iac_range(child) & DBCR_IAC12MODE) in set_instruction_bp() 150 if (dbcr_iac_range(child) & DBCR_IAC34MODE) in set_instruction_bp() 164 child->thread.debug.iac1 = bp_info->addr; in set_instruction_bp() [all …]
|
| H A D | ptrace32.c | 27 * does not yet catch signals sent when the child dies. 36 long compat_arch_ptrace(struct task_struct *child, compat_long_t request, in compat_arch_ptrace() argument 65 copied = ptrace_access_vm(child, (u64)addrOthers, &tmp, in compat_arch_ptrace() 84 CHECK_FULL_REGS(child->thread.regs); in compat_arch_ptrace() 86 ret = ptrace_get_reg(child, index, &tmp); in compat_arch_ptrace() 90 flush_fp_to_thread(child); in compat_arch_ptrace() 96 tmp = ((unsigned int *)child->thread.fp_state.fpr) in compat_arch_ptrace() 134 CHECK_FULL_REGS(child->thread.regs); in compat_arch_ptrace() 136 flush_fp_to_thread(child); in compat_arch_ptrace() 138 tmp = child->thread.fp_state.fpr[numReg - PT_FPR0][0]; in compat_arch_ptrace() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/mtd/ |
| H A D | mtdpart.c | 43 struct mtd_info *child; in allocate_partition() local 49 child = kzalloc(sizeof(*child), GFP_KERNEL); in allocate_partition() 51 if (!name || !child) { in allocate_partition() 55 kfree(child); in allocate_partition() 60 child->type = parent->type; in allocate_partition() 61 child->part.flags = parent->flags & ~part->mask_flags; in allocate_partition() 62 child->part.flags |= part->add_flags; in allocate_partition() 63 child->flags = child->part.flags; in allocate_partition() 64 child->part.size = part->size; in allocate_partition() 65 child->writesize = parent->writesize; in allocate_partition() [all …]
|
| /OK3568_Linux_fs/external/xserver/test/ |
| H A D | list.c | 42 struct child { struct 72 struct child child[3]; in test_xorg_list_add() local 73 struct child *c; in test_xorg_list_add() 77 xorg_list_add(&child[0].node, &parent.children); in test_xorg_list_add() 80 c = xorg_list_first_entry(&parent.children, struct child, node); in test_xorg_list_add() 82 assert(memcmp(c, &child[0], sizeof(struct child)) == 0); in test_xorg_list_add() 85 xorg_list_add(&child[1].node, &parent.children); in test_xorg_list_add() 86 c = xorg_list_first_entry(&parent.children, struct child, node); in test_xorg_list_add() 88 assert(memcmp(c, &child[1], sizeof(struct child)) == 0); in test_xorg_list_add() 90 xorg_list_add(&child[2].node, &parent.children); in test_xorg_list_add() [all …]
|
| /OK3568_Linux_fs/kernel/kernel/ |
| H A D | ptrace.c | 67 void __ptrace_link(struct task_struct *child, struct task_struct *new_parent, in __ptrace_link() argument 70 BUG_ON(!list_empty(&child->ptrace_entry)); in __ptrace_link() 71 list_add(&child->ptrace_entry, &new_parent->ptraced); in __ptrace_link() 72 child->parent = new_parent; in __ptrace_link() 73 child->ptracer_cred = get_cred(ptracer_cred); in __ptrace_link() 82 static void ptrace_link(struct task_struct *child, struct task_struct *new_parent) in ptrace_link() argument 84 __ptrace_link(child, new_parent, current_cred()); in ptrace_link() 89 * @child: ptracee to be unlinked 91 * Remove @child from the ptrace list, move it back to the original parent, 115 void __ptrace_unlink(struct task_struct *child) in __ptrace_unlink() argument [all …]
|
| /OK3568_Linux_fs/u-boot/scripts/kconfig/ |
| H A D | gconf.glade | 24 <child> 30 <child> 34 <child> 40 <child> 43 <child> 52 <child internal-child="image"> 62 </child> 64 </child> 66 <child> 75 <child internal-child="image"> [all …]
|
| /OK3568_Linux_fs/kernel/scripts/kconfig/ |
| H A D | gconf.glade | 24 <child> 30 <child> 34 <child> 40 <child> 43 <child> 52 <child internal-child="image"> 62 </child> 64 </child> 66 <child> 75 <child internal-child="image"> [all …]
|
| /OK3568_Linux_fs/buildroot/support/kconfig/ |
| H A D | gconf.glade | 24 <child> 30 <child> 34 <child> 40 <child> 43 <child> 52 <child internal-child="image"> 62 </child> 64 </child> 66 <child> 75 <child internal-child="image"> [all …]
|
| /OK3568_Linux_fs/yocto/poky/scripts/ |
| H A D | oe-pkgdata-browser.glade | 42 <child> 52 <child> 57 <child> 62 </child> 69 </child> 70 <child> 76 <child> 82 <child> 90 <child internal-child="selection"> 92 </child> [all …]
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/powerpc/ptrace/ |
| H A D | ptrace.h | 60 int start_trace(pid_t child) in start_trace() argument 64 ret = ptrace(PTRACE_ATTACH, child, NULL, NULL); in start_trace() 69 ret = waitpid(child, NULL, 0); in start_trace() 70 if (ret != child) { in start_trace() 77 int stop_trace(pid_t child) in stop_trace() argument 81 ret = ptrace(PTRACE_DETACH, child, NULL, NULL); in stop_trace() 89 int cont_trace(pid_t child) in cont_trace() argument 93 ret = ptrace(PTRACE_CONT, child, NULL, NULL); in cont_trace() 101 int ptrace_read_regs(pid_t child, unsigned long type, unsigned long regs[], in ptrace_read_regs() argument 107 FAIL_IF(start_trace(child)); in ptrace_read_regs() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/pwm/ |
| H A D | sysfs.c | 18 struct device child; member 24 static struct pwm_export *child_to_pwm_export(struct device *child) in child_to_pwm_export() argument 26 return container_of(child, struct pwm_export, child); in child_to_pwm_export() 29 static struct pwm_device *child_to_pwm_device(struct device *child) in child_to_pwm_device() argument 31 struct pwm_export *export = child_to_pwm_export(child); in child_to_pwm_device() 36 static ssize_t period_show(struct device *child, in period_show() argument 40 const struct pwm_device *pwm = child_to_pwm_device(child); in period_show() 48 static ssize_t period_store(struct device *child, in period_store() argument 52 struct pwm_export *export = child_to_pwm_export(child); in period_store() 71 static ssize_t duty_cycle_show(struct device *child, in duty_cycle_show() argument [all …]
|
| /OK3568_Linux_fs/kernel/arch/x86/kernel/ |
| H A D | step.c | 12 unsigned long convert_ip_to_linear(struct task_struct *child, struct pt_regs *regs) in convert_ip_to_linear() argument 36 mutex_lock(&child->mm->context.lock); in convert_ip_to_linear() 37 if (unlikely(!child->mm->context.ldt || in convert_ip_to_linear() 38 seg >= child->mm->context.ldt->nr_entries)) in convert_ip_to_linear() 41 desc = &child->mm->context.ldt->entries[seg]; in convert_ip_to_linear() 49 mutex_unlock(&child->mm->context.lock); in convert_ip_to_linear() 56 static int is_setting_trap_flag(struct task_struct *child, struct pt_regs *regs) in is_setting_trap_flag() argument 60 unsigned long addr = convert_ip_to_linear(child, regs); in is_setting_trap_flag() 62 copied = access_process_vm(child, addr, opcode, sizeof(opcode), in is_setting_trap_flag() 111 static int enable_single_step(struct task_struct *child) in enable_single_step() argument [all …]
|
| /OK3568_Linux_fs/kernel/sound/soc/rockchip/ |
| H A D | rockchip_multi_dais.c | 47 struct snd_soc_dai *child; in rockchip_mdais_hw_params() local 61 child = mdais->dais[i].dai; in rockchip_mdais_hw_params() 64 if (child->driver->ops && child->driver->ops->hw_params) { in rockchip_mdais_hw_params() 65 ret = child->driver->ops->hw_params(substream, cparams, child); in rockchip_mdais_hw_params() 82 struct snd_soc_dai *child; in rockchip_mdais_trigger() local 96 child = mdais->dais[i].dai; in rockchip_mdais_trigger() 97 if (child->driver->ops && child->driver->ops->trigger) { in rockchip_mdais_trigger() 98 ret = child->driver->ops->trigger(substream, in rockchip_mdais_trigger() 99 cmd, child); in rockchip_mdais_trigger() 112 struct snd_soc_dai *child; in rockchip_mdais_startup() local [all …]
|
| /OK3568_Linux_fs/kernel/arch/um/kernel/ |
| H A D | ptrace.c | 13 void user_enable_single_step(struct task_struct *child) in user_enable_single_step() argument 15 set_tsk_thread_flag(child, TIF_SINGLESTEP); 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 clear_tsk_thread_flag(child, TIF_SINGLESTEP); 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/mfd/ |
| H A D | twl-core.c | 711 struct device *child; in add_children() local 714 child = add_child(TWL4030_MODULE_GPIO, "twl4030_gpio", in add_children() 717 if (IS_ERR(child)) in add_children() 718 return PTR_ERR(child); in add_children() 722 child = add_child(TWL4030_MODULE_KEYPAD, "twl4030_keypad", in add_children() 725 if (IS_ERR(child)) in add_children() 726 return PTR_ERR(child); in add_children() 731 child = add_child(TWL4030_MODULE_MADC, "twl4030_madc", in add_children() 734 if (IS_ERR(child)) in add_children() 735 return PTR_ERR(child); in add_children() [all …]
|
| /OK3568_Linux_fs/kernel/arch/m68k/kernel/ |
| H A D | ptrace.c | 29 * does not yet catch signals sent when the child dies. 126 static inline void singlestep_disable(struct task_struct *child) 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() [all …]
|
| /OK3568_Linux_fs/kernel/tools/perf/arch/x86/tests/ |
| H A D | bp-modify.c | 32 int child = fork(); in spawn_child() local 34 if (child == 0) { in spawn_child() 36 * The child sets itself for as tracee and in spawn_child() 52 return child; in spawn_child() 61 pid_t child; in bp_modify1() local 65 child = spawn_child(); in bp_modify1() 67 waitpid(child, &status, 0); in bp_modify1() 79 * - detaches the child in bp_modify1() 81 if (ptrace(PTRACE_POKEUSER, child, in bp_modify1() 88 if (ptrace(PTRACE_POKEUSER, child, in bp_modify1() [all …]
|
| /OK3568_Linux_fs/kernel/arch/mips/kernel/ |
| H A D | ptrace32.c | 43 long compat_arch_ptrace(struct task_struct *child, compat_long_t request, in compat_arch_ptrace() argument 73 copied = ptrace_access_vm(child, (u64)addrOthers, &tmp, in compat_arch_ptrace() 86 regs = task_pt_regs(child); in compat_arch_ptrace() 97 if (!tsk_used_math(child)) { in compat_arch_ptrace() 102 fregs = get_fpu_regs(child); in compat_arch_ptrace() 103 if (test_tsk_thread_flag(child, TIF_32BIT_FPREGS)) { in compat_arch_ptrace() 117 tmp = child->thread.fpu.fcr31; in compat_arch_ptrace() 147 dregs = __get_dsp_regs(child); in compat_arch_ptrace() 157 tmp = child->thread.dsp.dspcontrol; in compat_arch_ptrace() 186 if (ptrace_access_vm(child, (u64)addrOthers, &data, in compat_arch_ptrace() [all …]
|
| /OK3568_Linux_fs/kernel/arch/x86/um/ |
| H A D | ptrace_32.c | 75 int putreg(struct task_struct *child, int regno, unsigned long value) in putreg() argument 91 UPT_SYSCALL_NR(&child->thread.regs.regs) = value; in putreg() 115 child->thread.regs.regs.gp[HOST_EFLAGS] |= value; in putreg() 120 child->thread.regs.regs.gp[reg_offsets[regno]] = value; in putreg() 124 int poke_user(struct task_struct *child, long addr, long data) in poke_user() argument 130 return putreg(child, addr, data); in poke_user() 137 child->thread.arch.debugregs[addr] = data; in poke_user() 143 unsigned long getreg(struct task_struct *child, int regno) in getreg() argument 172 return mask & child->thread.regs.regs.gp[reg_offsets[regno]]; in getreg() 176 int peek_user(struct task_struct *child, long addr, long data) in peek_user() argument [all …]
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/cgroup/ |
| H A D | test_core.c | 72 * Create a child process that allocates and touches 100MB, then waits to be 73 * killed. Wait until the child is attached to the cgroup, kill all processes 100 /* wait for the child to enter cgroup */ in test_cgcore_destroy() 276 char *grandparent = NULL, *parent = NULL, *child = NULL; in test_cgcore_invalid_domain() local 280 child = cg_name(root, "cg_test_grandparent/cg_test_parent/cg_test_child"); in test_cgcore_invalid_domain() 281 if (!parent || !child || !grandparent) in test_cgcore_invalid_domain() 290 if (cg_create(child)) in test_cgcore_invalid_domain() 296 if (cg_read_strcmp(child, "cgroup.type", "domain invalid\n")) in test_cgcore_invalid_domain() 299 if (!cg_enter_current(child)) in test_cgcore_invalid_domain() 305 if (!clone_into_cgroup_run_wait(child)) in test_cgcore_invalid_domain() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/ssv6xxx/hwif/ |
| H A D | hwif.h | 51 int __must_check (*read)(struct device *child, void *buf,size_t *size); 52 int __must_check (*write)(struct device *child, void *buf, size_t len,u8 queue_num); 53 int __must_check (*readreg)(struct device *child, u32 addr, u32 *buf); 54 int __must_check (*writereg)(struct device *child, u32 addr, u32 buf); 55 int (*trigger_tx_rx)(struct device *child); 56 int (*irq_getmask)(struct device *child, u32 *mask); 57 void (*irq_setmask)(struct device *child,int mask); 58 void (*irq_enable)(struct device *child); 59 void (*irq_disable)(struct device *child,bool iswaitirq); 60 int (*irq_getstatus)(struct device *child,int *status); [all …]
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | bootconfig.h | 42 u16 child; member 94 return xbc_node_is_value(node) && node->child != 0; in xbc_node_is_array() 102 * or no child. Returns true if it is a leaf node, or false if not. 109 (!node->child || xbc_node_is_value(xbc_node_get_child(node))); in xbc_node_is_leaf() 158 * Return the first subkey node of the @node. If the @node has no child 163 struct xbc_node *child = xbc_node_get_child(node); in xbc_node_get_subkey() local 165 if (child && xbc_node_is_value(child)) in xbc_node_get_subkey() 166 return xbc_node_get_next(child); in xbc_node_get_subkey() 168 return child; in xbc_node_get_subkey() 186 * xbc_node_for_each_child() - Iterate child nodes [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/arm/mali400/mali/common/ |
| H A D | mali_group.c | 119 struct mali_group *child; in mali_group_delete() local 122 _MALI_OSK_LIST_FOREACHENTRY(child, temp, &group->group_list, struct mali_group, group_list) { in mali_group_delete() 123 child->parent_group = NULL; in mali_group_delete() 124 mali_group_delete(child); in mali_group_delete() 251 /* Deal with child groups first */ in mali_group_activate() 256 * let the child groups take the needed L2 cache ref in mali_group_activate() 261 struct mali_group *child; in mali_group_activate() local 265 * Child group is inactive, get PM in mali_group_activate() 268 _MALI_OSK_LIST_FOREACHENTRY(child, temp, in mali_group_activate() 272 == child->state); in mali_group_activate() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/scsi/libsas/ |
| H A D | sas_expander.c | 745 struct domain_device *child, in sas_ex_get_linkrate() argument 752 child->pathways = 0; in sas_ex_get_linkrate() 764 SAS_ADDR(child->sas_addr)) { in sas_ex_get_linkrate() 766 child->min_linkrate = min(parent->min_linkrate, in sas_ex_get_linkrate() 768 child->max_linkrate = max(parent->max_linkrate, in sas_ex_get_linkrate() 770 child->pathways++; in sas_ex_get_linkrate() 774 child->linkrate = min(parent_phy->linkrate, child->max_linkrate); in sas_ex_get_linkrate() 775 child->pathways = min(child->pathways, parent->pathways); in sas_ex_get_linkrate() 783 struct domain_device *child = NULL; in sas_ex_discover_end_dev() local 790 child = sas_alloc_device(); in sas_ex_discover_end_dev() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/mdio/ |
| H A D | of_mdio.c | 64 struct device_node *child, u32 addr) in of_mdiobus_phy_device_register() argument 68 rc = of_irq_get(child, 0); in of_mdiobus_phy_device_register() 79 if (of_property_read_bool(child, "broken-turn-around")) in of_mdiobus_phy_device_register() 82 of_property_read_u32(child, "reset-assert-us", in of_mdiobus_phy_device_register() 84 of_property_read_u32(child, "reset-deassert-us", in of_mdiobus_phy_device_register() 89 of_node_get(child); in of_mdiobus_phy_device_register() 90 phy->mdio.dev.of_node = child; in of_mdiobus_phy_device_register() 91 phy->mdio.dev.fwnode = of_fwnode_handle(child); in of_mdiobus_phy_device_register() 97 of_node_put(child); in of_mdiobus_phy_device_register() 102 child, addr); in of_mdiobus_phy_device_register() [all …]
|