/u-boot/fs/ubifs/ |
A D | master.c | 121 if (c->zroot.lnum >= c->leb_cnt || c->zroot.lnum < c->main_first || in validate_master() 133 if (c->gc_lnum >= c->leb_cnt || c->gc_lnum < c->main_first) { in validate_master() 138 if (c->ihead_lnum >= c->leb_cnt || c->ihead_lnum < c->main_first || in validate_master() 151 if (c->lpt_lnum < c->lpt_first || c->lpt_lnum > c->lpt_last || in validate_master() 152 c->lpt_offs < 0 || c->lpt_offs + c->nnode_sz > c->leb_size) { in validate_master() 157 if (c->nhead_lnum < c->lpt_first || c->nhead_lnum > c->lpt_last || in validate_master() 164 if (c->ltab_lnum < c->lpt_first || c->ltab_lnum > c->lpt_last || in validate_master() 166 c->ltab_offs + c->ltab_sz > c->leb_size) { in validate_master() 171 if (c->big_lpt && (c->lsave_lnum < c->lpt_first || in validate_master() 173 c->lsave_offs + c->lsave_sz > c->leb_size)) { in validate_master() [all …]
|
A D | sb.c | 145 c->max_leb_cnt = c->leb_cnt; in create_default_filesystem() 434 ubifs_idx_node_sz(c, c->fanout) > c->leb_size) { in validate_sb() 441 c->log_lebs - c->lpt_lebs - c->orph_lebs)) { in validate_sb() 447 c->orph_lebs + c->main_lebs != c->leb_cnt) { in validate_sb() 636 if (c->leb_cnt < c->vi.size && c->leb_cnt < c->max_leb_cnt) { in ubifs_read_superblock() 637 c->leb_cnt = min_t(int, c->max_leb_cnt, c->vi.size); in ubifs_read_superblock() 654 c->log_bytes = (long long)c->log_lebs * c->leb_size; in ubifs_read_superblock() 657 c->lpt_last = c->lpt_first + c->lpt_lebs - 1; in ubifs_read_superblock() 659 c->orph_last = c->orph_first + c->orph_lebs - 1; in ubifs_read_superblock() 661 c->main_lebs -= c->log_lebs + c->lpt_lebs + c->orph_lebs; in ubifs_read_superblock() [all …]
|
A D | lpt_commit.c | 213 dbg_chk_lpt_sz(c, 1, c->lsave_sz); in layout_cnodes() 221 dbg_chk_lpt_sz(c, 1, c->ltab_sz); in layout_cnodes() 309 dbg_chk_lpt_sz(c, 1, c->ltab_sz); in layout_cnodes() 735 else if (c->ltab[i].free + c->ltab[i].dirty == c->leb_size) in need_write_all() 760 c->ltab[i].free + c->ltab[i].dirty == c->leb_size) { in lpt_tgc_start() 814 ubifs_add_lpt_dirt(c, c->lsave_lnum, c->lsave_sz); in populate_lsave() 991 ubifs_add_lpt_dirt(c, c->ltab_lnum, c->ltab_sz); in make_ltab_dirty() 1016 ubifs_add_lpt_dirt(c, c->lsave_lnum, c->lsave_sz); in make_lsave_dirty() 1204 c->ltab[i].free + c->ltab[i].dirty == c->leb_size) in lpt_gc() 1285 memcpy(c->ltab_cmt, c->ltab, in ubifs_lpt_start_commit() [all …]
|
A D | super.c | 699 c->leb_cnt = c->vi.size; in init_constants_early() 842 c->main_bytes = (long long)c->main_lebs * c->leb_size; in init_constants_sb() 915 c->idx_leb_size = c->leb_size - c->max_idx_node_sz; in init_constants_sb() 932 c->report_rp_size = ubifs_reported_space(c, c->rp_size); in init_constants_master() 970 err = ubifs_change_one_lp(c, c->gc_lnum, c->leb_size, 0, in take_gc_lnum() 1368 if (c->empty && (c->ro_mount || c->ro_media)) { in mount_ubifs() 1619 c->vi.ubi_num, c->vi.vol_id, c->vi.name, in mount_ubifs() 1626 c->leb_size, c->leb_size >> 10, c->min_io_size, in mount_ubifs() 1644 c->lpt_lebs, c->lpt_first, c->lpt_last); in mount_ubifs() 1646 c->orph_lebs, c->orph_first, c->orph_last); in mount_ubifs() [all …]
|
A D | budget.c | 103 liab = c->bi.idx_growth + c->bi.data_growth + c->bi.dd_growth; in get_liability() 178 idx_size = c->bi.old_idx_sz + c->bi.idx_growth + c->bi.uncommitted_idx; in ubifs_calc_min_idx_lebs() 338 lebs = c->lst.empty_lebs + c->freeable_cnt + c->idx_gc_cnt - in do_budget_space() 461 if (unlikely(c->bi.nospace) && (c->bi.nospace_rp || !can_use_rp(c))) { in ubifs_budget_space() 504 if (can_use_rp(c) || c->rp_size == 0) in ubifs_budget_space() 550 c->bi.nospace = c->bi.nospace_rp = 0; in ubifs_release_budget() 585 c->bi.data_growth -= c->bi.page_budget; in ubifs_convert_page_budget() 587 c->bi.dd_growth += c->bi.page_budget; in ubifs_convert_page_budget() 651 f = c->fanout > 3 ? c->fanout >> 1 : 2; in ubifs_reported_space() 696 if (c->bi.min_idx_lebs > c->lst.idx_lebs) in ubifs_get_free_space_nolock() [all …]
|
A D | log.c | 99 h = (long long)c->lhead_lnum * c->leb_size + c->lhead_offs; in empty_log_bytes() 192 if (empty_log_bytes(c) - c->ref_node_alsz < c->min_log_bytes) { in ubifs_add_bud_to_log() 209 if (c->bud_bytes + c->leb_size - offs > c->max_bud_bytes) { in ubifs_add_bud_to_log() 211 c->bud_bytes, c->max_bud_bytes); in ubifs_add_bud_to_log() 225 c->bud_bytes, c->max_bud_bytes); in ubifs_add_bud_to_log() 238 if (c->lhead_offs > c->leb_size - c->ref_node_alsz) { in ubifs_add_bud_to_log() 239 c->lhead_lnum = ubifs_next_log_lnum(c, c->lhead_lnum); in ubifs_add_bud_to_log() 265 c->lhead_lnum, c->lhead_offs); in ubifs_add_bud_to_log() 404 c->lhead_lnum = ubifs_next_log_lnum(c, c->lhead_lnum); in ubifs_log_start_commit() 424 c->lhead_lnum = ubifs_next_log_lnum(c, c->lhead_lnum); in ubifs_log_start_commit() [all …]
|
A D | orphan.c | 68 if (c->tot_orphans >= c->max_orphans) { in ubifs_add_orphan() 174 c->cmt_orphans = c->new_orphans; in ubifs_orphan_start_commit() 197 avail_lebs = c->orph_lebs - (c->ohead_lnum - c->orph_first) - 1; in avail_orphs() 200 gap = c->leb_size - c->ohead_offs; in avail_orphs() 241 err = ubifs_leb_change(c, c->ohead_lnum, c->orph_buf, len); in do_write_orph_node() 249 err = ubifs_write_node(c, c->orph_buf, len, c->ohead_lnum, in do_write_orph_node() 271 gap = c->leb_size - c->ohead_offs; in write_orph_node() 384 c->ohead_lnum = c->orph_first; in consolidate() 489 c->ohead_lnum = c->orph_first; in ubifs_clear_orphans() 535 c->new_orphans, c->tot_orphans); in insert_dead_orphan() [all …]
|
A D | lpt.c | 60 n = c->main_lebs + c->max_leb_cnt - c->leb_cnt; in do_calc_lpt_geom() 108 c->lpt_sz = (long long)c->pnode_cnt * c->pnode_sz; in do_calc_lpt_geom() 109 c->lpt_sz += (long long)c->nnode_cnt * c->nnode_sz; in do_calc_lpt_geom() 110 c->lpt_sz += c->ltab_sz; in do_calc_lpt_geom() 112 c->lpt_sz += c->lsave_sz; in do_calc_lpt_geom() 150 if (c->ltab_sz > c->leb_size) { in ubifs_calc_lpt_geom() 155 c->check_lpt_free = c->big_lpt; in ubifs_calc_lpt_geom() 193 if (c->lpt_sz > c->leb_size) { in calc_dflt_lpt_geom() 499 ubifs_add_lpt_dirt(c, c->lpt_lnum, c->nnode_sz); in ubifs_add_nnode_dirt() 502 ubifs_add_lpt_dirt(c, c->ltab_lnum, c->ltab_sz); in ubifs_add_nnode_dirt() [all …]
|
A D | lprops.c | 300 ubifs_assert(c->in_a_category_cnt <= c->main_lebs); in ubifs_add_to_cat() 543 c->lst.empty_lebs <= c->main_lebs); in ubifs_change_lp() 545 ubifs_assert(c->freeable_cnt <= c->main_lebs); in ubifs_change_lp() 576 c->lst.total_used -= c->leb_size - old_spc; in ubifs_change_lp() 617 c->lst.total_used += c->leb_size - new_spc; in ubifs_change_lp() 864 if (!dbg_is_chk_gen(c) && !dbg_is_chk_lprops(c)) in dbg_check_cats() 1114 ubifs_dump_budg(c, &c->bi); in scan_check_cb() 1278 err = ubifs_lpt_scan_nolock(c, c->main_first, c->leb_cnt - 1, in dbg_check_lprops() 1294 c->lst.empty_lebs, c->lst.idx_lebs, c->lst.total_free, in dbg_check_lprops() 1295 c->lst.total_dirty, c->lst.total_used); in dbg_check_lprops() [all …]
|
A D | replay.c | 360 if (key_inum(c, key) >= c->highest_inum) in insert_node() 361 c->highest_inum = key_inum(c, key); in insert_node() 407 if (key_inum(c, key) >= c->highest_inum) in insert_dent() 408 c->highest_inum = key_inum(c, key); in insert_dent() 555 sleb = ubifs_scan(c, lnum, offs, c->sbuf, 0); in replay_bud() 1014 if (c->ihead_offs != c->leb_size - free) { in ubifs_replay_journal() 1022 lnum = c->ltail_lnum = c->lhead_lnum; in ubifs_replay_journal() 1025 err = replay_log_leb(c, lnum, 0, c->sbuf); in ubifs_replay_journal() 1066 c->bi.uncommitted_idx *= c->max_idx_node_sz; in ubifs_replay_journal() 1068 ubifs_assert(c->bud_bytes <= c->max_bud_bytes || c->need_recovery); in ubifs_replay_journal() [all …]
|
A D | debug.h | 15 typedef int (*dbg_leaf_callback)(struct ubifs_info *c, 17 typedef int (*dbg_znode_callback)(struct ubifs_info *c, 252 return !!(ubifs_dbg.chk_fs || c->dbg->chk_fs); in dbg_is_chk_fs() 260 return !!c->dbg->pc_happened; in dbg_is_power_cut() 315 void ubifs_dump_lprops(struct ubifs_info *c); 326 void ubifs_dump_tnc(struct ubifs_info *c); 327 void ubifs_dump_index(struct ubifs_info *c); 336 int dbg_check_lprops(struct ubifs_info *c); 339 int dbg_check_cats(struct ubifs_info *c); 340 int dbg_check_ltab(struct ubifs_info *c); [all …]
|
A D | io.c | 119 ubifs_assert(!c->ro_media && !c->ro_mount); in ubifs_leb_write() 141 ubifs_assert(!c->ro_media && !c->ro_mount); in ubifs_leb_change() 163 ubifs_assert(!c->ro_media && !c->ro_mount); in ubifs_leb_unmap() 184 ubifs_assert(!c->ro_media && !c->ro_mount); in ubifs_leb_map() 280 !c->remounting_rw && c->no_chk_data_crc) in ubifs_check_node() 504 struct ubifs_info *c = wbuf->c; in ubifs_wbuf_sync_nolock() local 579 const struct ubifs_info *c = wbuf->c; in ubifs_wbuf_seek_nolock() local 687 struct ubifs_info *c = wbuf->c; in ubifs_wbuf_write_nolock() local 911 const struct ubifs_info *c = wbuf->c; in ubifs_read_node_wbuf() local 1063 size = c->max_write_size - (c->leb_start % c->max_write_size); in ubifs_wbuf_init() [all …]
|
A D | gc.c | 103 c->gc_lnum = -1; in switch_gc_head() 487 err = ubifs_change_one_lp(c, lp->lnum, c->leb_size, in ubifs_garbage_collect_leb() 508 sleb = ubifs_scan(c, lnum, 0, c->sbuf, 0); in ubifs_garbage_collect_leb() 525 key_read(c, ubifs_idx_key(c, idx), &snod->key); in ubifs_garbage_collect_leb() 548 err = ubifs_change_one_lp(c, lnum, c->leb_size, 0, 0, in ubifs_garbage_collect_leb() 565 err = ubifs_change_one_lp(c, lnum, c->leb_size, 0, 0, 0, 0); in ubifs_garbage_collect_leb() 599 c->gc_seq += 1; in ubifs_garbage_collect_leb() 647 ubifs_assert(!c->ro_media && !c->ro_mount); in ubifs_garbage_collect() 801 err = ubifs_leb_unmap(c, c->gc_lnum); in ubifs_garbage_collect() 856 lp = ubifs_change_lp(c, lp, c->leb_size, 0, lp->flags, 0); in ubifs_gc_start_commit() [all …]
|
A D | recovery.c | 346 err = write_rcvrd_mst_node(c, c->mst_node); in ubifs_recover_master_node() 391 err = write_rcvrd_mst_node(c, c->rcvrd_mst_node); in ubifs_write_rcvrd_mst_node() 514 if (c->ro_mount && !c->remounting_rw) { in fix_unclean_leb() 969 ubifs_assert(!c->ro_mount || c->remounting_rw); in ubifs_recover_inl_heads() 972 err = recover_head(c, c->ihead_lnum, c->ihead_offs, sbuf); in ubifs_recover_inl_heads() 978 return recover_head(c, c->nhead_lnum, c->nhead_offs, sbuf); in ubifs_recover_inl_heads() 1136 ubifs_dump_budg(c, &c->bi); in grab_empty_leb() 1224 err = ubifs_leb_unmap(c, c->gc_lnum); in ubifs_rcvry_gc_commit() 1444 err = ubifs_leb_read(c, lnum, c->sbuf, 0, c->leb_size, 1); in fix_size_in_place() 1460 err = ubifs_leb_change(c, lnum, c->sbuf, len); in fix_size_in_place() [all …]
|
A D | tnc.c | 127 return insert_old_idx(c, c->zroot.lnum, in insert_old_idx_znode() 158 err = insert_old_idx(c, c->zroot.lnum, c->zroot.offs); in ins_clr_old_idx_znode() 1124 znode = dirty_cow_znode(c, &c->zroot); in dirty_cow_bottom_up() 1170 znode = ubifs_load_znode(c, &c->zroot, NULL, 0); in ubifs_lookup_level0() 1310 znode = dirty_cow_znode(c, &c->zroot); in lookup_level0_dirty() 1642 const struct ubifs_info *c = wbuf->c; in read_wbuf() local 2010 if (key_inum(c, key1) == key_inum(c, key) && in tnc_insert() 2021 if (key_inum(c, key1) == key_inum(c, key) && in tnc_insert() 2024 if (key_inum(c, key1) != key_inum(c, key) || in tnc_insert() 2458 err = insert_old_idx(c, c->zroot.lnum, in tnc_delete() [all …]
|
A D | debug.c | 602 c->dark_wm, c->dead_wm, c->max_idx_node_sz); in ubifs_dump_budg() 613 c->freeable_cnt, c->calc_idx_sz, c->idx_gc_cnt); in ubifs_dump_budg() 639 outstanding = c->bi.data_growth + c->bi.dd_growth; in ubifs_dump_budg() 793 c->nhead_lnum, c->nhead_offs); in ubifs_dump_lpt_info() 797 c->lsave_lnum, c->lsave_offs); in ubifs_dump_lpt_info() 800 i + c->lpt_first, c->ltab[i].free, c->ltab[i].dirty, in ubifs_dump_lpt_info() 801 c->ltab[i].tgc, c->ltab[i].cmt); in ubifs_dump_lpt_info() 1062 ubifs_dump_budg(c, &c->bi); in dbg_check_space_info() 1618 c->zroot.znode = ubifs_load_znode(c, &c->zroot, NULL, 0); in dbg_walk_index() 2806 ubifs_dump_budg(c, &c->bi); in dfs_file_write() [all …]
|
A D | ubifs.h | 621 #define ubifs_msg(c, fmt, ...) argument 625 (c)->vi.ubi_num, (c)->vi.vol_id, ##__VA_ARGS__) 631 (c)->vi.ubi_num, (c)->vi.vol_id, current->pid, \ 636 (c)->vi.ubi_num, (c)->vi.vol_id, current->pid, \ 641 (c)->vi.ubi_num, (c)->vi.vol_id, 0, \ 646 (c)->vi.ubi_num, (c)->vi.vol_id, 0, \ 1282 struct ubifs_info *c; member 2106 int ubifs_io_init(struct ubifs_info *c); 2207 void ubifs_tnc_close(struct ubifs_info *c); 2213 void destroy_old_idx(struct ubifs_info *c); [all …]
|
/u-boot/include/linux/ |
A D | ctype.h | 22 #define isalnum(c) ((__ismask(c)&(_U|_L|_D)) != 0) argument 23 #define isalpha(c) ((__ismask(c)&(_U|_L)) != 0) argument 24 #define iscntrl(c) ((__ismask(c)&(_C)) != 0) argument 25 #define isdigit(c) ((__ismask(c)&(_D)) != 0) argument 27 #define islower(c) ((__ismask(c)&(_L)) != 0) argument 29 #define ispunct(c) ((__ismask(c)&(_P)) != 0) argument 30 #define isspace(c) ((__ismask(c)&(_S)) != 0) argument 31 #define isupper(c) ((__ismask(c)&(_U)) != 0) argument 38 #define isblank(c) (c == ' ' || c == '\t') argument 57 #define tolower(c) __tolower(c) argument [all …]
|
A D | utf.h | 9 u8 c; in utf8_to_utf16le() local 18 if ((c & 0x80)) { in utf8_to_utf16le() 26 c = (u8) *s++; in utf8_to_utf16le() 29 c &= 0x3f; in utf8_to_utf16le() 30 uchar |= c; in utf8_to_utf16le() 39 c = (u8) *s++; in utf8_to_utf16le() 42 c &= 0x3f; in utf8_to_utf16le() 45 c = (u8) *s++; in utf8_to_utf16le() 48 c &= 0x3f; in utf8_to_utf16le() 49 uchar |= c; in utf8_to_utf16le() [all …]
|
/u-boot/include/ |
A D | ctype.h | 22 #define isalnum(c) ((__ismask(c)&(_U|_L|_D)) != 0) argument 23 #define isalpha(c) ((__ismask(c)&(_U|_L)) != 0) argument 24 #define iscntrl(c) ((__ismask(c)&(_C)) != 0) argument 25 #define isdigit(c) ((__ismask(c)&(_D)) != 0) argument 27 #define islower(c) ((__ismask(c)&(_L)) != 0) argument 29 #define ispunct(c) ((__ismask(c)&(_P)) != 0) argument 30 #define isspace(c) ((__ismask(c)&(_S)) != 0) argument 31 #define isupper(c) ((__ismask(c)&(_U)) != 0) argument 38 #define isblank(c) (c == ' ' || c == '\t') argument 57 #define tolower(c) __tolower(c) argument [all …]
|
/u-boot/arch/arm/cpu/armv7/bcm235xx/ |
A D | clk-core.c | 98 __func__, c->name, c->rate, c->div, c->sel, in peri_clk_enable() 201 c->name, c->rate, c->div, c->sel, c->parent->rate); in peri_clk_set_rate() 243 c->rate = c->parent->rate / c->div; in peri_clk_get_rate() 245 c->parent->rate, div, c->sel, c->rate); in peri_clk_get_rate() 443 if (!c->ops || !c->ops->enable) in clk_enable() 454 ret = c->ops->enable(c, 1); in clk_enable() 464 if (!c->ops || !c->ops->enable) in clk_disable() 470 c->ops->enable(c, 0); in clk_disable() 483 if (!c || !c->ops || !c->ops->get_rate) in clk_get_rate() 487 rate = c->ops->get_rate(c); in clk_get_rate() [all …]
|
/u-boot/arch/arm/cpu/armv7/bcm281xx/ |
A D | clk-core.c | 98 __func__, c->name, c->rate, c->div, c->sel, in peri_clk_enable() 201 c->name, c->rate, c->div, c->sel, c->parent->rate); in peri_clk_set_rate() 243 c->rate = c->parent->rate / c->div; in peri_clk_get_rate() 245 c->parent->rate, div, c->sel, c->rate); in peri_clk_get_rate() 443 if (!c->ops || !c->ops->enable) in clk_enable() 455 ret = c->ops->enable(c, 1); in clk_enable() 465 if (!c->ops || !c->ops->enable) in clk_disable() 470 c->ops->enable(c, 0); in clk_disable() 483 if (!c || !c->ops || !c->ops->get_rate) in clk_get_rate() 487 rate = c->ops->get_rate(c); in clk_get_rate() [all …]
|
/u-boot/lib/efi_selftest/ |
A D | efi_selftest_console.c | 25 u16 c; in mac() local 57 u16 c; in printx() local 85 u16 c; in uint2dec() local 158 for (; *c; ++c) { in efi_st_printc() 161 ++c; in efi_st_printc() 164 --c; in efi_st_printc() 180 ++c; in efi_st_printc() 183 ++c; in efi_st_printc() 185 ++c; in efi_st_printc() 191 --c; in efi_st_printc() [all …]
|
/u-boot/scripts/dtc/ |
A D | Makefile.dtc | 7 checks.c \ 8 data.c \ 9 dtc.c \ 10 flattree.c \ 11 fstree.c \ 12 livetree.c \ 13 srcpos.c \ 14 treesource.c \ 15 util.c 17 DTC_GEN_SRCS = dtc-lexer.lex.c dtc-parser.tab.c [all …]
|
/u-boot/lib/ |
A D | md5.c | 185 register __u32 a, b, c, d; in MD5Transform() local 189 c = buf[2]; in MD5Transform() 192 MD5STEP(F1, a, b, c, d, in[0] + 0xd76aa478, 7); in MD5Transform() 196 MD5STEP(F1, a, b, c, d, in[4] + 0xf57c0faf, 7); in MD5Transform() 200 MD5STEP(F1, a, b, c, d, in[8] + 0x698098d8, 7); in MD5Transform() 209 MD5STEP(F2, a, b, c, d, in[1] + 0xf61e2562, 5); in MD5Transform() 210 MD5STEP(F2, d, a, b, c, in[6] + 0xc040b340, 9); in MD5Transform() 213 MD5STEP(F2, a, b, c, d, in[5] + 0xd62f105d, 5); in MD5Transform() 217 MD5STEP(F2, a, b, c, d, in[9] + 0x21e1cde6, 5); in MD5Transform() 222 MD5STEP(F2, d, a, b, c, in[2] + 0xfcefa3f8, 9); in MD5Transform() [all …]
|