Home
last modified time | relevance | path

Searched refs:peb_buf (Results 1 – 6 of 6) sorted by relevance

/kernel/linux/linux-5.10/drivers/mtd/ubi/
Dio.c378 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()
Deba.c838 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()
Dattach.c513 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()
Dbuild.c963 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()
Dubi.h653 void *peb_buf; member
Dwl.c1513 err = ubi_io_read(ubi, ubi->peb_buf, pnum, 0, ubi->peb_size);