/kernel/linux/linux-5.10/drivers/mtd/parsers/ |
D | cmdlinepart.c | 63 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 …]
|
D | ofpart.c | 28 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() 121 parts[i].add_flags |= MTD_SLC_ON_MLC_EMULATION; in parse_fixed_partitions() [all …]
|
D | bcm63xxpart.c | 83 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 …]
|
D | bcm47xxpart.c | 90 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 …]
|
D | parser_trx.c | 54 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 …]
|
D | parser_imagetag.c | 66 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 …]
|
D | redboot.c | 78 struct mtd_partition *parts; in parse_redboot_partitions() local 243 parts = kzalloc(sizeof(*parts)*nrparts + nulllen + namelen, GFP_KERNEL); in parse_redboot_partitions() 245 if (!parts) { in parse_redboot_partitions() 250 nullname = (char *)&parts[nrparts]; in parse_redboot_partitions() 262 parts[0].name = nullname; in parse_redboot_partitions() 263 parts[0].size = fl->img->flash_base; in parse_redboot_partitions() 264 parts[0].offset = 0; in parse_redboot_partitions() 269 parts[i].size = fl->img->size; in parse_redboot_partitions() 270 parts[i].offset = fl->img->flash_base; in parse_redboot_partitions() 271 parts[i].name = names; in parse_redboot_partitions() [all …]
|
D | afs.c | 327 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()
|
/kernel/linux/linux-5.10/block/ |
D | cmdline-parser.c | 79 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 …]
|
/kernel/linux/linux-5.10/arch/mips/alchemy/devboards/ |
D | platform.c | 157 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 …]
|
/kernel/linux/linux-5.10/block/partitions/ |
D | cmdline.c | 38 info = &state->parts[slot].info; in add_part() 48 state->parts[slot].has_info = true; in add_part() 92 for (; slot < state->limit && state->parts[slot].has_info; slot++) { in cmdline_parts_verifier() 93 for (i = slot+1; i < state->limit && state->parts[i].has_info; in cmdline_parts_verifier() 95 if (has_overlaps(state->parts[slot].from, in cmdline_parts_verifier() 96 state->parts[slot].size, in cmdline_parts_verifier() 97 state->parts[i].from, in cmdline_parts_verifier() 98 state->parts[i].size)) { in cmdline_parts_verifier() 105 state->parts[slot].info.volname, in cmdline_parts_verifier() 106 (u64)state->parts[slot].from << 9, in cmdline_parts_verifier() [all …]
|
D | check.h | 20 } *parts; member 43 p->parts[n].from = from; in put_partition() 44 p->parts[n].size = size; in put_partition()
|
D | core.c | 98 state->parts = vzalloc(array_size(nr, sizeof(state->parts[0]))); in allocate_partitions() 99 if (!state->parts) { in allocate_partitions() 111 vfree(state->parts); in free_partitions() 139 memset(state->parts, 0, state->limit * sizeof(state->parts[0])); in check_partition() 669 sector_t size = state->parts[p].size; in blk_add_partition() 670 sector_t from = state->parts[p].from; in blk_add_partition() 701 part = add_partition(disk, p, from, size, state->parts[p].flags, in blk_add_partition() 702 &state->parts[p].info); in blk_add_partition() 710 (state->parts[p].flags & ADDPART_FLAG_RAID)) in blk_add_partition() 772 if (state->parts[p].size) in blk_add_partitions()
|
/kernel/linux/linux-5.10/drivers/regulator/ |
D | qcom_rpm-regulator.c | 45 (((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 …]
|
/kernel/linux/linux-5.10/include/linux/ |
D | cmdline-parser.h | 34 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,
|
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/falcon/ |
D | mtd.c | 54 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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/ |
D | mtd.c | 54 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()
|
/kernel/linux/linux-5.10/arch/mips/txx9/rbtx4939/ |
D | setup.c | 383 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 …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum1_kvdl.c | 67 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 …]
|
D | spectrum2_kvdl.c | 52 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()
|
/kernel/linux/linux-5.10/drivers/irqchip/ |
D | irq-partition-percpu.c | 18 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()
|
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/ |
D | diskonchip.c | 905 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 …]
|
/kernel/linux/linux-5.10/drivers/mtd/maps/ |
D | vmu-flash.c | 47 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 …]
|
/kernel/linux/linux-5.10/drivers/mtd/ |
D | mtdpart.c | 394 const struct mtd_partition *parts, in add_mtd_partitions() argument 405 child = allocate_partition(parent, parts + i, i, cur_offset); in add_mtd_partitions() 428 parse_mtd_partitions(child, parts[i].types, NULL); in add_mtd_partitions() 522 ret = (*parser->parse_fn)(master, &pparts->parts, data); in mtd_part_do_parse() 680 err = add_mtd_partitions(master, pparts.parts, in parse_mtd_partitions() 695 void mtd_part_parser_cleanup(struct mtd_partitions *parts) in mtd_part_parser_cleanup() argument 699 if (!parts) in mtd_part_parser_cleanup() 702 parser = parts->parser; in mtd_part_parser_cleanup() 705 parser->cleanup(parts->parts, parts->nr_parts); in mtd_part_parser_cleanup()
|
/kernel/linux/linux-5.10/lib/ |
D | stackdepot.c | 205 union handle_parts parts = { .handle = handle }; in stack_depot_fetch() local 207 size_t offset = parts.offset << STACK_ALLOC_ALIGN; in stack_depot_fetch() 211 if (parts.slabindex > depot_index) { in stack_depot_fetch() 213 parts.slabindex, depot_index, handle); in stack_depot_fetch() 216 slab = stack_slabs[parts.slabindex]; in stack_depot_fetch()
|