Lines Matching refs:ucpi
33 struct ufs_cg_private_info * ucpi;
39 ucpi = sbi->s_ucpi[bitmap_nr];
42 UCPI_UBH(ucpi)->fragment = ufs_cgcmin(cgno);
43 UCPI_UBH(ucpi)->count = uspi->s_cgsize >> sb->s_blocksize_bits;
47 UCPI_UBH(ucpi)->bh[0] = sbi->s_ucg[cgno];
48 for (i = 1; i < UCPI_UBH(ucpi)->count; i++)
49 if (!(UCPI_UBH(ucpi)->bh[i] = sb_bread(sb, UCPI_UBH(ucpi)->fragment + i)))
53 ucpi->c_cgx = fs32_to_cpu(sb, ucg->cg_cgx);
54 ucpi->c_ncyl = fs16_to_cpu(sb, ucg->cg_ncyl);
55 ucpi->c_niblk = fs16_to_cpu(sb, ucg->cg_niblk);
56 ucpi->c_ndblk = fs32_to_cpu(sb, ucg->cg_ndblk);
57 ucpi->c_rotor = fs32_to_cpu(sb, ucg->cg_rotor);
58 ucpi->c_frotor = fs32_to_cpu(sb, ucg->cg_frotor);
59 ucpi->c_irotor = fs32_to_cpu(sb, ucg->cg_irotor);
60 ucpi->c_btotoff = fs32_to_cpu(sb, ucg->cg_btotoff);
61 ucpi->c_boff = fs32_to_cpu(sb, ucg->cg_boff);
62 ucpi->c_iusedoff = fs32_to_cpu(sb, ucg->cg_iusedoff);
63 ucpi->c_freeoff = fs32_to_cpu(sb, ucg->cg_freeoff);
64 ucpi->c_nextfreeoff = fs32_to_cpu(sb, ucg->cg_nextfreeoff);
65 ucpi->c_clustersumoff = fs32_to_cpu(sb, ucg->cg_u.cg_44.cg_clustersumoff);
66 ucpi->c_clusteroff = fs32_to_cpu(sb, ucg->cg_u.cg_44.cg_clusteroff);
67 ucpi->c_nclusterblks = fs32_to_cpu(sb, ucg->cg_u.cg_44.cg_nclusterblks);
86 struct ufs_cg_private_info * ucpi;
97 ucpi = sbi->s_ucpi[bitmap_nr];
98 ucg = ubh_get_ucg(UCPI_UBH(ucpi));
108 ucg->cg_rotor = cpu_to_fs32(sb, ucpi->c_rotor);
109 ucg->cg_frotor = cpu_to_fs32(sb, ucpi->c_frotor);
110 ucg->cg_irotor = cpu_to_fs32(sb, ucpi->c_irotor);
111 ubh_mark_buffer_dirty (UCPI_UBH(ucpi));
112 for (i = 1; i < UCPI_UBH(ucpi)->count; i++) {
113 brelse (UCPI_UBH(ucpi)->bh[i]);
131 struct ufs_cg_private_info * ucpi;
175 ucpi = sbi->s_ucpi[i];
181 sbi->s_ucpi[0] = ucpi;
191 ucpi = sbi->s_ucpi[sbi->s_cg_loaded - 1];
196 sbi->s_ucpi[0] = ucpi;