/linux/Documentation/devicetree/bindings/mtd/partitions/ |
H A 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 …]
|
H A 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 …]
|
/linux/drivers/mtd/parsers/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 6 This provides partitions parser for devices based on BCM47xx 19 tristate "Broadcom's U-Boot partition parser" 22 Broadcom uses a custom way of storing U-Boot environment variables. 23 They are placed inside U-Boot partition itself at unspecified offset. 29 tristate "Command line partition table parsing" 44 <mtddef> := <mtd-id>:<partdef>[,<partdef>] 45 <partdef> := <size>[@offset][<name>][ro] 46 <mtd-id> := unique id used in mapping driver/device 47 <size> := standard linux memsize OR "-" to denote all [all …]
|
H A 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 …]
|
H A 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 …]
|
H A 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 …]
|
H A 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 …]
|
H A D | sharpslpart.c | 2 * sharpslpart.c - MTD partition parser for NAND flash using the SHARP FTL 10 * linux/include/asm-arm/sharp_nand_logical.h 33 #include <linux/mtd/partitions.h> 57 * struct sharpsl_ftl - Sharp FTL Logical Table 59 * @log2phy: the logical-to-physical table 61 * Structure containing the logical-to-physical translation table 83 if (!oobfree.length || oobfree.offset > 15 || in sharpsl_nand_check_ooblayout() 84 (oobfree.offset + oobfree.length) < 8) in sharpsl_nand_check_ooblayout() 87 i = oobfree.offset >= 8 ? oobfree.offset : 8; in sharpsl_nand_check_ooblayout() 88 for (; i < oobfree.offset + oobfree.length && i < 16; i++) in sharpsl_nand_check_ooblayout() [all …]
|
/linux/block/partitions/ |
H A 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 …]
|
H A 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 …]
|
H A D | sysv68.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * fs/partitions/sysv68.c 11 * Volume ID structure: on first 256-bytes sector of disk 20 * config block: second 256-bytes sector on disk 25 __be32 ios_slcblk; /* Slice table block number */ 26 __be16 ios_slccnt; /* Number of entries in slice table */ 40 * Slice Table Structure 45 __be32 blkoff; /* block offset of slice */ 61 return -1; in sysv68_partition() 64 if (memcmp(b->dk_vid.vid_mac, "MOTOROLA", sizeof(b->dk_vid.vid_mac))) { in sysv68_partition() [all …]
|
/linux/drivers/mtd/ |
H A 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 …]
|
H A D | mtdcore.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Copyright © 1999-2010 David Woodhouse <dwmw2@infradead.org> 24 #include <linux/backing-dev.h> 31 #include <linux/nvmem-provider.h> 33 #include <linux/error-injection.h> 36 #include <linux/mtd/partitions.h> 95 dev_t index = MTD_DEVT(mtd->index); in mtd_release() 97 idr_remove(&mtd_idr, mtd->index); in mtd_release() 112 debugfs_remove_recursive(mtd->dbg.dfs_dir); in mtd_device_release() 115 nvmem_unregister(mtd->nvmem); in mtd_device_release() [all …]
|
/linux/Documentation/admin-guide/device-mapper/ |
H A 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 …]
|
/linux/arch/arm/boot/dts/broadcom/ |
H A 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 …]
|
H A 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 …]
|
/linux/Documentation/filesystems/ |
H A D | orangefs.rst | 1 .. SPDX-License-Identifier: GPL-2.0 7 OrangeFS is an LGPL userspace scale-out parallel storage system. It is ideal 51 On Fedora, install orangefs and orangefs-server:: 53 dnf -y install orangefs orangefs-server 64 pvfs2-client-core. 68 pvfs2-server -f /etc/orangefs/orangefs.conf 72 systemctl start orangefs-server 76 pvfs2-ping -m /pvfsmnt 81 systemctl start orangefs-client 85 mount -t pvfs2 tcp://localhost:3334/orangefs /pvfsmnt [all …]
|
/linux/Documentation/devicetree/bindings/mtd/ |
H A D | davinci-nand.txt | 7 Davinci DM646x - https://www.ti.com/lit/ug/sprueq7c/sprueq7c.pdf 8 Kestone - https://www.ti.com/lit/ug/sprugz3a/sprugz3a.pdf 12 - compatible: "ti,davinci-nand" 13 "ti,keystone-nand" 15 - reg: Contains 2 offset/length values: 16 - offset and length for the access window. 17 - offset and length for accessing the AEMIF 20 - ti,davinci-chipselect: number of chipselect. Indicates on the 23 Can be in the range [0-3]. 27 - ti,davinci-mask-ale: mask for ALE. Needed for executing address [all …]
|
H A 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 …]
|
/linux/Documentation/driver-api/ |
H A D | mtdnand.rst | 10 The generic NAND driver supports almost all NAND and AG-AND based chips 31 -------------------------- 37 - [MTD Interface] 43 - [NAND Interface] 48 - [GENERIC] 53 - [DEFAULT] 65 ------------------------------- 71 - [INTERN] 77 - [REPLACEABLE] 86 - [BOARDSPECIFIC] [all …]
|
/linux/drivers/infiniband/hw/hfi1/ |
H A D | eprom.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 12 * The EPROM is logically divided into three partitions: 24 #define EP_PAGE_MASK (EP_PAGE_SIZE - 1) 45 * All callers have verified the offset is at a page boundary. 47 static void read_page(struct hfi1_devdata *dd, u32 offset, u32 *result) in read_page() argument 51 write_csr(dd, ASIC_EEP_ADDR_CMD, CMD_READ_DATA(offset)); in read_page() 58 * Read length bytes starting at offset from the start of the EPROM. 75 * command address range. Note that '>' is correct below - the end in read_length() 79 return -EINVAL; in read_length() 91 bytes = EP_PAGE_SIZE - start_offset; in read_length() [all …]
|
/linux/drivers/input/rmi4/ |
H A D | rmi_f34v7.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright (c) 2007-2016, Synaptics Incorporated 27 ret = rmi_read_block(f34->fn->rmi_dev, in rmi_f34v7_read_flash_status() 28 f34->fn->fd.data_base_addr + V7_FLASH_STATUS_OFFSET, in rmi_f34v7_read_flash_status() 32 rmi_dbg(RMI_DEBUG_FN, &f34->fn->dev, in rmi_f34v7_read_flash_status() 37 f34->v7.in_bl_mode = status >> 7; in rmi_f34v7_read_flash_status() 38 f34->v7.flash_status = status & 0x1f; in rmi_f34v7_read_flash_status() 40 if (f34->v7.flash_status != 0x00) { in rmi_f34v7_read_flash_status() 41 dev_err(&f34->fn->dev, "%s: status=%d, command=0x%02x\n", in rmi_f34v7_read_flash_status() 42 __func__, f34->v7.flash_status, f34->v7.command); in rmi_f34v7_read_flash_status() [all …]
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-class-mtd | 4 Contact: linux-mtd@lists.infradead.org 12 Contact: linux-mtd@lists.infradead.org 16 physical/simulated flash devices, partitions on a flash 22 Contact: linux-mtd@lists.infradead.org 24 These directories provide the corresponding read-only device 30 Contact: linux-mtd@lists.infradead.org 34 read-write device so <minor> will be even. 39 Contact: linux-mtd@lists.infradead.org 42 to the read-only variant of the MTD device (in 48 Contact: linux-mtd@lists.infradead.org [all …]
|
/linux/arch/arm/mach-omap1/ |
H A D | board-ams-delta.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * linux/arch/arm/mach-omap1/board-ams-delta.c 5 * Modified from board-generic.c 19 #include <linux/mtd/nand-gpio.h> 20 #include <linux/mtd/partitions.h> 29 #include <linux/platform_data/gpio-omap.h> 30 #include <linux/soc/ti/omap1-mux.h> 33 #include <asm/mach-types.h> 37 #include <linux/platform_data/keypad-omap.h> 41 #include "ams-delta-fiq.h" [all …]
|
/linux/Documentation/userspace-api/media/v4l/ |
H A D | ext-ctrls-codec.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 3 .. _codec-controls: 24 .. _mpeg-control-id: 27 ----------------- 35 .. _v4l2-mpeg-stream-type: 40 enum v4l2_mpeg_stream_type - 41 The MPEG-1, -2 or -4 output stream type. One cannot assume anything 48 .. flat-table:: 49 :header-rows: 0 50 :stub-columns: 0 [all …]
|