Home
last modified time | relevance | path

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

/external/vboot_reference/cgpt/
Dcgpt_wrapper.c68 const char *mtd_device) { in wrap_cgpt() argument
88 if (GetMtdSize(mtd_device, &drive_size) != 0) { in wrap_cgpt()
89 Error("Cannot get the size of %s.\n", mtd_device); in wrap_cgpt()
110 if (strcmp(my_argv[i], mtd_device) == 0) { in wrap_cgpt()
163 const char *mtd_device = find_mtd_device(argc, argv); in main() local
164 if (mtd_device) { in main()
165 return wrap_cgpt(argc, argv, mtd_device); in main()
Dcgpt_nor.c29 int GetMtdSize(const char *mtd_device, uint64_t *size) { in GetMtdSize() argument
30 mtd_device = strrchr(mtd_device, '/'); in GetMtdSize()
31 if (mtd_device == NULL) { in GetMtdSize()
36 if (asprintf(&sysfs_name, "/sys/class/mtd%s/size", mtd_device) == -1) { in GetMtdSize()
Dcgpt_nor.h14 int GetMtdSize(const char *mtd_device, uint64_t *size);