/linux-4.19.296/drivers/clk/ |
D | clk-fractional-divider.c | 22 struct clk_fractional_divider *fd = to_clk_fd(hw); in clk_fd_recalc_rate() local 28 if (fd->lock) in clk_fd_recalc_rate() 29 spin_lock_irqsave(fd->lock, flags); in clk_fd_recalc_rate() 31 __acquire(fd->lock); in clk_fd_recalc_rate() 33 val = clk_readl(fd->reg); in clk_fd_recalc_rate() 35 if (fd->lock) in clk_fd_recalc_rate() 36 spin_unlock_irqrestore(fd->lock, flags); in clk_fd_recalc_rate() 38 __release(fd->lock); in clk_fd_recalc_rate() 40 m = (val & fd->mmask) >> fd->mshift; in clk_fd_recalc_rate() 41 n = (val & fd->nmask) >> fd->nshift; in clk_fd_recalc_rate() [all …]
|
D | clk-xgene.c | 255 struct xgene_clk_pmd *fd = to_xgene_clk_pmd(hw); in xgene_clk_pmd_recalc_rate() local 260 if (fd->lock) in xgene_clk_pmd_recalc_rate() 261 spin_lock_irqsave(fd->lock, flags); in xgene_clk_pmd_recalc_rate() 263 __acquire(fd->lock); in xgene_clk_pmd_recalc_rate() 265 val = clk_readl(fd->reg); in xgene_clk_pmd_recalc_rate() 267 if (fd->lock) in xgene_clk_pmd_recalc_rate() 268 spin_unlock_irqrestore(fd->lock, flags); in xgene_clk_pmd_recalc_rate() 270 __release(fd->lock); in xgene_clk_pmd_recalc_rate() 274 scale = (val & fd->mask) >> fd->shift; in xgene_clk_pmd_recalc_rate() 275 if (fd->flags & XGENE_CLK_PMD_SCALE_INVERTED) in xgene_clk_pmd_recalc_rate() [all …]
|
/linux-4.19.296/include/linux/ |
D | file.h | 34 struct fd { struct 41 static inline void fdput(struct fd fd) in fdput() argument 43 if (fd.flags & FDPUT_FPUT) in fdput() 44 fput(fd.file); in fdput() 47 extern struct file *fget(unsigned int fd); 48 extern struct file *fget_many(unsigned int fd, unsigned int refs); 49 extern struct file *fget_raw(unsigned int fd); 50 extern unsigned long __fdget(unsigned int fd); 51 extern unsigned long __fdget_raw(unsigned int fd); 52 extern unsigned long __fdget_pos(unsigned int fd); [all …]
|
D | fdtable.h | 28 struct file __rcu **fd; /* current fd array */ member 35 static inline bool close_on_exec(unsigned int fd, const struct fdtable *fdt) in close_on_exec() argument 37 return test_bit(fd, fdt->close_on_exec); in close_on_exec() 40 static inline bool fd_is_open(unsigned int fd, const struct fdtable *fdt) in fd_is_open() argument 42 return test_bit(fd, fdt->open_fds); in fd_is_open() 82 static inline struct file *__fcheck_files(struct files_struct *files, unsigned int fd) in __fcheck_files() argument 86 if (fd < fdt->max_fds) { in __fcheck_files() 87 fd = array_index_nospec(fd, fdt->max_fds); in __fcheck_files() 88 return rcu_dereference_raw(fdt->fd[fd]); in __fcheck_files() 93 static inline struct file *fcheck_files(struct files_struct *files, unsigned int fd) in fcheck_files() argument [all …]
|
D | font.h | 61 #define REFCOUNT(fd) (((int *)(fd))[-1]) argument 62 #define FNTSIZE(fd) (((int *)(fd))[-2]) argument 63 #define FNTCHARCNT(fd) (((int *)(fd))[-3]) argument 64 #define FNTSUM(fd) (((int *)(fd))[-4]) argument
|
/linux-4.19.296/fs/hfsplus/ |
D | bfind.c | 15 int hfs_find_init(struct hfs_btree *tree, struct hfs_find_data *fd) in hfs_find_init() argument 19 fd->tree = tree; in hfs_find_init() 20 fd->bnode = NULL; in hfs_find_init() 24 fd->search_key = ptr; in hfs_find_init() 25 fd->key = ptr + tree->max_key_len + 2; in hfs_find_init() 44 void hfs_find_exit(struct hfs_find_data *fd) in hfs_find_exit() argument 46 hfs_bnode_put(fd->bnode); in hfs_find_exit() 47 kfree(fd->search_key); in hfs_find_exit() 49 fd->tree->cnid, __builtin_return_address(0)); in hfs_find_exit() 50 mutex_unlock(&fd->tree->tree_lock); in hfs_find_exit() [all …]
|
D | attributes.c | 138 const char *name, struct hfs_find_data *fd) in hfsplus_find_attr() argument 150 err = hfsplus_attr_build_key(sb, fd->search_key, cnid, name); in hfsplus_find_attr() 153 err = hfs_brec_find(fd, hfs_find_rec_by_key); in hfsplus_find_attr() 157 err = hfsplus_attr_build_key(sb, fd->search_key, cnid, NULL); in hfsplus_find_attr() 160 err = hfs_brec_find(fd, hfs_find_1st_rec_by_cnid); in hfsplus_find_attr() 173 struct hfs_find_data fd; in hfsplus_attr_exists() local 178 err = hfs_find_init(HFSPLUS_SB(sb)->attr_tree, &fd); in hfsplus_attr_exists() 182 err = hfsplus_find_attr(sb, inode->i_ino, name, &fd); in hfsplus_attr_exists() 186 hfs_find_exit(&fd); in hfsplus_attr_exists() 190 hfs_find_exit(&fd); in hfsplus_attr_exists() [all …]
|
D | brec.c | 15 static struct hfs_bnode *hfs_bnode_split(struct hfs_find_data *fd); 16 static int hfs_brec_update_parent(struct hfs_find_data *fd); 63 int hfs_brec_insert(struct hfs_find_data *fd, void *entry, int entry_len) in hfs_brec_insert() argument 72 tree = fd->tree; in hfs_brec_insert() 73 if (!fd->bnode) { in hfs_brec_insert() 79 fd->bnode = node; in hfs_brec_insert() 80 fd->record = -1; in hfs_brec_insert() 83 key_len = be16_to_cpu(fd->search_key->key_len) + 2; in hfs_brec_insert() 86 rec = fd->record + 1; in hfs_brec_insert() 89 node = fd->bnode; in hfs_brec_insert() [all …]
|
D | catalog.c | 195 struct hfs_find_data *fd) in hfsplus_find_cat() argument 201 hfsplus_cat_build_key_with_cnid(sb, fd->search_key, cnid); in hfsplus_find_cat() 202 err = hfs_brec_read(fd, &tmp, sizeof(hfsplus_cat_entry)); in hfsplus_find_cat() 217 hfsplus_cat_build_key_uni(fd->search_key, in hfsplus_find_cat() 220 return hfs_brec_find(fd, hfs_find_rec_by_key); in hfsplus_find_cat() 257 struct hfs_find_data fd; in hfsplus_create_cat() local 264 err = hfs_find_init(HFSPLUS_SB(sb)->cat_tree, &fd); in hfsplus_create_cat() 272 err = hfs_bmap_reserve(fd.tree, 2 * fd.tree->depth); in hfsplus_create_cat() 276 hfsplus_cat_build_key_with_cnid(sb, fd.search_key, cnid); in hfsplus_create_cat() 286 err = hfs_brec_find(&fd, hfs_find_rec_by_key); in hfsplus_create_cat() [all …]
|
D | extents.c | 88 struct hfs_find_data *fd) in __hfsplus_ext_write_extent() argument 95 hfsplus_ext_build_key(fd->search_key, inode->i_ino, hip->cached_start, in __hfsplus_ext_write_extent() 99 res = hfs_brec_find(fd, hfs_find_rec_by_key); in __hfsplus_ext_write_extent() 104 res = hfs_bmap_reserve(fd->tree, fd->tree->depth + 1); in __hfsplus_ext_write_extent() 107 hfs_brec_insert(fd, hip->cached_extents, in __hfsplus_ext_write_extent() 113 hfs_bnode_write(fd->bnode, hip->cached_extents, in __hfsplus_ext_write_extent() 114 fd->entryoffset, fd->entrylength); in __hfsplus_ext_write_extent() 134 struct hfs_find_data fd; in hfsplus_ext_write_extent_locked() local 136 res = hfs_find_init(HFSPLUS_SB(inode->i_sb)->ext_tree, &fd); in hfsplus_ext_write_extent_locked() 139 res = __hfsplus_ext_write_extent(inode, &fd); in hfsplus_ext_write_extent_locked() [all …]
|
/linux-4.19.296/fs/hfs/ |
D | bfind.c | 15 int hfs_find_init(struct hfs_btree *tree, struct hfs_find_data *fd) in hfs_find_init() argument 19 fd->tree = tree; in hfs_find_init() 20 fd->bnode = NULL; in hfs_find_init() 24 fd->search_key = ptr; in hfs_find_init() 25 fd->key = ptr + tree->max_key_len + 2; in hfs_find_init() 44 void hfs_find_exit(struct hfs_find_data *fd) in hfs_find_exit() argument 46 hfs_bnode_put(fd->bnode); in hfs_find_exit() 47 kfree(fd->search_key); in hfs_find_exit() 49 fd->tree->cnid, __builtin_return_address(0)); in hfs_find_exit() 50 mutex_unlock(&fd->tree->tree_lock); in hfs_find_exit() [all …]
|
D | brec.c | 14 static struct hfs_bnode *hfs_bnode_split(struct hfs_find_data *fd); 15 static int hfs_brec_update_parent(struct hfs_find_data *fd); 65 int hfs_brec_insert(struct hfs_find_data *fd, void *entry, int entry_len) in hfs_brec_insert() argument 74 tree = fd->tree; in hfs_brec_insert() 75 if (!fd->bnode) { in hfs_brec_insert() 81 fd->bnode = node; in hfs_brec_insert() 82 fd->record = -1; in hfs_brec_insert() 85 key_len = (fd->search_key->key_len | 1) + 1; in hfs_brec_insert() 88 rec = fd->record + 1; in hfs_brec_insert() 91 node = fd->bnode; in hfs_brec_insert() [all …]
|
D | dir.c | 24 struct hfs_find_data fd; in hfs_lookup() local 28 res = hfs_find_init(HFS_SB(dir->i_sb)->cat_tree, &fd); in hfs_lookup() 31 hfs_cat_build_key(dir->i_sb, fd.search_key, dir->i_ino, &dentry->d_name); in hfs_lookup() 32 res = hfs_brec_read(&fd, &rec, sizeof(rec)); in hfs_lookup() 37 inode = hfs_iget(dir->i_sb, &fd.search_key->cat, &rec); in hfs_lookup() 41 hfs_find_exit(&fd); in hfs_lookup() 55 struct hfs_find_data fd; in hfs_readdir() local 62 err = hfs_find_init(HFS_SB(sb)->cat_tree, &fd); in hfs_readdir() 65 hfs_cat_build_key(sb, fd.search_key, inode->i_ino, NULL); in hfs_readdir() 66 err = hfs_brec_find(&fd); in hfs_readdir() [all …]
|
D | catalog.c | 84 struct hfs_find_data fd; in hfs_cat_create() local 96 err = hfs_find_init(HFS_SB(sb)->cat_tree, &fd); in hfs_cat_create() 104 err = hfs_bmap_reserve(fd.tree, 2 * fd.tree->depth); in hfs_cat_create() 108 hfs_cat_build_key(sb, fd.search_key, cnid, NULL); in hfs_cat_create() 112 err = hfs_brec_find(&fd); in hfs_cat_create() 118 err = hfs_brec_insert(&fd, &entry, entry_size); in hfs_cat_create() 122 hfs_cat_build_key(sb, fd.search_key, dir->i_ino, str); in hfs_cat_create() 124 err = hfs_brec_find(&fd); in hfs_cat_create() 131 err = hfs_brec_insert(&fd, &entry, entry_size); in hfs_cat_create() 138 hfs_find_exit(&fd); in hfs_cat_create() [all …]
|
D | attr.c | 25 struct hfs_find_data fd; in __hfs_setxattr() local 33 res = hfs_find_init(HFS_SB(inode->i_sb)->cat_tree, &fd); in __hfs_setxattr() 36 fd.search_key->cat = HFS_I(inode)->cat_key; in __hfs_setxattr() 37 res = hfs_brec_find(&fd); in __hfs_setxattr() 40 hfs_bnode_read(fd.bnode, &rec, fd.entryoffset, in __hfs_setxattr() 61 hfs_bnode_write(fd.bnode, &rec, fd.entryoffset, in __hfs_setxattr() 64 hfs_find_exit(&fd); in __hfs_setxattr() 71 struct hfs_find_data fd; in __hfs_getxattr() local 80 res = hfs_find_init(HFS_SB(inode->i_sb)->cat_tree, &fd); in __hfs_getxattr() 83 fd.search_key->cat = HFS_I(inode)->cat_key; in __hfs_getxattr() [all …]
|
D | extent.c | 110 static int __hfs_ext_write_extent(struct inode *inode, struct hfs_find_data *fd) in __hfs_ext_write_extent() argument 114 hfs_ext_build_key(fd->search_key, inode->i_ino, HFS_I(inode)->cached_start, in __hfs_ext_write_extent() 116 res = hfs_brec_find(fd); in __hfs_ext_write_extent() 121 res = hfs_bmap_reserve(fd->tree, fd->tree->depth + 1); in __hfs_ext_write_extent() 124 hfs_brec_insert(fd, HFS_I(inode)->cached_extents, sizeof(hfs_extent_rec)); in __hfs_ext_write_extent() 129 hfs_bnode_write(fd->bnode, HFS_I(inode)->cached_extents, fd->entryoffset, fd->entrylength); in __hfs_ext_write_extent() 137 struct hfs_find_data fd; in hfs_ext_write_extent() local 141 res = hfs_find_init(HFS_SB(inode->i_sb)->ext_tree, &fd); in hfs_ext_write_extent() 144 res = __hfs_ext_write_extent(inode, &fd); in hfs_ext_write_extent() 145 hfs_find_exit(&fd); in hfs_ext_write_extent() [all …]
|
/linux-4.19.296/fs/jffs2/ |
D | build.c | 56 struct jffs2_full_dirent *fd; in jffs2_build_inode_pass1() local 61 for(fd = ic->scan_dents; fd; fd = fd->next) { in jffs2_build_inode_pass1() 63 if (!fd->ino) in jffs2_build_inode_pass1() 68 child_ic = jffs2_get_ino_cache(c, fd->ino); in jffs2_build_inode_pass1() 71 fd->name, fd->ino, ic->ino); in jffs2_build_inode_pass1() 72 jffs2_mark_node_obsolete(c, fd->raw); in jffs2_build_inode_pass1() 74 fd->ic = NULL; in jffs2_build_inode_pass1() 79 fd->ic = child_ic; in jffs2_build_inode_pass1() 83 if (fd->type == DT_DIR) { in jffs2_build_inode_pass1() 89 dbg_fsbuild("increased nlink for child \"%s\" (ino #%u)\n", fd->name, fd->ino); in jffs2_build_inode_pass1() [all …]
|
D | write.c | 209 struct jffs2_full_dirent *fd; in jffs2_write_dirent() local 242 fd = jffs2_alloc_full_dirent(namelen+1); in jffs2_write_dirent() 243 if (!fd) in jffs2_write_dirent() 246 fd->version = je32_to_cpu(rd->version); in jffs2_write_dirent() 247 fd->ino = je32_to_cpu(rd->ino); in jffs2_write_dirent() 248 fd->nhash = full_name_hash(NULL, name, namelen); in jffs2_write_dirent() 249 fd->type = rd->type; in jffs2_write_dirent() 250 memcpy(fd->name, name, namelen); in jffs2_write_dirent() 251 fd->name[namelen]=0; in jffs2_write_dirent() 264 fd->version = je32_to_cpu(rd->version); in jffs2_write_dirent() [all …]
|
D | dir.c | 79 struct jffs2_full_dirent *fd = NULL, *fd_list; in jffs2_lookup() local 99 (!fd || fd_list->version > fd->version) && in jffs2_lookup() 102 fd = fd_list; in jffs2_lookup() 105 if (fd) in jffs2_lookup() 106 ino = fd->ino; in jffs2_lookup() 124 struct jffs2_full_dirent *fd; in jffs2_readdir() local 133 for (fd = f->dents; fd; fd = fd->next) { in jffs2_readdir() 138 fd->name, fd->ino, fd->type, curofs, (unsigned long)ctx->pos); in jffs2_readdir() 141 if (!fd->ino) { in jffs2_readdir() 143 fd->name); in jffs2_readdir() [all …]
|
/linux-4.19.296/fs/ |
D | file.c | 31 kvfree(fdt->fd); in __free_fdtable() 79 memcpy(nfdt->fd, ofdt->fd, cpy); in copy_fdtable() 80 memset((char *)nfdt->fd + cpy, 0, set); in copy_fdtable() 118 fdt->fd = data; in alloc_fdtable() 134 kvfree(fdt->fd); in alloc_fdtable() 228 static inline void __set_close_on_exec(unsigned int fd, struct fdtable *fdt) in __set_close_on_exec() argument 230 __set_bit(fd, fdt->close_on_exec); in __set_close_on_exec() 233 static inline void __clear_close_on_exec(unsigned int fd, struct fdtable *fdt) in __clear_close_on_exec() argument 235 if (test_bit(fd, fdt->close_on_exec)) in __clear_close_on_exec() 236 __clear_bit(fd, fdt->close_on_exec); in __clear_close_on_exec() [all …]
|
D | sync.c | 160 SYSCALL_DEFINE1(syncfs, int, fd) in SYSCALL_DEFINE1() argument 162 struct fd f = fdget(fd); in SYSCALL_DEFINE1() 215 static int do_fsync(unsigned int fd, int datasync) in do_fsync() argument 217 struct fd f = fdget(fd); in do_fsync() 227 SYSCALL_DEFINE1(fsync, unsigned int, fd) in SYSCALL_DEFINE1() argument 229 return do_fsync(fd, 0); in SYSCALL_DEFINE1() 232 SYSCALL_DEFINE1(fdatasync, unsigned int, fd) in SYSCALL_DEFINE1() argument 234 return do_fsync(fd, 1); in SYSCALL_DEFINE1() 284 int ksys_sync_file_range(int fd, loff_t offset, loff_t nbytes, in ksys_sync_file_range() argument 288 struct fd f; in ksys_sync_file_range() [all …]
|
/linux-4.19.296/include/soc/fsl/ |
D | dpaa2-fd.h | 94 static inline dma_addr_t dpaa2_fd_get_addr(const struct dpaa2_fd *fd) in dpaa2_fd_get_addr() argument 96 return (dma_addr_t)le64_to_cpu(fd->simple.addr); in dpaa2_fd_get_addr() 104 static inline void dpaa2_fd_set_addr(struct dpaa2_fd *fd, dma_addr_t addr) in dpaa2_fd_set_addr() argument 106 fd->simple.addr = cpu_to_le64(addr); in dpaa2_fd_set_addr() 115 static inline u32 dpaa2_fd_get_frc(const struct dpaa2_fd *fd) in dpaa2_fd_get_frc() argument 117 return le32_to_cpu(fd->simple.frc); in dpaa2_fd_get_frc() 125 static inline void dpaa2_fd_set_frc(struct dpaa2_fd *fd, u32 frc) in dpaa2_fd_set_frc() argument 127 fd->simple.frc = cpu_to_le32(frc); in dpaa2_fd_set_frc() 136 static inline u32 dpaa2_fd_get_ctrl(const struct dpaa2_fd *fd) in dpaa2_fd_get_ctrl() argument 138 return le32_to_cpu(fd->simple.ctrl); in dpaa2_fd_get_ctrl() [all …]
|
/linux-4.19.296/drivers/clk/ti/ |
D | fapll.c | 77 struct fapll_data *fd; member 85 static bool ti_fapll_clock_is_bypass(struct fapll_data *fd) in ti_fapll_clock_is_bypass() argument 87 u32 v = readl_relaxed(fd->base); in ti_fapll_clock_is_bypass() 89 if (fd->bypass_bit_inverted) in ti_fapll_clock_is_bypass() 95 static void ti_fapll_set_bypass(struct fapll_data *fd) in ti_fapll_set_bypass() argument 97 u32 v = readl_relaxed(fd->base); in ti_fapll_set_bypass() 99 if (fd->bypass_bit_inverted) in ti_fapll_set_bypass() 103 writel_relaxed(v, fd->base); in ti_fapll_set_bypass() 106 static void ti_fapll_clear_bypass(struct fapll_data *fd) in ti_fapll_clear_bypass() argument 108 u32 v = readl_relaxed(fd->base); in ti_fapll_clear_bypass() [all …]
|
/linux-4.19.296/fs/hostfs/ |
D | hostfs_user.c | 41 int stat_file(const char *path, struct hostfs_stat *p, int fd) in stat_file() argument 45 if (fd >= 0) { in stat_file() 46 if (fstat64(fd, &buf) < 0) in stat_file() 72 int mode = 0, fd; in open_file() local 84 fd = open64(path, mode); in open_file() 85 if (fd < 0) in open_file() 87 else return fd; in open_file() 124 int read_file(int fd, unsigned long long *offset, char *buf, int len) in read_file() argument 128 n = pread64(fd, buf, len, *offset); in read_file() 135 int write_file(int fd, unsigned long long *offset, const char *buf, int len) in write_file() argument [all …]
|
/linux-4.19.296/fs/proc/ |
D | fd.c | 35 unsigned int fd = proc_fd(m->private); in seq_show() local 38 file = fcheck_files(files, fd); in seq_show() 43 if (close_on_exec(fd, fdt)) in seq_show() 84 static bool tid_fd_mode(struct task_struct *task, unsigned fd, fmode_t *mode) in tid_fd_mode() argument 93 file = fcheck_files(files, fd); in tid_fd_mode() 121 unsigned int fd; in tid_fd_revalidate() local 128 fd = proc_fd(inode); in tid_fd_revalidate() 132 if (tid_fd_mode(task, fd, &f_mode)) { in tid_fd_revalidate() 160 unsigned int fd = proc_fd(d_inode(dentry)); in proc_fd_link() local 164 fd_file = fcheck_files(files, fd); in proc_fd_link() [all …]
|