/Linux-v4.19/drivers/mtd/ |
D | cmdlinepart.c | 76 struct mtd_partition *parts; member 102 struct mtd_partition *parts; in newpart() local 175 parts = newpart(s + 1, &s, num_parts, this_part + 1, in newpart() 177 if (IS_ERR(parts)) in newpart() 178 return parts; in newpart() 187 parts = kzalloc(alloc_size, GFP_KERNEL); in newpart() 188 if (!parts) in newpart() 190 extra_mem = (unsigned char *)(parts + *num_parts); in newpart() 197 parts[this_part].size = size; in newpart() 198 parts[this_part].offset = offset; in newpart() [all …]
|
D | ofpart.c | 32 struct mtd_partition *parts; in parse_fixed_partitions() local 74 parts = kcalloc(nr_parts, sizeof(*parts), GFP_KERNEL); in parse_fixed_partitions() 75 if (!parts) in parse_fixed_partitions() 109 parts[i].offset = of_read_number(reg, a_cells); in parse_fixed_partitions() 110 parts[i].size = of_read_number(reg + a_cells, s_cells); in parse_fixed_partitions() 111 parts[i].of_node = pp; in parse_fixed_partitions() 116 parts[i].name = partname; in parse_fixed_partitions() 119 parts[i].mask_flags |= MTD_WRITEABLE; in parse_fixed_partitions() 122 parts[i].mask_flags |= MTD_POWERUP_LOCK; in parse_fixed_partitions() 130 *pparts = parts; in parse_fixed_partitions() [all …]
|
D | bcm63xxpart.c | 133 struct mtd_partition *parts; in bcm63xx_parse_cfe_nor_partitions() local 221 parts = kzalloc(sizeof(*parts) * nrparts + 10 * nrparts, GFP_KERNEL); in bcm63xx_parse_cfe_nor_partitions() 222 if (!parts) { in bcm63xx_parse_cfe_nor_partitions() 228 parts[curpart].name = "CFE"; in bcm63xx_parse_cfe_nor_partitions() 229 parts[curpart].offset = 0; in bcm63xx_parse_cfe_nor_partitions() 230 parts[curpart].size = cfelen; in bcm63xx_parse_cfe_nor_partitions() 238 parts[kernelpart].name = "kernel"; in bcm63xx_parse_cfe_nor_partitions() 239 parts[kernelpart].offset = kerneladdr; in bcm63xx_parse_cfe_nor_partitions() 240 parts[kernelpart].size = kernellen; in bcm63xx_parse_cfe_nor_partitions() 249 parts[rootfspart].name = "rootfs"; in bcm63xx_parse_cfe_nor_partitions() [all …]
|
D | bcm47xxpart.c | 94 struct mtd_partition *parts; in bcm47xxpart_parse() local 113 parts = kcalloc(BCM47XXPART_MAX_PARTS, sizeof(struct mtd_partition), in bcm47xxpart_parse() 115 if (!parts) in bcm47xxpart_parse() 120 kfree(parts); in bcm47xxpart_parse() 148 bcm47xxpart_add_part(&parts[curr_part++], "boot", in bcm47xxpart_parse() 158 bcm47xxpart_add_part(&parts[curr_part++], "board_data", in bcm47xxpart_parse() 165 bcm47xxpart_add_part(&parts[curr_part++], "factory", in bcm47xxpart_parse() 173 bcm47xxpart_add_part(&parts[curr_part++], "POT", offset, in bcm47xxpart_parse() 181 bcm47xxpart_add_part(&parts[curr_part++], "ML", offset, in bcm47xxpart_parse() 197 bcm47xxpart_add_part(&parts[curr_part++], "firmware", in bcm47xxpart_parse() [all …]
|
D | redboot.c | 65 struct mtd_partition *parts; in parse_redboot_partitions() local 228 parts = kzalloc(sizeof(*parts)*nrparts + nulllen + namelen, GFP_KERNEL); in parse_redboot_partitions() 230 if (!parts) { in parse_redboot_partitions() 235 nullname = (char *)&parts[nrparts]; in parse_redboot_partitions() 247 parts[0].name = nullname; in parse_redboot_partitions() 248 parts[0].size = fl->img->flash_base; in parse_redboot_partitions() 249 parts[0].offset = 0; in parse_redboot_partitions() 254 parts[i].size = fl->img->size; in parse_redboot_partitions() 255 parts[i].offset = fl->img->flash_base; in parse_redboot_partitions() 256 parts[i].name = names; in parse_redboot_partitions() [all …]
|
D | afs.c | 168 struct mtd_partition *parts; in parse_afs_partitions() local 207 parts = kzalloc(sz, GFP_KERNEL); in parse_afs_partitions() 208 if (!parts) in parse_afs_partitions() 211 str = (char *)(parts + idx); in parse_afs_partitions() 236 parts[idx].name = str; in parse_afs_partitions() 237 parts[idx].size = (iis.length + mtd->erasesize - 1) & ~(mtd->erasesize - 1); in parse_afs_partitions() 238 parts[idx].offset = img_ptr; in parse_afs_partitions() 239 parts[idx].mask_flags = 0; in parse_afs_partitions() 242 idx, img_ptr, parts[idx].size / 1024, in parse_afs_partitions() 250 kfree(parts); in parse_afs_partitions() [all …]
|
/Linux-v4.19/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 …]
|
/Linux-v4.19/arch/mips/alchemy/devboards/ |
D | platform.c | 174 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-v4.19/block/partitions/ |
D | cmdline.c | 39 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 …]
|
D | check.c | 125 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()
|
D | check.h | 19 } *parts; member 47 p->parts[n].from = from; in put_partition() 48 p->parts[n].size = size; in put_partition()
|
/Linux-v4.19/drivers/regulator/ |
D | qcom_rpm-regulator.c | 53 (((reg)->parts->fm.mask >> (reg)->parts->fm.shift) == 3) 61 const struct rpm_reg_parts *parts; member 211 vreg->parts->request_len); in rpm_reg_write() 218 const struct rpm_reg_parts *parts = vreg->parts; in rpm_reg_set_mV_sel() local 219 const struct request_member *req = &parts->mV; in rpm_reg_set_mV_sel() 245 const struct rpm_reg_parts *parts = vreg->parts; in rpm_reg_set_uV_sel() local 246 const struct request_member *req = &parts->uV; in rpm_reg_set_uV_sel() 278 const struct rpm_reg_parts *parts = vreg->parts; in rpm_reg_mV_enable() local 279 const struct request_member *req = &parts->mV; in rpm_reg_mV_enable() 297 const struct rpm_reg_parts *parts = vreg->parts; in rpm_reg_uV_enable() local [all …]
|
/Linux-v4.19/drivers/mtd/parsers/ |
D | parser_trx.c | 58 struct mtd_partition *parts; in parser_trx_parse() local 65 parts = kcalloc(TRX_PARSER_MAX_PARTS, sizeof(struct mtd_partition), in parser_trx_parse() 67 if (!parts) in parser_trx_parse() 73 kfree(parts); in parser_trx_parse() 78 kfree(parts); in parser_trx_parse() 84 part = &parts[curr_part++]; in parser_trx_parse() 91 part = &parts[curr_part++]; in parser_trx_parse() 98 part = &parts[curr_part++]; in parser_trx_parse() 110 parts[i + 1].offset : mtd->size; in parser_trx_parse() 112 parts[i].size = next_part_offset - parts[i].offset; in parser_trx_parse() [all …]
|
/Linux-v4.19/lib/ |
D | flex_array.c | 113 memset(&ret->parts[0], FLEX_ARRAY_FREE, in flex_array_alloc() 144 kfree(fa->parts[part_nr]); in flex_array_free_parts() 168 struct flex_array_part *part = fa->parts[part_nr]; in __fa_get_part() 176 fa->parts[part_nr] = part; in __fa_get_part() 210 part = (struct flex_array_part *)&fa->parts[0]; in flex_array_put() 241 part = (struct flex_array_part *)&fa->parts[0]; in flex_array_clear() 244 part = fa->parts[part_nr]; in flex_array_clear() 325 part = (struct flex_array_part *)&fa->parts[0]; in flex_array_get() 328 part = fa->parts[part_nr]; in flex_array_get() 387 part = fa->parts[part_nr]; in flex_array_shrink() [all …]
|
/Linux-v4.19/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,
|
/Linux-v4.19/drivers/net/ethernet/sfc/ |
D | mtd.c | 57 int efx_mtd_add(struct efx_nic *efx, struct efx_mtd_partition *parts, in efx_mtd_add() argument 64 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-v4.19/drivers/net/ethernet/sfc/falcon/ |
D | mtd.c | 57 int ef4_mtd_add(struct ef4_nic *efx, struct ef4_mtd_partition *parts, in ef4_mtd_add() argument 64 part = (struct ef4_mtd_partition *)((char *)parts + in ef4_mtd_add() 90 part = (struct ef4_mtd_partition *)((char *)parts + in ef4_mtd_add() 100 struct ef4_mtd_partition *parts, *part, *next; in ef4_mtd_remove() local 107 parts = list_first_entry(&efx->mtd_list, struct ef4_mtd_partition, in ef4_mtd_remove() 113 kfree(parts); in ef4_mtd_remove()
|
/Linux-v4.19/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 …]
|
/Linux-v4.19/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 | 51 struct mlxsw_sp2_kvdl_part *parts[MLXSW_SP2_KVDL_PARTS_INFO_LEN]; member 150 struct mlxsw_sp2_kvdl_part *part = kvdl->parts[type]; in mlxsw_sp2_kvdl_alloc() 162 struct mlxsw_sp2_kvdl_part *part = kvdl->parts[type]; in mlxsw_sp2_kvdl_free() 228 kvdl->parts[i] = mlxsw_sp2_kvdl_part_init(mlxsw_sp, info); in mlxsw_sp2_kvdl_parts_init() 229 if (IS_ERR(kvdl->parts[i])) { in mlxsw_sp2_kvdl_parts_init() 230 err = PTR_ERR(kvdl->parts[i]); in mlxsw_sp2_kvdl_parts_init() 238 mlxsw_sp2_kvdl_part_fini(kvdl->parts[i]); in mlxsw_sp2_kvdl_parts_init() 247 mlxsw_sp2_kvdl_part_fini(kvdl->parts[i]); in mlxsw_sp2_kvdl_parts_fini()
|
/Linux-v4.19/drivers/irqchip/ |
D | irq-partition-percpu.c | 29 struct partition_affinity *parts; member 39 return cpumask_test_cpu(cpu, &part->parts[hwirq].mask); in partition_check_cpu() 168 irq_set_percpu_devid_partition(virq, &part->parts[hwirq].mask); in partition_domain_alloc() 194 if (desc->parts[i].partition_id == partition_id) { in partition_translate_id() 195 part = &desc->parts[i]; in partition_translate_id() 209 struct partition_affinity *parts, in partition_create_desc() argument 239 desc->parts = parts; in partition_create_desc()
|
/Linux-v4.19/drivers/mtd/nand/raw/ |
D | diskonchip.c | 1045 static inline int __init nftl_partscan(struct mtd_info *mtd, struct mtd_partition *parts) in nftl_partscan() argument 1120 parts[0].name = " DiskOnChip Firmware / Media Header partition"; in nftl_partscan() 1121 parts[0].offset = 0; in nftl_partscan() 1122 parts[0].size = offs; in nftl_partscan() 1126 parts[numparts].name = " DiskOnChip BDTL partition"; in nftl_partscan() 1127 parts[numparts].offset = offs; in nftl_partscan() 1128 parts[numparts].size = (mh->NumEraseUnits - numheaders) << this->bbt_erase_shift; in nftl_partscan() 1130 offs += parts[numparts].size; in nftl_partscan() 1134 parts[numparts].name = " DiskOnChip Remainder partition"; in nftl_partscan() 1135 parts[numparts].offset = offs; in nftl_partscan() [all …]
|
/Linux-v4.19/drivers/mtd/maps/ |
D | vmu-flash.c | 49 struct vmupart *parts; member 71 if (src_ofs >= card->parts[partition].numblocks * card->blocklen) in ofs_to_block() 75 if (num > card->parts[partition].numblocks) in ofs_to_block() 126 pcache = card->parts[partition].pcache; in maple_vmu_read_block() 368 numblocks = card->parts[partition].numblocks; in vmu_flash_read() 374 pcache = card->parts[partition].pcache; in vmu_flash_read() 434 numblocks = card->parts[partition].numblocks; in vmu_flash_write() 471 pcache = card->parts[partition].pcache; in vmu_flash_write() 523 part_cur = &card->parts[card->partition]; in vmu_queryblocks() 582 kfree(((card->parts)[error]).pcache); in vmu_queryblocks() [all …]
|
/Linux-v4.19/arch/mips/txx9/generic/ |
D | setup.c | 628 static struct mtd_partition parts[2]; in txx9_physmap_flash_init() local 632 if (pdata->nr_parts == 0 && !pdata->parts && in txx9_physmap_flash_init() 634 !parts[0].name) { in txx9_physmap_flash_init() 635 parts[0].name = "boot"; in txx9_physmap_flash_init() 636 parts[0].offset = 0x1fc00000 - addr; in txx9_physmap_flash_init() 637 parts[0].size = addr + size - 0x1fc00000; in txx9_physmap_flash_init() 638 parts[1].name = "user"; in txx9_physmap_flash_init() 639 parts[1].offset = 0; in txx9_physmap_flash_init() 640 parts[1].size = 0x1fc00000 - addr; in txx9_physmap_flash_init() 642 pdata_part.nr_parts = ARRAY_SIZE(parts); in txx9_physmap_flash_init() [all …]
|
/Linux-v4.19/include/linux/irqchip/ |
D | irq-partition-percpu.h | 32 struct partition_affinity *parts, 46 struct partition_affinity *parts, in partition_create_desc() argument
|