Home
last modified time | relevance | path

Searched refs:leb_size (Results 1 – 13 of 13) sorted by relevance

/drivers/mtd/ubi/
Dvtbl.c199 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()
Dvmt.c207 vol->usable_leb_size = ubi->leb_size - ubi->leb_size % req->alignment; in ubi_create_volume()
227 vol->data_pad = ubi->leb_size % vol->alignment; in ubi_create_volume()
661 if (vol->alignment > ubi->leb_size || vol->alignment == 0) { in self_check_volume()
672 n = ubi->leb_size % vol->alignment; in self_check_volume()
694 n = ubi->leb_size - vol->data_pad; in self_check_volume()
695 if (vol->usable_leb_size != ubi->leb_size - vol->data_pad) { in self_check_volume()
Dblock.c80 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()
Dwl.h13 *count += (ubi->fm_size / ubi->leb_size) * 2; in ubi_fastmap_init()
Dattach.c878 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()
Dfastmap.c92 return roundup(size, ubi->leb_size); in ubi_calc_fm_size()
923 fm_size = ubi->leb_size * used_blocks; in ubi_scan_fastmap()
1015 ret = ubi_io_read_data(ubi, ubi->fm_buf + (ubi->leb_size * i), in ubi_scan_fastmap()
1016 pnum, 0, ubi->leb_size); in ubi_scan_fastmap()
1358 ret = ubi_io_write_data(ubi, fm_raw + (i * ubi->leb_size), in ubi_write_fastmap()
1359 new_fm->e[i]->pnum, 0, ubi->leb_size); in ubi_write_fastmap()
1559 new_fm->used_blocks = ubi->fm_size / ubi->leb_size; in ubi_update_fastmap()
Dio.c844 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()
Dkapi.c29 di->leb_size = ubi->leb_size; in ubi_do_get_device_info()
Dbuild.c358 ret = sprintf(buf, "%d\n", ubi->leb_size); in dev_attribute_show()
712 ubi->leb_size = ubi->peb_size - ubi->leb_start; in io_init()
981 ubi->peb_size, ubi->peb_size >> 10, ubi->leb_size); in ubi_attach_mtd_dev()
Dupd.c123 vol->upd_buf = vmalloc(ubi->leb_size); in ubi_start_update()
Dubi.h637 int leb_size; member
Dcdev.c623 if (req->alignment > ubi->leb_size) in verify_mkvol_req()
Deba.c1322 ubi->leb_size - be32_to_cpu(vid_hdr->data_pad); in ubi_eba_copy_leb()