Lines Matching refs:lprops

351 		pack_bits(c, &addr, &pos, pnode->lprops[i].free >> 3,  in ubifs_pack_pnode()
353 pack_bits(c, &addr, &pos, pnode->lprops[i].dirty >> 3, in ubifs_pack_pnode()
355 if (pnode->lprops[i].flags & LPROPS_INDEX) in ubifs_pack_pnode()
660 pnode->lprops[0].free = c->leb_size - iopos; in ubifs_create_dflt_lpt()
661 pnode->lprops[0].dirty = iopos - node_sz; in ubifs_create_dflt_lpt()
662 pnode->lprops[0].flags = LPROPS_INDEX; in ubifs_create_dflt_lpt()
666 pnode->lprops[1].free = c->leb_size - iopos; in ubifs_create_dflt_lpt()
667 pnode->lprops[1].dirty = iopos - node_sz; 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()
684 pnode->lprops[0].dirty = 0; in ubifs_create_dflt_lpt()
685 pnode->lprops[0].flags = 0; in ubifs_create_dflt_lpt()
687 pnode->lprops[1].free = c->leb_size; in ubifs_create_dflt_lpt()
688 pnode->lprops[1].dirty = 0; in ubifs_create_dflt_lpt()
884 int cat = pnode->lprops[i].flags & LPROPS_CAT_MASK; in update_cats()
885 int lnum = pnode->lprops[i].lnum; in update_cats()
889 ubifs_add_to_cat(c, &pnode->lprops[i], cat); in update_cats()
909 if (!new_pnode->lprops[i].lnum) in replace_cats()
911 ubifs_replace_cat(c, &old_pnode->lprops[i], in replace_cats()
912 &new_pnode->lprops[i]); in replace_cats()
986 struct ubifs_lprops * const lprops = &pnode->lprops[i]; in unpack_pnode() local
988 lprops->free = ubifs_unpack_bits(c, &addr, &pos, c->space_bits); in unpack_pnode()
989 lprops->free <<= 3; in unpack_pnode()
990 lprops->dirty = ubifs_unpack_bits(c, &addr, &pos, c->space_bits); in unpack_pnode()
991 lprops->dirty <<= 3; in unpack_pnode()
994 lprops->flags = LPROPS_INDEX; in unpack_pnode()
996 lprops->flags = 0; in unpack_pnode()
997 lprops->flags |= ubifs_categorize_lprops(c, lprops); in unpack_pnode()
1160 int free = pnode->lprops[i].free; in validate_pnode()
1161 int dirty = pnode->lprops[i].dirty; in validate_pnode()
1191 pnode->lprops[i].lnum = lnum++; in set_pnode_lnum()
1296 struct ubifs_lprops * const lprops = &pnode->lprops[i]; in read_pnode() local
1298 lprops->free = c->leb_size; in read_pnode()
1299 lprops->flags = ubifs_categorize_lprops(c, lprops); in read_pnode()
1376 struct ubifs_lprops *lprops; in read_lsave() local
1384 lprops = ubifs_lpt_lookup(c, lnum); in read_lsave()
1385 if (IS_ERR(lprops)) { in read_lsave()
1386 err = PTR_ERR(lprops); in read_lsave()
1499 pnode->lprops[iip].free, pnode->lprops[iip].dirty, in ubifs_lpt_lookup()
1500 pnode->lprops[iip].flags); in ubifs_lpt_lookup()
1501 return &pnode->lprops[iip]; in ubifs_lpt_lookup()
1639 pnode->lprops[iip].free, pnode->lprops[iip].dirty, in ubifs_lpt_lookup_dirty()
1640 pnode->lprops[iip].flags); in ubifs_lpt_lookup_dirty()
1642 return &pnode->lprops[iip]; in ubifs_lpt_lookup_dirty()
2040 struct ubifs_lprops * const lprops = &pnode->lprops[i]; in scan_get_pnode() local
2042 lprops->free = c->leb_size; in scan_get_pnode()
2043 lprops->flags = ubifs_categorize_lprops(c, lprops); in scan_get_pnode()
2132 struct ubifs_lprops *lprops = &pnode->lprops[iip]; in ubifs_lpt_scan_nolock() local
2133 int ret, lnum = lprops->lnum; in ubifs_lpt_scan_nolock()
2135 ret = scan_cb(c, lprops, path[h].in_tree, data); in ubifs_lpt_scan_nolock()
2160 ubifs_ensure_cat(c, lprops); in ubifs_lpt_scan_nolock()
2261 struct ubifs_lprops *lp, *lprops = &pnode->lprops[i]; in dbg_chk_pnode() local
2264 int found, cat = lprops->flags & LPROPS_CAT_MASK; in dbg_chk_pnode()
2270 if (lprops->lnum != lnum) { in dbg_chk_pnode()
2272 lprops->lnum, lnum); in dbg_chk_pnode()
2275 if (lprops->flags & LPROPS_TAKEN) { in dbg_chk_pnode()
2278 lprops->lnum, cat); in dbg_chk_pnode()
2283 if (lprops->flags & LPROPS_INDEX) { in dbg_chk_pnode()
2291 lprops->lnum, cat); in dbg_chk_pnode()
2304 lprops->lnum, cat); in dbg_chk_pnode()
2328 if (lprops->hpos < heap->cnt && in dbg_chk_pnode()
2329 heap->arr[lprops->hpos] == lprops) in dbg_chk_pnode()
2337 if (lprops == lp) { in dbg_chk_pnode()
2345 lprops->lnum, cat); in dbg_chk_pnode()
2350 if (lprops->free != c->leb_size) { in dbg_chk_pnode()
2352 lprops->lnum, cat, lprops->free, in dbg_chk_pnode()
2353 lprops->dirty); in dbg_chk_pnode()
2359 if (lprops->free + lprops->dirty != c->leb_size) { in dbg_chk_pnode()
2361 lprops->lnum, cat, lprops->free, in dbg_chk_pnode()
2362 lprops->dirty); in dbg_chk_pnode()