Home
last modified time | relevance | path

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

12

/drivers/mtd/parsers/
Dofpart.c33 int nr_parts, i, ret = 0; in parse_fixed_partitions() local
59 nr_parts = 0; in parse_fixed_partitions()
64 nr_parts++; in parse_fixed_partitions()
67 if (nr_parts == 0) in parse_fixed_partitions()
70 parts = kcalloc(nr_parts, sizeof(*parts), GFP_KERNEL); in parse_fixed_partitions()
91 nr_parts--; in parse_fixed_partitions()
123 if (!nr_parts) in parse_fixed_partitions()
127 return nr_parts; in parse_fixed_partitions()
157 int i, plen, nr_parts; in parse_ofoldpart_partitions() local
174 nr_parts = plen / sizeof(part[0]); in parse_ofoldpart_partitions()
[all …]
/drivers/irqchip/
Dirq-partition-percpu.c17 int nr_parts; member
122 for_each_set_bit(hwirq, part->bitmap, part->nr_parts) { in partition_handle_irq()
127 if (unlikely(hwirq == part->nr_parts)) { in partition_handle_irq()
182 for (i = 0; i < desc->nr_parts; i++) { in partition_translate_id()
199 int nr_parts, in partition_create_desc() argument
216 d = irq_domain_create_linear(fwnode, nr_parts, &desc->ops, desc); in partition_create_desc()
221 desc->bitmap = kcalloc(BITS_TO_LONGS(nr_parts), sizeof(long), in partition_create_desc()
227 desc->nr_parts = nr_parts; in partition_create_desc()
Dirq-gic-v3.c1610 int nr_parts; in gic_populate_ppi_partitions() local
1621 nr_parts = of_get_child_count(parts_node); in gic_populate_ppi_partitions()
1623 if (!nr_parts) in gic_populate_ppi_partitions()
1626 parts = kcalloc(nr_parts, sizeof(*parts), GFP_KERNEL); in gic_populate_ppi_partitions()
1688 desc = partition_create_desc(gic_data.fwnode, parts, nr_parts, in gic_populate_ppi_partitions()
/drivers/mtd/
Dmtdpart.c786 int nr_parts) in mtd_part_parser_cleanup_default() argument
845 pparts->nr_parts = ret; in mtd_part_do_parse()
996 pparts.nr_parts); in parse_mtd_partitions()
998 return err ? err : pparts.nr_parts; in parse_mtd_partitions()
1020 parser->cleanup(parts->parts, parts->nr_parts); in mtd_part_parser_cleanup()
Dmtdcore.c814 int nr_parts) in mtd_device_parse_register() argument
830 else if (nr_parts) in mtd_device_parse_register()
831 ret = add_mtd_partitions(mtd, parts, nr_parts); in mtd_device_parse_register()
/drivers/mtd/nand/onenand/
Dgeneric.c67 pdata ? pdata->nr_parts : 0); in generic_onenand_probe()
Dsamsung.c934 pdata ? pdata->nr_parts : 0); in s3c_onenand_probe()
/drivers/mtd/maps/
Drbtx4939-flash.c97 err = mtd_device_register(info->mtd, pdata->parts, pdata->nr_parts); in rbtx4939_flash_probe()
Dpxa2xx-flash.c95 flash->nr_parts); in pxa2xx_flash_probe()
Dixp4xx.c236 plat->parts, plat->nr_parts); in ixp4xx_flash_probe()
Dsa1100-flash.c280 plat->nr_parts); in sa1100_mtd_probe()
Dphysmap-core.c422 info->nparts = physmap_data->nr_parts; in physmap_flash_pdata_init()
/drivers/staging/kpc2000/
Dkpc2000_spi.c50 .nr_parts = ARRAY_SIZE(p2kr0_spi0_parts),
55 .nr_parts = ARRAY_SIZE(p2kr0_spi1_parts),
/drivers/mmc/core/
Dmmc.c304 card->part[card->nr_parts].size = size; in mmc_part_add()
305 card->part[card->nr_parts].part_cfg = part_cfg; in mmc_part_add()
306 sprintf(card->part[card->nr_parts].name, name, idx); in mmc_part_add()
307 card->part[card->nr_parts].force_ro = ro; in mmc_part_add()
308 card->part[card->nr_parts].area_type = area_type; in mmc_part_add()
309 card->nr_parts++; in mmc_part_add()
/drivers/mtd/nand/raw/
Dorion_nand.c181 ret = mtd_device_register(mtd, board->parts, board->nr_parts); in orion_nand_probe()
Ddavinci_nand.c799 ret = mtd_device_register(mtd, pdata->parts, pdata->nr_parts); in nand_davinci_probe()
Dsh_flctl.c1192 ret = mtd_device_register(flctl_mtd, pdata->parts, pdata->nr_parts); in flctl_probe()
Dmxc_nand.c1902 host->pdata.nr_parts); in mxcnd_probe()
Dmarvell_nand.c2662 ret = mtd_device_register(mtd, pdata->parts, pdata->nr_parts); in marvell_nand_chip_init()
/drivers/block/
Dxen-blkfront.c1101 int nr_parts; in xlvbd_alloc_gendisk() local
1117 nr_parts = PARTS_PER_DISK; in xlvbd_alloc_gendisk()
1120 nr_parts = PARTS_PER_EXT_DISK; in xlvbd_alloc_gendisk()
1121 offset = minor / nr_parts; in xlvbd_alloc_gendisk()
1133 if ((minor % nr_parts) == 0) in xlvbd_alloc_gendisk()
1134 nr_minors = nr_parts; in xlvbd_alloc_gendisk()
1152 "%d", minor & (nr_parts - 1)); in xlvbd_alloc_gendisk()
/drivers/mtd/devices/
Dmchp23k256.c205 data ? data->nr_parts : 0); in mchp23k256_probe()
Dsst25l.c394 data ? data->nr_parts : 0); in sst25l_probe()
Dmtd_dataflash.c663 pdata ? pdata->nr_parts : 0); in add_dataflash_otp()
/drivers/spi/
Dspi-butterfly.c170 .nr_parts = ARRAY_SIZE(partitions),
/drivers/media/pci/netup_unidvb/
Dnetup_unidvb_spi.c58 .nr_parts = 1,

12