Lines Matching refs:min_io_size
137 __ATTR(min_io_size, S_IRUGO, dev_attribute_show, NULL);
375 ret = sprintf(buf, "%d\n", ubi->min_io_size); in dev_attribute_show()
635 ubi->min_io_size = ubi->mtd->writesize; in io_init()
643 if (!is_power_of_2(ubi->min_io_size)) { in io_init()
645 ubi->min_io_size); in io_init()
650 ubi_assert(ubi->hdrs_min_io_size <= ubi->min_io_size); in io_init()
651 ubi_assert(ubi->min_io_size % ubi->hdrs_min_io_size == 0); in io_init()
658 if (ubi->max_write_size < ubi->min_io_size || in io_init()
659 ubi->max_write_size % ubi->min_io_size || in io_init()
662 ubi->max_write_size, ubi->min_io_size); in io_init()
670 dbg_gen("min_io_size %d", ubi->min_io_size); in io_init()
689 ubi->leb_start = ALIGN(ubi->leb_start, ubi->min_io_size); in io_init()
707 ubi->leb_start & (ubi->min_io_size - 1)) { in io_init()
1006 ubi->min_io_size, ubi->max_write_size, ubi->hdrs_min_io_size); in ubi_attach_mtd_dev()