Lines Matching refs:usb1
101 struct ufs_super_block_first * usb1, in ufs_print_super_stuff() argument
108 printk(" sblkno: %u\n", fs32_to_cpu(sb, usb1->fs_sblkno)); in ufs_print_super_stuff()
109 printk(" cblkno: %u\n", fs32_to_cpu(sb, usb1->fs_cblkno)); in ufs_print_super_stuff()
110 printk(" iblkno: %u\n", fs32_to_cpu(sb, usb1->fs_iblkno)); in ufs_print_super_stuff()
111 printk(" dblkno: %u\n", fs32_to_cpu(sb, usb1->fs_dblkno)); in ufs_print_super_stuff()
112 printk(" cgoffset: %u\n", fs32_to_cpu(sb, usb1->fs_cgoffset)); in ufs_print_super_stuff()
113 printk(" ~cgmask: 0x%x\n", ~fs32_to_cpu(sb, usb1->fs_cgmask)); in ufs_print_super_stuff()
114 printk(" size: %u\n", fs32_to_cpu(sb, usb1->fs_size)); in ufs_print_super_stuff()
115 printk(" dsize: %u\n", fs32_to_cpu(sb, usb1->fs_dsize)); in ufs_print_super_stuff()
116 printk(" ncg: %u\n", fs32_to_cpu(sb, usb1->fs_ncg)); in ufs_print_super_stuff()
117 printk(" bsize: %u\n", fs32_to_cpu(sb, usb1->fs_bsize)); in ufs_print_super_stuff()
118 printk(" fsize: %u\n", fs32_to_cpu(sb, usb1->fs_fsize)); in ufs_print_super_stuff()
119 printk(" frag: %u\n", fs32_to_cpu(sb, usb1->fs_frag)); in ufs_print_super_stuff()
120 printk(" fragshift: %u\n", fs32_to_cpu(sb, usb1->fs_fragshift)); in ufs_print_super_stuff()
121 printk(" ~fmask: %u\n", ~fs32_to_cpu(sb, usb1->fs_fmask)); in ufs_print_super_stuff()
122 printk(" fshift: %u\n", fs32_to_cpu(sb, usb1->fs_fshift)); in ufs_print_super_stuff()
123 printk(" sbsize: %u\n", fs32_to_cpu(sb, usb1->fs_sbsize)); in ufs_print_super_stuff()
124 printk(" spc: %u\n", fs32_to_cpu(sb, usb1->fs_spc)); in ufs_print_super_stuff()
125 printk(" cpg: %u\n", fs32_to_cpu(sb, usb1->fs_cpg)); in ufs_print_super_stuff()
126 printk(" ipg: %u\n", fs32_to_cpu(sb, usb1->fs_ipg)); in ufs_print_super_stuff()
127 printk(" fpg: %u\n", fs32_to_cpu(sb, usb1->fs_fpg)); in ufs_print_super_stuff()
128 printk(" csaddr: %u\n", fs32_to_cpu(sb, usb1->fs_csaddr)); in ufs_print_super_stuff()
129 printk(" cssize: %u\n", fs32_to_cpu(sb, usb1->fs_cssize)); in ufs_print_super_stuff()
130 printk(" cgsize: %u\n", fs32_to_cpu(sb, usb1->fs_cgsize)); in ufs_print_super_stuff()
131 printk(" fstodb: %u\n", fs32_to_cpu(sb, usb1->fs_fsbtodb)); in ufs_print_super_stuff()
135 printk(" ndir %u\n", fs32_to_cpu(sb, usb1->fs_cstotal.cs_ndir)); in ufs_print_super_stuff()
136 printk(" nifree %u\n", fs32_to_cpu(sb, usb1->fs_cstotal.cs_nifree)); in ufs_print_super_stuff()
137 printk(" nbfree %u\n", fs32_to_cpu(sb, usb1->fs_cstotal.cs_nbfree)); in ufs_print_super_stuff()
138 printk(" nffree %u\n", fs32_to_cpu(sb, usb1->fs_cstotal.cs_nffree)); in ufs_print_super_stuff()
188 struct ufs_super_block_first * usb1; in ufs_error() local
192 usb1 = ubh_get_usb_first(USPI_UBH); in ufs_error()
195 usb1->fs_clean = UFS_FSBAD; in ufs_error()
220 struct ufs_super_block_first * usb1; in ufs_panic() local
224 usb1 = ubh_get_usb_first(USPI_UBH); in ufs_panic()
227 usb1->fs_clean = UFS_FSBAD; in ufs_panic()
441 struct ufs_super_block_first * usb1; in ufs_read_super() local
614 usb1 = ubh_get_usb_first(USPI_UBH); in ufs_read_super()
654 uspi->s_bsize = fs32_to_cpu(sb, usb1->fs_bsize); in ufs_read_super()
655 uspi->s_fsize = fs32_to_cpu(sb, usb1->fs_fsize); in ufs_read_super()
656 uspi->s_sbsize = fs32_to_cpu(sb, usb1->fs_sbsize); in ufs_read_super()
657 uspi->s_fmask = fs32_to_cpu(sb, usb1->fs_fmask); in ufs_read_super()
658 uspi->s_fshift = fs32_to_cpu(sb, usb1->fs_fshift); in ufs_read_super()
700 ufs_print_super_stuff(sb, usb1, usb2, usb3); in ufs_read_super()
711 (ufs_get_fs_state(sb, usb1, usb3) == (UFS_FSOK - fs32_to_cpu(sb, usb1->fs_time))))) { in ufs_read_super()
712 switch(usb1->fs_clean) { in ufs_read_super()
731 printk("ufs_read_super: can't grok fs_clean 0x%x\n", usb1->fs_clean); in ufs_read_super()
744 sb->s_blocksize = fs32_to_cpu(sb, usb1->fs_fsize); in ufs_read_super()
745 sb->s_blocksize_bits = fs32_to_cpu(sb, usb1->fs_fshift); in ufs_read_super()
750 uspi->s_sblkno = fs32_to_cpu(sb, usb1->fs_sblkno); in ufs_read_super()
751 uspi->s_cblkno = fs32_to_cpu(sb, usb1->fs_cblkno); in ufs_read_super()
752 uspi->s_iblkno = fs32_to_cpu(sb, usb1->fs_iblkno); in ufs_read_super()
753 uspi->s_dblkno = fs32_to_cpu(sb, usb1->fs_dblkno); in ufs_read_super()
754 uspi->s_cgoffset = fs32_to_cpu(sb, usb1->fs_cgoffset); in ufs_read_super()
755 uspi->s_cgmask = fs32_to_cpu(sb, usb1->fs_cgmask); in ufs_read_super()
756 uspi->s_size = fs32_to_cpu(sb, usb1->fs_size); in ufs_read_super()
757 uspi->s_dsize = fs32_to_cpu(sb, usb1->fs_dsize); in ufs_read_super()
758 uspi->s_ncg = fs32_to_cpu(sb, usb1->fs_ncg); in ufs_read_super()
761 uspi->s_fpb = fs32_to_cpu(sb, usb1->fs_frag); in ufs_read_super()
762 uspi->s_minfree = fs32_to_cpu(sb, usb1->fs_minfree); in ufs_read_super()
763 uspi->s_bmask = fs32_to_cpu(sb, usb1->fs_bmask); in ufs_read_super()
764 uspi->s_fmask = fs32_to_cpu(sb, usb1->fs_fmask); in ufs_read_super()
765 uspi->s_bshift = fs32_to_cpu(sb, usb1->fs_bshift); in ufs_read_super()
766 uspi->s_fshift = fs32_to_cpu(sb, usb1->fs_fshift); in ufs_read_super()
767 uspi->s_fpbshift = fs32_to_cpu(sb, usb1->fs_fragshift); in ufs_read_super()
768 uspi->s_fsbtodb = fs32_to_cpu(sb, usb1->fs_fsbtodb); in ufs_read_super()
770 uspi->s_csmask = fs32_to_cpu(sb, usb1->fs_csmask); in ufs_read_super()
771 uspi->s_csshift = fs32_to_cpu(sb, usb1->fs_csshift); in ufs_read_super()
772 uspi->s_nindir = fs32_to_cpu(sb, usb1->fs_nindir); in ufs_read_super()
773 uspi->s_inopb = fs32_to_cpu(sb, usb1->fs_inopb); in ufs_read_super()
774 uspi->s_nspf = fs32_to_cpu(sb, usb1->fs_nspf); in ufs_read_super()
775 uspi->s_npsect = ufs_get_fs_npsect(sb, usb1, usb3); in ufs_read_super()
776 uspi->s_interleave = fs32_to_cpu(sb, usb1->fs_interleave); in ufs_read_super()
777 uspi->s_trackskew = fs32_to_cpu(sb, usb1->fs_trackskew); in ufs_read_super()
778 uspi->s_csaddr = fs32_to_cpu(sb, usb1->fs_csaddr); in ufs_read_super()
779 uspi->s_cssize = fs32_to_cpu(sb, usb1->fs_cssize); in ufs_read_super()
780 uspi->s_cgsize = fs32_to_cpu(sb, usb1->fs_cgsize); in ufs_read_super()
781 uspi->s_ntrak = fs32_to_cpu(sb, usb1->fs_ntrak); in ufs_read_super()
782 uspi->s_nsect = fs32_to_cpu(sb, usb1->fs_nsect); in ufs_read_super()
783 uspi->s_spc = fs32_to_cpu(sb, usb1->fs_spc); in ufs_read_super()
784 uspi->s_ipg = fs32_to_cpu(sb, usb1->fs_ipg); in ufs_read_super()
785 uspi->s_fpg = fs32_to_cpu(sb, usb1->fs_fpg); in ufs_read_super()
848 struct ufs_super_block_first * usb1; in ufs_write_super() local
855 usb1 = ubh_get_usb_first(USPI_UBH); in ufs_write_super()
859 usb1->fs_time = cpu_to_fs32(sb, CURRENT_TIME); in ufs_write_super()
862 ufs_set_fs_state(sb, usb1, usb3, in ufs_write_super()
863 UFS_FSOK - fs32_to_cpu(sb, usb1->fs_time)); in ufs_write_super()
890 struct ufs_super_block_first * usb1; in ufs_remount() local
897 usb1 = ubh_get_usb_first(USPI_UBH); in ufs_remount()
927 usb1->fs_time = cpu_to_fs32(sb, CURRENT_TIME); in ufs_remount()
930 ufs_set_fs_state(sb, usb1, usb3, in ufs_remount()
931 UFS_FSOK - fs32_to_cpu(sb, usb1->fs_time)); in ufs_remount()
965 struct ufs_super_block_first * usb1; in ufs_statfs() local
968 usb1 = ubh_get_usb_first (USPI_UBH); in ufs_statfs()
973 buf->f_bfree = ufs_blkstofrags(fs32_to_cpu(sb, usb1->fs_cstotal.cs_nbfree)) + in ufs_statfs()
974 fs32_to_cpu(sb, usb1->fs_cstotal.cs_nffree); in ufs_statfs()
978 buf->f_ffree = fs32_to_cpu(sb, usb1->fs_cstotal.cs_nifree); in ufs_statfs()