| /linux/drivers/mtd/parsers/ |
| H A 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 …]
|
| H A D | parser_trx.c | 55 struct mtd_partition *parts; in parser_trx_parse() local 68 parts = kzalloc_objs(struct mtd_partition, TRX_PARSER_MAX_PARTS); in parser_trx_parse() 69 if (!parts) in parser_trx_parse() 75 kfree(parts); in parser_trx_parse() 80 kfree(parts); in parser_trx_parse() 86 part = &parts[curr_part++]; in parser_trx_parse() 93 part = &parts[curr_part++]; in parser_trx_parse() 100 part = &parts[curr_part++]; in parser_trx_parse() 112 parts[i + 1].offset : mtd->size; in parser_trx_parse() 114 parts[i].size = next_part_offset - parts[i].offset; in parser_trx_parse() [all …]
|
| H A 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 …]
|
| H A D | tplink_safeloader.c | 77 struct mtd_partition *parts; in mtd_parser_tplink_safeloader_parse() local 85 parts = kzalloc_objs(*parts, TPLINK_SAFELOADER_MAX_PARTS); 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() 121 kfree(parts[idx].name); in mtd_parser_tplink_safeloader_parse() 123 kfree(parts); in mtd_parser_tplink_safeloader_parse()
|
| H A D | bcm47xxpart.c | 90 struct mtd_partition *parts; in bcm47xxpart_parse() local 109 parts = kzalloc_objs(struct mtd_partition, BCM47XXPART_MAX_PARTS); in bcm47xxpart_parse() 110 if (!parts) in bcm47xxpart_parse() 115 kfree(parts); in bcm47xxpart_parse() 143 bcm47xxpart_add_part(&parts[curr_part++], "boot", in bcm47xxpart_parse() 153 bcm47xxpart_add_part(&parts[curr_part++], "board_data", in bcm47xxpart_parse() 160 bcm47xxpart_add_part(&parts[curr_part++], "factory", in bcm47xxpart_parse() 168 bcm47xxpart_add_part(&parts[curr_part++], "POT", offset, in bcm47xxpart_parse() 176 bcm47xxpart_add_part(&parts[curr_part++], "ML", offset, in bcm47xxpart_parse() 192 bcm47xxpart_add_part(&parts[curr_part++], "firmware", in bcm47xxpart_parse() [all …]
|
| H A D | brcm_u-boot.c | 34 struct mtd_partition *parts; in brcm_u_boot_parse() local 40 parts = kzalloc_objs(*parts, BRCM_U_BOOT_MAX_PARTS); 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()
|
| H A D | scpart.c | 148 struct mtd_partition *parts = NULL; in scpart_parse() local 174 parts = kzalloc_objs(*parts, of_get_child_count(ofpart_node)); in scpart_parse() 175 if (!parts) { in scpart_parse() 195 parts[nr_parts].offset = scpart_map[n].part_offs; in scpart_parse() 196 parts[nr_parts].size = scpart_map[n].part_bytes; in scpart_parse() 197 parts[nr_parts].of_node = pp; in scpart_parse() 200 parts[nr_parts].name = partname; in scpart_parse() 202 parts[nr_parts].mask_flags |= MTD_WRITEABLE; in scpart_parse() 204 parts[nr_parts].mask_flags |= MTD_POWERUP_LOCK; in scpart_parse() 213 *pparts = parts; in scpart_parse() [all …]
|
| H A D | qcomsmempart.c | 65 struct mtd_partition *parts; in parse_qcomsmem_part() local 126 parts = kzalloc_objs(*parts, numparts); 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()
|
| H A 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()
|
| H A 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()
|
| /linux/drivers/regulator/ |
| H A 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 …]
|
| /linux/drivers/mtd/ |
| H A D | mtd_virt_concat.c | 151 * @parts: pointer to 'device_node' 157 static int mtd_virt_concat_create_item(struct device_node *parts, in mtd_virt_concat_create_item() argument 165 if (mtd_is_part_concat(of_parse_phandle(parts, CONCAT_PROP, i))) in mtd_virt_concat_create_item() 180 item->nodes[0] = parts; in mtd_virt_concat_create_item() 183 item->nodes[i] = of_parse_phandle(parts, CONCAT_PROP, (i - 1)); in mtd_virt_concat_create_item() 242 struct device_node *parts = NULL; in mtd_virt_concat_node_create() local 247 parts = of_find_node_with_property(parts, CONCAT_PROP); in mtd_virt_concat_node_create() 248 if (!of_device_is_available(parts)) in mtd_virt_concat_node_create() 251 if (mtd_is_part_concat(parts)) in mtd_virt_concat_node_create() 254 count = of_count_phandle_with_args(parts, CONCAT_PROP, NULL); in mtd_virt_concat_node_create() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlxsw/ |
| H A 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() 252 kvdl->parts[i] = mlxsw_sp1_kvdl_part_init(mlxsw_sp, info, in mlxsw_sp1_kvdl_parts_init() 254 if (IS_ERR(kvdl->parts[i])) { in mlxsw_sp1_kvdl_parts_init() 255 err = PTR_ERR(kvdl->parts[i]); in mlxsw_sp1_kvdl_parts_init() 258 part_prev = kvdl->parts[i]; in mlxsw_sp1_kvdl_parts_init() 264 mlxsw_sp1_kvdl_part_fini(kvdl->parts[i]); in mlxsw_sp1_kvdl_parts_init() 273 mlxsw_sp1_kvdl_part_fini(kvdl->parts[i]); in mlxsw_sp1_kvdl_parts_fini() 299 occ += mlxsw_sp1_kvdl_part_occ(kvdl->parts[i]); in mlxsw_sp1_kvdl_occ_get() [all …]
|
| H A D | spectrum2_kvdl.c | 53 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/drivers/net/ethernet/sfc/falcon/ |
| H A 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()
|
| /linux/drivers/net/ethernet/sfc/siena/ |
| H A D | mtd.c | 54 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/drivers/net/ethernet/sfc/ |
| H A 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()
|
| /linux/rust/zerocopy/src/ |
| H A D | split_at.rs | 265 /// A `T` that has been split into two possibly-overlapping parts. 272 /// permits interior mutation, you must ensure that the left and right parts do 314 /// Produces the split parts of `self`, using [`Immutable`] to ensure that 315 /// it is sound to have concurrent references to both parts. 377 /// Produces the split parts of `self`, using [`IntoBytes`] to ensure that 378 /// it is sound to have concurrent references to both parts. 426 /// Produces the split parts of `self`, using [`Unaligned`] to ensure that 427 /// it is sound to have concurrent references to both parts. 475 /// Produces the split parts of `self`, using a dynamic check to ensure that 476 /// it is sound to have concurrent references to both parts. You should [all …]
|
| /linux/drivers/mtd/nand/raw/ |
| H A 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 …]
|
| /linux/tools/lib/python/kdoc/ |
| H A D | enrich_formatter.py | 58 parts = [] 65 parts.append(f"[{opt}]") 68 parts.append(self.enrich_text(f"``{action.dest.upper()}``")) 70 usage_text = f"{prefix or 'usage: '} {prog} {' '.join(parts)}\n"
|
| /linux/scripts/gdb/linux/ |
| H A D | stackdepot.py | 33 parts = handle.cast(handle_parts_t) 34 offset = parts['offset'] << DEPOT_STACK_ALIGN 40 pool_index = parts['pool_index_plus_1'] - 1 42 …gdb.write("pool index %d out of bounds (%d) for stack id 0x%08x\n" % (parts['pool_index'], pools_n…
|
| /linux/include/linux/spi/ |
| H A D | flash.h | 10 * @parts: optional array of mtd_partitions for static partitioning 16 * provide information about SPI flash parts (such as DataFlash) to 24 struct mtd_partition *parts; member
|
| /linux/Documentation/admin-guide/hw-vuln/ |
| H A D | vmscape.rst | 19 - Skylake generation (Parts without Enhanced-IBRS) 20 - Cascade Lake generation - (Parts affected by ITS guest/host separation) 21 - Alder Lake and newer (Parts affected by BHI) 23 Note that, BHI affected parts that use BHB clearing software mitigation e.g.
|
| /linux/Documentation/power/powercap/ |
| H A D | powercap.rst | 19 Power zones represent different parts of the system, which can be controlled and 22 well as controls represented in the form of power constraints. If the parts of 24 bigger part consists of multiple smaller parts that each have their own power 153 "core" and the "uncore" parts of the given CPU package, respectively. All of 157 CPU packages and the subzone constraints only apply to the respective parts of
|
| /linux/samples/rust/ |
| H A D | rust_debugfs.rs | 93 let mut parts = s.split_whitespace(); in from_str() 94 let x = parts in from_str() 99 let y = parts 104 if parts.next().is_some() { 79 let mut parts = s.split_whitespace(); from_str() localVariable
|