Home
last modified time | relevance | path

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

/linux-6.1.9/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.c837 memset(ubi->peb_buf + offset, 0xFF, len); in try_recover_peb()
841 err = ubi_io_read_data(ubi, ubi->peb_buf, pnum, 0, offset); in try_recover_peb()
848 memcpy(ubi->peb_buf + offset, buf, len); in try_recover_peb()
851 crc = crc32(UBI_CRC32_INIT, ubi->peb_buf, data_size); in try_recover_peb()
860 err = ubi_io_write_data(ubi, ubi->peb_buf, new_pnum, 0, data_size); in try_recover_peb()
1380 err = ubi_io_read_data(ubi, ubi->peb_buf, from, 0, aldata_size); in ubi_eba_copy_leb()
1400 ubi_calc_data_len(ubi, ubi->peb_buf, data_size); in ubi_eba_copy_leb()
1403 crc = crc32(UBI_CRC32_INIT, ubi->peb_buf, data_size); in ubi_eba_copy_leb()
1442 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.c960 ubi->peb_buf = vmalloc(ubi->peb_size); in ubi_attach_mtd_dev()
961 if (!ubi->peb_buf) in ubi_attach_mtd_dev()
1040 vfree(ubi->peb_buf); in ubi_attach_mtd_dev()
1112 vfree(ubi->peb_buf); in ubi_detach_mtd_dev()
Dubi.h651 void *peb_buf; member
Dwl.c1522 err = ubi_io_read(ubi, ubi->peb_buf, pnum, 0, ubi->peb_size);