/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() [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 | 22 * UBIFS distinguishes between minimum write size (@c->min_io_size) and maximum 26 * @c->min_io_size <= @c->max_write_size. Write-buffers are of 28 * write-buffer is flushed, only the portion of it (aligned to @c->min_io_size 318 * The flash media obliges us to write only in chunks of %c->min_io_size and 393 pad = ALIGN(len, c->min_io_size) - len; in ubifs_init_node() 555 * of the write-buffer (aligned on @c->min_io_size boundary) is synchronized. 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 in ubifs_wbuf_seek_nolock() [all...] |
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() 143 /* Pad to end of 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 | recovery.c | 425 * This function pads up to the next min_io_size boundary (if there is one) and 427 * @c->min_io_size boundary. 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() 536 /* Pad to min_io_size */ in fix_unclean_leb() 702 min_io_unit = round_down(offs, c->min_io_size); in ubifs_recover_leb() 1043 /* Pad to min_io_size */ in clean_an_unclean_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 | 624 * @min_io_size: minimal input/output unit size 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() 595 * @io->min_io_size 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() [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 | 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()
|
H A D | ubi.h | 530 * @min_io_size: minimal input/output unit size of the underlying MTD device 636 int min_io_size; member
|
/linux/include/linux/mtd/ |
H A D | ubi.h | 151 * @min_io_size: minimal I/O unit size 162 * example, NOR flash allows for changing individual bytes, so @min_io_size is 169 * underneath, in which case @min_io_size can be physical min. I/O size of 170 * single flash chip, while @max_write_size can be N * @min_io_size. 172 * The @max_write_size field is always greater or equivalent to @min_io_size. 173 * E.g., some NOR flashes may have (@min_io_size = 1, @max_write_size = 64). In 174 * contrast, NAND flashes usually have @min_io_size = @max_write_size = NAND 181 int min_io_size; member
|
/linux/include/uapi/linux/ |
H A D | virtio_blk.h | 83 __virtio16 min_io_size; member
|
/linux/fs/hfsplus/ |
H A D | wrapper.c | 147 sbi->min_io_size = blocksize; in hfsplus_read_wrapper()
|
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()
|
/linux/drivers/vdpa/vdpa_sim/ |
H A D | vdpa_sim_blk.c | 376 blk_config->min_io_size = cpu_to_vdpasim16(vdpasim, 1); in vdpasim_blk_get_config()
|
/linux/Documentation/ABI/stable/ |
H A D | sysfs-class-ubi | 88 What: /sys/class/ubi/ubiX/min_io_size
|