/linux-4.19.296/fs/adfs/ |
D | dir_f.c | 16 static void adfs_f_free(struct adfs_dir *dir); 85 adfs_dir_checkbyte(const struct adfs_dir *dir) in adfs_dir_checkbyte() argument 87 struct buffer_head * const *bh = dir->bh; in adfs_dir_checkbyte() 88 const int blocksize_bits = dir->sb->s_blocksize_bits; in adfs_dir_checkbyte() 144 unsigned int size, struct adfs_dir *dir) in adfs_dir_read() argument 158 dir->nr_buffers = 0; in adfs_dir_read() 159 dir->sb = sb; in adfs_dir_read() 171 dir->bh[blk] = sb_bread(sb, phys); in adfs_dir_read() 172 if (!dir->bh[blk]) in adfs_dir_read() 176 memcpy(&dir->dirhead, bufoff(dir->bh, 0), sizeof(dir->dirhead)); in adfs_dir_read() [all …]
|
D | dir_fplus.c | 16 adfs_fplus_read(struct super_block *sb, unsigned int id, unsigned int sz, struct adfs_dir *dir) in adfs_fplus_read() argument 24 dir->nr_buffers = 0; in adfs_fplus_read() 27 dir->bh_fplus = &dir->bh[0]; in adfs_fplus_read() 35 dir->bh_fplus[0] = sb_bread(sb, block); in adfs_fplus_read() 36 if (!dir->bh_fplus[0]) in adfs_fplus_read() 38 dir->nr_buffers += 1; in adfs_fplus_read() 40 h = (struct adfs_bigdirheader *)dir->bh_fplus[0]->b_data; in adfs_fplus_read() 58 if (size > ARRAY_SIZE(dir->bh)) { in adfs_fplus_read() 69 dir->bh_fplus = bh_fplus; in adfs_fplus_read() 71 dir->bh_fplus[0] = dir->bh[0]; in adfs_fplus_read() [all …]
|
/linux-4.19.296/drivers/misc/cxl/ |
D | debugfs.c | 40 void cxl_debugfs_add_adapter_regs_psl9(struct cxl *adapter, struct dentry *dir) in cxl_debugfs_add_adapter_regs_psl9() argument 42 debugfs_create_io_x64("fir1", S_IRUSR, dir, _cxl_p1_addr(adapter, CXL_PSL9_FIR1)); in cxl_debugfs_add_adapter_regs_psl9() 43 debugfs_create_io_x64("fir_mask", 0400, dir, in cxl_debugfs_add_adapter_regs_psl9() 45 debugfs_create_io_x64("fir_cntl", S_IRUSR, dir, _cxl_p1_addr(adapter, CXL_PSL9_FIR_CNTL)); in cxl_debugfs_add_adapter_regs_psl9() 46 debugfs_create_io_x64("trace", S_IRUSR | S_IWUSR, dir, _cxl_p1_addr(adapter, CXL_PSL9_TRACECFG)); in cxl_debugfs_add_adapter_regs_psl9() 47 debugfs_create_io_x64("debug", 0600, dir, in cxl_debugfs_add_adapter_regs_psl9() 49 debugfs_create_io_x64("xsl-debug", 0600, dir, in cxl_debugfs_add_adapter_regs_psl9() 53 void cxl_debugfs_add_adapter_regs_psl8(struct cxl *adapter, struct dentry *dir) in cxl_debugfs_add_adapter_regs_psl8() argument 55 debugfs_create_io_x64("fir1", S_IRUSR, dir, _cxl_p1_addr(adapter, CXL_PSL_FIR1)); in cxl_debugfs_add_adapter_regs_psl8() 56 debugfs_create_io_x64("fir2", S_IRUSR, dir, _cxl_p1_addr(adapter, CXL_PSL_FIR2)); in cxl_debugfs_add_adapter_regs_psl8() [all …]
|
/linux-4.19.296/drivers/nubus/ |
D | nubus.c | 220 struct nubus_dir *dir) in nubus_get_root_dir() argument 222 dir->ptr = dir->base = board->directory; in nubus_get_root_dir() 223 dir->done = 0; in nubus_get_root_dir() 224 dir->mask = board->lanes; in nubus_get_root_dir() 230 int nubus_get_func_dir(const struct nubus_rsrc *fres, struct nubus_dir *dir) in nubus_get_func_dir() argument 232 dir->ptr = dir->base = fres->directory; in nubus_get_func_dir() 233 dir->done = 0; in nubus_get_func_dir() 234 dir->mask = fres->board->lanes; in nubus_get_func_dir() 240 struct nubus_dir *dir) in nubus_get_board_dir() argument 244 dir->ptr = dir->base = board->directory; in nubus_get_board_dir() [all …]
|
/linux-4.19.296/fs/ubifs/ |
D | dir.c | 59 static int inherit_flags(const struct inode *dir, umode_t mode) in inherit_flags() argument 62 const struct ubifs_inode *ui = ubifs_inode(dir); in inherit_flags() 64 if (!S_ISDIR(dir->i_mode)) in inherit_flags() 88 struct inode *ubifs_new_inode(struct ubifs_info *c, struct inode *dir, in ubifs_new_inode() argument 96 if (ubifs_crypt_is_encrypted(dir)) { in ubifs_new_inode() 97 err = fscrypt_get_encryption_info(dir); in ubifs_new_inode() 103 if (!fscrypt_has_encryption_key(dir)) in ubifs_new_inode() 122 inode_init_owner(inode, dir, mode); in ubifs_new_inode() 152 ui->flags = inherit_flags(dir, mode); in ubifs_new_inode() 186 err = fscrypt_inherit_context(dir, inode, &encrypted, true); in ubifs_new_inode() [all …]
|
/linux-4.19.296/fs/hpfs/ |
D | namei.c | 12 static void hpfs_update_directory_times(struct inode *dir) in hpfs_update_directory_times() argument 14 time64_t t = local_to_gmt(dir->i_sb, local_get_seconds(dir->i_sb)); in hpfs_update_directory_times() 15 if (t == dir->i_mtime.tv_sec && in hpfs_update_directory_times() 16 t == dir->i_ctime.tv_sec) in hpfs_update_directory_times() 18 dir->i_mtime.tv_sec = dir->i_ctime.tv_sec = t; in hpfs_update_directory_times() 19 dir->i_mtime.tv_nsec = dir->i_ctime.tv_nsec = 0; in hpfs_update_directory_times() 20 hpfs_write_inode_nolock(dir); in hpfs_update_directory_times() 23 static int hpfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) in hpfs_mkdir() argument 39 hpfs_lock(dir->i_sb); in hpfs_mkdir() 41 fnode = hpfs_alloc_fnode(dir->i_sb, hpfs_i(dir)->i_dno, &fno, &bh); in hpfs_mkdir() [all …]
|
/linux-4.19.296/fs/f2fs/ |
D | dir.c | 150 static struct f2fs_dir_entry *find_in_level(struct inode *dir, in find_in_level() argument 165 nbucket = dir_buckets(level, F2FS_I(dir)->i_dir_level); in find_in_level() 168 bidx = dir_block_index(level, F2FS_I(dir)->i_dir_level, in find_in_level() 174 dentry_page = f2fs_find_data_page(dir, bidx); in find_in_level() 195 if (!de && room && F2FS_I(dir)->chash != namehash) { in find_in_level() 196 F2FS_I(dir)->chash = namehash; in find_in_level() 197 F2FS_I(dir)->clevel = level; in find_in_level() 203 struct f2fs_dir_entry *__f2fs_find_entry(struct inode *dir, in __f2fs_find_entry() argument 206 unsigned long npages = dir_blocks(dir); in __f2fs_find_entry() 213 if (f2fs_has_inline_dentry(dir)) { in __f2fs_find_entry() [all …]
|
D | inline.c | 321 struct f2fs_dir_entry *f2fs_find_in_inline_dir(struct inode *dir, in f2fs_find_in_inline_dir() argument 324 struct f2fs_sb_info *sbi = F2FS_SB(dir->i_sb); in f2fs_find_in_inline_dir() 332 ipage = f2fs_get_node_page(sbi, dir->i_ino); in f2fs_find_in_inline_dir() 340 inline_dentry = inline_data_addr(dir, ipage); in f2fs_find_in_inline_dir() 342 make_dentry_ptr_inline(dir, &d, inline_dentry); in f2fs_find_in_inline_dir() 376 static int f2fs_move_inline_dirents(struct inode *dir, struct page *ipage, in f2fs_move_inline_dirents() argument 385 page = f2fs_grab_cache_page(dir->i_mapping, 0, false); in f2fs_move_inline_dirents() 391 set_new_dnode(&dn, dir, ipage, NULL, 0); in f2fs_move_inline_dirents() 402 __func__, dir->i_ino, dn.data_blkaddr); in f2fs_move_inline_dirents() 417 make_dentry_ptr_inline(dir, &src, inline_dentry); in f2fs_move_inline_dirents() [all …]
|
/linux-4.19.296/drivers/thunderbolt/ |
D | property.c | 103 struct tb_property_dir *dir; in tb_property_parse() local 119 dir = __tb_property_parse_dir(block, block_len, entry->value, in tb_property_parse() 121 if (!dir) { in tb_property_parse() 125 property->value.dir = dir; in tb_property_parse() 170 struct tb_property_dir *dir; in __tb_property_parse_dir() local 172 dir = kzalloc(sizeof(*dir), GFP_KERNEL); in __tb_property_parse_dir() 173 if (!dir) in __tb_property_parse_dir() 180 dir->uuid = kmemdup(&block[dir_offset], sizeof(*dir->uuid), in __tb_property_parse_dir() 189 INIT_LIST_HEAD(&dir->properties); in __tb_property_parse_dir() 196 tb_property_free_dir(dir); in __tb_property_parse_dir() [all …]
|
/linux-4.19.296/fs/reiserfs/ |
D | namei.c | 304 static int reiserfs_find_entry(struct inode *dir, const char *name, int namelen, in reiserfs_find_entry() argument 311 if (namelen > REISERFS_MAX_NAME(dir->i_sb->s_blocksize)) in reiserfs_find_entry() 315 make_cpu_key(&key_to_search, dir, in reiserfs_find_entry() 316 get_third_component(dir->i_sb, name, namelen), in reiserfs_find_entry() 321 search_by_entry_key(dir->i_sb, &key_to_search, in reiserfs_find_entry() 324 reiserfs_error(dir->i_sb, "zam-7001", "io error"); in reiserfs_find_entry() 352 static struct dentry *reiserfs_lookup(struct inode *dir, struct dentry *dentry, in reiserfs_lookup() argument 360 if (REISERFS_MAX_NAME(dir->i_sb->s_blocksize) < dentry->d_name.len) in reiserfs_lookup() 363 reiserfs_write_lock(dir->i_sb); in reiserfs_lookup() 367 reiserfs_find_entry(dir, dentry->d_name.name, dentry->d_name.len, in reiserfs_lookup() [all …]
|
/linux-4.19.296/fs/bfs/ |
D | dir.c | 24 static int bfs_add_entry(struct inode *dir, const struct qstr *child, int ino); 25 static struct buffer_head *bfs_find_entry(struct inode *dir, 31 struct inode *dir = file_inode(f); in bfs_readdir() local 40 dir->i_sb->s_id, dir->i_ino); in bfs_readdir() 44 while (ctx->pos < dir->i_size) { in bfs_readdir() 46 block = BFS_I(dir)->i_sblock + (ctx->pos >> BFS_BSIZE_BITS); in bfs_readdir() 47 bh = sb_bread(dir->i_sb, block); in bfs_readdir() 65 } while ((offset < BFS_BSIZE) && (ctx->pos < dir->i_size)); in bfs_readdir() 78 static int bfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, in bfs_create() argument 83 struct super_block *s = dir->i_sb; in bfs_create() [all …]
|
/linux-4.19.296/fs/ocfs2/ |
D | dir.c | 78 struct inode *dir, 89 static int ocfs2_supports_dir_trailer(struct inode *dir) in ocfs2_supports_dir_trailer() argument 91 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_supports_dir_trailer() 93 if (OCFS2_I(dir)->ip_dyn_features & OCFS2_INLINE_DATA_FL) in ocfs2_supports_dir_trailer() 96 return ocfs2_meta_ecc(osb) || ocfs2_dir_indexed(dir); in ocfs2_supports_dir_trailer() 107 static int ocfs2_new_dir_wants_trailer(struct inode *dir) in ocfs2_new_dir_wants_trailer() argument 109 struct ocfs2_super *osb = OCFS2_SB(dir->i_sb); in ocfs2_new_dir_wants_trailer() 137 static int ocfs2_skip_dir_trailer(struct inode *dir, in ocfs2_skip_dir_trailer() argument 144 if (!ocfs2_supports_dir_trailer(dir)) in ocfs2_skip_dir_trailer() 171 static int ocfs2_dx_dir_link_trailer(struct inode *dir, handle_t *handle, in ocfs2_dx_dir_link_trailer() argument [all …]
|
/linux-4.19.296/fs/ext4/ |
D | namei.c | 284 static unsigned dx_root_limit(struct inode *dir, unsigned infosize); 285 static unsigned dx_node_limit(struct inode *dir); 287 struct inode *dir, 291 static int dx_make_map(struct inode *dir, struct buffer_head *bh, 300 static int ext4_htree_next_block(struct inode *dir, __u32 hash, 304 static struct buffer_head * ext4_dx_find_entry(struct inode *dir, 308 struct inode *dir, struct inode *inode); 588 static inline unsigned dx_root_limit(struct inode *dir, unsigned infosize) in dx_root_limit() argument 590 unsigned entry_space = dir->i_sb->s_blocksize - EXT4_DIR_REC_LEN(1) - in dx_root_limit() 593 if (ext4_has_metadata_csum(dir->i_sb)) in dx_root_limit() [all …]
|
/linux-4.19.296/fs/orangefs/ |
D | namei.c | 18 static int orangefs_create(struct inode *dir, in orangefs_create() argument 23 struct orangefs_inode_s *parent = ORANGEFS_I(dir); in orangefs_create() 46 ret = service_operation(new_op, __func__, get_interruptible_flag(dir)); in orangefs_create() 63 inode = orangefs_new_inode(dir->i_sb, dir, S_IFREG | mode, 0, &ref); in orangefs_create() 88 dir->i_mtime = dir->i_ctime = current_time(dir); in orangefs_create() 91 orangefs_inode_setattr(dir, &iattr); in orangefs_create() 92 mark_inode_dirty_sync(dir); in orangefs_create() 107 static struct dentry *orangefs_lookup(struct inode *dir, struct dentry *dentry, in orangefs_lookup() argument 110 struct orangefs_inode_s *parent = ORANGEFS_I(dir); in orangefs_lookup() 152 ret = service_operation(new_op, __func__, get_interruptible_flag(dir)); in orangefs_lookup() [all …]
|
/linux-4.19.296/fs/nilfs2/ |
D | namei.c | 54 nilfs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags) in nilfs_lookup() argument 62 ino = nilfs_inode_by_name(dir, &dentry->d_name); in nilfs_lookup() 63 inode = ino ? nilfs_iget(dir->i_sb, NILFS_I(dir)->i_root, ino) : NULL; in nilfs_lookup() 75 static int nilfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, in nilfs_create() argument 82 err = nilfs_transaction_begin(dir->i_sb, &ti, 1); in nilfs_create() 85 inode = nilfs_new_inode(dir, mode); in nilfs_create() 95 err = nilfs_transaction_commit(dir->i_sb); in nilfs_create() 97 nilfs_transaction_abort(dir->i_sb); in nilfs_create() 103 nilfs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t rdev) in nilfs_mknod() argument 109 err = nilfs_transaction_begin(dir->i_sb, &ti, 1); in nilfs_mknod() [all …]
|
D | dir.c | 99 struct inode *dir = mapping->host; in nilfs_commit_chunk() local 107 if (pos + copied > dir->i_size) in nilfs_commit_chunk() 108 i_size_write(dir, pos + copied); in nilfs_commit_chunk() 109 if (IS_DIRSYNC(dir)) in nilfs_commit_chunk() 111 err = nilfs_set_file_dirty(dir, nr_dirty); in nilfs_commit_chunk() 118 struct inode *dir = page->mapping->host; in nilfs_check_page() local 119 struct super_block *sb = dir->i_sb; in nilfs_check_page() 120 unsigned int chunk_size = nilfs_chunk_size(dir); in nilfs_check_page() 127 if ((dir->i_size >> PAGE_SHIFT) == page->index) { in nilfs_check_page() 128 limit = dir->i_size & ~PAGE_MASK; in nilfs_check_page() [all …]
|
/linux-4.19.296/fs/omfs/ |
D | dir.c | 24 static struct buffer_head *omfs_get_bucket(struct inode *dir, in omfs_get_bucket() argument 27 int nbuckets = (dir->i_size - OMFS_DIR_START)/8; in omfs_get_bucket() 31 return omfs_bread(dir->i_sb, dir->i_ino); in omfs_get_bucket() 34 static struct buffer_head *omfs_scan_list(struct inode *dir, u64 block, in omfs_scan_list() argument 44 bh = omfs_bread(dir->i_sb, block); in omfs_scan_list() 51 if (omfs_is_bad(OMFS_SB(dir->i_sb), &oi->i_head, block)) { in omfs_scan_list() 67 static struct buffer_head *omfs_find_entry(struct inode *dir, in omfs_find_entry() argument 74 bh = omfs_get_bucket(dir, name, namelen, &ofs); in omfs_find_entry() 81 return omfs_scan_list(dir, block, name, namelen, &dummy); in omfs_find_entry() 113 struct inode *dir = d_inode(dentry->d_parent); in omfs_add_link() local [all …]
|
/linux-4.19.296/fs/cachefiles/ |
D | namei.c | 294 struct dentry *dir, in cachefiles_bury_object() argument 304 _enter(",'%pd','%pd'", dir, rep); in cachefiles_bury_object() 306 _debug("remove %p from %p", rep, dir); in cachefiles_bury_object() 313 path.dentry = dir; in cachefiles_bury_object() 319 ret = vfs_unlink(d_inode(dir), rep, NULL); in cachefiles_bury_object() 325 inode_unlock(d_inode(dir)); in cachefiles_bury_object() 336 inode_unlock(d_inode(dir)); in cachefiles_bury_object() 345 trap = lock_rename(cache->graveyard, dir); in cachefiles_bury_object() 348 if (rep->d_parent != dir || IS_DEADDIR(d_inode(rep))) { in cachefiles_bury_object() 351 unlock_rename(cache->graveyard, dir); in cachefiles_bury_object() [all …]
|
/linux-4.19.296/include/linux/ |
D | dma-mapping.h | 95 enum dma_data_direction dir, 98 size_t size, enum dma_data_direction dir, 105 int nents, enum dma_data_direction dir, 109 enum dma_data_direction dir, 112 size_t size, enum dma_data_direction dir, 115 size_t size, enum dma_data_direction dir, 119 enum dma_data_direction dir); 122 enum dma_data_direction dir); 125 enum dma_data_direction dir); 128 enum dma_data_direction dir); [all …]
|
/linux-4.19.296/include/net/netfilter/ |
D | nf_conntrack_zones.h | 21 nf_ct_zone_init(struct nf_conntrack_zone *zone, u16 id, u8 dir, u8 flags) in nf_ct_zone_init() argument 25 zone->dir = dir; in nf_ct_zone_init() 39 return nf_ct_zone_init(tmp, skb->mark, tmpl->zone.dir, 0); in nf_ct_zone_tmpl() 53 enum ip_conntrack_dir dir) in nf_ct_zone_matches_dir() argument 55 return zone->dir & (1 << dir); in nf_ct_zone_matches_dir() 59 enum ip_conntrack_dir dir) in nf_ct_zone_id() argument 62 return nf_ct_zone_matches_dir(zone, dir) ? in nf_ct_zone_id() 71 enum ip_conntrack_dir dir) in nf_ct_zone_equal() argument 74 return nf_ct_zone_id(nf_ct_zone(a), dir) == in nf_ct_zone_equal() 75 nf_ct_zone_id(b, dir); in nf_ct_zone_equal()
|
/linux-4.19.296/fs/ufs/ |
D | dir.c | 48 struct inode *dir = mapping->host; in ufs_commit_chunk() local 51 inode_inc_iversion(dir); in ufs_commit_chunk() 53 if (pos+len > dir->i_size) { in ufs_commit_chunk() 54 i_size_write(dir, pos+len); in ufs_commit_chunk() 55 mark_inode_dirty(dir); in ufs_commit_chunk() 57 if (IS_DIRSYNC(dir)) in ufs_commit_chunk() 70 ino_t ufs_inode_by_name(struct inode *dir, const struct qstr *qstr) in ufs_inode_by_name() argument 76 de = ufs_find_entry(dir, qstr, &page); in ufs_inode_by_name() 78 res = fs32_to_cpu(dir->i_sb, de->d_ino); in ufs_inode_by_name() 86 void ufs_set_link(struct inode *dir, struct ufs_dir_entry *de, in ufs_set_link() argument [all …]
|
/linux-4.19.296/fs/nfs/ |
D | nfstrace.h | 171 const struct inode *dir, 176 TP_ARGS(dir, dentry, flags), 181 __field(u64, dir) 186 __entry->dev = dir->i_sb->s_dev; 187 __entry->dir = NFS_FILEID(dir); 197 (unsigned long long)__entry->dir, 205 const struct inode *dir, \ 209 TP_ARGS(dir, dentry, flags)) 213 const struct inode *dir, 219 TP_ARGS(dir, dentry, flags, error), [all …]
|
/linux-4.19.296/fs/udf/ |
D | namei.c | 163 static struct fileIdentDesc *udf_find_entry(struct inode *dir, in udf_find_entry() argument 181 struct udf_inode_info *dinfo = UDF_I(dir); in udf_find_entry() 184 struct super_block *sb = dir->i_sb; in udf_find_entry() 186 size = udf_ext0_offset(dir) + dir->i_size; in udf_find_entry() 187 f_pos = udf_ext0_offset(dir); in udf_find_entry() 192 if (inode_bmap(dir, f_pos >> sb->s_blocksize_bits, &epos, in udf_find_entry() 221 fi = udf_fileident_read(dir, &f_pos, fibh, cfi, &epos, &eloc, in udf_find_entry() 299 static struct dentry *udf_lookup(struct inode *dir, struct dentry *dentry, in udf_lookup() argument 319 inode = udf_iget(dir->i_sb, lb); in udf_lookup() 325 fi = udf_find_entry(dir, &dentry->d_name, &fibh, &cfi); in udf_lookup() [all …]
|
/linux-4.19.296/fs/ext2/ |
D | dir.c | 93 struct inode *dir = mapping->host; in ext2_commit_chunk() local 96 inode_inc_iversion(dir); in ext2_commit_chunk() 99 if (pos+len > dir->i_size) { in ext2_commit_chunk() 100 i_size_write(dir, pos+len); in ext2_commit_chunk() 101 mark_inode_dirty(dir); in ext2_commit_chunk() 104 if (IS_DIRSYNC(dir)) { in ext2_commit_chunk() 107 err = sync_inode_metadata(dir, 1); in ext2_commit_chunk() 117 struct inode *dir = page->mapping->host; in ext2_check_page() local 118 struct super_block *sb = dir->i_sb; in ext2_check_page() 119 unsigned chunk_size = ext2_chunk_size(dir); in ext2_check_page() [all …]
|
/linux-4.19.296/include/xen/arm/ |
D | page-coherent.h | 18 enum dma_data_direction dir, unsigned long attrs); 20 size_t size, enum dma_data_direction dir, 23 dma_addr_t handle, size_t size, enum dma_data_direction dir); 26 dma_addr_t handle, size_t size, enum dma_data_direction dir); 42 enum dma_data_direction dir, unsigned long attrs) in xen_dma_map_page() argument 61 xen_get_dma_ops(hwdev)->map_page(hwdev, page, offset, size, dir, attrs); in xen_dma_map_page() 63 __xen_dma_map_page(hwdev, page, dev_addr, offset, size, dir, attrs); in xen_dma_map_page() 67 size_t size, enum dma_data_direction dir, unsigned long attrs) in xen_dma_unmap_page() argument 80 xen_get_dma_ops(hwdev)->unmap_page(hwdev, handle, size, dir, attrs); in xen_dma_unmap_page() 82 __xen_dma_unmap_page(hwdev, handle, size, dir, attrs); in xen_dma_unmap_page() [all …]
|