Lines Matching refs:ltab
406 struct ubifs_lpt_lprops *ltab) in ubifs_pack_ltab() argument
414 pack_bits(c, &addr, &pos, ltab[i].free, c->lpt_spc_bits); in ubifs_pack_ltab()
415 pack_bits(c, &addr, &pos, ltab[i].dirty, c->lpt_spc_bits); in ubifs_pack_ltab()
457 lnum, dirty, c->ltab[lnum - c->lpt_first].dirty); 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()
475 c->ltab[lnum - c->lpt_first].free = free; in set_ltab()
476 c->ltab[lnum - c->lpt_first].dirty = dirty; in set_ltab()
607 struct ubifs_lpt_lprops *ltab = NULL; in ubifs_create_dflt_lpt() local
631 ltab = vmalloc(array_size(sizeof(struct ubifs_lpt_lprops), in ubifs_create_dflt_lpt()
633 if (!pnode || !nnode || !buf || !ltab || !lsave) { in ubifs_create_dflt_lpt()
638 ubifs_assert(c, !c->ltab); in ubifs_create_dflt_lpt()
639 c->ltab = ltab; /* Needed by set_ltab */ in ubifs_create_dflt_lpt()
643 ltab[i].free = c->leb_size; in ubifs_create_dflt_lpt()
644 ltab[i].dirty = 0; in ubifs_create_dflt_lpt()
645 ltab[i].tgc = 0; in ubifs_create_dflt_lpt()
646 ltab[i].cmt = 0; in ubifs_create_dflt_lpt()
826 ubifs_pack_ltab(c, p, ltab); in ubifs_create_dflt_lpt()
861 c->ltab = NULL; in ubifs_create_dflt_lpt()
864 vfree(ltab); in ubifs_create_dflt_lpt()
1060 c->ltab[i].free = free; in unpack_ltab()
1061 c->ltab[i].dirty = dirty; in unpack_ltab()
1062 c->ltab[i].tgc = 0; in unpack_ltab()
1063 c->ltab[i].cmt = 0; in unpack_ltab()
1780 c->ltab = vmalloc(array_size(sizeof(struct ubifs_lpt_lprops), in lpt_init_rd()
1782 if (!c->ltab) in lpt_init_rd()
1868 if (c->ltab[i].free == c->leb_size) { in lpt_init_wr()