Searched refs:peb_buf (Results 1 – 6 of 6) sorted by relevance
/kernel/linux/linux-5.10/drivers/mtd/ubi/ |
D | io.c | 378 err = ubi_io_read(ubi, ubi->peb_buf, pnum, 0, ubi->peb_size); in torture_peb() 382 err = ubi_check_pattern(ubi->peb_buf, 0xFF, ubi->peb_size); in torture_peb() 391 memset(ubi->peb_buf, patterns[i], ubi->peb_size); in torture_peb() 392 err = ubi_io_write(ubi, ubi->peb_buf, pnum, 0, ubi->peb_size); in torture_peb() 396 memset(ubi->peb_buf, ~patterns[i], ubi->peb_size); in torture_peb() 397 err = ubi_io_read(ubi, ubi->peb_buf, pnum, 0, ubi->peb_size); in torture_peb() 401 err = ubi_check_pattern(ubi->peb_buf, patterns[i], in torture_peb()
|
D | eba.c | 838 memset(ubi->peb_buf + offset, 0xFF, len); in try_recover_peb() 842 err = ubi_io_read_data(ubi, ubi->peb_buf, pnum, 0, offset); in try_recover_peb() 849 memcpy(ubi->peb_buf + offset, buf, len); in try_recover_peb() 852 crc = crc32(UBI_CRC32_INIT, ubi->peb_buf, data_size); in try_recover_peb() 861 err = ubi_io_write_data(ubi, ubi->peb_buf, new_pnum, 0, data_size); in try_recover_peb() 1381 err = ubi_io_read_data(ubi, ubi->peb_buf, from, 0, aldata_size); in ubi_eba_copy_leb() 1401 ubi_calc_data_len(ubi, ubi->peb_buf, data_size); in ubi_eba_copy_leb() 1404 crc = crc32(UBI_CRC32_INIT, ubi->peb_buf, data_size); in ubi_eba_copy_leb() 1443 err = ubi_io_write_data(ubi, ubi->peb_buf, to, 0, aldata_size); in ubi_eba_copy_leb()
|
D | attach.c | 513 err = ubi_io_read_data(ubi, ubi->peb_buf, pnum, 0, len); in ubi_compare_lebs() 518 crc = crc32(UBI_CRC32_INIT, ubi->peb_buf, len); in ubi_compare_lebs() 878 memset(ubi->peb_buf, 0x00, ubi->leb_size); in check_corruption() 880 err = ubi_io_read(ubi, ubi->peb_buf, pnum, ubi->leb_start, in check_corruption() 897 if (ubi_check_pattern(ubi->peb_buf, 0xFF, ubi->leb_size)) in check_corruption() 907 ubi->peb_buf, ubi->leb_size, 1); in check_corruption()
|
D | build.c | 963 ubi->peb_buf = vmalloc(ubi->peb_size); in ubi_attach_mtd_dev() 964 if (!ubi->peb_buf) in ubi_attach_mtd_dev() 1043 vfree(ubi->peb_buf); in ubi_attach_mtd_dev() 1115 vfree(ubi->peb_buf); in ubi_detach_mtd_dev()
|
D | ubi.h | 653 void *peb_buf; member
|
D | wl.c | 1513 err = ubi_io_read(ubi, ubi->peb_buf, pnum, 0, ubi->peb_size);
|