Home
last modified time | relevance | path

Searched refs:leb_cnt (Results 1 – 12 of 12) sorted by relevance

/external/u-boot/fs/ubifs/
Dsb.c92 if (c->leb_cnt < 0x7FFFFFFF / DEFAULT_JNL_PERCENT) in create_default_filesystem()
94 jnl_lebs = c->leb_cnt * DEFAULT_JNL_PERCENT / 100; in create_default_filesystem()
96 jnl_lebs = (c->leb_cnt / 100) * DEFAULT_JNL_PERCENT; in create_default_filesystem()
113 if (c->leb_cnt - min_leb_cnt > 8) { in create_default_filesystem()
130 if (c->leb_cnt - min_leb_cnt > 1) in create_default_filesystem()
138 main_lebs = c->leb_cnt - UBIFS_SB_LEBS - UBIFS_MST_LEBS - log_lebs; in create_default_filesystem()
143 c->max_leb_cnt = c->leb_cnt; in create_default_filesystem()
152 main_first = c->leb_cnt - main_lebs; in create_default_filesystem()
169 sup->leb_cnt = cpu_to_le32(c->leb_cnt); in create_default_filesystem()
229 mst->leb_cnt = cpu_to_le32(c->leb_cnt); in create_default_filesystem()
[all …]
Dmaster.c119 if (c->zroot.lnum >= c->leb_cnt || c->zroot.lnum < c->main_first || in validate_master()
131 if (c->gc_lnum >= c->leb_cnt || c->gc_lnum < c->main_first) { in validate_master()
136 if (c->ihead_lnum >= c->leb_cnt || c->ihead_lnum < c->main_first || in validate_master()
176 if (c->lscan_lnum < c->main_first || c->lscan_lnum >= c->leb_cnt) { in validate_master()
294 old_leb_cnt = le32_to_cpu(c->mst_node->leb_cnt); in ubifs_read_master()
306 if (old_leb_cnt != c->leb_cnt) { in ubifs_read_master()
308 int growth = c->leb_cnt - old_leb_cnt; in ubifs_read_master()
310 if (c->leb_cnt < old_leb_cnt || in ubifs_read_master()
311 c->leb_cnt < UBIFS_MIN_LEB_CNT) { in ubifs_read_master()
318 old_leb_cnt, c->leb_cnt); in ubifs_read_master()
[all …]
Dio.c245 ubifs_assert(lnum >= 0 && lnum < c->leb_cnt && offs >= 0); in ubifs_check_node()
578 ubifs_assert(lnum >= 0 && lnum < c->leb_cnt); in ubifs_wbuf_seek_nolock()
689 ubifs_assert(len > 0 && wbuf->lnum >= 0 && wbuf->lnum < c->leb_cnt); in ubifs_wbuf_write_nolock()
872 ubifs_assert(lnum >= 0 && lnum < c->leb_cnt && offs >= 0); in ubifs_write_node()
913 ubifs_assert(wbuf && lnum >= 0 && lnum < c->leb_cnt && offs >= 0); in ubifs_read_node_wbuf()
988 ubifs_assert(lnum >= 0 && lnum < c->leb_cnt && offs >= 0); in ubifs_read_node()
Dubifs-media.h622 __le32 leb_cnt; member
706 __le32 leb_cnt; member
Dlpt.c58 n = c->main_lebs + c->max_leb_cnt - c->leb_cnt; in do_calc_lpt_geom()
624 c->main_first = c->leb_cnt - *main_lebs; in ubifs_create_dflt_lpt()
1073 if (lnum < c->main_first || lnum >= c->leb_cnt) in unpack_lsave()
1176 if (lnum >= c->leb_cnt) in set_pnode_lnum()
1370 if (lnum >= c->leb_cnt) in read_lsave()
1936 if (start_lnum >= c->leb_cnt) in ubifs_lpt_scan_nolock()
1940 ubifs_assert(start_lnum >= c->main_first && start_lnum < c->leb_cnt); in ubifs_lpt_scan_nolock()
1941 ubifs_assert(end_lnum >= c->main_first && end_lnum < c->leb_cnt); in ubifs_lpt_scan_nolock()
2046 if (lnum + 1 >= c->leb_cnt) { in ubifs_lpt_scan_nolock()
2116 if (lnum >= c->leb_cnt) in dbg_chk_pnode()
Dsuper.c695 c->leb_cnt = c->vi.size; in init_constants_early()
710 if (c->leb_cnt < UBIFS_MIN_LEB_CNT) { in init_constants_early()
712 c->leb_cnt, UBIFS_MIN_LEB_CNT); in init_constants_early()
1079 for (lnum = 0; lnum < c->leb_cnt; lnum++) { in check_volume_empty()
1644 c->main_lebs, c->main_first, c->leb_cnt - 1); in mount_ubifs()
1800 if (c->old_leb_cnt != c->leb_cnt) { in ubifs_remount_rw()
1808 sup->leb_cnt = cpu_to_le32(c->leb_cnt); in ubifs_remount_rw()
Dtnc_misc.c308 zbr->lnum >= c->leb_cnt || zbr->offs < 0 || in read_znode()
Dreplay.c791 if (jhead >= c->jhead_cnt || lnum >= c->leb_cnt || in validate_ref()
Ddebug.c344 pr_err("\tleb_cnt %u\n", le32_to_cpu(sup->leb_cnt)); in ubifs_dump_node()
392 pr_err("\tleb_cnt %u\n", le32_to_cpu(mst->leb_cnt)); in ubifs_dump_node()
753 for (lnum = c->main_first; lnum < c->leb_cnt; lnum++) { in ubifs_dump_lprops()
Dlprops.c1276 err = ubifs_lpt_scan_nolock(c, c->main_first, c->leb_cnt - 1, in dbg_check_lprops()
Dubifs.h1930 int leb_cnt; member
Dtnc.c1641 ubifs_assert(wbuf && lnum >= 0 && lnum < c->leb_cnt && offs >= 0); in read_wbuf()