Home
last modified time | relevance | path

Searched refs:parts (Results 1 – 25 of 583) sorted by relevance

12345678910>>...24

/linux/block/partitions/
A Dcmdline.c130 *parts = NULL; in parse_parts()
173 *parts = newparts; in parse_parts()
186 while (*parts) { in cmdline_parts_free()
189 kfree(*parts); in cmdline_parts_free()
203 *parts = NULL; in cmdline_parts_parse()
209 next_parts = parts; in cmdline_parts_parse()
226 if (!*parts) { in cmdline_parts_parse()
245 while (parts && strncmp(bdev, parts->name, sizeof(parts->name))) in cmdline_parts_find()
246 parts = parts->next_parts; in cmdline_parts_find()
247 return parts; in cmdline_parts_find()
[all …]
A Dcore.c108 state->parts = vzalloc(array_size(nr, sizeof(state->parts[0]))); in allocate_partitions()
109 if (!state->parts) { in allocate_partitions()
121 vfree(state->parts); in free_partitions()
148 memset(state->parts, 0, state->limit * sizeof(state->parts[0])); in check_partition()
558 sector_t size = state->parts[p].size; in blk_add_partition()
559 sector_t from = state->parts[p].from; in blk_add_partition()
590 part = add_partition(disk, p, from, size, state->parts[p].flags, in blk_add_partition()
591 &state->parts[p].info); in blk_add_partition()
599 (state->parts[p].flags & ADDPART_FLAG_RAID)) in blk_add_partition()
/linux/drivers/mtd/parsers/
A Dcmdlinepart.c171 if (IS_ERR(parts)) in newpart()
172 return parts; in newpart()
182 if (!parts) in newpart()
203 this_part, parts[this_part].name, parts[this_part].offset, in newpart()
204 parts[this_part].size, parts[this_part].mask_flags)); in newpart()
214 return parts; in newpart()
283 if (IS_ERR(parts)) { in mtdpart_setup_real()
291 return PTR_ERR(parts); in mtdpart_setup_real()
298 this_mtd->parts = parts; in mtdpart_setup_real()
381 memmove(&part->parts[i], &part->parts[i + 1], in parse_cmdline_partitions()
[all …]
A Dofpart_core.c47 struct mtd_partition *parts; in parse_fixed_partitions() local
97 parts = kcalloc(nr_parts, sizeof(*parts), GFP_KERNEL); in parse_fixed_partitions()
98 if (!parts) in parse_fixed_partitions()
134 parts[i].of_node = pp; in parse_fixed_partitions()
139 parts[i].name = partname; in parse_fixed_partitions()
159 *pparts = parts; in parse_fixed_partitions()
168 kfree(parts); in parse_fixed_partitions()
213 parts = kcalloc(nr_parts, sizeof(*parts), GFP_KERNEL); in parse_ofoldpart_partitions()
214 if (!parts) in parse_ofoldpart_partitions()
229 parts[i].name = names; in parse_ofoldpart_partitions()
[all …]
A Dbcm63xxpart.c83 struct mtd_partition *parts; in bcm63xx_parse_cfe_nor_partitions() local
96 parts = kzalloc(sizeof(*parts) * nrparts + 10 * nrparts, GFP_KERNEL); in bcm63xx_parse_cfe_nor_partitions()
97 if (!parts) in bcm63xx_parse_cfe_nor_partitions()
101 parts[curpart].name = "CFE"; in bcm63xx_parse_cfe_nor_partitions()
102 parts[curpart].offset = 0; in bcm63xx_parse_cfe_nor_partitions()
103 parts[curpart].size = cfelen; in bcm63xx_parse_cfe_nor_partitions()
106 parts[curpart].name = "nvram"; in bcm63xx_parse_cfe_nor_partitions()
108 parts[curpart].size = nvramlen; in bcm63xx_parse_cfe_nor_partitions()
112 parts[curpart].name = "linux"; in bcm63xx_parse_cfe_nor_partitions()
119 parts[i].name, parts[i].offset, parts[i].size); in bcm63xx_parse_cfe_nor_partitions()
[all …]
A Dbcm47xxpart.c90 struct mtd_partition *parts; in bcm47xxpart_parse() local
111 if (!parts) in bcm47xxpart_parse()
116 kfree(parts); in bcm47xxpart_parse()
144 bcm47xxpart_add_part(&parts[curr_part++], "boot", in bcm47xxpart_parse()
219 bcm47xxpart_add_part(&parts[curr_part++], "rootfs", in bcm47xxpart_parse()
230 bcm47xxpart_add_part(&parts[curr_part++], "nvram", in bcm47xxpart_parse()
270 bcm47xxpart_add_part(&parts[curr_part++], "nvram", in bcm47xxpart_parse()
284 parts[i + 1].offset : master->size; in bcm47xxpart_parse()
286 parts[i].size = next_part_offset - parts[i].offset; in bcm47xxpart_parse()
291 struct mtd_partition *trx = &parts[trx_parts[i]]; in bcm47xxpart_parse()
[all …]
A Dparser_imagetag.c66 struct mtd_partition *parts; in bcm963xx_parse_imagetag_partitions() local
153 parts = kzalloc(sizeof(*parts) * nrparts + 10 * nrparts, GFP_KERNEL); in bcm963xx_parse_imagetag_partitions()
154 if (!parts) { in bcm963xx_parse_imagetag_partitions()
165 parts[kernelpart].name = "kernel"; in bcm963xx_parse_imagetag_partitions()
166 parts[kernelpart].offset = kerneladdr; in bcm963xx_parse_imagetag_partitions()
167 parts[kernelpart].size = kernellen; in bcm963xx_parse_imagetag_partitions()
176 parts[rootfspart].name = "rootfs"; in bcm963xx_parse_imagetag_partitions()
178 parts[rootfspart].size = rootfslen; in bcm963xx_parse_imagetag_partitions()
180 parts[rootfspart].size += sparelen; in bcm963xx_parse_imagetag_partitions()
186 parts[i].name, parts[i].offset, parts[i].size); in bcm963xx_parse_imagetag_partitions()
[all …]
A Dparser_trx.c55 struct mtd_partition *parts; in parser_trx_parse() local
68 parts = kcalloc(TRX_PARSER_MAX_PARTS, sizeof(struct mtd_partition), in parser_trx_parse()
70 if (!parts) in parser_trx_parse()
76 kfree(parts); in parser_trx_parse()
81 kfree(parts); in parser_trx_parse()
87 part = &parts[curr_part++]; in parser_trx_parse()
94 part = &parts[curr_part++]; in parser_trx_parse()
101 part = &parts[curr_part++]; in parser_trx_parse()
113 parts[i + 1].offset : mtd->size; in parser_trx_parse()
115 parts[i].size = next_part_offset - parts[i].offset; in parser_trx_parse()
[all …]
A Dredboot.c77 struct mtd_partition *parts; in parse_redboot_partitions() local
241 parts = kzalloc(sizeof(*parts) * nrparts + nulllen + namelen, GFP_KERNEL); in parse_redboot_partitions()
243 if (!parts) { in parse_redboot_partitions()
259 parts[0].name = nullname; in parse_redboot_partitions()
261 parts[0].offset = 0; in parse_redboot_partitions()
266 parts[i].size = fl->img->size; in parse_redboot_partitions()
268 parts[i].name = names; in parse_redboot_partitions()
283 parts[i].offset = parts[i - 1].size + parts[i - 1].offset; in parse_redboot_partitions()
284 parts[i].size = fl->next->img->flash_base - parts[i].offset; in parse_redboot_partitions()
285 parts[i].name = nullname; in parse_redboot_partitions()
[all …]
A Dqcomsmempart.c64 struct mtd_partition *parts; in parse_qcomsmem_part() local
119 parts = kcalloc(numparts, sizeof(*parts), GFP_KERNEL); in parse_qcomsmem_part()
120 if (!parts) in parse_qcomsmem_part()
138 parts[i].name = name; in parse_qcomsmem_part()
139 parts[i].offset = le32_to_cpu(pentry->offset) * mtd->erasesize; in parse_qcomsmem_part()
140 parts[i].mask_flags = pentry->attr; in parse_qcomsmem_part()
141 parts[i].size = le32_to_cpu(pentry->length) * mtd->erasesize; in parse_qcomsmem_part()
149 *pparts = parts; in parse_qcomsmem_part()
155 kfree(parts[i].name); in parse_qcomsmem_part()
156 kfree(parts); in parse_qcomsmem_part()
A Dofpart_bcm4908.c47 int bcm4908_partitions_post_parse(struct mtd_info *mtd, struct mtd_partition *parts, int nr_parts) in bcm4908_partitions_post_parse() argument
55 if (of_device_is_compatible(parts[i].of_node, "brcm,bcm4908-firmware")) { in bcm4908_partitions_post_parse()
56 if (fw_offset < 0 || parts[i].offset == fw_offset) in bcm4908_partitions_post_parse()
57 parts[i].name = "firmware"; in bcm4908_partitions_post_parse()
59 parts[i].name = "backup"; in bcm4908_partitions_post_parse()
A Dofpart_linksys_ns.c33 struct mtd_partition *parts, in linksys_ns_partitions_post_parse() argument
41 if (of_device_is_compatible(parts[i].of_node, "linksys,ns-firmware")) { in linksys_ns_partitions_post_parse()
43 parts[i].name = "firmware"; in linksys_ns_partitions_post_parse()
45 parts[i].name = "backup"; in linksys_ns_partitions_post_parse()
A Dafs.c327 struct mtd_partition *parts; in parse_afs_partitions() local
347 parts = kzalloc(sz, GFP_KERNEL); in parse_afs_partitions()
348 if (!parts) in parse_afs_partitions()
356 ret = afs_parse_v1_partition(mtd, off, &parts[i]); in parse_afs_partitions()
362 ret = afs_parse_v2_partition(mtd, off, &parts[i]); in parse_afs_partitions()
369 *pparts = parts; in parse_afs_partitions()
374 kfree(parts[i].name); in parse_afs_partitions()
375 kfree(parts); in parse_afs_partitions()
/linux/arch/mips/alchemy/devboards/
A Dplatform.c157 struct mtd_partition *parts; in db1x_register_norflash() local
166 if (!parts) in db1x_register_norflash()
192 parts[i].offset = 0; in db1x_register_norflash()
193 parts[i].name = "User FS"; in db1x_register_norflash()
194 parts[i].size = size / 2; in db1x_register_norflash()
204 parts[i].name = "YAMON"; in db1x_register_norflash()
205 parts[i].size = YAMON_SIZE; in db1x_register_norflash()
222 parts[i].name = "User FS"; in db1x_register_norflash()
223 parts[i].size = size / 2; in db1x_register_norflash()
228 pfd->parts = parts; in db1x_register_norflash()
[all …]
/linux/drivers/regulator/
A Dqcom_rpm-regulator.c45 (((reg)->parts->fm.mask >> (reg)->parts->fm.shift) == 3)
210 const struct rpm_reg_parts *parts = vreg->parts; in rpm_reg_set_mV_sel() local
237 const struct rpm_reg_parts *parts = vreg->parts; in rpm_reg_set_uV_sel() local
270 const struct rpm_reg_parts *parts = vreg->parts; in rpm_reg_mV_enable() local
289 const struct rpm_reg_parts *parts = vreg->parts; in rpm_reg_uV_enable() local
308 const struct rpm_reg_parts *parts = vreg->parts; in rpm_reg_switch_enable() local
327 const struct rpm_reg_parts *parts = vreg->parts; in rpm_reg_mV_disable() local
346 const struct rpm_reg_parts *parts = vreg->parts; in rpm_reg_uV_disable() local
365 const struct rpm_reg_parts *parts = vreg->parts; in rpm_reg_switch_disable() local
391 const struct rpm_reg_parts *parts = vreg->parts; in rpm_reg_set_load() local
[all …]
/linux/arch/mips/txx9/rbtx4939/
A Dsetup.c392 parts[i].name = names[i]; in rbtx4939_mtd_init()
393 parts[i].size = 0x400000; in rbtx4939_mtd_init()
402 parts[i].name = names[i]; in rbtx4939_mtd_init()
403 parts[i].size = 0x400000; in rbtx4939_mtd_init()
409 parts[0].name = "boot"; in rbtx4939_mtd_init()
410 parts[0].offset = 0xc00000; in rbtx4939_mtd_init()
411 parts[0].size = 0x400000; in rbtx4939_mtd_init()
412 parts[1].name = "user"; in rbtx4939_mtd_init()
413 parts[1].offset = 0; in rbtx4939_mtd_init()
414 parts[1].size = 0xc00000; in rbtx4939_mtd_init()
[all …]
/linux/drivers/net/ethernet/mellanox/mlxsw/
A Dspectrum1_kvdl.c78 part = kvdl->parts[i]; in mlxsw_sp1_kvdl_alloc_size_part()
95 part = kvdl->parts[i]; in mlxsw_sp1_kvdl_index_part()
256 if (IS_ERR(kvdl->parts[i])) { in mlxsw_sp1_kvdl_parts_init()
257 err = PTR_ERR(kvdl->parts[i]); in mlxsw_sp1_kvdl_parts_init()
260 part_prev = kvdl->parts[i]; in mlxsw_sp1_kvdl_parts_init()
266 mlxsw_sp1_kvdl_part_fini(kvdl->parts[i]); in mlxsw_sp1_kvdl_parts_init()
275 mlxsw_sp1_kvdl_part_fini(kvdl->parts[i]); in mlxsw_sp1_kvdl_parts_fini()
301 occ += mlxsw_sp1_kvdl_part_occ(kvdl->parts[i]); in mlxsw_sp1_kvdl_occ_get()
311 part = kvdl->parts[MLXSW_SP1_KVDL_PART_ID_SINGLE]; in mlxsw_sp1_kvdl_single_occ_get()
320 part = kvdl->parts[MLXSW_SP1_KVDL_PART_ID_CHUNKS]; in mlxsw_sp1_kvdl_chunks_occ_get()
[all …]
A Dspectrum2_kvdl.c53 struct mlxsw_sp2_kvdl_part *parts[MLXSW_SP2_KVDL_PARTS_INFO_LEN]; member
152 struct mlxsw_sp2_kvdl_part *part = kvdl->parts[type]; in mlxsw_sp2_kvdl_alloc()
164 struct mlxsw_sp2_kvdl_part *part = kvdl->parts[type]; in mlxsw_sp2_kvdl_free()
230 kvdl->parts[i] = mlxsw_sp2_kvdl_part_init(mlxsw_sp, info); in mlxsw_sp2_kvdl_parts_init()
231 if (IS_ERR(kvdl->parts[i])) { in mlxsw_sp2_kvdl_parts_init()
232 err = PTR_ERR(kvdl->parts[i]); in mlxsw_sp2_kvdl_parts_init()
240 mlxsw_sp2_kvdl_part_fini(kvdl->parts[i]); in mlxsw_sp2_kvdl_parts_init()
249 mlxsw_sp2_kvdl_part_fini(kvdl->parts[i]); in mlxsw_sp2_kvdl_parts_fini()
/linux/drivers/net/ethernet/sfc/
A Dmtd.c54 int efx_mtd_add(struct efx_nic *efx, struct efx_mtd_partition *parts, in efx_mtd_add() argument
61 part = (struct efx_mtd_partition *)((char *)parts + in efx_mtd_add()
90 part = (struct efx_mtd_partition *)((char *)parts + in efx_mtd_add()
100 struct efx_mtd_partition *parts, *part, *next; in efx_mtd_remove() local
107 parts = list_first_entry(&efx->mtd_list, struct efx_mtd_partition, in efx_mtd_remove()
113 kfree(parts); in efx_mtd_remove()
/linux/drivers/net/ethernet/sfc/falcon/
A Dmtd.c54 int ef4_mtd_add(struct ef4_nic *efx, struct ef4_mtd_partition *parts, in ef4_mtd_add() argument
61 part = (struct ef4_mtd_partition *)((char *)parts + in ef4_mtd_add()
87 part = (struct ef4_mtd_partition *)((char *)parts + in ef4_mtd_add()
97 struct ef4_mtd_partition *parts, *part, *next; in ef4_mtd_remove() local
104 parts = list_first_entry(&efx->mtd_list, struct ef4_mtd_partition, in ef4_mtd_remove()
110 kfree(parts); in ef4_mtd_remove()
/linux/drivers/mtd/nand/raw/
A Ddiskonchip.c985 parts[0].offset = 0; in nftl_partscan()
986 parts[0].size = offs; in nftl_partscan()
991 parts[numparts].offset = offs; in nftl_partscan()
994 offs += parts[numparts].size; in nftl_partscan()
999 parts[numparts].offset = offs; in nftl_partscan()
1100 parts[0].offset = 0; in inftl_partscan()
1121 parts[numparts].size = end - parts[numparts].offset; in inftl_partscan()
1135 struct mtd_partition parts[2]; in nftl_scan_bbt() local
1137 memset((char *)parts, 0, sizeof(parts)); in nftl_scan_bbt()
1170 struct mtd_partition parts[5]; in inftl_scan_bbt() local
[all …]
/linux/drivers/irqchip/
A Dirq-partition-percpu.c18 struct partition_affinity *parts; member
28 return cpumask_test_cpu(cpu, &part->parts[hwirq].mask); in partition_check_cpu()
154 irq_set_percpu_devid_partition(virq, &part->parts[hwirq].mask); in partition_domain_alloc()
180 if (desc->parts[i].partition_id == partition_id) { in partition_translate_id()
181 part = &desc->parts[i]; in partition_translate_id()
195 struct partition_affinity *parts, in partition_create_desc() argument
224 desc->parts = parts; in partition_create_desc()
/linux/drivers/mtd/maps/
A Dvmu-flash.c47 struct vmupart *parts; member
73 if (num > card->parts[partition].numblocks) in ofs_to_block()
124 pcache = card->parts[partition].pcache; in maple_vmu_read_block()
372 pcache = card->parts[partition].pcache; in vmu_flash_read()
469 pcache = card->parts[partition].pcache; in vmu_flash_write()
580 kfree(((card->parts)[error]).pcache); in vmu_queryblocks()
581 ((card->parts)[error]).pcache = NULL; in vmu_queryblocks()
632 if (!card->parts) { in vmu_connect()
684 kfree(card->parts); in vmu_connect()
703 kfree(((card->parts)[x]).name); in vmu_disconnect()
[all …]
/linux/drivers/mtd/
A Dmtdpart.c393 const struct mtd_partition *parts, in add_mtd_partitions() argument
404 child = allocate_partition(parent, parts + i, i, cur_offset); in add_mtd_partitions()
427 parse_mtd_partitions(child, parts[i].types, NULL); in add_mtd_partitions()
521 ret = (*parser->parse_fn)(master, &pparts->parts, data); in mtd_part_do_parse()
679 err = add_mtd_partitions(master, pparts.parts, in parse_mtd_partitions()
694 void mtd_part_parser_cleanup(struct mtd_partitions *parts) in mtd_part_parser_cleanup() argument
698 if (!parts) in mtd_part_parser_cleanup()
701 parser = parts->parser; in mtd_part_parser_cleanup()
704 parser->cleanup(parts->parts, parts->nr_parts); in mtd_part_parser_cleanup()
/linux/arch/mips/txx9/generic/
A Dsetup.c619 static struct mtd_partition parts[2]; in txx9_physmap_flash_init() local
623 if (pdata->nr_parts == 0 && !pdata->parts && in txx9_physmap_flash_init()
625 !parts[0].name) { in txx9_physmap_flash_init()
626 parts[0].name = "boot"; in txx9_physmap_flash_init()
627 parts[0].offset = 0x1fc00000 - addr; in txx9_physmap_flash_init()
628 parts[0].size = addr + size - 0x1fc00000; in txx9_physmap_flash_init()
629 parts[1].name = "user"; in txx9_physmap_flash_init()
630 parts[1].offset = 0; in txx9_physmap_flash_init()
631 parts[1].size = 0x1fc00000 - addr; in txx9_physmap_flash_init()
633 pdata_part.nr_parts = ARRAY_SIZE(parts); in txx9_physmap_flash_init()
[all …]

Completed in 47 milliseconds

12345678910>>...24