Lines Matching refs:leb_size
82 c->space_bits = fls(c->leb_size) - 3;
84 c->lpt_offs_bits = fls(c->leb_size - 1);
85 c->lpt_spc_bits = fls(c->leb_size);
122 while (sz > c->leb_size) {
124 sz -= c->leb_size;
146 lebs_needed = div_u64(sz + c->leb_size - 1, c->leb_size);
153 if (c->ltab_sz > c->leb_size) {
195 /* Small LPT model must have lpt_sz < leb_size */
196 if (c->lpt_sz > c->leb_size) {
205 lebs_needed = div_u64(sz + c->leb_size - 1, c->leb_size);
215 if (c->ltab_sz > c->leb_size) {
634 buf = vmalloc(c->leb_size);
646 ltab[i].free = c->leb_size;
663 pnode->lprops[0].free = c->leb_size - iopos;
669 pnode->lprops[1].free = c->leb_size - iopos;
673 pnode->lprops[i].free = c->leb_size;
682 pnode->lprops[0].free = c->leb_size;
686 pnode->lprops[1].free = c->leb_size;
700 if (len + c->pnode_sz > c->leb_size) {
702 set_ltab(c, lnum, c->leb_size - alen, alen - len);
730 if (len + c->nnode_sz > c->leb_size) {
732 set_ltab(c, lnum, c->leb_size - alen,
750 if (boffs + bsz > c->leb_size) {
779 if (len + c->lsave_sz > c->leb_size) {
781 set_ltab(c, lnum, c->leb_size - alen, alen - len);
805 if (len + c->ltab_sz > c->leb_size) {
807 set_ltab(c, lnum, c->leb_size - alen, alen - len);
822 set_ltab(c, lnum, c->leb_size - alen, alen - len);
1048 if (free < 0 || free > c->leb_size || dirty < 0 ||
1049 dirty > c->leb_size || free + dirty > c->leb_size)
1111 max_offs = c->leb_size - c->pnode_sz;
1113 max_offs = c->leb_size - c->nnode_sz;
1155 if (free < 0 || free > c->leb_size || free % c->min_io_size ||
1158 if (dirty < 0 || dirty > c->leb_size || (dirty & 7))
1160 if (dirty + free > c->leb_size)
1290 lprops->free = c->leb_size;
1694 c->lpt_buf = vmalloc(c->leb_size);
1708 if (c->ltab[i].free == c->leb_size) {
1875 lprops->free = c->leb_size;
1881 ubifs_assert(branch->offs >= 0 && branch->offs < c->leb_size);
2188 if (lprops->free != c->leb_size) {
2196 if (lprops->free + lprops->dirty != c->leb_size) {