Home
last modified time | relevance | path

Searched +full:parent +full:- +full:child (Results 1 – 25 of 1024) sorted by relevance

12345678910>>...41

/OK3568_Linux_fs/external/xserver/test/
H A Dlist.c25 #include <dix-config.h>
34 #include "tests-common.h"
36 struct parent { struct
42 struct child { struct
51 struct parent parent, tmp; in test_xorg_list_init() argument
53 memset(&parent, 0, sizeof(parent)); in test_xorg_list_init()
54 parent.a = 0xa5a5a5; in test_xorg_list_init()
55 parent.b = ~0xa5a5a5; in test_xorg_list_init()
57 tmp = parent; in test_xorg_list_init()
59 xorg_list_init(&parent.children); in test_xorg_list_init()
[all …]
/OK3568_Linux_fs/kernel/drivers/mtd/
H A Dmtdpart.c1 // SPDX-License-Identifier: GPL-2.0-or-later
7 * Copyright © 2000-2010 David Woodhouse <dwmw2@infradead.org>
30 kfree(mtd->name); in free_partition()
34 static struct mtd_info *allocate_partition(struct mtd_info *parent, in allocate_partition() argument
38 struct mtd_info *master = mtd_get_master(parent); in allocate_partition()
39 int wr_alignment = (parent->flags & MTD_NO_ERASE) ? in allocate_partition()
40 master->writesize : master->erasesize; in allocate_partition()
41 u64 parent_size = mtd_is_partition(parent) ? in allocate_partition()
42 parent->part.size : parent->size; in allocate_partition()
43 struct mtd_info *child; in allocate_partition() local
[all …]
/OK3568_Linux_fs/kernel/drivers/pwm/
H A Dsysfs.c1 // SPDX-License-Identifier: GPL-2.0-or-later
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()
33 return export->pwm; 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
[all …]
/OK3568_Linux_fs/kernel/tools/testing/selftests/cgroup/
H A Dtest_core.c1 /* SPDX-License-Identifier: GPL-2.0 */
28 return -1; in touch_anon()
36 return -1; in touch_anon()
40 size -= ret; in touch_anon()
57 return -1; in alloc_and_touch_anon_noexit()
61 return -1; in alloc_and_touch_anon_noexit()
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()
131 * A(0) - B(0) - C(1)
[all …]
H A Dtest_kmem.c1 // SPDX-License-Identifier: GPL-2.0
38 "/something-non-existent-with-a-long-name-%64lu-%d", in alloc_dcache()
101 int ret = -1; in alloc_kmem_smp()
105 return -1; in alloc_kmem_smp()
111 return -1; in alloc_kmem_smp()
125 static int cg_run_in_subcgroups(const char *parent, in cg_run_in_subcgroups() argument
129 char *child; in cg_run_in_subcgroups() local
133 child = cg_name_indexed(parent, "child", i); in cg_run_in_subcgroups()
134 if (!child) in cg_run_in_subcgroups()
135 return -1; in cg_run_in_subcgroups()
[all …]
H A Dtest_memcontrol.c1 /* SPDX-License-Identifier: GPL-2.0 */
29 char *parent, *child, *parent2 = NULL, *child2 = NULL; in test_memcg_subtree_control() local
34 parent = cg_name(root, "memcg_test_0"); in test_memcg_subtree_control()
35 child = cg_name(root, "memcg_test_0/memcg_test_1"); in test_memcg_subtree_control()
36 if (!parent || !child) in test_memcg_subtree_control()
39 if (cg_create(parent)) in test_memcg_subtree_control()
42 if (cg_write(parent, "cgroup.subtree_control", "+memory")) in test_memcg_subtree_control()
45 if (cg_create(child)) in test_memcg_subtree_control()
48 if (cg_read_strstr(child, "cgroup.controllers", "memory")) in test_memcg_subtree_control()
79 cg_destroy(child); in test_memcg_subtree_control()
[all …]
/OK3568_Linux_fs/kernel/drivers/pci/pcie/
H A Daspm_ext.c1 // SPDX-License-Identifier: GPL-2.0-only
19 u32 ret = -1; in rockchip_pcie_pcie_access_cap()
45 return -EINVAL; in rockchip_pcie_pcie_access_cap()
99 static bool rockchip_pcie_bus_aspm_enable_rc_ep(struct pci_dev *child, struct pci_dev *parent, bool… in rockchip_pcie_bus_aspm_enable_rc_ep() argument
105 ret = rockchip_pcie_bus_aspm_enable_dev("RC", parent, enable); in rockchip_pcie_bus_aspm_enable_rc_ep()
106 ret = rockchip_pcie_bus_aspm_enable_dev("EP", child, enable); in rockchip_pcie_bus_aspm_enable_rc_ep()
109 ret = rockchip_pcie_bus_aspm_enable_dev("EP", child, enable); in rockchip_pcie_bus_aspm_enable_rc_ep()
110 ret = rockchip_pcie_bus_aspm_enable_dev("RC", parent, enable); in rockchip_pcie_bus_aspm_enable_rc_ep()
169 static void aspm_calc_l1ss_info(struct pci_dev *child, struct pci_dev *parent) in aspm_calc_l1ss_info() argument
179 pci_read_config_dword(parent, parent->l1ss + PCI_L1SS_CAP, in aspm_calc_l1ss_info()
[all …]
H A Daspm.c1 // SPDX-License-Identifier: GPL-2.0
53 struct pcie_link_state *parent; /* pointer to the parent Link state */ member
121 return link->aspm_default; in policy_to_aspm_state()
137 return link->clkpm_default; in policy_to_clkpm_state()
144 struct pci_dev *child; in pcie_set_clkpm_nocheck() local
145 struct pci_bus *linkbus = link->pdev->subordinate; in pcie_set_clkpm_nocheck()
148 list_for_each_entry(child, &linkbus->devices, bus_list) in pcie_set_clkpm_nocheck()
149 pcie_capability_clear_and_set_word(child, PCI_EXP_LNKCTL, in pcie_set_clkpm_nocheck()
152 link->clkpm_enabled = !!enable; in pcie_set_clkpm_nocheck()
161 if (!link->clkpm_capable || link->clkpm_disable) in pcie_set_clkpm()
[all …]
/OK3568_Linux_fs/kernel/drivers/scsi/libsas/
H A Dsas_expander.c1 // SPDX-License-Identifier: GPL-2.0
29 /* ---------- SMP task management ---------- */
34 struct sas_task *task = slow->task; in smp_task_timedout()
37 spin_lock_irqsave(&task->task_state_lock, flags); in smp_task_timedout()
38 if (!(task->task_state_flags & SAS_TASK_STATE_DONE)) { in smp_task_timedout()
39 task->task_state_flags |= SAS_TASK_STATE_ABORTED; in smp_task_timedout()
40 complete(&task->slow_task->completion); in smp_task_timedout()
42 spin_unlock_irqrestore(&task->task_state_lock, flags); in smp_task_timedout()
47 del_timer(&task->slow_task->timer); in smp_task_done()
48 complete(&task->slow_task->completion); in smp_task_done()
[all …]
/OK3568_Linux_fs/kernel/fs/
H A Dpnode.c1 // SPDX-License-Identifier: GPL-2.0-only
19 return list_entry(p->mnt_share.next, struct mount, mnt_share); in next_peer()
24 return list_entry(p->mnt_slave_list.next, struct mount, mnt_slave); in first_slave()
29 return list_entry(p->mnt_slave_list.prev, struct mount, mnt_slave); in last_slave()
34 return list_entry(p->mnt_slave.next, struct mount, mnt_slave); in next_slave()
45 if (m->mnt_ns == ns && is_path_reachable(m, m->mnt.mnt_root, root)) in get_peer_under_root()
64 for (m = mnt->mnt_master; m != NULL; m = m->mnt_master) { in get_dominating_id()
65 struct mount *d = get_peer_under_root(m, mnt->mnt_ns, root); in get_dominating_id()
67 return d->mnt_group_id; in get_dominating_id()
77 if (list_empty(&mnt->mnt_share)) { in do_make_slave()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/arm/mali400/mali/common/
H A Dmali_group.c2 * Copyright (C) 2011-2017 ARM Limited. All rights reserved.
8 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
68 group->timeout_timer = _mali_osk_timer_init(mali_group_timeout); in mali_group_create()
69 if (NULL != group->timeout_timer) { in mali_group_create()
70 _mali_osk_timer_setcallback(group->timeout_timer, mali_group_timeout, (void *)group); in mali_group_create()
72 group->l2_cache_core[0] = core; in mali_group_create()
73 _mali_osk_list_init(&group->group_list); in mali_group_create()
74 _mali_osk_list_init(&group->executor_list); in mali_group_create()
75 _mali_osk_list_init(&group->pm_domain_list); in mali_group_create()
76 group->bcast_core = bcast; in mali_group_create()
[all …]
/OK3568_Linux_fs/kernel/include/linux/
H A Drbtree_augmented.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
20 * Please note - only struct rb_augment_callbacks and the prototypes for
24 * See Documentation/core-api/rbtree.rst for documentation and samples.
50 __rb_insert_augmented(node, root, augment->rotate); in rb_insert_augmented()
59 root->rb_leftmost = node; in rb_insert_augmented_cached()
60 rb_insert_augmented(node, &root->rb_root, augment); in rb_insert_augmented_cached()
83 rb = rb_parent(&node->RBFIELD); \
91 new->RBAUGMENTED = old->RBAUGMENTED; \
98 new->RBAUGMENTED = old->RBAUGMENTED; \
117 * RBCOMPUTE: name of function that returns the per-node RBTYPE scalar
[all …]
H A Dbootconfig.h1 /* SPDX-License-Identifier: GPL-2.0 */
17 #define BOOTCONFIG_ALIGN_MASK (BOOTCONFIG_ALIGN - 1)
20 * xbc_calc_checksum() - Calculate checksum of bootconfig
33 while (size--) in xbc_calc_checksum()
42 u16 child; member
43 u16 parent; member
49 /* Maximum size of boot config is 32KB - 1 */
50 #define XBC_DATA_MAX (XBC_VALUE - 1)
65 * xbc_node_is_value() - Test the node is a value node
72 return node->data & XBC_VALUE; in xbc_node_is_value()
[all …]
/OK3568_Linux_fs/kernel/tools/include/linux/
H A Drbtree_augmented.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
22 * Please note - only struct rb_augment_callbacks and the prototypes for
26 * See Documentation/core-api/rbtree.rst for documentation and samples.
52 __rb_insert_augmented(node, root, augment->rotate); in rb_insert_augmented()
61 root->rb_leftmost = node; in rb_insert_augmented_cached()
62 rb_insert_augmented(node, &root->rb_root, augment); in rb_insert_augmented_cached()
85 rb = rb_parent(&node->RBFIELD); \
93 new->RBAUGMENTED = old->RBAUGMENTED; \
100 new->RBAUGMENTED = old->RBAUGMENTED; \
119 * RBCOMPUTE: name of function that returns the per-node RBTYPE scalar
[all …]
/OK3568_Linux_fs/kernel/drivers/iio/multiplexer/
H A Diio-mux.c1 // SPDX-License-Identifier: GPL-2.0
31 struct iio_channel *parent; member
35 struct mux_child *child; member
40 struct mux_child *child = &mux->child[idx]; in iio_mux_select() local
41 struct iio_chan_spec const *chan = &mux->chan[idx]; in iio_mux_select()
45 ret = mux_control_select(mux->control, chan->channel); in iio_mux_select()
47 mux->cached_state = -1; in iio_mux_select()
51 if (mux->cached_state == chan->channel) in iio_mux_select()
54 if (chan->ext_info) { in iio_mux_select()
55 for (i = 0; chan->ext_info[i].name; ++i) { in iio_mux_select()
[all …]
/OK3568_Linux_fs/kernel/drivers/powercap/
H A Ddtpm.c1 // SPDX-License-Identifier: GPL-2.0-only
12 * parent node is a virtual description of the aggregation of the
39 return -ENOSYS; in get_time_window_us()
44 return -ENOSYS; in set_time_window_us()
52 *max_power_uw = dtpm->power_max - dtpm->power_min; in get_max_power_range_uw()
60 struct dtpm *child; in __get_power_uw() local
64 if (dtpm->ops) { in __get_power_uw()
65 *power_uw = dtpm->ops->get_power_uw(dtpm); in __get_power_uw()
71 list_for_each_entry(child, &dtpm->children, sibling) { in __get_power_uw()
72 ret = __get_power_uw(child, &power); in __get_power_uw()
[all …]
/OK3568_Linux_fs/kernel/drivers/firmware/efi/
H A Ddev-path-parser.c1 // SPDX-License-Identifier: GPL-2.0
3 * dev-path-parser.c - EFI Device Path parser
28 if (adev->pnp.unique_id) in match_acpi_dev()
29 return !strcmp(adev->pnp.unique_id, hid_uid.uid); in match_acpi_dev()
35 struct device *parent, struct device **child) in parse_acpi_path() argument
40 if (node->header.length != 12) in parse_acpi_path()
41 return -EINVAL; in parse_acpi_path()
44 'A' + ((node->acpi.hid >> 10) & 0x1f) - 1, in parse_acpi_path()
45 'A' + ((node->acpi.hid >> 5) & 0x1f) - 1, in parse_acpi_path()
46 'A' + ((node->acpi.hid >> 0) & 0x1f) - 1, in parse_acpi_path()
[all …]
/OK3568_Linux_fs/u-boot/include/linux/
H A Drbtree_augmented.h7 * SPDX-License-Identifier: GPL-2.0+
19 * Please note - only struct rb_augment_callbacks and the prototypes for
38 __rb_insert_augmented(node, root, augment->rotate); in rb_insert_augmented()
49 if (node->rbaugmented == augmented) \
51 node->rbaugmented = augmented; \
52 rb = rb_parent(&node->rbfield); \
60 new->rbaugmented = old->rbaugmented; \
67 new->rbaugmented = old->rbaugmented; \
68 old->rbaugmented = rbcompute(old); \
83 #define rb_color(rb) __rb_color((rb)->__rb_parent_color)
[all …]
/OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/prog_tests/
H A Dcg_storage_multi.c1 // SPDX-License-Identifier: GPL-2.0-only
18 #define CHILD_CGROUP "/cgroup_storage/child"
31 "map-lookup", "errno %d", errno)) in assert_storage()
34 "assert-storage", "storages differ")) in assert_storage()
48 "map-lookup", "succeeded, expected ENOENT")) in assert_storage_noexist()
51 "map-lookup", "errno %d, expected ENOENT", errno)) in assert_storage_noexist()
60 int server_fd = -1, client_fd = -1; in connect_send()
95 if (CHECK(!obj, "skel-load", "errno %d", errno)) in test_egress_only()
98 /* Attach to parent cgroup, trigger packet from child. in test_egress_only()
100 * parent cgroup's storage. in test_egress_only()
[all …]
/OK3568_Linux_fs/kernel/fs/notify/
H A Dfsnotify.c1 // SPDX-License-Identifier: GPL-2.0-or-later
32 * fsnotify_unmount_inodes - an sb is unmounting. handle any watched inodes.
36 * concurrent modifiers. We temporarily drop sb->s_inode_list_lock and CAN block.
42 spin_lock(&sb->s_inode_list_lock); in fsnotify_unmount_inodes()
43 list_for_each_entry(inode, &sb->s_inodes, i_sb_list) { in fsnotify_unmount_inodes()
49 spin_lock(&inode->i_lock); in fsnotify_unmount_inodes()
50 if (inode->i_state & (I_FREEING|I_WILL_FREE|I_NEW)) { in fsnotify_unmount_inodes()
51 spin_unlock(&inode->i_lock); in fsnotify_unmount_inodes()
64 if (!atomic_read(&inode->i_count)) { in fsnotify_unmount_inodes()
65 spin_unlock(&inode->i_lock); in fsnotify_unmount_inodes()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/ssv6xxx/hwif/sdio/
H A Dsdio.c55 static void ssv6xxx_sdio_reset(struct device *child);
57 static void ssv6xxx_sdio_reset(struct device *child) { ; } in ssv6xxx_sdio_reset() argument
97 static bool ssv6xxx_is_ready (struct device *child) in ssv6xxx_is_ready() argument
99 struct ssv6xxx_sdio_glue *glue = dev_get_drvdata(child->parent); in ssv6xxx_is_ready()
102 || (glue->dev_ready == false)) in ssv6xxx_is_ready()
104 return glue->dev_ready; in ssv6xxx_is_ready()
106 static int ssv6xxx_sdio_cmd52_read(struct device *child, u32 addr, in ssv6xxx_sdio_cmd52_read() argument
109 int ret = -1; in ssv6xxx_sdio_cmd52_read()
110 struct ssv6xxx_sdio_glue *glue = dev_get_drvdata(child->parent); in ssv6xxx_sdio_cmd52_read()
114 || (glue->dev_ready == false)) in ssv6xxx_sdio_cmd52_read()
[all …]
/OK3568_Linux_fs/kernel/drivers/mfd/
H A Dmfd-core.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * drivers/mfd/mfd-core.c
40 if (!cell->enable) { in mfd_cell_enable()
41 dev_dbg(&pdev->dev, "No .enable() call-back registered\n"); in mfd_cell_enable()
45 return cell->enable(pdev); in mfd_cell_enable()
53 if (!cell->disable) { in mfd_cell_disable()
54 dev_dbg(&pdev->dev, "No .disable() call-back registered\n"); in mfd_cell_disable()
58 return cell->disable(pdev); in mfd_cell_disable()
66 const struct mfd_cell_acpi_match *match = cell->acpi_match; in mfd_acpi_add_device()
67 struct acpi_device *parent, *child; in mfd_acpi_add_device() local
[all …]
/OK3568_Linux_fs/external/xserver/dix/
H A Denterleave.c28 #include <dix-config.h>
55 * http://lists.freedesktop.org/archives/xorg/2008-August/037606.html
59 * http://lists.freedesktop.org/archives/xorg/2008-December/041740.html
62 * - The core protocol spec says that "In a LeaveNotify event, if a child of the
63 * event window contains the initial position of the pointer, then the child
64 * component is set to that child. Otherwise, it is None. For an EnterNotify
65 * event, if a child of the event window contains the final pointer position,
66 * then the child component is set to that child. Otherwise, it is None."
71 * - NotifyPointer events may be sent if the focus changes from window A to
82 * Return TRUE if 'win' has a pointer within its boundaries, excluding child
[all …]
/OK3568_Linux_fs/kernel/drivers/pci/hotplug/
H A Dpnv_php.c1 // SPDX-License-Identifier: GPL-2.0+
14 #include <asm/pnv-pci.h>
15 #include <asm/ppc-pci.h>
22 ((sl)->pdev ? pci_warn((sl)->pdev, x) : dev_warn(&(sl)->bus->dev, x))
40 struct pci_dev *pdev = php_slot->pdev; in pnv_php_disable_irq()
41 int irq = php_slot->irq; in pnv_php_disable_irq()
44 if (php_slot->irq > 0) { in pnv_php_disable_irq()
51 free_irq(php_slot->irq, php_slot); in pnv_php_disable_irq()
52 php_slot->irq = 0; in pnv_php_disable_irq()
55 if (php_slot->wq) { in pnv_php_disable_irq()
[all …]
/OK3568_Linux_fs/kernel/kernel/bpf/
H A Dlpm_trie.c1 // SPDX-License-Identifier: GPL-2.0-only
25 struct lpm_trie_node __rcu *child[2]; member
55 * [0xc0, 0xa8, 0x00, 0x00] in big-endian notation. This documentation will
56 * stick to IP-address notation for readability though.
60 * child pointers are %NULL.
62 * +----------------+
67 * +----------------+
71 * node (2) will become a child of (1). In child index depends on the next bit
73 * child[0] of (1):
75 * +----------------+
[all …]

12345678910>>...41