Searched refs:leb_size (Results 1 – 14 of 14) sorted by relevance
/drivers/mtd/ubi/ |
D | vtbl.c | 199 if (alignment > ubi->leb_size || alignment == 0) { in vtbl_check() 210 n = ubi->leb_size % alignment; in vtbl_check() 545 vol->usable_leb_size = ubi->leb_size - vol->data_pad; in init_volumes() 635 vol->usable_leb_size = ubi->leb_size; in init_volumes() 639 (long long)vol->used_ebs * (ubi->leb_size - vol->data_pad); in init_volumes() 794 ubi->vtbl_slots = ubi->leb_size / UBI_VTBL_RECORD_SIZE; in ubi_read_volume_table()
|
D | vmt.c | 201 vol->usable_leb_size = ubi->leb_size - ubi->leb_size % req->alignment; in ubi_create_volume() 221 vol->data_pad = ubi->leb_size % vol->alignment; in ubi_create_volume() 656 if (vol->alignment > ubi->leb_size || vol->alignment == 0) { in self_check_volume() 667 n = ubi->leb_size % vol->alignment; in self_check_volume() 689 n = ubi->leb_size - vol->data_pad; in self_check_volume() 690 if (vol->usable_leb_size != ubi->leb_size - vol->data_pad) { in self_check_volume()
|
D | block.c | 80 int leb_size; member 195 offset = do_div(pos, dev->leb_size); in ubiblock_read() 204 if (offset + to_read > dev->leb_size) in ubiblock_read() 205 to_read = dev->leb_size - offset; in ubiblock_read() 395 dev->leb_size = vi->usable_leb_size; in ubiblock_create()
|
D | wl.h | 12 *count += (ubi->fm_size / ubi->leb_size) * 2; in ubi_fastmap_init()
|
D | attach.c | 878 memset(ubi->peb_buf, 0x00, ubi->leb_size); in check_corruption() 881 ubi->leb_size); in check_corruption() 897 if (ubi_check_pattern(ubi->peb_buf, 0xFF, ubi->leb_size)) in check_corruption() 905 pnum, ubi->leb_start, ubi->leb_size); in check_corruption() 907 ubi->peb_buf, ubi->leb_size, 1); in check_corruption() 1711 if (av->data_pad > ubi->leb_size / 2) { in self_check_ai()
|
D | fastmap.c | 92 return roundup(size, ubi->leb_size); in ubi_calc_fm_size() 933 fm_size = ubi->leb_size * used_blocks; in ubi_scan_fastmap() 1025 ret = ubi_io_read_data(ubi, ubi->fm_buf + (ubi->leb_size * i), in ubi_scan_fastmap() 1026 pnum, 0, ubi->leb_size); in ubi_scan_fastmap() 1368 ret = ubi_io_write_data(ubi, fm_raw + (i * ubi->leb_size), in ubi_write_fastmap() 1369 new_fm->e[i]->pnum, 0, ubi->leb_size); in ubi_write_fastmap() 1564 new_fm->used_blocks = ubi->fm_size / ubi->leb_size; in ubi_update_fastmap()
|
D | io.c | 844 int usable_leb_size = ubi->leb_size - data_pad; in validate_vid_hdr() 879 if (data_pad >= ubi->leb_size / 2) { in validate_vid_hdr() 884 if (data_size > ubi->leb_size) { in validate_vid_hdr()
|
D | kapi.c | 29 di->leb_size = ubi->leb_size; in ubi_do_get_device_info()
|
D | build.c | 355 ret = sprintf(buf, "%d\n", ubi->leb_size); in dev_attribute_show() 745 ubi->leb_size = ubi->peb_size - ubi->leb_start; in io_init() 1021 ubi->peb_size, ubi->peb_size >> 10, ubi->leb_size); in ubi_attach_mtd_dev()
|
D | upd.c | 123 vol->upd_buf = vmalloc(ubi->leb_size); in ubi_start_update()
|
D | fastmap-wl.c | 122 fm_used = ubi->fm_size / ubi->leb_size - 1; in has_enough_free_count()
|
D | ubi.h | 641 int leb_size; member
|
D | cdev.c | 623 if (req->alignment > ubi->leb_size) in verify_mkvol_req()
|
D | eba.c | 1331 ubi->leb_size - be32_to_cpu(vid_hdr->data_pad); in ubi_eba_copy_leb()
|