/drivers/mtd/ |
D | ofpart.c | 28 int nr_parts, i; in of_mtd_parse_partitions() local 32 nr_parts = 0; in of_mtd_parse_partitions() 34 nr_parts++; in of_mtd_parse_partitions() 36 if (nr_parts == 0) in of_mtd_parse_partitions() 39 *pparts = kzalloc(nr_parts * sizeof(**pparts), GFP_KERNEL); in of_mtd_parse_partitions() 71 return nr_parts; in of_mtd_parse_partitions()
|
/drivers/mtd/maps/ |
D | solutionengine.c | 58 int nr_parts = 0; in init_soleng_maps() local 95 nr_parts = parse_mtd_partitions(flash_mtd, probes, &parsed_parts, 0); in init_soleng_maps() 98 if (nr_parts <= 0) { in init_soleng_maps() 102 nr_parts = sizeof(superh_se_partitions)/sizeof(*parsed_parts); in init_soleng_maps() 106 if (nr_parts > 0) in init_soleng_maps() 107 add_mtd_partitions(flash_mtd, parsed_parts, nr_parts); in init_soleng_maps()
|
D | sa1100-flash.c | 137 unsigned int nr_parts; member 229 if (info->nr_parts == 0) in sa1100_destroy() 360 int err, nr_parts = 0; in sa1100_mtd_probe() local 375 nr_parts = parse_mtd_partitions(info->mtd, part_probes, &parts, 0); in sa1100_mtd_probe() 376 if (nr_parts > 0) { in sa1100_mtd_probe() 383 nr_parts = plat->nr_parts; in sa1100_mtd_probe() 387 if (nr_parts == 0) { in sa1100_mtd_probe() 394 add_mtd_partitions(info->mtd, parts, nr_parts); in sa1100_mtd_probe() 397 info->nr_parts = nr_parts; in sa1100_mtd_probe()
|
D | ceiva.c | 278 int nr_parts = 0; in clps_locate_partitions() local 283 nr_parts = parse_mtd_partitions(mtd, probes, &parsed_parts, 0); in clps_locate_partitions() 284 if (nr_parts > 0) { in clps_locate_partitions() 289 nr_parts = clps_static_partitions(&parsed_parts); in clps_locate_partitions() 290 if (nr_parts > 0) { in clps_locate_partitions() 294 printk("found: %d partitions\n", nr_parts); in clps_locate_partitions() 298 if (nr_parts == 0) { in clps_locate_partitions() 305 add_mtd_partitions(mtd, parsed_parts, nr_parts); in clps_locate_partitions()
|
D | pxa2xx-flash.c | 35 int nr_parts; member 67 info->nr_parts = flash->nr_parts; in pxa2xx_flash_probe() 103 info->nr_parts = ret; in pxa2xx_flash_probe() 108 if (info->nr_parts) { in pxa2xx_flash_probe() 110 info->nr_parts); in pxa2xx_flash_probe() 128 if (info->nr_parts) in pxa2xx_flash_remove()
|
D | physmap.c | 31 int nr_parts; member 51 if (info->nr_parts || physmap_data->nr_parts) in physmap_flash_remove() 60 if (info->nr_parts) in physmap_flash_remove() 176 info->nr_parts = err; in physmap_flash_probe() 180 if (physmap_data->nr_parts) { in physmap_flash_probe() 183 physmap_data->nr_parts); in physmap_flash_probe() 295 physmap_flash_data.nr_parts = num_parts; in physmap_set_partitions()
|
D | intel_vr_nor.c | 46 int nr_parts; member 68 if (p->nr_parts > 0) { in vr_nor_destroy_partitions() 87 p->nr_parts = parse_mtd_partitions(p->info, part_probes, &parts, 0); in vr_nor_init_partitions() 88 if (p->nr_parts > 0) in vr_nor_init_partitions() 89 err = add_mtd_partitions(p->info, parts, p->nr_parts); in vr_nor_init_partitions() 91 if (p->nr_parts <= 0) in vr_nor_init_partitions()
|
D | wr_sbc82xx_flash.c | 103 int nr_parts; in init_sbc82xx_flash() local 132 nr_parts = parse_mtd_partitions(sbcmtd[i], part_probes, in init_sbc82xx_flash() 134 if (nr_parts > 0) { in init_sbc82xx_flash() 135 add_mtd_partitions (sbcmtd[i], sbcmtd_parts[i], nr_parts); in init_sbc82xx_flash()
|
D | physmap_of.c | 42 int i, plen, nr_parts; in parse_obsolete_partitions() local 54 nr_parts = plen / sizeof(part[0]); in parse_obsolete_partitions() 56 info->parts = kzalloc(nr_parts * sizeof(*info->parts), GFP_KERNEL); in parse_obsolete_partitions() 62 for (i = 0; i < nr_parts; i++) { in parse_obsolete_partitions() 81 return nr_parts; in parse_obsolete_partitions()
|
D | bfin-async-flash.c | 174 } else if (pdata->nr_parts) { in bfin_flash_probe() 176 add_mtd_partitions(state->mtd, pdata->parts, pdata->nr_parts); in bfin_flash_probe()
|
D | omap_nor.c | 123 add_mtd_partitions(info->mtd, pdata->parts, pdata->nr_parts); in omapflash_probe()
|
/drivers/mtd/devices/ |
D | m25p80.c | 709 int nr_parts = 0; in m25p_probe() local 714 nr_parts = parse_mtd_partitions(&flash->mtd, in m25p_probe() 718 if (nr_parts <= 0 && data && data->parts) { in m25p_probe() 720 nr_parts = data->nr_parts; in m25p_probe() 723 if (nr_parts > 0) { in m25p_probe() 724 for (i = 0; i < nr_parts; i++) { in m25p_probe() 734 return add_mtd_partitions(&flash->mtd, parts, nr_parts); in m25p_probe() 736 } else if (data->nr_parts) in m25p_probe() 738 data->nr_parts, data->name); in m25p_probe()
|
D | mtd_dataflash.c | 683 int nr_parts = 0; 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() 693 nr_parts = pdata->nr_parts; in add_dataflash_otp() 696 if (nr_parts > 0) { in add_dataflash_otp() 698 return add_mtd_partitions(device, parts, nr_parts); in add_dataflash_otp() 700 } else if (pdata && pdata->nr_parts) in add_dataflash_otp() 702 pdata->nr_parts, device->name); in add_dataflash_otp()
|
/drivers/block/ |
D | xen-blkfront.c | 397 int nr_parts; in xlvbd_alloc_gendisk() local 410 nr_parts = PARTS_PER_DISK; in xlvbd_alloc_gendisk() 413 nr_parts = PARTS_PER_EXT_DISK; in xlvbd_alloc_gendisk() 416 if ((minor % nr_parts) == 0) in xlvbd_alloc_gendisk() 417 nr_minors = nr_parts; in xlvbd_alloc_gendisk() 423 offset = minor / nr_parts; in xlvbd_alloc_gendisk() 435 minor & (nr_parts - 1)); in xlvbd_alloc_gendisk() 440 minor & (nr_parts - 1)); in xlvbd_alloc_gendisk()
|
/drivers/mtd/nand/ |
D | cafe_nand.c | 636 int nr_parts; in cafe_nand_probe() local 811 nr_parts = parse_mtd_partitions(mtd, part_probes, &parts, 0); in cafe_nand_probe() 812 if (nr_parts > 0) { in cafe_nand_probe() 814 dev_info(&cafe->pdev->dev, "%d partitions found\n", nr_parts); in cafe_nand_probe() 815 add_mtd_partitions(mtd, parts, nr_parts); in cafe_nand_probe()
|
D | mxc_nand.c | 856 int err = 0, nr_parts = 0; in mxcnd_probe() local 967 nr_parts = in mxcnd_probe() 969 if (nr_parts > 0) in mxcnd_probe() 970 add_mtd_partitions(mtd, host->parts, nr_parts); in mxcnd_probe()
|
D | orion_nand.c | 108 num_part = board->nr_parts; in orion_nand_probe()
|
D | plat_nand.c | 25 int nr_parts; member
|
D | sh_flctl.c | 834 add_mtd_partitions(flctl_mtd, pdata->parts, pdata->nr_parts); in flctl_probe()
|
D | pxa3xx_nand.c | 1163 return add_mtd_partitions(mtd, pdata->parts, pdata->nr_parts); in pxa3xx_nand_probe()
|
/drivers/mtd/onenand/ |
D | generic.c | 80 add_mtd_partitions(&info->mtd, pdata->parts, pdata->nr_parts); in generic_onenand_probe()
|
D | omap2.c | 709 pdata->nr_parts); in omap2_onenand_probe()
|
/drivers/spi/ |
D | spi_butterfly.c | 190 .nr_parts = ARRAY_SIZE(partitions),
|