Home
last modified time | relevance | path

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

/u-boot/fs/ubifs/
A Dsb.c157 tmp = ALIGN(UBIFS_SB_NODE_SZ, c->min_io_size); in create_default_filesystem()
169 sup->min_io_size = cpu_to_le32(c->min_io_size); in create_default_filesystem()
236 tmp64 -= ALIGN(UBIFS_INO_NODE_SZ, c->min_io_size); in create_default_filesystem()
240 ino_waste = ALIGN(UBIFS_INO_NODE_SZ, c->min_io_size) - in create_default_filesystem()
290 tmp = ALIGN(UBIFS_INO_NODE_SZ, c->min_io_size); in create_default_filesystem()
326 tmp = ALIGN(UBIFS_CS_NODE_SZ, c->min_io_size); in create_default_filesystem()
367 if (le32_to_cpu(sup->min_io_size) != c->min_io_size) { in validate_sb()
369 le32_to_cpu(sup->min_io_size), c->min_io_size); in validate_sb()
512 int len = ALIGN(UBIFS_SB_NODE_SZ, c->min_io_size); in ubifs_write_sb_node()
686 ubifs_assert(len % c->min_io_size == 0); in fixup_leb()
[all …]
A Dscan.c174 ubifs_assert(offs % c->min_io_size == 0); in ubifs_end_scan()
176 sleb->endpt = ALIGN(offs, c->min_io_size); in ubifs_end_scan()
320 if (offs % c->min_io_size) { in ubifs_scan()
A Dlog.c364 max_len = ALIGN(max_len, c->min_io_size); in ubifs_log_start_commit()
400 ubifs_pad(c, buf + len, ALIGN(len, c->min_io_size) - len); in ubifs_log_start_commit()
414 len = ALIGN(len, c->min_io_size); in ubifs_log_start_commit()
602 int sz = ALIGN(*offs, c->min_io_size), err; in add_node()
681 int sz = ALIGN(offs, c->min_io_size); in ubifs_consolidate_log()
687 offs = ALIGN(offs, c->min_io_size); in ubifs_consolidate_log()
A Dio.c402 pad = ALIGN(len, c->min_io_size) - len; in ubifs_prepare_node()
516 ubifs_assert(wbuf->size >= c->min_io_size); in ubifs_wbuf_sync_nolock()
518 ubifs_assert(wbuf->size % c->min_io_size == 0); in ubifs_wbuf_sync_nolock()
530 sync_len = ALIGN(wbuf->used, c->min_io_size); in ubifs_wbuf_sync_nolock()
584 ubifs_assert(offs % c->min_io_size == 0 && !(offs & 7)); in ubifs_wbuf_seek_nolock()
694 ubifs_assert(wbuf->offs >= 0 && wbuf->offs % c->min_io_size == 0); in ubifs_wbuf_write_nolock()
697 ubifs_assert(wbuf->size >= c->min_io_size); in ubifs_wbuf_write_nolock()
699 ubifs_assert(wbuf->size % c->min_io_size == 0); in ubifs_wbuf_write_nolock()
871 int err, buf_len = ALIGN(len, c->min_io_size); in ubifs_write_node()
877 ubifs_assert(offs % c->min_io_size == 0 && offs < c->leb_size); in ubifs_write_node()
A Dsuper.c703 c->min_io_size = c->di.min_io_size; in init_constants_early()
704 c->min_io_shift = fls(c->min_io_size) - 1; in init_constants_early()
720 if (!is_power_of_2(c->min_io_size)) { in init_constants_early()
729 if (c->max_write_size < c->min_io_size || in init_constants_early()
730 c->max_write_size % c->min_io_size || in init_constants_early()
733 c->max_write_size, c->min_io_size); in init_constants_early()
742 if (c->min_io_size < 8) { in init_constants_early()
743 c->min_io_size = 8; in init_constants_early()
745 if (c->max_write_size < c->min_io_size) { in init_constants_early()
746 c->max_write_size = c->min_io_size; in init_constants_early()
[all …]
A Dlpt_commit.c233 alen = ALIGN(offs, c->min_io_size); in layout_cnodes()
276 alen = ALIGN(offs, c->min_io_size); in layout_cnodes()
296 alen = ALIGN(offs, c->min_io_size); in layout_cnodes()
312 alen = ALIGN(offs, c->min_io_size); in layout_cnodes()
415 alen = ALIGN(wlen, c->min_io_size); in write_cnodes()
474 alen = ALIGN(wlen, c->min_io_size); in write_cnodes()
500 alen = ALIGN(wlen, c->min_io_size); in write_cnodes()
523 alen = ALIGN(wlen, c->min_io_size); in write_cnodes()
535 c->nhead_offs = ALIGN(offs, c->min_io_size); in write_cnodes()
1083 if (c->min_io_size == 1) in get_pad_len()
[all …]
A Dmaster.c116 c->lhead_offs & (c->min_io_size - 1)) { in validate_master()
139 c->ihead_offs % c->min_io_size || c->ihead_offs < 0 || in validate_master()
158 c->nhead_offs < 0 || c->nhead_offs % c->min_io_size || in validate_master()
A Dlpt.c124 tot_wastage += ALIGN(sz, c->min_io_size) - sz; in do_calc_lpt_geom()
659 iopos = ALIGN(node_sz, c->min_io_size); in ubifs_create_dflt_lpt()
665 iopos = ALIGN(node_sz, c->min_io_size); in ubifs_create_dflt_lpt()
698 alen = ALIGN(len, c->min_io_size); in ubifs_create_dflt_lpt()
727 alen = ALIGN(len, c->min_io_size); in ubifs_create_dflt_lpt()
775 alen = ALIGN(len, c->min_io_size); in ubifs_create_dflt_lpt()
800 alen = ALIGN(len, c->min_io_size); in ubifs_create_dflt_lpt()
815 alen = ALIGN(len, c->min_io_size); in ubifs_create_dflt_lpt()
828 c->nhead_offs = ALIGN(len, c->min_io_size); in ubifs_create_dflt_lpt()
1152 if (free < 0 || free > c->leb_size || free % c->min_io_size || in validate_pnode()
A Drecovery.c446 empty_offs = ALIGN(*offs, c->min_io_size); in clean_buf()
538 int len = ALIGN(endpt, c->min_io_size); in fix_unclean_leb()
713 min_io_unit = round_down(offs, c->min_io_size); in ubifs_recover_leb()
1055 len = ALIGN(ucleb->endpt, c->min_io_size); in clean_an_unclean_leb()
1458 len = ALIGN(len + 1, c->min_io_size); in fix_size_in_place()
A Dubifs-media.h620 __le32 min_io_size; member
A Dorphan.c240 len = ALIGN(len, c->min_io_size); in do_write_orph_node()
314 c->ohead_offs += ALIGN(len, c->min_io_size); in write_orph_node()
A Dreplay.c671 ubifs_assert(sleb->endpt % c->min_io_size == 0); in replay_bud()
795 offs & (c->min_io_size - 1)) in validate_ref()
A Dubifs.h1922 int min_io_size; member
A Ddebug.c344 pr_err("\tmin_io_size %u\n", le32_to_cpu(sup->min_io_size)); in ubifs_dump_node()
/u-boot/drivers/mtd/ubi/
A Dmisc.c30 ubi_assert(!(length & (ubi->min_io_size - 1))); in ubi_calc_data_len()
37 length = ALIGN(i + 1, ubi->min_io_size); in ubi_calc_data_len()
A Dbuild.c167 __ATTR(min_io_size, S_IRUGO, dev_attribute_show, NULL);
410 ret = sprintf(buf, "%d\n", ubi->min_io_size); in dev_attribute_show()
692 ubi->min_io_size = ubi->mtd->writesize; in io_init()
700 if (!is_power_of_2(ubi->min_io_size)) { in io_init()
702 ubi->min_io_size); in io_init()
707 ubi_assert(ubi->hdrs_min_io_size <= ubi->min_io_size); in io_init()
715 if (ubi->max_write_size < ubi->min_io_size || in io_init()
716 ubi->max_write_size % ubi->min_io_size || in io_init()
719 ubi->max_write_size, ubi->min_io_size); in io_init()
727 dbg_gen("min_io_size %d", ubi->min_io_size); in io_init()
[all …]
A Dkapi.c37 di->min_io_size = ubi->min_io_size; in ubi_do_get_device_info()
538 offset & (ubi->min_io_size - 1) || len & (ubi->min_io_size - 1)) in ubi_leb_write()
582 len > vol->usable_leb_size || len & (ubi->min_io_size - 1)) in ubi_leb_change()
A Dupd.c233 int l = ALIGN(len, ubi->min_io_size); in write_leb()
414 int len = ALIGN((int)vol->upd_bytes, ubi->min_io_size); in ubi_more_leb_change_data()
A Dvtbl.c214 n = alignment & (ubi->min_io_size - 1);
796 ubi->vtbl_size = ALIGN(ubi->vtbl_size, ubi->min_io_size);
A Deba.c802 len = ALIGN(data_size, ubi->min_io_size); in ubi_eba_write_leb_st()
804 ubi_assert(!(len & (ubi->min_io_size - 1))); in ubi_eba_write_leb_st()
1070 aldata_size = ALIGN(data_size, ubi->min_io_size); in ubi_eba_copy_leb()
A Dubi.h611 int min_io_size; member
A Dvmt.c686 n = vol->alignment & (ubi->min_io_size - 1); in self_check_volume()
/u-boot/drivers/virtio/
A Dvirtio_blk.h58 __u16 min_io_size; member
/u-boot/include/linux/mtd/
A Dubi.h184 int min_io_size; member
/u-boot/cmd/
A Dubi.c61 ubi_msg("smallest flash I/O unit: %d", ubi->min_io_size); in display_ubi_info()
136 n = req->alignment % ubi->min_io_size; in verify_mkvol_req()
396 tbuf_size = ALIGN(size, ubi->min_io_size); in ubi_volume_read()

Completed in 57 milliseconds