Home
last modified time | relevance | path

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

/drivers/mtd/ubi/
Dbuild.c147 __ATTR(min_io_size, S_IRUGO, dev_attribute_show, NULL);
385 ret = sprintf(buf, "%d\n", ubi->min_io_size); in dev_attribute_show()
667 ubi->min_io_size = ubi->mtd->writesize; in io_init()
675 if (!is_power_of_2(ubi->min_io_size)) { in io_init()
677 ubi->min_io_size); in io_init()
682 ubi_assert(ubi->hdrs_min_io_size <= ubi->min_io_size); in io_init()
683 ubi_assert(ubi->min_io_size % ubi->hdrs_min_io_size == 0); in io_init()
690 if (ubi->max_write_size < ubi->min_io_size || in io_init()
691 ubi->max_write_size % ubi->min_io_size || in io_init()
694 ubi->max_write_size, ubi->min_io_size); in io_init()
[all …]
Dkapi.c44 di->min_io_size = ubi->min_io_size; in ubi_do_get_device_info()
543 offset & (ubi->min_io_size - 1) || len & (ubi->min_io_size - 1)) in ubi_leb_write()
587 len > vol->usable_leb_size || len & (ubi->min_io_size - 1)) in ubi_leb_change()
Dmisc.c40 ubi_assert(!(length & (ubi->min_io_size - 1))); in ubi_calc_data_len()
47 length = ALIGN(i + 1, ubi->min_io_size); in ubi_calc_data_len()
Dupd.c196 vol->upd_buf = vmalloc(ALIGN((int)req->bytes, ubi->min_io_size)); in ubi_start_leb_change()
238 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()
Dcdev.c216 tbuf_size = ALIGN(count, ubi->min_io_size); in vol_cdev_read()
281 if (off & (ubi->min_io_size - 1)) { in vol_cdev_direct_write()
290 if (count & (ubi->min_io_size - 1)) { in vol_cdev_direct_write()
297 tbuf_size = ALIGN(count, ubi->min_io_size); in vol_cdev_direct_write()
628 n = req->alignment & (ubi->min_io_size - 1); in verify_mkvol_req()
Dvtbl.c217 n = alignment & (ubi->min_io_size - 1); in vtbl_check()
796 ubi->vtbl_size = ALIGN(ubi->vtbl_size, ubi->min_io_size); in ubi_read_volume_table()
Deba.c1028 len = ALIGN(data_size, ubi->min_io_size); in ubi_eba_write_leb_st()
1030 ubi_assert(!(len & (ubi->min_io_size - 1))); in ubi_eba_write_leb_st()
1223 aldata_size = ALIGN(data_size, ubi->min_io_size); in ubi_eba_copy_leb()
Dgluebi.c317 mtd->writesize = di->min_io_size; in gluebi_create()
Dubi.h637 int min_io_size; member
Dvmt.c688 n = vol->alignment & (ubi->min_io_size - 1); in self_check_volume()
/drivers/block/
Dvirtio_blk.c562 u16 min_io_size; in virtblk_probe() local
711 struct virtio_blk_config, min_io_size, in virtblk_probe()
712 &min_io_size); in virtblk_probe()
713 if (!err && min_io_size) in virtblk_probe()
714 blk_queue_io_min(q, blk_size * min_io_size); in virtblk_probe()