Lines Matching refs:leb_size
165 if (c->ltab[i].free == c->leb_size) {
175 if (c->ltab[i].free == c->leb_size) {
206 if (!done_lsave && offs + c->lsave_sz <= c->leb_size) {
214 if (offs + c->ltab_sz <= c->leb_size) {
230 while (offs + len > c->leb_size) {
232 upd_ltab(c, lnum, c->leb_size - alen, alen - offs);
233 dbg_chk_lpt_sz(c, 2, c->leb_size - offs);
273 if (offs + c->lsave_sz > c->leb_size) {
275 upd_ltab(c, lnum, c->leb_size - alen, alen - offs);
276 dbg_chk_lpt_sz(c, 2, c->leb_size - offs);
293 if (offs + c->ltab_sz > c->leb_size) {
295 upd_ltab(c, lnum, c->leb_size - alen, alen - offs);
296 dbg_chk_lpt_sz(c, 2, c->leb_size - offs);
312 upd_ltab(c, lnum, c->leb_size - alen, alen - offs);
391 if (!done_lsave && offs + c->lsave_sz <= c->leb_size) {
398 if (offs + c->ltab_sz <= c->leb_size) {
411 while (offs + len > c->leb_size) {
421 dbg_chk_lpt_sz(c, 2, c->leb_size - offs);
471 if (offs + c->lsave_sz > c->leb_size) {
479 dbg_chk_lpt_sz(c, 2, c->leb_size - offs);
498 if (offs + c->ltab_sz > c->leb_size) {
506 dbg_chk_lpt_sz(c, 2, c->leb_size - offs);
731 free += c->leb_size - c->nhead_offs;
732 else if (c->ltab[i].free == c->leb_size)
733 free += c->leb_size;
734 else if (c->ltab[i].free + c->ltab[i].dirty == c->leb_size)
735 free += c->leb_size;
759 c->ltab[i].free + c->ltab[i].dirty == c->leb_size) {
761 c->ltab[i].free = c->leb_size;
1078 offs = c->leb_size - len;
1146 int err, len = c->leb_size, node_type, node_num, node_len, offs;
1150 err = ubi_read(c->ubi, lnum, buf, 0, c->leb_size);
1169 offs = c->leb_size - len;
1197 c->ltab[i].free + c->ltab[i].dirty == c->leb_size)
1626 int err, len = c->leb_size, dirty = 0, node_type, node_num, node_len;
1634 err = ubi_read(c->ubi, lnum, buf, 0, c->leb_size);
1652 lnum, c->leb_size - len);
1672 ret = dbg_is_node_dirty(c, node_type, lnum, c->leb_size - len);
1740 free += c->leb_size - c->nhead_offs;
1741 else if (c->ltab[i].free == c->leb_size)
1742 free += c->leb_size;
1804 chk_lpt_sz = c->leb_size;
1869 int err, len = c->leb_size, node_type, node_num, node_len, offs;
1874 err = ubi_read(c->ubi, lnum, buf, 0, c->leb_size);
1880 offs = c->leb_size - len;