| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/mtd/partitions/ |
| D | tplink,safeloader-partitions.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/mtd/partitions/tplink,safeloader-partitions.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: TP-Link SafeLoader partitions 10 TP-Link home routers store various data on flash (e.g. bootloader, 14 Flash space layout of TP-Link devices is stored on flash itself using 15 a custom ASCII-based format. That format was first found in TP-Link 17 CFE and U-Boot bootloaders. 19 Partitions specified in partitions table cover whole flash space. Some [all …]
|
| D | fixed-partitions.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/mtd/partitions/fixed-partitions.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Fixed partitions 12 on-flash partition table such as RedBoot. 14 The partition table should be a node named "partitions". Partitions are then 18 - Rafał Miłecki <rafal@milecki.pl> 23 - const: fixed-partitions 24 - items: [all …]
|
| /kernel/linux/linux-6.6/drivers/mtd/parsers/ |
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 11 This provides partitions parser for devices based on BCM47xx 24 tristate "Broadcom's U-Boot partition parser" 27 Broadcom uses a custom way of storing U-Boot environment variables. 28 They are placed inside U-Boot partition itself at unspecified offset. 34 tristate "Command line partition table parsing" 49 <mtddef> := <mtd-id>:<partdef>[,<partdef>] 50 <partdef> := <size>[@offset][<name>][ro] 51 <mtd-id> := unique id used in mapping driver/device 52 <size> := standard linux memsize OR "-" to denote all [all …]
|
| D | tplink_safeloader.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 #include <linux/mtd/partitions.h> 27 u32 offset; in mtd_parser_tplink_safeloader_read_table() local 35 np = of_get_child_by_name(np, "partitions"); in mtd_parser_tplink_safeloader_read_table() 37 if (of_property_read_u32(np, "partitions-table-offset", &offset)) { in mtd_parser_tplink_safeloader_read_table() 38 pr_err("Failed to get partitions table offset\n"); in mtd_parser_tplink_safeloader_read_table() 42 err = mtd_read(mtd, offset, sizeof(hdr), &bytes_read, (uint8_t *)&hdr); in mtd_parser_tplink_safeloader_read_table() 44 pr_err("Failed to read from %s at 0x%x\n", mtd->name, offset); in mtd_parser_tplink_safeloader_read_table() 54 err = mtd_read(mtd, offset + sizeof(hdr), size, &bytes_read, buf); in mtd_parser_tplink_safeloader_read_table() 56 pr_err("Failed to read from %s at 0x%zx\n", mtd->name, offset + sizeof(hdr)); in mtd_parser_tplink_safeloader_read_table() [all …]
|
| D | qcomsmempart.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 #include <linux/mtd/partitions.h> 28 * struct smem_flash_pentry - SMEM Flash partition entry 30 * @offset: Offset in blocks 36 __le32 offset; member 42 * struct smem_flash_ptable - SMEM Flash partition table 43 * @magic1: Partition table Magic 1 44 * @magic2: Partition table Magic 2 45 * @version: Partition table version 46 * @numparts: Number of partitions in this ptable [all …]
|
| D | cmdlinepart.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Read flash partition table from command line 5 * Copyright © 2002 SYSGO Real-Time Solutions GmbH 6 * Copyright © 2002-2010 David Woodhouse <dwmw2@infradead.org> 11 * <mtddef> := <mtd-id>:<partdef>[,<partdef>] 12 * <partdef> := <size>[@<offset>][<name>][ro][lk][slc] 13 * <mtd-id> := unique name used in mapping driver/device (mtd->name) 14 * <size> := standard linux memsize OR "-" to denote all remaining space 17 * <offset> := standard linux memsize 23 * <size> and <offset> can be specified such that the parts are out of order [all …]
|
| D | redboot.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Parse RedBoot-style Flash Image System (FIS) tables and 7 * Copyright © 2001-2010 David Woodhouse <dwmw2@infradead.org> 16 #include <linux/mtd/partitions.h> 26 unsigned char _pad[256 - (16 + 7 * sizeof(u32))]; 56 npart = of_get_child_by_name(np, "partitions"); in parse_redboot_of() 60 ret = of_property_read_u32(npart, "fis-index-block", &dirblock); in parse_redboot_of() 87 unsigned long offset; in parse_redboot_partitions() local 95 offset = master->size + directory * master->erasesize; in parse_redboot_partitions() 96 while (mtd_block_isbad(master, offset)) { in parse_redboot_partitions() [all …]
|
| /kernel/linux/linux-5.10/drivers/mtd/parsers/ |
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 11 This provides partitions parser for devices based on BCM47xx 24 tristate "Command line partition table parsing" 39 <mtddef> := <mtd-id>:<partdef>[,<partdef>] 40 <partdef> := <size>[@offset][<name>][ro] 41 <mtd-id> := unique id used in mapping driver/device 42 <size> := standard linux memsize OR "-" to denote all 52 1 flash resource (mtd-id "sa1100"), with 1 single writable partition: 53 mtdparts=sa1100:- 55 Same flash, but 2 named partitions, the first one being read-only: [all …]
|
| D | cmdlinepart.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Read flash partition table from command line 5 * Copyright © 2002 SYSGO Real-Time Solutions GmbH 6 * Copyright © 2002-2010 David Woodhouse <dwmw2@infradead.org> 11 * <mtddef> := <mtd-id>:<partdef>[,<partdef>] 12 * <partdef> := <size>[@<offset>][<name>][ro][lk][slc] 13 * <mtd-id> := unique name used in mapping driver/device (mtd->name) 14 * <size> := standard linux memsize OR "-" to denote all remaining space 17 * <offset> := standard linux memsize 23 * <size> and <offset> can be specified such that the parts are out of order [all …]
|
| D | redboot.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Parse RedBoot-style Flash Image System (FIS) tables and 7 * Copyright © 2001-2010 David Woodhouse <dwmw2@infradead.org> 16 #include <linux/mtd/partitions.h> 26 unsigned char _pad[256-(16+7*sizeof(uint32_t))]; 56 npart = of_get_child_by_name(np, "partitions"); in parse_redboot_of() 60 ret = of_property_read_u32(npart, "fis-index-block", &dirblock); in parse_redboot_of() 87 unsigned long offset; in parse_redboot_partitions() local 95 offset = master->size + directory * master->erasesize; in parse_redboot_partitions() 96 while (mtd_block_isbad(master, offset)) { in parse_redboot_partitions() [all …]
|
| /kernel/linux/linux-6.6/block/partitions/ |
| D | msdos.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * fs/partitions/msdos.c 6 * Copyright (C) 1991-1998 Linus Torvalds 9 * in the early extended-partition checks and added DM partitions 16 * More flexible handling of extended partitions - aeb, 950831 18 * Check partition table on IDE disks for common CHS translations 20 * Re-organised Feb 1998 Russell King 36 * the nr_sects and start_sect partition table entries are 43 return (sector_t)get_unaligned_le32(&p->nr_sects); in nr_sects() 48 return (sector_t)get_unaligned_le32(&p->start_sect); in start_sect() [all …]
|
| D | sun.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * fs/partitions/sun.c 7 * Copyright (C) 1991-1998 Linus Torvalds 8 * Re-organised Feb 1998 Russell King 33 __be16 nparts; /* Number of partitions */ in sun_partition() 57 __be16 obs3; /* bhead - Label head offset */ in sun_partition() 58 __be16 obs4; /* ppart - Physical Partition */ in sun_partition() 62 } partitions[8]; in sun_partition() member 73 return -1; in sun_partition() 75 p = label->partitions; in sun_partition() [all …]
|
| /kernel/linux/linux-5.10/block/partitions/ |
| D | msdos.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * fs/partitions/msdos.c 6 * Copyright (C) 1991-1998 Linus Torvalds 9 * in the early extended-partition checks and added DM partitions 16 * More flexible handling of extended partitions - aeb, 950831 18 * Check partition table on IDE disks for common CHS translations 20 * Re-organised Feb 1998 Russell King 36 * the nr_sects and start_sect partition table entries are 43 return (sector_t)get_unaligned_le32(&p->nr_sects); in nr_sects() 48 return (sector_t)get_unaligned_le32(&p->start_sect); in start_sect() [all …]
|
| D | sun.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * fs/partitions/sun.c 7 * Copyright (C) 1991-1998 Linus Torvalds 8 * Re-organised Feb 1998 Russell King 33 __be16 nparts; /* Number of partitions */ in sun_partition() 57 __be16 obs3; /* bhead - Label head offset */ in sun_partition() 58 __be16 obs4; /* ppart - Physical Partition */ in sun_partition() 62 } partitions[8]; in sun_partition() member 74 return -1; in sun_partition() 76 p = label->partitions; in sun_partition() [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/mtd/ |
| D | partition.txt | 1 Flash partitions in device tree 8 flash layout set at production time. Some may use on-flash table that describes 12 To assist system software in locating partitions, we allow describing which 14 a subnode of the flash device that is named 'partitions'. It must have a 20 hierarchical (multi-level) layouts and should be used if there is some 21 significant relation between partitions or some partition internally uses 24 Available bindings are listed in the "partitions" subdirectory. 27 Fixed Partitions 30 Partitions can be represented by sub-nodes of a flash device. This can be used 32 used for what purposes, but which don't use an on-flash partition table such [all …]
|
| D | atmel-nand.txt | 4 Documentation/devicetree/bindings/memory-controllers/atmel,ebi.txt). 11 - compatible: should be one of the following 12 "atmel,at91rm9200-nand-controller" 13 "atmel,at91sam9260-nand-controller" 14 "atmel,at91sam9261-nand-controller" 15 "atmel,at91sam9g45-nand-controller" 16 "atmel,sama5d3-nand-controller" 17 "microchip,sam9x60-nand-controller" 18 - ranges: empty ranges property to forward EBI ranges definitions. 19 - #address-cells: should be set to 2. [all …]
|
| /kernel/linux/linux-5.10/drivers/soc/qcom/ |
| D | smem.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright (c) 2012-2013, The Linux Foundation. All rights reserved. 23 * with a table of contents data structure (@smem_header) at the beginning of 35 * These partitions are referenced from an optional partition table 37 * partition table entries (@smem_ptable_entry) lists the involved processors 42 * two regions are cached and non-cached memory respectively. Each region 46 * Items in the non-cached region are allocated from the start of the partition 48 * is hence the region between the cached and non-cached offsets. The header of 57 * be held - currently lock number 3 of the sfpb or tcsr is used for this on all 90 * struct smem_proc_comm - proc_comm communication struct (legacy) [all …]
|
| /kernel/linux/linux-6.6/drivers/soc/qcom/ |
| D | smem.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright (c) 2012-2013, The Linux Foundation. All rights reserved. 25 * with a table of contents data structure (@smem_header) at the beginning of 37 * These partitions are referenced from an optional partition table 39 * partition table entries (@smem_ptable_entry) lists the involved processors 44 * two regions are cached and non-cached memory respectively. Each region 48 * Items in the non-cached region are allocated from the start of the partition 50 * is hence the region between the cached and non-cached offsets. The header of 59 * be held - currently lock number 3 of the sfpb or tcsr is used for this on all 92 * struct smem_proc_comm - proc_comm communication struct (legacy) [all …]
|
| /kernel/linux/linux-5.10/drivers/mtd/ |
| D | mtdpart.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * Copyright © 2000-2010 David Woodhouse <dwmw2@infradead.org> 17 #include <linux/mtd/partitions.h> 30 kfree(mtd->name); in free_partition() 39 int wr_alignment = (parent->flags & MTD_NO_ERASE) ? in allocate_partition() 40 master->writesize : master->erasesize; in allocate_partition() 42 parent->part.size : parent->size; in allocate_partition() 50 name = kstrdup(part->name, GFP_KERNEL); in allocate_partition() 52 printk(KERN_ERR"memory allocation error while creating partitions for \"%s\"\n", in allocate_partition() 53 parent->name); in allocate_partition() [all …]
|
| /kernel/linux/linux-6.6/drivers/mtd/ |
| D | mtdpart.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * Copyright © 2000-2010 David Woodhouse <dwmw2@infradead.org> 17 #include <linux/mtd/partitions.h> 31 kfree(mtd->name); in free_partition() 37 WARN_ON(!list_empty(&mtd->part.node)); in release_mtd_partition() 46 int wr_alignment = (parent->flags & MTD_NO_ERASE) ? in allocate_partition() 47 master->writesize : master->erasesize; in allocate_partition() 49 parent->part.size : parent->size; in allocate_partition() 57 name = kstrdup(part->name, GFP_KERNEL); in allocate_partition() 59 printk(KERN_ERR"memory allocation error while creating partitions for \"%s\"\n", in allocate_partition() [all …]
|
| /kernel/linux/linux-6.6/Documentation/admin-guide/device-mapper/ |
| D | unstriped.rst | 2 Device-mapper "unstriped" target 8 The device-mapper "unstriped" target provides a transparent mechanism to 9 unstripe a device-mapper "striped" target to access the underlying disks 10 without having to touch the true backing block-device. It can also be 11 used to unstripe a hardware RAID-0 to access backing disks. 14 <number of stripes> <chunk size> <stripe #> <dev_path> <offset> 33 An example of undoing an existing dm-stripe 34 ------------------------------------------- 47 SEQ_END=$((${NUM}-1)) 56 dd if=/dev/zero of=member-${i} bs=${MEMBER_SIZE} count=1 oflag=direct [all …]
|
| /kernel/linux/linux-5.10/Documentation/admin-guide/device-mapper/ |
| D | unstriped.rst | 2 Device-mapper "unstriped" target 8 The device-mapper "unstriped" target provides a transparent mechanism to 9 unstripe a device-mapper "striped" target to access the underlying disks 10 without having to touch the true backing block-device. It can also be 11 used to unstripe a hardware RAID-0 to access backing disks. 14 <number of stripes> <chunk size> <stripe #> <dev_path> <offset> 33 An example of undoing an existing dm-stripe 34 ------------------------------------------- 47 SEQ_END=$((${NUM}-1)) 56 dd if=/dev/zero of=member-${i} bs=${MEMBER_SIZE} count=1 oflag=direct [all …]
|
| /kernel/linux/linux-5.10/arch/arm/mach-s3c/ |
| D | common-smdk-s3c24xx.c | 1 // SPDX-License-Identifier: GPL-2.0 24 #include <linux/mtd/partitions.h> 31 #include <asm/mach-types.h> 34 #include "regs-gpio.h" 35 #include "gpio-samsung.h" 36 #include <linux/platform_data/leds-s3c24xx.h> 37 #include <linux/platform_data/mtd-nand-s3c2410.h> 39 #include "gpio-cfg.h" 43 #include "common-smdk-s3c24xx.h" 49 .table = { [all …]
|
| /kernel/linux/linux-6.6/arch/arm/boot/dts/broadcom/ |
| D | bcm47081-tplink-archer-c5-v2.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 6 /dts-v1/; 11 compatible = "tplink,archer-c5-v2", "brcm,bcm47081", "brcm,bcm4708"; 12 model = "TP-LINK Archer C5 V2"; 24 compatible = "gpio-leds"; 26 led-2ghz { 31 led-lan { 36 led-usb2-port1 { 37 label = "bcm53xx:green:usb2-port1"; 39 trigger-sources = <&ohci_port1>, <&ehci_port1>; [all …]
|
| D | bcm4709-tplink-archer-c9-v1.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 6 /dts-v1/; 11 compatible = "tplink,archer-c9-v1", "brcm,bcm4709", "brcm,bcm4708"; 12 model = "TP-LINK Archer C9 V1"; 24 compatible = "gpio-leds"; 26 led-lan { 31 led-wps { 36 led-2ghz { 41 led-5ghz { 46 led-usb3 { [all …]
|