Lines Matching refs:leb_size
82 c->space_bits = fls(c->leb_size) - 3; in do_calc_lpt_geom()
84 c->lpt_offs_bits = fls(c->leb_size - 1); in do_calc_lpt_geom()
85 c->lpt_spc_bits = fls(c->leb_size); in do_calc_lpt_geom()
122 while (sz > c->leb_size) { in do_calc_lpt_geom()
124 sz -= c->leb_size; in do_calc_lpt_geom()
146 lebs_needed = div_u64(sz + c->leb_size - 1, c->leb_size); in ubifs_calc_lpt_geom()
153 if (c->ltab_sz > c->leb_size) { in ubifs_calc_lpt_geom()
196 if (c->lpt_sz > c->leb_size) { in calc_dflt_lpt_geom()
205 lebs_needed = div_u64(sz + c->leb_size - 1, c->leb_size); in calc_dflt_lpt_geom()
215 if (c->ltab_sz > c->leb_size) { in calc_dflt_lpt_geom()
636 buf = vmalloc(c->leb_size); in ubifs_create_dflt_lpt()
649 ltab[i].free = c->leb_size; in ubifs_create_dflt_lpt()
666 pnode->lprops[0].free = c->leb_size - iopos; in ubifs_create_dflt_lpt()
672 pnode->lprops[1].free = c->leb_size - iopos; in ubifs_create_dflt_lpt()
676 pnode->lprops[i].free = c->leb_size; in ubifs_create_dflt_lpt()
685 pnode->lprops[0].free = c->leb_size; in ubifs_create_dflt_lpt()
689 pnode->lprops[1].free = c->leb_size; in ubifs_create_dflt_lpt()
703 if (len + c->pnode_sz > c->leb_size) { in ubifs_create_dflt_lpt()
705 set_ltab(c, lnum, c->leb_size - alen, alen - len); in ubifs_create_dflt_lpt()
732 if (len + c->nnode_sz > c->leb_size) { in ubifs_create_dflt_lpt()
734 set_ltab(c, lnum, c->leb_size - alen, in ubifs_create_dflt_lpt()
751 if (boffs + bsz > c->leb_size) { in ubifs_create_dflt_lpt()
780 if (len + c->lsave_sz > c->leb_size) { in ubifs_create_dflt_lpt()
782 set_ltab(c, lnum, c->leb_size - alen, alen - len); in ubifs_create_dflt_lpt()
805 if (len + c->ltab_sz > c->leb_size) { in ubifs_create_dflt_lpt()
807 set_ltab(c, lnum, c->leb_size - alen, alen - len); in ubifs_create_dflt_lpt()
822 set_ltab(c, lnum, c->leb_size - alen, alen - len); in ubifs_create_dflt_lpt()
1049 if (free < 0 || free > c->leb_size || dirty < 0 || in unpack_ltab()
1050 dirty > c->leb_size || free + dirty > c->leb_size) in unpack_ltab()
1112 max_offs = c->leb_size - c->pnode_sz; in validate_nnode()
1114 max_offs = c->leb_size - c->nnode_sz; in validate_nnode()
1156 if (free < 0 || free > c->leb_size || free % c->min_io_size || in validate_pnode()
1159 if (dirty < 0 || dirty > c->leb_size || (dirty & 7)) in validate_pnode()
1161 if (dirty + free > c->leb_size) in validate_pnode()
1291 lprops->free = c->leb_size; in read_pnode()
1702 c->lpt_buf = vmalloc(c->leb_size); in lpt_init_wr()
1716 if (c->ltab[i].free == c->leb_size) { in lpt_init_wr()
1890 lprops->free = c->leb_size; in scan_get_pnode()
1896 ubifs_assert(c, branch->offs >= 0 && branch->offs < c->leb_size); in scan_get_pnode()
2198 if (lprops->free != c->leb_size) { in dbg_chk_pnode()
2207 if (lprops->free + lprops->dirty != c->leb_size) { in dbg_chk_pnode()