Home
last modified time | relevance | path

Searched refs:root (Results 1 – 25 of 1858) sorted by relevance

12345678910>>...75

/linux-6.6.21/drivers/acpi/
Dpci_root.c154 static void decode_osc_bits(struct acpi_pci_root *root, char *msg, u32 word, in decode_osc_bits() argument
167 dev_info(&root->device->dev, "_OSC: %s [%s]\n", msg, buf); in decode_osc_bits()
170 static void decode_osc_support(struct acpi_pci_root *root, char *msg, u32 word) in decode_osc_support() argument
172 decode_osc_bits(root, msg, word, pci_osc_support_bit, in decode_osc_support()
176 static void decode_osc_control(struct acpi_pci_root *root, char *msg, u32 word) in decode_osc_control() argument
178 decode_osc_bits(root, msg, word, pci_osc_control_bit, in decode_osc_control()
182 static void decode_cxl_osc_support(struct acpi_pci_root *root, char *msg, u32 word) in decode_cxl_osc_support() argument
184 decode_osc_bits(root, msg, word, cxl_osc_support_bit, in decode_cxl_osc_support()
188 static void decode_cxl_osc_control(struct acpi_pci_root *root, char *msg, u32 word) in decode_cxl_osc_control() argument
190 decode_osc_bits(root, msg, word, cxl_osc_control_bit, in decode_cxl_osc_control()
[all …]
/linux-6.6.21/lib/
Dradix-tree.c95 static inline gfp_t root_gfp_mask(const struct radix_tree_root *root) in root_gfp_mask() argument
97 return root->xa_flags & (__GFP_BITS_MASK & ~GFP_ZONEMASK); in root_gfp_mask()
118 static inline void root_tag_set(struct radix_tree_root *root, unsigned tag) in root_tag_set() argument
120 root->xa_flags |= (__force gfp_t)(1 << (tag + ROOT_TAG_SHIFT)); in root_tag_set()
123 static inline void root_tag_clear(struct radix_tree_root *root, unsigned tag) in root_tag_clear() argument
125 root->xa_flags &= (__force gfp_t)~(1 << (tag + ROOT_TAG_SHIFT)); in root_tag_clear()
128 static inline void root_tag_clear_all(struct radix_tree_root *root) in root_tag_clear_all() argument
130 root->xa_flags &= (__force gfp_t)((1 << ROOT_TAG_SHIFT) - 1); in root_tag_clear_all()
133 static inline int root_tag_get(const struct radix_tree_root *root, unsigned tag) in root_tag_get() argument
135 return (__force int)root->xa_flags & (1 << (tag + ROOT_TAG_SHIFT)); in root_tag_get()
[all …]
Drbtree_test.c27 static struct rb_root_cached root = RB_ROOT_CACHED; variable
32 static void insert(struct test_node *node, struct rb_root_cached *root) in insert() argument
34 struct rb_node **new = &root->rb_root.rb_node, *parent = NULL; in insert()
46 rb_insert_color(&node->rb, &root->rb_root); in insert()
49 static void insert_cached(struct test_node *node, struct rb_root_cached *root) in insert_cached() argument
51 struct rb_node **new = &root->rb_root.rb_node, *parent = NULL; in insert_cached()
66 rb_insert_color_cached(&node->rb, root, leftmost); in insert_cached()
69 static inline void erase(struct test_node *node, struct rb_root_cached *root) in erase() argument
71 rb_erase(&node->rb, &root->rb_root); in erase()
74 static inline void erase_cached(struct test_node *node, struct rb_root_cached *root) in erase_cached() argument
[all …]
/linux-6.6.21/fs/kernfs/
Ddir.c482 struct kernfs_root *root = kernfs_root(kn); in kernfs_drain() local
484 lockdep_assert_held_write(&root->kernfs_rwsem); in kernfs_drain()
497 up_write(&root->kernfs_rwsem); in kernfs_drain()
505 wait_event(root->deactivate_waitq, in kernfs_drain()
516 down_write(&root->kernfs_rwsem); in kernfs_drain()
541 struct kernfs_root *root; in kernfs_put() local
545 root = kernfs_root(kn); in kernfs_put()
567 idr_remove(&root->ino_idr, (u32)kernfs_ino(kn)); in kernfs_put()
577 idr_destroy(&root->ino_idr); in kernfs_put()
578 kfree(root); in kernfs_put()
[all …]
Dmount.c29 struct kernfs_root *root = kernfs_root(kernfs_dentry_node(dentry)); in kernfs_sop_show_options() local
30 struct kernfs_syscall_ops *scops = root->syscall_ops; in kernfs_sop_show_options()
33 return scops->show_options(sf, root); in kernfs_sop_show_options()
40 struct kernfs_root *root = kernfs_root(node); in kernfs_sop_show_path() local
41 struct kernfs_syscall_ops *scops = root->syscall_ops; in kernfs_sop_show_path()
44 return scops->show_path(sf, node, root); in kernfs_sop_show_path()
111 kn = kernfs_find_and_get_node_by_id(info->root, id); in __kernfs_fh_to_dentry()
171 return kernfs_info(sb)->root; in kernfs_root_from_sb()
251 struct kernfs_root *kf_root = kfc->root; in kernfs_fill_super()
253 struct dentry *root; in kernfs_fill_super() local
[all …]
/linux-6.6.21/fs/btrfs/
Ddisk-io.c484 fs_info = BTRFS_I(mapping->host)->root->fs_info; in btree_writepages()
511 btrfs_warn(BTRFS_I(folio->mapping->host)->root->fs_info, in btree_invalidate_folio()
621 static void __setup_root(struct btrfs_root *root, struct btrfs_fs_info *fs_info, in __setup_root() argument
626 memset(&root->root_key, 0, sizeof(root->root_key)); in __setup_root()
627 memset(&root->root_item, 0, sizeof(root->root_item)); in __setup_root()
628 memset(&root->defrag_progress, 0, sizeof(root->defrag_progress)); in __setup_root()
629 root->fs_info = fs_info; in __setup_root()
630 root->root_key.objectid = objectid; in __setup_root()
631 root->node = NULL; in __setup_root()
632 root->commit_root = NULL; in __setup_root()
[all …]
Dctree.h338 static inline bool btrfs_root_readonly(const struct btrfs_root *root) in btrfs_root_readonly() argument
341 return (root->root_item.flags & cpu_to_le64(BTRFS_ROOT_SUBVOL_RDONLY)) != 0; in btrfs_root_readonly()
344 static inline bool btrfs_root_dead(const struct btrfs_root *root) in btrfs_root_dead() argument
347 return (root->root_item.flags & cpu_to_le64(BTRFS_ROOT_SUBVOL_DEAD)) != 0; in btrfs_root_dead()
350 static inline u64 btrfs_root_id(const struct btrfs_root *root) in btrfs_root_id() argument
352 return root->root_key.objectid; in btrfs_root_id()
516 int btrfs_previous_item(struct btrfs_root *root,
519 int btrfs_previous_extent_item(struct btrfs_root *root,
524 struct extent_buffer *btrfs_root_node(struct btrfs_root *root);
525 int btrfs_find_next_key(struct btrfs_root *root, struct btrfs_path *path,
[all …]
Drelocation.c302 static bool reloc_root_is_dead(struct btrfs_root *root) in reloc_root_is_dead() argument
310 if (test_bit(BTRFS_ROOT_DEAD_RELOC_TREE, &root->state)) in reloc_root_is_dead()
323 static bool have_reloc_root(struct btrfs_root *root) in have_reloc_root() argument
325 if (reloc_root_is_dead(root)) in have_reloc_root()
327 if (!root->reloc_root) in have_reloc_root()
332 int btrfs_should_ignore_reloc_root(struct btrfs_root *root) in btrfs_should_ignore_reloc_root() argument
336 if (!test_bit(BTRFS_ROOT_SHAREABLE, &root->state)) in btrfs_should_ignore_reloc_root()
340 if (reloc_root_is_dead(root)) in btrfs_should_ignore_reloc_root()
343 reloc_root = root->reloc_root; in btrfs_should_ignore_reloc_root()
348 root->fs_info->running_transaction->transid) in btrfs_should_ignore_reloc_root()
[all …]
Dtransaction.c180 struct btrfs_root *root, *tmp; in switch_commit_roots() local
193 list_for_each_entry_safe(root, tmp, &cur_trans->switch_commits, in switch_commit_roots()
195 list_del_init(&root->dirty_list); in switch_commit_roots()
196 free_extent_buffer(root->commit_root); in switch_commit_roots()
197 root->commit_root = btrfs_root_node(root); in switch_commit_roots()
198 extent_io_tree_release(&root->dirty_log_pages); in switch_commit_roots()
199 btrfs_qgroup_clean_swapped_blocks(root); in switch_commit_roots()
205 root = list_first_entry(&cur_trans->dropped_roots, in switch_commit_roots()
207 list_del_init(&root->root_list); in switch_commit_roots()
209 btrfs_free_log(trans, root); in switch_commit_roots()
[all …]
Droot-tree.c67 int btrfs_find_root(struct btrfs_root *root, const struct btrfs_key *search_key, in btrfs_find_root() argument
76 ret = btrfs_search_slot(NULL, root, search_key, path, 0, 0); in btrfs_find_root()
122 *root, struct btrfs_key *key, struct btrfs_root_item in btrfs_update_root()
125 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_update_root()
137 ret = btrfs_search_slot(trans, root, key, path, 0, 1); in btrfs_update_root()
145 root->root_key.objectid); in btrfs_update_root()
163 ret = btrfs_search_slot(trans, root, key, path, in btrfs_update_root()
170 ret = btrfs_del_item(trans, root, path); in btrfs_update_root()
176 ret = btrfs_insert_empty_item(trans, root, path, in btrfs_update_root()
200 int btrfs_insert_root(struct btrfs_trans_handle *trans, struct btrfs_root *root, in btrfs_insert_root() argument
[all …]
/linux-6.6.21/tools/testing/radix-tree/
Dregression3.c31 RADIX_TREE(root, GFP_KERNEL); in regression3_test()
40 radix_tree_insert(&root, 0, ptr0); in regression3_test()
41 radix_tree_tag_set(&root, 0, 0); in regression3_test()
44 radix_tree_for_each_tagged(slot, &root, &iter, 0, 0) { in regression3_test()
47 radix_tree_insert(&root, 1, ptr); in regression3_test()
48 radix_tree_tag_set(&root, 1, 0); in regression3_test()
57 radix_tree_delete(&root, 1); in regression3_test()
60 radix_tree_for_each_slot(slot, &root, &iter, 0) { in regression3_test()
63 radix_tree_insert(&root, 1, ptr); in regression3_test()
73 radix_tree_for_each_slot(slot, &root, &iter, 0) { in regression3_test()
[all …]
Dtest.h14 int item_insert(struct radix_tree_root *root, unsigned long index);
17 int item_delete(struct radix_tree_root *root, unsigned long index);
19 struct item *item_lookup(struct radix_tree_root *root, unsigned long index);
21 void item_check_present(struct radix_tree_root *root, unsigned long index);
22 void item_check_absent(struct radix_tree_root *root, unsigned long index);
23 void item_gang_check_present(struct radix_tree_root *root,
26 void item_full_scan(struct radix_tree_root *root, unsigned long start,
28 void item_kill_tree(struct radix_tree_root *root);
43 item_tag_set(struct radix_tree_root *root, unsigned long index, int tag);
45 item_tag_clear(struct radix_tree_root *root, unsigned long index, int tag);
[all …]
Dtest.c12 item_tag_set(struct radix_tree_root *root, unsigned long index, int tag) in item_tag_set() argument
14 return radix_tree_tag_set(root, index, tag); in item_tag_set()
18 item_tag_clear(struct radix_tree_root *root, unsigned long index, int tag) in item_tag_clear() argument
20 return radix_tree_tag_clear(root, index, tag); in item_tag_clear()
23 int item_tag_get(struct radix_tree_root *root, unsigned long index, int tag) in item_tag_get() argument
25 return radix_tree_tag_get(root, index, tag); in item_tag_get()
37 int item_insert(struct radix_tree_root *root, unsigned long index) in item_insert() argument
40 int err = radix_tree_insert(root, item->index, item); in item_insert()
61 int item_delete(struct radix_tree_root *root, unsigned long index) in item_delete() argument
63 struct item *item = radix_tree_delete(root, index); in item_delete()
[all …]
/linux-6.6.21/tools/testing/selftests/cgroup/
Dtest_core.c78 static int test_cgcore_destroy(const char *root) in test_cgcore_destroy() argument
85 cg_test = cg_name(root, "cg_test"); in test_cgcore_destroy()
140 static int test_cgcore_populated(const char *root) in test_cgcore_populated() argument
149 cg_test_a = cg_name(root, "cg_test_a"); in test_cgcore_populated()
150 cg_test_b = cg_name(root, "cg_test_a/cg_test_b"); in test_cgcore_populated()
151 cg_test_c = cg_name(root, "cg_test_a/cg_test_b/cg_test_c"); in test_cgcore_populated()
152 cg_test_d = cg_name(root, "cg_test_a/cg_test_b/cg_test_d"); in test_cgcore_populated()
184 if (cg_enter_current(root)) in test_cgcore_populated()
273 static int test_cgcore_invalid_domain(const char *root) in test_cgcore_invalid_domain() argument
278 grandparent = cg_name(root, "cg_test_grandparent"); in test_cgcore_invalid_domain()
[all …]
/linux-6.6.21/Documentation/ABI/testing/
Dsysfs-class-rapidio48 drwxr-xr-x 3 root root 0 Feb 11 15:10 00:e:0001
49 drwxr-xr-x 3 root root 0 Feb 11 15:10 00:e:0004
50 drwxr-xr-x 3 root root 0 Feb 11 15:10 00:e:0007
51 drwxr-xr-x 3 root root 0 Feb 11 15:10 00:s:0002
52 drwxr-xr-x 3 root root 0 Feb 11 15:10 00:s:0003
53 drwxr-xr-x 3 root root 0 Feb 11 15:10 00:s:0005
54 lrwxrwxrwx 1 root root 0 Feb 11 15:11 device -> ../../../0000:01:00.0
55 -r--r--r-- 1 root root 4096 Feb 11 15:11 port_destid
56 drwxr-xr-x 2 root root 0 Feb 11 15:11 power
57 lrwxrwxrwx 1 root root 0 Feb 11 15:04 subsystem -> ../../../../../../class/rapidio_port
[all …]
/linux-6.6.21/fs/vboxsf/
Dvboxsf_wrappers.c75 int vboxsf_map_folder(struct shfl_string *folder_name, u32 *root) in vboxsf_map_folder() argument
84 parms.root.type = VMMDEV_HGCM_PARM_TYPE_32BIT; in vboxsf_map_folder()
85 parms.root.u.value32 = 0; in vboxsf_map_folder()
98 *root = parms.root.u.value32; in vboxsf_map_folder()
102 int vboxsf_unmap_folder(u32 root) in vboxsf_unmap_folder() argument
106 parms.root.type = VMMDEV_HGCM_PARM_TYPE_32BIT; in vboxsf_unmap_folder()
107 parms.root.u.value32 = root; in vboxsf_unmap_folder()
130 int vboxsf_create(u32 root, struct shfl_string *parsed_path, in vboxsf_create() argument
135 parms.root.type = VMMDEV_HGCM_PARM_TYPE_32BIT; in vboxsf_create()
136 parms.root.u.value32 = root; in vboxsf_create()
[all …]
/linux-6.6.21/fs/btrfs/tests/
Dqgroup-tests.c16 static int insert_normal_tree_ref(struct btrfs_root *root, u64 bytenr, in insert_normal_tree_ref() argument
41 ret = btrfs_insert_empty_item(&trans, root, path, &ins, size); in insert_normal_tree_ref()
68 static int add_tree_ref(struct btrfs_root *root, u64 bytenr, u64 num_bytes, in add_tree_ref() argument
90 ret = btrfs_search_slot(&trans, root, &key, path, 0, 1); in add_tree_ref()
112 ret = btrfs_insert_empty_item(&trans, root, path, &key, 0); in add_tree_ref()
119 static int remove_extent_item(struct btrfs_root *root, u64 bytenr, in remove_extent_item() argument
139 ret = btrfs_search_slot(&trans, root, &key, path, -1, 1); in remove_extent_item()
145 btrfs_del_item(&trans, root, path); in remove_extent_item()
150 static int remove_extent_ref(struct btrfs_root *root, u64 bytenr, in remove_extent_ref() argument
172 ret = btrfs_search_slot(&trans, root, &key, path, 0, 1); in remove_extent_ref()
[all …]
/linux-6.6.21/include/trace/events/
Dcgroup.h13 TP_PROTO(struct cgroup_root *root),
15 TP_ARGS(root),
18 __field( int, root )
20 __string( name, root->name )
24 __entry->root = root->hierarchy_id;
25 __entry->ss_mask = root->subsys_mask;
26 __assign_str(name, root->name);
30 __entry->root, __entry->ss_mask, __get_str(name))
35 TP_PROTO(struct cgroup_root *root),
37 TP_ARGS(root)
[all …]
/linux-6.6.21/Documentation/target/
Dtcm_mod_builder.rst74 drwxr-xr-x 2 root root 4096 2010-10-05 03:23 .
75 drwxr-xr-x 9 root root 4096 2010-10-05 03:22 ..
76 -rw-r--r-- 1 root root 282 2010-10-05 03:22 Kbuild
77 -rw-r--r-- 1 root root 171 2010-10-05 03:22 Kconfig
78 -rw-r--r-- 1 root root 49 2010-10-05 03:23 modules.order
79 -rw-r--r-- 1 root root 738 2010-10-05 03:22 tcm_nab5000_base.h
80 -rw-r--r-- 1 root root 9096 2010-10-05 03:22 tcm_nab5000_configfs.c
81 -rw-r--r-- 1 root root 191200 2010-10-05 03:23 tcm_nab5000_configfs.o
82 -rw-r--r-- 1 root root 40504 2010-10-05 03:23 .tcm_nab5000_configfs.o.cmd
83 -rw-r--r-- 1 root root 5414 2010-10-05 03:22 tcm_nab5000_fabric.c
[all …]
/linux-6.6.21/drivers/eisa/
Deisa-bus.c43 struct eisa_root_device *root, in is_forced_dev() argument
49 x = (root->bus_nr << 8) | edev->slot; in is_forced_dev()
182 static int __init eisa_init_device(struct eisa_root_device *root, in eisa_init_device() argument
190 sig_addr = SLOT_ADDRESS(root, slot) + EISA_VENDOR_ID_OFFSET; in eisa_init_device()
198 edev->state = inb(SLOT_ADDRESS(root, slot) + EISA_CONFIG_OFFSET) in eisa_init_device()
200 edev->base_addr = SLOT_ADDRESS(root, slot); in eisa_init_device()
201 edev->dma_mask = root->dma_mask; /* Default DMA mask */ in eisa_init_device()
203 edev->dev.parent = root->dev; in eisa_init_device()
207 dev_set_name(&edev->dev, "%02X:%02X", root->bus_nr, slot); in eisa_init_device()
217 if (is_forced_dev(enable_dev, enable_dev_count, root, edev)) in eisa_init_device()
[all …]
/linux-6.6.21/include/linux/
Drbtree_latch.h79 struct rb_root *root = &ltr->tree[idx]; in __lt_insert() local
80 struct rb_node **link = &root->rb_node; in __lt_insert()
96 rb_insert_color(node, root); in __lt_insert()
145 struct latch_tree_root *root, in latch_tree_insert() argument
148 raw_write_seqcount_latch(&root->seq); in latch_tree_insert()
149 __lt_insert(node, root, 0, ops->less); in latch_tree_insert()
150 raw_write_seqcount_latch(&root->seq); in latch_tree_insert()
151 __lt_insert(node, root, 1, ops->less); in latch_tree_insert()
172 struct latch_tree_root *root, in latch_tree_erase() argument
175 raw_write_seqcount_latch(&root->seq); in latch_tree_erase()
[all …]
/linux-6.6.21/drivers/crypto/nx/
Dnx_debugfs.c35 struct dentry *root; in nx_debugfs_init() local
37 root = debugfs_create_dir(NX_NAME, NULL); in nx_debugfs_init()
38 drv->dfs_root = root; in nx_debugfs_init()
41 root, &drv->stats.aes_ops.counter); in nx_debugfs_init()
43 root, &drv->stats.sha256_ops.counter); in nx_debugfs_init()
45 root, &drv->stats.sha512_ops.counter); in nx_debugfs_init()
47 root, &drv->stats.aes_bytes.counter); in nx_debugfs_init()
49 root, &drv->stats.sha256_bytes.counter); in nx_debugfs_init()
51 root, &drv->stats.sha512_bytes.counter); in nx_debugfs_init()
53 root, &drv->stats.errors.counter); in nx_debugfs_init()
[all …]
/linux-6.6.21/Documentation/admin-guide/acpi/
Dfan_performance_states.rst22 -r--r--r-- 1 root root 4096 Dec 13 20:38 state0
23 -r--r--r-- 1 root root 4096 Dec 13 20:38 state1
24 -r--r--r-- 1 root root 4096 Dec 13 20:38 state10
25 -r--r--r-- 1 root root 4096 Dec 13 20:38 state11
26 -r--r--r-- 1 root root 4096 Dec 13 20:38 state2
27 -r--r--r-- 1 root root 4096 Dec 13 20:38 state3
28 -r--r--r-- 1 root root 4096 Dec 13 20:38 state4
29 -r--r--r-- 1 root root 4096 Dec 13 20:38 state5
30 -r--r--r-- 1 root root 4096 Dec 13 20:38 state6
31 -r--r--r-- 1 root root 4096 Dec 13 20:38 state7
[all …]
/linux-6.6.21/fs/nfs/
Dgetroot.c72 struct dentry *root; in nfs_get_root() local
110 root = d_obtain_root(inode); in nfs_get_root()
111 if (IS_ERR(root)) { in nfs_get_root()
113 error = PTR_ERR(root); in nfs_get_root()
118 security_d_instantiate(root, inode); in nfs_get_root()
119 spin_lock(&root->d_lock); in nfs_get_root()
120 if (IS_ROOT(root) && !root->d_fsdata && in nfs_get_root()
121 !(root->d_flags & DCACHE_NFSFS_RENAMED)) { in nfs_get_root()
122 root->d_fsdata = name; in nfs_get_root()
125 spin_unlock(&root->d_lock); in nfs_get_root()
[all …]
/linux-6.6.21/arch/x86/kvm/mmu/
Dtdp_mmu.c76 void kvm_tdp_mmu_put_root(struct kvm *kvm, struct kvm_mmu_page *root, in kvm_tdp_mmu_put_root() argument
81 if (!refcount_dec_and_test(&root->tdp_mmu_root_count)) in kvm_tdp_mmu_put_root()
89 KVM_BUG_ON(!is_tdp_mmu_page(root) || !root->role.invalid, kvm); in kvm_tdp_mmu_put_root()
92 list_del_rcu(&root->link); in kvm_tdp_mmu_put_root()
94 call_rcu(&root->rcu_head, tdp_mmu_free_sp_rcu_callback); in kvm_tdp_mmu_put_root()
224 struct kvm_mmu_page *root; in kvm_tdp_mmu_get_vcpu_root_hpa() local
232 for_each_tdp_mmu_root(kvm, root, kvm_mmu_role_as_id(role)) { in kvm_tdp_mmu_get_vcpu_root_hpa()
233 if (root->role.word == role.word && in kvm_tdp_mmu_get_vcpu_root_hpa()
234 kvm_tdp_mmu_get_root(root)) in kvm_tdp_mmu_get_vcpu_root_hpa()
238 root = tdp_mmu_alloc_sp(vcpu); in kvm_tdp_mmu_get_vcpu_root_hpa()
[all …]

12345678910>>...75