Home
last modified time | relevance | path

Searched refs:sleb (Results 1 – 13 of 13) sorted by relevance

/external/u-boot/fs/ubifs/
Dscan.c132 struct ubifs_scan_leb *sleb; in ubifs_start_scan() local
137 sleb = kzalloc(sizeof(struct ubifs_scan_leb), GFP_NOFS); in ubifs_start_scan()
138 if (!sleb) in ubifs_start_scan()
141 sleb->lnum = lnum; in ubifs_start_scan()
142 INIT_LIST_HEAD(&sleb->nodes); in ubifs_start_scan()
143 sleb->buf = sbuf; in ubifs_start_scan()
149 kfree(sleb); in ubifs_start_scan()
157 return sleb; in ubifs_start_scan()
167 void ubifs_end_scan(const struct ubifs_info *c, struct ubifs_scan_leb *sleb, in ubifs_end_scan() argument
174 sleb->endpt = ALIGN(offs, c->min_io_size); in ubifs_end_scan()
[all …]
Dreplay.c538 struct ubifs_scan_leb *sleb; in replay_bud() local
551 sleb = ubifs_recover_leb(c, lnum, offs, c->sbuf, b->bud->jhead); in replay_bud()
553 sleb = ubifs_scan(c, lnum, offs, c->sbuf, 0); in replay_bud()
554 if (IS_ERR(sleb)) in replay_bud()
555 return PTR_ERR(sleb); in replay_bud()
579 list_for_each_entry(snod, &sleb->nodes, list) { in replay_bud()
668 ubifs_assert(sleb->endpt - offs >= used); in replay_bud()
669 ubifs_assert(sleb->endpt % c->min_io_size == 0); in replay_bud()
671 b->dirty = sleb->endpt - offs - used; in replay_bud()
672 b->free = c->leb_size - sleb->endpt; in replay_bud()
[all …]
Drecovery.c497 static int fix_unclean_leb(struct ubifs_info *c, struct ubifs_scan_leb *sleb, in fix_unclean_leb() argument
500 int lnum = sleb->lnum, endpt = start; in fix_unclean_leb()
503 if (!list_empty(&sleb->nodes)) { in fix_unclean_leb()
506 snod = list_entry(sleb->nodes.prev, in fix_unclean_leb()
516 lnum, start, sleb->endpt); in fix_unclean_leb()
529 lnum, start, sleb->endpt); in fix_unclean_leb()
538 err = ubifs_leb_read(c, lnum, sleb->buf, 0, in fix_unclean_leb()
548 void *buf = sleb->buf + len - pad_len; in fix_unclean_leb()
553 err = ubifs_leb_change(c, lnum, sleb->buf, len); in fix_unclean_leb()
570 static void drop_last_group(struct ubifs_scan_leb *sleb, int *offs) in drop_last_group() argument
[all …]
Dorphan.c549 static int do_kill_orphans(struct ubifs_info *c, struct ubifs_scan_leb *sleb, in do_kill_orphans() argument
559 list_for_each_entry(snod, &sleb->nodes, list) { in do_kill_orphans()
562 snod->type, sleb->lnum, snod->offs); in do_kill_orphans()
589 cmt_no, sleb->lnum, snod->offs); in do_kill_orphans()
593 dbg_rcvry("out of date LEB %d", sleb->lnum); in do_kill_orphans()
617 cmt_no, sleb->lnum, snod->offs); in do_kill_orphans()
660 struct ubifs_scan_leb *sleb; in kill_orphans() local
663 sleb = ubifs_scan(c, lnum, 0, c->sbuf, 1); in kill_orphans()
664 if (IS_ERR(sleb)) { in kill_orphans()
665 if (PTR_ERR(sleb) == -EUCLEAN) in kill_orphans()
[all …]
Dgc.c237 static int sort_nodes(struct ubifs_info *c, struct ubifs_scan_leb *sleb, in sort_nodes() argument
246 list_for_each_entry_safe(snod, tmp, &sleb->nodes, list) { in sort_nodes()
268 err = ubifs_tnc_has_node(c, &snod->key, 0, sleb->lnum, in sort_nodes()
288 list_sort(c, &sleb->nodes, &data_nodes_cmp); in sort_nodes()
291 err = dbg_check_data_nodes_order(c, &sleb->nodes); in sort_nodes()
311 static int move_node(struct ubifs_info *c, struct ubifs_scan_leb *sleb, in move_node() argument
321 err = ubifs_tnc_replace(c, &snod->key, sleb->lnum, in move_node()
339 static int move_nodes(struct ubifs_info *c, struct ubifs_scan_leb *sleb) in move_nodes() argument
355 err = sort_nodes(c, sleb, &nondata, &min); in move_nodes()
365 list_for_each_entry_safe(snod, tmp, &sleb->nodes, list) { in move_nodes()
[all …]
Dmaster.c31 struct ubifs_scan_leb *sleb; in scan_for_master() local
37 sleb = ubifs_scan(c, lnum, 0, c->sbuf, 1); in scan_for_master()
38 if (IS_ERR(sleb)) in scan_for_master()
39 return PTR_ERR(sleb); in scan_for_master()
40 nodes_cnt = sleb->nodes_cnt; in scan_for_master()
42 snod = list_entry(sleb->nodes.prev, struct ubifs_scan_node, in scan_for_master()
49 ubifs_scan_destroy(sleb); in scan_for_master()
53 sleb = ubifs_scan(c, lnum, 0, c->sbuf, 1); in scan_for_master()
54 if (IS_ERR(sleb)) in scan_for_master()
55 return PTR_ERR(sleb); in scan_for_master()
[all …]
Dlog.c626 struct ubifs_scan_leb *sleb; in ubifs_consolidate_log() local
640 sleb = ubifs_scan(c, lnum, 0, c->sbuf, 0); in ubifs_consolidate_log()
641 if (IS_ERR(sleb)) { in ubifs_consolidate_log()
642 err = PTR_ERR(sleb); in ubifs_consolidate_log()
645 list_for_each_entry(snod, &sleb->nodes, list) { in ubifs_consolidate_log()
673 ubifs_scan_destroy(sleb); in ubifs_consolidate_log()
707 ubifs_scan_destroy(sleb); in ubifs_consolidate_log()
Dlprops.c1024 struct ubifs_scan_leb *sleb; in scan_check_cb() local
1107 sleb = ubifs_scan(c, lnum, 0, buf, 0); in scan_check_cb()
1108 if (IS_ERR(sleb)) { in scan_check_cb()
1109 ret = PTR_ERR(sleb); in scan_check_cb()
1118 list_for_each_entry(snod, &sleb->nodes, list) { in scan_check_cb()
1148 free = c->leb_size - sleb->endpt; in scan_check_cb()
1149 dirty = sleb->endpt - used; in scan_check_cb()
1230 ubifs_scan_destroy(sleb); in scan_check_cb()
1239 ubifs_scan_destroy(sleb); in scan_check_cb()
Ddebug.c804 const struct ubifs_scan_leb *sleb, int offs) in ubifs_dump_sleb() argument
809 current->pid, sleb->lnum, offs); in ubifs_dump_sleb()
811 list_for_each_entry(snod, &sleb->nodes, list) { in ubifs_dump_sleb()
814 sleb->lnum, snod->offs, snod->len); in ubifs_dump_sleb()
821 struct ubifs_scan_leb *sleb; in ubifs_dump_leb() local
833 sleb = ubifs_scan(c, lnum, 0, buf, 0); in ubifs_dump_leb()
834 if (IS_ERR(sleb)) { in ubifs_dump_leb()
835 ubifs_err(c, "scan error %d", (int)PTR_ERR(sleb)); in ubifs_dump_leb()
840 sleb->nodes_cnt, sleb->endpt); in ubifs_dump_leb()
842 list_for_each_entry(snod, &sleb->nodes, list) { in ubifs_dump_leb()
[all …]
Dubifs.h2116 void ubifs_scan_destroy(struct ubifs_scan_leb *sleb);
2121 void ubifs_end_scan(const struct ubifs_info *c, struct ubifs_scan_leb *sleb,
2123 int ubifs_add_snod(const struct ubifs_info *c, struct ubifs_scan_leb *sleb,
Ddebug.h319 const struct ubifs_scan_leb *sleb, int offs);
/external/swiftshader/third_party/llvm-7.0/llvm/test/tools/llvm-objdump/
Dmacho-bad-bind.test19 RUN: not llvm-objdump -macho -bind %p/Inputs/macho-bind-set-addend-sleb 2>&1 | FileCheck -check-pre…
20 SET-ADDEND-SLEB: macho-bind-set-addend-sleb': truncated or malformed object (for BIND_OPCODE_SET_AD…
/external/elfutils/src/
Dreadelf.c4533 int64_t sleb; in print_ops() local
4535 get_sleb128 (sleb, data, data + len); in print_ops()
4537 indent, "", (uintmax_t) offset, op_name, sleb); in print_ops()
4547 get_sleb128 (sleb, data, data + len); in print_ops()
4549 indent, "", (uintmax_t) offset, op_name, uleb, sleb); in print_ops()
4612 get_sleb128 (sleb, data, data + len); in print_ops()
4616 op_name, (uintmax_t) addr, sleb); in print_ops()