/openbmc/linux/fs/cachefiles/ |
H A D | namei.c | 85 struct dentry *dir, in cachefiles_get_directory() argument 127 path.dentry = dir; in cachefiles_get_directory() 155 inode_unlock(d_inode(dir)); in cachefiles_get_directory() 197 inode_unlock(d_inode(dir)); in cachefiles_get_directory() 203 inode_unlock(d_inode(dir)); in cachefiles_get_directory() 209 inode_unlock(d_inode(dir)); in cachefiles_get_directory() 219 if (dir) { in cachefiles_put_directory() 221 dput(dir); in cachefiles_put_directory() 235 .dentry = dir, in cachefiles_unlink() 266 struct dentry *dir, in cachefiles_bury_object() argument [all …]
|
/openbmc/linux/arch/s390/hypfs/ |
H A D | hypfs_vm_fs.c | 20 #define ATTRIBUTE(dir, name, member) \ argument 88 struct dentry *dir, *file; in hypfs_vm_create_files() local 98 dir = hypfs_mkdir(root, "hyp"); in hypfs_vm_create_files() 99 if (IS_ERR(dir)) { in hypfs_vm_create_files() 100 rc = PTR_ERR(dir); in hypfs_vm_create_files() 110 dir = hypfs_mkdir(root, "cpus"); in hypfs_vm_create_files() 111 if (IS_ERR(dir)) { in hypfs_vm_create_files() 112 rc = PTR_ERR(dir); in hypfs_vm_create_files() 122 dir = hypfs_mkdir(root, "systems"); in hypfs_vm_create_files() 123 if (IS_ERR(dir)) { in hypfs_vm_create_files() [all …]
|
/openbmc/linux/fs/sysv/ |
H A D | dir.c | 34 struct inode *dir = mapping->host; in dir_commit_chunk() local 37 if (pos+len > dir->i_size) { in dir_commit_chunk() 38 i_size_write(dir, pos+len); in dir_commit_chunk() 39 mark_inode_dirty(dir); in dir_commit_chunk() 50 err = sync_inode_metadata(dir, 1); in sysv_handle_dirsync() 179 SYSV_I(dir)->i_dir_start_lookup = n; in sysv_find_entry() 227 dir->i_mtime = inode_set_ctime_current(dir); in sysv_add_link() 228 mark_inode_dirty(dir); in sysv_add_link() 229 err = sysv_handle_dirsync(dir); in sysv_add_link() 349 dir->i_mtime = inode_set_ctime_current(dir); in sysv_set_link() [all …]
|
H A D | namei.c | 40 inode = sysv_iget(dir->i_sb, ino); in sysv_lookup() 53 inode = sysv_new_inode(dir, mode); in sysv_mknod() 77 if (l > dir->i_sb->s_blocksize) in sysv_symlink() 80 inode = sysv_new_inode(dir, S_IFLNK|0777); in sysv_symlink() 119 inode_inc_link_count(dir); in sysv_mkdir() 121 inode = sysv_new_inode(dir, S_IFDIR|mode); in sysv_mkdir() 130 err = sysv_make_empty(inode, dir); in sysv_mkdir() 147 inode_dec_link_count(dir); in sysv_mkdir() 164 inode_set_ctime_to_ts(inode, inode_get_ctime(dir)); in sysv_unlink() 177 err = sysv_unlink(dir, dentry); in sysv_rmdir() [all …]
|
/openbmc/linux/fs/minix/ |
H A D | namei.c | 32 inode = minix_iget(dir->i_sb, ino); in minix_lookup() 44 inode = minix_new_inode(dir, mode); in minix_mknod() 56 struct inode *inode = minix_new_inode(dir, mode); in minix_tmpfile() 79 if (i > dir->i_sb->s_blocksize) in minix_symlink() 82 inode = minix_new_inode(dir, S_IFLNK | 0777); in minix_symlink() 113 inode = minix_new_inode(dir, S_IFDIR | mode); in minix_mkdir() 117 inode_inc_link_count(dir); in minix_mkdir() 121 err = minix_make_empty(inode, dir); in minix_mkdir() 137 inode_dec_link_count(dir); in minix_mkdir() 168 err = minix_unlink(dir, dentry); in minix_rmdir() [all …]
|
/openbmc/linux/fs/ext2/ |
H A D | namei.c | 73 ext2_error(dir->i_sb, __func__, in ext2_lookup() 109 err = dquot_initialize(dir); in ext2_create() 142 err = dquot_initialize(dir); in ext2_mknod() 168 err = dquot_initialize(dir); in ext2_symlink() 210 err = dquot_initialize(dir); in ext2_link() 234 err = dquot_initialize(dir); in ext2_mkdir() 238 inode_inc_link_count(dir); in ext2_mkdir() 268 inode_dec_link_count(dir); in ext2_mkdir() 279 err = dquot_initialize(dir); in ext2_unlink() 307 err = ext2_unlink(dir, dentry); in ext2_rmdir() [all …]
|
/openbmc/linux/fs/udf/ |
H A D | namei.c | 269 ret = udf_fiiter_init(iter, dir, dir->i_size); in udf_fiiter_add_entry() 320 mark_inode_dirty(dir); in udf_fiiter_add_entry() 342 if (dir) in udf_add_fid_counter() 368 dir->i_mtime = inode_set_ctime_current(dir); in udf_add_nondir() 369 mark_inode_dirty(dir); in udf_add_nondir() 473 inc_nlink(dir); in udf_mkdir() 474 dir->i_mtime = inode_set_ctime_current(dir); in udf_mkdir() 475 mark_inode_dirty(dir); in udf_mkdir() 526 dir->i_mtime = inode_set_ctime_to_ts(dir, in udf_rmdir() 558 dir->i_mtime = inode_set_ctime_current(dir); in udf_unlink() [all …]
|
/openbmc/linux/fs/coda/ |
H A D | dir.c | 114 dir->i_mtime = inode_set_ctime_current(dir); in coda_dir_update_mtime() 125 if (dir->i_nlink >= 2) in coda_dir_inc_nlink() 126 inc_nlink(dir); in coda_dir_inc_nlink() 131 if (dir->i_nlink > 2) in coda_dir_drop_nlink() 132 drop_nlink(dir); in coda_dir_drop_nlink() 149 error = venus_create(dir->i_sb, coda_i2f(dir), name, length, in coda_create() 183 error = venus_mkdir(dir->i_sb, coda_i2f(dir), in coda_mkdir() 195 coda_dir_inc_nlink(dir); in coda_mkdir() 269 error = venus_remove(dir->i_sb, coda_i2f(dir), name, len); in coda_unlink() 284 error = venus_rmdir(dir->i_sb, coda_i2f(dir), name, len); in coda_rmdir() [all …]
|
/openbmc/linux/sound/soc/fsl/ |
H A D | fsl_asrc_dma.c | 74 if (!pair->desc[!dir]) { in fsl_asrc_dma_prepare_and_submit() 87 if (!pair->desc[dir]) { in fsl_asrc_dma_prepare_and_submit() 151 u8 dir = tx ? OUT : IN; in fsl_asrc_dma_hw_params() local 180 pair->dma_chan[!dir] = asrc->get_dma_channel(pair, !dir); in fsl_asrc_dma_hw_params() 181 if (!pair->dma_chan[!dir]) { in fsl_asrc_dma_hw_params() 243 pair->dma_chan[dir] = in fsl_asrc_dma_hw_params() 253 if (!pair->dma_chan[dir]) { in fsl_asrc_dma_hw_params() 314 u8 dir = tx ? OUT : IN; in fsl_asrc_dma_hw_free() local 316 if (pair->dma_chan[!dir]) in fsl_asrc_dma_hw_free() 324 pair->dma_chan[dir] = NULL; in fsl_asrc_dma_hw_free() [all …]
|
/openbmc/qemu/target/mips/tcg/ |
H A D | ldst_helper.c | 74 int dir = mips_env_is_bigendian(env) ? 1 : -1; in helper_swl() local 79 cpu_stb_mmuidx_ra(env, arg2 + 1 * dir, (uint8_t)(arg1 >> 16), in helper_swl() 84 cpu_stb_mmuidx_ra(env, arg2 + 2 * dir, (uint8_t)(arg1 >> 8), in helper_swl() 89 cpu_stb_mmuidx_ra(env, arg2 + 3 * dir, (uint8_t)arg1, in helper_swl() 98 int dir = mips_env_is_bigendian(env) ? 1 : -1; in helper_swr() local 103 cpu_stb_mmuidx_ra(env, arg2 - 1 * dir, (uint8_t)(arg1 >> 8), in helper_swr() 108 cpu_stb_mmuidx_ra(env, arg2 - 2 * dir, (uint8_t)(arg1 >> 16), in helper_swr() 128 int dir = mips_env_is_bigendian(env) ? 1 : -1; in helper_sdl() local 158 cpu_stb_mmuidx_ra(env, arg2 + 6 * dir, (uint8_t)(arg1 >> 8), in helper_sdl() 163 cpu_stb_mmuidx_ra(env, arg2 + 7 * dir, (uint8_t)arg1, in helper_sdl() [all …]
|
/openbmc/linux/net/netfilter/ |
H A D | nf_conntrack_ftp.c | 357 info->seq_aft_nl[dir][info->seq_aft_nl_num[dir]++] = nl_seq; in update_nl_seq() 359 if (before(info->seq_aft_nl[dir][0], info->seq_aft_nl[dir][1])) in update_nl_seq() 380 int dir = CTINFO2DIR(ctinfo); in help() local 431 ct_ftp_info->seq_aft_nl[dir][0], in help() 433 ct_ftp_info->seq_aft_nl[dir][1]); in help() 447 search[dir][i].pattern, in help() 448 search[dir][i].plen, in help() 449 search[dir][i].skip, in help() 450 search[dir][i].term, in help() 453 search[dir][i].getnum); in help() [all …]
|
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/af/ |
H A D | mcs.h | 184 u8 *sc_id, u8 *sa1_id, u8 *sa2_id, u16 pcifunc, int dir); 185 int mcs_free_all_rsrc(struct mcs *mcs, int dir, u16 pcifunc); 186 void mcs_clear_secy_plcy(struct mcs *mcs, int secy_id, int dir); 187 void mcs_ena_dis_flowid_entry(struct mcs *mcs, int id, int dir, int ena); 190 void mcs_secy_plcy_write(struct mcs *mcs, u64 plcy, int id, int dir); 192 void mcs_sa_plcy_write(struct mcs *mcs, u64 *plcy, int sa, int dir); 193 void mcs_map_sc_to_sa(struct mcs *mcs, u64 *sa_map, int sc, int dir); 194 void mcs_pn_table_write(struct mcs *mcs, u8 pn_id, u64 next_pn, u8 dir); 196 void mcs_flowid_secy_map(struct mcs *mcs, struct secy_mem_map *map, int dir); 240 void mcs_clear_stats(struct mcs *mcs, u8 type, u8 id, int dir); [all …]
|
/openbmc/linux/fs/isofs/ |
H A D | namei.c | 40 unsigned long bufsize = ISOFS_BUFFER_SIZE(dir); in isofs_find_entry() 41 unsigned char bufbits = ISOFS_BUFFER_BITS(dir); in isofs_find_entry() 44 struct isofs_sb_info *sbi = ISOFS_SB(dir->i_sb); in isofs_find_entry() 46 if (!ISOFS_I(dir)->i_first_extent) in isofs_find_entry() 53 while (f_pos < dir->i_size) { in isofs_find_entry() 59 bh = isofs_bread(dir, block); in isofs_find_entry() 90 bh = isofs_bread(dir, block); in isofs_find_entry() 104 dir->i_ino); in isofs_find_entry() 115 dlen = get_joliet_filename(de, tmpname, dir); in isofs_find_entry() 119 dlen = get_acorn_filename(de, tmpname, dir); in isofs_find_entry() [all …]
|
/openbmc/linux/fs/f2fs/ |
H A D | namei.c | 231 inode = new_inode(dir->i_sb); in f2fs_new_inode() 386 if (IS_DIRSYNC(dir)) in f2fs_create() 435 if (IS_DIRSYNC(dir)) in f2fs_link() 503 if (IS_ENCRYPTED(dir) && in f2fs_lookup() 582 if (IS_CASEFOLDED(dir)) in f2fs_unlink() 585 if (IS_DIRSYNC(dir)) in f2fs_unlink() 621 err = fscrypt_prepare_symlink(dir, symname, len, dir->i_sb->s_blocksize, in f2fs_symlink() 670 if (IS_DIRSYNC(dir)) in f2fs_symlink() 673 f2fs_unlink(dir, dentry); in f2fs_symlink() 721 if (IS_DIRSYNC(dir)) in f2fs_mkdir() [all …]
|
/openbmc/qemu/tests/qtest/ |
H A D | fdc-test.c | 275 uint8_t dir; in test_no_media_on_start() local 280 assert_bit_set(dir, DSKCHG); in test_no_media_on_start() 282 assert_bit_set(dir, DSKCHG); in test_no_media_on_start() 285 assert_bit_set(dir, DSKCHG); in test_no_media_on_start() 287 assert_bit_set(dir, DSKCHG); in test_no_media_on_start() 300 uint8_t dir; in test_media_insert() local 310 assert_bit_set(dir, DSKCHG); in test_media_insert() 312 assert_bit_set(dir, DSKCHG); in test_media_insert() 316 assert_bit_set(dir, DSKCHG); in test_media_insert() 318 assert_bit_set(dir, DSKCHG); in test_media_insert() [all …]
|
/openbmc/linux/fs/ramfs/ |
H A D | inode.c | 58 const struct inode *dir, umode_t mode, dev_t dev) in ramfs_get_inode() argument 64 inode_init_owner(&nop_mnt_idmap, inode, dir, mode); in ramfs_get_inode() 98 ramfs_mknod(struct mnt_idmap *idmap, struct inode *dir, in ramfs_mknod() argument 101 struct inode * inode = ramfs_get_inode(dir->i_sb, dir, mode, dev); in ramfs_mknod() 108 dir->i_mtime = inode_set_ctime_current(dir); in ramfs_mknod() 113 static int ramfs_mkdir(struct mnt_idmap *idmap, struct inode *dir, in ramfs_mkdir() argument 118 inc_nlink(dir); in ramfs_mkdir() 134 inode = ramfs_get_inode(dir->i_sb, dir, S_IFLNK|S_IRWXUGO, 0); in ramfs_symlink() 141 dir->i_mtime = inode_set_ctime_current(dir); in ramfs_symlink() 149 struct inode *dir, struct file *file, umode_t mode) in ramfs_tmpfile() argument [all …]
|
/openbmc/linux/include/linux/ |
H A D | fsnotify.h | 30 struct inode *dir, const struct qstr *name, in fsnotify_name() argument 33 if (atomic_long_read(&dir->i_sb->s_fsnotify_connectors) == 0) in fsnotify_name() 36 return fsnotify(mask, data, data_type, dir, name, NULL, cookie); in fsnotify_name() 213 audit_inode_child(dir, dentry, AUDIT_TYPE_CHILD_CREATE); in fsnotify_create() 215 fsnotify_dirent(dir, dentry, FS_CREATE); in fsnotify_create() 232 dir, &new_dentry->d_name, 0); in fsnotify_link() 268 fsnotify_delete(dir, inode, dentry); in d_delete_notify() 282 fsnotify_delete(dir, d_inode(dentry), dentry); in fsnotify_unlink() 294 audit_inode_child(dir, dentry, AUDIT_TYPE_CHILD_CREATE); in fsnotify_mkdir() 296 fsnotify_dirent(dir, dentry, FS_CREATE | FS_ISDIR); in fsnotify_mkdir() [all …]
|
/openbmc/linux/fs/ufs/ |
H A D | namei.c | 60 inode = ufs_iget(dir->i_sb, ino); in ufs_lookup() 78 inode = ufs_new_inode(dir, mode); in ufs_create() 98 inode = ufs_new_inode(dir, mode); in ufs_mknod() 112 struct super_block * sb = dir->i_sb; in ufs_symlink() 175 inode_inc_link_count(dir); in ufs_mkdir() 177 inode = ufs_new_inode(dir, S_IFDIR|mode); in ufs_mkdir() 188 err = ufs_make_empty(inode, dir); in ufs_mkdir() 204 inode_dec_link_count(dir); in ufs_mkdir() 219 err = ufs_delete_entry(dir, de, page); in ufs_unlink() 236 err = ufs_unlink(dir, dentry); in ufs_rmdir() [all …]
|
/openbmc/linux/arch/um/os-Linux/ |
H A D | mem.c | 47 static int __init check_tmpfs(const char *dir) in check_tmpfs() argument 52 if (statfs(dir, &st) < 0) { in check_tmpfs() 85 const char *dir; in choose_tempdir() local 89 dir = getenv(vars[i]); in choose_tempdir() 90 if ((dir != NULL) && (*dir != '\0')) { in choose_tempdir() 91 os_info("%s\n", dir); in choose_tempdir() 92 if (check_tmpfs(dir) >= 0) in choose_tempdir() 101 dir = tmpfs_dirs[i]; in choose_tempdir() 102 if (check_tmpfs(dir) >= 0) in choose_tempdir() 106 dir = fallback_dir; in choose_tempdir() [all …]
|
/openbmc/linux/fs/nfs/ |
H A D | dir.c | 1517 if (__nfs_revalidate_inode(NFS_SERVER(dir), dir) < 0) in nfs_check_verifier() 1798 if (!dir) in __nfs_lookup_revalidate() 2085 dir->i_sb->s_id, dir->i_ino, dentry); in nfs_atomic_open() 2335 dir->i_sb->s_id, dir->i_ino, dentry); in nfs_create() 2363 dir->i_sb->s_id, dir->i_ino, dentry); in nfs_mknod() 2390 dir->i_sb->s_id, dir->i_ino, dentry); in nfs_mkdir() 2396 error = NFS_PROTO(dir)->mkdir(dir, dentry, &attr); in nfs_mkdir() 2433 dir->i_sb->s_id, dir->i_ino, dentry); in nfs_rmdir() 2480 error = NFS_PROTO(dir)->remove(dir, dentry); in nfs_safe_remove() 2484 error = NFS_PROTO(dir)->remove(dir, dentry); in nfs_safe_remove() [all …]
|
/openbmc/linux/drivers/dma/dw-edma/ |
H A D | dw-hdma-v0-core.c | 34 if (dir == EDMA_DIR_WRITE) in __dw_ch_regs() 40 #define SET_CH_32(dw, dir, ch, name, value) \ argument 41 writel(value, &(__dw_ch_regs(dw, dir, ch)->name)) 43 #define GET_CH_32(dw, dir, ch, name) \ argument 44 readl(&(__dw_ch_regs(dw, dir, ch)->name)) 82 GET_CH_32(dw, chan->id, chan->dir, ch_stat)); in dw_hdma_v0_core_ch_status() 110 return GET_CH_32(dw, chan->dir, chan->id, int_stat); in dw_hdma_v0_core_status_int() 123 if (dir == EDMA_DIR_WRITE) { in dw_hdma_v0_core_handle_int() 251 SET_CH_32(dw, chan->dir, chan->id, llp.lsb, in dw_hdma_v0_core_start() 253 SET_CH_32(dw, chan->dir, chan->id, llp.msb, in dw_hdma_v0_core_start() [all …]
|
/openbmc/linux/arch/mips/mm/ |
H A D | dma-noncoherent.c | 58 enum dma_data_direction dir) in dma_sync_virt_for_device() argument 60 switch (dir) { in dma_sync_virt_for_device() 76 enum dma_data_direction dir) in dma_sync_virt_for_cpu() argument 78 switch (dir) { in dma_sync_virt_for_cpu() 96 enum dma_data_direction dir, bool for_device) in dma_sync_phys() argument 113 dma_sync_virt_for_device(addr + offset, len, dir); in dma_sync_phys() 115 dma_sync_virt_for_cpu(addr + offset, len, dir); in dma_sync_phys() 125 enum dma_data_direction dir) in arch_sync_dma_for_device() argument 127 dma_sync_phys(paddr, size, dir, true); in arch_sync_dma_for_device() 132 enum dma_data_direction dir) in arch_sync_dma_for_cpu() argument [all …]
|
/openbmc/linux/drivers/net/ethernet/ibm/ehea/ |
H A D | ehea_qmr.c | 543 if (!ehea_top_bmap->dir[dir]) { in ehea_init_top_bmap() 544 ehea_top_bmap->dir[dir] = in ehea_init_top_bmap() 546 if (!ehea_top_bmap->dir[dir]) in ehea_init_top_bmap() 581 for (dir = 0; dir < EHEA_MAP_ENTRIES; dir++) { in ehea_rebuild_busmap() 585 if (!ehea_top->dir[dir]) in ehea_rebuild_busmap() 588 ehea_dir = ehea_top->dir[dir]; in ehea_rebuild_busmap() 597 ehea_top->dir[dir] = NULL; in ehea_rebuild_busmap() 741 for (dir = 0; dir < EHEA_MAP_ENTRIES; dir++) { in ehea_destroy_busmap() 771 if (!ehea_bmap->top[top]->dir[dir]) in ehea_map_vaddr() 846 for (dir = 0; dir < EHEA_MAP_ENTRIES; dir++) { in ehea_reg_mr_dir_sections() [all …]
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | drop_monitor_tests.sh | 70 local dir=$(mktemp -d) 79 timeout 5 dwdump -o sw -w ${dir}/packets.pcap 80 (( $(tshark -r ${dir}/packets.pcap \ 84 rm ${dir}/packets.pcap 88 (( $(tshark -r ${dir}/packets.pcap \ 92 rm -r $dir 104 local dir=$(mktemp -d) 108 (( $(tshark -r ${dir}/packets.pcap \ 113 rm ${dir}/packets.pcap 117 (( $(tshark -r ${dir}/packets.pcap \ [all …]
|
/openbmc/linux/fs/squashfs/ |
H A D | namei.c | 132 struct squashfs_sb_info *msblk = dir->i_sb->s_fs_info; in squashfs_lookup() 136 int offset = squashfs_i(dir)->offset; in squashfs_lookup() 154 squashfs_i(dir)->dir_idx_start, in squashfs_lookup() 155 squashfs_i(dir)->dir_idx_offset, in squashfs_lookup() 156 squashfs_i(dir)->dir_idx_cnt, name, len); in squashfs_lookup() 158 while (length < i_size_read(dir)) { in squashfs_lookup() 162 err = squashfs_read_metadata(dir->i_sb, &dirh, &block, in squashfs_lookup() 189 err = squashfs_read_metadata(dir->i_sb, dire->name, in squashfs_lookup() 212 inode = squashfs_iget(dir->i_sb, ino, ino_num); in squashfs_lookup() 227 squashfs_i(dir)->start + msblk->directory_table, in squashfs_lookup() [all …]
|