Home
last modified time | relevance | path

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

123

/linux/drivers/mtd/parsers/
H A Dofpart_core.c23 int (*post_parse)(struct mtd_info *mtd, struct mtd_partition *parts, int nr_parts);
56 int nr_parts, i, ret = 0; in parse_fixed_partitions() local
91 nr_parts = 0; in parse_fixed_partitions()
96 nr_parts++; in parse_fixed_partitions()
99 if (nr_parts == 0) { in parse_fixed_partitions()
105 parts = kzalloc_objs(*parts, nr_parts); in parse_fixed_partitions()
129 nr_parts--; in parse_fixed_partitions()
183 if (!nr_parts) in parse_fixed_partitions()
187 quirks->post_parse(master, parts, nr_parts); in parse_fixed_partitions()
193 return nr_parts; in parse_fixed_partitions()
[all …]
H A Dscpart.c145 int nr_parts = 0; in scpart_parse() local
195 parts[nr_parts].offset = scpart_map[n].part_offs; in scpart_parse()
196 parts[nr_parts].size = scpart_map[n].part_bytes; in scpart_parse()
197 parts[nr_parts].of_node = pp; in scpart_parse()
200 parts[nr_parts].name = partname; in scpart_parse()
202 parts[nr_parts].mask_flags |= MTD_WRITEABLE; in scpart_parse()
204 parts[nr_parts].mask_flags |= MTD_POWERUP_LOCK; in scpart_parse()
209 nr_parts++; in scpart_parse()
212 if (nr_parts > 0) { in scpart_parse()
214 res = nr_parts; in scpart_parse()
H A Dofpart_linksys_ns.c34 int nr_parts) in linksys_ns_partitions_post_parse() argument
40 for (i = 0; i < nr_parts; i++) { in linksys_ns_partitions_post_parse()
H A Dofpart_bcm4908.c50 int bcm4908_partitions_post_parse(struct mtd_info *mtd, struct mtd_partition *parts, int nr_parts) in bcm4908_partitions_post_parse() argument
57 for (i = 0; i < nr_parts; i++) { in bcm4908_partitions_post_parse()
H A Dtplink_safeloader.c129 int nr_parts) in mtd_parser_tplink_safeloader_cleanup() argument
133 for (i = 0; i < nr_parts; i++) in mtd_parser_tplink_safeloader_cleanup()
H A Dqcomsmempart.c171 int nr_parts) in parse_qcomsmem_cleanup() argument
175 for (i = 0; i < nr_parts; i++) in parse_qcomsmem_cleanup()
/linux/include/linux/mtd/
H A Dpartitions.h85 void (*cleanup)(const struct mtd_partition *pparts, int nr_parts);
91 int nr_parts; member
H A Dphysmap.h24 unsigned int nr_parts; member
/linux/drivers/mtd/
H A Dmtdpart.c479 int nr_parts) in mtd_part_parser_cleanup_default() argument
538 pparts->nr_parts = ret; in mtd_part_do_parse()
706 pparts.nr_parts); in parse_mtd_partitions()
708 return err ? err : pparts.nr_parts; in parse_mtd_partitions()
730 parser->cleanup(parts->parts, parts->nr_parts); in mtd_part_parser_cleanup()
/linux/include/linux/spi/
H A Dflash.h25 unsigned int nr_parts; member
/linux/include/linux/platform_data/
H A Dmtd-nand-pxa3xx.h22 unsigned int nr_parts; member
H A Dmtd-orion_nand.h15 u32 nr_parts; member
/linux/arch/arm/include/asm/mach/
H A Dflash.h33 unsigned int nr_parts; member
/linux/arch/mips/cobalt/
H A Dmtd.c22 .nr_parts = 1,
/linux/arch/m68k/coldfire/
H A Dfirebee.c57 .nr_parts = ARRAY_SIZE(firebee_flash_parts),
H A Dstmark2.c41 .nr_parts = ARRAY_SIZE(stmark2_partitions),
H A Damcore.c102 .nr_parts = ARRAY_SIZE(amcore_partitions),
/linux/arch/sh/boards/mach-rsk/
H A Dsetup.c46 .nr_parts = ARRAY_SIZE(rsk_partitions),
/linux/arch/sh/boards/
H A Dboard-espt.c39 .nr_parts = ARRAY_SIZE(espt_nor_flash_partitions),
H A Dboard-edosk7760.c56 .nr_parts = ARRAY_SIZE(edosk7760_nor_flash_partitions),
H A Dboard-apsh4a3a.c48 .nr_parts = ARRAY_SIZE(nor_flash_partitions),
H A Dboard-urquell.c122 .nr_parts = ARRAY_SIZE(nor_flash_partitions),
/linux/drivers/irqchip/
H A Dirq-gic-v3.c69 unsigned int nr_parts; member
1740 for (int i = 0; i < gic_data.nr_parts; i++) { in gic_irq_get_fwspec_info()
2082 int nr_parts; in gic_populate_ppi_partitions() local
2089 nr_parts = of_get_child_count(parts_node); in gic_populate_ppi_partitions()
2090 if (!nr_parts) in gic_populate_ppi_partitions()
2093 parts = kzalloc_objs(*parts, nr_parts); in gic_populate_ppi_partitions()
2143 gic_data.nr_parts = nr_parts; in gic_populate_ppi_partitions()
/linux/drivers/mtd/nand/onenand/
H A Dgeneric.c72 pdata ? pdata->nr_parts : 0); in generic_onenand_probe()
/linux/arch/arm/mach-pxa/
H A Dgumstix.c70 .nr_parts = ARRAY_SIZE(gumstix_partitions),

123