/linux-4.4.14/drivers/thunderbolt/ |
D | path.c | 37 struct tb_path *path = kzalloc(sizeof(*path), GFP_KERNEL); in tb_path_alloc() local 38 if (!path) in tb_path_alloc() 40 path->hops = kcalloc(num_hops, sizeof(*path->hops), GFP_KERNEL); in tb_path_alloc() 41 if (!path->hops) { in tb_path_alloc() 42 kfree(path); in tb_path_alloc() 45 path->tb = tb; in tb_path_alloc() 46 path->path_length = num_hops; in tb_path_alloc() 47 return path; in tb_path_alloc() 53 void tb_path_free(struct tb_path *path) in tb_path_free() argument 55 if (path->activated) { in tb_path_free() [all …]
|
D | tunnel_pci.c | 31 static void tb_pci_init_path(struct tb_path *path) in tb_pci_init_path() argument 33 path->egress_fc_enable = TB_PATH_SOURCE | TB_PATH_INTERNAL; in tb_pci_init_path() 34 path->egress_shared_buffer = TB_PATH_NONE; in tb_pci_init_path() 35 path->ingress_fc_enable = TB_PATH_ALL; in tb_pci_init_path() 36 path->ingress_shared_buffer = TB_PATH_NONE; in tb_pci_init_path() 37 path->priority = 3; in tb_pci_init_path() 38 path->weight = 1; in tb_pci_init_path() 39 path->drop_packages = 0; in tb_pci_init_path() 40 path->nfc_credits = 0; in tb_pci_init_path()
|
/linux-4.4.14/drivers/video/fbdev/mmp/ |
D | core.c | 28 static struct mmp_overlay *path_get_overlay(struct mmp_path *path, in path_get_overlay() argument 31 if (path && overlay_id < path->overlay_num) in path_get_overlay() 32 return &path->overlays[overlay_id]; in path_get_overlay() 36 static int path_check_status(struct mmp_path *path) in path_check_status() argument 39 for (i = 0; i < path->overlay_num; i++) in path_check_status() 40 if (path->overlays[i].status) in path_check_status() 53 static int path_get_modelist(struct mmp_path *path, in path_get_modelist() argument 56 BUG_ON(!path || !modelist); in path_get_modelist() 58 if (path->panel && path->panel->get_modelist) in path_get_modelist() 59 return path->panel->get_modelist(path->panel, modelist); in path_get_modelist() [all …]
|
/linux-4.4.14/fs/nilfs2/ |
D | btree.c | 38 struct nilfs_btree_path *path; in nilfs_btree_alloc_path() local 41 path = kmem_cache_alloc(nilfs_btree_path_cache, GFP_NOFS); in nilfs_btree_alloc_path() 42 if (path == NULL) in nilfs_btree_alloc_path() 46 path[level].bp_bh = NULL; in nilfs_btree_alloc_path() 47 path[level].bp_sib_bh = NULL; in nilfs_btree_alloc_path() 48 path[level].bp_index = 0; in nilfs_btree_alloc_path() 49 path[level].bp_oldreq.bpr_ptr = NILFS_BMAP_INVALID_PTR; in nilfs_btree_alloc_path() 50 path[level].bp_newreq.bpr_ptr = NILFS_BMAP_INVALID_PTR; in nilfs_btree_alloc_path() 51 path[level].bp_op = NULL; in nilfs_btree_alloc_path() 55 return path; in nilfs_btree_alloc_path() [all …]
|
/linux-4.4.14/fs/btrfs/ |
D | inode-item.c | 25 static int find_name_in_backref(struct btrfs_path *path, const char *name, in find_name_in_backref() argument 36 leaf = path->nodes[0]; in find_name_in_backref() 37 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in find_name_in_backref() 38 ptr = btrfs_item_ptr_offset(leaf, path->slots[0]); in find_name_in_backref() 54 int btrfs_find_name_in_ext_backref(struct btrfs_path *path, u64 ref_objectid, in btrfs_find_name_in_ext_backref() argument 66 leaf = path->nodes[0]; in btrfs_find_name_in_ext_backref() 67 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_find_name_in_ext_backref() 68 ptr = btrfs_item_ptr_offset(leaf, path->slots[0]); in btrfs_find_name_in_ext_backref() 98 struct btrfs_path *path, in btrfs_lookup_inode_extref() argument 111 ret = btrfs_search_slot(trans, root, &key, path, ins_len, cow); in btrfs_lookup_inode_extref() [all …]
|
D | root-tree.c | 83 struct btrfs_path *path, struct btrfs_root_item *root_item, in btrfs_find_root() argument 91 ret = btrfs_search_slot(NULL, root, search_key, path, 0, 0); in btrfs_find_root() 100 if (path->slots[0] == 0) in btrfs_find_root() 102 path->slots[0]--; in btrfs_find_root() 106 l = path->nodes[0]; in btrfs_find_root() 107 slot = path->slots[0]; in btrfs_find_root() 121 btrfs_release_path(path); in btrfs_find_root() 140 struct btrfs_path *path; in btrfs_update_root() local 147 path = btrfs_alloc_path(); in btrfs_update_root() 148 if (!path) in btrfs_update_root() [all …]
|
D | file-item.c | 50 struct btrfs_path *path; in btrfs_insert_file_extent() local 53 path = btrfs_alloc_path(); in btrfs_insert_file_extent() 54 if (!path) in btrfs_insert_file_extent() 60 path->leave_spinning = 1; in btrfs_insert_file_extent() 61 ret = btrfs_insert_empty_item(trans, root, path, &file_key, in btrfs_insert_file_extent() 66 leaf = path->nodes[0]; in btrfs_insert_file_extent() 67 item = btrfs_item_ptr(leaf, path->slots[0], in btrfs_insert_file_extent() 82 btrfs_free_path(path); in btrfs_insert_file_extent() 89 struct btrfs_path *path, in btrfs_lookup_csum() argument 104 ret = btrfs_search_slot(trans, root, &file_key, path, 0, cow); in btrfs_lookup_csum() [all …]
|
D | dir-item.c | 35 struct btrfs_path *path, 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() 56 leaf = path->nodes[0]; in insert_with_overflow() 57 item = btrfs_item_nr(path->slots[0]); in insert_with_overflow() 58 ptr = btrfs_item_ptr(leaf, path->slots[0], char); in insert_with_overflow() 70 struct btrfs_path *path, u64 objectid, in btrfs_insert_xattr_item() argument 89 dir_item = insert_with_overflow(trans, root, path, &key, data_size, in btrfs_insert_xattr_item() 95 leaf = path->nodes[0]; in btrfs_insert_xattr_item() [all …]
|
D | tree-log.c | 104 struct btrfs_path *path, u64 objectid); 108 struct btrfs_path *path, 336 struct btrfs_path *path, in overwrite_item() argument 356 ret = btrfs_search_slot(NULL, root, key, path, 0, 0); in overwrite_item() 363 u32 dst_size = btrfs_item_size_nr(path->nodes[0], in overwrite_item() 364 path->slots[0]); in overwrite_item() 369 btrfs_release_path(path); in overwrite_item() 375 btrfs_release_path(path); in overwrite_item() 383 dst_ptr = btrfs_item_ptr_offset(path->nodes[0], path->slots[0]); in overwrite_item() 384 read_extent_buffer(path->nodes[0], dst_copy, dst_ptr, in overwrite_item() [all …]
|
D | ctree.c | 29 *root, struct btrfs_path *path, int level); 32 struct btrfs_path *path, int data_size, int extend); 40 static void del_ptr(struct btrfs_root *root, struct btrfs_path *path, 47 struct btrfs_path *path; in btrfs_alloc_path() local 48 path = kmem_cache_zalloc(btrfs_path_cachep, GFP_NOFS); in btrfs_alloc_path() 49 return path; in btrfs_alloc_path() 1354 tree_mod_log_rewind(struct btrfs_fs_info *fs_info, struct btrfs_path *path, in tree_mod_log_rewind() argument 1370 btrfs_set_path_blocking(path); in tree_mod_log_rewind() 1395 btrfs_clear_path_blocking(path, NULL, BTRFS_READ_LOCK); in tree_mod_log_rewind() 1888 struct btrfs_path *path, int level) in balance_level() argument [all …]
|
D | uuid-tree.c | 38 struct btrfs_path *path = NULL; in btrfs_uuid_tree_lookup() local 50 path = btrfs_alloc_path(); in btrfs_uuid_tree_lookup() 51 if (!path) { in btrfs_uuid_tree_lookup() 57 ret = btrfs_search_slot(NULL, uuid_root, &key, path, 0, 0); in btrfs_uuid_tree_lookup() 65 eb = path->nodes[0]; in btrfs_uuid_tree_lookup() 66 slot = path->slots[0]; in btrfs_uuid_tree_lookup() 89 btrfs_free_path(path); in btrfs_uuid_tree_lookup() 98 struct btrfs_path *path = NULL; in btrfs_uuid_tree_add() local 116 path = btrfs_alloc_path(); in btrfs_uuid_tree_add() 117 if (!path) { in btrfs_uuid_tree_add() [all …]
|
D | orphan.c | 25 struct btrfs_path *path; in btrfs_insert_orphan_item() local 33 path = btrfs_alloc_path(); in btrfs_insert_orphan_item() 34 if (!path) in btrfs_insert_orphan_item() 37 ret = btrfs_insert_empty_item(trans, root, path, &key, 0); in btrfs_insert_orphan_item() 39 btrfs_free_path(path); in btrfs_insert_orphan_item() 46 struct btrfs_path *path; in btrfs_del_orphan_item() local 54 path = btrfs_alloc_path(); in btrfs_del_orphan_item() 55 if (!path) in btrfs_del_orphan_item() 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() [all …]
|
D | xattr.c | 40 struct btrfs_path *path; in __btrfs_getxattr() local 45 path = btrfs_alloc_path(); in __btrfs_getxattr() 46 if (!path) in __btrfs_getxattr() 50 di = btrfs_lookup_xattr(NULL, root, path, btrfs_ino(inode), name, in __btrfs_getxattr() 60 leaf = path->nodes[0]; in __btrfs_getxattr() 87 btrfs_free_path(path); in __btrfs_getxattr() 97 struct btrfs_path *path; in do_setxattr() local 104 path = btrfs_alloc_path(); in do_setxattr() 105 if (!path) in do_setxattr() 107 path->skip_release_on_error = 1; in do_setxattr() [all …]
|
D | tree-defrag.c | 35 struct btrfs_path *path = NULL; in btrfs_defrag_leaves() local 55 path = btrfs_alloc_path(); in btrfs_defrag_leaves() 56 if (!path) in btrfs_defrag_leaves() 82 path->keep_locks = 1; in btrfs_defrag_leaves() 84 ret = btrfs_search_forward(root, &key, path, min_trans); in btrfs_defrag_leaves() 91 btrfs_release_path(path); in btrfs_defrag_leaves() 92 wret = btrfs_search_slot(trans, root, &key, path, 0, 1); in btrfs_defrag_leaves() 98 if (!path->nodes[1]) { in btrfs_defrag_leaves() 102 path->slots[1] = btrfs_header_nritems(path->nodes[1]); in btrfs_defrag_leaves() 103 next_key_ret = btrfs_find_next_key(root, path, &key, 1, in btrfs_defrag_leaves() [all …]
|
D | export.c | 157 struct btrfs_path *path; in btrfs_get_parent() local 164 path = btrfs_alloc_path(); in btrfs_get_parent() 165 if (!path) in btrfs_get_parent() 179 ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); in btrfs_get_parent() 184 if (path->slots[0] == 0) { in btrfs_get_parent() 189 path->slots[0]--; in btrfs_get_parent() 190 leaf = path->nodes[0]; in btrfs_get_parent() 192 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_get_parent() 199 ref = btrfs_item_ptr(leaf, path->slots[0], in btrfs_get_parent() 205 btrfs_free_path(path); in btrfs_get_parent() [all …]
|
D | backref.c | 247 static int add_all_parents(struct btrfs_root *root, struct btrfs_path *path, in add_all_parents() argument 264 eb = path->nodes[level]; in add_all_parents() 276 if (path->slots[0] >= btrfs_header_nritems(path->nodes[0])) { in add_all_parents() 278 ret = btrfs_next_leaf(root, path); in add_all_parents() 280 ret = btrfs_next_old_leaf(root, path, time_seq); in add_all_parents() 284 eb = path->nodes[0]; in add_all_parents() 285 slot = path->slots[0]; in add_all_parents() 322 ret = btrfs_next_item(root, path); in add_all_parents() 324 ret = btrfs_next_old_item(root, path, time_seq); in add_all_parents() 339 struct btrfs_path *path, u64 time_seq, in __resolve_indirect_ref() argument [all …]
|
D | inode-map.c | 35 struct btrfs_path *path; in caching_kthread() local 44 path = btrfs_alloc_path(); in caching_kthread() 45 if (!path) in caching_kthread() 49 path->skip_locking = 1; in caching_kthread() 50 path->search_commit_root = 1; in caching_kthread() 51 path->reada = 2; in caching_kthread() 60 ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); in caching_kthread() 68 leaf = path->nodes[0]; in caching_kthread() 69 slot = path->slots[0]; in caching_kthread() 71 ret = btrfs_next_leaf(root, path); in caching_kthread() [all …]
|
D | relocation.c | 103 struct backref_node *path[BTRFS_MAX_LEVEL]; member 1581 struct btrfs_path *path; local 1586 path = btrfs_alloc_path(); 1587 if (!path) 1591 ret = btrfs_lookup_file_extent(NULL, root, path, btrfs_ino(reloc_inode), 1600 leaf = path->nodes[0]; 1601 fi = btrfs_item_ptr(leaf, path->slots[0], 1617 btrfs_free_path(path); 1742 struct btrfs_path *path, int level) argument 1747 btrfs_node_key(path->nodes[level], &key2, path->slots[level]); [all …]
|
D | send.c | 499 struct btrfs_path *path; in alloc_path_for_send() local 501 path = btrfs_alloc_path(); in alloc_path_for_send() 502 if (!path) in alloc_path_for_send() 504 path->search_commit_root = 1; in alloc_path_for_send() 505 path->skip_locking = 1; in alloc_path_for_send() 506 path->need_commit_sem = 1; in alloc_path_for_send() 507 return path; in alloc_path_for_send() 719 struct fs_path *path, struct fs_path *lnk) in send_link() argument 723 verbose_printk("btrfs: send_link %s -> %s\n", path->start, lnk->start); in send_link() 729 TLV_PUT_PATH(sctx, BTRFS_SEND_A_PATH, path); in send_link() [all …]
|
D | extent-tree.c | 102 static int find_next_key(struct btrfs_path *path, int level, 404 struct btrfs_path *path; in caching_thread() local 418 path = btrfs_alloc_path(); in caching_thread() 419 if (!path) in caching_thread() 439 path->skip_locking = 1; in caching_thread() 440 path->search_commit_root = 1; in caching_thread() 441 path->reada = 1; in caching_thread() 452 ret = btrfs_search_slot(NULL, extent_root, &key, path, 0, 0); in caching_thread() 456 leaf = path->nodes[0]; in caching_thread() 465 if (path->slots[0] < nritems) { in caching_thread() [all …]
|
D | qgroup.c | 305 struct btrfs_path *path = NULL; in btrfs_read_qgroup_config() local 321 path = btrfs_alloc_path(); in btrfs_read_qgroup_config() 322 if (!path) { in btrfs_read_qgroup_config() 336 ret = btrfs_search_slot_for_read(quota_root, &key, path, 1, 1); in btrfs_read_qgroup_config() 343 slot = path->slots[0]; in btrfs_read_qgroup_config() 344 l = path->nodes[0]; in btrfs_read_qgroup_config() 416 ret = btrfs_next_item(quota_root, path); in btrfs_read_qgroup_config() 422 btrfs_release_path(path); in btrfs_read_qgroup_config() 430 ret = btrfs_search_slot_for_read(quota_root, &key, path, 1, 0); in btrfs_read_qgroup_config() 434 slot = path->slots[0]; in btrfs_read_qgroup_config() [all …]
|
D | delayed-inode.c | 724 struct btrfs_path *path, in btrfs_batch_insert_items() argument 740 BUG_ON(!path->nodes[0]); in btrfs_batch_insert_items() 742 leaf = path->nodes[0]; in btrfs_batch_insert_items() 778 btrfs_set_path_blocking(path); in btrfs_batch_insert_items() 801 btrfs_clear_path_blocking(path, NULL, 0); in btrfs_batch_insert_items() 804 setup_items_for_insert(root, path, keys, data_size, in btrfs_batch_insert_items() 808 slot = path->slots[0]; in btrfs_batch_insert_items() 835 struct btrfs_path *path, in btrfs_insert_delayed_item() argument 842 ret = btrfs_insert_empty_item(trans, root, path, &delayed_item->key, in btrfs_insert_delayed_item() 847 leaf = path->nodes[0]; in btrfs_insert_delayed_item() [all …]
|
D | file.c | 693 struct btrfs_path *path, u64 start, u64 end, in __btrfs_drop_extents() argument 729 ret = btrfs_lookup_file_extent(trans, root, path, ino, in __btrfs_drop_extents() 733 if (ret > 0 && path->slots[0] > 0 && search_start == start) { in __btrfs_drop_extents() 734 leaf = path->nodes[0]; in __btrfs_drop_extents() 735 btrfs_item_key_to_cpu(leaf, &key, path->slots[0] - 1); in __btrfs_drop_extents() 738 path->slots[0]--; in __btrfs_drop_extents() 743 leaf = path->nodes[0]; in __btrfs_drop_extents() 744 if (path->slots[0] >= btrfs_header_nritems(leaf)) { in __btrfs_drop_extents() 746 ret = btrfs_next_leaf(root, path); in __btrfs_drop_extents() 754 leaf = path->nodes[0]; in __btrfs_drop_extents() [all …]
|
D | volumes.c | 590 static noinline int device_list_add(const char *path, in device_list_add() argument 625 name = rcu_string_strdup(path, GFP_NOFS); in device_list_add() 639 } else if (!device->name || strcmp(device->name->str, path)) { in device_list_add() 677 name = rcu_string_strdup(path, GFP_NOFS); in device_list_add() 994 int btrfs_scan_one_device(const char *path, fmode_t flags, void *holder, in btrfs_scan_one_device() argument 1018 bdev = blkdev_get_by_path(path, flags, holder); in btrfs_scan_one_device() 1058 ret = device_list_add(path, disk_super, devid, fs_devices_ret); in btrfs_scan_one_device() 1068 printk(KERN_CONT "devid %llu transid %llu %s\n", devid, transid, path); in btrfs_scan_one_device() 1092 struct btrfs_path *path; in btrfs_account_dev_extents_size() local 1103 path = btrfs_alloc_path(); in btrfs_account_dev_extents_size() [all …]
|
D | inode.c | 137 struct btrfs_path *path, int extent_inserted, in insert_inline_extent() argument 167 path->leave_spinning = 1; in insert_inline_extent() 168 ret = btrfs_insert_empty_item(trans, root, path, &key, in insert_inline_extent() 175 leaf = path->nodes[0]; in insert_inline_extent() 176 ei = btrfs_item_ptr(leaf, path->slots[0], in insert_inline_extent() 214 btrfs_release_path(path); in insert_inline_extent() 252 struct btrfs_path *path; in cow_file_range_inline() local 269 path = btrfs_alloc_path(); in cow_file_range_inline() 270 if (!path) in cow_file_range_inline() 275 btrfs_free_path(path); in cow_file_range_inline() [all …]
|
D | free-space-cache.h | 56 *block_group, struct btrfs_path *path); 60 struct btrfs_path *path); 74 struct btrfs_path *path, u64 offset); 78 struct btrfs_path *path); 80 struct btrfs_path *path); 83 struct btrfs_path *path); 88 struct btrfs_path *path,
|
D | backref.h | 36 struct btrfs_path *path, struct btrfs_key *found_key, 49 struct btrfs_path *path, 57 char *btrfs_ref_to_path(struct btrfs_root *fs_root, struct btrfs_path *path, 64 struct btrfs_path *path); 68 u64 start_off, struct btrfs_path *path,
|
D | ioctl.c | 819 static noinline int btrfs_mksubvol(struct path *parent, in btrfs_mksubvol() 923 struct btrfs_path *path; in find_new_extents() local 931 path = btrfs_alloc_path(); in find_new_extents() 932 if (!path) in find_new_extents() 940 ret = btrfs_search_forward(root, &min_key, path, newer_than); in find_new_extents() 949 leaf = path->nodes[0]; in find_new_extents() 950 extent = btrfs_item_ptr(leaf, path->slots[0], in find_new_extents() 958 btrfs_free_path(path); in find_new_extents() 962 path->slots[0]++; in find_new_extents() 963 if (path->slots[0] < btrfs_header_nritems(leaf)) { in find_new_extents() [all …]
|
D | free-space-cache.c | 47 struct btrfs_path *path, in __lookup_free_space_inode() argument 62 ret = btrfs_search_slot(NULL, root, &key, path, 0, 0); in __lookup_free_space_inode() 66 btrfs_release_path(path); in __lookup_free_space_inode() 70 leaf = path->nodes[0]; in __lookup_free_space_inode() 71 header = btrfs_item_ptr(leaf, path->slots[0], in __lookup_free_space_inode() 75 btrfs_release_path(path); in __lookup_free_space_inode() 96 *block_group, struct btrfs_path *path) in lookup_free_space_inode() argument 108 inode = __lookup_free_space_inode(root, path, in lookup_free_space_inode() 133 struct btrfs_path *path, in __create_free_space_inode() argument 144 ret = btrfs_insert_empty_inode(trans, root, path, ino); in __create_free_space_inode() [all …]
|
D | dev-replace.c | 63 struct btrfs_path *path = NULL; in btrfs_init_dev_replace() local 68 path = btrfs_alloc_path(); in btrfs_init_dev_replace() 69 if (!path) { in btrfs_init_dev_replace() 77 ret = btrfs_search_slot(NULL, dev_root, &key, path, 0, 0); in btrfs_init_dev_replace() 100 slot = path->slots[0]; in btrfs_init_dev_replace() 101 eb = path->nodes[0]; in btrfs_init_dev_replace() 186 btrfs_free_path(path); in btrfs_init_dev_replace() 199 struct btrfs_path *path; in btrfs_run_dev_replace() local 217 path = btrfs_alloc_path(); in btrfs_run_dev_replace() 218 if (!path) { in btrfs_run_dev_replace() [all …]
|
/linux-4.4.14/include/linux/ |
D | namei.h | 47 extern int user_path_at_empty(int, const char __user *, unsigned, struct path *, int *empty); 50 struct path *path) in user_path_at() argument 52 return user_path_at_empty(dfd, name, flags, path, NULL); in user_path_at() 55 static inline int user_path(const char __user *name, struct path *path) in user_path() argument 57 return user_path_at_empty(AT_FDCWD, name, LOOKUP_FOLLOW, path, NULL); in user_path() 60 static inline int user_lpath(const char __user *name, struct path *path) in user_lpath() argument 62 return user_path_at_empty(AT_FDCWD, name, 0, path, NULL); in user_lpath() 65 static inline int user_path_dir(const char __user *name, struct path *path) in user_path_dir() argument 68 LOOKUP_FOLLOW | LOOKUP_DIRECTORY, path, NULL); in user_path_dir() 71 extern int kern_path(const char *, unsigned, struct path *); [all …]
|
D | fsnotify.h | 29 static inline int fsnotify_parent(struct path *path, struct dentry *dentry, __u32 mask) in fsnotify_parent() argument 32 dentry = path->dentry; in fsnotify_parent() 34 return __fsnotify_parent(path, dentry, mask); in fsnotify_parent() 40 struct path *path = &file->f_path; in fsnotify_perm() local 56 ret = fsnotify_parent(path, NULL, fsnotify_mask); in fsnotify_perm() 60 return fsnotify(inode, fsnotify_mask, path, FSNOTIFY_EVENT_PATH, NULL, 0); in fsnotify_perm() 196 struct path *path = &file->f_path; in fsnotify_access() local 204 fsnotify_parent(path, NULL, mask); in fsnotify_access() 205 fsnotify(inode, mask, path, FSNOTIFY_EVENT_PATH, NULL, 0); in fsnotify_access() 214 struct path *path = &file->f_path; in fsnotify_modify() local [all …]
|
D | dcookies.h | 19 struct path; 47 int get_dcookie(struct path *path, unsigned long *cookie); 61 static inline int get_dcookie(struct path *path, unsigned long *cookie) in get_dcookie() argument
|
D | path.h | 7 struct path { struct 12 extern void path_get(const struct path *); argument 13 extern void path_put(const struct path *); 15 static inline int path_equal(const struct path *path1, const struct path *path2) in path_equal()
|
D | mount.h | 73 struct path; 82 extern struct vfsmount *mnt_clone_internal(struct path *path); 85 struct path; 86 extern struct vfsmount *clone_private_mount(struct path *path);
|
D | security.h | 45 struct path; 223 int security_sb_mount(const char *dev_name, struct path *path, 226 int security_sb_pivotroot(struct path *old_path, struct path *new_path); 263 int security_inode_getattr(const struct path *path); 528 static inline int security_sb_mount(const char *dev_name, struct path *path, in security_sb_mount() argument 540 static inline int security_sb_pivotroot(struct path *old_path, in security_sb_pivotroot() 541 struct path *new_path) in security_sb_pivotroot() 680 static inline int security_inode_getattr(const struct path *path) in security_inode_getattr() argument 1434 int security_path_unlink(struct path *dir, struct dentry *dentry); 1435 int security_path_mkdir(struct path *dir, struct dentry *dentry, umode_t mode); [all …]
|
D | fs_struct.h | 14 struct path root, pwd; 20 extern void set_fs_root(struct fs_struct *, const struct path *); 21 extern void set_fs_pwd(struct fs_struct *, const struct path *); 26 static inline void get_fs_root(struct fs_struct *fs, struct path *root) in get_fs_root() 34 static inline void get_fs_pwd(struct fs_struct *fs, struct path *pwd) in get_fs_pwd()
|
D | lsm_hooks.h | 1343 int (*sb_mount)(const char *dev_name, struct path *path, 1346 int (*sb_pivotroot)(struct path *old_path, struct path *new_path); 1360 int (*path_unlink)(struct path *dir, struct dentry *dentry); 1361 int (*path_mkdir)(struct path *dir, struct dentry *dentry, 1363 int (*path_rmdir)(struct path *dir, struct dentry *dentry); 1364 int (*path_mknod)(struct path *dir, struct dentry *dentry, 1366 int (*path_truncate)(struct path *path); 1367 int (*path_symlink)(struct path *dir, struct dentry *dentry, 1369 int (*path_link)(struct dentry *old_dentry, struct path *new_dir, 1371 int (*path_rename)(struct path *old_dir, struct dentry *old_dentry, [all …]
|
D | lsm_audit.h | 44 struct path path; member 63 struct path path; member
|
D | trace_seq.h | 89 extern int trace_seq_path(struct trace_seq *s, const struct path *path); 132 static inline int trace_seq_path(struct trace_seq *s, const struct path *path) in trace_seq_path() argument
|
D | sysctl.h | 179 const char *path, struct ctl_table *table); 182 const struct ctl_path *path, struct ctl_table *table); 183 struct ctl_table_header *register_sysctl(const char *path, struct ctl_table *table); 185 struct ctl_table_header *register_sysctl_paths(const struct ctl_path *path, 201 const struct ctl_path *path, struct ctl_table *table) in register_sysctl_paths() argument
|
/linux-4.4.14/security/tomoyo/ |
D | tomoyo.c | 141 static int tomoyo_inode_getattr(const struct path *path) in tomoyo_inode_getattr() argument 143 return tomoyo_path_perm(TOMOYO_TYPE_GETATTR, path, NULL); in tomoyo_inode_getattr() 153 static int tomoyo_path_truncate(struct path *path) in tomoyo_path_truncate() argument 155 return tomoyo_path_perm(TOMOYO_TYPE_TRUNCATE, path, NULL); in tomoyo_path_truncate() 166 static int tomoyo_path_unlink(struct path *parent, struct dentry *dentry) in tomoyo_path_unlink() 168 struct path path = { parent->mnt, dentry }; in tomoyo_path_unlink() local 169 return tomoyo_path_perm(TOMOYO_TYPE_UNLINK, &path, NULL); in tomoyo_path_unlink() 181 static int tomoyo_path_mkdir(struct path *parent, struct dentry *dentry, in tomoyo_path_mkdir() 184 struct path path = { parent->mnt, dentry }; in tomoyo_path_mkdir() local 185 return tomoyo_path_number_perm(TOMOYO_TYPE_MKDIR, &path, in tomoyo_path_mkdir() [all …]
|
D | realpath.c | 92 static char *tomoyo_get_absolute_path(const struct path *path, char * const buffer, in tomoyo_get_absolute_path() argument 98 pos = d_absolute_path(path, buffer, buflen - 1); in tomoyo_get_absolute_path() 100 struct inode *inode = d_backing_inode(path->dentry); in tomoyo_get_absolute_path() 219 static char *tomoyo_get_socket_name(const struct path *path, char * const buffer, in tomoyo_get_socket_name() argument 222 struct inode *inode = d_backing_inode(path->dentry); in tomoyo_get_socket_name() 250 char *tomoyo_realpath_from_path(const struct path *path) in tomoyo_realpath_from_path() argument 255 struct dentry *dentry = path->dentry; in tomoyo_realpath_from_path() 272 pos = tomoyo_get_socket_name(path, buf, buf_len - 1); in tomoyo_realpath_from_path() 285 if (!path->mnt || in tomoyo_realpath_from_path() 287 pos = tomoyo_get_local_path(path->dentry, buf, in tomoyo_realpath_from_path() [all …]
|
D | file.c | 148 static bool tomoyo_get_realpath(struct tomoyo_path_info *buf, const struct path *path) in tomoyo_get_realpath() argument 150 buf->name = tomoyo_realpath_from_path(path); in tomoyo_get_realpath() 168 [r->param.path.operation], in tomoyo_audit_path_log() 169 r->param.path.filename->name); in tomoyo_audit_path_log() 255 if (acl->perm & (1 << r->param.path.operation)) { in tomoyo_check_path_acl() 256 r->param.path.matched_path = in tomoyo_check_path_acl() 257 tomoyo_compare_name_union(r->param.path.filename, in tomoyo_check_path_acl() 259 return r->param.path.matched_path != NULL; in tomoyo_check_path_acl() 568 r->param.path.filename = filename; in tomoyo_path_permission() 569 r->param.path.operation = operation; in tomoyo_path_permission() [all …]
|
D | mount.c | 76 struct path *dir, const char *type, in tomoyo_mount_acl() 80 struct path path; in tomoyo_mount_acl() local 132 if (!dev_name || kern_path(dev_name, LOOKUP_FOLLOW, &path)) { in tomoyo_mount_acl() 136 obj.path1 = path; in tomoyo_mount_acl() 137 requested_dev_name = tomoyo_realpath_from_path(&path); in tomoyo_mount_acl() 187 int tomoyo_mount_permission(const char *dev_name, struct path *path, in tomoyo_mount_permission() argument 233 error = tomoyo_mount_acl(&r, dev_name, path, type, flags); in tomoyo_mount_permission()
|
D | load_policy.c | 38 struct path path; in tomoyo_policy_loader_exists() local 41 if (kern_path(tomoyo_loader, LOOKUP_FOLLOW, &path)) { in tomoyo_policy_loader_exists() 46 path_put(&path); in tomoyo_policy_loader_exists()
|
D | common.h | 436 } path; member 587 struct path path1; 589 struct path path2; 948 char *tomoyo_realpath_from_path(const struct path *path); 960 struct path *path, const int flag); 971 int tomoyo_mkdev_perm(const u8 operation, struct path *path, 973 int tomoyo_mount_permission(const char *dev_name, struct path *path, 977 int tomoyo_path2_perm(const u8 operation, struct path *path1, 978 struct path *path2); 979 int tomoyo_path_number_perm(const u8 operation, struct path *path, [all …]
|
/linux-4.4.14/drivers/video/fbdev/mmp/hw/ |
D | mmp_ctrl.c | 135 struct mmp_path *path = overlay->path; in dmafetch_set_fmt() local 136 tmp = readl_relaxed(ctrl_regs(path) + dma_ctrl(0, path->id)); in dmafetch_set_fmt() 139 writel_relaxed(tmp, ctrl_regs(path) + dma_ctrl(0, path->id)); in dmafetch_set_fmt() 144 struct lcd_regs *regs = path_regs(overlay->path); in overlay_set_win() 177 struct mmp_path *path = overlay->path; in dmafetch_onoff() local 180 tmp = readl_relaxed(ctrl_regs(path) + dma_ctrl(0, path->id)); in dmafetch_onoff() 183 writel(tmp, ctrl_regs(path) + dma_ctrl(0, path->id)); in dmafetch_onoff() 187 static void path_enabledisable(struct mmp_path *path, int on) in path_enabledisable() argument 190 mutex_lock(&path->access_ok); in path_enabledisable() 191 tmp = readl_relaxed(ctrl_regs(path) + LCD_SCLK(path)); in path_enabledisable() [all …]
|
D | mmp_ctrl.h | 164 #define LCD_SCLK(path) ((PATH_PN == path->id) ? LCD_CFG_SCLK_DIV :\ argument 165 ((PATH_TV == path->id) ? LCD_TCLK_DIV : LCD_PN2_SCLK_DIV)) 927 #define timing_master_config(path, dsi_id, lcd_id) \ argument 928 (MASTER_ENH(path) | MASTER_ENV(path) | \ 929 (((lcd_id) + ((dsi_id) << 1)) << DSI_START_SEL_SHIFT(path))) 1399 struct mmp_path *path; member 1431 static inline struct mmphw_path_plat *path_to_path_plat(struct mmp_path *path) in path_to_path_plat() argument 1433 return (struct mmphw_path_plat *)path->plat_data; in path_to_path_plat() 1436 static inline struct mmphw_ctrl *path_to_ctrl(struct mmp_path *path) in path_to_ctrl() argument 1438 return path_to_path_plat(path)->ctrl; in path_to_ctrl() [all …]
|
/linux-4.4.14/include/net/iucv/ |
D | iucv.h | 225 struct iucv_path *path; in iucv_path_alloc() local 227 path = kzalloc(sizeof(struct iucv_path), gfp); in iucv_path_alloc() 228 if (path) { in iucv_path_alloc() 229 path->msglim = msglim; in iucv_path_alloc() 230 path->flags = flags; in iucv_path_alloc() 232 return path; in iucv_path_alloc() 241 static inline void iucv_path_free(struct iucv_path *path) in iucv_path_free() argument 243 kfree(path); in iucv_path_free() 258 int iucv_path_accept(struct iucv_path *path, struct iucv_handler *handler, 276 int iucv_path_connect(struct iucv_path *path, struct iucv_handler *handler, [all …]
|
/linux-4.4.14/fs/ext4/ |
D | extents.c | 141 struct ext4_ext_path *path) in ext4_ext_get_access() argument 143 if (path->p_bh) { in ext4_ext_get_access() 145 BUFFER_TRACE(path->p_bh, "get_write_access"); in ext4_ext_get_access() 146 return ext4_journal_get_write_access(handle, path->p_bh); in ext4_ext_get_access() 160 struct inode *inode, struct ext4_ext_path *path) in __ext4_ext_dirty() argument 165 if (path->p_bh) { in __ext4_ext_dirty() 166 ext4_extent_block_csum_set(inode, ext_block_hdr(path->p_bh)); in __ext4_ext_dirty() 169 inode, path->p_bh); in __ext4_ext_dirty() 178 struct ext4_ext_path *path, in ext4_ext_find_goal() argument 181 if (path) { in ext4_ext_find_goal() [all …]
|
D | move_extent.c | 37 struct ext4_ext_path *path; in get_ext_path() local 39 path = ext4_find_extent(inode, lblock, ppath, EXT4_EX_NOCACHE); in get_ext_path() 40 if (IS_ERR(path)) in get_ext_path() 41 return PTR_ERR(path); in get_ext_path() 42 if (path[ext_depth(inode)].p_ext == NULL) { in get_ext_path() 43 ext4_ext_drop_refs(path); in get_ext_path() 44 kfree(path); in get_ext_path() 48 *ppath = path; in get_ext_path() 101 struct ext4_ext_path *path = NULL; in mext_check_coverage() local 106 *err = get_ext_path(inode, from, &path); in mext_check_coverage() [all …]
|
/linux-4.4.14/fs/ |
D | namei.c | 475 void path_get(const struct path *path) in path_get() argument 477 mntget(path->mnt); in path_get() 478 dget(path->dentry); in path_get() 488 void path_put(const struct path *path) in path_put() argument 490 dput(path->dentry); in path_put() 491 mntput(path->mnt); in path_put() 497 struct path path; member 499 struct path root; 507 struct path link; 570 static bool path_connected(const struct path *path) in path_connected() argument [all …]
|
D | fhandle.c | 15 static long do_sys_name_to_handle(struct path *path, in do_sys_name_to_handle() argument 28 if (!path->dentry->d_sb->s_export_op || in do_sys_name_to_handle() 29 !path->dentry->d_sb->s_export_op->fh_to_dentry) in do_sys_name_to_handle() 47 retval = exportfs_encode_fh(path->dentry, in do_sys_name_to_handle() 70 if (copy_to_user(mnt_id, &real_mount(path->mnt)->mnt_id, in do_sys_name_to_handle() 96 struct path path; in SYSCALL_DEFINE5() local 106 err = user_path_at(dfd, name, lookup_flags, &path); in SYSCALL_DEFINE5() 108 err = do_sys_name_to_handle(&path, handle, mnt_id); in SYSCALL_DEFINE5() 109 path_put(&path); in SYSCALL_DEFINE5() 139 struct path *path) in do_handle_to_path() argument [all …]
|
D | dcookies.c | 36 struct path path; member 55 return (unsigned long)dcs->path.dentry; in dcookie_value() 93 static struct dcookie_struct *alloc_dcookie(struct path *path) in alloc_dcookie() argument 101 d = path->dentry; in alloc_dcookie() 106 dcs->path = *path; in alloc_dcookie() 107 path_get(path); in alloc_dcookie() 116 int get_dcookie(struct path *path, unsigned long *cookie) in get_dcookie() argument 128 if (path->dentry->d_flags & DCACHE_COOKIE) { in get_dcookie() 129 dcs = find_dcookie((unsigned long)path->dentry); in get_dcookie() 131 dcs = alloc_dcookie(path); in get_dcookie() [all …]
|
D | open.c | 68 long vfs_truncate(struct path *path, loff_t length) in vfs_truncate() argument 73 inode = path->dentry->d_inode; in vfs_truncate() 81 error = mnt_want_write(path->mnt); in vfs_truncate() 107 error = security_path_truncate(path); in vfs_truncate() 109 error = do_truncate(path->dentry, length, 0, NULL); in vfs_truncate() 114 mnt_drop_write(path->mnt); in vfs_truncate() 123 struct path path; in do_sys_truncate() local 130 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in do_sys_truncate() 132 error = vfs_truncate(&path, length); in do_sys_truncate() 133 path_put(&path); in do_sys_truncate() [all …]
|
D | fs_struct.c | 13 void set_fs_root(struct fs_struct *fs, const struct path *path) in set_fs_root() argument 15 struct path old_root; in set_fs_root() 17 path_get(path); in set_fs_root() 21 fs->root = *path; in set_fs_root() 32 void set_fs_pwd(struct fs_struct *fs, const struct path *path) in set_fs_pwd() argument 34 struct path old_pwd; in set_fs_pwd() 36 path_get(path); in set_fs_pwd() 40 fs->pwd = *path; in set_fs_pwd() 48 static inline int replace_path(struct path *p, const struct path *old, const struct path *new) in replace_path() 56 void chroot_fs_refs(const struct path *old_root, const struct path *new_root) in chroot_fs_refs()
|
D | internal.h | 15 struct path; 51 extern int user_path_mountpoint_at(int, const char __user *, unsigned int, struct path *); 53 const char *, unsigned int, struct path *); 61 extern struct vfsmount *lookup_mnt(struct path *); 62 extern int finish_automount(struct vfsmount *, struct path *); 76 extern void chroot_fs_refs(const struct path *, const struct path *); 110 extern int vfs_open(const struct path *, struct file *, const struct cred *);
|
D | utimes.c | 51 static int utimes_common(struct path *path, struct timespec *times) in utimes_common() argument 55 struct inode *inode = path->dentry->d_inode; in utimes_common() 58 error = mnt_want_write(path->mnt); in utimes_common() 107 error = notify_change(path->dentry, &newattrs, &delegated_inode); in utimes_common() 116 mnt_drop_write(path->mnt); in utimes_common() 163 struct path path; in do_utimes() local 169 error = user_path_at(dfd, filename, lookup_flags, &path); in do_utimes() 173 error = utimes_common(&path, times); in do_utimes() 174 path_put(&path); in do_utimes()
|
D | stat.c | 52 int vfs_getattr_nosec(struct path *path, struct kstat *stat) in vfs_getattr_nosec() argument 54 struct inode *inode = d_backing_inode(path->dentry); in vfs_getattr_nosec() 57 return inode->i_op->getattr(path->mnt, path->dentry, stat); in vfs_getattr_nosec() 65 int vfs_getattr(struct path *path, struct kstat *stat) in vfs_getattr() argument 69 retval = security_inode_getattr(path); in vfs_getattr() 72 return vfs_getattr_nosec(path, stat); in vfs_getattr() 93 struct path path; in vfs_fstatat() local 106 error = user_path_at(dfd, filename, lookup_flags, &path); in vfs_fstatat() 110 error = vfs_getattr(&path, stat); in vfs_fstatat() 111 path_put(&path); in vfs_fstatat() [all …]
|
D | anon_inodes.c | 75 struct path path; in anon_inode_getfile() local 92 path.dentry = d_alloc_pseudo(anon_inode_mnt->mnt_sb, &this); in anon_inode_getfile() 93 if (!path.dentry) in anon_inode_getfile() 96 path.mnt = mntget(anon_inode_mnt); in anon_inode_getfile() 103 d_instantiate(path.dentry, anon_inode_inode); in anon_inode_getfile() 105 file = alloc_file(&path, OPEN_FMODE(flags), fops); in anon_inode_getfile() 116 path_put(&path); in anon_inode_getfile()
|
D | namespace.c | 678 struct vfsmount *lookup_mnt(struct path *path) in lookup_mnt() argument 687 child_mnt = __lookup_mnt(path->mnt, path->dentry); in lookup_mnt() 826 static void detach_mnt(struct mount *mnt, struct path *old_path) in detach_mnt() 1156 struct vfsmount *mnt_clone_internal(struct path *path) in mnt_clone_internal() argument 1159 p = clone_mnt(real_mount(path->mnt), path->dentry, CL_PRIVATE); in mnt_clone_internal() 1597 struct path path; in SYSCALL_DEFINE2() local 1611 retval = user_path_mountpoint_at(AT_FDCWD, name, lookup_flags, &path); in SYSCALL_DEFINE2() 1614 mnt = real_mount(path.mnt); in SYSCALL_DEFINE2() 1616 if (path.dentry != path.mnt->mnt_root) in SYSCALL_DEFINE2() 1629 dput(path.dentry); in SYSCALL_DEFINE2() [all …]
|
D | xattr.c | 371 struct path path; in path_setxattr() local 374 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in path_setxattr() 377 error = mnt_want_write(path.mnt); in path_setxattr() 379 error = setxattr(path.dentry, name, value, size, flags); in path_setxattr() 380 mnt_drop_write(path.mnt); in path_setxattr() 382 path_put(&path); in path_setxattr() 475 struct path path; in path_getxattr() local 478 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in path_getxattr() 481 error = getxattr(path.dentry, name, value, size); in path_getxattr() 482 path_put(&path); in path_getxattr() [all …]
|
D | statfs.c | 66 int vfs_statfs(struct path *path, struct kstatfs *buf) in vfs_statfs() argument 70 error = statfs_by_dentry(path->dentry, buf); in vfs_statfs() 72 buf->f_flags = calculate_f_flags(path->mnt); in vfs_statfs() 79 struct path path; in user_statfs() local 83 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in user_statfs() 85 error = vfs_statfs(&path, st); in user_statfs() 86 path_put(&path); in user_statfs()
|
/linux-4.4.14/fs/btrfs/tests/ |
D | qgroup-tests.c | 41 struct btrfs_path *path; in insert_normal_tree_ref() local 53 path = btrfs_alloc_path(); in insert_normal_tree_ref() 54 if (!path) { in insert_normal_tree_ref() 59 path->leave_spinning = 1; in insert_normal_tree_ref() 60 ret = btrfs_insert_empty_item(&trans, root, path, &ins, size); in insert_normal_tree_ref() 63 btrfs_free_path(path); in insert_normal_tree_ref() 67 leaf = path->nodes[0]; in insert_normal_tree_ref() 68 item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_extent_item); in insert_normal_tree_ref() 83 btrfs_free_path(path); in insert_normal_tree_ref() 92 struct btrfs_path *path; in add_tree_ref() local [all …]
|
D | extent-buffer-tests.c | 27 struct btrfs_path *path; in test_btrfs_split_item() local 49 path = btrfs_alloc_path(); in test_btrfs_split_item() 50 if (!path) { in test_btrfs_split_item() 56 path->nodes[0] = eb = alloc_dummy_extent_buffer(NULL, 4096); in test_btrfs_split_item() 62 path->slots[0] = 0; 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() 220 btrfs_free_path(path); in test_btrfs_split_item()
|
/linux-4.4.14/tools/perf/util/ |
D | path.c | 51 static char *cleanup_path(char *path) in cleanup_path() argument 54 if (!memcmp(path, "./", 2)) { in cleanup_path() 55 path += 2; in cleanup_path() 56 while (*path == '/') in cleanup_path() 57 path++; in cleanup_path() 59 return path; in cleanup_path() 84 char path[PATH_MAX]; in perf_pathdup() local 87 (void)perf_vsnpath(path, sizeof(path), fmt, args); in perf_pathdup() 89 return xstrdup(path); in perf_pathdup() 128 static inline int chomp_trailing_dir_sep(const char *path, int len) in chomp_trailing_dir_sep() argument [all …]
|
D | trace-event-info.c | 107 char *path; in record_header_files() local 111 path = get_tracing_file("events/header_page"); in record_header_files() 112 if (!path) { in record_header_files() 117 if (stat(path, &st) < 0) { in record_header_files() 118 pr_debug("can't read '%s'", path); in record_header_files() 127 if (record_file(path, 8) < 0) { in record_header_files() 132 put_tracing_file(path); in record_header_files() 134 path = get_tracing_file("events/header_event"); in record_header_files() 135 if (!path) { in record_header_files() 141 if (stat(path, &st) < 0) { in record_header_files() [all …]
|
D | data.c | 19 if (!file->path) { in check_pipe() 23 if (!strcmp(file->path, "-")) in check_pipe() 37 if (!stat(file->path, &st) && st.st_size) { in check_backup() 41 file->path); in check_backup() 43 rename(file->path, oldname); in check_backup() 55 fd = open(file->path, O_RDONLY); in open_file_read() 59 pr_err("failed to open %s: %s", file->path, in open_file_read() 61 if (err == ENOENT && !strcmp(file->path, "perf.data")) in open_file_read() 72 file->path); in open_file_read() 78 file->path); in open_file_read() [all …]
|
D | exec_cmd.c | 12 const char *system_path(const char *path) in system_path() argument 17 if (is_absolute_path(path)) in system_path() 18 return path; in system_path() 20 strbuf_addf(&d, "%s/%s", prefix, path); in system_path() 21 path = strbuf_detach(&d, NULL); in system_path() 22 return path; in system_path() 70 static void add_path(struct strbuf *out, const char *path) in add_path() argument 72 if (path && *path) { in add_path() 73 if (is_absolute_path(path)) in add_path() 74 strbuf_addstr(out, path); in add_path() [all …]
|
D | pmu.c | 45 char path[PATH_MAX]; in perf_pmu__format_parse() local 52 snprintf(path, PATH_MAX, "%s/%s", dir, name); in perf_pmu__format_parse() 55 file = fopen(path, "r"); in perf_pmu__format_parse() 76 char path[PATH_MAX]; in pmu_format() local 82 snprintf(path, PATH_MAX, in pmu_format() 85 if (stat(path, &st) < 0) in pmu_format() 88 if (perf_pmu__format_parse(path, format)) in pmu_format() 100 char path[PATH_MAX]; in perf_pmu__parse_scale() local 103 snprintf(path, PATH_MAX, "%s/%s.scale", dir, name); in perf_pmu__parse_scale() 105 fd = open(path, O_RDONLY); in perf_pmu__parse_scale() [all …]
|
D | abspath.c | 22 const char *make_nonrelative_path(const char *path) in make_nonrelative_path() argument 26 if (is_absolute_path(path)) { in make_nonrelative_path() 27 if (strlcpy(buf, path, PATH_MAX) >= PATH_MAX) in make_nonrelative_path() 28 die("Too long path: %.*s", 60, path); in make_nonrelative_path() 33 if (snprintf(buf, PATH_MAX, "%s/%s", cwd, path) >= PATH_MAX) in make_nonrelative_path() 34 die("Too long path: %.*s", 60, path); in make_nonrelative_path()
|
D | llvm-utils.c | 55 char *env, *path, *tmp = NULL; in search_program() local 78 path = strtok_r(env, ":", &tmp); in search_program() 79 while (path) { in search_program() 80 scnprintf(buf, sizeof(buf), "%s/%s", path, name); in search_program() 86 path = strtok_r(NULL, ":", &tmp); in search_program() 328 int llvm__compile_bpf(const char *path, void **p_obj_buf, in llvm__compile_bpf() argument 390 (path[0] == '-') ? path : in llvm__compile_bpf() 391 make_nonrelative_path(path)); in llvm__compile_bpf() 396 pr_err("ERROR:\tunable to compile %s\n", path); in llvm__compile_bpf() 399 pr_err(" \t\tclang -target bpf -O2 -c %s\n", path); in llvm__compile_bpf()
|
D | cpumap.c | 247 char path[PATH_MAX]; in cpu__get_topology_int() local 249 snprintf(path, PATH_MAX, in cpu__get_topology_int() 252 return sysfs__read_int(path, value); in cpu__get_topology_int() 351 static int get_max_num(char *path, int *max) in get_max_num() argument 357 if (filename__read_str(path, &buf, &num)) in get_max_num() 386 char path[PATH_MAX]; in set_max_cpu_num() local 397 ret = snprintf(path, PATH_MAX, "%s/devices/system/cpu/possible", mnt); in set_max_cpu_num() 403 ret = get_max_num(path, &max_cpu_num); in set_max_cpu_num() 414 char path[PATH_MAX]; in set_max_node_num() local 425 ret = snprintf(path, PATH_MAX, "%s/devices/system/node/possible", mnt); in set_max_node_num() [all …]
|
D | cache.h | 60 static inline int is_absolute_path(const char *path) in is_absolute_path() argument 62 return path[0] == '/'; in is_absolute_path() 65 const char *make_nonrelative_path(const char *path); 66 char *strip_path_suffix(const char *path, const char *suffix);
|
D | util.c | 48 int mkdir_p(char *path, mode_t mode) in mkdir_p() argument 52 char *d = path; in mkdir_p() 57 if (stat(path, &st) == 0) in mkdir_p() 64 err = stat(path, &st) && mkdir(path, mode); in mkdir_p() 71 return (stat(path, &st) && mkdir(path, mode)) ? -1 : 0; in mkdir_p() 74 int rm_rf(char *path) in rm_rf() argument 81 dir = opendir(path); in rm_rf() 92 path, d->d_name); in rm_rf() 114 return rmdir(path); in rm_rf() 647 char path[PATH_MAX]; in find_process() local [all …]
|
D | thread_map.c | 95 char path[256]; in thread_map__new_by_uid() local 118 snprintf(path, sizeof(path), "/proc/%s", dirent.d_name); in thread_map__new_by_uid() 120 if (stat(path, &st) != 0) in thread_map__new_by_uid() 126 snprintf(path, sizeof(path), "/proc/%d/task", pid); in thread_map__new_by_uid() 127 items = scandir(path, &namelist, filter, NULL); in thread_map__new_by_uid() 361 char *path; in get_comm() local 365 if (asprintf(&path, "%s/%d/comm", procfs__mountpoint(), pid) == -1) in get_comm() 368 err = filename__read_str(path, comm, &size); in get_comm() 379 free(path); in get_comm()
|
D | help.c | 118 const char *path, in list_commands_in_dir() argument 122 DIR *dir = opendir(path); in list_commands_in_dir() 133 strbuf_addf(&buf, "%s/", path); in list_commands_in_dir() 172 char *paths, *path, *colon; in load_command_list() local 173 path = paths = strdup(env_path); in load_command_list() 175 if ((colon = strchr(path, PATH_SEP))) in load_command_list() 177 if (!exec_path || strcmp(path, exec_path)) in load_command_list() 178 list_commands_in_dir(other_cmds, path, prefix); in load_command_list() 182 path = colon + 1; in load_command_list()
|
/linux-4.4.14/security/apparmor/ |
D | path.c | 56 static int d_namespace_path(struct path *path, char *buf, int buflen, in d_namespace_path() argument 63 if (path->mnt->mnt_flags & MNT_INTERNAL) { in d_namespace_path() 65 res = dentry_path(path->dentry, buf, buflen); in d_namespace_path() 71 if (path->dentry->d_sb->s_magic == PROC_SUPER_MAGIC && in d_namespace_path() 83 struct path root; in d_namespace_path() 85 res = __d_path(path, &root, buf, buflen); in d_namespace_path() 88 res = d_absolute_path(path, buf, buflen); in d_namespace_path() 89 if (!our_mnt(path->mnt)) in d_namespace_path() 100 res = dentry_path_raw(path->dentry, buf, buflen); in d_namespace_path() 106 } else if (!our_mnt(path->mnt)) in d_namespace_path() [all …]
|
D | lsm.c | 152 static int common_perm(int op, struct path *path, u32 mask, in common_perm() argument 160 error = aa_path_perm(op, profile, path, 0, mask, cond); in common_perm() 175 static int common_perm_dir_dentry(int op, struct path *dir, in common_perm_dir_dentry() 179 struct path path = { dir->mnt, dentry }; in common_perm_dir_dentry() local 181 return common_perm(op, &path, mask, cond); in common_perm_dir_dentry() 196 struct path path = { mnt, dentry }; in common_perm_mnt_dentry() local 201 return common_perm(op, &path, mask, &cond); in common_perm_mnt_dentry() 213 static int common_perm_rm(int op, struct path *dir, in common_perm_rm() 238 static int common_perm_create(int op, struct path *dir, struct dentry *dentry, in common_perm_create() 249 static int apparmor_path_unlink(struct path *dir, struct dentry *dentry) in apparmor_path_unlink() [all …]
|
/linux-4.4.14/security/keys/ |
D | big_key.c | 60 struct path *path = (struct path *)&prep->payload.data[big_key_path]; in big_key_preparse() local 98 *path = file->f_path; in big_key_preparse() 99 path_get(path); in big_key_preparse() 124 struct path *path = (struct path *)&prep->payload.data[big_key_path]; in big_key_free_preparse() local 125 path_put(path); in big_key_free_preparse() 137 struct path *path = (struct path *)&key->payload.data[big_key_path]; in big_key_revoke() local 143 vfs_truncate(path, 0); in big_key_revoke() 154 struct path *path = (struct path *)&key->payload.data[big_key_path]; in big_key_destroy() local 155 path_put(path); in big_key_destroy() 156 path->mnt = NULL; in big_key_destroy() [all …]
|
/linux-4.4.14/fs/autofs4/ |
D | dev-ioctl.c | 138 err = invalid_str(param->path, param->size - sizeof(*param)); in validate_dev_ioctl() 146 err = check_name(param->path); in validate_dev_ioctl() 195 struct path *res, in find_autofs_mount() 196 int test(struct path *path, void *data), in find_autofs_mount() argument 199 struct path path; in find_autofs_mount() local 200 int err = kern_path_mountpoint(AT_FDCWD, pathname, &path, 0); in find_autofs_mount() 204 while (path.dentry == path.mnt->mnt_root) { in find_autofs_mount() 205 if (path.dentry->d_sb->s_magic == AUTOFS_SUPER_MAGIC) { in find_autofs_mount() 206 if (test(&path, data)) { in find_autofs_mount() 207 path_get(&path); in find_autofs_mount() [all …]
|
/linux-4.4.14/include/video/ |
D | mmp_disp.h | 160 struct mmp_path *path; member 202 int (*check_status)(struct mmp_path *path); 203 struct mmp_overlay *(*get_overlay)(struct mmp_path *path, 205 int (*get_modelist)(struct mmp_path *path, 209 void (*set_mode)(struct mmp_path *path, struct mmp_mode *mode); 210 void (*set_onoff)(struct mmp_path *path, int status); 251 static inline void mmp_path_set_mode(struct mmp_path *path, in mmp_path_set_mode() argument 254 if (path) in mmp_path_set_mode() 255 path->ops.set_mode(path, mode); in mmp_path_set_mode() 257 static inline void mmp_path_set_onoff(struct mmp_path *path, int status) in mmp_path_set_onoff() argument [all …]
|
/linux-4.4.14/tools/perf/tests/ |
D | topology.c | 13 static int get_temp(char *path) in get_temp() argument 17 strcpy(path, TEMPL); in get_temp() 19 fd = mkstemp(path); in get_temp() 29 static int session_write_header(char *path) in session_write_header() argument 33 .path = path, in session_write_header() 56 static int check_cpu_topology(char *path, struct cpu_map *map) in check_cpu_topology() argument 60 .path = path, in check_cpu_topology() 89 char path[PATH_MAX]; in test_session_topology() local 93 TEST_ASSERT_VAL("can't get templ file", !get_temp(path)); in test_session_topology() 95 pr_debug("templ file: %s\n", path); in test_session_topology() [all …]
|
D | kmod-path.c | 6 static int test(const char *path, bool alloc_name, bool alloc_ext, in test() argument 14 !__kmod_path__parse(&m, path, alloc_name, alloc_ext)); in test() 17 path, alloc_name, alloc_ext, m.kmod, m.comp, m.name, m.ext); in test() 37 static int test_is_kernel_module(const char *path, int cpumode, bool expect) in test_is_kernel_module() argument 40 (!!is_kernel_module(path, cpumode)) == (!!expect)); in test_is_kernel_module() 42 path, cpumode, expect ? "true" : "false"); in test_is_kernel_module() 46 #define T(path, an, ae, k, c, n, e) \ argument 47 TEST_ASSERT_VAL("failed", !test(path, an, ae, k, c, n, e)) 49 #define M(path, c, e) \ argument 50 TEST_ASSERT_VAL("failed", !test_is_kernel_module(path, c, e))
|
D | attr.py | 17 return '\'%s\' - %s' % (self.test.path, self.msg) 23 return '\'%s\'' % self.test.path 120 def __init__(self, path, options): argument 122 parser.read(path) 124 log.warning("running '%s'" % path) 126 self.path = path 140 self.load_events(path, self.expect) 148 def load_events(self, path, events): argument 150 parser_event.read(path)
|
/linux-4.4.14/tools/lib/api/fs/ |
D | fs.c | 72 char path[PATH_MAX]; member 123 fs->path, type) == 2) { in fs__read_mounts() 153 strcpy(fs->path, *ptr); in fs__check_mounts() 191 strncpy(fs->path, override_path, sizeof(fs->path)); in fs__env_override() 198 return fs->path; in fs__get_mountpoint() 201 return fs->path; in fs__get_mountpoint() 204 return fs->path; in fs__get_mountpoint() 214 return (const char *)fs->path; in fs__mountpoint() 237 return (const char *)fs->path; in fs__mount() 244 return fs__check_mounts(fs) ? fs->path : NULL; in fs__mount() [all …]
|
/linux-4.4.14/arch/um/os-Linux/ |
D | execvp.c | 52 char *path = getenv("PATH"); in execvp_noalloc() local 53 if (path == NULL) in execvp_noalloc() 54 path = ":/bin:/usr/bin"; in execvp_noalloc() 57 pathlen = strlen(path); in execvp_noalloc() 64 p = path; in execvp_noalloc() 68 path = p; in execvp_noalloc() 71 p = strchr(path, ':'); in execvp_noalloc() 73 p = strchr(path, '\0'); in execvp_noalloc() 75 if (p == path) in execvp_noalloc() 80 startp = memcpy(name - (p - path), path, p - path); in execvp_noalloc()
|
/linux-4.4.14/tools/power/cpupower/utils/helpers/ |
D | sysfs.c | 19 unsigned int sysfs_read_file(const char *path, char *buf, size_t buflen) in sysfs_read_file() argument 24 fd = open(path, O_RDONLY); in sysfs_read_file() 50 char path[SYSFS_PATH_MAX]; in sysfs_is_cpu_online() local 58 snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u", cpu); in sysfs_is_cpu_online() 60 if (stat(path, &statbuf) != 0) in sysfs_is_cpu_online() 67 snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/online", cpu); in sysfs_is_cpu_online() 68 if (stat(path, &statbuf) != 0) in sysfs_is_cpu_online() 71 fd = open(path, O_RDONLY); in sysfs_is_cpu_online() 108 char path[SYSFS_PATH_MAX]; in sysfs_idlestate_file_exists() local 112 snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/cpuidle/state%u/%s", in sysfs_idlestate_file_exists() [all …]
|
D | topology.c | 27 char path[SYSFS_PATH_MAX]; in sysfs_topology_read_file() local 29 snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/topology/%s", in sysfs_topology_read_file() 31 if (sysfs_read_file(path, linebuf, MAX_LINE_LEN) == 0) in sysfs_topology_read_file()
|
/linux-4.4.14/net/iucv/ |
D | iucv.c | 878 int iucv_path_accept(struct iucv_path *path, struct iucv_handler *handler, in iucv_path_accept() argument 892 parm->ctrl.ippathid = path->pathid; in iucv_path_accept() 893 parm->ctrl.ipmsglim = path->msglim; in iucv_path_accept() 896 parm->ctrl.ipflags1 = path->flags; in iucv_path_accept() 900 path->private = private; in iucv_path_accept() 901 path->msglim = parm->ctrl.ipmsglim; in iucv_path_accept() 902 path->flags = parm->ctrl.ipflags1; in iucv_path_accept() 925 int iucv_path_connect(struct iucv_path *path, struct iucv_handler *handler, in iucv_path_connect() argument 940 parm->ctrl.ipmsglim = path->msglim; in iucv_path_connect() 941 parm->ctrl.ipflags1 = path->flags; in iucv_path_connect() [all …]
|
D | af_iucv.c | 291 return (skb_queue_len(&iucv->send_skb_q) < iucv->path->msglim); in iucv_below_msglim() 440 struct iucv_path *path = iucv->path; in iucv_sever_path() local 442 if (iucv->path) { in iucv_sever_path() 443 iucv->path = NULL; in iucv_sever_path() 448 pr_iucv->path_sever(path, user_data); in iucv_sever_path() 450 pr_iucv->path_sever(path, NULL); in iucv_sever_path() 451 iucv_path_free(path); in iucv_sever_path() 560 iucv->path = NULL; in iucv_sock_alloc() 727 if (iucv->path) in iucv_sock_bind() 814 iucv->path = iucv_path_alloc(iucv->msglimit, in afiucv_path_connect() [all …]
|
/linux-4.4.14/sound/pci/hda/ |
D | hda_generic.c | 254 static bool is_nid_contained(struct nid_path *path, hda_nid_t nid) in is_nid_contained() argument 256 return find_idx_in_nid_list(nid, path->path, path->depth) >= 0; in is_nid_contained() 267 struct nid_path *path = snd_array_elem(&spec->paths, i); in get_nid_path() local 268 if (path->depth <= 0) in get_nid_path() 270 if ((!from_nid || path->path[0] == from_nid) && in get_nid_path() 271 (!to_nid || path->path[path->depth - 1] == to_nid)) { in get_nid_path() 273 (anchor_nid > 0 && is_nid_contained(path, anchor_nid)) || in get_nid_path() 274 (anchor_nid < 0 && !is_nid_contained(path, anchor_nid))) in get_nid_path() 275 return path; in get_nid_path() 306 int snd_hda_get_path_idx(struct hda_codec *codec, struct nid_path *path) in snd_hda_get_path_idx() argument [all …]
|
D | patch_analog.c | 770 struct nid_path *path; in ad1988_auto_smux_enum_put() local 779 path = snd_hda_get_path_from_idx(codec, in ad1988_auto_smux_enum_put() 781 if (path) in ad1988_auto_smux_enum_put() 782 snd_hda_activate_path(codec, path, false, true); in ad1988_auto_smux_enum_put() 783 path = snd_hda_get_path_from_idx(codec, spec->smux_paths[val]); in ad1988_auto_smux_enum_put() 784 if (path) in ad1988_auto_smux_enum_put() 785 snd_hda_activate_path(codec, path, true, true); in ad1988_auto_smux_enum_put() 811 struct nid_path *path; in ad1988_auto_init() local 812 path = snd_hda_get_path_from_idx(codec, spec->smux_paths[i]); in ad1988_auto_init() 813 if (path) in ad1988_auto_init() [all …]
|
/linux-4.4.14/Documentation/device-mapper/ |
D | dm-service-time.txt | 4 dm-service-time is a path selector module for device-mapper targets, 5 which selects a path with the shortest estimated service time for 8 The service time for each path is estimated by dividing the total size 9 of in-flight I/Os on a path with the performance value of the path. 11 in a path-group, and it can be specified as a table argument. 13 The path selector name is 'service-time'. 15 Table parameters for each path: [<repeat_count> [<relative_throughput>]] 17 path before switching to the next path. 20 <relative_throughput>: The relative throughput value of the path 21 among all paths in the path-group. [all …]
|
D | dm-queue-length.txt | 4 dm-queue-length is a path selector module for device-mapper targets, 5 which selects a path with the least number of in-flight I/Os. 6 The path selector name is 'queue-length'. 8 Table parameters for each path: [<repeat_count>] 10 path before switching to the next path. 14 Status for each path: <status> <fail-count> <in-flight> 15 <status>: 'A' if the path is active, 'F' if the path is failed. 16 <fail-count>: The number of path failures. 17 <in-flight>: The number of in-flight I/Os on the path. 25 dm-queue-length selects a path with the minimum 'in-flight'.
|
/linux-4.4.14/drivers/md/ |
D | dm-queue-length.c | 36 struct dm_path *path; member 84 static int ql_status(struct path_selector *ps, struct dm_path *path, in ql_status() argument 91 if (!path) in ql_status() 94 pi = path->pscontext; in ql_status() 109 static int ql_add_path(struct path_selector *ps, struct dm_path *path, in ql_add_path() argument 139 pi->path = path; in ql_add_path() 143 path->pscontext = pi; in ql_add_path() 150 static void ql_fail_path(struct path_selector *ps, struct dm_path *path) in ql_fail_path() argument 153 struct path_info *pi = path->pscontext; in ql_fail_path() 158 static int ql_reinstate_path(struct path_selector *ps, struct dm_path *path) in ql_reinstate_path() argument [all …]
|
D | dm-service-time.c | 31 struct dm_path *path; member 80 static int st_status(struct path_selector *ps, struct dm_path *path, in st_status() argument 86 if (!path) in st_status() 89 pi = path->pscontext; in st_status() 106 static int st_add_path(struct path_selector *ps, struct dm_path *path, in st_add_path() argument 151 pi->path = path; in st_add_path() 156 path->pscontext = pi; in st_add_path() 163 static void st_fail_path(struct path_selector *ps, struct dm_path *path) in st_fail_path() argument 166 struct path_info *pi = path->pscontext; in st_fail_path() 171 static int st_reinstate_path(struct path_selector *ps, struct dm_path *path) in st_reinstate_path() argument [all …]
|
D | dm-round-robin.c | 26 struct dm_path *path; member 85 static int rr_status(struct path_selector *ps, struct dm_path *path, in rr_status() argument 91 if (!path) in rr_status() 98 pi = path->pscontext; in rr_status() 111 static int rr_add_path(struct path_selector *ps, struct dm_path *path, in rr_add_path() argument 137 pi->path = path; in rr_add_path() 140 path->pscontext = pi; in rr_add_path() 177 return pi ? pi->path : NULL; in rr_select_path()
|
D | dm-path-selector.h | 47 int (*add_path) (struct path_selector *ps, struct dm_path *path, 76 int (*status) (struct path_selector *ps, struct dm_path *path, 79 int (*start_io) (struct path_selector *ps, struct dm_path *path, 81 int (*end_io) (struct path_selector *ps, struct dm_path *path,
|
D | dm-mpath.c | 39 struct dm_path path; member 43 #define path_to_pgpath(__pgp) container_of((__pgp), struct pgpath, path) 165 dm_put_device(ti, pgpath->path.dev); in free_pgpaths() 299 struct dm_path *path; in __choose_path_in_pg() local 301 path = pg->ps.type->select_path(&pg->ps, &m->repeat_count, nr_bytes); in __choose_path_in_pg() 302 if (!path) in __choose_path_in_pg() 305 m->current_pgpath = path_to_pgpath(path); in __choose_path_in_pg() 416 bdev = pgpath->path.dev->bdev; in __multipath_map() 441 &pgpath->path, in __multipath_map() 570 &p->path.dev); in parse_path() [all …]
|
D | multipath.c | 89 struct md_rdev *rdev = conf->multipaths[mp_bh->path].rdev; in multipath_end_request() 124 mp_bh->path = multipath_map(conf); in multipath_make_request() 125 if (mp_bh->path < 0) { in multipath_make_request() 130 multipath = conf->multipaths + mp_bh->path; in multipath_make_request() 246 int path; in multipath_add_disk() local 256 for (path = first; path <= last; path++) in multipath_add_disk() 257 if ((p=conf->multipaths+path)->rdev == NULL) { in multipath_add_disk() 267 rdev->raid_disk = path; in multipath_add_disk() 343 if ((mp_bh->path = multipath_map (conf))<0) { in multipathd() 356 conf->multipaths[mp_bh->path].rdev->data_offset; in multipathd() [all …]
|
/linux-4.4.14/fs/reiserfs/ |
D | tail_conversion.c | 25 struct treepath *path, struct buffer_head *unbh, in direct2indirect() argument 30 struct item_head *p_le_ih = tp_item_head(path); in direct2indirect() 65 if (search_for_position_by_key(sb, &end_key, path) == POSITION_FOUND) { in direct2indirect() 69 pathrelse(path); in direct2indirect() 73 p_le_ih = tp_item_head(path); in direct2indirect() 81 PATH_LAST_POSITION(path)++; in direct2indirect() 83 reiserfs_insert_item(th, path, &end_key, &ind_ih, inode, in direct2indirect() 87 retval = reiserfs_paste_into_item(th, path, &end_key, inode, in direct2indirect() 114 if (search_for_position_by_key(sb, &end_key, path) == in direct2indirect() 118 p_le_ih = tp_item_head(path); in direct2indirect() [all …]
|
D | stree.c | 906 int comp_items(const struct item_head *stored_ih, const struct treepath *path) in comp_items() argument 908 struct buffer_head *bh = PATH_PLAST_BUFFER(path); in comp_items() 916 if (PATH_LAST_POSITION(path) >= B_NR_ITEMS(bh)) in comp_items() 920 ih = tp_item_head(path); in comp_items() 931 static inline int prepare_for_direct_item(struct treepath *path, in prepare_for_direct_item() argument 952 pos_in_item(path) = round_len - (le_ih_k_offset(le_ih) - 1); in prepare_for_direct_item() 953 *cut_size = -(ih_item_len(le_ih) - pos_in_item(path)); in prepare_for_direct_item() 967 (pos_in_item(path) = in prepare_for_direct_item() 972 static inline int prepare_for_direntry_item(struct treepath *path, in prepare_for_direntry_item() argument 999 entry_length(get_last_bh(path), le_ih, pos_in_item(path))); in prepare_for_direntry_item() [all …]
|
D | inode.c | 252 struct inode *inode, struct treepath *path) in restart_transaction() argument 260 pathrelse(path); in restart_transaction() 287 INITIALIZE_PATH(path); in _get_block_create_0() 304 result = search_for_position_by_key(inode->i_sb, &key, &path); in _get_block_create_0() 306 pathrelse(&path); in _get_block_create_0() 323 bh = get_last_bh(&path); in _get_block_create_0() 324 ih = tp_item_head(&path); in _get_block_create_0() 333 blocknr = get_block_num(ind_item, path.pos_in_item); in _get_block_create_0() 337 if (path.pos_in_item == in _get_block_create_0() 353 pathrelse(&path); in _get_block_create_0() [all …]
|
D | namei.c | 61 struct treepath *path) in set_de_item_location() argument 63 de->de_bh = get_last_bh(path); in set_de_item_location() 64 de->de_ih = tp_item_head(path); in set_de_item_location() 66 de->de_item_num = PATH_LAST_POSITION(path); in set_de_item_location() 121 struct treepath *path, struct reiserfs_dir_entry *de) in search_by_entry_key() argument 125 retval = search_item(sb, key, path); in search_by_entry_key() 128 if (!PATH_LAST_POSITION(path)) { in search_by_entry_key() 131 pathrelse(path); in search_by_entry_key() 134 PATH_LAST_POSITION(path)--; in search_by_entry_key() 143 pathrelse(path); in search_by_entry_key() [all …]
|
D | reiserfs.h | 2139 #define pos_in_item(path) ((path)->pos_in_item) argument 2145 #define PATH_OFFSET_PELEMENT(path, n_offset) ((path)->path_elements + (n_offset)) argument 2148 #define PATH_OFFSET_PBUFFER(path, n_offset) (PATH_OFFSET_PELEMENT(path, n_offset)->pe_buffer) argument 2151 #define PATH_OFFSET_POSITION(path, n_offset) (PATH_OFFSET_PELEMENT(path, n_offset)->pe_position) argument 2153 #define PATH_PLAST_BUFFER(path) (PATH_OFFSET_PBUFFER((path), (path)->path_length)) argument 2160 #define PATH_LAST_POSITION(path) (PATH_OFFSET_POSITION((path), (path)->path_length)) argument 2168 #define PATH_H_PBUFFER(path, h) \ argument 2169 PATH_OFFSET_PBUFFER(path, path->path_length - (h)) 2172 #define PATH_H_PPARENT(path, h) PATH_H_PBUFFER(path, (h) + 1) argument 2174 #define PATH_H_POSITION(path, h) \ argument [all …]
|
/linux-4.4.14/tools/testing/selftests/efivarfs/ |
D | open-unlink.c | 12 static int set_immutable(const char *path, int immutable) in set_immutable() argument 19 fd = open(path, O_RDONLY); in set_immutable() 43 static int get_immutable(const char *path) in get_immutable() argument 50 fd = open(path, O_RDONLY); in get_immutable() 69 const char *path; in main() local 78 path = argv[1]; in main() 88 fd = open(path, O_WRONLY | O_CREAT, 0600); in main() 102 rc = get_immutable(path); in main() 107 rc = set_immutable(path, 0); in main() 114 fd = open(path, O_RDONLY); in main() [all …]
|
D | create-read.c | 13 const char *path; in main() local 22 path = argv[1]; in main() 25 fd = open(path, O_RDWR | O_CREAT, 0600); in main()
|
/linux-4.4.14/drivers/base/ |
D | devtmpfs.c | 153 struct path path; in dev_mkdir() local 156 dentry = kern_path_create(AT_FDCWD, name, &path, LOOKUP_DIRECTORY); in dev_mkdir() 160 err = vfs_mkdir(d_inode(path.dentry), dentry, mode); in dev_mkdir() 164 done_path_create(&path, dentry); in dev_mkdir() 170 char *path; in create_path() local 175 path = kstrdup(nodepath, GFP_KERNEL); in create_path() 176 if (!path) in create_path() 179 s = path; in create_path() 185 err = dev_mkdir(path, 0755); in create_path() 191 kfree(path); in create_path() [all …]
|
/linux-4.4.14/tools/virtio/virtio-trace/ |
D | README | 43 of CPUs and a control path, so FIFO (named pipe) should be created as follows: 45 # mkfifo /tmp/virtio-trace/trace-path-cpu{0,1,2,...,X}.{in,out} 46 # mkfifo /tmp/virtio-trace/agent-ctl-path.{in,out} 49 trace-path-cpu{0,1,2}.{in.out} 51 agent-ctl-path.{in,out}. 58 ##control path## 59 -chardev pipe,id=charchannel0,path=/tmp/virtio-trace/agent-ctl-path\ 61 id=channel0,name=agent-ctl-path\ 62 ##data path## 63 -chardev pipe,id=charchannel1,path=/tmp/virtio-trace/trace-path-cpu0\ [all …]
|
/linux-4.4.14/drivers/isdn/hardware/eicon/ |
D | maintidi.c | 857 const char *path = (char *)&pVar->path_length + 1; in process_idi_event() local 861 if (!strncmp("State\\B Event", path, pVar->path_length)) { in process_idi_event() 877 if (!strncmp("State\\FAX Event", path, pVar->path_length)) { in process_idi_event() 893 if (!strncmp("State\\Modem Event", path, pVar->path_length)) { in process_idi_event() 942 if (!strncmp("Events Down", path, pVar->path_length)) { in process_idi_event() 951 if (!strncmp("State\\Layer1", path, pVar->path_length)) { in process_idi_event() 960 if (!strncmp("State\\Layer2 No1", path, pVar->path_length)) { in process_idi_event() 1020 if (!strncmp("Statistics\\Incoming Calls\\Calls", path, pVar->path_length) || in process_idi_event() 1021 !strncmp("Statistics\\Incoming Calls\\Connected", path, pVar->path_length)) { in process_idi_event() 1025 if (!strncmp("Statistics\\Outgoing Calls\\Calls", path, pVar->path_length) || in process_idi_event() [all …]
|
/linux-4.4.14/drivers/infiniband/ulp/ipoib/ |
D | ipoib_main.c | 81 struct ipoib_path path; member 488 struct ipoib_path *path; in __path_find() local 492 path = rb_entry(n, struct ipoib_path, rb_node); in __path_find() 494 ret = memcmp(gid, path->pathrec.dgid.raw, in __path_find() 502 return path; in __path_find() 508 static int __path_add(struct net_device *dev, struct ipoib_path *path) in __path_add() argument 520 ret = memcmp(path->pathrec.dgid.raw, tpath->pathrec.dgid.raw, in __path_add() 530 rb_link_node(&path->rb_node, pn, n); in __path_add() 531 rb_insert_color(&path->rb_node, &priv->path_tree); in __path_add() 533 list_add_tail(&path->list, &priv->path_list); in __path_add() [all …]
|
D | ipoib_fs.c | 200 struct ipoib_path path; in ipoib_path_seq_show() local 206 ipoib_path_iter_read(iter, &path); in ipoib_path_seq_show() 208 format_gid(&path.pathrec.dgid, gid_buf); in ipoib_path_seq_show() 213 gid_buf, path.pathrec.dlid ? "yes" : "no"); in ipoib_path_seq_show() 215 if (path.pathrec.dlid) { in ipoib_path_seq_show() 216 rate = ib_rate_to_mbps(path.pathrec.rate); in ipoib_path_seq_show() 222 be16_to_cpu(path.pathrec.dlid), in ipoib_path_seq_show() 223 path.pathrec.sl, in ipoib_path_seq_show()
|
/linux-4.4.14/fs/notify/fanotify/ |
D | fanotify.c | 24 old->path.mnt == new->path.mnt && in should_merge() 25 old->path.dentry == new->path.dentry) in should_merge() 107 struct path *path = data; in fanotify_should_send_event() local 118 if (!d_is_reg(path->dentry) && in fanotify_should_send_event() 119 !d_can_lookup(path->dentry)) in fanotify_should_send_event() 142 if (d_is_dir(path->dentry) && in fanotify_should_send_event() 154 struct path *path) in fanotify_alloc_event() argument 177 if (path) { in fanotify_alloc_event() 178 event->path = *path; in fanotify_alloc_event() 179 path_get(&event->path); in fanotify_alloc_event() [all …]
|
D | fanotify.h | 19 struct path path; member 50 struct path *path);
|
/linux-4.4.14/arch/mips/vdso/ |
D | genvdso.c | 112 static void *map_vdso(const char *path, size_t *_size) in map_vdso() argument 119 fd = open(path, O_RDWR); in map_vdso() 122 path, strerror(errno)); in map_vdso() 128 path, strerror(errno)); in map_vdso() 136 path, strerror(errno)); in map_vdso() 145 path); in map_vdso() 156 program_name, path); in map_vdso() 167 program_name, path); in map_vdso() 174 program_name, path); in map_vdso() 179 program_name, path); in map_vdso() [all …]
|
D | genvdso.h | 11 static inline bool FUNC(patch_vdso)(const char *path, void *vdso) in FUNC() 42 program_name, path); in FUNC() 53 program_name, path); in FUNC() 105 program_name, path); in FUNC() 113 static inline bool FUNC(get_symbols)(const char *path, void *vdso) in FUNC() 137 path); in FUNC() 181 program_name, path, vdso_symbols[i].name); in FUNC()
|
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_dcb_nl.c | 73 if (dst->path[tx].prio_type != src->path[tx].prio_type) { in ixgbe_copy_dcb_cfg() 74 dst->path[tx].prio_type = src->path[tx].prio_type; in ixgbe_copy_dcb_cfg() 78 if (dst->path[tx].bwg_id != src->path[tx].bwg_id) { in ixgbe_copy_dcb_cfg() 79 dst->path[tx].bwg_id = src->path[tx].bwg_id; in ixgbe_copy_dcb_cfg() 83 if (dst->path[tx].bwg_percent != src->path[tx].bwg_percent) { in ixgbe_copy_dcb_cfg() 84 dst->path[tx].bwg_percent = src->path[tx].bwg_percent; in ixgbe_copy_dcb_cfg() 88 if (dst->path[tx].up_to_tc_bitmap != in ixgbe_copy_dcb_cfg() 89 src->path[tx].up_to_tc_bitmap) { in ixgbe_copy_dcb_cfg() 90 dst->path[tx].up_to_tc_bitmap = in ixgbe_copy_dcb_cfg() 91 src->path[tx].up_to_tc_bitmap; in ixgbe_copy_dcb_cfg() [all …]
|
/linux-4.4.14/Documentation/ia64/ |
D | aliasing-test.c | 27 static int map_mem(char *path, off_t offset, size_t length, int touch) in map_mem() argument 33 fd = open(path, O_RDWR); in map_mem() 35 perror(path); in map_mem() 39 if (fnmatch("/proc/bus/pci/*", path, 0) == 0) { in map_mem() 65 static int scan_tree(char *path, char *file, off_t offset, size_t length, int touch) in scan_tree() argument 72 n = scandir(path, &namelist, 0, alphasort); in scan_tree() 86 path2 = malloc(strlen(path) + strlen(name) + 3); in scan_tree() 87 strcpy(path2, path); in scan_tree() 122 static int read_rom(char *path) in read_rom() argument 127 fd = open(path, O_RDWR); in read_rom() [all …]
|
D | err_inject.txt | 485 int rd_status(char *path, int *status) 488 sprintf(fn, "%s/status", path); 497 int rd_capabilities(char *path, u64 *capabilities) 500 sprintf(fn, "%s/capabilities", path); 509 int rd_all(char *path) 516 sprintf(fn, "%s/err_type_info", path); 523 sprintf(fn, "%s/err_struct_info", path); 530 sprintf(fn, "%s/err_data_buffer", path); 537 sprintf(fn, "%s/status", path); 544 sprintf(fn, "%s/capabilities", path); [all …]
|
/linux-4.4.14/tools/testing/selftests/memfd/ |
D | fuse_mnt.c | 26 static int memfd_getattr(const char *path, struct stat *st) in memfd_getattr() argument 30 if (!strcmp(path, "/")) { in memfd_getattr() 33 } else if (!strcmp(path, memfd_path)) { in memfd_getattr() 44 static int memfd_readdir(const char *path, in memfd_readdir() argument 50 if (strcmp(path, "/")) in memfd_readdir() 60 static int memfd_open(const char *path, struct fuse_file_info *fi) in memfd_open() argument 62 if (strcmp(path, memfd_path)) in memfd_open() 74 static int memfd_read(const char *path, in memfd_read() argument 82 if (strcmp(path, memfd_path) != 0) in memfd_read()
|
/linux-4.4.14/fs/configfs/ |
D | symlink.c | 112 static int get_target(const char *symname, struct path *path, in get_target() argument 117 ret = kern_path(symname, LOOKUP_FOLLOW|LOOKUP_DIRECTORY, path); in get_target() 119 if (path->dentry->d_sb == sb) { in get_target() 120 *target = configfs_get_config_item(path->dentry); in get_target() 123 path_put(path); in get_target() 127 path_put(path); in get_target() 138 struct path path; in configfs_symlink() local 161 ret = get_target(symname, &path, &target_item, dentry->d_sb); in configfs_symlink() 176 path_put(&path); in configfs_symlink() 236 char *path) in configfs_get_target_path() argument [all …]
|
/linux-4.4.14/fs/coda/ |
D | pioctl.c | 52 struct path path; in coda_pioctl() local 68 error = user_path(data.path, &path); in coda_pioctl() 70 error = user_lpath(data.path, &path); in coda_pioctl() 75 target_inode = d_inode(path.dentry); in coda_pioctl() 88 path_put(&path); in coda_pioctl()
|
/linux-4.4.14/kernel/ |
D | audit_watch.c | 50 char *path; /* insertion path */ member 121 kfree(watch->path); in audit_put_watch() 136 return watch->path; in audit_watch_path() 147 static struct audit_parent *audit_init_parent(struct path *path) in audit_init_parent() argument 149 struct inode *inode = d_backing_inode(path->dentry); in audit_init_parent() 171 static struct audit_watch *audit_init_watch(char *path) in audit_init_watch() argument 181 watch->path = path; in audit_init_watch() 189 int audit_to_watch(struct audit_krule *krule, char *path, int len, u32 op) in audit_to_watch() argument 196 if (path[0] != '/' || path[len-1] == '/' || in audit_to_watch() 202 watch = audit_init_watch(path); in audit_to_watch() [all …]
|
D | audit_fsnotify.c | 38 char *path; /* insertion path */ member 52 kfree(audit_mark->path); in audit_fsnotify_mark_free() 66 return mark->path; in audit_mark_path() 86 struct path path; in audit_alloc_mark() local 94 dentry = kern_path_locked(pathname, &path); in audit_alloc_mark() 97 inode = path.dentry->d_inode; in audit_alloc_mark() 108 audit_mark->path = pathname; in audit_alloc_mark() 119 path_put(&path); in audit_alloc_mark() 138 audit_log_untrustedstring(ab, audit_mark->path); in audit_mark_log_rule_change() 183 inode = ((struct path *)data)->dentry->d_inode; in audit_mark_handle_event() [all …]
|
/linux-4.4.14/fs/overlayfs/ |
D | super.c | 61 struct path lowerstack[]; 99 void ovl_path_upper(struct dentry *dentry, struct path *path) in ovl_path_upper() argument 104 path->mnt = ofs->upper_mnt; in ovl_path_upper() 105 path->dentry = ovl_upperdentry_dereference(oe); in ovl_path_upper() 108 enum ovl_path_type ovl_path_real(struct dentry *dentry, struct path *path) in ovl_path_real() argument 113 ovl_path_lower(dentry, path); in ovl_path_real() 115 ovl_path_upper(dentry, path); in ovl_path_real() 174 void ovl_path_lower(struct dentry *dentry, struct path *path) in ovl_path_lower() argument 178 *path = oe->numlower ? oe->lowerstack[0] : (struct path) { NULL, NULL }; in ovl_path_lower() 417 int ovl_path_next(int idx, struct dentry *dentry, struct path *path) in ovl_path_next() argument [all …]
|
D | overlayfs.h | 137 void ovl_path_upper(struct dentry *dentry, struct path *path); 138 void ovl_path_lower(struct dentry *dentry, struct path *path); 139 enum ovl_path_type ovl_path_real(struct dentry *dentry, struct path *path); 140 int ovl_path_next(int idx, struct dentry *dentry, struct path *path); 156 struct file *ovl_path_open(struct path *path, int flags); 197 struct path *lowerpath, struct kstat *stat);
|
/linux-4.4.14/arch/sh/drivers/pci/ |
D | fixups-cayman.c | 34 } path[4]; in pcibios_map_platform_irq() local 39 slot = path[i].slot = PCI_SLOT(dev->devfn); in pcibios_map_platform_irq() 40 pin = path[i].pin = pci_swizzle_interrupt_pin(dev, pin); in pcibios_map_platform_irq() 57 slot = path[i].slot; in pcibios_map_platform_irq() 58 pin = path[i].pin; in pcibios_map_platform_irq() 65 slot = path[i].slot; in pcibios_map_platform_irq() 66 pin = path[i].pin; in pcibios_map_platform_irq()
|
/linux-4.4.14/scripts/dtc/ |
D | fdtput.c | 166 const char *path = in_path; in create_paths() local 171 while (*path == '/') in create_paths() 172 path++; in create_paths() 174 for (sep = path; *sep; path = sep + 1, offset = node) { in create_paths() 176 sep = strchr(path, '/'); in create_paths() 178 sep = path + strlen(path); in create_paths() 180 node = fdt_subnode_offset_namelen(blob, offset, path, in create_paths() 181 sep - path); in create_paths() 183 node = fdt_add_subnode_namelen(blob, offset, path, in create_paths() 184 sep - path); in create_paths() [all …]
|
/linux-4.4.14/arch/powerpc/platforms/pseries/ |
D | of_helpers.c | 16 struct device_node *pseries_of_derive_parent(const char *path) in pseries_of_derive_parent() argument 23 tail = kbasename(path) - 1; in pseries_of_derive_parent() 26 if (!strcmp(path, "/")) in pseries_of_derive_parent() 29 if (tail > path) { in pseries_of_derive_parent() 30 parent_path = kstrndup(path, tail - path, GFP_KERNEL); in pseries_of_derive_parent()
|
D | reconfig.c | 27 static int pSeries_reconfig_add_node(const char *path, struct property *proplist) in pSeries_reconfig_add_node() argument 36 np->full_name = kstrdup(path, GFP_KERNEL); in pSeries_reconfig_add_node() 44 np->parent = pseries_of_derive_parent(path); in pSeries_reconfig_add_node() 52 printk(KERN_ERR "Failed to add device node %s\n", path); in pSeries_reconfig_add_node() 201 char *path, *end, *name; in do_add_node() local 208 path = buf; in do_add_node() 215 if ((np = of_find_node_by_path(path))) { in do_add_node() 237 rv = pSeries_reconfig_add_node(path, prop); in do_add_node()
|
/linux-4.4.14/tools/perf/ |
D | builtin-help.c | 104 static void exec_woman_emacs(const char *path, const char *page) in exec_woman_emacs() argument 112 if (!path) in exec_woman_emacs() 113 path = "emacsclient"; in exec_woman_emacs() 115 execlp(path, "emacsclient", "-e", man_page.buf, NULL); in exec_woman_emacs() 116 warning("failed to exec '%s': %s", path, in exec_woman_emacs() 121 static void exec_man_konqueror(const char *path, const char *page) in exec_man_konqueror() argument 131 if (path) { in exec_man_konqueror() 132 const char *file = strrchr(path, '/'); in exec_man_konqueror() 134 char *new = strdup(path); in exec_man_konqueror() 139 path = new; in exec_man_konqueror() [all …]
|
/linux-4.4.14/drivers/xen/xenbus/ |
D | xenbus_xs.c | 393 char *strings, *path; in xenbus_directory() local 396 path = join(dir, node); in xenbus_directory() 397 if (IS_ERR(path)) in xenbus_directory() 398 return (char **)path; in xenbus_directory() 400 strings = xs_single(t, XS_DIRECTORY, path, &len); in xenbus_directory() 401 kfree(path); in xenbus_directory() 431 char *path; in xenbus_read() local 434 path = join(dir, node); in xenbus_read() 435 if (IS_ERR(path)) in xenbus_read() 436 return (void *)path; in xenbus_read() [all …]
|
D | xenbus_dev_frontend.c | 234 static struct watch_adapter *alloc_watch_adapter(const char *path, in alloc_watch_adapter() argument 243 watch->watch.node = kstrdup(path, GFP_KERNEL); in alloc_watch_adapter() 266 const char *path, *token; in watch_fired() local 273 path = vec[XS_WATCH_PATH]; in watch_fired() 276 path_len = strlen(path) + 1; in watch_fired() 289 ret = queue_reply(&staging_q, path, path_len); in watch_fired() 366 char *path, *token; in xenbus_write_watch() local 370 path = u->u.buffer + sizeof(u->u.msg); in xenbus_write_watch() 371 token = memchr(path, 0, u->u.msg.len); in xenbus_write_watch() 377 if (memchr(token, 0, u->u.msg.len - (token - path)) == NULL) { in xenbus_write_watch() [all …]
|
/linux-4.4.14/tools/lib/traceevent/ |
D | event-plugin.c | 284 load_plugin(struct pevent *pevent, const char *path, in load_plugin() argument 294 plugin = malloc(strlen(path) + strlen(file) + 2); in load_plugin() 300 strcpy(plugin, path); in load_plugin() 343 const char *path, in load_plugins_dir() argument 345 const char *path, in load_plugins_dir() 355 ret = stat(path, &st); in load_plugins_dir() 362 dir = opendir(path); in load_plugins_dir() 377 load_plugin(pevent, path, name, data); in load_plugins_dir() 386 const char *path, in load_plugins() argument 392 char *path; in load_plugins() local [all …]
|
/linux-4.4.14/fs/xfs/libxfs/ |
D | xfs_attr.c | 901 blk = &state->path.blk[ state->path.active-1 ]; in xfs_attr_node_addname() 931 if (state->path.active == 1) { in xfs_attr_node_addname() 1001 xfs_da3_fixhashpath(state, &state->path); in xfs_attr_node_addname() 1078 blk = &state->path.blk[ state->path.active-1 ]; in xfs_attr_node_addname() 1081 xfs_da3_fixhashpath(state, &state->path); in xfs_attr_node_addname() 1086 if (retval && (state->path.active > 1)) { in xfs_attr_node_addname() 1176 blk = &state->path.blk[ state->path.active-1 ]; in xfs_attr_node_removename() 1212 blk = &state->path.blk[ state->path.active-1 ]; in xfs_attr_node_removename() 1215 xfs_da3_fixhashpath(state, &state->path); in xfs_attr_node_removename() 1220 if (retval && (state->path.active > 1)) { in xfs_attr_node_removename() [all …]
|
/linux-4.4.14/drivers/of/unittest-data/ |
D | tests-overlay.dtsi | 116 /* test enable using absolute target path */ 119 target-path = "/testcase-data/overlay-node/test-bus/test-unittest0"; 126 /* test disable using absolute target path */ 129 target-path = "/testcase-data/overlay-node/test-bus/test-unittest1"; 178 target-path = "/testcase-data/overlay-node/test-bus/test-unittest5"; 188 target-path = "/testcase-data/overlay-node/test-bus/test-unittest6"; 196 target-path = "/testcase-data/overlay-node/test-bus/test-unittest7"; 206 target-path = "/testcase-data/overlay-node/test-bus/test-unittest8"; 214 target-path = "/testcase-data/overlay-node/test-bus/test-unittest8"; 223 target-path = "/testcase-data/overlay-node/test-bus"; [all …]
|
/linux-4.4.14/arch/parisc/kernel/ |
D | drivers.c | 292 static void get_node_path(struct device *dev, struct hardware_path *path) in get_node_path() argument 295 memset(&path->bc, -1, 6); in get_node_path() 299 path->mod = PCI_FUNC(devfn); in get_node_path() 300 path->bc[i--] = PCI_SLOT(devfn); in get_node_path() 307 path->bc[i--] = PCI_SLOT(devfn) | (PCI_FUNC(devfn)<< 5); in get_node_path() 309 path->bc[i--] = to_parisc_device(dev)->hw_path; in get_node_path() 315 static char *print_hwpath(struct hardware_path *path, char *output) in print_hwpath() argument 319 if (path->bc[i] == -1) in print_hwpath() 321 output += sprintf(output, "%u/", (unsigned char) path->bc[i]); in print_hwpath() 323 output += sprintf(output, "%u", (unsigned char) path->mod); in print_hwpath() [all …]
|
D | inventory.c | 443 dev = alloc_pa_dev(r_addr->hpa, &module_path->path); in legacy_create_device() 469 memset(module_path.path.bc, 0xff, 6); in snake_inventory() 470 module_path.path.mod = mod; in snake_inventory() 475 memset(module_path.path.bc, 0xff, 4); in snake_inventory() 476 module_path.path.bc[4] = mod; in snake_inventory() 479 module_path.path.bc[5] = 0; in snake_inventory() 480 module_path.path.mod = func; in snake_inventory() 553 dev = alloc_pa_dev(module_result.mod_addr, &module_path.path); in system_map_inventory()
|
/linux-4.4.14/drivers/s390/char/ |
D | monreader.c | 48 struct iucv_path *path; member 154 rc = iucv_message_reply(monpriv->path, &monmsg->msg, in mon_send_reply() 232 static void mon_iucv_path_complete(struct iucv_path *path, u8 *ipuser) in mon_iucv_path_complete() argument 234 struct mon_private *monpriv = path->private; in mon_iucv_path_complete() 240 static void mon_iucv_path_severed(struct iucv_path *path, u8 *ipuser) in mon_iucv_path_severed() argument 242 struct mon_private *monpriv = path->private; in mon_iucv_path_severed() 246 iucv_path_sever(path, NULL); in mon_iucv_path_severed() 252 static void mon_iucv_message_pending(struct iucv_path *path, in mon_iucv_message_pending() argument 255 struct mon_private *monpriv = path->private; in mon_iucv_message_pending() 297 monpriv->path = iucv_path_alloc(MON_MSGLIM, IUCV_IPRMDATA, GFP_KERNEL); in mon_open() [all …]
|
D | vmlogrdr.c | 65 struct iucv_path *path; member 163 static void vmlogrdr_iucv_path_complete(struct iucv_path *path, u8 *ipuser) in vmlogrdr_iucv_path_complete() argument 165 struct vmlogrdr_priv_t * logptr = path->private; in vmlogrdr_iucv_path_complete() 174 static void vmlogrdr_iucv_path_severed(struct iucv_path *path, u8 *ipuser) in vmlogrdr_iucv_path_severed() argument 176 struct vmlogrdr_priv_t * logptr = path->private; in vmlogrdr_iucv_path_severed() 181 iucv_path_sever(path, NULL); in vmlogrdr_iucv_path_severed() 182 kfree(path); in vmlogrdr_iucv_path_severed() 183 logptr->path = NULL; in vmlogrdr_iucv_path_severed() 196 static void vmlogrdr_iucv_message_pending(struct iucv_path *path, in vmlogrdr_iucv_message_pending() argument 199 struct vmlogrdr_priv_t * logptr = path->private; in vmlogrdr_iucv_message_pending() [all …]
|
/linux-4.4.14/drivers/tty/hvc/ |
D | hvc_iucv.c | 69 struct iucv_path *path; /* IUCV path pointer */ member 249 rc = __iucv_message_receive(priv->path, &rb->msg, 0, in hvc_iucv_write() 414 rc = __iucv_message_send(priv->path, &sb->msg, 0, 0, in hvc_iucv_send() 591 struct iucv_path *path; in hvc_iucv_hangup() local 593 path = NULL; in hvc_iucv_hangup() 596 path = priv->path; in hvc_iucv_hangup() 597 priv->path = NULL; in hvc_iucv_hangup() 612 if (path) { in hvc_iucv_hangup() 613 iucv_path_sever(path, NULL); in hvc_iucv_hangup() 614 iucv_path_free(path); in hvc_iucv_hangup() [all …]
|
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/ |
D | phy.c | 765 u8 band, u8 path, in _rtl8821ae_phy_set_txpower_by_rate_base() argument 772 if (path > RF90_PATH_D) { in _rtl8821ae_phy_set_txpower_by_rate_base() 774 "Invalid Rf Path %d in phy_SetTxPowerByRatBase()\n", path); in _rtl8821ae_phy_set_txpower_by_rate_base() 781 rtlphy->txpwr_by_rate_base_24g[path][txnum][0] = value; in _rtl8821ae_phy_set_txpower_by_rate_base() 784 rtlphy->txpwr_by_rate_base_24g[path][txnum][1] = value; in _rtl8821ae_phy_set_txpower_by_rate_base() 787 rtlphy->txpwr_by_rate_base_24g[path][txnum][2] = value; in _rtl8821ae_phy_set_txpower_by_rate_base() 790 rtlphy->txpwr_by_rate_base_24g[path][txnum][3] = value; in _rtl8821ae_phy_set_txpower_by_rate_base() 793 rtlphy->txpwr_by_rate_base_24g[path][txnum][4] = value; in _rtl8821ae_phy_set_txpower_by_rate_base() 796 rtlphy->txpwr_by_rate_base_24g[path][txnum][5] = value; in _rtl8821ae_phy_set_txpower_by_rate_base() 801 rate_section, path, txnum); in _rtl8821ae_phy_set_txpower_by_rate_base() [all …]
|
/linux-4.4.14/arch/powerpc/boot/ |
D | install.sh | 46 path=$4 50 if [ -f $path/$image_name ]; then 51 mv $path/$image_name $path/$image_name.old 53 cat $1 > $path/$image_name
|
D | planetcore.c | 109 char *path; in planetcore_set_stdout_path() local 122 path = get_path(node, prop_buf, MAX_PROP_LEN); in planetcore_set_stdout_path() 123 if (!path) in planetcore_set_stdout_path() 132 setprop_str(chosen, "linux,stdout-path", path); in planetcore_set_stdout_path()
|
/linux-4.4.14/drivers/acpi/acpica/ |
D | nsaccess.c | 289 char *path = pathname; in acpi_ns_lookup() local 361 path = ""; in acpi_ns_lookup() 380 if (*path == (u8) AML_ROOT_PREFIX) { in acpi_ns_lookup() 389 path++; in acpi_ns_lookup() 408 while (*path == (u8) AML_PARENT_PREFIX) { in acpi_ns_lookup() 418 path++; in acpi_ns_lookup() 457 switch (*path) { in acpi_ns_lookup() 480 path++; in acpi_ns_lookup() 495 path++; in acpi_ns_lookup() 496 num_segments = (u32) (u8) * path; in acpi_ns_lookup() [all …]
|
D | uteval.c | 72 char *path, in acpi_ut_evaluate_object() argument 90 info->relative_pathname = path; in acpi_ut_evaluate_object() 100 path)); in acpi_ut_evaluate_object() 103 prefix_node, path, status); in acpi_ut_evaluate_object() 114 prefix_node, path, AE_NOT_EXIST); in acpi_ut_evaluate_object() 165 prefix_node, path, AE_TYPE); in acpi_ut_evaluate_object() 169 path, in acpi_ut_evaluate_object()
|
D | dswload.c | 147 char *path; in acpi_ds_load1_begin_op() local 172 path = acpi_ps_get_next_namestring(&walk_state->parser_state); in acpi_ds_load1_begin_op() 190 acpi_ns_lookup(walk_state->scope_info, path, object_type, in acpi_ds_load1_begin_op() 200 acpi_dm_add_op_to_external_list(op, path, in acpi_ds_load1_begin_op() 203 acpi_ns_lookup(walk_state->scope_info, path, in acpi_ds_load1_begin_op() 210 ACPI_ERROR_NAMESPACE(path, status); in acpi_ds_load1_begin_op() 344 acpi_ns_lookup(walk_state->scope_info, path, object_type, in acpi_ds_load1_begin_op() 378 ACPI_ERROR_NAMESPACE(path, status); in acpi_ds_load1_begin_op() 400 op->named.path = ACPI_CAST_PTR(u8, path); in acpi_ds_load1_begin_op()
|
/linux-4.4.14/tools/testing/selftests/exec/ |
D | execveat.c | 27 static int execveat_(int fd, const char *path, char **argv, char **envp, in execveat_() argument 31 return syscall(__NR_execveat, fd, path, argv, envp, flags); in execveat_() 38 #define check_execveat_fail(fd, path, flags, errno) \ argument 39 _check_execveat_fail(fd, path, flags, errno, #errno) 40 static int _check_execveat_fail(int fd, const char *path, int flags, in _check_execveat_fail() argument 47 fd, path?:"(null)", flags, errno_str); in _check_execveat_fail() 48 rc = execveat_(fd, path, argv, envp, flags); in _check_execveat_fail() 64 static int check_execveat_invoked_rc(int fd, const char *path, int flags, in check_execveat_invoked_rc() argument 70 int pathlen = path ? strlen(path) : 0; in check_execveat_invoked_rc() 74 fd, path, (path + pathlen - 20), flags); in check_execveat_invoked_rc() [all …]
|
/linux-4.4.14/tools/lib/bpf/ |
D | libbpf.c | 203 char path[]; member 306 static struct bpf_object *bpf_object__new(const char *path, in bpf_object__new() argument 312 obj = calloc(1, sizeof(struct bpf_object) + strlen(path) + 1); in bpf_object__new() 314 pr_warning("alloc memory failed for %s\n", path); in bpf_object__new() 318 strcpy(obj->path, path); in bpf_object__new() 373 obj->efile.fd = open(obj->path, O_RDONLY); in bpf_object__elf_init() 375 pr_warning("failed to open %s: %s\n", obj->path, in bpf_object__elf_init() 387 obj->path); in bpf_object__elf_init() 394 obj->path); in bpf_object__elf_init() 402 obj->path); in bpf_object__elf_init() [all …]
|
/linux-4.4.14/tools/perf/arch/ |
D | common.c | 64 char *path, *tmp = NULL; in lookup_path() local 75 path = strtok_r(env, ":", &tmp); in lookup_path() 76 while (path) { in lookup_path() 77 scnprintf(buf, sizeof(buf), "%s/%s", path, name); in lookup_path() 82 path = strtok_r(NULL, ":", &tmp); in lookup_path() 132 const char *name, const char **path) in perf_env__lookup_binutils_path() argument 200 *path = buf; in perf_env__lookup_binutils_path() 204 *path = NULL; in perf_env__lookup_binutils_path()
|
/linux-4.4.14/drivers/hwtracing/coresight/ |
D | coresight.c | 238 static int coresight_enable_path(struct list_head *path) in coresight_enable_path() argument 248 list_for_each_entry(cd, path, path_link) { in coresight_enable_path() 249 if (cd == list_first_entry(path, struct coresight_device, in coresight_enable_path() 252 } else if (list_is_last(&cd->path_link, path)) { in coresight_enable_path() 268 list_for_each_entry_continue_reverse(cd, path, path_link) { in coresight_enable_path() 269 if (cd == list_first_entry(path, struct coresight_device, in coresight_enable_path() 272 } else if (list_is_last(&cd->path_link, path)) { in coresight_enable_path() 282 static int coresight_disable_path(struct list_head *path) in coresight_disable_path() argument 286 list_for_each_entry_reverse(cd, path, path_link) { in coresight_disable_path() 287 if (cd == list_first_entry(path, struct coresight_device, in coresight_disable_path() [all …]
|
/linux-4.4.14/Documentation/devicetree/bindings/ |
D | chosen.txt | 9 stdout-path property 13 with a stdout-path property under /chosen, as described in ePAPR, e.g. 17 stdout-path = "/serial@f00:115200"; 26 If the character ":" is present in the value, this terminates the path. 43 Implementation note: Linux will look for the property "linux,stdout-path" or 44 on PowerPC "stdout" if "stdout-path" is not found. However, the 45 "linux,stdout-path" and "stdout" properties are deprecated. New platforms 46 should only use the "stdout-path" property.
|
/linux-4.4.14/sound/core/ |
D | misc.c | 56 static const char *sanity_file_name(const char *path) in sanity_file_name() argument 58 if (*path == '/') in sanity_file_name() 59 return strrchr(path, '/') + 1; in sanity_file_name() 61 return path; in sanity_file_name() 66 void __snd_printk(unsigned int level, const char *path, int line, in __snd_printk() argument 93 printk(verbose_fmt, sanity_file_name(path), line, &vaf); in __snd_printk()
|
/linux-4.4.14/fs/nfsd/ |
D | export.h | 23 char *path; /* slash separated list of path components */ member 52 struct path ex_path; 76 struct path ek_path; 93 struct path *); 95 struct path *); 98 char *path, struct knfsd_fh *, int maxsize);
|
D | export.c | 301 kfree(locations[i].path); in nfsd4_fslocs_free() 426 fsloc->locations[i].path = kstrdup(buf, GFP_KERNEL); in fsloc_parse() 427 if (!fsloc->locations[i].path) in fsloc_parse() 827 const struct path *path, struct cache_req *reqp) in exp_get_by_name() argument 836 key.ex_path = *path; in exp_get_by_name() 852 exp_parent(struct cache_detail *cd, struct auth_domain *clp, struct path *path) in exp_parent() argument 854 struct dentry *saved = dget(path->dentry); in exp_parent() 855 struct svc_export *exp = exp_get_by_name(cd, clp, path, NULL); in exp_parent() 857 while (PTR_ERR(exp) == -ENOENT && !IS_ROOT(path->dentry)) { in exp_parent() 858 struct dentry *parent = dget_parent(path->dentry); in exp_parent() [all …]
|
D | vfs.c | 88 struct path path = {.mnt = mntget(exp->ex_path.mnt), in nfsd_cross_mnt() local 92 err = follow_down(&path); in nfsd_cross_mnt() 96 exp2 = rqst_exp_get_by_name(rqstp, &path); in nfsd_cross_mnt() 108 path_put(&path); in nfsd_cross_mnt() 120 *dpp = path.dentry; in nfsd_cross_mnt() 121 path.dentry = dentry; in nfsd_cross_mnt() 125 path_put(&path); in nfsd_cross_mnt() 131 static void follow_to_parent(struct path *path) in follow_to_parent() argument 135 while (path->dentry == path->mnt->mnt_root && follow_up(path)) in follow_to_parent() 137 dp = dget_parent(path->dentry); in follow_to_parent() [all …]
|
/linux-4.4.14/fs/ocfs2/ |
D | alloc.c | 573 struct ocfs2_path *path, 580 void ocfs2_reinit_path(struct ocfs2_path *path, int keep_root) in ocfs2_reinit_path() argument 588 for(i = start; i < path_num_items(path); i++) { in ocfs2_reinit_path() 589 node = &path->p_node[i]; in ocfs2_reinit_path() 602 depth = le16_to_cpu(path_root_el(path)->l_tree_depth); in ocfs2_reinit_path() 604 path_root_access(path) = NULL; in ocfs2_reinit_path() 606 path->p_tree_depth = depth; in ocfs2_reinit_path() 609 void ocfs2_free_path(struct ocfs2_path *path) in ocfs2_free_path() argument 611 if (path) { in ocfs2_free_path() 612 ocfs2_reinit_path(path, 0); in ocfs2_free_path() [all …]
|
D | alloc.h | 121 struct ocfs2_path *path, 303 void ocfs2_reinit_path(struct ocfs2_path *path, int keep_root); 304 void ocfs2_free_path(struct ocfs2_path *path); 306 struct ocfs2_path *path, 308 struct ocfs2_path *ocfs2_new_path_from_path(struct ocfs2_path *path); 312 struct ocfs2_path *path, 316 struct ocfs2_path *path); 318 struct ocfs2_path *path, u32 *cpos); 320 struct ocfs2_path *path, u32 *cpos);
|
/linux-4.4.14/fs/ceph/ |
D | debugfs.c | 57 char *path; in mdsc_show() local 81 path = ceph_mdsc_build_path(req->r_dentry, &pathlen, in mdsc_show() 83 if (IS_ERR(path)) in mdsc_show() 84 path = NULL; in mdsc_show() 89 path ? path : ""); in mdsc_show() 91 kfree(path); in mdsc_show() 100 path = ceph_mdsc_build_path(req->r_old_dentry, &pathlen, in mdsc_show() 102 if (IS_ERR(path)) in mdsc_show() 103 path = NULL; in mdsc_show() 109 path ? path : ""); in mdsc_show() [all …]
|
/linux-4.4.14/kernel/bpf/ |
D | inode.c | 203 struct path path; in bpf_obj_do_pin() local 208 dentry = kern_path_create(AT_FDCWD, pathname->name, &path, 0); in bpf_obj_do_pin() 215 ret = security_path_mknod(&path, dentry, mode, devt); in bpf_obj_do_pin() 219 dir = d_inode(path.dentry); in bpf_obj_do_pin() 229 done_path_create(&path, dentry); in bpf_obj_do_pin() 262 struct path path; in bpf_obj_do_get() local 266 ret = kern_path(pathname->name, LOOKUP_FOLLOW, &path); in bpf_obj_do_get() 270 inode = d_backing_inode(path.dentry); in bpf_obj_do_get() 281 touch_atime(&path); in bpf_obj_do_get() 283 path_put(&path); in bpf_obj_do_get() [all …]
|
/linux-4.4.14/Documentation/filesystems/ |
D | path-lookup.txt | 4 Path resolution is the finding a dentry corresponding to a path name string, by 5 performing a path walk. Typically, for every open(), stat() etc., the path name 9 path string. Then repeating the lookup from the child dentry and finding its 17 thus in every component during path look-up. Since 2.5.10 onwards, fast-walk 19 as many cached path component dentries as possible. This significantly 27 next path element. This is inefficient and unscalable. It is inefficient 30 are path-walk intensive tend to do path lookups starting from a common dentry 32 common path elements causes lock and cacheline queueing. 34 Since 2.6.38, RCU is used to make a significant part of the entire path walk 37 path walking. [all …]
|
/linux-4.4.14/include/trace/events/ |
D | asoc.h | 160 struct snd_soc_dapm_path *path), 162 TP_ARGS(widget, dir, path), 166 __string( pname, path->name ? path->name : DAPM_DIRECT) 167 __string( pnname, path->node[dir]->name ) 175 __assign_str(pname, path->name ? path->name : DAPM_DIRECT); 176 __assign_str(pnname, path->node[dir]->name); 177 __entry->path_connect = path->connect; 178 __entry->path_node = (long)path->node[dir];
|
/linux-4.4.14/fs/cachefiles/ |
D | daemon.c | 555 struct path path; in cachefiles_daemon_cull() local 575 get_fs_pwd(current->fs, &path); in cachefiles_daemon_cull() 577 if (!d_can_lookup(path.dentry)) in cachefiles_daemon_cull() 581 ret = cachefiles_cull(cache, path.dentry, args); in cachefiles_daemon_cull() 584 path_put(&path); in cachefiles_daemon_cull() 589 path_put(&path); in cachefiles_daemon_cull() 627 struct path path; in cachefiles_daemon_inuse() local 647 get_fs_pwd(current->fs, &path); in cachefiles_daemon_inuse() 649 if (!d_can_lookup(path.dentry)) in cachefiles_daemon_inuse() 653 ret = cachefiles_check_in_use(cache, path.dentry, args); in cachefiles_daemon_inuse() [all …]
|
D | namei.c | 274 struct path path, path_to_graveyard; in cachefiles_bury_object() local 286 path.mnt = cache->mnt; in cachefiles_bury_object() 287 path.dentry = dir; in cachefiles_bury_object() 288 ret = security_path_unlink(&path, rep); in cachefiles_bury_object() 385 path.mnt = cache->mnt; in cachefiles_bury_object() 386 path.dentry = dir; in cachefiles_bury_object() 389 ret = security_path_rename(&path, rep, &path_to_graveyard, grave, 0); in cachefiles_bury_object() 466 struct path path; in cachefiles_walk_to_object() local 477 path.mnt = cache->mnt; in cachefiles_walk_to_object() 531 path.dentry = dir; in cachefiles_walk_to_object() [all …]
|
/linux-4.4.14/arch/powerpc/platforms/cell/spufs/ |
D | syscalls.c | 65 struct path path; in do_spu_create() local 69 dentry = user_path_create(AT_FDCWD, pathname, &path, LOOKUP_DIRECTORY); in do_spu_create() 72 ret = spufs_create(&path, dentry, flags, mode, neighbor); in do_spu_create() 73 done_path_create(&path, dentry); in do_spu_create()
|
D | inode.c | 299 static int spufs_context_open(struct path *path) in spufs_context_open() argument 308 filp = dentry_open(path, O_RDONLY, current_cred()); in spufs_context_open() 430 struct path path = {.mnt = mnt, .dentry = dentry}; in spufs_create_context() local 469 ret = spufs_context_open(&path); in spufs_create_context() 516 static int spufs_gang_open(struct path *path) in spufs_gang_open() argument 529 filp = dentry_open(path, O_RDONLY, current_cred()); in spufs_gang_open() 544 struct path path = {.mnt = mnt, .dentry = dentry}; in spufs_create_gang() local 549 ret = spufs_gang_open(&path); in spufs_create_gang() 561 long spufs_create(struct path *path, struct dentry *dentry, in spufs_create() argument 564 struct inode *dir = d_inode(path->dentry); in spufs_create() [all …]
|
/linux-4.4.14/fs/ecryptfs/ |
D | main.c | 123 struct path *path = ecryptfs_dentry_to_lower_path(dentry); in ecryptfs_init_lower_file() local 126 rc = ecryptfs_privileged_open(lower_file, path->dentry, path->mnt, in ecryptfs_init_lower_file() 131 "rc = [%d]\n", path->dentry, path->mnt, rc); in ecryptfs_init_lower_file() 500 struct path path; in ecryptfs_mount() local 536 rc = kern_path(dev_name, LOOKUP_FOLLOW | LOOKUP_DIRECTORY, &path); in ecryptfs_mount() 541 if (path.dentry->d_sb->s_type == &ecryptfs_fs_type) { in ecryptfs_mount() 549 if (check_ruid && !uid_eq(d_inode(path.dentry)->i_uid, current_uid())) { in ecryptfs_mount() 553 i_uid_read(d_inode(path.dentry)), in ecryptfs_mount() 558 ecryptfs_set_superblock_lower(s, path.dentry->d_sb); in ecryptfs_mount() 565 s->s_flags |= path.dentry->d_sb->s_flags & MS_POSIXACL; in ecryptfs_mount() [all …]
|
D | kthread.c | 33 struct path path; member 77 *req->lower_file = dentry_open(&req->path, in ecryptfs_threadfn() 142 req.path.dentry = lower_dentry; in ecryptfs_privileged_open() 143 req.path.mnt = lower_mnt; in ecryptfs_privileged_open() 149 (*lower_file) = dentry_open(&req.path, flags, cred); in ecryptfs_privileged_open()
|
/linux-4.4.14/sound/soc/ |
D | soc-dapm.c | 458 struct snd_soc_dapm_path *path) in dapm_kcontrol_add_path() argument 462 list_add_tail(&path->list_kcontrol, &data->paths); in dapm_kcontrol_add_path() 483 #define dapm_kcontrol_for_each_path(path, kcontrol) \ argument 484 list_for_each_entry(path, dapm_kcontrol_get_path_list(kcontrol), \ 689 struct snd_soc_dapm_path *path, const char *control_name, in dapm_connect_mux() argument 713 path->name = e->texts[i]; in dapm_connect_mux() 715 path->connect = 1; in dapm_connect_mux() 717 path->connect = 0; in dapm_connect_mux() 750 struct snd_soc_dapm_path *path, const char *control_name) in dapm_connect_mixer() argument 755 for (i = 0; i < path->sink->num_kcontrols; i++) { in dapm_connect_mixer() [all …]
|
/linux-4.4.14/scripts/ |
D | headerdep.pl | 80 my $path = "$i/$filename"; 81 return $path if -f $path; 95 my $path = search($header); 96 next unless $path; 98 open(my $file, '<', $path) or die($!);
|
D | headers_check.pl | 110 my $path = $_[0]; 114 my @file_paths = ($path, $dir . "/" . $path, dirname($filename) . "/" . $path);
|
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8723be/ |
D | hw.c | 1762 u32 path, addr = EEPROM_TX_PWR_INX, group, cnt = 0; in _rtl8723be_read_power_value_fromprom() local 1773 for (path = 0; path < MAX_RF_PATH; path++) { in _rtl8723be_read_power_value_fromprom() 1776 pw2g->index_cck_base[path][group] = 0x2D; in _rtl8723be_read_power_value_fromprom() 1777 pw2g->index_bw40_base[path][group] = 0x2D; in _rtl8723be_read_power_value_fromprom() 1781 pw2g->bw20_diff[path][0] = 0x02; in _rtl8723be_read_power_value_fromprom() 1782 pw2g->ofdm_diff[path][0] = 0x04; in _rtl8723be_read_power_value_fromprom() 1784 pw2g->bw20_diff[path][cnt] = 0xFE; in _rtl8723be_read_power_value_fromprom() 1785 pw2g->bw40_diff[path][cnt] = 0xFE; in _rtl8723be_read_power_value_fromprom() 1786 pw2g->cck_diff[path][cnt] = 0xFE; in _rtl8723be_read_power_value_fromprom() 1787 pw2g->ofdm_diff[path][cnt] = 0xFE; in _rtl8723be_read_power_value_fromprom() [all …]
|
D | phy.c | 78 void rtl8723be_phy_set_rf_reg(struct ieee80211_hw *hw, enum radio_path path, in rtl8723be_phy_set_rf_reg() argument 87 regaddr, bitmask, data, path); in rtl8723be_phy_set_rf_reg() 92 original_value = rtl8723_phy_rf_serial_read(hw, path, in rtl8723be_phy_set_rf_reg() 99 rtl8723_phy_rf_serial_write(hw, path, regaddr, data); in rtl8723be_phy_set_rf_reg() 105 regaddr, bitmask, data, path); in rtl8723be_phy_set_rf_reg() 214 u8 band, path, txnum, section; in _rtl8723be_phy_init_tx_power_by_rate() local 217 for (path = 0; path < TX_PWR_BY_RATE_NUM_RF; ++path) in _rtl8723be_phy_init_tx_power_by_rate() 223 [band][path][txnum][section] = 0; in _rtl8723be_phy_init_tx_power_by_rate() 249 u8 path, u8 rate_section, in _rtl8723be_phy_set_txpower_by_rate_base() argument 255 if (path > RF90_PATH_D) { in _rtl8723be_phy_set_txpower_by_rate_base() [all …]
|
/linux-4.4.14/sound/soc/codecs/ |
D | wm8958-dsp2.c | 195 static void wm8958_dsp_start_mbc(struct snd_soc_codec *codec, int path) in wm8958_dsp_start_mbc() argument 235 path << WM8958_MBC_SEL_SHIFT | in wm8958_dsp_start_mbc() 239 static void wm8958_dsp_start_vss(struct snd_soc_codec *codec, int path) in wm8958_dsp_start_vss() argument 283 if (wm8994->mbc_ena[path]) in wm8958_dsp_start_vss() 285 if (wm8994->hpf2_ena[path]) in wm8958_dsp_start_vss() 287 if (wm8994->hpf1_ena[path]) in wm8958_dsp_start_vss() 289 if (wm8994->vss_ena[path]) in wm8958_dsp_start_vss() 297 path << WM8958_MBC_SEL_SHIFT | WM8958_MBC_ENA); in wm8958_dsp_start_vss() 300 static void wm8958_dsp_start_enh_eq(struct snd_soc_codec *codec, int path) in wm8958_dsp_start_enh_eq() argument 328 path << WM8958_MBC_SEL_SHIFT | WM8958_MBC_ENA); in wm8958_dsp_start_enh_eq() [all …]
|
/linux-4.4.14/drivers/clk/imx/ |
D | clk.c | 24 char *path; in imx_obtain_fixed_clock_from_dt() local 26 path = kasprintf(GFP_KERNEL, "/clocks/%s", name); in imx_obtain_fixed_clock_from_dt() 27 if (!path) in imx_obtain_fixed_clock_from_dt() 30 phandle.np = of_find_node_by_path(path); in imx_obtain_fixed_clock_from_dt() 31 kfree(path); in imx_obtain_fixed_clock_from_dt()
|
/linux-4.4.14/tools/perf/Documentation/ |
D | perf-kvm.txt | 11 'perf kvm' [--host] [--guest] [--guestmount=<path> 12 [--guestkallsyms=<path> --guestmodules=<path> | --guestvmlinux=<path>]] 14 'perf kvm' [--host] [--guest] [--guestkallsyms=<path> --guestmodules=<path> 15 | --guestvmlinux=<path>] {top|record|report|diff|buildid-list|stat} [<options>] 70 --input=<path>:: 73 --output=<path>:: 79 --guestmount=<path>:: 81 root directories under <path> by a specific filesystem access method, 88 --guestkallsyms=<path>:: 91 --guestmodules=<path>:: [all …]
|
/linux-4.4.14/Documentation/ABI/testing/ |
D | sysfs-bus-i2c-devices-fsa9480 | 17 VAUDIO - switch to VAUDIO path 18 UART - switch to UART path 19 AUDIO - switch to AUDIO path 20 DHOST - switch to DHOST path
|
/linux-4.4.14/arch/parisc/include/asm/ |
D | hardware.h | 108 struct hardware_path *path); 116 extern char *print_pa_hwpath(struct parisc_device *dev, char *path); 117 extern char *print_pci_hwpath(struct pci_dev *dev, char *path); 118 extern void get_pci_node_path(struct pci_dev *dev, struct hardware_path *path); 121 extern void device_to_hwpath(struct device *dev, struct hardware_path *path);
|
/linux-4.4.14/drivers/s390/net/ |
D | netiucv.c | 190 struct iucv_path *path; member 529 static void netiucv_callback_rx(struct iucv_path *path, in netiucv_callback_rx() argument 532 struct iucv_connection *conn = path->private; in netiucv_callback_rx() 540 static void netiucv_callback_txdone(struct iucv_path *path, in netiucv_callback_txdone() argument 543 struct iucv_connection *conn = path->private; in netiucv_callback_txdone() 551 static void netiucv_callback_connack(struct iucv_path *path, u8 ipuser[16]) in netiucv_callback_connack() argument 553 struct iucv_connection *conn = path->private; in netiucv_callback_connack() 558 static int netiucv_callback_connreq(struct iucv_path *path, u8 *ipvmid, in netiucv_callback_connreq() argument 561 struct iucv_connection *conn = path->private; in netiucv_callback_connreq() 577 conn->path = path; in netiucv_callback_connreq() [all …]
|
/linux-4.4.14/tools/usb/usbip/libsrc/ |
D | vhci_driver.c | 169 char path[PATH_MAX+1]; in read_record() local 179 snprintf(path, PATH_MAX, VHCI_STATE_PATH"/port%d", rhport); in read_record() 181 file = fopen(path, "r"); in read_record() 306 const char *path; in usbip_vhci_attach_device2() local 313 path = udev_device_get_syspath(vhci_driver->hc_device); in usbip_vhci_attach_device2() 315 path, attr_attach); in usbip_vhci_attach_device2() 348 const char *path; in usbip_vhci_detach_device() local 354 path = udev_device_get_syspath(vhci_driver->hc_device); in usbip_vhci_detach_device() 356 path, attr_detach); in usbip_vhci_detach_device()
|
D | usbip_host_driver.c | 48 udev->path); in read_attr_usbip_status() 121 const char *path; in refresh_exported_devices() local 131 path = udev_list_entry_get_name(dev_list_entry); in refresh_exported_devices() 132 dev = udev_device_new_from_syspath(udev_context, path); in refresh_exported_devices() 139 edev = usbip_exported_device_new(path); in refresh_exported_devices() 248 edev->udev.path, attr_name); in usbip_host_export_device()
|
/linux-4.4.14/fs/kernfs/ |
D | symlink.c | 50 struct kernfs_node *target, char *path) in kernfs_get_target_path() argument 53 char *s = path; in kernfs_get_target_path() 82 if ((s - path) + len > PATH_MAX) in kernfs_get_target_path() 101 static int kernfs_getlink(struct dentry *dentry, char *path) in kernfs_getlink() argument 109 error = kernfs_get_target_path(parent, target, path); in kernfs_getlink()
|
/linux-4.4.14/sound/drivers/vx/ |
D | vx_hwdep.c | 69 char path[32]; in snd_vx_setup_firmware() local 73 sprintf(path, "vx/%s", fw_files[chip->type][i]); in snd_vx_setup_firmware() 74 if (request_firmware(&fw, path, chip->dev)) { in snd_vx_setup_firmware() 75 snd_printk(KERN_ERR "vx: can't load firmware %s\n", path); in snd_vx_setup_firmware()
|
/linux-4.4.14/fs/exportfs/ |
D | expfs.c | 22 static int get_name(const struct path *path, char *name, struct dentry *child); 29 struct path path = {.mnt = mnt, .dentry = dir}; in exportfs_get_name() local 34 return get_name(&path, name, child); in exportfs_get_name() 270 static int get_name(const struct path *path, char *name, struct dentry *child) in get_name() argument 273 struct inode *dir = path->dentry->d_inode; in get_name() 277 struct path child_path = { in get_name() 278 .mnt = path->mnt, in get_name() 305 file = dentry_open(path, O_RDONLY, cred); in get_name()
|
/linux-4.4.14/arch/powerpc/kernel/ |
D | ibmebus.c | 265 char *path; in ibmebus_store_probe() local 268 path = ibmebus_chomp(buf, count); in ibmebus_store_probe() 269 if (!path) in ibmebus_store_probe() 272 if (bus_find_device(&ibmebus_bus_type, NULL, path, in ibmebus_store_probe() 275 __func__, path); in ibmebus_store_probe() 280 if ((dn = of_find_node_by_path(path))) { in ibmebus_store_probe() 285 __func__, path); in ibmebus_store_probe() 290 kfree(path); in ibmebus_store_probe() 301 char *path; in ibmebus_store_remove() local 303 path = ibmebus_chomp(buf, count); in ibmebus_store_remove() [all …]
|
/linux-4.4.14/fs/cifs/ |
D | link.c | 238 struct cifs_sb_info *cifs_sb, const unsigned char *path, in query_mf_symlink() argument 252 cifs_sb, path, buf, &bytes_read); in query_mf_symlink() 273 const unsigned char *path) in check_mf_symlink() argument 290 cifs_sb, path, buf, &bytes_read); in check_mf_symlink() 326 struct cifs_sb_info *cifs_sb, const unsigned char *path, in cifs_query_mf_symlink() argument 342 oparms.path = path; in cifs_query_mf_symlink() 370 struct cifs_sb_info *cifs_sb, const unsigned char *path, in cifs_create_mf_symlink() argument 388 oparms.path = path; in cifs_create_mf_symlink() 413 struct cifs_sb_info *cifs_sb, const unsigned char *path, in smb3_query_mf_symlink() argument 435 utf16_path = cifs_convert_path_to_utf16(path, cifs_sb); in smb3_query_mf_symlink() [all …]
|
/linux-4.4.14/fs/hostfs/ |
D | hostfs.h | 65 extern int stat_file(const char *path, struct hostfs_stat *p, int fd); 66 extern int access_file(char *path, int r, int w, int x); 67 extern int open_file(char *path, int r, int w, int append); 68 extern void *open_dir(char *path, int *err_out);
|
D | hostfs_user.c | 41 int stat_file(const char *path, struct hostfs_stat *p, int fd) in stat_file() argument 48 } else if (lstat64(path, &buf) < 0) { in stat_file() 55 int access_file(char *path, int r, int w, int x) in access_file() argument 65 if (access(path, mode) != 0) in access_file() 70 int open_file(char *path, int r, int w, int append) in open_file() argument 84 fd = open64(path, mode); in open_file() 90 void *open_dir(char *path, int *err_out) in open_dir() argument 94 dir = opendir(path); in open_dir()
|
/linux-4.4.14/drivers/of/ |
D | unittest.c | 712 const char *path; member 715 { .path = "/testcase-data/match-node/name0", .data = "A", }, 716 { .path = "/testcase-data/match-node/name1", .data = "B", }, 717 { .path = "/testcase-data/match-node/a/name2", .data = "Ca", }, 718 { .path = "/testcase-data/match-node/b/name2", .data = "Cb", }, 719 { .path = "/testcase-data/match-node/c/name2", .data = "Cc", }, 720 { .path = "/testcase-data/match-node/name3", .data = "E", }, 721 { .path = "/testcase-data/match-node/name4", .data = "G", }, 722 { .path = "/testcase-data/match-node/name5", .data = "H", }, 723 { .path = "/testcase-data/match-node/name6", .data = "G", }, [all …]
|
/linux-4.4.14/arch/powerpc/sysdev/ |
D | mv64x60_udbg.c | 73 const char *path; in mv64x60_udbg_init() local 80 path = of_get_property(of_chosen, "linux,stdout-path", NULL); in mv64x60_udbg_init() 81 if (!path) in mv64x60_udbg_init() 84 stdout = of_find_node_by_path(path); in mv64x60_udbg_init()
|
/linux-4.4.14/security/integrity/ |
D | digsig.c | 88 int __init integrity_load_x509(const unsigned int id, const char *path) in integrity_load_x509() argument 97 rc = integrity_read_file(path, &data); in integrity_load_x509() 112 rc, path); in integrity_load_x509() 115 key_ref_to_ptr(key)->description, path); in integrity_load_x509()
|
/linux-4.4.14/arch/tile/mm/ |
D | elf.c | 44 char *buf, *path; in notify_exec() local 59 path = file_path(exe_file, buf, PAGE_SIZE); in notify_exec() 60 if (IS_ERR(path)) in notify_exec() 96 sim_notify_exec(path); in notify_exec()
|
/linux-4.4.14/drivers/net/fddi/skfp/ |
D | smtdef.c | 169 int path ; in smt_init_mib() local 237 for (path = 0 ; path < NUMPATHS ; path++) { in smt_init_mib() 238 mib->a[path].fddiPATHIndex = INDEX_PATH + path ; in smt_init_mib() 240 mib->a[path].fddiPATHTVXLowerBound = in smt_init_mib() 242 mib->a[path].fddiPATHT_MaxLowerBound = in smt_init_mib() 244 mib->a[path].fddiPATHMaxT_Req = in smt_init_mib()
|
/linux-4.4.14/tools/thermal/tmon/ |
D | sysfs.c | 41 int sysfs_set_ulong(char *path, char *filename, unsigned long val) in sysfs_set_ulong() argument 47 snprintf(filepath, 256, "%s/%s", path, filename); in sysfs_set_ulong() 65 static int sysfs_get_ulong(char *path, char *filename, unsigned long *p_ulong) in sysfs_get_ulong() argument 71 snprintf(filepath, 256, "%s/%s", path, filename); in sysfs_get_ulong() 84 static int sysfs_get_string(char *path, char *filename, char *str) in sysfs_get_string() argument 90 snprintf(filepath, 256, "%s/%s", path, filename); in sysfs_get_string() 104 static int probe_cdev(struct cdev_info *cdi, char *path) in probe_cdev() argument 106 sysfs_get_string(path, "type", cdi->type); in probe_cdev() 107 sysfs_get_ulong(path, "max_state", &cdi->max_state); in probe_cdev() 108 sysfs_get_ulong(path, "cur_state", &cdi->cur_state); in probe_cdev() [all …]
|
/linux-4.4.14/tools/usb/usbip/src/ |
D | usbip_detach.c | 48 char path[PATH_MAX+1]; in detach_port() local 64 snprintf(path, PATH_MAX, VHCI_STATE_PATH"/port%d", portnum); in detach_port() 66 remove(path); in detach_port()
|
/linux-4.4.14/net/hsr/ |
D | hsr_main.h | 81 static inline void set_hsr_tag_path(struct hsr_tag *ht, u16 path) in set_hsr_tag_path() argument 84 (ntohs(ht->path_and_LSDU_size) & 0x0FFF) | (path << 12)); in set_hsr_tag_path() 124 static inline void set_hsr_stag_path(struct hsr_sup_tag *hst, u16 path) in set_hsr_stag_path() argument 126 set_hsr_tag_path((struct hsr_tag *) hst, path); in set_hsr_stag_path()
|
/linux-4.4.14/drivers/clocksource/ |
D | timer-integrator-ap.c | 168 const char *path; in integrator_ap_timer_init_of() local 191 "arm,timer-primary", &path); in integrator_ap_timer_init_of() 194 pri_node = of_find_node_by_path(path); in integrator_ap_timer_init_of() 196 "arm,timer-secondary", &path); in integrator_ap_timer_init_of() 199 sec_node = of_find_node_by_path(path); in integrator_ap_timer_init_of()
|
/linux-4.4.14/fs/nfs/ |
D | nfs4namespace.c | 86 char *path = nfs_path(&limit, dentry, buffer, buflen, in nfs4_path() local 88 if (!IS_ERR(path)) { in nfs4_path() 89 char *path_component = nfs_path_component(path, limit); in nfs4_path() 93 return path; in nfs4_path() 104 const char *path, *fs_path; in nfs4_validate_fspath() local 106 path = nfs4_path(dentry, page, PAGE_SIZE); in nfs4_validate_fspath() 107 if (IS_ERR(path)) in nfs4_validate_fspath() 108 return PTR_ERR(path); in nfs4_validate_fspath() 114 if (strncmp(path, fs_path, strlen(fs_path)) != 0) { in nfs4_validate_fspath() 116 __func__, path, fs_path); in nfs4_validate_fspath()
|