Home
last modified time | relevance | path

Searched refs:leb_size (Results 1 – 25 of 34) sorted by relevance

12

/u-boot/fs/ubifs/
A Dlprops.c409 if (lprops->free == c->leb_size) { in ubifs_categorize_lprops()
584 if (free == c->leb_size) { in ubifs_change_lp()
585 if (lprops->free != c->leb_size) in ubifs_change_lp()
1095 if (lp->free == c->leb_size) { in scan_check_cb()
1097 lst->total_free += c->leb_size; in scan_check_cb()
1150 free = c->leb_size - sleb->endpt; in scan_check_cb()
1153 if (free > c->leb_size || free < 0 || dirty > c->leb_size || in scan_check_cb()
1161 free + dirty == c->leb_size) in scan_check_cb()
1164 lp->free == c->leb_size) { in scan_check_cb()
1198 if (free == c->leb_size) in scan_check_cb()
[all …]
A Dlpt_commit.c232 while (offs + len > c->leb_size) { in layout_cnodes()
412 while (offs + len > c->leb_size) { in write_cnodes()
734 free += c->leb_size; in need_write_all()
736 free += c->leb_size; in need_write_all()
762 c->ltab[i].free = c->leb_size; in lpt_tgc_start()
1085 offs = c->leb_size - len; in get_pad_len()
1176 offs = c->leb_size - len; in lpt_gc_lnum()
1670 lnum, c->leb_size - len); in dbg_check_ltab_lnum()
1763 free += c->leb_size; in dbg_chk_lpt_free_spc()
1825 chk_lpt_sz = c->leb_size; in dbg_chk_lpt_sz()
[all …]
A Dsb.c102 if (jnl_lebs * c->leb_size > DEFAULT_MAX_JNL) in create_default_filesystem()
103 jnl_lebs = DEFAULT_MAX_JNL / c->leb_size; in create_default_filesystem()
112 log_lebs = tmp / c->leb_size; in create_default_filesystem()
162 tmp64 = (long long)max_buds * c->leb_size; in create_default_filesystem()
170 sup->leb_size = cpu_to_le32(c->leb_size); in create_default_filesystem()
189 main_bytes = (long long)main_lebs * c->leb_size; in create_default_filesystem()
373 if (le32_to_cpu(sup->leb_size) != c->leb_size) { in validate_sb()
375 le32_to_cpu(sup->leb_size), c->leb_size); in validate_sb()
420 max_bytes = (long long)c->leb_size * c->main_lebs; in validate_sb()
687 ubifs_assert(len < c->leb_size); in fixup_leb()
[all …]
A Dlpt.c119 while (sz > c->leb_size) { in do_calc_lpt_geom()
121 sz -= c->leb_size; in do_calc_lpt_geom()
143 lebs_needed = div_u64(sz + c->leb_size - 1, c->leb_size); in ubifs_calc_lpt_geom()
150 if (c->ltab_sz > c->leb_size) { in ubifs_calc_lpt_geom()
193 if (c->lpt_sz > c->leb_size) { in calc_dflt_lpt_geom()
202 lebs_needed = div_u64(sz + c->leb_size - 1, c->leb_size); in calc_dflt_lpt_geom()
212 if (c->ltab_sz > c->leb_size) { in calc_dflt_lpt_geom()
631 buf = vmalloc(c->leb_size); in ubifs_create_dflt_lpt()
643 ltab[i].free = c->leb_size; in ubifs_create_dflt_lpt()
1044 dirty > c->leb_size || free + dirty > c->leb_size) in unpack_ltab()
[all …]
A Dio.c250 ubifs_assert(!(offs & 7) && offs < c->leb_size); in ubifs_check_node()
269 if (node_len + offs > c->leb_size) in ubifs_check_node()
550 if (c->leb_size - wbuf->offs < c->max_write_size) in ubifs_wbuf_sync_nolock()
551 wbuf->size = c->leb_size - wbuf->offs; in ubifs_wbuf_sync_nolock()
563 c->leb_size - wbuf->offs, dirt); in ubifs_wbuf_sync_nolock()
583 ubifs_assert(offs >= 0 && offs <= c->leb_size); in ubifs_wbuf_seek_nolock()
592 wbuf->size = c->leb_size - wbuf->offs; in ubifs_wbuf_seek_nolock()
736 wbuf->size = c->leb_size - wbuf->offs; in ubifs_wbuf_write_nolock()
825 wbuf->size = c->leb_size - wbuf->offs; in ubifs_wbuf_write_nolock()
918 ubifs_assert(!(offs & 7) && offs < c->leb_size); in ubifs_read_node_wbuf()
[all …]
A Dlog.c99 h = (long long)c->lhead_lnum * c->leb_size + c->lhead_offs; in empty_log_bytes()
100 t = (long long)c->ltail_lnum * c->leb_size; in empty_log_bytes()
149 c->bud_bytes += c->leb_size - bud->start; in ubifs_add_bud()
238 if (c->lhead_offs > c->leb_size - c->ref_node_alsz) { in ubifs_add_bud_to_log()
321 c->cmt_bud_bytes += c->leb_size - bud->start; in remove_buds()
324 c->leb_size - bud->start, c->cmt_bud_bytes); in remove_buds()
385 if (lnum == -1 || offs == c->leb_size) in ubifs_log_start_commit()
423 if (c->lhead_offs == c->leb_size) { in ubifs_log_start_commit()
470 c->min_log_bytes = c->leb_size; in ubifs_log_end_commit()
636 buf = vmalloc(c->leb_size); in ubifs_consolidate_log()
[all …]
A Dmaster.c115 c->lhead_offs < 0 || c->lhead_offs >= c->leb_size || in validate_master()
122 c->zroot.offs >= c->leb_size || c->zroot.offs & 7) { in validate_master()
140 c->ihead_offs > c->leb_size || c->ihead_offs & 7) { in validate_master()
145 main_sz = (long long)c->main_lebs * c->leb_size; in validate_master()
152 c->lpt_offs < 0 || c->lpt_offs + c->nnode_sz > c->leb_size) { in validate_master()
159 c->nhead_offs > c->leb_size) { in validate_master()
166 c->ltab_offs + c->ltab_sz > c->leb_size) { in validate_master()
173 c->lsave_offs + c->lsave_sz > c->leb_size)) { in validate_master()
322 c->lst.total_free += growth * (long long)c->leb_size; in ubifs_read_master()
369 if (offs + UBIFS_MST_NODE_SZ > c->leb_size) { in ubifs_write_master()
A Dgc.c81 c->leb_size - wbuf->offs - wbuf->used); in switch_gc_head()
368 avail = c->leb_size - wbuf->offs - wbuf->used; in move_nodes()
383 avail = c->leb_size - wbuf->offs - wbuf->used; in move_nodes()
473 if (lp->free + lp->dirty == c->leb_size) { in ubifs_garbage_collect_leb()
478 if (lp->free != c->leb_size) { in ubifs_garbage_collect_leb()
487 err = ubifs_change_one_lp(c, lp->lnum, c->leb_size, in ubifs_garbage_collect_leb()
548 err = ubifs_change_one_lp(c, lnum, c->leb_size, 0, 0, in ubifs_garbage_collect_leb()
712 space_before = c->leb_size - wbuf->offs - wbuf->used; in ubifs_garbage_collect()
752 space_after = c->leb_size - wbuf->offs - wbuf->used; 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 Dscan.c95 offs + node_len + pad_len > c->leb_size) { in ubifs_scan_a_node()
147 err = ubifs_leb_read(c, lnum, sbuf + offs, offs, c->leb_size - offs, 0); in ubifs_start_scan()
150 c->leb_size - offs, lnum, offs, err); in ubifs_start_scan()
238 len = c->leb_size - offs; in ubifs_scanned_corruption()
265 int err, len = c->leb_size - offs; in ubifs_scan()
A Drecovery.c111 sbuf = vmalloc(c->leb_size); in get_master_node()
122 len = c->leb_size; in get_master_node()
167 if (offs < c->leb_size) { in get_master_node()
177 if (offs < c->leb_size) in get_master_node()
273 c->leb_size - offs2 - sz < sz) { in ubifs_recover_master_node()
298 if (offs2 + sz + sz <= c->leb_size) in ubifs_recover_master_node()
420 check_len = c->leb_size - empty_offs; in is_last_write()
777 len = c->leb_size - offs; in ubifs_recover_leb()
927 if (offs + len > c->leb_size) in recover_head()
928 len = c->leb_size - offs; in recover_head()
[all …]
A Dsuper.c700 c->leb_size = c->vi.usable_leb_size; in init_constants_early()
702 c->half_leb_size = c->leb_size / 2; in init_constants_early()
710 c->leb_size, UBIFS_MIN_LEB_SZ); in init_constants_early()
803 if (c->max_bu_buf_len > c->leb_size) in init_constants_early()
804 c->max_bu_buf_len = c->leb_size; in init_constants_early()
857 if (tmp > c->leb_size) { in init_constants_sb()
859 c->leb_size, tmp); in init_constants_sb()
870 tmp /= c->leb_size; in init_constants_sb()
1395 c->sbuf = vmalloc(c->leb_size); in mount_ubifs()
1626 c->leb_size, c->leb_size >> 10, c->min_io_size, in mount_ubifs()
[all …]
A Dorphan.c199 ((c->leb_size - UBIFS_ORPH_NODE_SZ) / sizeof(__le64)); in avail_orphs()
200 gap = c->leb_size - c->ohead_offs; in avail_orphs()
219 ((c->leb_size - UBIFS_ORPH_NODE_SZ) / sizeof(__le64)); in tot_avail_orphs()
271 gap = c->leb_size - c->ohead_offs; in write_orph_node()
275 gap = c->leb_size; in write_orph_node()
310 ubifs_assert(c->ohead_offs + len <= c->leb_size); in write_orph_node()
707 c->orph_buf = vmalloc(c->leb_size); in ubifs_mount_orphans()
879 buf = __vmalloc(c->leb_size, GFP_NOFS, PAGE_KERNEL); in dbg_scan_orphans()
A Dreplay.c106 if (b->bud->start == 0 && (lp->free != c->leb_size || lp->dirty != 0)) { in set_bud_lprops()
130 dirty -= c->leb_size - lp->free; in set_bud_lprops()
152 b->bud->lnum, c->leb_size - b->free); in set_bud_lprops()
674 b->free = c->leb_size - sleb->endpt; in replay_bud()
794 lnum < c->main_first || offs > c->leb_size || in validate_ref()
942 if (sleb->endpt || c->lhead_offs >= c->leb_size) { in replay_log_leb()
1014 if (c->ihead_offs != c->leb_size - free) { in ubifs_replay_journal()
A Dubifs-media.h621 __le32 leb_size; member
/u-boot/drivers/mtd/ubi/
A Dwl.h16 *count += (ubi->fm_size / ubi->leb_size) * 2; in ubi_fastmap_init()
A Dvtbl.c209 if (alignment > ubi->leb_size || alignment == 0) {
220 n = ubi->leb_size % alignment;
556 vol->usable_leb_size = ubi->leb_size - vol->data_pad;
636 vol->usable_leb_size = ubi->leb_size;
640 (long long)vol->used_ebs * (ubi->leb_size - vol->data_pad);
791 ubi->vtbl_slots = ubi->leb_size / UBI_VTBL_RECORD_SIZE;
A Dvmt.c210 vol->usable_leb_size = ubi->leb_size - ubi->leb_size % req->alignment; in ubi_create_volume()
230 vol->data_pad = ubi->leb_size % vol->alignment; in ubi_create_volume()
681 if (vol->alignment > ubi->leb_size || vol->alignment == 0) { in self_check_volume()
692 n = ubi->leb_size % vol->alignment; in self_check_volume()
714 n = ubi->leb_size - vol->data_pad; in self_check_volume()
715 if (vol->usable_leb_size != ubi->leb_size - vol->data_pad) { in self_check_volume()
A Dattach.c768 memset(ubi->peb_buf, 0x00, ubi->leb_size); in check_corruption()
771 ubi->leb_size); in check_corruption()
787 if (ubi_check_pattern(ubi->peb_buf, 0xFF, ubi->leb_size)) in check_corruption()
795 pnum, ubi->leb_start, ubi->leb_size); in check_corruption()
797 ubi->peb_buf, ubi->leb_size, 1); in check_corruption()
1554 if (av->data_pad > ubi->leb_size / 2) { in self_check_ai()
A Dfastmap.c105 return roundup(size, ubi->leb_size); in ubi_calc_fm_size()
938 fm_size = ubi->leb_size * used_blocks; in ubi_scan_fastmap()
1021 ret = ubi_io_read(ubi, ubi->fm_buf + (ubi->leb_size * i), pnum, in ubi_scan_fastmap()
1022 ubi->leb_start, ubi->leb_size); in ubi_scan_fastmap()
1335 ret = ubi_io_write(ubi, fm_raw + (i * ubi->leb_size), in ubi_write_fastmap()
1336 new_fm->e[i]->pnum, ubi->leb_start, ubi->leb_size); in ubi_write_fastmap()
1525 new_fm->used_blocks = ubi->fm_size / ubi->leb_size; in ubi_update_fastmap()
A Dkapi.c35 di->leb_size = ubi->leb_size; in ubi_do_get_device_info()
A Dbuild.c388 ret = sprintf(buf, "%d\n", ubi->leb_size); in dev_attribute_show()
783 ubi->leb_size = ubi->peb_size - ubi->leb_start; in io_init()
1033 ubi->peb_size, ubi->peb_size >> 10, ubi->leb_size); in ubi_attach_mtd_dev()
/u-boot/drivers/mtd/ubispl/
A Dubispl.h93 unsigned long leb_size; member
A Dubispl.c37 return roundup(size, ubi->leb_size); in ubi_calc_fm_size()
138 if (alignment > ubi->leb_size || alignment == 0) { in vtbl_check()
149 n = ubi->leb_size % alignment; in vtbl_check()
727 fm_size = ubi->leb_size * used_blocks; in ubi_scan_fastmap()
808 ret = ubi_io_read(ubi, ubi->fm_buf + (ubi->leb_size * i), pnum, in ubi_scan_fastmap()
809 ubi->leb_start, ubi->leb_size); in ubi_scan_fastmap()
1085 ubi->leb_size = info->peb_size - ubi->leb_start; in ubispl_load_volumes()
/u-boot/include/linux/mtd/
A Dubi.h182 int leb_size; member
/u-boot/cmd/
A Dubi.c59 ubi_msg("logical eraseblock size: %d bytes", ubi->leb_size); in display_ubi_info()
198 if (req->alignment > ubi->leb_size) in verify_mkvol_req()
403 rsvd_bytes = vol->reserved_pebs * (ubi->leb_size - vol->data_pad); in ubi_volume_begin_write()
714 size = (int64_t)ubi->avail_pebs * ubi->leb_size; in do_ubi()

Completed in 77 milliseconds

12