/linux/fs/ubifs/ |
H A D | sb.c | 163 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 …]
|
H A D | super.c | 530 c->min_io_size = c->di.min_io_size; in init_constants_early() 531 c->min_io_shift = fls(c->min_io_size) - 1; in init_constants_early() 547 if (!is_power_of_2(c->min_io_size)) { in init_constants_early() 548 ubifs_errc(c, "bad min. I/O size %d", c->min_io_size); in init_constants_early() 556 if (c->max_write_size < c->min_io_size || in init_constants_early() 557 c->max_write_size % c->min_io_size || in init_constants_early() 560 c->max_write_size, c->min_io_size); in init_constants_early() 569 if (c->min_io_size < 8) { in init_constants_early() 570 c->min_io_size = 8; in init_constants_early() 572 if (c->max_write_size < c->min_io_size) { in init_constants_early() [all …]
|
H A D | log.c | 368 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()
|
H A D | io.c | 393 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()
|
H A D | scan.c | 167 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()
|
H A D | lpt_commit.c | 223 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 …]
|
H A D | tnc_commit.c | 142 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() 845 buf_len = ALIGN(c->max_idx_node_sz, c->min_io_size); in write_index() 989 blen = ALIGN(wlen, c->min_io_size); in write_index()
|
H A D | master.c | 197 c->lhead_offs & (c->min_io_size - 1)) { in validate_master() 220 c->ihead_offs % c->min_io_size || c->ihead_offs < 0 || in validate_master() 239 c->nhead_offs < 0 || c->nhead_offs % c->min_io_size || in validate_master()
|
H A D | lpt.c | 115 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()
|
H A D | recovery.c | 437 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()
|
H A D | ubifs-media.h | 658 __le32 min_io_size; member
|
H A D | orphan.c | 263 len = ALIGN(len, c->min_io_size); in do_write_orph_node() 337 c->ohead_offs += ALIGN(len, c->min_io_size); in write_orph_node()
|
/linux/drivers/mtd/ubi/ |
H A D | build.c | 141 __ATTR(min_io_size, S_IRUGO, dev_attribute_show, NULL); 379 ret = sprintf(buf, "%d\n", ubi->min_io_size); in dev_attribute_show() 639 ubi->min_io_size = ubi->mtd->writesize; in io_init() 647 if (!is_power_of_2(ubi->min_io_size)) { in io_init() 649 ubi->min_io_size); in io_init() 654 ubi_assert(ubi->hdrs_min_io_size <= ubi->min_io_size); in io_init() 655 ubi_assert(ubi->min_io_size % ubi->hdrs_min_io_size == 0); in io_init() 662 if (ubi->max_write_size < ubi->min_io_size || in io_init() 663 ubi->max_write_size % ubi->min_io_size || in io_init() 666 ubi->max_write_size, ubi->min_io_size); in io_init() [all …]
|
H A D | misc.c | 27 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()
|
H A D | kapi.c | 31 di->min_io_size = ubi->min_io_size; in ubi_do_get_device_info() 551 offset & (ubi->min_io_size - 1) || len & (ubi->min_io_size - 1)) in ubi_leb_write() 595 len > vol->usable_leb_size || len & (ubi->min_io_size - 1)) in ubi_leb_change()
|
H A D | upd.c | 183 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()
|
H A D | cdev.c | 203 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()
|
H A D | vtbl.c | 204 n = alignment & (ubi->min_io_size - 1); in vtbl_check() 805 ubi->vtbl_size = ALIGN(ubi->vtbl_size, ubi->min_io_size); in ubi_read_volume_table()
|
H A D | eba.c | 1129 len = ALIGN(data_size, ubi->min_io_size); in ubi_eba_write_leb_st() 1131 ubi_assert(!(len & (ubi->min_io_size - 1))); in ubi_eba_write_leb_st() 1324 aldata_size = ALIGN(data_size, ubi->min_io_size); in ubi_eba_copy_leb()
|
H A D | gluebi.c | 301 mtd->writesize = di->min_io_size; in gluebi_create()
|
/linux/include/linux/mtd/ |
H A D | ubi.h | 181 int min_io_size; member
|
/linux/include/uapi/linux/ |
H A D | virtio_blk.h | 83 __virtio16 min_io_size; member
|
/linux/drivers/block/ |
H A D | virtio_blk.c | 1247 u16 min_io_size; in virtblk_read_limits() local 1303 struct virtio_blk_config, min_io_size, in virtblk_read_limits() 1304 &min_io_size); in virtblk_read_limits() 1305 if (!err && min_io_size) in virtblk_read_limits() 1306 lim->io_min = lim->logical_block_size * min_io_size; in virtblk_read_limits()
|
/linux/fs/hfsplus/ |
H A D | hfsplus_fs.h | 160 u32 min_io_size; member 312 return max_t(unsigned short, HFSPLUS_SB(sb)->min_io_size, in hfsplus_min_io_size()
|
/linux/drivers/vdpa/ |
H A D | vdpa.c | 1018 u16 min_io_size; in vdpa_dev_blk_topology_config_fill() local 1024 min_io_size = __virtio16_to_cpu(true, config->min_io_size); in vdpa_dev_blk_topology_config_fill() 1035 if (nla_put_u16(msg, VDPA_ATTR_DEV_BLK_CFG_MIN_IO_SIZE, min_io_size)) in vdpa_dev_blk_topology_config_fill()
|