Home
last modified time | relevance | path

Searched refs:lpt_first (Results 1 – 14 of 14) sorted by relevance

/OK3568_Linux_fs/u-boot/fs/ubifs/
H A Dlpt_commit.c140 lnum, c->ltab[lnum - c->lpt_first].free, in upd_ltab()
141 c->ltab[lnum - c->lpt_first].dirty, free, dirty); in upd_ltab()
142 ubifs_assert(lnum >= c->lpt_first && lnum <= c->lpt_last); in upd_ltab()
143 c->ltab[lnum - c->lpt_first].free = free; in upd_ltab()
144 c->ltab[lnum - c->lpt_first].dirty += dirty; in upd_ltab()
161 n = *lnum - c->lpt_first + 1; in alloc_lpt_leb()
167 *lnum = i + c->lpt_first; in alloc_lpt_leb()
177 *lnum = i + c->lpt_first; in alloc_lpt_leb()
238 ubifs_assert(lnum >= c->lpt_first && in layout_cnodes()
281 ubifs_assert(lnum >= c->lpt_first && in layout_cnodes()
[all …]
H A Dsb.c81 int lpt_lebs, lpt_first, orph_lebs, big_lpt, ino_waste, sup_flags = 0; in create_default_filesystem() local
142 lpt_first = UBIFS_LOG_LNUM + log_lebs; in create_default_filesystem()
145 err = ubifs_create_dflt_lpt(c, &main_lebs, lpt_first, &lpt_lebs, in create_default_filesystem()
150 dbg_gen("LEB Properties Tree created (LEBs %d-%d)", lpt_first, in create_default_filesystem()
151 lpt_first + lpt_lebs - 1); in create_default_filesystem()
655 c->lpt_first = UBIFS_LOG_LNUM + c->log_lebs; in ubifs_read_superblock()
656 c->lpt_last = c->lpt_first + c->lpt_lebs - 1; in ubifs_read_superblock()
741 for (lnum = c->lpt_first; lnum <= c->lpt_last; lnum++) { in fixup_free_space()
742 int free = c->ltab[lnum - c->lpt_first].free; in fixup_free_space()
H A Dlpt.c394 pack_bits(&addr, &pos, lnum - c->lpt_first, c->lpt_lnum_bits); in ubifs_pack_nnode()
463 lnum, dirty, c->ltab[lnum - c->lpt_first].dirty); in ubifs_add_lpt_dirt()
464 ubifs_assert(lnum >= c->lpt_first && lnum <= c->lpt_last); in ubifs_add_lpt_dirt()
465 c->ltab[lnum - c->lpt_first].dirty += dirty; in ubifs_add_lpt_dirt()
478 lnum, c->ltab[lnum - c->lpt_first].free, in set_ltab()
479 c->ltab[lnum - c->lpt_first].dirty, free, dirty); in set_ltab()
480 ubifs_assert(lnum >= c->lpt_first && lnum <= c->lpt_last); in set_ltab()
481 c->ltab[lnum - c->lpt_first].free = free; in set_ltab()
482 c->ltab[lnum - c->lpt_first].dirty = dirty; in set_ltab()
604 int ubifs_create_dflt_lpt(struct ubifs_info *c, int *main_lebs, int lpt_first, in ubifs_create_dflt_lpt() argument
[all …]
H A Dmaster.c150 if (c->lpt_lnum < c->lpt_first || c->lpt_lnum > c->lpt_last || in validate_master()
156 if (c->nhead_lnum < c->lpt_first || c->nhead_lnum > c->lpt_last || in validate_master()
163 if (c->ltab_lnum < c->lpt_first || c->ltab_lnum > c->lpt_last || in validate_master()
170 if (c->big_lpt && (c->lsave_lnum < c->lpt_first || in validate_master()
H A Dubifs.h1908 int lpt_first; member
2290 int ubifs_create_dflt_lpt(struct ubifs_info *c, int *main_lebs, int lpt_first,
H A Ddebug.c799 i + c->lpt_first, c->ltab[i].free, c->ltab[i].dirty, in ubifs_dump_lpt_info()
2553 } else if (lnum >= c->lpt_first && lnum <= c->lpt_last) { in power_cut_emulated()
H A Dsuper.c1636 c->lpt_lebs, c->lpt_first, c->lpt_last); in mount_ubifs()
/OK3568_Linux_fs/kernel/fs/ubifs/
H A Dlpt_commit.c132 lnum, c->ltab[lnum - c->lpt_first].free, in upd_ltab()
133 c->ltab[lnum - c->lpt_first].dirty, free, dirty); in upd_ltab()
134 ubifs_assert(c, lnum >= c->lpt_first && lnum <= c->lpt_last); in upd_ltab()
135 c->ltab[lnum - c->lpt_first].free = free; in upd_ltab()
136 c->ltab[lnum - c->lpt_first].dirty += dirty; in upd_ltab()
153 n = *lnum - c->lpt_first + 1; in alloc_lpt_leb()
159 *lnum = i + c->lpt_first; in alloc_lpt_leb()
169 *lnum = i + c->lpt_first; in alloc_lpt_leb()
230 ubifs_assert(c, lnum >= c->lpt_first && in layout_cnodes()
273 ubifs_assert(c, lnum >= c->lpt_first && in layout_cnodes()
[all …]
H A Dsb.c82 int lpt_lebs, lpt_first, orph_lebs, big_lpt, ino_waste, sup_flags = 0; in create_default_filesystem() local
147 lpt_first = UBIFS_LOG_LNUM + log_lebs; in create_default_filesystem()
150 err = ubifs_create_dflt_lpt(c, &main_lebs, lpt_first, &lpt_lebs, in create_default_filesystem()
155 dbg_gen("LEB Properties Tree created (LEBs %d-%d)", lpt_first, in create_default_filesystem()
156 lpt_first + lpt_lebs - 1); in create_default_filesystem()
768 c->lpt_first = UBIFS_LOG_LNUM + c->log_lebs; in ubifs_read_superblock()
769 c->lpt_last = c->lpt_first + c->lpt_lebs - 1; in ubifs_read_superblock()
853 for (lnum = c->lpt_first; lnum <= c->lpt_last; lnum++) { in fixup_free_space()
854 int free = c->ltab[lnum - c->lpt_first].free; in fixup_free_space()
H A Dlpt.c388 pack_bits(c, &addr, &pos, lnum - c->lpt_first, c->lpt_lnum_bits); in ubifs_pack_nnode()
457 lnum, dirty, c->ltab[lnum - c->lpt_first].dirty); in ubifs_add_lpt_dirt()
458 ubifs_assert(c, lnum >= c->lpt_first && lnum <= c->lpt_last); in ubifs_add_lpt_dirt()
459 c->ltab[lnum - c->lpt_first].dirty += dirty; in ubifs_add_lpt_dirt()
472 lnum, c->ltab[lnum - c->lpt_first].free, in set_ltab()
473 c->ltab[lnum - c->lpt_first].dirty, free, dirty); in set_ltab()
474 ubifs_assert(c, lnum >= c->lpt_first && lnum <= c->lpt_last); in set_ltab()
475 c->ltab[lnum - c->lpt_first].free = free; in set_ltab()
476 c->ltab[lnum - c->lpt_first].dirty = dirty; in set_ltab()
599 int ubifs_create_dflt_lpt(struct ubifs_info *c, int *main_lebs, int lpt_first, in ubifs_create_dflt_lpt() argument
[all …]
H A Dmaster.c229 if (c->lpt_lnum < c->lpt_first || c->lpt_lnum > c->lpt_last || in validate_master()
235 if (c->nhead_lnum < c->lpt_first || c->nhead_lnum > c->lpt_last || in validate_master()
242 if (c->ltab_lnum < c->lpt_first || c->ltab_lnum > c->lpt_last || in validate_master()
249 if (c->big_lpt && (c->lsave_lnum < c->lpt_first || in validate_master()
H A Dubifs.h1331 int lpt_first; member
1931 int ubifs_create_dflt_lpt(struct ubifs_info *c, int *main_lebs, int lpt_first,
H A Ddebug.c789 i + c->lpt_first, c->ltab[i].free, c->ltab[i].dirty, in ubifs_dump_lpt_info()
2506 } else if (lnum >= c->lpt_first && lnum <= c->lpt_last) { in power_cut_emulated()
H A Dsuper.c1572 c->lpt_lebs, c->lpt_first, c->lpt_last); in mount_ubifs()