Home
last modified time | relevance | path

Searched refs:mtd_device (Results 1 – 15 of 15) 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);
/external/u-boot/cmd/
Dmtdparts.c149 struct mtd_device *current_mtd_dev = NULL;
154 static struct part_info* mtd_part_info(struct mtd_device *dev, unsigned int part_num);
158 static int device_del(struct mtd_device *dev);
231 struct mtd_device *dev; in index_partitions()
238 dev = list_entry(dentry, struct mtd_device, link); in index_partitions()
448 static int part_del(struct mtd_device *dev, struct part_info *part) in part_del()
513 static int part_sort_add(struct mtd_device *dev, struct part_info *part) in part_sort_add()
576 static int part_add(struct mtd_device *dev, struct part_info *part) in part_add()
737 struct mtd_device *dev_tmp; in device_delall()
741 dev_tmp = list_entry(entry, struct mtd_device, link); in device_delall()
[all …]
Djffs2.c121 extern struct mtd_device *current_mtd_dev;
125 struct mtd_device *current_mtd_dev = NULL;
342 current_mtd_dev = (struct mtd_device *) in mtdparts_init()
343 malloc(sizeof(struct mtd_device) + in mtdparts_init()
350 memset(current_mtd_dev, 0, sizeof(struct mtd_device) + in mtdparts_init()
425 static struct part_info* jffs2_part_info(struct mtd_device *dev, unsigned int part_num) in jffs2_part_info()
Dcramfs.c103 struct mtd_device dev; in do_cramfs_load()
168 struct mtd_device dev; in do_cramfs_ls()
Dflash.c19 int find_dev_and_part(const char *id, struct mtd_device **dev,
306 struct mtd_device *dev; in do_flerase()
440 struct mtd_device *dev; in do_protect()
Dubi.c413 struct mtd_device *dev; in ubi_dev_scan()
485 struct mtd_device *dev; in ubi_part()
Dnand.c37 int find_dev_and_part(const char *id, struct mtd_device **dev,
939 struct mtd_device *dev; in do_nandboot()
/external/u-boot/include/jffs2/
Dload_kernel.h22 struct mtd_device { struct
38 struct mtd_device *dev; /* parent device */ argument
63 extern int find_dev_and_part(const char *id, struct mtd_device **dev,
65 extern struct mtd_device *device_find(u8 type, u8 num);
/external/u-boot/drivers/mtd/nand/
Dnand_util.c59 const char *mtd_device = mtd->name; in nand_erase_opts() local
124 mtd_device, in nand_erase_opts()
135 mtd_device, result); in nand_erase_opts()
151 mtd_device, result); in nand_erase_opts()
/external/u-boot/drivers/mtd/
Dmtd_uboot.c14 struct mtd_device *dev; in get_part()
/external/u-boot/drivers/fastboot/
Dfb_nand.c37 struct mtd_device *dev; in fb_nand_lookup()
/external/u-boot/drivers/dfu/
Ddfu_nand.c206 struct mtd_device *mtd_dev; in dfu_fill_entity_nand()
/external/u-boot/common/
Dfdt_support.c786 struct mtd_device *dev) in fdt_node_set_part_info()
899 struct mtd_device *dev; in fdt_fixup_mtdparts()