/u-boot/drivers/virtio/ |
H A D | virtio_blk.h | 58 __u16 min_io_size; member in struct:virtio_blk_config
|
/u-boot/drivers/mtd/ubi/ |
H A D | misc.c | 30 ubi_assert(!(length & (ubi->min_io_size - 1))); 37 length = ALIGN(i + 1, ubi->min_io_size);
|
H A D | build.c | 162 __ATTR(min_io_size, S_IRUGO, dev_attribute_show, NULL); 405 ret = sprintf(buf, "%d\n", ubi->min_io_size); 641 * @io->min_io_size 687 ubi->min_io_size = ubi->mtd->writesize; 695 if (!is_power_of_2(ubi->min_io_size)) { 697 ubi->min_io_size); 702 ubi_assert(ubi->hdrs_min_io_size <= ubi->min_io_size); 703 ubi_assert(ubi->min_io_size % ubi->hdrs_min_io_size == 0); 710 if (ubi->max_write_size < ubi->min_io_size || 711 ubi->max_write_size % ubi->min_io_size || [all...] |
H A D | kapi.c | 37 di->min_io_size = ubi->min_io_size; 538 offset & (ubi->min_io_size - 1) || len & (ubi->min_io_size - 1)) 582 len > vol->usable_leb_size || len & (ubi->min_io_size - 1))
|
H A D | upd.c | 233 int l = ALIGN(len, ubi->min_io_size); 414 int len = ALIGN((int)vol->upd_bytes, ubi->min_io_size);
|
H A D | vtbl.c | 214 n = alignment & (ubi->min_io_size - 1); 796 ubi->vtbl_size = ALIGN(ubi->vtbl_size, ubi->min_io_size);
|
H A D | eba.c | 802 len = ALIGN(data_size, ubi->min_io_size); 804 ubi_assert(!(len & (ubi->min_io_size - 1))); 1070 aldata_size = ALIGN(data_size, ubi->min_io_size);
|
H A D | ubi.h | 508 * @min_io_size: minimal input/output unit size of the underlying MTD device 612 int min_io_size; member in struct:ubi_device
|
H A D | vmt.c | 686 n = vol->alignment & (ubi->min_io_size - 1);
|
/u-boot/fs/ubifs/ |
H A D | sb.c | 157 tmp = ALIGN(UBIFS_SB_NODE_SZ, c->min_io_size); 169 sup->min_io_size = cpu_to_le32(c->min_io_size); 218 mst->ihead_offs = cpu_to_le32(ALIGN(tmp, c->min_io_size)); 235 tmp64 -= ALIGN(ubifs_idx_node_sz(c, 1), c->min_io_size); 236 tmp64 -= ALIGN(UBIFS_INO_NODE_SZ, c->min_io_size); 239 tmp64 = ALIGN(ubifs_idx_node_sz(c, 1), c->min_io_size); 240 ino_waste = ALIGN(UBIFS_INO_NODE_SZ, c->min_io_size) - 267 idx = kzalloc(ALIGN(tmp, c->min_io_size), GFP_KERNEL); 290 tmp = ALIGN(UBIFS_INO_NODE_SZ, c->min_io_size); [all...] |
H A D | scan.c | 174 ubifs_assert(offs % c->min_io_size == 0); 176 sleb->endpt = ALIGN(offs, c->min_io_size); 320 if (offs % c->min_io_size) {
|
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 313 * The flash media obliges us to write only in chunks of %c->min_io_size and 402 pad = ALIGN(len, c->min_io_size) - len; 499 * of the write-buffer (aligned on @c->min_io_size boundary) is synchronized. 516 ubifs_assert(wbuf->size >= c->min_io_size); 518 ubifs_assert(wbuf->size % c->min_io_size == 0); 530 sync_len = ALIGN(wbuf->used, c->min_io_size); 584 ubifs_assert(offs % c->min_io_size [all...] |
H A D | log.c | 364 max_len = ALIGN(max_len, c->min_io_size); 400 ubifs_pad(c, buf + len, ALIGN(len, c->min_io_size) - len); 414 len = ALIGN(len, c->min_io_size); 602 int sz = ALIGN(*offs, c->min_io_size), err; 681 int sz = ALIGN(offs, c->min_io_size); 687 offs = ALIGN(offs, c->min_io_size);
|
H A D | super.c | 704 c->min_io_size = c->di.min_io_size; 705 c->min_io_shift = fls(c->min_io_size) - 1; 721 if (!is_power_of_2(c->min_io_size)) { 722 ubifs_err(c, "bad min. I/O size %d", c->min_io_size); 730 if (c->max_write_size < c->min_io_size || 731 c->max_write_size % c->min_io_size || 734 c->max_write_size, c->min_io_size); 743 if (c->min_io_size < 8) { 744 c->min_io_size [all...] |
H A D | master.c | 116 c->lhead_offs & (c->min_io_size - 1)) { 139 c->ihead_offs % c->min_io_size || c->ihead_offs < 0 || 158 c->nhead_offs < 0 || c->nhead_offs % c->min_io_size ||
|
H A D | lpt_commit.c | 234 alen = ALIGN(offs, c->min_io_size); 277 alen = ALIGN(offs, c->min_io_size); 297 alen = ALIGN(offs, c->min_io_size); 313 alen = ALIGN(offs, c->min_io_size); 416 alen = ALIGN(wlen, c->min_io_size); 475 alen = ALIGN(wlen, c->min_io_size); 501 alen = ALIGN(wlen, c->min_io_size); 524 alen = ALIGN(wlen, c->min_io_size); 531 err = dbg_chk_lpt_sz(c, 3, ALIGN(offs, c->min_io_size)); 536 c->nhead_offs = ALIGN(offs, c->min_io_size); [all...] |
H A D | recovery.c | 433 * This function pads up to the next min_io_size boundary (if there is one) and 435 * @c->min_io_size boundary. 446 empty_offs = ALIGN(*offs, c->min_io_size); 538 int len = ALIGN(endpt, c->min_io_size); 546 /* Pad to min_io_size */ 713 min_io_unit = round_down(offs, c->min_io_size); 1054 /* Pad to min_io_size */ 1055 len = ALIGN(ucleb->endpt, c->min_io_size); 1458 len = ALIGN(len + 1, c->min_io_size);
|
H A D | ubifs-media.h | 592 * @min_io_size: minimal input/output unit size 620 __le32 min_io_size; member in struct:ubifs_sb_node
|
H A D | lpt.c | 124 tot_wastage += ALIGN(sz, c->min_io_size) - sz; 659 iopos = ALIGN(node_sz, c->min_io_size); 665 iopos = ALIGN(node_sz, c->min_io_size); 698 alen = ALIGN(len, c->min_io_size); 727 alen = ALIGN(len, c->min_io_size); 775 alen = ALIGN(len, c->min_io_size); 800 alen = ALIGN(len, c->min_io_size); 815 alen = ALIGN(len, c->min_io_size); 828 c->nhead_offs = ALIGN(len, c->min_io_size); 1152 if (free < 0 || free > c->leb_size || free % c->min_io_size || [all...] |
H A D | replay.c | 671 ubifs_assert(sleb->endpt % c->min_io_size == 0); 795 offs & (c->min_io_size - 1))
|
H A D | orphan.c | 240 len = ALIGN(len, c->min_io_size); 314 c->ohead_offs += ALIGN(len, c->min_io_size);
|
H A D | ubifs.h | 1255 * @size: write-buffer size (in [@c->min_io_size, @c->max_write_size] range) 1682 * @min_io_size: minimal input/output unit size 1683 * @min_io_shift: number of bits in @min_io_size minus one 1922 int min_io_size; member in struct:ubifs_info
|
H A D | debug.c | 348 pr_err("\tmin_io_size %u\n", le32_to_cpu(sup->min_io_size));
|
/u-boot/include/linux/mtd/ |
H A D | ubi.h | 154 * @min_io_size: minimal I/O unit size 165 * example, NOR flash allows for changing individual bytes, so @min_io_size is 172 * underneath, in which case @min_io_size can be physical min. I/O size of 173 * single flash chip, while @max_write_size can be N * @min_io_size. 175 * The @max_write_size field is always greater or equivalent to @min_io_size. 176 * E.g., some NOR flashes may have (@min_io_size = 1, @max_write_size = 64). In 177 * contrast, NAND flashes usually have @min_io_size = @max_write_size = NAND 184 int min_io_size; member in struct:ubi_device_info
|
/u-boot/cmd/ |
H A D | ubi.c | 62 ubi_msg("smallest flash I/O unit: %d", ubi->min_io_size); 201 n = req->alignment % ubi->min_io_size; 461 tbuf_size = ALIGN(size, ubi->min_io_size);
|