/openbmc/linux/fs/bfs/ |
H A D | dir.c | 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() 47 bh = sb_bread(dir->i_sb, block); in bfs_readdir() 190 dir->i_mtime = inode_set_ctime_current(dir); in bfs_unlink() 191 mark_inode_dirty(dir); in bfs_unlink() 283 sblock = BFS_I(dir)->i_sblock; in bfs_add_entry() 293 if (pos >= dir->i_size) { in bfs_add_entry() 297 dir->i_mtime = inode_set_ctime_current(dir); in bfs_add_entry() 298 mark_inode_dirty(dir); in bfs_add_entry() [all …]
|
/openbmc/linux/net/ipv4/netfilter/ |
H A D | nf_nat_h323.c | 98 int dir = CTINFO2DIR(ctinfo); in set_sig_addr() local 119 info->sig_port[!dir]); in set_sig_addr() 131 info->sig_port[!dir]); in set_sig_addr() 190 rtp_exp->dir = !dir; in nat_rtp_rtcp() 193 rtcp_exp->dir = !dir; in nat_rtp_rtcp() 292 exp->dir = !dir; in nat_t120() 331 exp->dir = !dir; in nat_h245() 352 info->sig_port[dir] = port; in nat_h245() 410 exp->dir = !dir; in nat_q931() 431 info->sig_port[dir] = port; in nat_q931() [all …]
|
/openbmc/linux/fs/exfat/ |
H A D | namei.c | 277 p_dir->dir, clu.dir); in exfat_search_empty_slot() 379 p_dir->dir = clu.dir; in exfat_find_empty_entry() 688 i_size_read(dir), ei->dir.dir, ei->entry); in exfat_find() 799 if (ei->dir.dir == DIR_DELETED) { in exfat_unlink() 827 ei->dir.dir = DIR_DELETED; in exfat_unlink() 830 dir->i_mtime = dir->i_atime = inode_set_ctime_current(dir); in exfat_unlink() 953 if (ei->dir.dir == DIR_DELETED) { in exfat_rmdir() 991 ei->dir.dir = DIR_DELETED; in exfat_rmdir() 994 dir->i_mtime = dir->i_atime = inode_set_ctime_current(dir); in exfat_rmdir() 1243 if (olddir.dir == newdir.dir) in __exfat_rename() [all …]
|
/openbmc/linux/arch/um/os-Linux/ |
H A D | umid.c | 30 char dir[512] = { '\0' }; in make_uml_dir() local 43 strscpy(dir, home, sizeof(dir)); in make_uml_dir() 46 strlcat(dir, uml_dir, sizeof(dir)); in make_uml_dir() 47 len = strlen(dir); in make_uml_dir() 49 strlcat(dir, "/", sizeof(dir)); in make_uml_dir() 58 strcpy(uml_dir, dir); in make_uml_dir() 89 directory = opendir(dir); in remove_files_and_dir() 199 if (is_umdir_used(dir)) in umdir_take_if_dead() 393 char *dir, err; in remove_umid_dir() local 396 if (!dir) in remove_umid_dir() [all …]
|
/openbmc/linux/fs/nilfs2/ |
H A D | namei.c | 63 inode = ino ? nilfs_iget(dir->i_sb, NILFS_I(dir)->i_root, ino) : NULL; in nilfs_lookup() 85 inode = nilfs_new_inode(dir, mode); in nilfs_create() 97 nilfs_transaction_abort(dir->i_sb); in nilfs_create() 113 inode = nilfs_new_inode(dir, mode); in nilfs_mknod() 132 struct super_block *sb = dir->i_sb; in nilfs_symlink() 216 inc_nlink(dir); in nilfs_mkdir() 254 drop_nlink(dir); in nilfs_mkdir() 255 nilfs_mark_inode_dirty(dir); in nilfs_mkdir() 305 nilfs_mark_inode_dirty(dir); in nilfs_unlink() 331 drop_nlink(dir); in nilfs_rmdir() [all …]
|
H A D | dir.c | 109 if (IS_DIRSYNC(dir)) in nilfs_commit_chunk() 161 dir->i_ino); in nilfs_check_page() 366 nilfs_error(dir->i_sb, in nilfs_find_entry() 381 nilfs_error(dir->i_sb, in nilfs_find_entry() 383 dir->i_ino, dir->i_size, in nilfs_find_entry() 429 nilfs_error(dir->i_sb, "directory #%lu %s", dir->i_ino, msg); in nilfs_dotdot() 465 dir->i_mtime = inode_set_ctime_current(dir); in nilfs_set_link() 513 nilfs_error(dir->i_sb, in nilfs_add_link() 554 dir->i_mtime = inode_set_ctime_current(dir); in nilfs_add_link() 580 to = ((char *)dir - kaddr) + nilfs_rec_len_from_disk(dir->rec_len); in nilfs_delete_entry() [all …]
|
/openbmc/openbmc/meta-security/recipes-ids/samhain/files/ |
H A D | samhain-samhainrc-fix-files-dirs-path.patch | 28 dir = -1/var/cache 29 -dir = -1/var/lock 30 -dir = -1/var/mail 31 -dir = -1/var/run 32 +dir = -1/run/lock 33 +dir = -1/var/spool/mail 34 +dir = -1/run 35 dir = -1/var/spool 36 -dir = -1/var/tmp 37 +dir = -1/var/volatile/tmp [all …]
|
/openbmc/linux/fs/ceph/ |
H A D | crypto.c | 249 if (!dir) { in parse_longname() 252 if (IS_ERR(dir)) in parse_longname() 258 return dir; in parse_longname() 279 if (IS_ERR(dir)) in ceph_encode_encrypted_dname() 350 iput(dir); in ceph_encode_encrypted_dname() 381 struct inode *dir = fname->dir; in ceph_fname_to_usr() local 395 dir = parse_longname(dir, name, &name_len); in ceph_fname_to_usr() 396 if (IS_ERR(dir)) in ceph_fname_to_usr() 451 if (!ret && (dir != fname->dir)) { in ceph_fname_to_usr() 463 if (dir != fname->dir) { in ceph_fname_to_usr() [all …]
|
/openbmc/linux/fs/ufs/ |
H A D | dir.c | 50 inode_inc_iversion(dir); in ufs_commit_chunk() 52 if (pos+len > dir->i_size) { in ufs_commit_chunk() 54 mark_inode_dirty(dir); in ufs_commit_chunk() 110 dir->i_mtime = inode_set_ctime_current(dir); in ufs_set_link() 111 mark_inode_dirty(dir); in ufs_set_link() 112 ufs_handle_dirsync(dir); in ufs_set_link() 161 dir->i_ino in ufs_check_page() 400 dir->i_mtime = inode_set_ctime_current(dir); in ufs_add_link() 402 mark_inode_dirty(dir); in ufs_add_link() 508 unsigned to = ((char*)dir - kaddr) + fs16_to_cpu(sb, dir->d_reclen); in ufs_delete_entry() [all …]
|
/openbmc/linux/tools/perf/trace/beauty/ |
H A D | ioctl.c | 44 return scnprintf(bf, size, "(%#x, %#x, %#x)", 'T', nr, dir); in ioctl__scnprintf_tty_cmd() 55 return scnprintf(bf, size, "(%#x, %#x, %#x)", 'd', nr, dir); in ioctl__scnprintf_drm_cmd() 66 return scnprintf(bf, size, "(%#x, %#x, %#x)", 'A', nr, dir); in ioctl__scnprintf_sndrv_pcm_cmd() 77 return scnprintf(bf, size, "(%#x, %#x, %#x)", 'U', nr, dir); in ioctl__scnprintf_sndrv_ctl_cmd() 88 return scnprintf(bf, size, "(%#x, %#x, %#x)", 0xAE, nr, dir); in ioctl__scnprintf_kvm_cmd() 123 return scnprintf(bf, size, "(%c, %#x, %#x)", 'U', nr, dir); in ioctl__scnprintf_usbdevfs_cmd() 129 int dir = _IOC_DIR(cmd), in ioctl__scnprintf_cmd() local 152 return ioctl_types[index].scnprintf(nr, dir, bf, size); in ioctl__scnprintf_cmd() 157 if (dir == _IOC_NONE) { in ioctl__scnprintf_cmd() 160 if (dir & _IOC_READ) in ioctl__scnprintf_cmd() [all …]
|
/openbmc/linux/fs/ext2/ |
H A D | dir.c | 89 inode_inc_iversion(dir); in ext2_commit_chunk() 92 if (pos+len > dir->i_size) { in ext2_commit_chunk() 93 i_size_write(dir, pos+len); in ext2_commit_chunk() 94 mark_inode_dirty(dir); in ext2_commit_chunk() 144 "of chunk size", dir->i_ino); in ext2_check_page() 389 dir->i_ino, dir->i_size, in ext2_find_entry() 471 dir->i_mtime = inode_set_ctime_current(dir); in ext2_set_link() 473 mark_inode_dirty(dir); in ext2_set_link() 558 dir->i_mtime = inode_set_ctime_current(dir); in ext2_add_link() 560 mark_inode_dirty(dir); in ext2_add_link() [all …]
|
/openbmc/linux/fs/omfs/ |
H A D | dir.c | 31 return omfs_bread(dir->i_sb, dir->i_ino); in omfs_get_bucket() 44 bh = omfs_bread(dir->i_sb, block); in omfs_scan_list() 142 oi->i_parent = cpu_to_be64(dir->i_ino); in omfs_add_link() 146 inode_set_ctime_current(dir); in omfs_add_link() 149 mark_inode_dirty(dir); in omfs_add_link() 190 bh = omfs_bread(dir->i_sb, prev); in omfs_delete_entry() 202 dirty = omfs_iget(dir->i_sb, prev); in omfs_delete_entry() 254 mark_inode_dirty(dir); in omfs_remove() 308 inode = omfs_iget(dir->i_sb, ino); in omfs_lookup() 410 struct inode *dir = file_inode(file); in omfs_readdir() local [all …]
|
/openbmc/linux/drivers/infiniband/ulp/rtrs/ |
H A D | rtrs-srv-stats.c | 42 sum.dir[READ].cnt += r->dir[READ].cnt; in rtrs_srv_stats_rdma_to_str() 43 sum.dir[READ].size_total += r->dir[READ].size_total; in rtrs_srv_stats_rdma_to_str() 44 sum.dir[WRITE].cnt += r->dir[WRITE].cnt; in rtrs_srv_stats_rdma_to_str() 45 sum.dir[WRITE].size_total += r->dir[WRITE].size_total; in rtrs_srv_stats_rdma_to_str() 49 sum.dir[READ].cnt, sum.dir[READ].size_total, in rtrs_srv_stats_rdma_to_str() 50 sum.dir[WRITE].cnt, sum.dir[WRITE].size_total); in rtrs_srv_stats_rdma_to_str()
|
/openbmc/linux/drivers/soundwire/ |
H A D | sysfs_slave_dpn.c | 16 int dir; member 30 int N, int dir, \ 39 dpn_attr->dir = dir; \ 55 int dir, \ 64 if (dir) { \ 115 int dir, \ 126 if (dir) { \ 192 N, dir, "%d\n"); in add_all_attributes() 197 N, dir, "%d\n"); in add_all_attributes() 202 N, dir, "%d\n"); in add_all_attributes() [all …]
|
/openbmc/phosphor-debug-collector/ |
H A D | ffdc | 41 dir=$"ffdc_$(date +"%Y-%m-%d_%H-%M-%S")" 48 -d|--dir) 80 mkdir -p "$dest/$dir" 85 mkdir "$dest/$dir/${arr[i]}" 86 cp -r ${arr[i+1]}/* $dest/$dir/${arr[i]} 89 ${arr[i+1]} >> "$dest/$dir/${arr[i]}" 93 tar -cf "$dest/$dir.tar" -C $dest $dir 94 echo "Contents in $dest/$dir.tar" 96 rm -r "$dest/$dir"
|
/openbmc/linux/include/net/netfilter/ |
H A D | nf_conntrack_zones.h | 19 nf_ct_zone_init(struct nf_conntrack_zone *zone, u16 id, u8 dir, u8 flags) in nf_ct_zone_init() argument 23 zone->dir = dir; in nf_ct_zone_init() 37 return nf_ct_zone_init(tmp, skb->mark, tmpl->zone.dir, 0); in nf_ct_zone_tmpl() 51 enum ip_conntrack_dir dir) in nf_ct_zone_matches_dir() argument 53 return zone->dir & (1 << dir); in nf_ct_zone_matches_dir() 57 enum ip_conntrack_dir dir) in nf_ct_zone_id() argument 60 return nf_ct_zone_matches_dir(zone, dir) ? in nf_ct_zone_id() 69 enum ip_conntrack_dir dir) in nf_ct_zone_equal() argument 72 return nf_ct_zone_id(nf_ct_zone(a), dir) == in nf_ct_zone_equal() 73 nf_ct_zone_id(b, dir); in nf_ct_zone_equal()
|
/openbmc/linux/tools/testing/selftests/netfilter/ |
H A D | nft_nat.sh | 148 for dir in "in" "out" ; do 286 for dir in "in" "out" ; do 295 for dir in "in" "out" ; do 305 for dir in "in" "out" ; do 315 for dir in "in" "out" ; do 336 for dir in "in" "out" ; do 344 for dir in "in" "out" ; do 354 for dir in "in" "out" ; do 364 for dir in "in" "out" ; do 536 for dir in "in" "out" ; do [all …]
|
/openbmc/linux/fs/affs/ |
H A D | amigaffs.c | 63 dir->i_mtime = inode_set_ctime_current(dir); in affs_insert_hash() 64 inode_inc_iversion(dir); in affs_insert_hash() 65 mark_inode_dirty(dir); in affs_insert_hash() 83 sb = dir->i_sb; in affs_remove_hash() 117 dir->i_mtime = inode_set_ctime_current(dir); in affs_remove_hash() 119 mark_inode_dirty(dir); in affs_remove_hash() 167 if (IS_ERR(dir)) { in affs_remove_link() 172 affs_lock_dir(dir); in affs_remove_link() 194 iput(dir); in affs_remove_link() 275 sb = dir->i_sb; in affs_remove_header() [all …]
|
/openbmc/linux/drivers/gpio/ |
H A D | gpio-en7523.c | 25 void __iomem *dir[2]; member 38 u32 dir = ioread32(ctrl->dir[gpio / 16]); in airoha_dir_set() local 43 dir |= mask; in airoha_dir_set() 46 dir &= ~mask; in airoha_dir_set() 50 iowrite32(dir, ctrl->dir[gpio / 16]); in airoha_dir_set() 74 u32 dir = ioread32(ctrl->dir[gpio / 16]); in airoha_get_dir() local 94 ctrl->dir[0] = devm_platform_ioremap_resource(pdev, 1); in airoha_gpio_probe() 95 if (IS_ERR(ctrl->dir[0])) in airoha_gpio_probe() 96 return PTR_ERR(ctrl->dir[0]); in airoha_gpio_probe() 99 if (IS_ERR(ctrl->dir[1])) in airoha_gpio_probe() [all …]
|
/openbmc/linux/fs/ntfs3/ |
H A D | namei.c | 149 ni_lock_dir(ntfs_i(dir)); in ntfs_link() 150 if (inode != dir) in ntfs_link() 162 mark_inode_dirty(dir); in ntfs_link() 169 if (inode != dir) in ntfs_link() 171 ni_unlock(ntfs_i(dir)); in ntfs_link() 286 if (is_same && dir == new_dir) { in ntfs_rename() 341 mark_inode_dirty(dir); in ntfs_rename() 342 if (dir != new_dir) in ntfs_rename() 345 if (IS_DIRSYNC(dir)) in ntfs_rename() 346 ntfs_sync_inode(dir); in ntfs_rename() [all …]
|
/openbmc/phosphor-user-manager/test/ |
H A D | ldap_config_test.cpp | 38 dir = fs::path(mkdtemp(tmpldap)); in SetUp() 47 fs.open(dir / defaultNslcdFile, std::fstream::out); in SetUp() 49 fs.open(dir / nsSwitchFile, std::fstream::out); in SetUp() 51 fs.open(dir / tlsCACertFile, std::fstream::out); in SetUp() 53 fs.open(dir / tlsCertFile, std::fstream::out); in SetUp() 59 fs::remove_all(dir); in TearDown() 63 fs::path dir; member in phosphor::ldap::TestLDAPConfig 119 auto dbusPersistentFilePath = std::string(dir.c_str()); in TEST_F() 179 auto dbusPersistentFilePath = std::string(dir.c_str()); in TEST_F() 206 auto dbusPersistentFilePath = std::string(dir.c_str()); in TEST_F() [all …]
|
/openbmc/linux/drivers/xen/ |
H A D | swiotlb-xen.c | 196 enum dma_data_direction dir, in xen_swiotlb_map_page() argument 202 BUG_ON(dir == DMA_NONE); in xen_swiotlb_map_page() 258 BUG_ON(dir == DMA_NONE); in xen_swiotlb_unmap_page() 262 arch_sync_dma_for_cpu(paddr, size, dir); in xen_swiotlb_unmap_page() 274 size_t size, enum dma_data_direction dir) in xen_swiotlb_sync_single_for_cpu() argument 317 BUG_ON(dir == DMA_NONE); in xen_swiotlb_unmap_sg() 321 dir, attrs); in xen_swiotlb_unmap_sg() 332 BUG_ON(dir == DMA_NONE); in xen_swiotlb_map_sg() 336 sg->offset, sg->length, dir, attrs); in xen_swiotlb_map_sg() 358 sg->length, dir); in xen_swiotlb_sync_sg_for_cpu() [all …]
|
/openbmc/linux/fs/f2fs/ |
H A D | namei.c | 386 if (IS_DIRSYNC(dir)) in f2fs_create() 435 if (IS_DIRSYNC(dir)) in f2fs_link() 469 dir->i_ino, pino); in __recover_dot_dentries() 475 dir->i_ino, dir->i_mode, pino); in __recover_dot_dentries() 495 err = f2fs_do_add_link(dir, &dot, NULL, dir->i_ino, S_IFDIR); in __recover_dot_dentries() 561 if ((dir->i_ino == root_ino) && f2fs_has_inline_dots(dir)) { in f2fs_lookup() 654 if (IS_DIRSYNC(dir)) in f2fs_unlink() 690 err = fscrypt_prepare_symlink(dir, symname, len, dir->i_sb->s_blocksize, in f2fs_symlink() 739 if (IS_DIRSYNC(dir)) in f2fs_symlink() 790 if (IS_DIRSYNC(dir)) in f2fs_mkdir() [all …]
|
/openbmc/linux/include/linux/ |
H A D | dma-mapping.h | 108 enum dma_data_direction dir, unsigned long attrs); 112 int nents, enum dma_data_direction dir, 115 enum dma_data_direction dir, unsigned long attrs); 121 enum dma_data_direction dir); 123 size_t size, enum dma_data_direction dir); 125 int nelems, enum dma_data_direction dir); 127 int nelems, enum dma_data_direction dir); 198 size_t size, enum dma_data_direction dir) in dma_sync_single_for_cpu() argument 337 size, dir, attrs); in dma_map_single_attrs() 348 enum dma_data_direction dir) in dma_sync_single_range_for_cpu() argument [all …]
|
/openbmc/u-boot/scripts/ |
H A D | objdiff | 46 dir=${1%/*} 48 if [ "$dir" = "$1" ]; then 49 dir=. 52 dir=$(cd $dir; pwd) 54 echo $TMPD/$CMT${dir#$SRCTREE} 58 dir=$(get_output_dir $1) 60 stripped=$dir/${base%.o}.stripped 61 dis=$dir/${base%.o}.dis 63 [ ! -d "$dir" ] && mkdir -p $dir
|