Home
last modified time | relevance | path

Searched refs:fs32_to_cpu (Results 1 – 22 of 22) sorted by relevance

/fs/ufs/
Dsuper.c108 u32 magic = fs32_to_cpu(sb, usb3->fs_magic); in ufs_print_super_stuff()
112 if (fs32_to_cpu(sb, usb3->fs_magic) == UFS2_MAGIC) { in ufs_print_super_stuff()
118 fs32_to_cpu(sb, usb1->fs_bsize)); in ufs_print_super_stuff()
120 fs32_to_cpu(sb, usb1->fs_fsize)); in ufs_print_super_stuff()
136 fs32_to_cpu(sb, usb3->fs_un2.fs_44.fs_maxsymlinklen)); in ufs_print_super_stuff()
138 printk(" sblkno: %u\n", fs32_to_cpu(sb, usb1->fs_sblkno)); in ufs_print_super_stuff()
139 printk(" cblkno: %u\n", fs32_to_cpu(sb, usb1->fs_cblkno)); in ufs_print_super_stuff()
140 printk(" iblkno: %u\n", fs32_to_cpu(sb, usb1->fs_iblkno)); in ufs_print_super_stuff()
141 printk(" dblkno: %u\n", fs32_to_cpu(sb, usb1->fs_dblkno)); in ufs_print_super_stuff()
143 fs32_to_cpu(sb, usb1->fs_cgoffset)); in ufs_print_super_stuff()
[all …]
Dcylinder.c53 ucpi->c_cgx = fs32_to_cpu(sb, ucg->cg_cgx); in ufs_read_cylinder()
56 ucpi->c_ndblk = fs32_to_cpu(sb, ucg->cg_ndblk); in ufs_read_cylinder()
57 ucpi->c_rotor = fs32_to_cpu(sb, ucg->cg_rotor); in ufs_read_cylinder()
58 ucpi->c_frotor = fs32_to_cpu(sb, ucg->cg_frotor); in ufs_read_cylinder()
59 ucpi->c_irotor = fs32_to_cpu(sb, ucg->cg_irotor); in ufs_read_cylinder()
60 ucpi->c_btotoff = fs32_to_cpu(sb, ucg->cg_btotoff); in ufs_read_cylinder()
61 ucpi->c_boff = fs32_to_cpu(sb, ucg->cg_boff); in ufs_read_cylinder()
62 ucpi->c_iusedoff = fs32_to_cpu(sb, ucg->cg_iusedoff); in ufs_read_cylinder()
63 ucpi->c_freeoff = fs32_to_cpu(sb, ucg->cg_freeoff); in ufs_read_cylinder()
64 ucpi->c_nextfreeoff = fs32_to_cpu(sb, ucg->cg_nextfreeoff); in ufs_read_cylinder()
[all …]
Dutil.h42 if (fs32_to_cpu(sb, usb3->fs_postblformat) == UFS_42POSTBLFMT) in ufs_get_fs_state()
43 return fs32_to_cpu(sb, usb1->fs_u0.fs_sun.fs_state); in ufs_get_fs_state()
46 return fs32_to_cpu(sb, usb3->fs_un2.fs_sun.fs_state); in ufs_get_fs_state()
48 return fs32_to_cpu(sb, usb1->fs_u1.fs_sunx86.fs_state); in ufs_get_fs_state()
51 return fs32_to_cpu(sb, usb3->fs_un2.fs_44.fs_state); in ufs_get_fs_state()
61 if (fs32_to_cpu(sb, usb3->fs_postblformat) == UFS_42POSTBLFMT) { in ufs_set_fs_state()
83 return fs32_to_cpu(sb, usb3->fs_un2.fs_sunx86.fs_npsect); in ufs_get_fs_npsect()
85 return fs32_to_cpu(sb, usb1->fs_u1.fs_sun.fs_npsect); in ufs_get_fs_npsect()
195 return fs32_to_cpu(sb, inode->ui_u3.ui_44.ui_uid); in ufs_get_inode_uid()
198 return fs32_to_cpu(sb, inode->ui_u3.ui_sun.ui_uid); in ufs_get_inode_uid()
[all …]
Dinode.c122 bh = sb_bread(sb, uspi->s_sbbase + fs32_to_cpu(sb, block)+(n>>shift)); in ufs_frag_map()
130 ret = (u64) (uspi->s_sbbase + fs32_to_cpu(sb, block) + (frag & uspi->s_fpbmask)); in ufs_frag_map()
379 (tmp = fs32_to_cpu(sb, ((__fs32 *)bh->b_data)[block-1])))) in ufs_inode_getblock()
644 inode->i_atime.tv_sec = fs32_to_cpu(sb, ufs_inode->ui_atime.tv_sec); in ufs1_read_inode()
645 inode->i_ctime.tv_sec = fs32_to_cpu(sb, ufs_inode->ui_ctime.tv_sec); in ufs1_read_inode()
646 inode->i_mtime.tv_sec = fs32_to_cpu(sb, ufs_inode->ui_mtime.tv_sec); in ufs1_read_inode()
650 inode->i_blocks = fs32_to_cpu(sb, ufs_inode->ui_blocks); in ufs1_read_inode()
651 inode->i_generation = fs32_to_cpu(sb, ufs_inode->ui_gen); in ufs1_read_inode()
652 ufsi->i_flags = fs32_to_cpu(sb, ufs_inode->ui_flags); in ufs1_read_inode()
653 ufsi->i_shadow = fs32_to_cpu(sb, ufs_inode->ui_u3.ui_sun.ui_shadow); in ufs1_read_inode()
[all …]
Ddir.c81 res = fs32_to_cpu(dir->i_sb, de->d_ino); in ufs_inode_by_name()
142 if (fs32_to_cpu(sb, p->d_ino) > (UFS_SB(sb)->s_uspi->s_ipg * in ufs_check_page()
490 fs32_to_cpu(sb, de->d_ino)); in ufs_readdir()
499 fs32_to_cpu(sb, de->d_ino), d_type); in ufs_readdir()
533 fs32_to_cpu(sb, de->d_ino), in ufs_delete_entry()
650 fs32_to_cpu(sb, de->d_ino)) in ufs_empty_dir()
Dufs_fs.h509 (fs32_to_cpu((sb), (ucg)->cg_magic) == CG_MAGIC)
513 #define ufs_ocg_blktot(sb, ucg) fs32_to_cpu((sb), ((struct ufs_old_cylinder_group *)(ucg))->cg…
514 #define ufs_ocg_blks(sb, ucg, cylno) fs32_to_cpu((sb), ((struct ufs_old_cylinder_group *)(ucg))->cg…
515 #define ufs_ocg_inosused(sb, ucg) fs32_to_cpu((sb), ((struct ufs_old_cylinder_group *)(ucg))->cg…
516 #define ufs_ocg_blksfree(sb, ucg) fs32_to_cpu((sb), ((struct ufs_old_cylinder_group *)(ucg))->cg…
518 (fs32_to_cpu((sb), ((struct ufs_old_cylinder_group *)(ucg))->cg_magic) == CG_MAGIC)
Dialloc.c146 fs32_to_cpu(sb, ucg->cg_u.cg_u2.cg_initediblk)); in ufs2_init_inodes_chunk()
281 u32 initediblk = fs32_to_cpu(sb, ucg->cg_u.cg_u2.cg_initediblk); in ufs_new_inode()
284 initediblk < fs32_to_cpu(sb, ucg->cg_u.cg_u2.cg_niblk)) in ufs_new_inode()
Dballoc.c463 switch (fs32_to_cpu(sb, usb1->fs_optim)) { in ufs_new_fragments()
524 if (fs32_to_cpu(sb, UFS_SB(sb)->fs_cs(cgno).cs_nffree) < count) in ufs_add_fragments()
551 if (!fs32_to_cpu(sb, ucg->cg_frsum[fragsize])) in ufs_add_fragments()
583 if (fs32_to_cpu(sb, ucg->cg_cs.cs_nbfree)) \
586 if (fs32_to_cpu(sb, ucg->cg_frsum[k])) \
656 if (fs32_to_cpu(sb, ucg->cg_frsum[allocsize]) != 0) in ufs_alloc_fragments()
Dutil.c192 fs32 = fs32_to_cpu(sb, ufsi->i_u1.i_data[1]); in ufs_get_inode_dev()
194 fs32 = fs32_to_cpu(sb, ufsi->i_u1.i_data[0]); in ufs_get_inode_dev()
Dswab.h44 fs32_to_cpu(struct super_block *sbp, __fs32 n) in fs32_to_cpu() function
/fs/befs/
Ddebug.c101 befs_debug(sb, " magic1 %08x", fs32_to_cpu(sb, inode->magic1)); in befs_dump_inode()
107 befs_debug(sb, " uid %u", fs32_to_cpu(sb, inode->uid)); in befs_dump_inode()
108 befs_debug(sb, " gid %u", fs32_to_cpu(sb, inode->gid)); in befs_dump_inode()
109 befs_debug(sb, " mode %08x", fs32_to_cpu(sb, inode->mode)); in befs_dump_inode()
110 befs_debug(sb, " flags %08x", fs32_to_cpu(sb, inode->flags)); in befs_dump_inode()
124 befs_debug(sb, " type %08x", fs32_to_cpu(sb, inode->type)); in befs_dump_inode()
125 befs_debug(sb, " inode_size %u", fs32_to_cpu(sb, inode->inode_size)); in befs_dump_inode()
127 if (S_ISLNK(fs32_to_cpu(sb, inode->mode))) { in befs_dump_inode()
186 befs_debug(sb, " magic1 %08x", fs32_to_cpu(sb, sup->magic1)); in befs_dump_super_block()
188 fs32_to_cpu(sb, sup->fs_byte_order)); in befs_dump_super_block()
[all …]
Dsuper.c34 befs_sb->magic1 = fs32_to_cpu(sb, disk_sb->magic1); in befs_load_sb()
35 befs_sb->magic2 = fs32_to_cpu(sb, disk_sb->magic2); in befs_load_sb()
36 befs_sb->magic3 = fs32_to_cpu(sb, disk_sb->magic3); in befs_load_sb()
37 befs_sb->block_size = fs32_to_cpu(sb, disk_sb->block_size); in befs_load_sb()
38 befs_sb->block_shift = fs32_to_cpu(sb, disk_sb->block_shift); in befs_load_sb()
41 befs_sb->inode_size = fs32_to_cpu(sb, disk_sb->inode_size); in befs_load_sb()
43 befs_sb->blocks_per_ag = fs32_to_cpu(sb, disk_sb->blocks_per_ag); in befs_load_sb()
44 befs_sb->ag_shift = fs32_to_cpu(sb, disk_sb->ag_shift); in befs_load_sb()
45 befs_sb->num_ags = fs32_to_cpu(sb, disk_sb->num_ags); in befs_load_sb()
Dinode.c21 u32 magic1 = fs32_to_cpu(sb, raw_inode->magic1); in befs_check_inode()
23 u32 flags = fs32_to_cpu(sb, raw_inode->flags); in befs_check_inode()
Dbtree.c151 sup->magic = fs32_to_cpu(sb, od_sup->magic); in befs_bt_read_super()
152 sup->node_size = fs32_to_cpu(sb, od_sup->node_size); in befs_bt_read_super()
153 sup->max_depth = fs32_to_cpu(sb, od_sup->max_depth); in befs_bt_read_super()
154 sup->data_type = fs32_to_cpu(sb, od_sup->data_type); in befs_bt_read_super()
Dlinuxvfs.c343 inode->i_mode = (umode_t) fs32_to_cpu(sb, raw_inode->mode); in befs_iget()
351 befs_sb->mount_opts.uid : (uid_t) fs32_to_cpu(sb, raw_inode->uid); in befs_iget()
353 befs_sb->mount_opts.gid : (gid_t) fs32_to_cpu(sb, raw_inode->gid); in befs_iget()
375 befs_ino->i_flags = fs32_to_cpu(sb, raw_inode->flags); in befs_iget()
Dendian.h33 fs32_to_cpu(const struct super_block *sb, fs32 n) in fs32_to_cpu() function
Ddatastream.c344 fs32_to_cpu(sb, array[j].allocation_group); in befs_find_brun_indirect()
/fs/sysv/
Dsuper.c75 sbi->s_nzones = fs32_to_cpu(sbi, sbd1->s_fsize); in detected_xenix()
103 sbi->s_nzones = fs32_to_cpu(sbi, sbd->s_fsize); in detected_sysv4()
131 sbi->s_nzones = fs32_to_cpu(sbi, sbd->s_fsize); in detected_sysv2()
154 sbi->s_nzones = fs32_to_cpu(sbi, sbd->s_fsize); in detected_coherent()
175 sbi->s_nzones = fs32_to_cpu(sbi, sbd->s_fsize); in detected_v7()
187 switch (fs32_to_cpu(sbi, sbd->s_type)) { in detect_xenix()
214 type = fs32_to_cpu(sbi, sbd->s_type); in detect_sysv()
227 if (fs32_to_cpu(sbi, sbd->s_time) < JAN_1_1980) { in detect_sysv()
473 fs32_to_cpu(sbi, v7sb->s_time) == 0) in v7_fill_super()
482 (fs32_to_cpu(sbi, v7i->i_size) == 0) || in v7_fill_super()
[all …]
Dballoc.c48 unsigned block = fs32_to_cpu(sbi, nr); in sysv_free_block()
116 block = fs32_to_cpu(sbi, nr); in sysv_new_block()
177 sb_count = fs32_to_cpu(sbi, *sbi->s_free_blocks); in sysv_count_free_blocks()
196 block = fs32_to_cpu(sbi, zone); in sysv_count_free_blocks()
Dinode.c49 old_time = fs32_to_cpu(sbi, *sbi->s_sb_time); in sysv_write_super()
208 inode->i_size = fs32_to_cpu(sbi, raw_inode->i_size); in sysv_iget()
209 inode->i_atime.tv_sec = fs32_to_cpu(sbi, raw_inode->i_atime); in sysv_iget()
210 inode->i_mtime.tv_sec = fs32_to_cpu(sbi, raw_inode->i_mtime); in sysv_iget()
211 inode->i_ctime.tv_sec = fs32_to_cpu(sbi, raw_inode->i_ctime); in sysv_iget()
225 old_decode_dev(fs32_to_cpu(sbi, si->i_data[0]))); in sysv_iget()
Dsysv.h195 static inline __u32 fs32_to_cpu(struct sysv_sb_info *sbi, __fs32 n) in fs32_to_cpu() function
Ditree.c55 return sbi->s_block_base + fs32_to_cpu(sbi, nr); in block_to_cpu()