Home
last modified time | relevance | path

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

12345678910>>...21

/Linux-v5.4/drivers/mtd/parsers/
Dcmdlinepart.c63 struct mtd_partition *parts; member
89 struct mtd_partition *parts; in newpart() local
162 parts = newpart(s + 1, &s, num_parts, this_part + 1, in newpart()
164 if (IS_ERR(parts)) in newpart()
165 return parts; in newpart()
174 parts = kzalloc(alloc_size, GFP_KERNEL); in newpart()
175 if (!parts) in newpart()
177 extra_mem = (unsigned char *)(parts + *num_parts); in newpart()
184 parts[this_part].size = size; in newpart()
185 parts[this_part].offset = offset; in newpart()
[all …]
Dofpart.c28 struct mtd_partition *parts; in parse_fixed_partitions() local
70 parts = kcalloc(nr_parts, sizeof(*parts), GFP_KERNEL); in parse_fixed_partitions()
71 if (!parts) in parse_fixed_partitions()
105 parts[i].offset = of_read_number(reg, a_cells); in parse_fixed_partitions()
106 parts[i].size = of_read_number(reg + a_cells, s_cells); in parse_fixed_partitions()
107 parts[i].of_node = pp; in parse_fixed_partitions()
112 parts[i].name = partname; in parse_fixed_partitions()
115 parts[i].mask_flags |= MTD_WRITEABLE; in parse_fixed_partitions()
118 parts[i].mask_flags |= MTD_POWERUP_LOCK; in parse_fixed_partitions()
126 *pparts = parts; in parse_fixed_partitions()
[all …]
Dbcm63xxpart.c91 struct mtd_partition *parts; in bcm63xx_parse_cfe_nor_partitions() local
104 parts = kzalloc(sizeof(*parts) * nrparts + 10 * nrparts, GFP_KERNEL); in bcm63xx_parse_cfe_nor_partitions()
105 if (!parts) in bcm63xx_parse_cfe_nor_partitions()
109 parts[curpart].name = "CFE"; in bcm63xx_parse_cfe_nor_partitions()
110 parts[curpart].offset = 0; in bcm63xx_parse_cfe_nor_partitions()
111 parts[curpart].size = cfelen; in bcm63xx_parse_cfe_nor_partitions()
114 parts[curpart].name = "nvram"; in bcm63xx_parse_cfe_nor_partitions()
115 parts[curpart].offset = master->size - nvramlen; in bcm63xx_parse_cfe_nor_partitions()
116 parts[curpart].size = nvramlen; in bcm63xx_parse_cfe_nor_partitions()
120 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_trx.c54 struct mtd_partition *parts; in parser_trx_parse() local
61 parts = kcalloc(TRX_PARSER_MAX_PARTS, sizeof(struct mtd_partition), in parser_trx_parse()
63 if (!parts) in parser_trx_parse()
69 kfree(parts); in parser_trx_parse()
74 kfree(parts); in parser_trx_parse()
80 part = &parts[curr_part++]; in parser_trx_parse()
87 part = &parts[curr_part++]; in parser_trx_parse()
94 part = &parts[curr_part++]; in parser_trx_parse()
106 parts[i + 1].offset : mtd->size; in parser_trx_parse()
108 parts[i].size = next_part_offset - parts[i].offset; in parser_trx_parse()
[all …]
Dparser_imagetag.c66 struct mtd_partition *parts; in bcm963xx_parse_imagetag_partitions() local
149 parts = kzalloc(sizeof(*parts) * nrparts + 10 * nrparts, GFP_KERNEL); in bcm963xx_parse_imagetag_partitions()
150 if (!parts) { in bcm963xx_parse_imagetag_partitions()
161 parts[kernelpart].name = "kernel"; in bcm963xx_parse_imagetag_partitions()
162 parts[kernelpart].offset = kerneladdr; in bcm963xx_parse_imagetag_partitions()
163 parts[kernelpart].size = kernellen; in bcm963xx_parse_imagetag_partitions()
172 parts[rootfspart].name = "rootfs"; in bcm963xx_parse_imagetag_partitions()
173 parts[rootfspart].offset = rootfsaddr; in bcm963xx_parse_imagetag_partitions()
174 parts[rootfspart].size = rootfslen; in bcm963xx_parse_imagetag_partitions()
176 parts[rootfspart].size += sparelen; in bcm963xx_parse_imagetag_partitions()
[all …]
Dredboot.c72 struct mtd_partition *parts; in parse_redboot_partitions() local
237 parts = kzalloc(sizeof(*parts)*nrparts + nulllen + namelen, GFP_KERNEL); in parse_redboot_partitions()
239 if (!parts) { in parse_redboot_partitions()
244 nullname = (char *)&parts[nrparts]; in parse_redboot_partitions()
256 parts[0].name = nullname; in parse_redboot_partitions()
257 parts[0].size = fl->img->flash_base; in parse_redboot_partitions()
258 parts[0].offset = 0; in parse_redboot_partitions()
263 parts[i].size = fl->img->size; in parse_redboot_partitions()
264 parts[i].offset = fl->img->flash_base; in parse_redboot_partitions()
265 parts[i].name = names; in parse_redboot_partitions()
[all …]
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()
377 kfree(parts); in parse_afs_partitions()
/Linux-v5.4/block/
Dcmdline-parser.c79 static void free_subpart(struct cmdline_parts *parts) in free_subpart() argument
83 while (parts->subpart) { in free_subpart()
84 subpart = parts->subpart; in free_subpart()
85 parts->subpart = subpart->next_subpart; in free_subpart()
90 static int parse_parts(struct cmdline_parts **parts, const char *bdevdef) in parse_parts() argument
99 *parts = NULL; in parse_parts()
142 *parts = newparts; in parse_parts()
151 void cmdline_parts_free(struct cmdline_parts **parts) in cmdline_parts_free() argument
155 while (*parts) { in cmdline_parts_free()
156 next_parts = (*parts)->next_parts; in cmdline_parts_free()
[all …]
/Linux-v5.4/arch/mips/alchemy/devboards/
Dplatform.c174 struct mtd_partition *parts; in db1x_register_norflash() local
182 parts = kcalloc(5, sizeof(struct mtd_partition), GFP_KERNEL); in db1x_register_norflash()
183 if (!parts) in db1x_register_norflash()
209 parts[i].offset = 0; in db1x_register_norflash()
210 parts[i].name = "User FS"; in db1x_register_norflash()
211 parts[i].size = size / 2; in db1x_register_norflash()
215 parts[i].offset = MTDPART_OFS_APPEND; in db1x_register_norflash()
216 parts[i].name = "User FS 2"; in db1x_register_norflash()
217 parts[i].size = (size / 2) - (0x20000000 - 0x1fc00000); in db1x_register_norflash()
220 parts[i].offset = MTDPART_OFS_APPEND; in db1x_register_norflash()
[all …]
/Linux-v5.4/block/partitions/
Dcmdline.c39 info = &state->parts[slot].info; in add_part()
49 state->parts[slot].has_info = true; in add_part()
93 for (; slot < state->limit && state->parts[slot].has_info; slot++) { in cmdline_parts_verifier()
94 for (i = slot+1; i < state->limit && state->parts[i].has_info; in cmdline_parts_verifier()
96 if (has_overlaps(state->parts[slot].from, in cmdline_parts_verifier()
97 state->parts[slot].size, in cmdline_parts_verifier()
98 state->parts[i].from, in cmdline_parts_verifier()
99 state->parts[i].size)) { in cmdline_parts_verifier()
106 state->parts[slot].info.volname, in cmdline_parts_verifier()
107 (u64)state->parts[slot].from << 9, in cmdline_parts_verifier()
[all …]
Dcheck.c125 state->parts = vzalloc(array_size(nr, sizeof(state->parts[0]))); in allocate_partitions()
126 if (!state->parts) { in allocate_partitions()
138 vfree(state->parts); in free_partitions()
166 memset(state->parts, 0, state->limit * sizeof(state->parts[0])); in check_partition()
Dcheck.h19 } *parts; member
47 p->parts[n].from = from; in put_partition()
48 p->parts[n].size = size; in put_partition()
/Linux-v5.4/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 …]
/Linux-v5.4/include/linux/
Dcmdline-parser.h34 void cmdline_parts_free(struct cmdline_parts **parts);
36 int cmdline_parts_parse(struct cmdline_parts **parts, const char *cmdline);
38 struct cmdline_parts *cmdline_parts_find(struct cmdline_parts *parts,
41 int cmdline_parts_set(struct cmdline_parts *parts, sector_t disk_size,
/Linux-v5.4/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()
/Linux-v5.4/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()
/Linux-v5.4/arch/mips/txx9/rbtx4939/
Dsetup.c383 static struct mtd_partition parts[4]; in rbtx4939_mtd_init() local
392 parts[i].name = names[i]; in rbtx4939_mtd_init()
393 parts[i].size = 0x400000; in rbtx4939_mtd_init()
394 parts[i].offset = MTDPART_OFS_NXTBLK; in rbtx4939_mtd_init()
402 parts[i].name = names[i]; in rbtx4939_mtd_init()
403 parts[i].size = 0x400000; in rbtx4939_mtd_init()
404 parts[i].offset = MTDPART_OFS_NXTBLK; 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()
[all …]
/Linux-v5.4/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()
/Linux-v5.4/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()
157 irq_set_percpu_devid_partition(virq, &part->parts[hwirq].mask); in partition_domain_alloc()
183 if (desc->parts[i].partition_id == partition_id) { in partition_translate_id()
184 part = &desc->parts[i]; in partition_translate_id()
198 struct partition_affinity *parts, in partition_create_desc() argument
228 desc->parts = parts; in partition_create_desc()
/Linux-v5.4/drivers/mtd/nand/raw/
Ddiskonchip.c1028 static inline int __init nftl_partscan(struct mtd_info *mtd, struct mtd_partition *parts) in nftl_partscan() argument
1107 parts[0].name = " DiskOnChip Firmware / Media Header partition"; in nftl_partscan()
1108 parts[0].offset = 0; in nftl_partscan()
1109 parts[0].size = offs; in nftl_partscan()
1113 parts[numparts].name = " DiskOnChip BDTL partition"; in nftl_partscan()
1114 parts[numparts].offset = offs; in nftl_partscan()
1115 parts[numparts].size = (mh->NumEraseUnits - numheaders) << this->bbt_erase_shift; in nftl_partscan()
1117 offs += parts[numparts].size; in nftl_partscan()
1121 parts[numparts].name = " DiskOnChip Remainder partition"; in nftl_partscan()
1122 parts[numparts].offset = offs; in nftl_partscan()
[all …]
/Linux-v5.4/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 …]
/Linux-v5.4/arch/mips/txx9/generic/
Dsetup.c623 static struct mtd_partition parts[2]; in txx9_physmap_flash_init() local
627 if (pdata->nr_parts == 0 && !pdata->parts && in txx9_physmap_flash_init()
629 !parts[0].name) { in txx9_physmap_flash_init()
630 parts[0].name = "boot"; in txx9_physmap_flash_init()
631 parts[0].offset = 0x1fc00000 - addr; in txx9_physmap_flash_init()
632 parts[0].size = addr + size - 0x1fc00000; in txx9_physmap_flash_init()
633 parts[1].name = "user"; in txx9_physmap_flash_init()
634 parts[1].offset = 0; in txx9_physmap_flash_init()
635 parts[1].size = 0x1fc00000 - addr; in txx9_physmap_flash_init()
637 pdata_part.nr_parts = ARRAY_SIZE(parts); in txx9_physmap_flash_init()
[all …]
/Linux-v5.4/include/linux/irqchip/
Dirq-partition-percpu.h24 struct partition_affinity *parts,
38 struct partition_affinity *parts, in partition_create_desc() argument

12345678910>>...21