Home
last modified time | relevance | path

Searched refs:root (Results 1 – 200 of 1340) sorted by relevance

1234567

/linux-4.4.14/fs/btrfs/
Dtransaction.c114 struct btrfs_root *root, *tmp; in switch_commit_roots() local
117 list_for_each_entry_safe(root, tmp, &trans->switch_commits, in switch_commit_roots()
119 list_del_init(&root->dirty_list); in switch_commit_roots()
120 free_extent_buffer(root->commit_root); in switch_commit_roots()
121 root->commit_root = btrfs_root_node(root); in switch_commit_roots()
122 if (is_fstree(root->objectid)) in switch_commit_roots()
123 btrfs_unpin_free_ino(root); in switch_commit_roots()
124 clear_btree_io_tree(&root->dirty_log_pages); in switch_commit_roots()
130 root = list_first_entry(&trans->dropped_roots, in switch_commit_roots()
132 list_del_init(&root->root_list); in switch_commit_roots()
[all …]
Dinode-map.c31 struct btrfs_root *root = data; in caching_kthread() local
32 struct btrfs_fs_info *fs_info = root->fs_info; in caching_kthread()
33 struct btrfs_free_space_ctl *ctl = root->free_ino_ctl; in caching_kthread()
41 if (!btrfs_test_opt(root, INODE_MAP_CACHE)) in caching_kthread()
60 ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); in caching_kthread()
71 ret = btrfs_next_leaf(root, path); in caching_kthread()
90 root->ino_cache_progress = last; in caching_kthread()
103 if (key.objectid >= root->highest_objectid) in caching_kthread()
109 wake_up(&root->ino_cache_wait); in caching_kthread()
117 if (last < root->highest_objectid - 1) { in caching_kthread()
[all …]
Ddisk-io.c59 static void free_fs_root(struct btrfs_root *root);
62 static void btrfs_destroy_ordered_extents(struct btrfs_root *root);
64 struct btrfs_root *root);
65 static void btrfs_destroy_delalloc_inodes(struct btrfs_root *root);
66 static int btrfs_destroy_marked_extents(struct btrfs_root *root,
69 static int btrfs_destroy_pinned_extent(struct btrfs_root *root,
71 static int btrfs_cleanup_transaction(struct btrfs_root *root);
72 static void btrfs_error_commit_super(struct btrfs_root *root);
229 BTRFS_I(inode)->root->fs_info->fs_devices->latest_bdev; in btree_get_extent()
244 em->bdev = BTRFS_I(inode)->root->fs_info->fs_devices->latest_bdev; in btree_get_extent()
[all …]
Dtree-defrag.c33 struct btrfs_root *root) in btrfs_defrag_leaves() argument
44 if (root->fs_info->extent_root == root) { in btrfs_defrag_leaves()
52 if (!test_bit(BTRFS_ROOT_REF_COWS, &root->state)) in btrfs_defrag_leaves()
59 level = btrfs_header_level(root->node); in btrfs_defrag_leaves()
64 if (root->defrag_progress.objectid == 0) { in btrfs_defrag_leaves()
68 root_node = btrfs_lock_root_node(root); in btrfs_defrag_leaves()
71 root->defrag_max.objectid = 0; in btrfs_defrag_leaves()
73 btrfs_node_key_to_cpu(root_node, &root->defrag_max, in btrfs_defrag_leaves()
79 memcpy(&key, &root->defrag_progress, sizeof(key)); in btrfs_defrag_leaves()
84 ret = btrfs_search_forward(root, &key, path, min_trans); in btrfs_defrag_leaves()
[all …]
Dtransaction.h130 struct btrfs_root *root; member
139 struct btrfs_root *root; member
156 BTRFS_I(inode)->last_sub_trans = BTRFS_I(inode)->root->log_transid; in btrfs_set_inode_last_trans()
157 BTRFS_I(inode)->last_log_commit = BTRFS_I(inode)->root->last_log_commit; in btrfs_set_inode_last_trans()
185 struct btrfs_root *root);
186 struct btrfs_trans_handle *btrfs_start_transaction(struct btrfs_root *root,
189 struct btrfs_root *root,
193 struct btrfs_root *root,
195 struct btrfs_trans_handle *btrfs_join_transaction(struct btrfs_root *root);
196 struct btrfs_trans_handle *btrfs_join_transaction_nolock(struct btrfs_root *root);
[all …]
Dctree.c29 *root, struct btrfs_path *path, int level);
31 *root, struct btrfs_key *ins_key,
34 struct btrfs_root *root, struct extent_buffer *dst,
37 struct btrfs_root *root,
40 static void del_ptr(struct btrfs_root *root, struct btrfs_path *path,
148 struct extent_buffer *btrfs_root_node(struct btrfs_root *root) in btrfs_root_node() argument
154 eb = rcu_dereference(root->node); in btrfs_root_node()
176 struct extent_buffer *btrfs_lock_root_node(struct btrfs_root *root) in btrfs_lock_root_node() argument
181 eb = btrfs_root_node(root); in btrfs_lock_root_node()
183 if (eb == root->node) in btrfs_lock_root_node()
[all …]
Dinode.c66 struct btrfs_root *root; member
138 struct btrfs_root *root, struct inode *inode, in insert_inline_extent() argument
168 ret = btrfs_insert_empty_item(trans, root, path, &key, in insert_inline_extent()
226 ret = btrfs_update_inode(trans, root, inode); in insert_inline_extent()
239 static noinline int cow_file_range_inline(struct btrfs_root *root, in cow_file_range_inline() argument
249 u64 aligned_end = ALIGN(end, root->sectorsize); in cow_file_range_inline()
261 data_len > BTRFS_MAX_INLINE_DATA_SIZE(root) || in cow_file_range_inline()
263 (actual_end & (root->sectorsize - 1)) == 0) || in cow_file_range_inline()
265 data_len > root->fs_info->max_inline) { in cow_file_range_inline()
273 trans = btrfs_join_transaction(root); in cow_file_range_inline()
[all …]
Ddelayed-inode.c52 struct btrfs_root *root, u64 inode_id) in btrfs_init_delayed_node() argument
54 delayed_node->root = root; in btrfs_init_delayed_node()
82 struct btrfs_root *root) in btrfs_get_delayed_root() argument
84 return root->fs_info->delayed_root; in btrfs_get_delayed_root()
90 struct btrfs_root *root = btrfs_inode->root; in btrfs_get_delayed_node() local
100 spin_lock(&root->inode_lock); in btrfs_get_delayed_node()
101 node = radix_tree_lookup(&root->delayed_nodes_tree, ino); in btrfs_get_delayed_node()
106 spin_unlock(&root->inode_lock); in btrfs_get_delayed_node()
112 spin_unlock(&root->inode_lock); in btrfs_get_delayed_node()
115 spin_unlock(&root->inode_lock); in btrfs_get_delayed_node()
[all …]
Ddisk-io.h47 struct extent_buffer *read_tree_block(struct btrfs_root *root, u64 bytenr,
49 void readahead_tree_block(struct btrfs_root *root, u64 bytenr);
50 int reada_tree_block_flagged(struct btrfs_root *root, u64 bytenr,
52 struct extent_buffer *btrfs_find_create_tree_block(struct btrfs_root *root,
59 void close_ctree(struct btrfs_root *root);
61 struct btrfs_root *root, int max_mirrors);
65 int btrfs_commit_super(struct btrfs_root *root);
70 int btrfs_init_fs_root(struct btrfs_root *root);
72 struct btrfs_root *root);
86 void btrfs_btree_balance_dirty(struct btrfs_root *root);
[all …]
Dextent-tree.c78 struct btrfs_root *root, u64 bytenr,
81 struct btrfs_root *root,
90 struct btrfs_root *root,
95 struct btrfs_root *root,
111 int btrfs_pin_extent(struct btrfs_root *root,
228 static int add_excluded_extent(struct btrfs_root *root, in add_excluded_extent() argument
232 set_extent_bits(&root->fs_info->freed_extents[0], in add_excluded_extent()
234 set_extent_bits(&root->fs_info->freed_extents[1], in add_excluded_extent()
239 static void free_excluded_extents(struct btrfs_root *root, in free_excluded_extents() argument
247 clear_extent_bits(&root->fs_info->freed_extents[0], in free_excluded_extents()
[all …]
Dioctl.c218 struct btrfs_root *root = ip->root; in btrfs_ioctl_setflags() local
229 if (btrfs_root_readonly(root)) in btrfs_ioctl_setflags()
326 if (root->fs_info->compress_type == BTRFS_COMPRESS_LZO) in btrfs_ioctl_setflags()
342 trans = btrfs_start_transaction(root, 1); in btrfs_ioctl_setflags()
351 ret = btrfs_update_inode(trans, root, inode); in btrfs_ioctl_setflags()
353 btrfs_end_transaction(trans, root); in btrfs_ioctl_setflags()
443 struct btrfs_root *root = BTRFS_I(dir)->root; in create_subvol() local
456 ret = btrfs_find_free_objectid(root->fs_info->tree_root, &objectid); in create_subvol()
472 ret = btrfs_subvolume_reserve_metadata(root, &block_rsv, in create_subvol()
477 trans = btrfs_start_transaction(root, 0); in create_subvol()
[all …]
Dtree-log.c97 struct btrfs_root *root, struct inode *inode,
103 struct btrfs_root *root,
106 struct btrfs_root *root,
140 struct btrfs_root *root, in start_log_trans() argument
145 mutex_lock(&root->log_mutex); in start_log_trans()
147 if (root->log_root) { in start_log_trans()
148 if (btrfs_need_log_full_commit(root->fs_info, trans)) { in start_log_trans()
153 if (!root->log_start_pid) { in start_log_trans()
154 clear_bit(BTRFS_ROOT_MULTI_LOG_TASKS, &root->state); in start_log_trans()
155 root->log_start_pid = current->pid; in start_log_trans()
[all …]
Ddir-item.c34 struct btrfs_root *root, in insert_with_overflow() argument
46 ret = btrfs_insert_empty_item(trans, root, path, cpu_key, data_size); in insert_with_overflow()
49 di = btrfs_match_dir_item_name(root, path, name, name_len); in insert_with_overflow()
52 btrfs_extend_item(root, path, data_size); in insert_with_overflow()
69 struct btrfs_root *root, in btrfs_insert_xattr_item() argument
82 BUG_ON(name_len + data_len > BTRFS_MAX_XATTR_SIZE(root)); in btrfs_insert_xattr_item()
89 dir_item = insert_with_overflow(trans, root, path, &key, data_size, in btrfs_insert_xattr_item()
121 *root, const char *name, int name_len, in btrfs_insert_dir_item()
147 dir_item = insert_with_overflow(trans, root, path, &key, data_size, in btrfs_insert_dir_item()
169 if (root == root->fs_info->tree_root) { in btrfs_insert_dir_item()
[all …]
Dsuper.c236 struct btrfs_root *root, const char *function, in __btrfs_abort_transaction() argument
246 btrfs_warn(root->fs_info, in __btrfs_abort_transaction()
253 wake_up(&root->fs_info->transaction_wait); in __btrfs_abort_transaction()
254 wake_up(&root->fs_info->transaction_blocked_wait); in __btrfs_abort_transaction()
255 __btrfs_std_error(root->fs_info, function, line, errno, NULL); in __btrfs_abort_transaction()
374 int btrfs_parse_options(struct btrfs_root *root, char *options) in btrfs_parse_options() argument
376 struct btrfs_fs_info *info = root->fs_info; in btrfs_parse_options()
385 cache_gen = btrfs_super_cache_generation(root->fs_info->super_copy); in btrfs_parse_options()
410 btrfs_info(root->fs_info, "allowing degraded mounts"); in btrfs_parse_options()
423 btrfs_set_and_info(root, NODATASUM, in btrfs_parse_options()
[all …]
Dfile-item.c41 struct btrfs_root *root, in btrfs_insert_file_extent() argument
61 ret = btrfs_insert_empty_item(trans, root, path, &file_key, in btrfs_insert_file_extent()
88 struct btrfs_root *root, in btrfs_lookup_csum() argument
98 u16 csum_size = btrfs_super_csum_size(root->fs_info->super_copy); in btrfs_lookup_csum()
104 ret = btrfs_search_slot(trans, root, &file_key, path, 0, cow); in btrfs_lookup_csum()
118 root->fs_info->sb->s_blocksize_bits; in btrfs_lookup_csum()
140 struct btrfs_root *root, in btrfs_lookup_file_extent() argument
152 ret = btrfs_search_slot(trans, root, &file_key, path, ins_len, cow); in btrfs_lookup_file_extent()
161 static int __btrfs_lookup_bio_sums(struct btrfs_root *root, in __btrfs_lookup_bio_sums() argument
179 u16 csum_size = btrfs_super_csum_size(root->fs_info->super_copy); in __btrfs_lookup_bio_sums()
[all …]
Drelocation.c60 struct btrfs_root *root; member
289 static struct rb_node *tree_insert(struct rb_root *root, u64 bytenr, in tree_insert() argument
292 struct rb_node **p = &root->rb_node; in tree_insert()
309 rb_insert_color(node, root); in tree_insert()
313 static struct rb_node *tree_search(struct rb_root *root, u64 bytenr) in tree_search() argument
315 struct rb_node *n = root->rb_node; in tree_search()
337 if (bnode->root) in backref_tree_panic()
338 fs_info = bnode->root->fs_info; in backref_tree_panic()
527 static int should_ignore_root(struct btrfs_root *root) in should_ignore_root() argument
531 if (!test_bit(BTRFS_ROOT_REF_COWS, &root->state)) in should_ignore_root()
[all …]
Droot-tree.c82 int btrfs_find_root(struct btrfs_root *root, struct btrfs_key *search_key, in btrfs_find_root() argument
91 ret = btrfs_search_slot(NULL, root, search_key, path, 0, 0); in btrfs_find_root()
137 *root, struct btrfs_key *key, struct btrfs_root_item in btrfs_update_root()
151 ret = btrfs_search_slot(trans, root, key, path, 0, 1); in btrfs_update_root()
153 btrfs_abort_transaction(trans, root, ret); in btrfs_update_root()
158 btrfs_print_leaf(root, path->nodes[0]); in btrfs_update_root()
159 btrfs_crit(root->fs_info, "unable to update root key %llu %u %llu", in btrfs_update_root()
176 ret = btrfs_search_slot(trans, root, key, path, in btrfs_update_root()
179 btrfs_abort_transaction(trans, root, ret); in btrfs_update_root()
183 ret = btrfs_del_item(trans, root, path); in btrfs_update_root()
[all …]
Dxattr.c39 struct btrfs_root *root = BTRFS_I(inode)->root; in __btrfs_getxattr() local
50 di = btrfs_lookup_xattr(NULL, root, path, btrfs_ino(inode), name, in __btrfs_getxattr()
96 struct btrfs_root *root = BTRFS_I(inode)->root; in do_setxattr() local
101 if (name_len + size > BTRFS_MAX_XATTR_SIZE(root)) in do_setxattr()
110 di = btrfs_lookup_xattr(trans, root, path, btrfs_ino(inode), in do_setxattr()
117 ret = btrfs_delete_one_dir_name(trans, root, path, di); in do_setxattr()
130 di = btrfs_lookup_xattr(NULL, root, path, btrfs_ino(inode), in do_setxattr()
142 ret = btrfs_insert_xattr_item(trans, root, path, btrfs_ino(inode), in do_setxattr()
152 di = btrfs_match_dir_item_name(root, path, name, name_len); in do_setxattr()
159 di = btrfs_match_dir_item_name(root, path, name, name_len); in do_setxattr()
[all …]
Dfile.c62 u64 root; member
74 if (defrag1->root > defrag2->root) in __compare_inode_defrag()
76 else if (defrag1->root < defrag2->root) in __compare_inode_defrag()
98 struct btrfs_root *root = BTRFS_I(inode)->root; in __btrfs_add_inode_defrag() local
104 p = &root->fs_info->defrag_inodes.rb_node; in __btrfs_add_inode_defrag()
128 rb_insert_color(&defrag->rb_node, &root->fs_info->defrag_inodes); in __btrfs_add_inode_defrag()
132 static inline int __need_auto_defrag(struct btrfs_root *root) in __need_auto_defrag() argument
134 if (!btrfs_test_opt(root, AUTO_DEFRAG)) in __need_auto_defrag()
137 if (btrfs_fs_closing(root->fs_info)) in __need_auto_defrag()
150 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_add_inode_defrag() local
[all …]
Dinode-map.h4 void btrfs_init_free_ino_ctl(struct btrfs_root *root);
5 void btrfs_unpin_free_ino(struct btrfs_root *root);
6 void btrfs_return_ino(struct btrfs_root *root, u64 objectid);
7 int btrfs_find_free_ino(struct btrfs_root *root, u64 *objectid);
8 int btrfs_save_ino_cache(struct btrfs_root *root,
11 int btrfs_find_free_objectid(struct btrfs_root *root, u64 *objectid);
12 int btrfs_find_highest_objectid(struct btrfs_root *root, u64 *objectid);
Dexport.c34 fid->root_objectid = BTRFS_I(inode)->root->objectid; in btrfs_encode_fh()
42 parent_root_id = BTRFS_I(parent)->root->objectid; in btrfs_encode_fh()
63 struct btrfs_root *root; in btrfs_get_dentry() local
78 root = btrfs_read_fs_root_no_name(fs_info, &key); in btrfs_get_dentry()
79 if (IS_ERR(root)) { in btrfs_get_dentry()
80 err = PTR_ERR(root); in btrfs_get_dentry()
88 inode = btrfs_iget(sb, &key, root, NULL); in btrfs_get_dentry()
156 struct btrfs_root *root = BTRFS_I(dir)->root; in btrfs_get_parent() local
169 key.objectid = root->root_key.objectid; in btrfs_get_parent()
172 root = root->fs_info->tree_root; in btrfs_get_parent()
[all …]
Dvolumes.c122 struct btrfs_root *root,
124 static int btrfs_relocate_sys_chunks(struct btrfs_root *root);
1090 struct btrfs_root *root = device->dev_root; in btrfs_account_dev_extents_size() local
1112 ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); in btrfs_account_dev_extents_size()
1116 ret = btrfs_previous_item(root, path, key.objectid, key.type); in btrfs_account_dev_extents_size()
1125 ret = btrfs_next_leaf(root, path); in btrfs_account_dev_extents_size()
1250 struct btrfs_root *root = device->dev_root; in find_free_dev_extent_start() local
1268 min_search_start = max(root->fs_info->alloc_start, 1024ull * 1024); in find_free_dev_extent_start()
1292 ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); in find_free_dev_extent_start()
1296 ret = btrfs_previous_item(root, path, key.objectid, key.type); in find_free_dev_extent_start()
[all …]
Dordered-data.c41 static struct rb_node *tree_insert(struct rb_root *root, u64 file_offset, in tree_insert() argument
44 struct rb_node **p = &root->rb_node; in tree_insert()
61 rb_insert_color(node, root); in tree_insert()
77 static struct rb_node *__tree_search(struct rb_root *root, u64 file_offset, in __tree_search() argument
80 struct rb_node *n = root->rb_node; in __tree_search()
154 struct rb_root *root = &tree->tree; in tree_search() local
165 ret = __tree_search(root, file_offset, &prev); in tree_search()
188 struct btrfs_root *root = BTRFS_I(inode)->root; in __btrfs_add_ordered_extent() local
231 spin_lock(&root->ordered_extent_lock); in __btrfs_add_ordered_extent()
233 &root->ordered_extents); in __btrfs_add_ordered_extent()
[all …]
Dctree.h463 __le64 root; member
653 __le64 root; member
670 __le64 root; member
1254 struct rb_root root; member
1303 struct btrfs_root *root; member
2194 #define btrfs_test_opt(root, opt) ((root)->fs_info->mount_opt & \ argument
2197 #define btrfs_set_and_info(root, opt, fmt, args...) \ argument
2199 if (!btrfs_test_opt(root, opt)) \
2200 btrfs_info(root->fs_info, fmt, ##args); \
2201 btrfs_set_opt(root->fs_info->mount_opt, opt); \
[all …]
Ddelayed-inode.h58 struct btrfs_root *root; member
102 struct btrfs_root *root, const char *name,
108 struct btrfs_root *root, struct inode *dir,
114 struct btrfs_root *root);
116 struct btrfs_root *root, int nr);
118 void btrfs_balance_delayed_items(struct btrfs_root *root);
129 struct btrfs_root *root, struct inode *inode);
134 void btrfs_kill_all_delayed_nodes(struct btrfs_root *root);
137 void btrfs_destroy_delayed_inodes(struct btrfs_root *root);
154 void btrfs_assert_delayed_root_empty(struct btrfs_root *root);
Dinode-item.c97 struct btrfs_root *root, in btrfs_lookup_inode_extref() argument
111 ret = btrfs_search_slot(trans, root, &key, path, ins_len, cow); in btrfs_lookup_inode_extref()
122 struct btrfs_root *root, in btrfs_del_inode_extref() argument
147 ret = btrfs_search_slot(trans, root, &key, path, -1, 1); in btrfs_del_inode_extref()
160 btrfs_std_error(root->fs_info, -ENOENT, NULL); in btrfs_del_inode_extref()
175 ret = btrfs_del_item(trans, root, path); in btrfs_del_inode_extref()
185 btrfs_truncate_item(root, path, item_size - del_len, 1); in btrfs_del_inode_extref()
194 struct btrfs_root *root, in btrfs_del_inode_ref() argument
220 ret = btrfs_search_slot(trans, root, &key, path, -1, 1); in btrfs_del_inode_ref()
240 ret = btrfs_del_item(trans, root, path); in btrfs_del_inode_ref()
[all …]
Dfree-space-cache.h54 struct inode *lookup_free_space_inode(struct btrfs_root *root,
57 int create_free_space_inode(struct btrfs_root *root,
62 int btrfs_check_trunc_cache_free_space(struct btrfs_root *root,
64 int btrfs_truncate_free_space_cache(struct btrfs_root *root,
70 int btrfs_wait_cache_io(struct btrfs_root *root,
75 int btrfs_write_out_cache(struct btrfs_root *root,
79 struct inode *lookup_free_ino_inode(struct btrfs_root *root,
81 int create_free_ino_inode(struct btrfs_root *root,
85 struct btrfs_root *root);
86 int btrfs_write_out_ino_cache(struct btrfs_root *root,
[all …]
Dtree-log.h59 struct btrfs_root *root, struct btrfs_log_ctx *ctx);
60 int btrfs_free_log(struct btrfs_trans_handle *trans, struct btrfs_root *root);
65 struct btrfs_root *root, struct dentry *dentry,
70 struct btrfs_root *root,
74 struct btrfs_root *root,
77 void btrfs_end_log_trans(struct btrfs_root *root);
78 int btrfs_pin_log_trans(struct btrfs_root *root);
Dprops.c157 static int iterate_object_props(struct btrfs_root *root, in iterate_object_props() argument
184 ret = btrfs_next_leaf(root, path); in iterate_object_props()
274 struct btrfs_root *root = BTRFS_I(inode)->root; in inode_prop_iterator() local
279 btrfs_warn(root->fs_info, in inode_prop_iterator()
282 root->root_key.objectid, ret); in inode_prop_iterator()
289 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_load_inode_props() local
293 ret = iterate_object_props(root, path, ino, inode_prop_iterator, inode); in btrfs_load_inode_props()
302 struct btrfs_root *root = BTRFS_I(inode)->root; in inherit_props() local
322 num_bytes = btrfs_calc_trans_metadata_size(root, 1); in inherit_props()
323 ret = btrfs_block_rsv_add(root, trans->block_rsv, in inherit_props()
[all …]
Ddev-replace.c47 static int btrfs_dev_replace_find_srcdev(struct btrfs_root *root, u64 srcdevid,
308 int btrfs_dev_replace_start(struct btrfs_root *root, in btrfs_dev_replace_start() argument
312 struct btrfs_fs_info *fs_info = root->fs_info; in btrfs_dev_replace_start()
332 ret = btrfs_dev_replace_find_srcdev(root, args->start.srcdevid, in btrfs_dev_replace_start()
340 ret = btrfs_init_dev_replace_tgtdev(root, args->start.tgtdev_name, in btrfs_dev_replace_start()
350 trans = btrfs_attach_transaction(root); in btrfs_dev_replace_start()
352 ret = btrfs_commit_transaction(trans, root); in btrfs_dev_replace_start()
378 btrfs_info_in_rcu(root->fs_info, in btrfs_dev_replace_start()
402 btrfs_err(root->fs_info, "kobj add dev failed %d\n", ret); in btrfs_dev_replace_start()
404 btrfs_wait_ordered_roots(root->fs_info, -1); in btrfs_dev_replace_start()
[all …]
Dbtrfs_inode.h62 struct btrfs_root *root; member
206 const struct btrfs_root *root) in btrfs_inode_hash() argument
208 u64 h = objectid ^ (root->objectid * GOLDEN_RATIO_PRIME); in btrfs_inode_hash()
219 unsigned long h = btrfs_inode_hash(inode->i_ino, BTRFS_I(inode)->root); in btrfs_insert_inode_hash()
245 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_is_free_space_inode() local
247 if (root == root->fs_info->tree_root && in btrfs_is_free_space_inode()
264 BTRFS_I(inode)->root->last_log_commit) { in btrfs_inode_in_log()
Dorphan.c23 struct btrfs_root *root, u64 offset) in btrfs_insert_orphan_item() argument
37 ret = btrfs_insert_empty_item(trans, root, path, &key, 0); in btrfs_insert_orphan_item()
44 struct btrfs_root *root, u64 offset) in btrfs_del_orphan_item() argument
58 ret = btrfs_search_slot(trans, root, &key, path, -1, 1); in btrfs_del_orphan_item()
66 ret = btrfs_del_item(trans, root, path); in btrfs_del_orphan_item()
Dvolumes.h434 int btrfs_read_sys_array(struct btrfs_root *root);
435 int btrfs_read_chunk_tree(struct btrfs_root *root);
440 int btrfs_map_bio(struct btrfs_root *root, int rw, struct bio *bio,
448 int btrfs_find_device_missing_or_by_path(struct btrfs_root *root,
454 int btrfs_rm_device(struct btrfs_root *root, char *device_path);
462 int btrfs_init_new_device(struct btrfs_root *root, char *path);
463 int btrfs_init_dev_replace_tgtdev(struct btrfs_root *root, char *device_path,
474 int btrfs_chunk_readonly(struct btrfs_root *root, u64 chunk_offset);
482 int btrfs_get_dev_stats(struct btrfs_root *root,
499 unsigned long btrfs_full_stripe_len(struct btrfs_root *root,
[all …]
Dfree-space-cache.c46 static struct inode *__lookup_free_space_inode(struct btrfs_root *root, in __lookup_free_space_inode() argument
62 ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); in __lookup_free_space_inode()
77 inode = btrfs_iget(root->fs_info->sb, &location, root, NULL); in __lookup_free_space_inode()
94 struct inode *lookup_free_space_inode(struct btrfs_root *root, in lookup_free_space_inode() argument
108 inode = __lookup_free_space_inode(root, path, in lookup_free_space_inode()
115 btrfs_info(root->fs_info, in lookup_free_space_inode()
131 static int __create_free_space_inode(struct btrfs_root *root, in __create_free_space_inode() argument
144 ret = btrfs_insert_empty_inode(trans, root, path, ino); in __create_free_space_inode()
174 ret = btrfs_insert_empty_item(trans, root, path, &key, in __create_free_space_inode()
192 int create_free_space_inode(struct btrfs_root *root, in create_free_space_inode() argument
[all …]
Dcompression.c88 static inline int compressed_bio_size(struct btrfs_root *root, in compressed_bio_size() argument
91 u16 csum_size = btrfs_super_csum_size(root->fs_info->super_copy); in compressed_bio_size()
94 (DIV_ROUND_UP(disk_size, root->sectorsize)) * csum_size; in compressed_bio_size()
127 btrfs_info(BTRFS_I(inode)->root->fs_info, in check_compressed_csum()
333 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_submit_compressed_write() local
345 cb = kmalloc(compressed_bio_size(root, compressed_len), GFP_NOFS); in btrfs_submit_compressed_write()
359 bdev = BTRFS_I(inode)->root->fs_info->fs_devices->latest_bdev; in btrfs_submit_compressed_write()
394 ret = btrfs_bio_wq_end_io(root->fs_info, bio, in btrfs_submit_compressed_write()
399 ret = btrfs_csum_one_bio(root, inode, bio, in btrfs_submit_compressed_write()
404 ret = btrfs_map_bio(root, WRITE, bio, 0, 1); in btrfs_submit_compressed_write()
[all …]
Draid56.h45 int raid56_parity_recover(struct btrfs_root *root, struct bio *bio,
48 int raid56_parity_write(struct btrfs_root *root, struct bio *bio,
55 raid56_parity_alloc_scrub_rbio(struct btrfs_root *root, struct bio *bio,
62 raid56_alloc_missing_rbio(struct btrfs_root *root, struct bio *bio,
Dulist.c50 ulist->root = RB_ROOT; in ulist_init()
69 ulist->root = RB_ROOT; in ulist_fini()
120 struct rb_node *n = ulist->root.rb_node; in ulist_rbtree_search()
137 rb_erase(&node->rb_node, &ulist->root); in ulist_rbtree_erase()
146 struct rb_node **p = &ulist->root.rb_node; in ulist_rbtree_insert()
162 rb_insert_color(&ins->rb_node, &ulist->root); in ulist_rbtree_insert()
Dreada.c108 static int __readahead_hook(struct btrfs_root *root, struct extent_buffer *eb, in __readahead_hook() argument
117 struct btrfs_fs_info *fs_info = root->fs_info; in __readahead_hook()
191 btrfs_debug(root->fs_info, in __readahead_hook()
236 int btree_readahead_hook(struct btrfs_root *root, struct extent_buffer *eb, in btree_readahead_hook() argument
241 ret = __readahead_hook(root, eb, start, err); in btree_readahead_hook()
243 reada_start_machine(root->fs_info); in btree_readahead_hook()
318 static struct reada_extent *reada_find_extent(struct btrfs_root *root, in reada_find_extent() argument
325 struct btrfs_fs_info *fs_info = root->fs_info; in reada_find_extent()
350 blocksize = root->nodesize; in reada_find_extent()
367 btrfs_err(root->fs_info, in reada_find_extent()
[all …]
Ddelayed-ref.c47 if (ref1->root < ref2->root) in comp_tree_refs()
49 if (ref1->root > ref2->root) in comp_tree_refs()
67 if (ref1->root < ref2->root) in comp_data_refs()
69 if (ref1->root > ref2->root) in comp_data_refs()
89 static struct btrfs_delayed_ref_head *htree_insert(struct rb_root *root, in htree_insert() argument
92 struct rb_node **p = &root->rb_node; in htree_insert()
114 rb_insert_color(node, root); in htree_insert()
125 find_ref_head(struct rb_root *root, u64 bytenr, in find_ref_head() argument
131 n = root->rb_node; in find_ref_head()
147 n = rb_first(root); in find_ref_head()
[all …]
Dprint-tree.c172 void btrfs_print_leaf(struct btrfs_root *root, struct extent_buffer *l) in btrfs_print_leaf() argument
193 btrfs_info(root->fs_info, "leaf %llu total ptrs %d free space %d", in btrfs_print_leaf()
194 btrfs_header_bytenr(l), nr, btrfs_leaf_free_space(root, l)); in btrfs_print_leaf()
313 void btrfs_print_tree(struct btrfs_root *root, struct extent_buffer *c) in btrfs_print_tree() argument
324 btrfs_print_leaf(root, c); in btrfs_print_tree()
327 btrfs_info(root->fs_info, "node %llu level %d total ptrs %d free spc %u", in btrfs_print_tree()
329 (u32)BTRFS_NODEPTRS_PER_BLOCK(root) - nr); in btrfs_print_tree()
337 struct extent_buffer *next = read_tree_block(root, in btrfs_print_tree()
346 btrfs_print_tree(root, next); in btrfs_print_tree()
/linux-4.4.14/Documentation/cpuidle/
Dsysfs.txt31 drwxr-xr-x 2 root root 0 Feb 8 10:42 state0
32 drwxr-xr-x 2 root root 0 Feb 8 10:42 state1
33 drwxr-xr-x 2 root root 0 Feb 8 10:42 state2
34 drwxr-xr-x 2 root root 0 Feb 8 10:42 state3
38 -r--r--r-- 1 root root 4096 Feb 8 10:42 desc
39 -rw-r--r-- 1 root root 4096 Feb 8 10:42 disable
40 -r--r--r-- 1 root root 4096 Feb 8 10:42 latency
41 -r--r--r-- 1 root root 4096 Feb 8 10:42 name
42 -r--r--r-- 1 root root 4096 Feb 8 10:42 power
43 -r--r--r-- 1 root root 4096 Feb 8 10:42 time
[all …]
/linux-4.4.14/drivers/acpi/
Dpci_root.c157 static void decode_osc_bits(struct acpi_pci_root *root, char *msg, u32 word, in decode_osc_bits() argument
170 dev_info(&root->device->dev, "_OSC: %s [%s]\n", msg, buf); in decode_osc_bits()
173 static void decode_osc_support(struct acpi_pci_root *root, char *msg, u32 word) in decode_osc_support() argument
175 decode_osc_bits(root, msg, word, pci_osc_support_bit, in decode_osc_support()
179 static void decode_osc_control(struct acpi_pci_root *root, char *msg, u32 word) in decode_osc_control() argument
181 decode_osc_bits(root, msg, word, pci_osc_control_bit, in decode_osc_control()
206 static acpi_status acpi_pci_query_osc(struct acpi_pci_root *root, in acpi_pci_query_osc() argument
214 support |= root->osc_support_set; in acpi_pci_query_osc()
220 capbuf[OSC_CONTROL_DWORD] = *control | root->osc_control_set; in acpi_pci_query_osc()
223 capbuf[OSC_CONTROL_DWORD] = root->osc_control_set; in acpi_pci_query_osc()
[all …]
/linux-4.4.14/lib/
Dradix-tree.c83 static inline gfp_t root_gfp_mask(struct radix_tree_root *root) in root_gfp_mask() argument
85 return root->gfp_mask & __GFP_BITS_MASK; in root_gfp_mask()
106 static inline void root_tag_set(struct radix_tree_root *root, unsigned int tag) in root_tag_set() argument
108 root->gfp_mask |= (__force gfp_t)(1 << (tag + __GFP_BITS_SHIFT)); in root_tag_set()
111 static inline void root_tag_clear(struct radix_tree_root *root, unsigned int tag) in root_tag_clear() argument
113 root->gfp_mask &= (__force gfp_t)~(1 << (tag + __GFP_BITS_SHIFT)); in root_tag_clear()
116 static inline void root_tag_clear_all(struct radix_tree_root *root) in root_tag_clear_all() argument
118 root->gfp_mask &= __GFP_BITS_MASK; in root_tag_clear_all()
121 static inline int root_tag_get(struct radix_tree_root *root, unsigned int tag) in root_tag_get() argument
123 return (__force unsigned)root->gfp_mask & (1 << (tag + __GFP_BITS_SHIFT)); in root_tag_get()
[all …]
Drbtree_test.c19 static struct rb_root root = RB_ROOT; variable
24 static void insert(struct test_node *node, struct rb_root *root) in insert() argument
26 struct rb_node **new = &root->rb_node, *parent = NULL; in insert()
38 rb_insert_color(&node->rb, root); in insert()
41 static inline void erase(struct test_node *node, struct rb_root *root) in erase() argument
43 rb_erase(&node->rb, root); in erase()
67 static void insert_augmented(struct test_node *node, struct rb_root *root) in RB_DECLARE_CALLBACKS()
69 struct rb_node **new = &root->rb_node, *rb_parent = NULL; in RB_DECLARE_CALLBACKS()
87 rb_insert_augmented(&node->rb, root, &augment_callbacks); in RB_DECLARE_CALLBACKS()
90 static void erase_augmented(struct test_node *node, struct rb_root *root) in erase_augmented() argument
[all …]
Drbtree.c88 struct rb_root *root, int color) in __rb_rotate_set_parents() argument
93 __rb_change_child(old, new, parent, root); in __rb_rotate_set_parents()
97 __rb_insert(struct rb_node *node, struct rb_root *root, in __rb_insert() argument
181 __rb_rotate_set_parents(gparent, parent, root, RB_RED); in __rb_insert()
216 __rb_rotate_set_parents(gparent, parent, root, RB_RED); in __rb_insert()
228 ____rb_erase_color(struct rb_node *parent, struct rb_root *root, in ____rb_erase_color() argument
257 __rb_rotate_set_parents(parent, sibling, root, in ____rb_erase_color()
334 __rb_rotate_set_parents(parent, sibling, root, in ____rb_erase_color()
346 __rb_rotate_set_parents(parent, sibling, root, in ____rb_erase_color()
387 __rb_rotate_set_parents(parent, sibling, root, in ____rb_erase_color()
[all …]
Dinterval_tree_test.c11 static struct rb_root root = RB_ROOT; variable
18 search(unsigned long query, struct rb_root *root) in search() argument
23 for (node = interval_tree_iter_first(root, query, query); node; in search()
62 interval_tree_insert(nodes + j, &root); in interval_tree_test_init()
64 interval_tree_remove(nodes + j, &root); in interval_tree_test_init()
76 interval_tree_insert(nodes + j, &root); in interval_tree_test_init()
83 results += search(queries[j], &root); in interval_tree_test_init()
/linux-4.4.14/fs/btrfs/tests/
Dqgroup-tests.c34 static int insert_normal_tree_ref(struct btrfs_root *root, u64 bytenr, in insert_normal_tree_ref() argument
60 ret = btrfs_insert_empty_item(&trans, root, path, &ins, size); in insert_normal_tree_ref()
87 static int add_tree_ref(struct btrfs_root *root, u64 bytenr, u64 num_bytes, in add_tree_ref() argument
110 ret = btrfs_search_slot(&trans, root, &key, path, 0, 1); in add_tree_ref()
132 ret = btrfs_insert_empty_item(&trans, root, path, &key, 0); in add_tree_ref()
139 static int remove_extent_item(struct btrfs_root *root, u64 bytenr, in remove_extent_item() argument
160 ret = btrfs_search_slot(&trans, root, &key, path, -1, 1); in remove_extent_item()
166 btrfs_del_item(&trans, root, path); in remove_extent_item()
171 static int remove_extent_ref(struct btrfs_root *root, u64 bytenr, in remove_extent_ref() argument
194 ret = btrfs_search_slot(&trans, root, &key, path, 0, 1); in remove_extent_ref()
[all …]
Dinode-tests.c26 static void insert_extent(struct btrfs_root *root, u64 start, u64 len, in insert_extent() argument
32 struct extent_buffer *leaf = root->node; in insert_extent()
47 setup_items_for_insert(root, &path, &key, &value_len, value_len, in insert_extent()
62 static void insert_inode_item_key(struct btrfs_root *root) in insert_inode_item_key() argument
65 struct extent_buffer *leaf = root->node; in insert_inode_item_key()
78 setup_items_for_insert(root, &path, &key, &value_len, value_len, in insert_inode_item_key()
100 static void setup_file_extents(struct btrfs_root *root) in setup_file_extents() argument
107 insert_extent(root, offset, 5, 5, 0, 0, 0, BTRFS_FILE_EXTENT_REG, 0, in setup_file_extents()
118 insert_extent(root, offset, 1, 1, 0, 0, 0, BTRFS_FILE_EXTENT_INLINE, 0, in setup_file_extents()
124 insert_extent(root, offset, 4, 4, 0, 0, 0, BTRFS_FILE_EXTENT_REG, 0, in setup_file_extents()
[all …]
Dextent-buffer-tests.c28 struct btrfs_root *root; in test_btrfs_split_item() local
43 root = btrfs_alloc_dummy_root(); in test_btrfs_split_item()
44 if (IS_ERR(root)) { in test_btrfs_split_item()
46 return PTR_ERR(root); in test_btrfs_split_item()
52 kfree(root); in test_btrfs_split_item()
68 setup_items_for_insert(root, path, &key, &value_len, value_len, in test_btrfs_split_item()
81 ret = btrfs_split_item(NULL, root, path, &key, 17); in test_btrfs_split_item()
142 ret = btrfs_split_item(NULL, root, path, &key, 4); in test_btrfs_split_item()
221 kfree(root); in test_btrfs_split_item()
Dbtrfs-tests.c161 void btrfs_free_dummy_root(struct btrfs_root *root) in btrfs_free_dummy_root() argument
163 if (!root) in btrfs_free_dummy_root()
165 if (root->node) in btrfs_free_dummy_root()
166 free_extent_buffer(root->node); in btrfs_free_dummy_root()
167 if (root->fs_info) in btrfs_free_dummy_root()
168 btrfs_free_dummy_fs_info(root->fs_info); in btrfs_free_dummy_root()
169 kfree(root); in btrfs_free_dummy_root()
/linux-4.4.14/fs/kernfs/
Dmount.c24 struct kernfs_root *root = kernfs_info(sb)->root; in kernfs_sop_remount_fs() local
25 struct kernfs_syscall_ops *scops = root->syscall_ops; in kernfs_sop_remount_fs()
28 return scops->remount_fs(root, flags, data); in kernfs_sop_remount_fs()
34 struct kernfs_root *root = kernfs_root(dentry->d_fsdata); in kernfs_sop_show_options() local
35 struct kernfs_syscall_ops *scops = root->syscall_ops; in kernfs_sop_show_options()
38 return scops->show_options(sf, root); in kernfs_sop_show_options()
61 return kernfs_info(sb)->root; in kernfs_root_from_sb()
69 struct dentry *root; in kernfs_fill_super() local
80 inode = kernfs_get_inode(sb, info->root->kn); in kernfs_fill_super()
88 root = d_make_root(inode); in kernfs_fill_super()
[all …]
Ddir.c344 struct kernfs_root *root = kernfs_root(kn); in kernfs_put_active() local
356 wake_up_all(&root->deactivate_waitq); in kernfs_put_active()
370 struct kernfs_root *root = kernfs_root(kn); in kernfs_drain() local
384 wait_event(root->deactivate_waitq, in kernfs_drain()
419 struct kernfs_root *root; in kernfs_put() local
423 root = kernfs_root(kn); in kernfs_put()
447 ida_simple_remove(&root->ino_ida, kn->ino); in kernfs_put()
456 ida_destroy(&root->ino_ida); in kernfs_put()
457 kfree(root); in kernfs_put()
529 static struct kernfs_node *__kernfs_new_node(struct kernfs_root *root, in __kernfs_new_node() argument
[all …]
/linux-4.4.14/include/linux/
Dradix-tree.h122 #define INIT_RADIX_TREE(root, mask) \ argument
124 (root)->height = 0; \
125 (root)->gfp_mask = (mask); \
126 (root)->rnode = NULL; \
263 int __radix_tree_create(struct radix_tree_root *root, unsigned long index,
266 void *__radix_tree_lookup(struct radix_tree_root *root, unsigned long index,
270 bool __radix_tree_delete_node(struct radix_tree_root *root,
275 radix_tree_gang_lookup(struct radix_tree_root *root, void **results,
277 unsigned int radix_tree_gang_lookup_slot(struct radix_tree_root *root,
283 void *radix_tree_tag_set(struct radix_tree_root *root,
[all …]
Drbtree_latch.h77 struct rb_root *root = &ltr->tree[idx]; in __lt_insert() local
78 struct rb_node **link = &root->rb_node; in __lt_insert()
94 rb_insert_color(node, root); in __lt_insert()
143 struct latch_tree_root *root, in latch_tree_insert() argument
146 raw_write_seqcount_latch(&root->seq); in latch_tree_insert()
147 __lt_insert(node, root, 0, ops->less); in latch_tree_insert()
148 raw_write_seqcount_latch(&root->seq); in latch_tree_insert()
149 __lt_insert(node, root, 1, ops->less); in latch_tree_insert()
170 struct latch_tree_root *root, in latch_tree_erase() argument
173 raw_write_seqcount_latch(&root->seq); in latch_tree_erase()
[all …]
Drbtree_augmented.h44 extern void __rb_insert_augmented(struct rb_node *node, struct rb_root *root,
57 rb_insert_augmented(struct rb_node *node, struct rb_root *root, in rb_insert_augmented() argument
60 __rb_insert_augmented(node, root, augment->rotate); in rb_insert_augmented()
122 struct rb_node *parent, struct rb_root *root) in __rb_change_child() argument
130 WRITE_ONCE(root->rb_node, new); in __rb_change_child()
133 extern void __rb_erase_color(struct rb_node *parent, struct rb_root *root,
137 __rb_erase_augmented(struct rb_node *node, struct rb_root *root, in __rb_erase_augmented() argument
155 __rb_change_child(node, child, parent, root); in __rb_erase_augmented()
166 __rb_change_child(node, tmp, parent, root); in __rb_erase_augmented()
222 __rb_change_child(node, successor, tmp, root); in __rb_erase_augmented()
[all …]
Dfs_struct.h14 struct path root, pwd; member
26 static inline void get_fs_root(struct fs_struct *fs, struct path *root) in get_fs_root() argument
29 *root = fs->root; in get_fs_root()
30 path_get(root); in get_fs_root()
Dof_platform.h67 extern int of_platform_bus_probe(struct device_node *root,
71 extern int of_platform_populate(struct device_node *root,
75 extern int of_platform_default_populate(struct device_node *root,
80 static inline int of_platform_populate(struct device_node *root, in of_platform_populate() argument
87 static inline int of_platform_default_populate(struct device_node *root, in of_platform_default_populate() argument
Dinterval_tree_generic.h68 ITSTATIC void ITPREFIX ## _insert(ITSTRUCT *node, struct rb_root *root) \
70 struct rb_node **link = &root->rb_node, *rb_parent = NULL; \
87 rb_insert_augmented(&node->ITRB, root, &ITPREFIX ## _augment); \
90 ITSTATIC void ITPREFIX ## _remove(ITSTRUCT *node, struct rb_root *root) \
92 rb_erase_augmented(&node->ITRB, root, &ITPREFIX ## _augment); \
143 ITPREFIX ## _iter_first(struct rb_root *root, ITTYPE start, ITTYPE last) \
147 if (!root->rb_node) \
149 node = rb_entry(root->rb_node, ITSTRUCT, ITRB); \
Doprofile.h53 int (*create_files)(struct dentry * root);
127 int oprofilefs_create_file(struct dentry * root,
130 int oprofilefs_create_file_perm(struct dentry * root,
134 int oprofilefs_create_ulong(struct dentry * root,
138 int oprofilefs_create_ro_ulong(struct dentry * root,
142 int oprofilefs_create_ro_atomic(struct dentry * root,
Drbtree.h53 #define RB_EMPTY_ROOT(root) ((root)->rb_node == NULL) argument
78 struct rb_root *root);
120 #define rbtree_postorder_for_each_entry_safe(pos, n, root, field) \ argument
121 for (pos = rb_entry_safe(rb_first_postorder(root), typeof(*pos), field); \
Dsysctl.h138 struct ctl_table_root *root; member
147 struct rb_root root; member
157 struct ctl_table_set *(*lookup)(struct ctl_table_root *root,
172 struct ctl_table_root *root,
176 void register_sysctl_root(struct ctl_table_root *root);
211 struct ctl_table_root *root, in setup_sysctl_set() argument
Dinterval_tree.h14 interval_tree_insert(struct interval_tree_node *node, struct rb_root *root);
17 interval_tree_remove(struct interval_tree_node *node, struct rb_root *root);
20 interval_tree_iter_first(struct rb_root *root,
Dkernfs.h83 struct kernfs_root *root; member
147 int (*remount_fs)(struct kernfs_root *root, int *flags, char *data);
148 int (*show_options)(struct seq_file *sf, struct kernfs_root *root);
286 void kernfs_destroy_root(struct kernfs_root *root);
316 struct kernfs_root *root, unsigned long magic,
319 struct super_block *kernfs_pin_sb(struct kernfs_root *root, const void *ns);
372 static inline void kernfs_destroy_root(struct kernfs_root *root) { } in kernfs_destroy_root() argument
417 struct kernfs_root *root, unsigned long magic, in kernfs_mount_ns() argument
476 struct kernfs_root *root, unsigned long magic, in kernfs_mount() argument
479 return kernfs_mount_ns(fs_type, flags, root, in kernfs_mount()
Drmap.h28 struct anon_vma *root; /* Root of this anon_vma tree */ member
113 down_write(&anon_vma->root->rwsem); in anon_vma_lock_write()
118 up_write(&anon_vma->root->rwsem); in anon_vma_unlock_write()
123 down_read(&anon_vma->root->rwsem); in anon_vma_lock_read()
128 up_read(&anon_vma->root->rwsem); in anon_vma_unlock_read()
/linux-4.4.14/drivers/eisa/
Deisa-bus.c44 struct eisa_root_device *root, in is_forced_dev() argument
50 x = (root->bus_nr << 8) | edev->slot; in is_forced_dev()
188 static int __init eisa_init_device(struct eisa_root_device *root, in eisa_init_device() argument
196 sig_addr = SLOT_ADDRESS(root, slot) + EISA_VENDOR_ID_OFFSET; in eisa_init_device()
204 edev->state = inb(SLOT_ADDRESS(root, slot) + EISA_CONFIG_OFFSET) in eisa_init_device()
206 edev->base_addr = SLOT_ADDRESS(root, slot); in eisa_init_device()
207 edev->dma_mask = root->dma_mask; /* Default DMA mask */ in eisa_init_device()
209 edev->dev.parent = root->dev; in eisa_init_device()
213 dev_set_name(&edev->dev, "%02X:%02X", root->bus_nr, slot); in eisa_init_device()
223 if (is_forced_dev(enable_dev, enable_dev_count, root, edev)) in eisa_init_device()
[all …]
/linux-4.4.14/Documentation/target/
Dtcm_mod_builder.txt72 drwxr-xr-x 2 root root 4096 2010-10-05 03:23 .
73 drwxr-xr-x 9 root root 4096 2010-10-05 03:22 ..
74 -rw-r--r-- 1 root root 282 2010-10-05 03:22 Kbuild
75 -rw-r--r-- 1 root root 171 2010-10-05 03:22 Kconfig
76 -rw-r--r-- 1 root root 49 2010-10-05 03:23 modules.order
77 -rw-r--r-- 1 root root 738 2010-10-05 03:22 tcm_nab5000_base.h
78 -rw-r--r-- 1 root root 9096 2010-10-05 03:22 tcm_nab5000_configfs.c
79 -rw-r--r-- 1 root root 191200 2010-10-05 03:23 tcm_nab5000_configfs.o
80 -rw-r--r-- 1 root root 40504 2010-10-05 03:23 .tcm_nab5000_configfs.o.cmd
81 -rw-r--r-- 1 root root 5414 2010-10-05 03:22 tcm_nab5000_fabric.c
[all …]
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/disp/
Drootnv50.c75 struct nv50_disp_root *root = nv50_disp_root(object); in nv50_disp_root_mthd_() local
76 struct nv50_disp *disp = root->disp; in nv50_disp_root_mthd_()
196 struct nv50_disp_root *root = nv50_disp_root(oclass->parent); in nv50_disp_root_dmac_new_() local
197 return sclass->ctor(sclass->func, sclass->mthd, root, sclass->chid, in nv50_disp_root_dmac_new_()
206 struct nv50_disp_root *root = nv50_disp_root(oclass->parent); in nv50_disp_root_pioc_new_() local
207 return sclass->ctor(sclass->func, sclass->mthd, root, sclass->chid, in nv50_disp_root_pioc_new_()
215 struct nv50_disp_root *root = nv50_disp_root(object); in nv50_disp_root_child_get_() local
217 if (index < ARRAY_SIZE(root->func->dmac)) { in nv50_disp_root_child_get_()
218 sclass->base = root->func->dmac[index]->base; in nv50_disp_root_child_get_()
219 sclass->priv = root->func->dmac[index]; in nv50_disp_root_child_get_()
[all …]
Drootnv04.c38 nv04_disp_scanoutpos(struct nv04_disp_root *root, in nv04_disp_scanoutpos() argument
41 struct nvkm_device *device = root->disp->engine.subdev.device; in nv04_disp_scanoutpos()
42 struct nvkm_object *object = &root->object; in nv04_disp_scanoutpos()
84 struct nv04_disp_root *root = nv04_disp_root(object); in nv04_disp_mthd() local
104 return nv04_disp_scanoutpos(root, data, size, head); in nv04_disp_mthd()
122 struct nv04_disp_root *root; in nv04_disp_root_new() local
124 if (!(root = kzalloc(sizeof(*root), GFP_KERNEL))) in nv04_disp_root_new()
126 root->disp = disp; in nv04_disp_root_new()
127 *pobject = &root->object; in nv04_disp_root_new()
129 nvkm_object_ctor(&nv04_disp_root, oclass, &root->object); in nv04_disp_root_new()
Ddmacnv50.c36 struct nv50_disp_root *root; member
45 nvkm_ramht_remove(object->root->ramht, object->hash); in nv50_disp_dmac_child_del_()
59 struct nv50_disp_root *root = chan->base.root; in nv50_disp_dmac_child_new_() local
60 struct nvkm_device *device = root->disp->base.engine.subdev.device; in nv50_disp_dmac_child_new_()
68 object->root = root; in nv50_disp_dmac_child_new_()
88 struct nv50_disp *disp = chan->base.root->disp; in nv50_disp_dmac_child_get_()
136 struct nv50_disp_root *root, int chid, int head, u64 push, in nv50_disp_dmac_new_() argument
140 struct nvkm_device *device = root->disp->base.engine.subdev.device; in nv50_disp_dmac_new_()
151 ret = nv50_disp_chan_ctor(&nv50_disp_dmac_func_, mthd, root, in nv50_disp_dmac_new_()
181 return nvkm_ramht_insert(chan->base.root->ramht, object, in nv50_disp_dmac_bind()
[all …]
Dchannv50.c67 struct nv50_disp *disp = chan->root->disp; in nv50_disp_chan_mthd()
160 struct nv50_disp *disp = chan->root->disp; in nv50_disp_chan_rd32()
170 struct nv50_disp *disp = chan->root->disp; in nv50_disp_chan_wr32()
181 struct nv50_disp *disp = chan->root->disp; in nv50_disp_chan_ntfy()
196 struct nv50_disp *disp = chan->root->disp; in nv50_disp_chan_map()
245 struct nv50_disp *disp = chan->root->disp; in nv50_disp_chan_dtor()
266 struct nv50_disp_root *root, int chid, int head, in nv50_disp_chan_ctor() argument
270 struct nv50_disp *disp = root->disp; in nv50_disp_chan_ctor()
275 chan->root = root; in nv50_disp_chan_ctor()
290 struct nv50_disp_root *root, int chid, int head, in nv50_disp_chan_new_() argument
[all …]
Drootgf119.c69 gf119_disp_root_fini(struct nv50_disp_root *root) in gf119_disp_root_fini() argument
71 struct nvkm_device *device = root->disp->base.engine.subdev.device; in gf119_disp_root_fini()
77 gf119_disp_root_init(struct nv50_disp_root *root) in gf119_disp_root_init() argument
79 struct nv50_disp *disp = root->disp; in gf119_disp_root_init()
123 nvkm_wr32(device, 0x610010, (root->instmem->addr >> 8) | 9); in gf119_disp_root_init()
/linux-4.4.14/drivers/md/persistent-data/
Ddm-bitset.c36 int dm_bitset_empty(struct dm_disk_bitset *info, dm_block_t *root) in dm_bitset_empty() argument
38 return dm_array_empty(&info->array_info, root); in dm_bitset_empty()
42 int dm_bitset_resize(struct dm_disk_bitset *info, dm_block_t root, in dm_bitset_resize() argument
51 return dm_array_resize(&info->array_info, root, old_blocks, new_blocks, in dm_bitset_resize()
56 int dm_bitset_del(struct dm_disk_bitset *info, dm_block_t root) in dm_bitset_del() argument
58 return dm_array_del(&info->array_info, root); in dm_bitset_del()
62 int dm_bitset_flush(struct dm_disk_bitset *info, dm_block_t root, in dm_bitset_flush() argument
74 r = dm_array_set_value(&info->array_info, root, info->current_index, in dm_bitset_flush()
86 static int read_bits(struct dm_disk_bitset *info, dm_block_t root, in read_bits() argument
92 r = dm_array_get_value(&info->array_info, root, array_index, &value); in read_bits()
[all …]
Ddm-btree.h94 int dm_btree_empty(struct dm_btree_info *info, dm_block_t *root);
100 int dm_btree_del(struct dm_btree_info *info, dm_block_t root);
109 int dm_btree_lookup(struct dm_btree_info *info, dm_block_t root,
116 int dm_btree_lookup_next(struct dm_btree_info *info, dm_block_t root,
122 int dm_btree_insert(struct dm_btree_info *info, dm_block_t root,
131 int dm_btree_insert_notify(struct dm_btree_info *info, dm_block_t root,
141 int dm_btree_remove(struct dm_btree_info *info, dm_block_t root,
150 int dm_btree_remove_leaves(struct dm_btree_info *info, dm_block_t root,
159 int dm_btree_find_lowest_key(struct dm_btree_info *info, dm_block_t root,
167 int dm_btree_find_highest_key(struct dm_btree_info *info, dm_block_t root,
[all …]
Ddm-array.c253 static int lookup_ablock(struct dm_array_info *info, dm_block_t root, in lookup_ablock() argument
261 r = dm_btree_lookup(&info->btree_info, root, &key, &block_le); in lookup_ablock()
272 struct dm_block *block, dm_block_t *root) in insert_ablock() argument
277 return dm_btree_insert(&info->btree_info, *root, &index, &block_le, root); in insert_ablock()
285 static int shadow_ablock(struct dm_array_info *info, dm_block_t *root, in shadow_ablock() argument
297 r = dm_btree_lookup(&info->btree_info, *root, &key, &block_le); in shadow_ablock()
328 r = insert_ablock(info, index, *block, root); in shadow_ablock()
340 const void *value, dm_block_t *root) in insert_new_ablock() argument
351 r = insert_ablock(info, block_index, block, root); in insert_new_ablock()
360 dm_block_t *root) in insert_full_ablocks() argument
[all …]
Ddm-array.h92 int dm_array_empty(struct dm_array_info *info, dm_block_t *root);
109 int dm_array_resize(struct dm_array_info *info, dm_block_t root,
118 int dm_array_del(struct dm_array_info *info, dm_block_t root);
130 int dm_array_get_value(struct dm_array_info *info, dm_block_t root,
148 int dm_array_set_value(struct dm_array_info *info, dm_block_t root,
160 int dm_array_walk(struct dm_array_info *info, dm_block_t root,
Ddm-bitset.h112 int dm_bitset_del(struct dm_disk_bitset *info, dm_block_t root);
124 int dm_bitset_set_bit(struct dm_disk_bitset *info, dm_block_t root,
137 int dm_bitset_clear_bit(struct dm_disk_bitset *info, dm_block_t root,
151 int dm_bitset_test_bit(struct dm_disk_bitset *info, dm_block_t root,
161 int dm_bitset_flush(struct dm_disk_bitset *info, dm_block_t root,
Ddm-btree.c126 int dm_btree_empty(struct dm_btree_info *info, dm_block_t *root) in dm_btree_empty() argument
148 *root = dm_block_location(b); in dm_btree_empty()
270 int dm_btree_del(struct dm_btree_info *info, dm_block_t root) in dm_btree_del() argument
282 r = push_frame(s, root, 0); in dm_btree_del()
369 int dm_btree_lookup(struct dm_btree_info *info, dm_block_t root, in dm_btree_lookup() argument
392 r = btree_lookup_raw(&spine, root, keys[level], in dm_btree_lookup()
406 root = le64_to_cpu(internal_value_le); in dm_btree_lookup()
414 static int dm_btree_lookup_next_single(struct dm_btree_info *info, dm_block_t root, in dm_btree_lookup_next_single() argument
422 r = bn_read_lock(info, root, &node); in dm_btree_lookup_next_single()
458 int dm_btree_lookup_next(struct dm_btree_info *info, dm_block_t root, in dm_btree_lookup_next() argument
[all …]
Ddm-btree-remove.c147 dm_block_t root; in init_child() local
150 root = value64(parent, index); in init_child()
152 r = dm_tm_shadow_block(info->tm, root, &btree_node_validator, in init_child()
464 struct dm_btree_value_type *vt, dm_block_t root, in remove_raw() argument
471 r = shadow_step(s, root, vt); in remove_raw()
506 root = value64(n, i); in remove_raw()
512 int dm_btree_remove(struct dm_btree_info *info, dm_block_t root, in dm_btree_remove() argument
527 root, keys[level], (unsigned *)&index); in dm_btree_remove()
533 root = value64(n, index); in dm_btree_remove()
556 struct dm_btree_value_type *vt, dm_block_t root, in remove_nearest() argument
[all …]
/linux-4.4.14/arch/powerpc/platforms/85xx/
Dmpc85xx_rdb.c50 unsigned long root = of_get_flat_dt_root(); in mpc85xx_rdb_pic_init() local
56 if (of_flat_dt_is_compatible(root, "fsl,MPC85XXRDB-CAMP")) { in mpc85xx_rdb_pic_init()
151 unsigned long root = of_get_flat_dt_root(); in p2020_rdb_probe() local
153 if (of_flat_dt_is_compatible(root, "fsl,P2020RDB")) in p2020_rdb_probe()
160 unsigned long root = of_get_flat_dt_root(); in p1020_rdb_probe() local
162 if (of_flat_dt_is_compatible(root, "fsl,P1020RDB")) in p1020_rdb_probe()
169 unsigned long root = of_get_flat_dt_root(); in p1020_rdb_pc_probe() local
171 return of_flat_dt_is_compatible(root, "fsl,P1020RDB-PC"); in p1020_rdb_pc_probe()
176 unsigned long root = of_get_flat_dt_root(); in p1020_rdb_pd_probe() local
178 return of_flat_dt_is_compatible(root, "fsl,P1020RDB-PD"); in p1020_rdb_pd_probe()
[all …]
Dxes_mpc85xx.c119 struct device_node *root; in xes_mpc85xx_setup_arch() local
122 root = of_find_node_by_path("/"); in xes_mpc85xx_setup_arch()
123 if (root == NULL) in xes_mpc85xx_setup_arch()
126 model = of_get_property(root, "model", NULL); in xes_mpc85xx_setup_arch()
147 unsigned long root = of_get_flat_dt_root(); in xes_mpc8572_probe() local
149 return of_flat_dt_is_compatible(root, "xes,MPC8572"); in xes_mpc8572_probe()
154 unsigned long root = of_get_flat_dt_root(); in xes_mpc8548_probe() local
156 return of_flat_dt_is_compatible(root, "xes,MPC8548"); in xes_mpc8548_probe()
161 unsigned long root = of_get_flat_dt_root(); in xes_mpc8540_probe() local
163 return of_flat_dt_is_compatible(root, "xes,MPC8540"); in xes_mpc8540_probe()
Dmpc85xx_ds.c69 unsigned long root = of_get_flat_dt_root(); in mpc85xx_ds_pic_init() local
71 if (of_flat_dt_is_compatible(root, "fsl,MPC8572DS-CAMP")) { in mpc85xx_ds_pic_init()
172 unsigned long root = of_get_flat_dt_root(); in mpc8544_ds_probe() local
174 return !!of_flat_dt_is_compatible(root, "MPC8544DS"); in mpc8544_ds_probe()
190 unsigned long root = of_get_flat_dt_root(); in mpc8572_ds_probe() local
192 return !!of_flat_dt_is_compatible(root, "fsl,MPC8572DS"); in mpc8572_ds_probe()
200 unsigned long root = of_get_flat_dt_root(); in p2020_ds_probe() local
202 return !!of_flat_dt_is_compatible(root, "fsl,P2020DS"); in p2020_ds_probe()
Dp1010rdb.c65 unsigned long root = of_get_flat_dt_root(); in p1010_rdb_probe() local
67 if (of_flat_dt_is_compatible(root, "fsl,P1010RDB")) in p1010_rdb_probe()
69 if (of_flat_dt_is_compatible(root, "fsl,P1010RDB-PB")) in p1010_rdb_probe()
/linux-4.4.14/tools/perf/util/
Dstrfilter.c27 strfilter_node__delete(filter->root); in strfilter__delete()
79 struct strfilter_node root, *cur, *last_op; in strfilter_node__new() local
85 memset(&root, 0, sizeof(root)); in strfilter_node__new()
86 last_op = cur = &root; in strfilter_node__new()
101 if (!cur->r || !root.r) in strfilter_node__new()
103 cur = strfilter_node__alloc(OP_or, root.r, NULL); in strfilter_node__new()
106 root.r = cur; in strfilter_node__new()
142 return root.r; in strfilter_node__new()
147 strfilter_node__delete(root.r); in strfilter_node__new()
161 filter->root = strfilter_node__new(rules, &ep); in strfilter__new()
[all …]
Dcallchain.h131 static inline void callchain_init(struct callchain_root *root) in callchain_init() argument
133 INIT_LIST_HEAD(&root->node.val); in callchain_init()
135 root->node.parent = NULL; in callchain_init()
136 root->node.hit = 0; in callchain_init()
137 root->node.children_hit = 0; in callchain_init()
138 root->node.rb_root_in = RB_ROOT; in callchain_init()
139 root->max_depth = 0; in callchain_init()
148 int callchain_append(struct callchain_root *root,
233 void free_callchain(struct callchain_root *root);
Dcallchain.c204 rb_insert_callchain(struct rb_root *root, struct callchain_node *chain, in rb_insert_callchain() argument
207 struct rb_node **p = &root->rb_node; in rb_insert_callchain()
240 rb_insert_color(&chain->rb_node, root); in rb_insert_callchain()
267 sort_chain_flat(struct rb_root *rb_root, struct callchain_root *root, in sort_chain_flat() argument
270 __sort_chain_flat(rb_root, &root->node, min_hit); in sort_chain_flat()
517 append_chain(struct callchain_node *root,
522 append_chain_children(struct callchain_node *root, in append_chain_children() argument
528 struct rb_node **p = &root->rb_root_in.rb_node; in append_chain_children()
553 rnode = add_child(root, cursor, period); in append_chain_children()
555 rb_insert_color(&rnode->rb_node_in, &root->rb_root_in); in append_chain_children()
[all …]
Ddso.c557 struct rb_root *root = &dso->data.cache; in dso_cache__free() local
558 struct rb_node *next = rb_first(root); in dso_cache__free()
566 rb_erase(&cache->rb_node, root); in dso_cache__free()
574 const struct rb_root *root = &dso->data.cache; in dso_cache__find() local
575 struct rb_node * const *p = &root->rb_node; in dso_cache__find()
600 struct rb_root *root = &dso->data.cache; in dso_cache__insert() local
601 struct rb_node **p = &root->rb_node; in dso_cache__insert()
623 rb_insert_color(&new->rb_node, root); in dso_cache__insert()
892 static struct dso *__dso__findlink_by_longname(struct rb_root *root, in __dso__findlink_by_longname() argument
895 struct rb_node **p = &root->rb_node; in __dso__findlink_by_longname()
[all …]
/linux-4.4.14/tools/lib/
Drbtree.c63 struct rb_root *root, int color) in __rb_rotate_set_parents() argument
68 __rb_change_child(old, new, parent, root); in __rb_rotate_set_parents()
72 __rb_insert(struct rb_node *node, struct rb_root *root, in __rb_insert() argument
155 __rb_rotate_set_parents(gparent, parent, root, RB_RED); in __rb_insert()
189 __rb_rotate_set_parents(gparent, parent, root, RB_RED); in __rb_insert()
201 ____rb_erase_color(struct rb_node *parent, struct rb_root *root, in ____rb_erase_color() argument
229 __rb_rotate_set_parents(parent, sibling, root, in ____rb_erase_color()
304 __rb_rotate_set_parents(parent, sibling, root, in ____rb_erase_color()
315 __rb_rotate_set_parents(parent, sibling, root, in ____rb_erase_color()
354 __rb_rotate_set_parents(parent, sibling, root, in ____rb_erase_color()
[all …]
/linux-4.4.14/fs/nfs/blocklayout/
Dextent_tree.c18 ext_tree_first(struct rb_root *root) in ext_tree_first() argument
20 struct rb_node *node = rb_first(root); in ext_tree_first()
45 __ext_tree_search(struct rb_root *root, sector_t start) in __ext_tree_search() argument
47 struct rb_node *node = root->rb_node; in __ext_tree_search()
94 ext_try_to_merge_left(struct rb_root *root, struct pnfs_block_extent *be) in ext_try_to_merge_left() argument
100 rb_erase(&be->be_node, root); in ext_try_to_merge_left()
110 ext_try_to_merge_right(struct rb_root *root, struct pnfs_block_extent *be) in ext_try_to_merge_right() argument
116 rb_erase(&right->be_node, root); in ext_try_to_merge_right()
125 __ext_tree_insert(struct rb_root *root, in __ext_tree_insert() argument
128 struct rb_node **p = &root->rb_node, *parent = NULL; in __ext_tree_insert()
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/arm/
Dfsl.txt5 Required root node properties:
9 Required root node properties:
13 Required root node properties:
17 Required root node properties:
21 Required root node properties:
25 Required root node properties:
29 Required root node properties:
33 Required root node properties:
37 Required root node properties:
41 Required root node properties:
[all …]
Drockchip.txt5 Required root node properties:
9 Required root node properties:
13 Required root node properties:
17 Required root node properties:
21 Required root node properties:
25 Required root node properties:
31 Required root node properties:
35 Required root node properties:
39 Required root node properties:
46 Required root node properties:
[all …]
Dmediatek.txt6 Required root node property:
21 Required root node properties:
24 Required root node properties:
27 Required root node properties:
30 Required root node properties:
33 Required root node properties:
36 Required root node properties:
39 Required root node properties:
Dspear.txt5 Required root node property:
9 Required root node property:
13 Required root node property:
17 Required root node property:
21 Required root node property:
25 Required root node property:
Dvt8500.txt5 Required root node property:
9 Required root node property:
13 Required root node property:
17 Required root node property:
21 Required root node property:
Dsti.txt5 Required root node property:
9 Required root node property:
13 Required root node property:
17 Required root node property:
21 Required root node property:
Daltera.txt5 Required root node properties:
9 Required root node properties:
13 Required root node properties:
Ddavinci.txt5 Required root node properties:
9 Required root node properties:
16 Required root node properties:
/linux-4.4.14/drivers/staging/lustre/lustre/ldlm/
Dinterval_tree.c152 struct interval_node **root) in __rotate_left() argument
169 *root = right; in __rotate_left()
181 struct interval_node **root) in __rotate_right() argument
198 *root = left; in __rotate_right()
218 struct interval_node **root) in interval_insert_color() argument
238 __rotate_left(parent, root); in interval_insert_color()
244 __rotate_right(gparent, root); in interval_insert_color()
258 __rotate_right(parent, root); in interval_insert_color()
264 __rotate_left(gparent, root); in interval_insert_color()
268 (*root)->in_color = INTERVAL_BLACK; in interval_insert_color()
[all …]
/linux-4.4.14/sound/firewire/digi00x/
Ddigi00x-proc.c71 struct snd_info_entry *root, *entry; in snd_dg00x_proc_init() local
77 root = snd_info_create_card_entry(dg00x->card, "firewire", in snd_dg00x_proc_init()
79 if (root == NULL) in snd_dg00x_proc_init()
82 root->mode = S_IFDIR | S_IRUGO | S_IXUGO; in snd_dg00x_proc_init()
83 if (snd_info_register(root) < 0) { in snd_dg00x_proc_init()
84 snd_info_free_entry(root); in snd_dg00x_proc_init()
88 entry = snd_info_create_card_entry(dg00x->card, "clock", root); in snd_dg00x_proc_init()
90 snd_info_free_entry(root); in snd_dg00x_proc_init()
97 snd_info_free_entry(root); in snd_dg00x_proc_init()
/linux-4.4.14/drivers/mmc/core/
Ddebugfs.c238 struct dentry *root; in mmc_add_host_debugfs() local
240 root = debugfs_create_dir(mmc_hostname(host), NULL); in mmc_add_host_debugfs()
241 if (IS_ERR(root)) in mmc_add_host_debugfs()
244 if (!root) in mmc_add_host_debugfs()
249 host->debugfs_root = root; in mmc_add_host_debugfs()
251 if (!debugfs_create_file("ios", S_IRUSR, root, host, &mmc_ios_fops)) in mmc_add_host_debugfs()
254 if (!debugfs_create_file("clock", S_IRUSR | S_IWUSR, root, host, in mmc_add_host_debugfs()
263 root, in mmc_add_host_debugfs()
270 debugfs_remove_recursive(root); in mmc_add_host_debugfs()
359 struct dentry *root; in mmc_add_card_debugfs() local
[all …]
/linux-4.4.14/drivers/oprofile/
Doprofile_files.c178 void oprofile_create_files(struct dentry *root) in oprofile_create_files() argument
186 oprofilefs_create_file(root, "enable", &enable_fops); in oprofile_create_files()
187 oprofilefs_create_file_perm(root, "dump", &dump_fops, 0666); in oprofile_create_files()
188 oprofilefs_create_file(root, "buffer", &event_buffer_fops); in oprofile_create_files()
189 oprofilefs_create_ulong(root, "buffer_size", &oprofile_buffer_size); in oprofile_create_files()
190 oprofilefs_create_ulong(root, "buffer_watershed", &oprofile_buffer_watershed); in oprofile_create_files()
191 oprofilefs_create_ulong(root, "cpu_buffer_size", &oprofile_cpu_buffer_size); in oprofile_create_files()
192 oprofilefs_create_file(root, "cpu_type", &cpu_type_fops); in oprofile_create_files()
193 oprofilefs_create_file(root, "backtrace_depth", &depth_fops); in oprofile_create_files()
194 oprofilefs_create_file(root, "pointer_size", &pointer_size_fops); in oprofile_create_files()
[all …]
Doprofilefs.c135 static int __oprofilefs_create_file(struct dentry *root, char const *name, in __oprofilefs_create_file() argument
141 mutex_lock(&d_inode(root)->i_mutex); in __oprofilefs_create_file()
142 dentry = d_alloc_name(root, name); in __oprofilefs_create_file()
144 mutex_unlock(&d_inode(root)->i_mutex); in __oprofilefs_create_file()
147 inode = oprofilefs_get_inode(root->d_sb, S_IFREG | perm); in __oprofilefs_create_file()
150 mutex_unlock(&d_inode(root)->i_mutex); in __oprofilefs_create_file()
156 mutex_unlock(&d_inode(root)->i_mutex); in __oprofilefs_create_file()
161 int oprofilefs_create_ulong(struct dentry *root, in oprofilefs_create_ulong() argument
164 return __oprofilefs_create_file(root, name, in oprofilefs_create_ulong()
169 int oprofilefs_create_ro_ulong(struct dentry *root, in oprofilefs_create_ro_ulong() argument
[all …]
/linux-4.4.14/sound/firewire/tascam/
Dtascam-proc.c53 static void add_node(struct snd_tscm *tscm, struct snd_info_entry *root, in add_node() argument
60 entry = snd_info_create_card_entry(tscm->card, name, root); in add_node()
71 struct snd_info_entry *root; in snd_tscm_proc_init() local
77 root = snd_info_create_card_entry(tscm->card, "firewire", in snd_tscm_proc_init()
79 if (root == NULL) in snd_tscm_proc_init()
81 root->mode = S_IFDIR | S_IRUGO | S_IXUGO; in snd_tscm_proc_init()
82 if (snd_info_register(root) < 0) { in snd_tscm_proc_init()
83 snd_info_free_entry(root); in snd_tscm_proc_init()
87 add_node(tscm, root, "firmware", proc_read_firmware); in snd_tscm_proc_init()
/linux-4.4.14/arch/x86/pci/
Dacpi.c184 struct acpi_pci_root *root = ci->root; in setup_mcfg_map() local
188 info->start_bus = (u8)root->secondary.start; in setup_mcfg_map()
189 info->end_bus = (u8)root->secondary.end; in setup_mcfg_map()
201 root->mcfg_addr); in setup_mcfg_map()
236 static int pci_acpi_root_get_node(struct acpi_pci_root *root) in pci_acpi_root_get_node() argument
238 int busnum = root->secondary.start; in pci_acpi_root_get_node()
239 struct acpi_device *device = root->device; in pci_acpi_root_get_node()
288 int busnum = ci->root->secondary.start; in pci_acpi_root_prepare_resources()
317 struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root) in pci_acpi_scan_root() argument
319 int domain = root->segment; in pci_acpi_scan_root()
[all …]
/linux-4.4.14/net/bridge/
Dbr_stp_bpdu.c96 buf[5] = bpdu->root.prio[0]; in br_send_config_bpdu()
97 buf[6] = bpdu->root.prio[1]; in br_send_config_bpdu()
98 buf[7] = bpdu->root.addr[0]; in br_send_config_bpdu()
99 buf[8] = bpdu->root.addr[1]; in br_send_config_bpdu()
100 buf[9] = bpdu->root.addr[2]; in br_send_config_bpdu()
101 buf[10] = bpdu->root.addr[3]; in br_send_config_bpdu()
102 buf[11] = bpdu->root.addr[4]; in br_send_config_bpdu()
103 buf[12] = bpdu->root.addr[5]; in br_send_config_bpdu()
201 bpdu.root.prio[0] = buf[2]; in br_stp_rcv()
202 bpdu.root.prio[1] = buf[3]; in br_stp_rcv()
[all …]
/linux-4.4.14/Documentation/
Dinitrd.txt9 This RAM disk can then be mounted as the root file system and programs
10 can be run from it. Afterwards, a new root file system can be mounted
11 from a different device. The previous root (from initrd) is then moved
30 3) if the root device is not /dev/ram0, the old (deprecated)
31 change_root procedure is followed. see the "Obsolete root change
33 4) root device is mounted. if it is /dev/ram0, the initrd image is
34 then mounted as root
38 6) init mounts the "real" root file system
39 7) init places the root file system at the root directory using the
41 8) init execs the /sbin/init on the new root filesystem, performing
[all …]
DIRQ-affinity.txt21 [root@moon 44]# cd /proc/irq/44
22 [root@moon 44]# cat smp_affinity
25 [root@moon 44]# echo 0f > smp_affinity
26 [root@moon 44]# cat smp_affinity
28 [root@moon 44]# ping -f h
34 [root@moon 44]# cat /proc/interrupts | grep 'CPU\|44:'
42 [root@moon 44]# echo f0 > smp_affinity
43 [root@moon 44]# cat smp_affinity
45 [root@moon 44]# ping -f h
51 [root@moon 44]# cat /proc/interrupts | 'CPU\|44:'
[all …]
/linux-4.4.14/arch/powerpc/platforms/52xx/
Defika.c75 struct device_node *root; in efika_pcisetup() local
78 root = of_find_node_by_path("/"); in efika_pcisetup()
79 if (root == NULL) { in efika_pcisetup()
86 pcictrl = of_get_next_child(root, pcictrl); in efika_pcisetup()
91 of_node_put(root); in efika_pcisetup()
146 struct device_node *root; in efika_show_cpuinfo() local
151 root = of_find_node_by_path("/"); in efika_show_cpuinfo()
152 if (!root) in efika_show_cpuinfo()
155 revision = of_get_property(root, "revision", NULL); in efika_show_cpuinfo()
156 codegendescription = of_get_property(root, "CODEGEN,description", NULL); in efika_show_cpuinfo()
[all …]
/linux-4.4.14/drivers/misc/genwqe/
Dcard_debugfs.c346 struct dentry *root; in genwqe_init_debugfs() local
355 root = debugfs_create_dir(card_name, cd->debugfs_genwqe); in genwqe_init_debugfs()
356 if (!root) { in genwqe_init_debugfs()
362 file = debugfs_create_file("ddcb_info", S_IRUGO, root, cd, in genwqe_init_debugfs()
369 file = debugfs_create_file("info", S_IRUGO, root, cd, in genwqe_init_debugfs()
376 file = debugfs_create_x64("err_inject", 0666, root, &cd->err_inject); in genwqe_init_debugfs()
382 file = debugfs_create_u32("ddcb_software_timeout", 0666, root, in genwqe_init_debugfs()
389 file = debugfs_create_u32("kill_timeout", 0666, root, in genwqe_init_debugfs()
398 cd->debugfs_root = root; in genwqe_init_debugfs()
402 file = debugfs_create_file("curr_regs", S_IRUGO, root, cd, in genwqe_init_debugfs()
[all …]
/linux-4.4.14/fs/cachefiles/
Dsecurity.c54 struct dentry *root) in cachefiles_check_cache_dir() argument
58 ret = security_inode_mkdir(d_backing_inode(root), root, 0); in cachefiles_check_cache_dir()
65 ret = security_inode_create(d_backing_inode(root), root, 0); in cachefiles_check_cache_dir()
80 struct dentry *root, in cachefiles_determine_cache_security() argument
98 ret = set_create_files_as(new, d_backing_inode(root)); in cachefiles_determine_cache_security()
110 ret = cachefiles_check_cache_dir(cache, root); in cachefiles_determine_cache_security()
Dbind.c89 struct dentry *graveyard, *cachedir, *root; in cachefiles_daemon_add_cache() local
122 root = path.dentry; in cachefiles_daemon_add_cache()
126 if (d_is_negative(root) || in cachefiles_daemon_add_cache()
127 !d_backing_inode(root)->i_op->lookup || in cachefiles_daemon_add_cache()
128 !d_backing_inode(root)->i_op->mkdir || in cachefiles_daemon_add_cache()
129 !d_backing_inode(root)->i_op->setxattr || in cachefiles_daemon_add_cache()
130 !d_backing_inode(root)->i_op->getxattr || in cachefiles_daemon_add_cache()
131 !root->d_sb->s_op->statfs || in cachefiles_daemon_add_cache()
132 !root->d_sb->s_op->sync_fs) in cachefiles_daemon_add_cache()
136 if (root->d_sb->s_flags & MS_RDONLY) in cachefiles_daemon_add_cache()
[all …]
/linux-4.4.14/sound/firewire/oxfw/
Doxfw-proc.c78 static void add_node(struct snd_oxfw *oxfw, struct snd_info_entry *root, in add_node() argument
85 entry = snd_info_create_card_entry(oxfw->card, name, root); in add_node()
96 struct snd_info_entry *root; in snd_oxfw_proc_init() local
102 root = snd_info_create_card_entry(oxfw->card, "firewire", in snd_oxfw_proc_init()
104 if (root == NULL) in snd_oxfw_proc_init()
106 root->mode = S_IFDIR | S_IRUGO | S_IXUGO; in snd_oxfw_proc_init()
107 if (snd_info_register(root) < 0) { in snd_oxfw_proc_init()
108 snd_info_free_entry(root); in snd_oxfw_proc_init()
112 add_node(oxfw, root, "formation", proc_read_formation); in snd_oxfw_proc_init()
/linux-4.4.14/lib/zlib_inflate/
Dinftrees.c29 unsigned root; /* number of index bits for root table */ in zlib_inflate_table() local
99 root = *bits; in zlib_inflate_table()
102 if (root > max) root = max; in zlib_inflate_table()
114 if (root < min) root = min; in zlib_inflate_table()
191 curr = root; /* current table index bits */ in zlib_inflate_table()
194 used = 1U << root; /* use root table entries */ in zlib_inflate_table()
246 if (len > root && (huff & mask) != low) { in zlib_inflate_table()
249 drop = root; in zlib_inflate_table()
272 (*table)[low].bits = (unsigned char)root; in zlib_inflate_table()
291 len = root; in zlib_inflate_table()
[all …]
/linux-4.4.14/arch/powerpc/platforms/chrp/
Dsetup.c100 struct device_node *root; in chrp_show_cpuinfo() local
103 root = of_find_node_by_path("/"); in chrp_show_cpuinfo()
104 if (root) in chrp_show_cpuinfo()
105 model = of_get_property(root, "model", NULL); in chrp_show_cpuinfo()
153 of_node_put(root); in chrp_show_cpuinfo()
196 struct device_node *root; in sio_init() local
199 root = of_find_node_by_path("/"); in sio_init()
200 if (!root) in sio_init()
203 model = of_get_property(root, "model", NULL); in sio_init()
211 of_node_put(root); in sio_init()
[all …]
/linux-4.4.14/kernel/
Dcgroup.c297 return cgrp->root == &cgrp_dfl_root; in cgroup_on_dfl()
379 if (!(cgrp->root->subsys_mask & (1 << ss->id))) in cgroup_e_css()
549 #define for_each_root(root) \ argument
550 list_for_each_entry((root), &cgroup_roots, root_list)
857 BUG_ON(cgrp1->root != cgrp2->root); in compare_css_sets()
866 if (cgrp1->root == new_cgrp->root) { in compare_css_sets()
887 struct cgroup_root *root = cgrp->root; in find_existing_css_set() local
899 if (root->subsys_mask & (1UL << i)) { in find_existing_css_set()
1054 if (c->root == cgrp->root) in find_css_set()
1084 return root_cgrp->root; in cgroup_root_from_kf()
[all …]
Dresource.c106 struct resource *root = m->private; in r_show() local
108 int width = root->end < 0x10000 ? 4 : 8; in r_show()
112 if (p->parent == root) in r_show()
208 static struct resource * __request_resource(struct resource *root, struct resource *new) in __request_resource() argument
215 return root; in __request_resource()
216 if (start < root->start) in __request_resource()
217 return root; in __request_resource()
218 if (end > root->end) in __request_resource()
219 return root; in __request_resource()
220 p = &root->child; in __request_resource()
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/arm/bcm/
Dbrcm,bcm2835.txt5 Required root node properties:
9 Required root node properties:
13 Required root node properties:
18 Required root node properties:
22 Required root node properties:
26 Required root node properties:
30 Required root node properties:
34 Required root node properties:
/linux-4.4.14/Documentation/isdn/
DREADME.avmb180 dr-xr-xr-x 2 root root 0 Jul 1 14:03 .
81 dr-xr-xr-x 82 root root 0 Jun 30 19:08 ..
82 -r--r--r-- 1 root root 0 Jul 1 14:03 applications
83 -r--r--r-- 1 root root 0 Jul 1 14:03 applstats
84 -r--r--r-- 1 root root 0 Jul 1 14:03 capi20
85 -r--r--r-- 1 root root 0 Jul 1 14:03 capidrv
86 -r--r--r-- 1 root root 0 Jul 1 14:03 controller
87 -r--r--r-- 1 root root 0 Jul 1 14:03 contrstats
88 -r--r--r-- 1 root root 0 Jul 1 14:03 driver
89 -r--r--r-- 1 root root 0 Jul 1 14:03 ncci
[all …]
/linux-4.4.14/drivers/infiniband/hw/usnic/
Dusnic_uiom_interval_tree.h51 struct rb_root *root);
54 struct rb_root *root);
56 usnic_uiom_interval_tree_iter_first(struct rb_root *root,
66 int usnic_uiom_insert_interval(struct rb_root *root,
74 void usnic_uiom_remove_interval(struct rb_root *root,
84 struct rb_root *root,
Dusnic_uiom_interval_tree.c103 find_intervals_intersection_sorted(struct rb_root *root, unsigned long start, in find_intervals_intersection_sorted() argument
111 for (node = usnic_uiom_interval_tree_iter_first(root, start, last); in find_intervals_intersection_sorted()
121 struct rb_root *root, in usnic_uiom_get_intervals_diff() argument
131 find_intervals_intersection_sorted(root, start, last, in usnic_uiom_get_intervals_diff()
178 int usnic_uiom_insert_interval(struct rb_root *root, unsigned long start, in usnic_uiom_insert_interval() argument
189 find_intervals_intersection_sorted(root, start, last, in usnic_uiom_insert_interval()
233 usnic_uiom_interval_tree_remove(interval, root); in usnic_uiom_insert_interval()
238 usnic_uiom_interval_tree_insert(interval, root); in usnic_uiom_insert_interval()
249 void usnic_uiom_remove_interval(struct rb_root *root, unsigned long start, in usnic_uiom_remove_interval() argument
254 for (interval = usnic_uiom_interval_tree_iter_first(root, start, last); in usnic_uiom_remove_interval()
[all …]
/linux-4.4.14/drivers/of/
Dplatform.c387 int of_platform_bus_probe(struct device_node *root, in of_platform_bus_probe() argument
394 root = root ? of_node_get(root) : of_find_node_by_path("/"); in of_platform_bus_probe()
395 if (!root) in of_platform_bus_probe()
399 pr_debug(" starting at: %s\n", root->full_name); in of_platform_bus_probe()
402 if (of_match_node(matches, root)) { in of_platform_bus_probe()
403 rc = of_platform_bus_create(root, matches, NULL, parent, false); in of_platform_bus_probe()
404 } else for_each_child_of_node(root, child) { in of_platform_bus_probe()
414 of_node_put(root); in of_platform_bus_probe()
438 int of_platform_populate(struct device_node *root, in of_platform_populate() argument
446 root = root ? of_node_get(root) : of_find_node_by_path("/"); in of_platform_populate()
[all …]
/linux-4.4.14/arch/powerpc/platforms/cell/
Dqpace_setup.c49 struct device_node *root; in qpace_show_cpuinfo() local
52 root = of_find_node_by_path("/"); in qpace_show_cpuinfo()
53 if (root) in qpace_show_cpuinfo()
54 model = of_get_property(root, "model", NULL); in qpace_show_cpuinfo()
56 of_node_put(root); in qpace_show_cpuinfo()
124 unsigned long root = of_get_flat_dt_root(); in qpace_probe() local
126 if (!of_flat_dt_is_compatible(root, "IBM,QPACE")) in qpace_probe()
Dsetup.c70 struct device_node *root; in cell_show_cpuinfo() local
73 root = of_find_node_by_path("/"); in cell_show_cpuinfo()
74 if (root) in cell_show_cpuinfo()
75 model = of_get_property(root, "model", NULL); in cell_show_cpuinfo()
77 of_node_put(root); in cell_show_cpuinfo()
160 struct device_node *root = of_find_node_by_path("/"); in cell_publish_devices() local
170 for_each_child_of_node(root, np) { in cell_publish_devices()
258 unsigned long root = of_get_flat_dt_root(); in cell_probe() local
260 if (!of_flat_dt_is_compatible(root, "IBM,CBEA") && in cell_probe()
261 !of_flat_dt_is_compatible(root, "IBM,CPBW-1.0")) in cell_probe()
/linux-4.4.14/tools/include/linux/
Drbtree_augmented.h47 extern void __rb_insert_augmented(struct rb_node *node, struct rb_root *root,
60 rb_insert_augmented(struct rb_node *node, struct rb_root *root, in rb_insert_augmented() argument
63 __rb_insert_augmented(node, root, augment->rotate); in rb_insert_augmented()
125 struct rb_node *parent, struct rb_root *root) in __rb_change_child() argument
133 root->rb_node = new; in __rb_change_child()
136 extern void __rb_erase_color(struct rb_node *parent, struct rb_root *root,
140 __rb_erase_augmented(struct rb_node *node, struct rb_root *root, in __rb_erase_augmented() argument
157 __rb_change_child(node, child, parent, root); in __rb_erase_augmented()
168 __rb_change_child(node, tmp, parent, root); in __rb_erase_augmented()
219 __rb_change_child(node, successor, tmp, root); in __rb_erase_augmented()
[all …]
Drbtree.h52 #define RB_EMPTY_ROOT(root) ((root)->rb_node == NULL) argument
77 struct rb_root *root);
99 static inline void rb_erase_init(struct rb_node *n, struct rb_root *root) in rb_erase_init() argument
101 rb_erase(n, root); in rb_erase_init()
/linux-4.4.14/sound/firewire/bebob/
Dbebob_proc.c160 add_node(struct snd_bebob *bebob, struct snd_info_entry *root, const char *name, in add_node() argument
165 entry = snd_info_create_card_entry(bebob->card, name, root); in add_node()
176 struct snd_info_entry *root; in snd_bebob_proc_init() local
182 root = snd_info_create_card_entry(bebob->card, "firewire", in snd_bebob_proc_init()
184 if (root == NULL) in snd_bebob_proc_init()
186 root->mode = S_IFDIR | S_IRUGO | S_IXUGO; in snd_bebob_proc_init()
187 if (snd_info_register(root) < 0) { in snd_bebob_proc_init()
188 snd_info_free_entry(root); in snd_bebob_proc_init()
192 add_node(bebob, root, "clock", proc_read_clock); in snd_bebob_proc_init()
193 add_node(bebob, root, "firmware", proc_read_hw_info); in snd_bebob_proc_init()
[all …]
/linux-4.4.14/drivers/staging/rdma/amso1100/
Dc2_alloc.c72 struct sp_chunk **root) in c2_init_mqsp_pool() argument
74 return c2_alloc_mqsp_chunk(c2dev, gfp_mask, root); in c2_init_mqsp_pool()
77 void c2_free_mqsp_pool(struct c2_dev *c2dev, struct sp_chunk *root) in c2_free_mqsp_pool() argument
81 while (root) { in c2_free_mqsp_pool()
82 next = root->next; in c2_free_mqsp_pool()
83 dma_free_coherent(&c2dev->pcidev->dev, PAGE_SIZE, root, in c2_free_mqsp_pool()
84 dma_unmap_addr(root, mapping)); in c2_free_mqsp_pool()
85 root = next; in c2_free_mqsp_pool()
/linux-4.4.14/arch/avr32/kernel/
Docd.c121 struct dentry *root; in ocd_debugfs_init() local
123 root = debugfs_create_dir("ocd", NULL); in ocd_debugfs_init()
124 if (IS_ERR(root) || !root) in ocd_debugfs_init()
126 ocd_debugfs_root = root; in ocd_debugfs_init()
129 root, NULL, &fops_DC); in ocd_debugfs_init()
133 ocd_debugfs_DS = debugfs_create_file("DS", S_IRUSR, root, in ocd_debugfs_init()
138 ocd_debugfs_count = debugfs_create_file("count", S_IRUSR, root, in ocd_debugfs_init()
/linux-4.4.14/Documentation/rapidio/
Dsysfs.txt147 drwxr-xr-x 3 root root 0 Feb 11 15:10 00:e:0001
148 drwxr-xr-x 3 root root 0 Feb 11 15:10 00:e:0004
149 drwxr-xr-x 3 root root 0 Feb 11 15:10 00:e:0007
150 drwxr-xr-x 3 root root 0 Feb 11 15:10 00:s:0002
151 drwxr-xr-x 3 root root 0 Feb 11 15:10 00:s:0003
152 drwxr-xr-x 3 root root 0 Feb 11 15:10 00:s:0005
153 lrwxrwxrwx 1 root root 0 Feb 11 15:11 device -> ../../../0000:01:00.0
154 -r--r--r-- 1 root root 4096 Feb 11 15:11 port_destid
155 drwxr-xr-x 2 root root 0 Feb 11 15:11 power
156 lrwxrwxrwx 1 root root 0 Feb 11 15:04 subsystem -> ../../../../../../class/rapidio_port
[all …]
/linux-4.4.14/mm/
Dinterval_tree.c31 struct rb_root *root) in vma_interval_tree_insert_after() argument
58 rb_insert_augmented(&node->shared.rb, root, in vma_interval_tree_insert_after()
77 struct rb_root *root) in INTERVAL_TREE_DEFINE()
83 __anon_vma_interval_tree_insert(node, root); in INTERVAL_TREE_DEFINE()
87 struct rb_root *root) in anon_vma_interval_tree_remove() argument
89 __anon_vma_interval_tree_remove(node, root); in anon_vma_interval_tree_remove()
93 anon_vma_interval_tree_iter_first(struct rb_root *root, in anon_vma_interval_tree_iter_first() argument
96 return __anon_vma_interval_tree_iter_first(root, first, last); in anon_vma_interval_tree_iter_first()
Drmap.c86 anon_vma->root = anon_vma; in anon_vma_alloc()
114 if (rwsem_is_locked(&anon_vma->root->rwsem)) { in anon_vma_free()
227 static inline struct anon_vma *lock_anon_vma_root(struct anon_vma *root, struct anon_vma *anon_vma) in lock_anon_vma_root() argument
229 struct anon_vma *new_root = anon_vma->root; in lock_anon_vma_root()
230 if (new_root != root) { in lock_anon_vma_root()
231 if (WARN_ON_ONCE(root)) in lock_anon_vma_root()
232 up_write(&root->rwsem); in lock_anon_vma_root()
233 root = new_root; in lock_anon_vma_root()
234 down_write(&root->rwsem); in lock_anon_vma_root()
236 return root; in lock_anon_vma_root()
[all …]
Dcleancache.c307 struct dentry *root = debugfs_create_dir("cleancache", NULL); in init_cleancache() local
308 if (root == NULL) in init_cleancache()
310 debugfs_create_u64("succ_gets", S_IRUGO, root, &cleancache_succ_gets); in init_cleancache()
312 root, &cleancache_failed_gets); in init_cleancache()
313 debugfs_create_u64("puts", S_IRUGO, root, &cleancache_puts); in init_cleancache()
315 root, &cleancache_invalidates); in init_cleancache()
/linux-4.4.14/fs/autofs4/
Dexpire.c77 struct dentry *root) in get_next_positive_subdir() argument
79 struct autofs_sb_info *sbi = autofs4_sbi(root->d_sb); in get_next_positive_subdir()
84 spin_lock(&root->d_lock); in get_next_positive_subdir()
89 prev = dget_dlock(root); in get_next_positive_subdir()
94 if (next == &root->d_subdirs) { in get_next_positive_subdir()
95 spin_unlock(&root->d_lock); in get_next_positive_subdir()
112 spin_unlock(&root->d_lock); in get_next_positive_subdir()
124 struct dentry *root) in get_next_positive_dentry() argument
126 struct autofs_sb_info *sbi = autofs4_sbi(root->d_sb); in get_next_positive_dentry()
131 return dget(root); in get_next_positive_dentry()
[all …]
Dinode.c71 static int autofs4_show_options(struct seq_file *m, struct dentry *root) in autofs4_show_options() argument
73 struct autofs_sb_info *sbi = autofs4_sbi(root->d_sb); in autofs4_show_options()
74 struct inode *root_inode = d_inode(root->d_sb->s_root); in autofs4_show_options()
208 struct dentry * root; in autofs4_fill_super() local
258 root = d_make_root(root_inode); in autofs4_fill_super()
259 if (!root) in autofs4_fill_super()
263 root->d_fsdata = ino; in autofs4_fill_super()
285 __managed_dentry_set_managed(root); in autofs4_fill_super()
324 s->s_root = root; in autofs4_fill_super()
335 dput(root); in autofs4_fill_super()
/linux-4.4.14/sound/firewire/fireworks/
Dfireworks_proc.c196 add_node(struct snd_efw *efw, struct snd_info_entry *root, const char *name, in add_node() argument
201 entry = snd_info_create_card_entry(efw->card, name, root); in add_node()
212 struct snd_info_entry *root; in snd_efw_proc_init() local
218 root = snd_info_create_card_entry(efw->card, "firewire", in snd_efw_proc_init()
220 if (root == NULL) in snd_efw_proc_init()
222 root->mode = S_IFDIR | S_IRUGO | S_IXUGO; in snd_efw_proc_init()
223 if (snd_info_register(root) < 0) { in snd_efw_proc_init()
224 snd_info_free_entry(root); in snd_efw_proc_init()
228 add_node(efw, root, "clock", proc_read_clock); in snd_efw_proc_init()
229 add_node(efw, root, "firmware", proc_read_hwinfo); in snd_efw_proc_init()
[all …]
/linux-4.4.14/drivers/block/drbd/
Ddrbd_interval.c47 drbd_insert_interval(struct rb_root *root, struct drbd_interval *this) in drbd_insert_interval() argument
49 struct rb_node **new = &root->rb_node, *parent = NULL; in drbd_insert_interval()
75 rb_insert_augmented(&this->rb, root, &augment_callbacks); in drbd_insert_interval()
90 drbd_contains_interval(struct rb_root *root, sector_t sector, in drbd_contains_interval() argument
93 struct rb_node *node = root->rb_node; in drbd_contains_interval()
117 drbd_remove_interval(struct rb_root *root, struct drbd_interval *this) in drbd_remove_interval() argument
119 rb_erase_augmented(&this->rb, root, &augment_callbacks); in drbd_remove_interval()
134 drbd_find_overlap(struct rb_root *root, sector_t sector, unsigned int size) in drbd_find_overlap() argument
136 struct rb_node *node = root->rb_node; in drbd_find_overlap()
/linux-4.4.14/include/trace/events/
Dbtrfs.h71 TP_PROTO(struct btrfs_root *root),
73 TP_ARGS(root),
81 __entry->generation = root->fs_info->generation;
82 __entry->root_objectid = root->root_key.objectid;
114 BTRFS_I(inode)->root->root_key.objectid;
171 TP_PROTO(struct btrfs_root *root, struct extent_map *map),
173 TP_ARGS(root, map),
190 __entry->root_objectid = root->root_key.objectid;
259 BTRFS_I(inode)->root->root_key.objectid;
338 BTRFS_I(inode)->root->root_key.objectid;
[all …]
/linux-4.4.14/drivers/soc/brcmstb/
Dcommon.c26 struct device_node *root; in soc_is_brcmstb() local
28 root = of_find_node_by_path("/"); in soc_is_brcmstb()
29 if (!root) in soc_is_brcmstb()
32 return of_match_node(brcmstb_machine_match, root) != NULL; in soc_is_brcmstb()
/linux-4.4.14/arch/powerpc/oprofile/
Dcommon.c122 static int op_powerpc_create_files(struct dentry *root) in op_powerpc_create_files() argument
131 oprofilefs_create_ulong(root, "mmcr0", &sys.mmcr0); in op_powerpc_create_files()
132 oprofilefs_create_ulong(root, "mmcr1", &sys.mmcr1); in op_powerpc_create_files()
133 oprofilefs_create_ulong(root, "mmcra", &sys.mmcra); in op_powerpc_create_files()
145 oprofilefs_create_ulong(root, "cell_support", &sys.cell_support); in op_powerpc_create_files()
163 dir = oprofilefs_mkdir(root, buf); in op_powerpc_create_files()
182 oprofilefs_create_ulong(root, "enable_kernel", &sys.enable_kernel); in op_powerpc_create_files()
183 oprofilefs_create_ulong(root, "enable_user", &sys.enable_user); in op_powerpc_create_files()
/linux-4.4.14/drivers/soc/tegra/
Dcommon.c25 struct device_node *root; in soc_is_tegra() local
27 root = of_find_node_by_path("/"); in soc_is_tegra()
28 if (!root) in soc_is_tegra()
31 return of_match_node(tegra_machine_match, root) != NULL; in soc_is_tegra()
/linux-4.4.14/drivers/irqchip/
Dirq-atmel-aic-common.c146 void __init aic_common_rtc_irq_fixup(struct device_node *root) in aic_common_rtc_irq_fixup() argument
151 np = of_find_compatible_node(root, NULL, "atmel,at91rm9200-rtc"); in aic_common_rtc_irq_fixup()
153 np = of_find_compatible_node(root, NULL, in aic_common_rtc_irq_fixup()
174 void __init aic_common_rtt_irq_fixup(struct device_node *root) in aic_common_rtt_irq_fixup() argument
198 struct device_node *root = of_find_node_by_path("/"); in aic_common_irq_fixup() local
201 if (!root) in aic_common_irq_fixup()
204 match = of_match_node(matches, root); in aic_common_irq_fixup()
205 of_node_put(root); in aic_common_irq_fixup()
209 fixup(root); in aic_common_irq_fixup()
212 of_node_put(root); in aic_common_irq_fixup()
Dirq-atmel-aic.c212 static void __init at91rm9200_aic_irq_fixup(struct device_node *root) in at91rm9200_aic_irq_fixup() argument
214 aic_common_rtc_irq_fixup(root); in at91rm9200_aic_irq_fixup()
217 static void __init at91sam9260_aic_irq_fixup(struct device_node *root) in at91sam9260_aic_irq_fixup() argument
219 aic_common_rtt_irq_fixup(root); in at91sam9260_aic_irq_fixup()
222 static void __init at91sam9g45_aic_irq_fixup(struct device_node *root) in at91sam9g45_aic_irq_fixup() argument
224 aic_common_rtc_irq_fixup(root); in at91sam9g45_aic_irq_fixup()
225 aic_common_rtt_irq_fixup(root); in at91sam9g45_aic_irq_fixup()
/linux-4.4.14/fs/nilfs2/
Dinode.c48 struct nilfs_root *root; member
56 struct nilfs_root *root = NILFS_I(inode)->i_root; in nilfs_inode_add_blocks() local
59 if (root) in nilfs_inode_add_blocks()
60 atomic64_add(n, &root->blocks_count); in nilfs_inode_add_blocks()
65 struct nilfs_root *root = NILFS_I(inode)->i_root; in nilfs_inode_sub_blocks() local
68 if (root) in nilfs_inode_sub_blocks()
69 atomic64_sub(n, &root->blocks_count); in nilfs_inode_sub_blocks()
334 struct nilfs_root *root, in nilfs_insert_inode_locked() argument
338 .ino = ino, .root = root, .cno = 0, .for_gc = 0 in nilfs_insert_inode_locked()
350 struct nilfs_root *root; in nilfs_new_inode() local
[all …]
Dthe_nilfs.c722 struct nilfs_root *root; in nilfs_lookup_root() local
727 root = rb_entry(n, struct nilfs_root, rb_node); in nilfs_lookup_root()
729 if (cno < root->cno) { in nilfs_lookup_root()
731 } else if (cno > root->cno) { in nilfs_lookup_root()
734 atomic_inc(&root->count); in nilfs_lookup_root()
736 return root; in nilfs_lookup_root()
748 struct nilfs_root *root, *new; in nilfs_find_or_create_root() local
751 root = nilfs_lookup_root(nilfs, cno); in nilfs_find_or_create_root()
752 if (root) in nilfs_find_or_create_root()
753 return root; in nilfs_find_or_create_root()
[all …]
Dsuper.c533 struct nilfs_root *root; in nilfs_attach_checkpoint() local
538 root = nilfs_find_or_create_root( in nilfs_attach_checkpoint()
540 if (!root) in nilfs_attach_checkpoint()
543 if (root->ifile) in nilfs_attach_checkpoint()
561 err = nilfs_ifile_read(sb, root, nilfs->ns_inode_size, in nilfs_attach_checkpoint()
562 &raw_cp->cp_ifile_inode, &root->ifile); in nilfs_attach_checkpoint()
566 atomic64_set(&root->inodes_count, in nilfs_attach_checkpoint()
568 atomic64_set(&root->blocks_count, in nilfs_attach_checkpoint()
574 *rootp = root; in nilfs_attach_checkpoint()
580 nilfs_put_root(root); in nilfs_attach_checkpoint()
[all …]
Dsysfs.c120 struct nilfs_root *root, char *buf) in nilfs_snapshot_inodes_count_show() argument
123 (unsigned long long)atomic64_read(&root->inodes_count)); in nilfs_snapshot_inodes_count_show()
128 struct nilfs_root *root, char *buf) in nilfs_snapshot_blocks_count_show() argument
131 (unsigned long long)atomic64_read(&root->blocks_count)); in nilfs_snapshot_blocks_count_show()
141 struct nilfs_root *root, char *buf) in nilfs_snapshot_README_show() argument
160 struct nilfs_root *root = in nilfs_snapshot_attr_show() local
165 return a->show ? a->show(a, root, buf) : 0; in nilfs_snapshot_attr_show()
172 struct nilfs_root *root = in nilfs_snapshot_attr_store() local
177 return a->store ? a->store(a, root, buf, len) : 0; in nilfs_snapshot_attr_store()
182 struct nilfs_root *root = container_of(kobj, struct nilfs_root, in nilfs_snapshot_attr_release() local
[all …]
/linux-4.4.14/Documentation/filesystems/
Dautomount-support.txt16 [root@andromeda root]# mount -t afs \#root.afs. /afs
17 [root@andromeda root]# ls /afs
19 [root@andromeda root]# ls /afs/cambridge
21 [root@andromeda root]# ls /afs/cambridge/afsdoc/
26 [root@andromeda root]# cat /proc/mounts
28 #root.afs. /afs afs rw 0 0
29 #root.cell. /afs/cambridge.redhat.com afs rw 0 0
Dafs.txt64 When inserting the driver modules the root cell must be specified along with a
89 mount -t afs "%cambridge.redhat.com:root.afs." /afs
90 mount -t afs "#cambridge.redhat.com:root.cell." /afs/cambridge
91 mount -t afs "#root.afs." /afs
92 mount -t afs "#root.cell." /afs/cambridge
140 [root@andromeda ~]# cat /proc/fs/afs/cells
147 [root@andromeda ~]# cat /proc/fs/afs/cambridge.redhat.com/servers
150 [root@andromeda ~]# cat /proc/fs/afs/cambridge.redhat.com/vlservers
153 [root@andromeda ~]# cat /proc/fs/afs/cambridge.redhat.com/volumes
155 1 Val 20000000 20000001 20000002 root.afs
[all …]
/linux-4.4.14/net/sched/
Dcls_cgroup.c32 struct cls_cgroup_head *head = rcu_dereference_bh(tp->root); in cls_cgroup_classify()
60 static void cls_cgroup_destroy_rcu(struct rcu_head *root) in cls_cgroup_destroy_rcu() argument
62 struct cls_cgroup_head *head = container_of(root, in cls_cgroup_destroy_rcu()
77 struct cls_cgroup_head *head = rtnl_dereference(tp->root); in cls_cgroup_change()
118 rcu_assign_pointer(tp->root, new); in cls_cgroup_change()
129 struct cls_cgroup_head *head = rtnl_dereference(tp->root); in cls_cgroup_destroy()
135 RCU_INIT_POINTER(tp->root, NULL); in cls_cgroup_destroy()
148 struct cls_cgroup_head *head = rtnl_dereference(tp->root); in cls_cgroup_walk()
164 struct cls_cgroup_head *head = rtnl_dereference(tp->root); in cls_cgroup_dump()
/linux-4.4.14/fs/hpfs/
Dsuper.c501 static int hpfs_show_options(struct seq_file *seq, struct dentry *root) in hpfs_show_options() argument
503 struct hpfs_sb_info *sbi = hpfs_sb(root->d_sb); in hpfs_show_options()
551 struct inode *root; in hpfs_fill_super() local
625 sbi->sb_root = le32_to_cpu(superblock->root); in hpfs_fill_super()
714 root = iget_locked(s, sbi->sb_root); in hpfs_fill_super()
715 if (!root) in hpfs_fill_super()
717 hpfs_init_inode(root); in hpfs_fill_super()
718 hpfs_read_inode(root); in hpfs_fill_super()
719 unlock_new_inode(root); in hpfs_fill_super()
720 s->s_root = d_make_root(root); in hpfs_fill_super()
[all …]
/linux-4.4.14/fs/sysfs/
Dmount.c29 struct dentry *root; in sysfs_mount() local
39 root = kernfs_mount_ns(fs_type, flags, sysfs_root, in sysfs_mount()
41 if (IS_ERR(root) || !new_sb) in sysfs_mount()
45 root->d_sb->s_iflags |= SB_I_NOEXEC; in sysfs_mount()
47 return root; in sysfs_mount()
/linux-4.4.14/drivers/pci/pcie/
Dportdrv_acpi.c37 struct acpi_pci_root *root; in pcie_port_acpi_setup() local
48 root = acpi_pci_find_root(handle); in pcie_port_acpi_setup()
49 if (!root) in pcie_port_acpi_setup()
52 flags = root->osc_control_set; in pcie_port_acpi_setup()
Daspm.c43 struct pcie_link_state *root; /* pointer to the root port link */ member
537 link->root = link; in alloc_pcie_link_state()
539 link->root = link->parent->root; in alloc_pcie_link_state()
613 static void pcie_update_aspm_capable(struct pcie_link_state *root) in pcie_update_aspm_capable() argument
616 BUG_ON(root->parent); in pcie_update_aspm_capable()
618 if (link->root != root) in pcie_update_aspm_capable()
625 if (link->root != root) in pcie_update_aspm_capable()
640 struct pcie_link_state *link, *root, *parent_link; in pcie_aspm_exit_link_state() local
655 root = link->root; in pcie_aspm_exit_link_state()
667 pcie_update_aspm_capable(root); in pcie_aspm_exit_link_state()
[all …]
/linux-4.4.14/arch/powerpc/platforms/powernv/
Dsetup.c86 struct device_node *root; in pnv_show_cpuinfo() local
89 root = of_find_node_by_path("/"); in pnv_show_cpuinfo()
90 if (root) in pnv_show_cpuinfo()
91 model = of_get_property(root, "model", NULL); in pnv_show_cpuinfo()
101 of_node_put(root); in pnv_show_cpuinfo()
275 unsigned long root = of_get_flat_dt_root(); in pnv_probe() local
277 if (!of_flat_dt_is_compatible(root, "ibm,powernv")) in pnv_probe()
/linux-4.4.14/Documentation/input/
Dinput.txt68 crw-r--r-- 1 root root 13, 63 Mar 28 22:45 mice
182 crw-r--r-- 1 root root 13, 32 Mar 28 22:45 mouse0
183 crw-r--r-- 1 root root 13, 33 Mar 29 00:41 mouse1
184 crw-r--r-- 1 root root 13, 34 Mar 29 00:41 mouse2
185 crw-r--r-- 1 root root 13, 35 Apr 1 10:50 mouse3
188 crw-r--r-- 1 root root 13, 62 Apr 1 10:50 mouse30
189 crw-r--r-- 1 root root 13, 63 Apr 1 10:50 mice
217 crw-r--r-- 1 root root 13, 0 Apr 1 10:50 js0
218 crw-r--r-- 1 root root 13, 1 Apr 1 10:50 js1
219 crw-r--r-- 1 root root 13, 2 Apr 1 10:50 js2
[all …]
/linux-4.4.14/fs/configfs/
Dmount.c72 struct dentry *root; in configfs_fill_super() local
92 root = d_make_root(inode); in configfs_fill_super()
93 if (!root) { in configfs_fill_super()
98 configfs_root_group.cg_item.ci_dentry = root; in configfs_fill_super()
99 root->d_fsdata = &configfs_root; in configfs_fill_super()
100 sb->s_root = root; in configfs_fill_super()
/linux-4.4.14/net/netfilter/
Dnft_rbtree.c24 struct rb_root root; member
43 parent = priv->root.rb_node; in nft_rbtree_lookup()
89 p = &priv->root.rb_node; in __nft_rbtree_insert()
107 rb_insert_color(&new->node, &priv->root); in __nft_rbtree_insert()
131 rb_erase(&rbe->node, &priv->root); in nft_rbtree_remove()
147 const struct rb_node *parent = priv->root.rb_node; in nft_rbtree_deactivate()
184 for (node = rb_first(&priv->root); node != NULL; node = rb_next(node)) { in nft_rbtree_walk()
216 priv->root = RB_ROOT; in nft_rbtree_init()
226 while ((node = priv->root.rb_node) != NULL) { in nft_rbtree_destroy()
227 rb_erase(node, &priv->root); in nft_rbtree_destroy()
Dxt_connlimit.c187 static void tree_nodes_free(struct rb_root *root, in tree_nodes_free() argument
195 rb_erase(&rbconn->node, root); in tree_nodes_free()
201 count_tree(struct net *net, struct rb_root *root, in count_tree() argument
216 rbnode = &(root->rb_node); in count_tree()
234 tree_nodes_free(root, gc_nodes, gc_count); in count_tree()
255 tree_nodes_free(root, gc_nodes, gc_count); in count_tree()
284 rb_insert_color(&rbconn->node, root); in count_tree()
296 struct rb_root *root; in count_them() local
302 root = &data->climit_root6[hash]; in count_them()
305 root = &data->climit_root4[hash]; in count_them()
[all …]
/linux-4.4.14/drivers/gpu/drm/
Ddrm_debugfs.c88 struct dentry *root, struct drm_minor *minor) in drm_debugfs_create_files() argument
108 root, tmp, &drm_debugfs_fops); in drm_debugfs_create_files()
111 root->d_name.name, files[i].name); in drm_debugfs_create_files()
145 struct dentry *root) in drm_debugfs_init() argument
154 minor->debugfs_root = debugfs_create_dir(name, root); in drm_debugfs_init()
380 struct dentry *root, *ent; in drm_debugfs_connector_add() local
385 root = debugfs_create_dir(connector->name, minor->debugfs_root); in drm_debugfs_connector_add()
386 if (!root) in drm_debugfs_connector_add()
389 connector->debugfs_entry = root; in drm_debugfs_connector_add()
392 ent = debugfs_create_file("force", S_IRUGO | S_IWUSR, root, connector, in drm_debugfs_connector_add()
[all …]
/linux-4.4.14/drivers/mtd/ubi/
Dwl.h4 static int anchor_pebs_avalible(struct rb_root *root);
6 static struct ubi_wl_entry *find_anchor_wl_entry(struct rb_root *root);
17 struct rb_root *root);
24 struct rb_root *root) { in may_reserve_for_fm() argument
/linux-4.4.14/drivers/mtd/
Dmtdswap.c84 struct rb_root *root; member
98 struct rb_root root; member
175 #define TREE_ROOT(d, name) (&d->trees[MTDSWAP_ ## name].root)
209 if (eb->root) { in mtdswap_eb_detach()
210 tp = container_of(eb->root, struct mtdswap_tree, root); in mtdswap_eb_detach()
214 rb_erase(&eb->rb, eb->root); in mtdswap_eb_detach()
218 static void __mtdswap_rb_add(struct rb_root *root, struct swap_eb *eb) in __mtdswap_rb_add() argument
223 p = &root->rb_node; in __mtdswap_rb_add()
234 rb_insert_color(&eb->rb, root); in __mtdswap_rb_add()
239 struct rb_root *root; in mtdswap_rb_add() local
[all …]
/linux-4.4.14/fs/
Dfs_struct.c20 old_root = fs->root; in set_fs_root()
21 fs->root = *path; in set_fs_root()
70 hits += replace_path(&fs->root, old_root, new_root); in chroot_fs_refs()
88 path_put(&fs->root); in free_fs_struct()
122 fs->root = old->root; in copy_fs_struct()
123 path_get(&fs->root); in copy_fs_struct()
Dbinfmt_misc.c625 struct dentry *root; in bm_entry_write() local
640 root = dget(file->f_path.dentry->d_sb->s_root); in bm_entry_write()
641 mutex_lock(&d_inode(root)->i_mutex); in bm_entry_write()
645 mutex_unlock(&d_inode(root)->i_mutex); in bm_entry_write()
646 dput(root); in bm_entry_write()
668 struct dentry *root, *dentry; in bm_register_write() local
677 root = dget(sb->s_root); in bm_register_write()
678 mutex_lock(&d_inode(root)->i_mutex); in bm_register_write()
679 dentry = lookup_one_len(e->name, root, strlen(e->name)); in bm_register_write()
714 mutex_unlock(&d_inode(root)->i_mutex); in bm_register_write()
[all …]
Dproc_namespace.c111 err = seq_path_root(m, &mnt_path, &p->root, " \t\n\\"); in show_vfsmnt()
147 err = seq_path_root(m, &mnt_path, &p->root, " \t\n\\"); in show_mountinfo()
159 int dom = get_dominating_id(r, &p->root); in show_mountinfo()
213 err = seq_path_root(m, &mnt_path, &p->root, " \t\n\\"); in show_vfsstat()
240 struct path root; in mounts_open_common() local
263 get_fs_root(task->fs, &root); in mounts_open_common()
276 p->root = root; in mounts_open_common()
283 path_put(&root); in mounts_open_common()
294 path_put(&p->root); in mounts_release()
Dnamespace.c906 static struct mount *next_mnt(struct mount *p, struct mount *root) in next_mnt() argument
911 if (p == root) in next_mnt()
936 struct dentry *root; in vfs_kern_mount() local
948 root = mount_fs(type, flags, name, data); in vfs_kern_mount()
949 if (IS_ERR(root)) { in vfs_kern_mount()
952 return ERR_CAST(root); in vfs_kern_mount()
955 mnt->mnt.mnt_root = root; in vfs_kern_mount()
956 mnt->mnt.mnt_sb = root->d_sb; in vfs_kern_mount()
960 list_add_tail(&mnt->mnt_instance, &root->d_sb->s_mounts); in vfs_kern_mount()
966 static struct mount *clone_mnt(struct mount *old, struct dentry *root, in clone_mnt() argument
[all …]
/linux-4.4.14/drivers/video/fbdev/omap2/dss/
Domapdss-boot-init.c40 bool root; member
120 static void __init omapdss_add_to_list(struct device_node *node, bool root) in omapdss_add_to_list() argument
126 n->root = root; in omapdss_add_to_list()
143 static void __init omapdss_walk_device(struct device_node *node, bool root) in omapdss_walk_device() argument
147 omapdss_add_to_list(node, root); in omapdss_walk_device()
216 if (!n->root) in omapdss_boot_init()
/linux-4.4.14/Documentation/cpu-freq/
Dcpufreq-stats.txt23 in /sysfs (<sysfs root>/devices/system/cpu/cpuX/cpufreq/stats/) for each CPU.
45 drwxr-xr-x 2 root root 0 May 14 16:06 .
46 drwxr-xr-x 3 root root 0 May 14 15:58 ..
47 -r--r--r-- 1 root root 4096 May 14 16:06 time_in_state
48 -r--r--r-- 1 root root 4096 May 14 16:06 total_trans
49 -r--r--r-- 1 root root 4096 May 14 16:06 trans_table
/linux-4.4.14/drivers/media/platform/sti/c8sectpfe/
Dc8sectpfe-debugfs.c235 struct dentry *root; in c8sectpfe_debugfs_init() local
238 root = debugfs_create_dir("c8sectpfe", NULL); in c8sectpfe_debugfs_init()
239 if (!root) in c8sectpfe_debugfs_init()
242 fei->root = root; in c8sectpfe_debugfs_init()
252 file = debugfs_create_regset32("registers", S_IRUGO, root, in c8sectpfe_debugfs_init()
264 debugfs_remove_recursive(root); in c8sectpfe_debugfs_init()
269 debugfs_remove_recursive(fei->root); in c8sectpfe_debugfs_exit()
270 fei->root = NULL; in c8sectpfe_debugfs_exit()
/linux-4.4.14/arch/x86/platform/olpc/
Dolpc.c266 static bool __init check_ofw_architecture(struct device_node *root) in check_ofw_architecture() argument
271 olpc_arch = of_get_property(root, "architecture", &propsize); in check_ofw_architecture()
275 static u32 __init get_board_revision(struct device_node *root) in get_board_revision() argument
280 rev = of_get_property(root, "board-revision-int", &propsize); in get_board_revision()
289 struct device_node *root = of_find_node_by_path("/"); in platform_detect() local
292 if (!root) in platform_detect()
295 success = check_ofw_architecture(root); in platform_detect()
297 olpc_platform_info.boardrev = get_board_revision(root); in platform_detect()
301 of_node_put(root); in platform_detect()
/linux-4.4.14/Documentation/networking/
Ddl2k.txt76 [root@XXX /] mkdir cdrom
77 [root@XXX /] mount -r -t iso9660 -o conv=auto /dev/cdrom /cdrom
78 [root@XXX /] cd root
79 [root@XXX /root] mkdir dl2k
80 [root@XXX /root] cd dl2k
81 [root@XXX dl2k] cp /cdrom/linux/dl2k.tgz /root/dl2k
82 [root@XXX dl2k] tar xfvz dl2k.tgz
83 [root@XXX dl2k] make all
88 [root@XXX /] cd root
89 [root@XXX /root] mkdir dl2k
[all …]
/linux-4.4.14/fs/ceph/
Dsuper.c421 static int ceph_show_options(struct seq_file *m, struct dentry *root) in ceph_show_options() argument
423 struct ceph_fs_client *fsc = ceph_sb_to_client(root->d_sb); in ceph_show_options()
738 struct dentry *root; in open_root_dentry() local
747 root = ERR_PTR(-ENOMEM); in open_root_dentry()
764 root = d_make_root(inode); in open_root_dentry()
765 if (!root) { in open_root_dentry()
766 root = ERR_PTR(-ENOMEM); in open_root_dentry()
770 root = d_obtain_root(inode); in open_root_dentry()
772 ceph_init_dentry(root); in open_root_dentry()
773 dout("open_root_inode success, root dentry is %p\n", root); in open_root_dentry()
[all …]
/linux-4.4.14/Documentation/fmc/
Dfmc-chardev.txt32 spusa.root# insmod fmc-chardev.ko
37 spusa.root# ls -l /dev/fmc*
38 crw------- 1 root root 10, 58 Nov 20 19:23 /dev/fmc-0200
39 crw------- 1 root root 10, 57 Nov 20 19:23 /dev/fmc-0400
40 spusa.root# dd bs=4 skip=64 count=1 if=/dev/fmc-0200 2> /dev/null | od -t x1z
57 spusa.root# ./fmc-mem /dev/fmc-0200 100
59 spusa.root# ./fmc-mem /dev/fmc-0200 100 +40 | od -Ax -t x1z
Dfmc-write-eeprom.txt45 spusa.root# od -t x1 -Ax /lib/firmware/try.tlv
48 spusa.root# insmod /tmp/fmc-write-eeprom.ko busid=0x0200 file=try.tlv
66 spusa.root# insmod fmc-fakedev.ko
69 spusa.root# insmod fmc-write-eeprom.ko busid=0 file=fdelay-eeprom.bin; \
84 spusa.root# cd /sys/bus/fmc/devices; ls -l */eeprom
85 -r--r--r-- 1 root root 8192 Feb 21 12:30 FmcAdc100m14b4cha-0800/eeprom
86 -r--r--r-- 1 root root 8192 Feb 21 12:30 FmcDelay1ns4cha-0200/eeprom
87 -r--r--r-- 1 root root 8192 Feb 21 12:30 FmcDio5cha-0400/eeprom
/linux-4.4.14/arch/powerpc/platforms/maple/
Dsetup.c218 struct device_node *root, *np, *mpic_node = NULL; in maple_init_IRQ() local
247 root = of_find_node_by_path("/"); in maple_init_IRQ()
248 naddr = of_n_addr_cells(root); in maple_init_IRQ()
249 opprop = of_get_property(root, "platform-open-pic", &opplen); in maple_init_IRQ()
287 of_node_put(root); in maple_init_IRQ()
301 unsigned long root = of_get_flat_dt_root(); in maple_probe() local
303 if (!of_flat_dt_is_compatible(root, "Momentum,Maple") && in maple_probe()
304 !of_flat_dt_is_compatible(root, "Momentum,Apache")) in maple_probe()
/linux-4.4.14/arch/x86/mm/
Dpat_rbtree.c76 static struct memtype *memtype_rb_lowest_match(struct rb_root *root, in RB_DECLARE_CALLBACKS()
79 struct rb_node *node = root->rb_node; in RB_DECLARE_CALLBACKS()
101 static struct memtype *memtype_rb_exact_match(struct rb_root *root, in memtype_rb_exact_match() argument
106 match = memtype_rb_lowest_match(root, start, end); in memtype_rb_exact_match()
123 static int memtype_rb_check_conflict(struct rb_root *root, in memtype_rb_check_conflict() argument
169 static void memtype_rb_insert(struct rb_root *root, struct memtype *newdata) in memtype_rb_insert() argument
171 struct rb_node **node = &(root->rb_node); in memtype_rb_insert()
188 rb_insert_augmented(&newdata->rb, root, &memtype_rb_augment_cb); in memtype_rb_insert()
/linux-4.4.14/tools/perf/tests/
Dhists_common.c160 struct rb_root *root; in print_hists_in() local
164 root = &hists->entries_collapsed; in print_hists_in()
166 root = hists->entries_in; in print_hists_in()
169 node = rb_first(root); in print_hists_in()
190 struct rb_root *root; in print_hists_out() local
193 root = &hists->entries; in print_hists_out()
196 node = rb_first(root); in print_hists_out()
Dhists_link.c154 struct rb_root *root; in __validate_match() local
161 root = &hists->entries_collapsed; in __validate_match()
163 root = hists->entries_in; in __validate_match()
165 node = rb_first(root); in __validate_match()
204 struct rb_root *root; in __validate_link() local
213 root = &hists->entries_collapsed; in __validate_link()
215 root = hists->entries_in; in __validate_link()
217 node = rb_first(root); in __validate_link()
/linux-4.4.14/drivers/pci/
Dsetup-res.c116 struct resource *root, *conflict; in pci_claim_resource() local
124 root = pci_find_parent_resource(dev, res); in pci_claim_resource()
125 if (!root) { in pci_claim_resource()
132 conflict = request_resource_conflict(root, res); in pci_claim_resource()
174 struct resource *root, *conflict; in pci_revert_fw_address() local
187 root = pci_find_parent_resource(dev, res); in pci_revert_fw_address()
188 if (!root) { in pci_revert_fw_address()
190 root = &ioport_resource; in pci_revert_fw_address()
192 root = &iomem_resource; in pci_revert_fw_address()
197 conflict = request_resource_conflict(root, res); in pci_revert_fw_address()
/linux-4.4.14/arch/powerpc/kernel/
Dproc_powerpc.c84 struct proc_dir_entry *root; in proc_ppc64_create() local
86 root = proc_mkdir("powerpc", NULL); in proc_ppc64_create()
87 if (!root) in proc_ppc64_create()
98 if (!proc_mkdir("rtas", root)) in proc_ppc64_create()
Deeh_dev.c83 struct pci_dn *root = phb->pci_data; in eeh_dev_phb_init_dynamic() local
89 eeh_dev_init(root, phb); in eeh_dev_phb_init_dynamic()
92 traverse_pci_dn(root, eeh_dev_init, phb); in eeh_dev_phb_init_dynamic()
/linux-4.4.14/fs/9p/
Dvfs_super.c118 struct dentry *root = NULL; in v9fs_mount() local
154 root = d_make_root(inode); in v9fs_mount()
155 if (!root) { in v9fs_mount()
159 sb->s_root = root; in v9fs_mount()
167 d_inode(root)->i_ino = v9fs_qid2ino(&st->qid); in v9fs_mount()
168 v9fs_stat2inode_dotl(st, d_inode(root)); in v9fs_mount()
178 d_inode(root)->i_ino = v9fs_qid2ino(&st->qid); in v9fs_mount()
179 v9fs_stat2inode(st, d_inode(root), sb); in v9fs_mount()
187 v9fs_fid_add(root, fid); in v9fs_mount()
/linux-4.4.14/fs/devpts/
Dinode.c247 struct dentry *root = sb->s_root; in mknod_ptmx() local
258 mutex_lock(&d_inode(root)->i_mutex); in mknod_ptmx()
266 dentry = d_alloc_name(root, "ptmx"); in mknod_ptmx()
295 mutex_unlock(&d_inode(root)->i_mutex); in mknod_ptmx()
334 static int devpts_show_options(struct seq_file *seq, struct dentry *root) in devpts_show_options() argument
336 struct pts_fs_info *fsi = DEVPTS_SB(root->d_sb); in devpts_show_options()
613 struct dentry *root; in devpts_pty_new() local
621 root = sb->s_root; in devpts_pty_new()
638 mutex_lock(&d_inode(root)->i_mutex); in devpts_pty_new()
640 dentry = d_alloc_name(root, s); in devpts_pty_new()
[all …]
/linux-4.4.14/security/apparmor/
Dapparmorfs.c569 static struct aa_namespace *__next_namespace(struct aa_namespace *root, in __next_namespace() argument
583 while (ns != root) { in __next_namespace()
605 static struct aa_profile *__first_profile(struct aa_namespace *root, in __first_profile() argument
608 for (; ns; ns = __next_namespace(root, ns)) { in __first_profile()
662 static struct aa_profile *next_profile(struct aa_namespace *root, in next_profile() argument
670 return __first_profile(root, __next_namespace(root, profile->ns)); in next_profile()
685 struct aa_namespace *root = aa_current_profile()->ns; in p_start() local
687 f->private = aa_get_namespace(root); in p_start()
691 mutex_lock(&root->lock); in p_start()
692 profile = __first_profile(root, root); in p_start()
[all …]
/linux-4.4.14/fs/proc/
Dproc_sysctl.c66 .root = &sysctl_table_root,
107 struct rb_node *node = dir->root.rb_node; in find_entry()
136 struct rb_node **p = &head->parent->root.rb_node; in insert_entry()
168 rb_insert_color(node, &head->parent->root); in insert_entry()
176 rb_erase(node, &head->parent->root); in erase_entry()
180 struct ctl_table_root *root, struct ctl_table_set *set, in init_header() argument
189 head->root = root; in init_header()
218 if (!RB_EMPTY_ROOT(&dir->root)) in insert_header()
322 lookup_header_set(struct ctl_table_root *root, struct nsproxy *namespaces) in lookup_header_set() argument
324 struct ctl_table_set *set = &root->default_set; in lookup_header_set()
[all …]
/linux-4.4.14/drivers/net/wan/
Ddscc4.c194 struct dscc4_dev_priv *root; member
693 struct dscc4_dev_priv *root; in dscc4_free1() local
697 root = ppriv->root; in dscc4_free1()
700 unregister_hdlc_device(dscc4_to_dev(root + i)); in dscc4_free1()
703 free_netdev(root[i].dev); in dscc4_free1()
704 kfree(root); in dscc4_free1()
754 rc = request_irq(pdev->irq, dscc4_irq, IRQF_SHARED, DRV_NAME, priv->root); in dscc4_init_one()
788 dpriv = priv->root + i; in dscc4_init_one()
796 dpriv = priv->root + i; in dscc4_init_one()
821 dpriv = priv->root + i; in dscc4_init_one()
[all …]
/linux-4.4.14/arch/powerpc/platforms/pasemi/
Dsetup.c189 struct device_node *root, *mpic_node; in pas_init_IRQ() local
216 root = of_find_node_by_path("/"); in pas_init_IRQ()
217 naddr = of_n_addr_cells(root); in pas_init_IRQ()
218 opprop = of_get_property(root, "platform-open-pic", &opplen); in pas_init_IRQ()
221 of_node_put(root); in pas_init_IRQ()
248 of_node_put(root); in pas_init_IRQ()
423 unsigned long root = of_get_flat_dt_root(); in pas_probe() local
425 if (!of_flat_dt_is_compatible(root, "PA6T-1682M") && in pas_probe()
426 !of_flat_dt_is_compatible(root, "pasemi,pwrficient")) in pas_probe()
/linux-4.4.14/Documentation/devicetree/bindings/pci/
Dpci-msi.txt4 Each PCI device under a root complex is uniquely identified by its Requester ID
26 PCI root complex
52 - msi-parent: Describes the MSI parent of the root complex itself. Where
53 the root complex and MSI controller do not pass sideband data with MSI
55 used by PCI devices under the root complex, if defined as such in the
56 binding for the root complex.
75 compatible = "vendor,pcie-root-complex";
103 compatible = "vendor,pcie-root-complex";
132 compatible = "vendor,pcie-root-complex";
162 compatible = "vendor,pcie-root-complex";
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/arm/mrvl/
Dmrvl.txt5 Required root node properties:
9 Required root node properties:
13 Required root node properties:
/linux-4.4.14/include/rdma/
Dib_umem_odp.h109 void rbt_ib_umem_insert(struct umem_odp_node *node, struct rb_root *root);
110 void rbt_ib_umem_remove(struct umem_odp_node *node, struct rb_root *root);
117 int rbt_ib_umem_for_each_in_range(struct rb_root *root, u64 start, u64 end,
120 struct umem_odp_node *rbt_ib_umem_iter_first(struct rb_root *root,
/linux-4.4.14/drivers/usb/musb/
Dmusb_debugfs.c334 struct dentry *root; in musb_init_debugfs() local
338 root = debugfs_create_dir(dev_name(musb->controller), NULL); in musb_init_debugfs()
339 if (!root) { in musb_init_debugfs()
344 file = debugfs_create_file("regdump", S_IRUGO, root, musb, in musb_init_debugfs()
352 root, musb, &musb_test_mode_fops); in musb_init_debugfs()
359 root, musb, &musb_softconnect_fops); in musb_init_debugfs()
365 musb->debugfs_root = root; in musb_init_debugfs()
370 debugfs_remove_recursive(root); in musb_init_debugfs()
/linux-4.4.14/Documentation/x86/x86_64/
Dfake-numa-for-cpusets39 [root@xroads /]# mkdir exampleset
40 [root@xroads /]# mount -t cpuset none exampleset
41 [root@xroads /]# mkdir exampleset/ddset
42 [root@xroads /]# cd exampleset/ddset
43 [root@xroads /exampleset/ddset]# echo 0-1 > cpus
44 [root@xroads /exampleset/ddset]# echo 0-1 > mems
52 [root@xroads /exampleset/ddset]# echo $$ > tasks
53 [root@xroads /exampleset/ddset]# dd if=/dev/zero of=tmp bs=1024 count=1G
/linux-4.4.14/Documentation/device-mapper/
Dsnapshot.txt97 brw------- 1 root root 254, 11 29 ago 18:15 /dev/mapper/volumeGroup-base-real
98 brw------- 1 root root 254, 12 29 ago 18:15 /dev/mapper/volumeGroup-snap-cow
99 brw------- 1 root root 254, 13 29 ago 18:15 /dev/mapper/volumeGroup-snap
100 brw------- 1 root root 254, 10 29 ago 18:14 /dev/mapper/volumeGroup-base
126 brw------- 1 root root 254, 11 29 ago 18:15 /dev/mapper/volumeGroup-base-real
127 brw------- 1 root root 254, 12 29 ago 18:16 /dev/mapper/volumeGroup-base-cow
128 brw------- 1 root root 254, 10 29 ago 18:16 /dev/mapper/volumeGroup-base
/linux-4.4.14/drivers/base/regmap/
Dregcache-rbtree.c39 struct rb_root root; member
82 node = rbtree_ctx->root.rb_node; in regcache_rbtree_lookup()
100 static int regcache_rbtree_insert(struct regmap *map, struct rb_root *root, in regcache_rbtree_insert() argument
109 new = &root->rb_node; in regcache_rbtree_insert()
131 rb_insert_color(&rbnode->node, root); in regcache_rbtree_insert()
153 for (node = rb_first(&rbtree_ctx->root); node != NULL; in rbtree_show()
210 rbtree_ctx->root = RB_ROOT; in regcache_rbtree_init()
240 next = rb_first(&rbtree_ctx->root); in regcache_rbtree_exit()
244 rb_erase(&rbtree_node->node, &rbtree_ctx->root); in regcache_rbtree_exit()
416 for (node = rb_first(&rbtree_ctx->root); node; in regcache_rbtree_write()
[all …]
/linux-4.4.14/fs/efivarfs/
Dsuper.c118 struct dentry *dentry, *root = sb->s_root; in efivarfs_callback() local
150 inode = efivarfs_get_inode(sb, d_inode(root), S_IFREG | 0644, 0, in efivarfs_callback()
155 dentry = efivarfs_alloc_dentry(root, name); in efivarfs_callback()
194 struct dentry *root; in efivarfs_fill_super() local
212 root = d_make_root(inode); in efivarfs_fill_super()
213 sb->s_root = root; in efivarfs_fill_super()
214 if (!root) in efivarfs_fill_super()
/linux-4.4.14/arch/alpha/oprofile/
Dcommon.c109 op_axp_create_files(struct dentry *root) in op_axp_create_files() argument
118 dir = oprofilefs_mkdir(root, buf); in op_axp_create_files()
130 oprofilefs_create_ulong(root, "enable_pal", in op_axp_create_files()
132 oprofilefs_create_ulong(root, "enable_kernel", in op_axp_create_files()
134 oprofilefs_create_ulong(root, "enable_user", in op_axp_create_files()
/linux-4.4.14/drivers/md/
Ddm-era-target.c29 dm_block_t root; member
52 unsigned nr_bits, dm_block_t *root) in setup_on_disk_bitset() argument
56 r = dm_bitset_empty(info, root); in setup_on_disk_bitset()
60 return dm_bitset_resize(info, *root, 0, nr_bits, false, root); in setup_on_disk_bitset()
74 ws->md.root = INVALID_WRITESET_ROOT; in writeset_alloc()
93 r = setup_on_disk_bitset(info, ws->md.nr_bits, &ws->md.root); in writeset_init()
111 dm_block_t old = m->root; in writeset_marked_on_disk()
117 int r = dm_bitset_test_bit(info, m->root, block, &m->root, result); in writeset_marked_on_disk()
123 BUG_ON(m->root != old); in writeset_marked_on_disk()
137 r = dm_bitset_set_bit(info, ws->md.root, block, &ws->md.root); in writeset_test_and_set()
[all …]
/linux-4.4.14/arch/arm/mach-imx/
Dcpu.c80 struct device_node *root; in imx_soc_device_init() local
90 root = of_find_node_by_path("/"); in imx_soc_device_init()
91 ret = of_property_read_string(root, "model", &soc_dev_attr->machine); in imx_soc_device_init()
92 of_node_put(root); in imx_soc_device_init()
/linux-4.4.14/drivers/parisc/
Deisa.c67 struct eisa_root_device root; member
367 eisa_dev.root.dev = &dev->dev; in eisa_probe()
368 dev_set_drvdata(&dev->dev, &eisa_dev.root); in eisa_probe()
369 eisa_dev.root.bus_base_addr = 0; in eisa_probe()
370 eisa_dev.root.res = &eisa_dev.hba.io_space; in eisa_probe()
371 eisa_dev.root.slots = result; in eisa_probe()
372 eisa_dev.root.dma_mask = 0xffffffff; /* wild guess */ in eisa_probe()
373 if (eisa_root_register (&eisa_dev.root)) { in eisa_probe()
/linux-4.4.14/arch/powerpc/platforms/pseries/
Dsetup.c84 struct device_node *root; in pSeries_show_cpuinfo() local
87 root = of_find_node_by_path("/"); in pSeries_show_cpuinfo()
88 if (root) in pSeries_show_cpuinfo()
89 model = of_get_property(root, "model", NULL); in pSeries_show_cpuinfo()
91 of_node_put(root); in pSeries_show_cpuinfo()
476 struct device_node *root = of_find_node_by_path("/"); in find_and_init_phbs() local
478 for_each_child_of_node(root, node) { in find_and_init_phbs()
492 of_node_put(root); in find_and_init_phbs()
774 unsigned long root = of_get_flat_dt_root(); in pSeries_probe() local
775 const char *dtype = of_get_flat_dt_prop(root, "device_type", NULL); in pSeries_probe()
[all …]
/linux-4.4.14/Documentation/early-userspace/
DREADME15 containing a root filesystem image. This archive is compressed, and
40 a way to create images with root-owned files even though the image was
51 user root (0). INITRAMFS_ROOT_GID can be set to a group ID that needs
52 to be mapped to group root (0).
61 can create a 'root-image' directory and install all files into it.
63 special files can be listed in a 'root-files' file. Both 'root-image'
64 and 'root-files' can be listed in CONFIG_INITRAMFS_SOURCE and a complete
103 system boot using that filesystem as root.
127 The kernel has currently 3 ways to mount the root filesystem:
131 final root filesystem, based on the root= option and optional init= to run
[all …]
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx5/core/
Ddebugfs.c215 stats->root = debugfs_create_dir(namep, *cmd); in mlx5_cmdif_debugfs_init()
216 if (!stats->root) { in mlx5_cmdif_debugfs_init()
224 stats->root, stats, in mlx5_cmdif_debugfs_init()
233 stats->root, in mlx5_cmdif_debugfs_init()
487 struct dentry *root, struct mlx5_rsc_debug **dbg, in add_res_tree() argument
503 d->root = debugfs_create_dir(resn, root); in add_res_tree()
504 if (!d->root) { in add_res_tree()
512 d->root, &d->fields[i], in add_res_tree()
523 debugfs_remove_recursive(d->root); in add_res_tree()
532 debugfs_remove_recursive(d->root); in rem_res_tree()

1234567