Home
last modified time | relevance | path

Searched refs:mtd_device (Results 1 – 16 of 16) 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.c150 struct mtd_device *current_mtd_dev = NULL;
155 static struct part_info* mtd_part_info(struct mtd_device *dev, unsigned int part_num);
159 static int device_del(struct mtd_device *dev);
235 struct mtd_device *dev; in index_partitions()
242 dev = list_entry(dentry, struct mtd_device, link); in index_partitions()
452 static int part_del(struct mtd_device *dev, struct part_info *part) in part_del()
517 static int part_sort_add(struct mtd_device *dev, struct part_info *part) in part_sort_add()
580 static int part_add(struct mtd_device *dev, struct part_info *part) in part_add()
741 struct mtd_device *dev_tmp; in device_delall()
745 dev_tmp = list_entry(entry, struct mtd_device, link); in device_delall()
[all …]
Djffs2.c122 extern struct mtd_device *current_mtd_dev;
126 struct mtd_device *current_mtd_dev = NULL;
343 current_mtd_dev = (struct mtd_device *) in mtdparts_init()
344 malloc(sizeof(struct mtd_device) + in mtdparts_init()
351 memset(current_mtd_dev, 0, sizeof(struct mtd_device) + in mtdparts_init()
426 static struct part_info* jffs2_part_info(struct mtd_device *dev, unsigned int part_num) in jffs2_part_info()
Dcramfs.c104 struct mtd_device dev; in do_cramfs_load()
169 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()
Dlegacy-mtd-utils.c14 struct mtd_device *dev; in get_part()
Dnand.c39 int find_dev_and_part(const char *id, struct mtd_device **dev,
941 struct mtd_device *dev; in do_nandboot()
/external/u-boot/include/jffs2/
Dload_kernel.h25 struct mtd_device { struct
41 struct mtd_device *dev; /* parent device */ argument
66 extern int find_dev_and_part(const char *id, struct mtd_device **dev,
68 extern struct mtd_device *device_find(u8 type, u8 num);
/external/u-boot/drivers/mtd/nand/raw/
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/fastboot/
Dfb_nand.c37 struct mtd_device *dev; in fb_nand_lookup()
/external/u-boot/drivers/dfu/
Ddfu_sf.c163 struct mtd_device *mtd_dev; in dfu_fill_entity_sf()
Ddfu_nand.c206 struct mtd_device *mtd_dev; in dfu_fill_entity_nand()
Ddfu_mtd.c262 struct mtd_device *mtd_dev; in dfu_fill_entity_mtd()
/external/u-boot/common/
Dfdt_support.c818 struct mtd_device *dev) in fdt_node_set_part_info()
949 struct mtd_device *dev; in fdt_fixup_mtdparts()