Home
last modified time | relevance | path

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

12345

/drivers/mtd/parsers/
Dcmdlinepart.c63 struct mtd_partition *parts; member
89 struct mtd_partition *parts; in newpart() local
169 parts = newpart(s + 1, &s, num_parts, this_part + 1, in newpart()
171 if (IS_ERR(parts)) in newpart()
172 return parts; in newpart()
181 parts = kzalloc(alloc_size, GFP_KERNEL); in newpart()
182 if (!parts) in newpart()
184 extra_mem = (unsigned char *)(parts + *num_parts); in newpart()
191 parts[this_part].size = size; in newpart()
192 parts[this_part].offset = offset; in newpart()
[all …]
Dofpart_core.c23 int (*post_parse)(struct mtd_info *mtd, struct mtd_partition *parts, int nr_parts);
47 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()
132 parts[i].offset = of_read_number(reg, a_cells); in parse_fixed_partitions()
133 parts[i].size = of_read_number(reg + a_cells, s_cells); in parse_fixed_partitions()
134 parts[i].of_node = pp; in parse_fixed_partitions()
139 parts[i].name = partname; in parse_fixed_partitions()
142 parts[i].mask_flags |= MTD_WRITEABLE; in parse_fixed_partitions()
145 parts[i].mask_flags |= MTD_POWERUP_LOCK; in parse_fixed_partitions()
[all …]
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()
107 parts[curpart].offset = master->size - nvramlen; 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()
[all …]
Dbcm47xxpart.c90 struct mtd_partition *parts; in bcm47xxpart_parse() local
109 parts = kcalloc(BCM47XXPART_MAX_PARTS, sizeof(struct mtd_partition), in bcm47xxpart_parse()
111 if (!parts) in bcm47xxpart_parse()
116 kfree(parts); in bcm47xxpart_parse()
144 bcm47xxpart_add_part(&parts[curr_part++], "boot", in bcm47xxpart_parse()
154 bcm47xxpart_add_part(&parts[curr_part++], "board_data", in bcm47xxpart_parse()
161 bcm47xxpart_add_part(&parts[curr_part++], "factory", in bcm47xxpart_parse()
169 bcm47xxpart_add_part(&parts[curr_part++], "POT", offset, in bcm47xxpart_parse()
177 bcm47xxpart_add_part(&parts[curr_part++], "ML", offset, in bcm47xxpart_parse()
193 bcm47xxpart_add_part(&parts[curr_part++], "firmware", in bcm47xxpart_parse()
[all …]
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()
177 parts[rootfspart].offset = rootfsaddr; 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()
[all …]
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 …]
Dredboot.c78 struct mtd_partition *parts; in parse_redboot_partitions() local
242 parts = kzalloc(sizeof(*parts) * nrparts + nulllen + namelen, GFP_KERNEL); in parse_redboot_partitions()
244 if (!parts) { in parse_redboot_partitions()
249 nullname = (char *)&parts[nrparts]; in parse_redboot_partitions()
260 parts[0].name = nullname; in parse_redboot_partitions()
261 parts[0].size = fl->img->flash_base; in parse_redboot_partitions()
262 parts[0].offset = 0; in parse_redboot_partitions()
267 parts[i].size = fl->img->size; in parse_redboot_partitions()
268 parts[i].offset = fl->img->flash_base; in parse_redboot_partitions()
269 parts[i].name = names; in parse_redboot_partitions()
[all …]
Dqcomsmempart.c65 struct mtd_partition *parts; in parse_qcomsmem_part() local
125 parts = kcalloc(numparts, sizeof(*parts), GFP_KERNEL); in parse_qcomsmem_part()
126 if (!parts) in parse_qcomsmem_part()
144 parts[j].name = name; in parse_qcomsmem_part()
145 parts[j].offset = le32_to_cpu(pentry->offset) * mtd->erasesize; in parse_qcomsmem_part()
146 parts[j].mask_flags = pentry->attr; in parse_qcomsmem_part()
147 parts[j].size = le32_to_cpu(pentry->length) * mtd->erasesize; in parse_qcomsmem_part()
156 *pparts = parts; in parse_qcomsmem_part()
162 kfree(parts[j].name); in parse_qcomsmem_part()
163 kfree(parts); in parse_qcomsmem_part()
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
58 if (of_device_is_compatible(parts[i].of_node, "brcm,bcm4908-firmware")) { in bcm4908_partitions_post_parse()
59 if (fw_offset < 0 || parts[i].offset == fw_offset) in bcm4908_partitions_post_parse()
60 parts[i].name = "firmware"; in bcm4908_partitions_post_parse()
62 parts[i].name = "backup"; in bcm4908_partitions_post_parse()
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()
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()
Dofpart_linksys_ns.h7 struct mtd_partition *parts,
11 struct mtd_partition *parts, in linksys_ns_partitions_post_parse() argument
Dofpart_bcm4908.h6 int bcm4908_partitions_post_parse(struct mtd_info *mtd, struct mtd_partition *parts, int nr_parts);
8 static inline int bcm4908_partitions_post_parse(struct mtd_info *mtd, struct mtd_partition *parts, in bcm4908_partitions_post_parse() argument
/drivers/regulator/
Dqcom_rpm-regulator.c45 (((reg)->parts->fm.mask >> (reg)->parts->fm.shift) == 3)
53 const struct rpm_reg_parts *parts; member
203 vreg->parts->request_len); in rpm_reg_write()
210 const struct rpm_reg_parts *parts = vreg->parts; in rpm_reg_set_mV_sel() local
211 const struct request_member *req = &parts->mV; in rpm_reg_set_mV_sel()
237 const struct rpm_reg_parts *parts = vreg->parts; in rpm_reg_set_uV_sel() local
238 const struct request_member *req = &parts->uV; in rpm_reg_set_uV_sel()
270 const struct rpm_reg_parts *parts = vreg->parts; in rpm_reg_mV_enable() local
271 const struct request_member *req = &parts->mV; in rpm_reg_mV_enable()
289 const struct rpm_reg_parts *parts = vreg->parts; in rpm_reg_uV_enable() local
[all …]
/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum1_kvdl.c67 struct mlxsw_sp1_kvdl_part *parts[MLXSW_SP1_KVDL_PARTS_INFO_LEN]; member
78 part = kvdl->parts[i]; in mlxsw_sp1_kvdl_alloc_size_part()
95 part = kvdl->parts[i]; in mlxsw_sp1_kvdl_index_part()
254 kvdl->parts[i] = mlxsw_sp1_kvdl_part_init(mlxsw_sp, info, in mlxsw_sp1_kvdl_parts_init()
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()
[all …]
Dspectrum2_kvdl.c52 struct mlxsw_sp2_kvdl_part *parts[MLXSW_SP2_KVDL_PARTS_INFO_LEN]; member
151 struct mlxsw_sp2_kvdl_part *part = kvdl->parts[type]; in mlxsw_sp2_kvdl_alloc()
163 struct mlxsw_sp2_kvdl_part *part = kvdl->parts[type]; in mlxsw_sp2_kvdl_free()
229 kvdl->parts[i] = mlxsw_sp2_kvdl_part_init(mlxsw_sp, info); in mlxsw_sp2_kvdl_parts_init()
230 if (IS_ERR(kvdl->parts[i])) { in mlxsw_sp2_kvdl_parts_init()
231 err = PTR_ERR(kvdl->parts[i]); in mlxsw_sp2_kvdl_parts_init()
239 mlxsw_sp2_kvdl_part_fini(kvdl->parts[i]); in mlxsw_sp2_kvdl_parts_init()
248 mlxsw_sp2_kvdl_part_fini(kvdl->parts[i]); in mlxsw_sp2_kvdl_parts_fini()
/drivers/net/ethernet/sfc/
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()
Dsiena.c889 struct efx_mcdi_mtd_partition *parts, in siena_mtd_get_fw_subtypes() argument
902 parts[i].fw_subtype = fw_subtype_list[parts[i].nvram_type]; in siena_mtd_get_fw_subtypes()
909 struct efx_mcdi_mtd_partition *parts; in siena_mtd_probe() local
921 parts = kcalloc(hweight32(nvram_types), sizeof(*parts), GFP_KERNEL); in siena_mtd_probe()
922 if (!parts) in siena_mtd_probe()
930 rc = siena_mtd_probe_partition(efx, &parts[n_parts], in siena_mtd_probe()
941 rc = siena_mtd_get_fw_subtypes(efx, parts, n_parts); in siena_mtd_probe()
945 rc = efx_mtd_add(efx, &parts[0].common, n_parts, sizeof(*parts)); in siena_mtd_probe()
948 kfree(parts); in siena_mtd_probe()
/drivers/net/ethernet/sfc/falcon/
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()
Dfalcon.c924 struct falcon_mtd_partition *parts; in falcon_mtd_probe() local
932 parts = kcalloc(2, sizeof(*parts), GFP_KERNEL); in falcon_mtd_probe()
933 if (!parts) in falcon_mtd_probe()
939 parts[n_parts].spi = spi; in falcon_mtd_probe()
940 parts[n_parts].offset = FALCON_FLASH_BOOTCODE_START; in falcon_mtd_probe()
941 parts[n_parts].common.dev_type_name = "flash"; in falcon_mtd_probe()
942 parts[n_parts].common.type_name = "sfc_flash_bootrom"; in falcon_mtd_probe()
943 parts[n_parts].common.mtd.type = MTD_NORFLASH; in falcon_mtd_probe()
944 parts[n_parts].common.mtd.flags = MTD_CAP_NORFLASH; in falcon_mtd_probe()
945 parts[n_parts].common.mtd.size = spi->size - FALCON_FLASH_BOOTCODE_START; in falcon_mtd_probe()
[all …]
/drivers/mtd/nand/raw/
Ddiskonchip.c905 static inline int __init nftl_partscan(struct mtd_info *mtd, struct mtd_partition *parts) in nftl_partscan() argument
984 parts[0].name = " DiskOnChip Firmware / Media Header partition"; in nftl_partscan()
985 parts[0].offset = 0; in nftl_partscan()
986 parts[0].size = offs; in nftl_partscan()
990 parts[numparts].name = " DiskOnChip BDTL partition"; in nftl_partscan()
991 parts[numparts].offset = offs; in nftl_partscan()
992 parts[numparts].size = (mh->NumEraseUnits - numheaders) << this->bbt_erase_shift; in nftl_partscan()
994 offs += parts[numparts].size; in nftl_partscan()
998 parts[numparts].name = " DiskOnChip Remainder partition"; in nftl_partscan()
999 parts[numparts].offset = offs; in nftl_partscan()
[all …]
/drivers/irqchip/
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()
/drivers/mtd/maps/
Dvmu-flash.c47 struct vmupart *parts; member
69 if (src_ofs >= card->parts[partition].numblocks * card->blocklen) in ofs_to_block()
73 if (num > card->parts[partition].numblocks) in ofs_to_block()
124 pcache = card->parts[partition].pcache; in maple_vmu_read_block()
366 numblocks = card->parts[partition].numblocks; in vmu_flash_read()
372 pcache = card->parts[partition].pcache; in vmu_flash_read()
432 numblocks = card->parts[partition].numblocks; in vmu_flash_write()
469 pcache = card->parts[partition].pcache; in vmu_flash_write()
521 part_cur = &card->parts[card->partition]; in vmu_queryblocks()
580 kfree(((card->parts)[error]).pcache); in vmu_queryblocks()
[all …]
/drivers/mtd/
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()
/drivers/gpu/drm/amd/amdgpu/
DKconfig3 bool "Enable amdgpu support for SI parts"
16 bool "Enable amdgpu support for CIK parts"

12345