Lines Matching refs:lprops

363 		pack_bits(c, &addr, &pos, pnode->lprops[i].free >> 3,  in ubifs_pack_pnode()
365 pack_bits(c, &addr, &pos, pnode->lprops[i].dirty >> 3, in ubifs_pack_pnode()
367 if (pnode->lprops[i].flags & LPROPS_INDEX) in ubifs_pack_pnode()
666 pnode->lprops[0].free = c->leb_size - iopos; in ubifs_create_dflt_lpt()
667 pnode->lprops[0].dirty = iopos - node_sz; in ubifs_create_dflt_lpt()
668 pnode->lprops[0].flags = LPROPS_INDEX; in ubifs_create_dflt_lpt()
672 pnode->lprops[1].free = c->leb_size - iopos; in ubifs_create_dflt_lpt()
673 pnode->lprops[1].dirty = iopos - node_sz; 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()
686 pnode->lprops[0].dirty = 0; in ubifs_create_dflt_lpt()
687 pnode->lprops[0].flags = 0; in ubifs_create_dflt_lpt()
689 pnode->lprops[1].free = c->leb_size; in ubifs_create_dflt_lpt()
690 pnode->lprops[1].dirty = 0; in ubifs_create_dflt_lpt()
877 int cat = pnode->lprops[i].flags & LPROPS_CAT_MASK; in update_cats()
878 int lnum = pnode->lprops[i].lnum; in update_cats()
882 ubifs_add_to_cat(c, &pnode->lprops[i], cat); in update_cats()
902 if (!new_pnode->lprops[i].lnum) in replace_cats()
904 ubifs_replace_cat(c, &old_pnode->lprops[i], in replace_cats()
905 &new_pnode->lprops[i]); in replace_cats()
979 struct ubifs_lprops * const lprops = &pnode->lprops[i]; in unpack_pnode() local
981 lprops->free = ubifs_unpack_bits(c, &addr, &pos, c->space_bits); in unpack_pnode()
982 lprops->free <<= 3; in unpack_pnode()
983 lprops->dirty = ubifs_unpack_bits(c, &addr, &pos, c->space_bits); in unpack_pnode()
984 lprops->dirty <<= 3; in unpack_pnode()
987 lprops->flags = LPROPS_INDEX; in unpack_pnode()
989 lprops->flags = 0; in unpack_pnode()
990 lprops->flags |= ubifs_categorize_lprops(c, lprops); in unpack_pnode()
1153 int free = pnode->lprops[i].free; in validate_pnode()
1154 int dirty = pnode->lprops[i].dirty; in validate_pnode()
1184 pnode->lprops[i].lnum = lnum++; in set_pnode_lnum()
1289 struct ubifs_lprops * const lprops = &pnode->lprops[i]; in read_pnode() local
1291 lprops->free = c->leb_size; in read_pnode()
1292 lprops->flags = ubifs_categorize_lprops(c, lprops); in read_pnode()
1369 struct ubifs_lprops *lprops; in read_lsave() local
1377 lprops = ubifs_lpt_lookup(c, lnum); in read_lsave()
1378 if (IS_ERR(lprops)) { in read_lsave()
1379 err = PTR_ERR(lprops); in read_lsave()
1476 pnode->lprops[iip].free, pnode->lprops[iip].dirty, in ubifs_lpt_lookup()
1477 pnode->lprops[iip].flags); in ubifs_lpt_lookup()
1478 return &pnode->lprops[iip]; in ubifs_lpt_lookup()
1616 pnode->lprops[iip].free, pnode->lprops[iip].dirty, in ubifs_lpt_lookup_dirty()
1617 pnode->lprops[iip].flags); in ubifs_lpt_lookup_dirty()
1619 return &pnode->lprops[iip]; in ubifs_lpt_lookup_dirty()
1888 struct ubifs_lprops * const lprops = &pnode->lprops[i]; in scan_get_pnode() local
1890 lprops->free = c->leb_size; in scan_get_pnode()
1891 lprops->flags = ubifs_categorize_lprops(c, lprops); in scan_get_pnode()
1980 struct ubifs_lprops *lprops = &pnode->lprops[iip]; in ubifs_lpt_scan_nolock() local
1981 int ret, lnum = lprops->lnum; in ubifs_lpt_scan_nolock()
1983 ret = scan_cb(c, lprops, path[h].in_tree, data); in ubifs_lpt_scan_nolock()
2008 ubifs_ensure_cat(c, lprops); in ubifs_lpt_scan_nolock()
2109 struct ubifs_lprops *lp, *lprops = &pnode->lprops[i]; in dbg_chk_pnode() local
2112 int found, cat = lprops->flags & LPROPS_CAT_MASK; in dbg_chk_pnode()
2118 if (lprops->lnum != lnum) { in dbg_chk_pnode()
2120 lprops->lnum, lnum); in dbg_chk_pnode()
2123 if (lprops->flags & LPROPS_TAKEN) { in dbg_chk_pnode()
2126 lprops->lnum, cat); in dbg_chk_pnode()
2131 if (lprops->flags & LPROPS_INDEX) { in dbg_chk_pnode()
2139 lprops->lnum, cat); in dbg_chk_pnode()
2152 lprops->lnum, cat); in dbg_chk_pnode()
2176 if (lprops->hpos < heap->cnt && in dbg_chk_pnode()
2177 heap->arr[lprops->hpos] == lprops) in dbg_chk_pnode()
2185 if (lprops == lp) { in dbg_chk_pnode()
2193 lprops->lnum, cat); in dbg_chk_pnode()
2198 if (lprops->free != c->leb_size) { in dbg_chk_pnode()
2200 lprops->lnum, cat, lprops->free, in dbg_chk_pnode()
2201 lprops->dirty); in dbg_chk_pnode()
2207 if (lprops->free + lprops->dirty != c->leb_size) { in dbg_chk_pnode()
2209 lprops->lnum, cat, lprops->free, in dbg_chk_pnode()
2210 lprops->dirty); in dbg_chk_pnode()