Lines Matching refs:leb_size
70 c->space_bits = fls(c->leb_size) - 3; in do_calc_lpt_geom()
72 c->lpt_offs_bits = fls(c->leb_size - 1); in do_calc_lpt_geom()
73 c->lpt_spc_bits = fls(c->leb_size); in do_calc_lpt_geom()
110 while (sz > c->leb_size) { in do_calc_lpt_geom()
112 sz -= c->leb_size; in do_calc_lpt_geom()
134 lebs_needed = div_u64(sz + c->leb_size - 1, c->leb_size); in ubifs_calc_lpt_geom()
141 if (c->ltab_sz > c->leb_size) { in ubifs_calc_lpt_geom()
184 if (c->lpt_sz > c->leb_size) { in calc_dflt_lpt_geom()
193 lebs_needed = div_u64(sz + c->leb_size - 1, c->leb_size); in calc_dflt_lpt_geom()
203 if (c->ltab_sz > c->leb_size) { in calc_dflt_lpt_geom()
630 buf = vmalloc(c->leb_size); in ubifs_create_dflt_lpt()
643 ltab[i].free = c->leb_size; in ubifs_create_dflt_lpt()
660 pnode->lprops[0].free = c->leb_size - iopos; in ubifs_create_dflt_lpt()
666 pnode->lprops[1].free = c->leb_size - iopos; in ubifs_create_dflt_lpt()
670 pnode->lprops[i].free = c->leb_size; in ubifs_create_dflt_lpt()
683 pnode->lprops[0].free = c->leb_size; in ubifs_create_dflt_lpt()
687 pnode->lprops[1].free = c->leb_size; in ubifs_create_dflt_lpt()
701 if (len + c->pnode_sz > c->leb_size) { in ubifs_create_dflt_lpt()
703 set_ltab(c, lnum, c->leb_size - alen, alen - len); in ubifs_create_dflt_lpt()
734 if (len + c->nnode_sz > c->leb_size) { in ubifs_create_dflt_lpt()
736 set_ltab(c, lnum, c->leb_size - alen, in ubifs_create_dflt_lpt()
753 if (boffs + bsz > c->leb_size) { in ubifs_create_dflt_lpt()
782 if (len + c->lsave_sz > c->leb_size) { in ubifs_create_dflt_lpt()
784 set_ltab(c, lnum, c->leb_size - alen, alen - len); in ubifs_create_dflt_lpt()
807 if (len + c->ltab_sz > c->leb_size) { in ubifs_create_dflt_lpt()
809 set_ltab(c, lnum, c->leb_size - alen, alen - len); in ubifs_create_dflt_lpt()
824 set_ltab(c, lnum, c->leb_size - alen, alen - len); in ubifs_create_dflt_lpt()
1056 if (free < 0 || free > c->leb_size || dirty < 0 || in unpack_ltab()
1057 dirty > c->leb_size || free + dirty > c->leb_size) in unpack_ltab()
1119 max_offs = c->leb_size - c->pnode_sz; in validate_nnode()
1121 max_offs = c->leb_size - c->nnode_sz; in validate_nnode()
1163 if (free < 0 || free > c->leb_size || free % c->min_io_size || in validate_pnode()
1166 if (dirty < 0 || dirty > c->leb_size || (dirty & 7)) in validate_pnode()
1168 if (dirty + free > c->leb_size) in validate_pnode()
1298 lprops->free = c->leb_size; in read_pnode()
1854 c->lpt_buf = vmalloc(c->leb_size); in lpt_init_wr()
1868 if (c->ltab[i].free == c->leb_size) { in lpt_init_wr()
2042 lprops->free = c->leb_size; in scan_get_pnode()
2048 ubifs_assert(c, branch->offs >= 0 && branch->offs < c->leb_size); in scan_get_pnode()
2350 if (lprops->free != c->leb_size) { in dbg_chk_pnode()
2359 if (lprops->free + lprops->dirty != c->leb_size) { in dbg_chk_pnode()