Searched refs:lprops (Results 1 – 7 of 7) sorted by relevance
/external/u-boot/fs/ubifs/ |
D | lprops.c | 29 static int get_heap_comp_val(struct ubifs_lprops *lprops, int cat) in get_heap_comp_val() argument 33 return lprops->free; in get_heap_comp_val() 35 return lprops->free + lprops->dirty; in get_heap_comp_val() 37 return lprops->dirty; in get_heap_comp_val() 54 struct ubifs_lprops *lprops, int cat) in move_up_lpt_heap() argument 58 hpos = lprops->hpos; in move_up_lpt_heap() 61 val1 = get_heap_comp_val(lprops, cat); in move_up_lpt_heap() 72 heap->arr[ppos] = lprops; in move_up_lpt_heap() 73 lprops->hpos = ppos; in move_up_lpt_heap() 91 struct ubifs_lprops *lprops, int hpos, int cat) in adjust_lpt_heap() argument [all …]
|
D | lpt.c | 356 pack_bits(&addr, &pos, pnode->lprops[i].free >> 3, in ubifs_pack_pnode() 358 pack_bits(&addr, &pos, pnode->lprops[i].dirty >> 3, in ubifs_pack_pnode() 360 if (pnode->lprops[i].flags & LPROPS_INDEX) in ubifs_pack_pnode() 658 pnode->lprops[0].free = c->leb_size - iopos; in ubifs_create_dflt_lpt() 659 pnode->lprops[0].dirty = iopos - node_sz; in ubifs_create_dflt_lpt() 660 pnode->lprops[0].flags = LPROPS_INDEX; in ubifs_create_dflt_lpt() 664 pnode->lprops[1].free = c->leb_size - iopos; in ubifs_create_dflt_lpt() 665 pnode->lprops[1].dirty = iopos - node_sz; in ubifs_create_dflt_lpt() 668 pnode->lprops[i].free = c->leb_size; in ubifs_create_dflt_lpt() 677 pnode->lprops[0].free = c->leb_size; in ubifs_create_dflt_lpt() [all …]
|
D | lpt_commit.c | 804 struct ubifs_lprops *lprops; in populate_lsave() local 819 list_for_each_entry(lprops, &c->empty_list, list) { in populate_lsave() 820 c->lsave[cnt++] = lprops->lnum; in populate_lsave() 824 list_for_each_entry(lprops, &c->freeable_list, list) { in populate_lsave() 825 c->lsave[cnt++] = lprops->lnum; in populate_lsave() 829 list_for_each_entry(lprops, &c->frdi_idx_list, list) { in populate_lsave() 830 c->lsave[cnt++] = lprops->lnum; in populate_lsave() 2010 struct ubifs_lprops *lprops; in dbg_populate_lsave() local 2022 list_for_each_entry(lprops, &c->empty_list, list) in dbg_populate_lsave() 2023 c->lsave[prandom_u32() % c->lsave_cnt] = lprops->lnum; in dbg_populate_lsave() [all …]
|
D | sb.c | 710 struct ubifs_lprops *lprops; in fixup_free_space() local 759 lprops = ubifs_lpt_lookup(c, lnum); in fixup_free_space() 760 if (IS_ERR(lprops)) { in fixup_free_space() 761 err = PTR_ERR(lprops); in fixup_free_space() 765 if (lprops->free > 0) { in fixup_free_space() 766 err = fixup_leb(c, lnum, c->leb_size - lprops->free); in fixup_free_space()
|
D | Makefile | 11 obj-y += lpt_commit.o scan.o lprops.o
|
D | ubifs.h | 1172 struct ubifs_lprops lprops[UBIFS_LPT_FANOUT]; member 1244 const struct ubifs_lprops *lprops, 2330 void ubifs_add_to_cat(struct ubifs_info *c, struct ubifs_lprops *lprops, 2334 void ubifs_ensure_cat(struct ubifs_info *c, struct ubifs_lprops *lprops); 2336 const struct ubifs_lprops *lprops);
|
D | debug.c | 903 struct ubifs_lprops *lprops = heap->arr[i]; in ubifs_dump_heap() local 906 i, lprops->lnum, lprops->hpos, lprops->free, in ubifs_dump_heap() 907 lprops->dirty, lprops->flags); in ubifs_dump_heap() 923 struct ubifs_lprops *lp = &pnode->lprops[i]; in ubifs_dump_pnode()
|