Home
last modified time | relevance | path

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

/system/core/toolbox/
Dnandread.c44 size_t spare_size = 64; in nandread_main() local
62 spare_size = atoi(optarg); in nandread_main()
139 buffer = malloc(mtdinfo.writesize + mtdinfo.oobsize + spare_size); in nandread_main()
148 memset(oob_data, 0xff, mtdinfo.oobsize + spare_size); in nandread_main()
149 oobbuf.ptr = (uint8_t *)oob_data + spare_size; in nandread_main()
161 if (ecclayout.oobavail > spare_size) in nandread_main()
162 printf("oobavail, %d > image spare size, %zu\n", ecclayout.oobavail, spare_size); in nandread_main()
243 ret = write(outfd, buffer, mtdinfo.writesize + spare_size); in nandread_main()
244 if (ret < (int)(mtdinfo.writesize + spare_size)) { in nandread_main()
257 opos += mtdinfo.writesize + spare_size; in nandread_main()
[all …]