/u-boot/fs/ubifs/ |
A D | sb.c | 157 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 D | scan.c | 174 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 D | log.c | 364 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 D | io.c | 402 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 D | super.c | 703 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 D | lpt_commit.c | 233 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 D | master.c | 116 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 D | lpt.c | 124 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 D | recovery.c | 446 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 D | ubifs-media.h | 620 __le32 min_io_size; member
|
A D | orphan.c | 240 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 D | replay.c | 671 ubifs_assert(sleb->endpt % c->min_io_size == 0); in replay_bud() 795 offs & (c->min_io_size - 1)) in validate_ref()
|
A D | ubifs.h | 1922 int min_io_size; member
|
A D | debug.c | 344 pr_err("\tmin_io_size %u\n", le32_to_cpu(sup->min_io_size)); in ubifs_dump_node()
|
/u-boot/drivers/mtd/ubi/ |
A D | misc.c | 30 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 D | build.c | 167 __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 D | kapi.c | 37 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 D | upd.c | 233 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 D | vtbl.c | 214 n = alignment & (ubi->min_io_size - 1); 796 ubi->vtbl_size = ALIGN(ubi->vtbl_size, ubi->min_io_size);
|
A D | eba.c | 802 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 D | ubi.h | 611 int min_io_size; member
|
A D | vmt.c | 686 n = vol->alignment & (ubi->min_io_size - 1); in self_check_volume()
|
/u-boot/drivers/virtio/ |
A D | virtio_blk.h | 58 __u16 min_io_size; member
|
/u-boot/include/linux/mtd/ |
A D | ubi.h | 184 int min_io_size; member
|
/u-boot/cmd/ |
A D | ubi.c | 61 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()
|