/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_core.c | 23 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 …]
|
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_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 | parser_trx.c | 55 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 …]
|
D | redboot.c | 78 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 …]
|
D | qcomsmempart.c | 65 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()
|
D | ofpart_bcm4908.c | 50 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()
|
D | ofpart_linksys_ns.c | 33 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()
|
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()
|
D | ofpart_linksys_ns.h | 7 struct mtd_partition *parts, 11 struct mtd_partition *parts, in linksys_ns_partitions_post_parse() argument
|
D | ofpart_bcm4908.h | 6 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/ |
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 …]
|
/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()
|
/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()
|
D | siena.c | 889 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/ |
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()
|
D | falcon.c | 924 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/ |
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 …]
|
/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() 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/ |
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 …]
|
/drivers/mtd/ |
D | mtdpart.c | 393 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/ |
D | Kconfig | 3 bool "Enable amdgpu support for SI parts" 16 bool "Enable amdgpu support for CIK parts"
|