Home
last modified time | relevance | path

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

12345678910>>...24

/linux-6.6.21/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()
151 parts[i].offset = of_read_number(reg, a_cells); in parse_fixed_partitions()
152 parts[i].size = of_read_number(reg + a_cells, s_cells); in parse_fixed_partitions()
153 parts[i].of_node = pp; in parse_fixed_partitions()
158 parts[i].name = partname; in parse_fixed_partitions()
161 parts[i].mask_flags |= MTD_WRITEABLE; in parse_fixed_partitions()
164 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 …]
Dtplink_safeloader.c77 struct mtd_partition *parts; in mtd_parser_tplink_safeloader_parse() local
85 parts = kcalloc(TPLINK_SAFELOADER_MAX_PARTS, sizeof(*parts), GFP_KERNEL); in mtd_parser_tplink_safeloader_parse()
86 if (!parts) { in mtd_parser_tplink_safeloader_parse()
100 name, &parts[idx].offset, &parts[idx].size, &bytes) == 3; in mtd_parser_tplink_safeloader_parse()
102 parts[idx].name = kstrdup(name, GFP_KERNEL); in mtd_parser_tplink_safeloader_parse()
103 if (!parts[idx].name) { in mtd_parser_tplink_safeloader_parse()
114 *pparts = parts; in mtd_parser_tplink_safeloader_parse()
120 kfree(parts[idx].name); in mtd_parser_tplink_safeloader_parse()
122 kfree(parts); in mtd_parser_tplink_safeloader_parse()
Dbrcm_u-boot.c34 struct mtd_partition *parts; in brcm_u_boot_parse() local
40 parts = kcalloc(BRCM_U_BOOT_MAX_PARTS, sizeof(*parts), GFP_KERNEL); in brcm_u_boot_parse()
41 if (!parts) in brcm_u_boot_parse()
56 parts[i].name = names[i]; in brcm_u_boot_parse()
57 parts[i].offset = offset; in brcm_u_boot_parse()
58 parts[i].size = sizeof(header) + le32_to_cpu(header.length); in brcm_u_boot_parse()
66 *pparts = parts; in brcm_u_boot_parse()
Dqcomsmempart.c65 struct mtd_partition *parts; in parse_qcomsmem_part() local
126 parts = kcalloc(numparts, sizeof(*parts), GFP_KERNEL); in parse_qcomsmem_part()
127 if (!parts) in parse_qcomsmem_part()
145 parts[j].name = name; in parse_qcomsmem_part()
146 parts[j].offset = le32_to_cpu(pentry->offset) * mtd->erasesize; in parse_qcomsmem_part()
147 parts[j].mask_flags = pentry->attr; in parse_qcomsmem_part()
148 parts[j].size = le32_to_cpu(pentry->length) * mtd->erasesize; in parse_qcomsmem_part()
157 *pparts = parts; in parse_qcomsmem_part()
163 kfree(parts[j].name); in parse_qcomsmem_part()
164 kfree(parts); in parse_qcomsmem_part()
Dscpart.c148 struct mtd_partition *parts = NULL; in scpart_parse() local
174 parts = kcalloc(of_get_child_count(ofpart_node), sizeof(*parts), in scpart_parse()
176 if (!parts) { in scpart_parse()
196 parts[nr_parts].offset = scpart_map[n].part_offs; in scpart_parse()
197 parts[nr_parts].size = scpart_map[n].part_bytes; in scpart_parse()
198 parts[nr_parts].of_node = pp; in scpart_parse()
201 parts[nr_parts].name = partname; in scpart_parse()
203 parts[nr_parts].mask_flags |= MTD_WRITEABLE; in scpart_parse()
205 parts[nr_parts].mask_flags |= MTD_POWERUP_LOCK; in scpart_parse()
214 *pparts = parts; in scpart_parse()
[all …]
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()
/linux-6.6.21/block/partitions/
Dcmdline.c109 static void free_subpart(struct cmdline_parts *parts) in free_subpart() argument
113 while (parts->subpart) { in free_subpart()
114 subpart = parts->subpart; in free_subpart()
115 parts->subpart = subpart->next_subpart; in free_subpart()
120 static int parse_parts(struct cmdline_parts **parts, const char *bdevdef) in parse_parts() argument
129 *parts = NULL; in parse_parts()
170 *parts = newparts; in parse_parts()
179 static void cmdline_parts_free(struct cmdline_parts **parts) in cmdline_parts_free() argument
183 while (*parts) { in cmdline_parts_free()
184 next_parts = (*parts)->next_parts; in cmdline_parts_free()
[all …]
/linux-6.6.21/arch/mips/alchemy/devboards/
Dplatform.c157 struct mtd_partition *parts; in db1x_register_norflash() local
165 parts = kcalloc(5, sizeof(struct mtd_partition), GFP_KERNEL); in db1x_register_norflash()
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()
198 parts[i].offset = MTDPART_OFS_APPEND; in db1x_register_norflash()
199 parts[i].name = "User FS 2"; in db1x_register_norflash()
200 parts[i].size = (size / 2) - (0x20000000 - 0x1fc00000); in db1x_register_norflash()
203 parts[i].offset = MTDPART_OFS_APPEND; in db1x_register_norflash()
[all …]
/linux-6.6.21/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-6.6.21/scripts/gdb/linux/
Dstackdepot.py26 parts = handle.cast(handle_parts_t)
27 offset = parts['offset'] << DEPOT_STACK_ALIGN
30 if parts['pool_index'] > pool_index_cached:
31 …gdb.write("pool index %d out of bounds (%d) for stack id 0x%08x\n" % (parts['pool_index'], pool_in…
37 pool = stack_pools[parts['pool_index']]
/linux-6.6.21/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-6.6.21/drivers/net/ethernet/sfc/siena/
Dmtd.c54 int efx_siena_mtd_add(struct efx_nic *efx, struct efx_mtd_partition *parts, in efx_siena_mtd_add() argument
61 part = (struct efx_mtd_partition *)((char *)parts + in efx_siena_mtd_add()
90 part = (struct efx_mtd_partition *)((char *)parts + in efx_siena_mtd_add()
100 struct efx_mtd_partition *parts, *part, *next; in efx_siena_mtd_remove() local
107 parts = list_first_entry(&efx->mtd_list, struct efx_mtd_partition, in efx_siena_mtd_remove()
113 kfree(parts); in efx_siena_mtd_remove()
/linux-6.6.21/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-6.6.21/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()
253 kvdl->parts[i] = mlxsw_sp1_kvdl_part_init(mlxsw_sp, info, in mlxsw_sp1_kvdl_parts_init()
255 if (IS_ERR(kvdl->parts[i])) { in mlxsw_sp1_kvdl_parts_init()
256 err = PTR_ERR(kvdl->parts[i]); in mlxsw_sp1_kvdl_parts_init()
259 part_prev = kvdl->parts[i]; in mlxsw_sp1_kvdl_parts_init()
265 mlxsw_sp1_kvdl_part_fini(kvdl->parts[i]); in mlxsw_sp1_kvdl_parts_init()
274 mlxsw_sp1_kvdl_part_fini(kvdl->parts[i]); in mlxsw_sp1_kvdl_parts_fini()
300 occ += mlxsw_sp1_kvdl_part_occ(kvdl->parts[i]); in mlxsw_sp1_kvdl_occ_get()
[all …]
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-6.6.21/lib/
Dstackdepot.c463 union handle_parts parts = { .handle = handle }; in stack_depot_fetch() local
470 size_t offset = parts.offset << DEPOT_STACK_ALIGN; in stack_depot_fetch()
483 if (parts.pool_index > pool_index_cached) { in stack_depot_fetch()
485 parts.pool_index, pool_index_cached, handle); in stack_depot_fetch()
488 pool = stack_pools[parts.pool_index]; in stack_depot_fetch()
524 union handle_parts parts = { .handle = handle }; in stack_depot_set_extra_bits() local
530 parts.extra = extra_bits; in stack_depot_set_extra_bits()
531 return parts.handle; in stack_depot_set_extra_bits()
537 union handle_parts parts = { .handle = handle }; in stack_depot_get_extra_bits() local
539 return parts.extra; in stack_depot_get_extra_bits()
/linux-6.6.21/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()
/linux-6.6.21/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 …]

12345678910>>...24