Home
last modified time | relevance | path

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

12

/linux-6.1.9/fs/ubifs/
Dsb.c163 sup = kzalloc(ALIGN(UBIFS_SB_NODE_SZ, c->min_io_size), GFP_KERNEL); in create_default_filesystem()
166 idx = kzalloc(ALIGN(idx_node_size, c->min_io_size), GFP_KERNEL); in create_default_filesystem()
167 ino = kzalloc(ALIGN(UBIFS_INO_NODE_SZ, c->min_io_size), GFP_KERNEL); in create_default_filesystem()
168 cs = kzalloc(ALIGN(UBIFS_CS_NODE_SZ, c->min_io_size), GFP_KERNEL); in create_default_filesystem()
196 sup->min_io_size = cpu_to_le32(c->min_io_size); in create_default_filesystem()
237 mst->ihead_offs = cpu_to_le32(ALIGN(tmp, c->min_io_size)); in create_default_filesystem()
255 tmp64 -= ALIGN(ubifs_idx_node_sz(c, 1), c->min_io_size); in create_default_filesystem()
256 tmp64 -= ALIGN(UBIFS_INO_NODE_SZ, c->min_io_size); in create_default_filesystem()
259 tmp64 = ALIGN(ubifs_idx_node_sz(c, 1), c->min_io_size); in create_default_filesystem()
260 ino_waste = ALIGN(UBIFS_INO_NODE_SZ, c->min_io_size) - in create_default_filesystem()
[all …]
Dsuper.c534 c->min_io_size = c->di.min_io_size; in init_constants_early()
535 c->min_io_shift = fls(c->min_io_size) - 1; in init_constants_early()
551 if (!is_power_of_2(c->min_io_size)) { in init_constants_early()
552 ubifs_errc(c, "bad min. I/O size %d", c->min_io_size); in init_constants_early()
560 if (c->max_write_size < c->min_io_size || in init_constants_early()
561 c->max_write_size % c->min_io_size || in init_constants_early()
564 c->max_write_size, c->min_io_size); in init_constants_early()
573 if (c->min_io_size < 8) { in init_constants_early()
574 c->min_io_size = 8; in init_constants_early()
576 if (c->max_write_size < c->min_io_size) { in init_constants_early()
[all …]
Dlog.c368 max_len = ALIGN(max_len, c->min_io_size); in ubifs_log_start_commit()
418 ubifs_pad(c, buf + len, ALIGN(len, c->min_io_size) - len); in ubifs_log_start_commit()
432 len = ALIGN(len, c->min_io_size); in ubifs_log_start_commit()
618 int sz = ALIGN(*offs, c->min_io_size), err; in add_node()
697 int sz = ALIGN(offs, c->min_io_size); in ubifs_consolidate_log()
703 offs = ALIGN(offs, c->min_io_size); in ubifs_consolidate_log()
Dio.c393 pad = ALIGN(len, c->min_io_size) - len; in ubifs_init_node()
572 ubifs_assert(c, wbuf->size >= c->min_io_size); in ubifs_wbuf_sync_nolock()
574 ubifs_assert(c, wbuf->size % c->min_io_size == 0); in ubifs_wbuf_sync_nolock()
586 sync_len = ALIGN(wbuf->used, c->min_io_size); in ubifs_wbuf_sync_nolock()
640 ubifs_assert(c, offs % c->min_io_size == 0 && !(offs & 7)); in ubifs_wbuf_seek_nolock()
749 ubifs_assert(c, wbuf->offs >= 0 && wbuf->offs % c->min_io_size == 0); in ubifs_wbuf_write_nolock()
752 ubifs_assert(c, wbuf->size >= c->min_io_size); in ubifs_wbuf_write_nolock()
754 ubifs_assert(c, wbuf->size % c->min_io_size == 0); in ubifs_wbuf_write_nolock()
960 int err, buf_len = ALIGN(len, c->min_io_size); in ubifs_write_node_hmac()
966 ubifs_assert(c, offs % c->min_io_size == 0 && offs < c->leb_size); in ubifs_write_node_hmac()
Dscan.c167 ubifs_assert(c, offs % c->min_io_size == 0); in ubifs_end_scan()
169 sleb->endpt = ALIGN(offs, c->min_io_size); in ubifs_end_scan()
313 if (offs % c->min_io_size) { in ubifs_scan()
Dlpt_commit.c223 alen = ALIGN(offs, c->min_io_size); in layout_cnodes()
266 alen = ALIGN(offs, c->min_io_size); in layout_cnodes()
286 alen = ALIGN(offs, c->min_io_size); in layout_cnodes()
302 alen = ALIGN(offs, c->min_io_size); in layout_cnodes()
404 alen = ALIGN(wlen, c->min_io_size); in write_cnodes()
463 alen = ALIGN(wlen, c->min_io_size); in write_cnodes()
489 alen = ALIGN(wlen, c->min_io_size); in write_cnodes()
512 alen = ALIGN(wlen, c->min_io_size); in write_cnodes()
519 err = dbg_chk_lpt_sz(c, 3, ALIGN(offs, c->min_io_size)); in write_cnodes()
524 c->nhead_offs = ALIGN(offs, c->min_io_size); in write_cnodes()
[all …]
Dtnc_commit.c142 c->ileb_len = ALIGN(gap_pos, c->min_io_size); in fill_gap()
443 buf_len = ALIGN(buf_len, c->min_io_size); in layout_in_empty_space()
523 blen = ALIGN(wlen, c->min_io_size); in layout_in_empty_space()
843 buf_len = ALIGN(c->max_idx_node_sz, c->min_io_size); in write_index()
987 blen = ALIGN(wlen, c->min_io_size); in write_index()
Dmaster.c194 c->lhead_offs & (c->min_io_size - 1)) { in validate_master()
217 c->ihead_offs % c->min_io_size || c->ihead_offs < 0 || in validate_master()
236 c->nhead_offs < 0 || c->nhead_offs % c->min_io_size || in validate_master()
Drecovery.c437 empty_offs = ALIGN(*offs, c->min_io_size); in clean_buf()
528 int len = ALIGN(endpt, c->min_io_size); in fix_unclean_leb()
702 min_io_unit = round_down(offs, c->min_io_size); in ubifs_recover_leb()
1044 len = ALIGN(ucleb->endpt, c->min_io_size); in clean_an_unclean_leb()
1438 len = ALIGN(len + 1, c->min_io_size); in fix_size_in_place()
Dlpt.c115 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()
702 alen = ALIGN(len, c->min_io_size); in ubifs_create_dflt_lpt()
735 alen = ALIGN(len, c->min_io_size); in ubifs_create_dflt_lpt()
783 alen = ALIGN(len, c->min_io_size); in ubifs_create_dflt_lpt()
808 alen = ALIGN(len, c->min_io_size); in ubifs_create_dflt_lpt()
823 alen = ALIGN(len, c->min_io_size); in ubifs_create_dflt_lpt()
840 c->nhead_offs = ALIGN(len, c->min_io_size); in ubifs_create_dflt_lpt()
1163 if (free < 0 || free > c->leb_size || free % c->min_io_size || in validate_pnode()
Dubifs-media.h658 __le32 min_io_size; member
Dorphan.c319 len = ALIGN(len, c->min_io_size); in do_write_orph_node()
393 c->ohead_offs += ALIGN(len, c->min_io_size); in write_orph_node()
Dreplay.c820 ubifs_assert(c, sleb->endpt % c->min_io_size == 0); in replay_bud()
956 offs & (c->min_io_size - 1)) in validate_ref()
/linux-6.1.9/drivers/mtd/ubi/
Dbuild.c137 __ATTR(min_io_size, S_IRUGO, dev_attribute_show, NULL);
372 ret = sprintf(buf, "%d\n", ubi->min_io_size); in dev_attribute_show()
631 ubi->min_io_size = ubi->mtd->writesize; in io_init()
639 if (!is_power_of_2(ubi->min_io_size)) { in io_init()
641 ubi->min_io_size); in io_init()
646 ubi_assert(ubi->hdrs_min_io_size <= ubi->min_io_size); in io_init()
647 ubi_assert(ubi->min_io_size % ubi->hdrs_min_io_size == 0); in io_init()
654 if (ubi->max_write_size < ubi->min_io_size || in io_init()
655 ubi->max_write_size % ubi->min_io_size || in io_init()
658 ubi->max_write_size, ubi->min_io_size); in io_init()
[all …]
Dmisc.c27 ubi_assert(!(length & (ubi->min_io_size - 1))); in ubi_calc_data_len()
34 length = ALIGN(i + 1, ubi->min_io_size); in ubi_calc_data_len()
Dkapi.c31 di->min_io_size = ubi->min_io_size; in ubi_do_get_device_info()
530 offset & (ubi->min_io_size - 1) || len & (ubi->min_io_size - 1)) in ubi_leb_write()
574 len > vol->usable_leb_size || len & (ubi->min_io_size - 1)) in ubi_leb_change()
Dupd.c183 vol->upd_buf = vmalloc(ALIGN((int)req->bytes, ubi->min_io_size)); in ubi_start_leb_change()
225 int l = ALIGN(len, ubi->min_io_size); in write_leb()
401 int len = ALIGN((int)vol->upd_bytes, ubi->min_io_size); in ubi_more_leb_change_data()
Dcdev.c203 tbuf_size = ALIGN(count, ubi->min_io_size); in vol_cdev_read()
268 if (off & (ubi->min_io_size - 1)) { in vol_cdev_direct_write()
277 if (count & (ubi->min_io_size - 1)) { in vol_cdev_direct_write()
284 tbuf_size = ALIGN(count, ubi->min_io_size); in vol_cdev_direct_write()
626 n = req->alignment & (ubi->min_io_size - 1); in verify_mkvol_req()
Dvtbl.c204 n = alignment & (ubi->min_io_size - 1); in vtbl_check()
799 ubi->vtbl_size = ALIGN(ubi->vtbl_size, ubi->min_io_size); in ubi_read_volume_table()
Deba.c1123 len = ALIGN(data_size, ubi->min_io_size); in ubi_eba_write_leb_st()
1125 ubi_assert(!(len & (ubi->min_io_size - 1))); in ubi_eba_write_leb_st()
1318 aldata_size = ALIGN(data_size, ubi->min_io_size); in ubi_eba_copy_leb()
Dgluebi.c301 mtd->writesize = di->min_io_size; in gluebi_create()
/linux-6.1.9/include/uapi/linux/
Dvirtio_blk.h82 __virtio16 min_io_size; member
/linux-6.1.9/include/linux/mtd/
Dubi.h180 int min_io_size; member
/linux-6.1.9/drivers/block/
Dvirtio_blk.c900 u16 min_io_size; in virtblk_probe() local
1044 struct virtio_blk_config, min_io_size, in virtblk_probe()
1045 &min_io_size); in virtblk_probe()
1046 if (!err && min_io_size) in virtblk_probe()
1047 blk_queue_io_min(q, blk_size * min_io_size); in virtblk_probe()
/linux-6.1.9/drivers/vdpa/vdpa_sim/
Dvdpa_sim_blk.c342 blk_config->min_io_size = cpu_to_vdpasim16(vdpasim, 1); in vdpasim_blk_get_config()

12