| /kernel/linux/linux-4.19/tools/testing/selftests/cgroup/ |
| D | test_core.c | 1 /* SPDX-License-Identifier: GPL-2.0 */ 13 * A(0) - B(0) - C(1) 97 * A (domain threaded) - B (threaded) - C (domain) 107 char *grandparent = NULL, *parent = NULL, *child = NULL; in test_cgcore_invalid_domain() local 110 parent = cg_name(root, "cg_test_grandparent/cg_test_parent"); in test_cgcore_invalid_domain() 111 child = cg_name(root, "cg_test_grandparent/cg_test_parent/cg_test_child"); in test_cgcore_invalid_domain() 112 if (!parent || !child || !grandparent) in test_cgcore_invalid_domain() 118 if (cg_create(parent)) in test_cgcore_invalid_domain() 121 if (cg_create(child)) in test_cgcore_invalid_domain() 124 if (cg_write(parent, "cgroup.type", "threaded")) in test_cgcore_invalid_domain() [all …]
|
| /kernel/linux/linux-5.10/drivers/mtd/ |
| D | mtdpart.c | 1 // 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 …]
|
| /kernel/linux/linux-5.10/drivers/pwm/ |
| D | sysfs.c | 1 // 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 …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/cgroup/ |
| D | test_core.c | 1 /* SPDX-License-Identifier: GPL-2.0 */ 25 return -1; in touch_anon() 33 return -1; in touch_anon() 37 size -= ret; in touch_anon() 54 return -1; in alloc_and_touch_anon_noexit() 58 return -1; in alloc_and_touch_anon_noexit() 69 * Create a child process that allocates and touches 100MB, then waits to be 70 * killed. Wait until the child is attached to the cgroup, kill all processes 97 /* wait for the child to enter cgroup */ in test_cgcore_destroy() 128 * A(0) - B(0) - C(1) [all …]
|
| D | test_kmem.c | 1 // 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 …]
|
| /kernel/linux/linux-4.19/drivers/pwm/ |
| D | sysfs.c | 27 struct device child; member 32 static struct pwm_export *child_to_pwm_export(struct device *child) in child_to_pwm_export() argument 34 return container_of(child, struct pwm_export, child); in child_to_pwm_export() 37 static struct pwm_device *child_to_pwm_device(struct device *child) in child_to_pwm_device() argument 39 struct pwm_export *export = child_to_pwm_export(child); in child_to_pwm_device() 41 return export->pwm; in child_to_pwm_device() 44 static ssize_t period_show(struct device *child, in period_show() argument 48 const struct pwm_device *pwm = child_to_pwm_device(child); in period_show() 56 static ssize_t period_store(struct device *child, in period_store() argument 60 struct pwm_export *export = child_to_pwm_export(child); in period_store() [all …]
|
| /kernel/linux/linux-4.19/arch/s390/numa/ |
| D | toptree.c | 1 // SPDX-License-Identifier: GPL-2.0 21 * toptree_alloc - Allocate and initialize a new tree node. 41 INIT_LIST_HEAD(&res->children); in toptree_alloc() 42 INIT_LIST_HEAD(&res->sibling); in toptree_alloc() 43 cpumask_clear(&res->mask); in toptree_alloc() 44 res->level = level; in toptree_alloc() 45 res->id = id; in toptree_alloc() 50 * toptree_remove - Remove a tree node from a tree 53 * The node is detached from its parent node. The parent node's 54 * masks will be updated to reflect the loss of the child. [all …]
|
| /kernel/linux/linux-4.19/drivers/scsi/libsas/ |
| D | sas_expander.c | 21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 42 /* ---------- SMP task management ---------- */ 47 struct sas_task *task = slow->task; in smp_task_timedout() 50 spin_lock_irqsave(&task->task_state_lock, flags); in smp_task_timedout() 51 if (!(task->task_state_flags & SAS_TASK_STATE_DONE)) { in smp_task_timedout() 52 task->task_state_flags |= SAS_TASK_STATE_ABORTED; in smp_task_timedout() 53 complete(&task->slow_task->completion); in smp_task_timedout() 55 spin_unlock_irqrestore(&task->task_state_lock, flags); in smp_task_timedout() 60 del_timer(&task->slow_task->timer); in smp_task_done() 61 complete(&task->slow_task->completion); in smp_task_done() [all …]
|
| /kernel/linux/linux-5.10/drivers/pci/pcie/ |
| D | aspm.c | 1 // 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 …]
|
| /kernel/linux/linux-4.19/fs/ |
| D | pnode.c | 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() 82 master = mnt->mnt_master; in do_make_slave() [all …]
|
| /kernel/linux/linux-5.10/fs/ |
| D | pnode.c | 1 // 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 …]
|
| /kernel/linux/linux-5.10/drivers/scsi/libsas/ |
| D | sas_expander.c | 1 // 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 …]
|
| /kernel/linux/linux-5.10/include/linux/ |
| D | rbtree_augmented.h | 1 /* 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 …]
|
| /kernel/linux/linux-5.10/tools/include/linux/ |
| D | rbtree_augmented.h | 1 /* 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 …]
|
| /kernel/linux/linux-4.19/drivers/iio/multiplexer/ |
| D | iio-mux.c | 34 struct iio_channel *parent; member 38 struct mux_child *child; member 43 struct mux_child *child = &mux->child[idx]; in iio_mux_select() local 44 struct iio_chan_spec const *chan = &mux->chan[idx]; in iio_mux_select() 48 ret = mux_control_select(mux->control, chan->channel); in iio_mux_select() 50 mux->cached_state = -1; in iio_mux_select() 54 if (mux->cached_state == chan->channel) in iio_mux_select() 57 if (chan->ext_info) { in iio_mux_select() 58 for (i = 0; chan->ext_info[i].name; ++i) { in iio_mux_select() 59 const char *attr = chan->ext_info[i].name; in iio_mux_select() [all …]
|
| /kernel/linux/linux-5.10/drivers/firmware/efi/ |
| D | dev-path-parser.c | 1 // 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 …]
|
| /kernel/linux/linux-4.19/drivers/firmware/efi/ |
| D | dev-path-parser.c | 2 * dev-path-parser.c - EFI Device Path parser 35 if (adev->pnp.unique_id) in match_acpi_dev() 36 return !strcmp(adev->pnp.unique_id, hid_uid.uid); in match_acpi_dev() 42 struct device *parent, struct device **child) in parse_acpi_path() argument 47 if (node->length != 12) in parse_acpi_path() 48 return -EINVAL; in parse_acpi_path() 51 'A' + ((node->acpi.hid >> 10) & 0x1f) - 1, in parse_acpi_path() 52 'A' + ((node->acpi.hid >> 5) & 0x1f) - 1, in parse_acpi_path() 53 'A' + ((node->acpi.hid >> 0) & 0x1f) - 1, in parse_acpi_path() 54 node->acpi.hid >> 16); in parse_acpi_path() [all …]
|
| /kernel/linux/linux-5.10/drivers/iio/multiplexer/ |
| D | iio-mux.c | 1 // 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 …]
|
| /kernel/linux/linux-4.19/fs/crypto/ |
| D | policy.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Encryption policy functions for per-file encryption support. 24 return memcmp(ctx->master_key_descriptor, policy->master_key_descriptor, in is_encryption_context_consistent_with_policy() 26 (ctx->flags == policy->flags) && in is_encryption_context_consistent_with_policy() 27 (ctx->contents_encryption_mode == in is_encryption_context_consistent_with_policy() 28 policy->contents_encryption_mode) && in is_encryption_context_consistent_with_policy() 29 (ctx->filenames_encryption_mode == in is_encryption_context_consistent_with_policy() 30 policy->filenames_encryption_mode); in is_encryption_context_consistent_with_policy() 39 memcpy(ctx.master_key_descriptor, policy->master_key_descriptor, in create_encryption_context_from_policy() 42 if (!fscrypt_valid_enc_modes(policy->contents_encryption_mode, in create_encryption_context_from_policy() [all …]
|
| /kernel/linux/linux-4.19/tools/include/linux/ |
| D | rbtree_augmented.h | 19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 34 * Please note - only struct rb_augment_callbacks and the prototypes for 63 __rb_insert_augmented(node, root, augment->rotate); in rb_insert_augmented() 74 if (node->rbaugmented == augmented) \ 76 node->rbaugmented = augmented; \ 77 rb = rb_parent(&node->rbfield); \ 85 new->rbaugmented = old->rbaugmented; \ 92 new->rbaugmented = old->rbaugmented; \ 93 old->rbaugmented = rbcompute(old); \ 108 #define rb_color(rb) __rb_color((rb)->__rb_parent_color) [all …]
|
| /kernel/linux/linux-4.19/drivers/pci/pcie/ |
| D | aspm.c | 1 // SPDX-License-Identifier: GPL-2.0 21 #include <linux/pci-aspm.h> 54 struct pcie_link_state *parent; /* pointer to the parent Link state */ member 56 struct list_head children; /* list of child link states */ 57 struct list_head link; /* node in parent's children list */ 132 return link->aspm_default; in policy_to_aspm_state() 148 return link->clkpm_default; in policy_to_clkpm_state() 155 struct pci_dev *child; in pcie_set_clkpm_nocheck() local 156 struct pci_bus *linkbus = link->pdev->subordinate; in pcie_set_clkpm_nocheck() 159 list_for_each_entry(child, &linkbus->devices, bus_list) in pcie_set_clkpm_nocheck() [all …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
| D | cg_storage_multi.c | 1 // 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 …]
|
| /kernel/linux/linux-4.19/include/linux/ |
| D | rbtree_augmented.h | 19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 32 * Please note - only struct rb_augment_callbacks and the prototypes for 63 __rb_insert_augmented(node, root, false, NULL, augment->rotate); in rb_insert_augmented() 71 __rb_insert_augmented(node, &root->rb_root, in rb_insert_augmented_cached() 72 newleft, &root->rb_leftmost, augment->rotate); in rb_insert_augmented_cached() 83 if (node->rbaugmented == augmented) \ 85 node->rbaugmented = augmented; \ 86 rb = rb_parent(&node->rbfield); \ 94 new->rbaugmented = old->rbaugmented; \ 101 new->rbaugmented = old->rbaugmented; \ [all …]
|
| /kernel/linux/linux-5.10/fs/notify/ |
| D | fsnotify.c | 1 // 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 …]
|
| /kernel/linux/linux-5.10/drivers/mfd/ |
| D | mfd-core.c | 1 // 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 …]
|