Home
last modified time | relevance | path

Searched refs:nr_parts (Results 1 – 23 of 23) sorted by relevance

/drivers/mtd/
Dofpart.c28 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/
Dsolutionengine.c58 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()
Dsa1100-flash.c137 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()
Dceiva.c278 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()
Dpxa2xx-flash.c35 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()
Dphysmap.c31 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()
Dintel_vr_nor.c46 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()
Dwr_sbc82xx_flash.c103 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()
Dphysmap_of.c42 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()
Dbfin-async-flash.c174 } else if (pdata->nr_parts) { in bfin_flash_probe()
176 add_mtd_partitions(state->mtd, pdata->parts, pdata->nr_parts); in bfin_flash_probe()
Domap_nor.c123 add_mtd_partitions(info->mtd, pdata->parts, pdata->nr_parts); in omapflash_probe()
/drivers/mtd/devices/
Dm25p80.c709 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()
Dmtd_dataflash.c683 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/
Dxen-blkfront.c397 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/
Dcafe_nand.c636 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()
Dmxc_nand.c856 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()
Dorion_nand.c108 num_part = board->nr_parts; in orion_nand_probe()
Dplat_nand.c25 int nr_parts; member
Dsh_flctl.c834 add_mtd_partitions(flctl_mtd, pdata->parts, pdata->nr_parts); in flctl_probe()
Dpxa3xx_nand.c1163 return add_mtd_partitions(mtd, pdata->parts, pdata->nr_parts); in pxa3xx_nand_probe()
/drivers/mtd/onenand/
Dgeneric.c80 add_mtd_partitions(&info->mtd, pdata->parts, pdata->nr_parts); in generic_onenand_probe()
Domap2.c709 pdata->nr_parts); in omap2_onenand_probe()
/drivers/spi/
Dspi_butterfly.c190 .nr_parts = ARRAY_SIZE(partitions),