/drivers/mtd/ |
D | cmdlinepart.c | 51 struct mtd_partition *parts; member 76 struct mtd_partition *parts; in newpart() local 162 parts = newpart(s + 1, &s, num_parts, this_part + 1, in newpart() 164 if (!parts) in newpart() 174 parts = kzalloc(alloc_size, GFP_KERNEL); in newpart() 175 if (!parts) in newpart() 180 extra_mem = (unsigned char *)(parts + *num_parts); in newpart() 183 parts[this_part].size = size; in newpart() 184 parts[this_part].offset = offset; in newpart() 185 parts[this_part].mask_flags = mask_flags; in newpart() [all …]
|
D | redboot.c | 46 struct mtd_partition *parts; in parse_redboot_partitions() local 212 parts = kzalloc(sizeof(*parts)*nrparts + nulllen + namelen, GFP_KERNEL); in parse_redboot_partitions() 214 if (!parts) { in parse_redboot_partitions() 219 nullname = (char *)&parts[nrparts]; in parse_redboot_partitions() 231 parts[0].name = nullname; in parse_redboot_partitions() 232 parts[0].size = fl->img->flash_base; in parse_redboot_partitions() 233 parts[0].offset = 0; in parse_redboot_partitions() 238 parts[i].size = fl->img->size; in parse_redboot_partitions() 239 parts[i].offset = fl->img->flash_base; in parse_redboot_partitions() 240 parts[i].name = names; in parse_redboot_partitions() [all …]
|
D | afs.c | 168 struct mtd_partition *parts; in parse_afs_partitions() local 208 parts = kzalloc(sz, GFP_KERNEL); in parse_afs_partitions() 209 if (!parts) in parse_afs_partitions() 212 str = (char *)(parts + idx); in parse_afs_partitions() 237 parts[idx].name = str; in parse_afs_partitions() 238 parts[idx].size = (iis.length + mtd->erasesize - 1) & ~(mtd->erasesize - 1); in parse_afs_partitions() 239 parts[idx].offset = img_ptr; in parse_afs_partitions() 240 parts[idx].mask_flags = 0; in parse_afs_partitions() 243 idx, img_ptr, parts[idx].size / 1024, in parse_afs_partitions() 251 kfree(parts); in parse_afs_partitions() [all …]
|
/drivers/mtd/maps/ |
D | physmap_of.c | 31 struct mtd_partition *parts; member 36 #define OF_FLASH_PARTS(info) ((info)->parts) 56 info->parts = kzalloc(nr_parts * sizeof(*info->parts), GFP_KERNEL); in parse_obsolete_partitions() 57 if (!info->parts) in parse_obsolete_partitions() 63 info->parts[i].offset = part->offset; in parse_obsolete_partitions() 64 info->parts[i].size = part->len & ~1; in parse_obsolete_partitions() 66 info->parts[i].mask_flags = MTD_WRITEABLE; in parse_obsolete_partitions() 71 info->parts[i].name = (char *)names; in parse_obsolete_partitions() 75 info->parts[i].name = "unnamed"; in parse_obsolete_partitions() 227 &info->parts, 0); in of_flash_probe() [all …]
|
D | pxa2xx-flash.c | 34 struct mtd_partition *parts; member 49 struct mtd_partition *parts; in pxa2xx_flash_probe() local 66 info->parts = flash->parts; in pxa2xx_flash_probe() 100 ret = parse_mtd_partitions(info->mtd, probes, &parts, 0); in pxa2xx_flash_probe() 104 info->parts = parts; in pxa2xx_flash_probe() 109 add_mtd_partitions(info->mtd, info->parts, in pxa2xx_flash_probe() 138 kfree(info->parts); in pxa2xx_flash_remove()
|
D | omap_nor.c | 55 struct mtd_partition *parts; member 119 err = parse_mtd_partitions(info->mtd, part_probes, &info->parts, 0); in omapflash_probe() 121 add_mtd_partitions(info->mtd, info->parts, err); in omapflash_probe() 122 else if (err <= 0 && pdata->parts) in omapflash_probe() 123 add_mtd_partitions(info->mtd, pdata->parts, pdata->nr_parts); in omapflash_probe() 149 if (info->parts) { in omapflash_remove() 151 kfree(info->parts); in omapflash_remove()
|
D | sa1100-flash.c | 134 struct mtd_partition *parts; member 241 kfree(info->parts); in sa1100_destroy() 357 struct mtd_partition *parts; in sa1100_mtd_probe() local 375 nr_parts = parse_mtd_partitions(info->mtd, part_probes, &parts, 0); in sa1100_mtd_probe() 377 info->parts = parts; in sa1100_mtd_probe() 382 parts = plat->parts; in sa1100_mtd_probe() 394 add_mtd_partitions(info->mtd, parts, nr_parts); in sa1100_mtd_probe()
|
D | fortunet.c | 33 struct mtd_partition parts[MAX_NUM_PARTITIONS]; member 166 map_regions[params[1]].parts[map_regions_parts[params[1]]].name = in MTD_New_Partition() 168 strcpy(map_regions[params[1]].parts[map_regions_parts[params[1]]].name,string); in MTD_New_Partition() 169 map_regions[params[1]].parts[map_regions_parts[params[1]]].size = in MTD_New_Partition() 171 map_regions[params[1]].parts[map_regions_parts[params[1]]].offset = in MTD_New_Partition() 173 map_regions[params[1]].parts[map_regions_parts[params[1]]].mask_flags = 0; in MTD_New_Partition() 247 map_regions[ix].parts,map_regions_parts[ix]); in init_fortunet()
|
D | physmap.c | 32 struct mtd_partition *parts; member 61 kfree(info->parts); in physmap_flash_remove() 173 &info->parts, 0); in physmap_flash_probe() 175 add_mtd_partitions(info->cmtd, info->parts, err); in physmap_flash_probe() 182 add_mtd_partitions(info->cmtd, physmap_data->parts, in physmap_flash_probe() 293 void physmap_set_partitions(struct mtd_partition *parts, int num_parts) in physmap_set_partitions() argument 296 physmap_flash_data.parts = parts; in physmap_set_partitions()
|
D | ipaq-flash.c | 207 struct mtd_partition *parts = NULL; in ipaq_mtd_init() local 240 parts = h3xxx_partitions; in ipaq_mtd_init() 276 parts = jornada_partitions; in ipaq_mtd_init() 285 parts = jornada_partitions; in ipaq_mtd_init() 388 parts = parsed_parts; in ipaq_mtd_init() 392 if (!parts) { in ipaq_mtd_init() 401 add_mtd_partitions(mymtd, parts, nb_parts); in ipaq_mtd_init()
|
D | integrator-flash.c | 52 struct mtd_partition *parts; member 126 err = parse_mtd_partitions(info->mtd, probes, &info->parts, 0); in armflash_probe() 128 err = add_mtd_partitions(info->mtd, info->parts, err); in armflash_probe() 145 kfree(info->parts); in armflash_probe() 171 kfree(info->parts); in armflash_remove()
|
D | sharpsl-flash.c | 52 struct mtd_partition *parts; in init_sharpsl() local 90 parts = sharpsl_partitions; in init_sharpsl() 94 add_mtd_partitions(mymtd, parts, nb_parts); in init_sharpsl()
|
D | alchemy-flash.c | 116 struct mtd_partition *parts; in alchemy_mtd_init() local 130 parts = alchemy_partitions; in alchemy_mtd_init() 148 add_mtd_partitions(mymtd, parts, nb_parts); in alchemy_mtd_init()
|
D | bfin-async-flash.c | 169 ret = parse_mtd_partitions(state->mtd, part_probe_types, &pdata->parts, 0); in bfin_flash_probe() 172 add_mtd_partitions(state->mtd, pdata->parts, ret); in bfin_flash_probe() 176 add_mtd_partitions(state->mtd, pdata->parts, pdata->nr_parts); in bfin_flash_probe()
|
D | intel_vr_nor.c | 80 struct mtd_partition *parts; in vr_nor_init_partitions() local 87 p->nr_parts = parse_mtd_partitions(p->info, part_probes, &parts, 0); in vr_nor_init_partitions() 89 err = add_mtd_partitions(p->info, parts, p->nr_parts); in vr_nor_init_partitions()
|
/drivers/mtd/nand/ |
D | plat_nand.c | 26 struct mtd_partition *parts; member 83 &data->parts, 0); in plat_nand_probe() 85 add_mtd_partitions(&data->mtd, data->parts, res); in plat_nand_probe() 90 data->parts = pdata->chip.partitions; in plat_nand_probe() 91 res = add_mtd_partitions(&data->mtd, data->parts, in plat_nand_probe() 120 if (data->parts && data->parts != pdata->chip.partitions) in plat_nand_remove() 121 kfree(data->parts); in plat_nand_remove()
|
D | diskonchip.c | 1107 static inline int __init nftl_partscan(struct mtd_info *mtd, struct mtd_partition *parts) in nftl_partscan() argument 1183 parts[0].name = " DiskOnChip Firmware / Media Header partition"; in nftl_partscan() 1184 parts[0].offset = 0; in nftl_partscan() 1185 parts[0].size = offs; in nftl_partscan() 1189 parts[numparts].name = " DiskOnChip BDTL partition"; in nftl_partscan() 1190 parts[numparts].offset = offs; in nftl_partscan() 1191 parts[numparts].size = (mh->NumEraseUnits - numheaders) << this->bbt_erase_shift; in nftl_partscan() 1193 offs += parts[numparts].size; in nftl_partscan() 1197 parts[numparts].name = " DiskOnChip Remainder partition"; in nftl_partscan() 1198 parts[numparts].offset = offs; in nftl_partscan() [all …]
|
D | fsl_upm.c | 32 struct mtd_partition *parts; member 163 ret = parse_mtd_partitions(&fun->mtd, part_types, &fun->parts, 0); in fun_chip_init() 167 ret = of_mtd_parse_partitions(fun->dev, flash_np, &fun->parts); in fun_chip_init() 173 ret = add_mtd_partitions(&fun->mtd, fun->parts, ret); in fun_chip_init()
|
D | ndfc.c | 44 struct mtd_partition *parts; member 201 ret = parse_mtd_partitions(&ndfc->mtd, part_types, &ndfc->parts, 0); in ndfc_chip_init() 208 &ndfc->parts); in ndfc_chip_init() 215 ret = add_mtd_partitions(&ndfc->mtd, ndfc->parts, ret); in ndfc_chip_init()
|
D | tmio_nand.c | 370 struct mtd_partition *parts; in tmio_probe() local 453 nbparts = parse_mtd_partitions(mtd, part_probes, &parts, 0); in tmio_probe() 456 parts = data->partition; in tmio_probe() 461 retval = add_mtd_partitions(mtd, parts, nbparts); in tmio_probe()
|
D | cafe_nand.c | 59 struct mtd_partition *parts; member 635 struct mtd_partition *parts; in cafe_nand_probe() local 811 nr_parts = parse_mtd_partitions(mtd, part_probes, &parts, 0); in cafe_nand_probe() 813 cafe->parts = parts; in cafe_nand_probe() 815 add_mtd_partitions(mtd, parts, nr_parts); in cafe_nand_probe()
|
/drivers/mtd/onenand/ |
D | generic.c | 35 struct mtd_partition *parts; member 76 err = parse_mtd_partitions(&info->mtd, part_probes, &info->parts, 0); in generic_onenand_probe() 78 add_mtd_partitions(&info->mtd, info->parts, err); in generic_onenand_probe() 79 else if (err <= 0 && pdata->parts) in generic_onenand_probe() 80 add_mtd_partitions(&info->mtd, pdata->parts, pdata->nr_parts); in generic_onenand_probe() 109 if (info->parts) in generic_onenand_remove()
|
D | onenand_sim.c | 76 struct mtd_partition *parts; member 458 info->parts = os_partitions; in onenand_sim_init() 474 add_mtd_partitions(&info->mtd, info->parts, ARRAY_SIZE(os_partitions)); in onenand_sim_init()
|
/drivers/mtd/devices/ |
D | m25p80.c | 708 struct mtd_partition *parts = NULL; in m25p_probe() local 715 part_probes, &parts, 0); in m25p_probe() 718 if (nr_parts <= 0 && data && data->parts) { in m25p_probe() 719 parts = data->parts; in m25p_probe() 728 i, parts[i].name, in m25p_probe() 729 (long long)parts[i].offset, in m25p_probe() 730 (long long)parts[i].size, in m25p_probe() 731 (long long)(parts[i].size >> 10)); in m25p_probe() 734 return add_mtd_partitions(&flash->mtd, parts, nr_parts); in m25p_probe()
|
D | mtd_dataflash.c | 682 struct mtd_partition *parts; in add_dataflash_otp() local 688 nr_parts = parse_mtd_partitions(device, part_probes, &parts, 0); in add_dataflash_otp() 691 if (nr_parts <= 0 && pdata && pdata->parts) { in add_dataflash_otp() 692 parts = pdata->parts; in add_dataflash_otp() 698 return add_mtd_partitions(device, parts, nr_parts); in add_dataflash_otp()
|