Home
last modified time | relevance | path

Searched +full:mtd +full:- +full:name (Results 1 – 25 of 917) sorted by relevance

12345678910>>...37

/kernel/linux/linux-5.10/drivers/mtd/
Dmtdsuper.c1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* MTD-based superblock management
4 * Copyright © 2001-2007 Red Hat, Inc. All Rights Reserved.
5 * Copyright © 2001-2010 David Woodhouse <dwmw2@infradead.org>
11 #include <linux/mtd/super.h>
17 #include <linux/backing-dev.h>
23 * - they are if the underlying MTD device is the same
27 struct mtd_info *mtd = fc->sget_key; in mtd_test_super() local
29 if (sb->s_mtd == fc->sget_key) { in mtd_test_super()
31 mtd->index, mtd->name); in mtd_test_super()
[all …]
Dmtdpart.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Simple MTD partitioning layer
7 * Copyright © 2000-2010 David Woodhouse <dwmw2@infradead.org>
16 #include <linux/mtd/mtd.h>
17 #include <linux/mtd/partitions.h>
24 * MTD methods which simply translate the effective address and pass through
28 static inline void free_partition(struct mtd_info *mtd) in free_partition() argument
30 kfree(mtd->name); in free_partition()
31 kfree(mtd); in free_partition()
39 int wr_alignment = (parent->flags & MTD_NO_ERASE) ? in allocate_partition()
[all …]
Dmtdcore.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Core registration and callback routines for MTD
6 * Copyright © 1999-2010 David Woodhouse <dwmw2@infradead.org>
24 #include <linux/backing-dev.h>
30 #include <linux/nvmem-provider.h>
32 #include <linux/mtd/mtd.h>
33 #include <linux/mtd/partitions.h>
43 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_suspend() local
45 return mtd ? mtd_suspend(mtd) : 0; in mtd_cls_suspend()
50 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_resume() local
[all …]
/kernel/linux/linux-5.10/drivers/mtd/devices/
Dphram.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright (c) 2003-2004 Joern Engel <joern@wh.fh-wedel.de>
9 * phram=<name>,<start>,<len>
10 * <name> may be up to 63 characters.
28 #include <linux/mtd/mtd.h>
31 struct mtd_info mtd; member
37 static int phram_erase(struct mtd_info *mtd, struct erase_info *instr) in phram_erase() argument
39 u_char *start = mtd->priv; in phram_erase()
41 memset(start + instr->addr, 0xff, instr->len); in phram_erase()
46 static int phram_point(struct mtd_info *mtd, loff_t from, size_t len, in phram_point() argument
[all …]
Dblock2mtd.c2 * block2mtd.c - create an mtd from a block device
5 * Copyright (C) 2004-2006 Joern Engel <joern@wh.fh-wedel.de>
23 #include <linux/backing-dev.h>
28 #include <linux/mtd/mtd.h>
38 struct mtd_info mtd; member
43 /* Static info about the MTD, used in cleanup_module */
55 struct address_space *mapping = dev->blkdev->bd_inode->i_mapping; in _block2mtd_erase()
69 if (*p != -1UL) { in _block2mtd_erase()
79 pages--; in _block2mtd_erase()
84 static int block2mtd_erase(struct mtd_info *mtd, struct erase_info *instr) in block2mtd_erase() argument
[all …]
Dsst25l.c1 // SPDX-License-Identifier: GPL-2.0-only
21 #include <linux/mtd/mtd.h>
22 #include <linux/mtd/partitions.h>
49 struct mtd_info mtd; member
53 const char *name; member
60 #define to_sst25l_flash(x) container_of(x, struct sst25l_flash, mtd)
83 err = spi_sync(flash->spi, &m); in sst25l_status()
97 err = spi_write(flash->spi, command, 1); in sst25l_write_enable()
102 err = spi_write(flash->spi, command, 1); in sst25l_write_enable()
108 err = spi_write(flash->spi, command, 2); in sst25l_write_enable()
[all …]
/kernel/linux/linux-6.6/drivers/mtd/
Dmtdcore.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Core registration and callback routines for MTD
6 * Copyright © 1999-2010 David Woodhouse <dwmw2@infradead.org>
24 #include <linux/backing-dev.h>
31 #include <linux/nvmem-provider.h>
34 #include <linux/mtd/mtd.h>
35 #include <linux/mtd/partitions.h>
45 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_suspend() local
47 return mtd ? mtd_suspend(mtd) : 0; in mtd_cls_suspend()
52 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_resume() local
[all …]
Dmtdsuper.c1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* MTD-based superblock management
4 * Copyright © 2001-2007 Red Hat, Inc. All Rights Reserved.
5 * Copyright © 2001-2010 David Woodhouse <dwmw2@infradead.org>
11 #include <linux/mtd/super.h>
17 #include <linux/backing-dev.h>
23 * get a superblock on an MTD-backed filesystem
26 struct mtd_info *mtd, in mtd_get_sb() argument
33 sb = sget_dev(fc, MKDEV(MTD_BLOCK_MAJOR, mtd->index)); in mtd_get_sb()
37 if (sb->s_root) { in mtd_get_sb()
[all …]
Dmtdpart.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Simple MTD partitioning layer
7 * Copyright © 2000-2010 David Woodhouse <dwmw2@infradead.org>
16 #include <linux/mtd/mtd.h>
17 #include <linux/mtd/partitions.h>
25 * MTD methods which simply translate the effective address and pass through
29 static inline void free_partition(struct mtd_info *mtd) in free_partition() argument
31 kfree(mtd->name); in free_partition()
32 kfree(mtd); in free_partition()
35 void release_mtd_partition(struct mtd_info *mtd) in release_mtd_partition() argument
[all …]
Dmtdblock.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Direct MTD block device access
5 * Copyright © 1999-2010 David Woodhouse <dwmw2@infradead.org>
6 * Copyright © 2000-2003 Nicolas Pitre <nico@fluxnic.net>
18 #include <linux/mtd/mtd.h>
19 #include <linux/mtd/blktrans.h>
38 * buffer cache can handle, we must implement read-modify-write on flash
39 * sectors for each block write requests. To avoid over-erasing flash sectors
44 static int erase_write (struct mtd_info *mtd, unsigned long pos, in erase_write() argument
57 ret = mtd_erase(mtd, &erase); in erase_write()
[all …]
/kernel/linux/linux-5.10/drivers/mtd/parsers/
Dafs.c1 // SPDX-License-Identifier: GPL-2.0-or-later
4 drivers/mtd/afs.c: ARM Flash Layout/Partitioning
22 #include <linux/mtd/mtd.h>
23 #include <linux/mtd/map.h>
24 #include <linux/mtd/partitions.h>
44 char name[16]; /* Null terminated */ member
47 u32 headerType; /* AIF, RLF, s-record etc. */
56 while (num--) in word_sum()
78 static bool afs_is_v1(struct mtd_info *mtd, u_int off) in afs_is_v1() argument
81 u_int ptr = off + mtd->erasesize - 12; in afs_is_v1()
[all …]
/kernel/linux/linux-6.6/drivers/mtd/parsers/
Dafs.c1 // SPDX-License-Identifier: GPL-2.0-or-later
4 drivers/mtd/afs.c: ARM Flash Layout/Partitioning
22 #include <linux/mtd/mtd.h>
23 #include <linux/mtd/map.h>
24 #include <linux/mtd/partitions.h>
44 char name[16]; /* Null terminated */ member
47 u32 headerType; /* AIF, RLF, s-record etc. */
56 while (num--) in word_sum()
78 static bool afs_is_v1(struct mtd_info *mtd, u_int off) in afs_is_v1() argument
81 u_int ptr = off + mtd->erasesize - 12; in afs_is_v1()
[all …]
/kernel/linux/linux-6.6/drivers/mtd/devices/
Dblock2mtd.c2 * block2mtd.c - create an mtd from a block device
5 * Copyright (C) 2004-2006 Joern Engel <joern@wh.fh-wedel.de>
23 #include <linux/backing-dev.h>
28 #include <linux/mtd/mtd.h>
34 /* Maximum number of comma-separated items in the 'block2mtd=' parameter */
41 struct mtd_info mtd; member
46 /* Static info about the MTD, used in cleanup_module */
58 struct address_space *mapping = dev->blkdev->bd_inode->i_mapping; in _block2mtd_erase()
72 if (*p != -1UL) { in _block2mtd_erase()
82 pages--; in _block2mtd_erase()
[all …]
Dphram.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright (c) 2003-2004 Joern Engel <joern@wh.fh-wedel.de>
9 * phram=<name>,<start>,<len>[,<erasesize>]
10 * <name> may be up to 63 characters.
28 #include <linux/mtd/mtd.h>
35 struct mtd_info mtd; member
42 static int phram_erase(struct mtd_info *mtd, struct erase_info *instr) in phram_erase() argument
44 u_char *start = mtd->priv; in phram_erase()
46 memset(start + instr->addr, 0xff, instr->len); in phram_erase()
51 static int phram_point(struct mtd_info *mtd, loff_t from, size_t len, in phram_point() argument
[all …]
Dsst25l.c1 // SPDX-License-Identifier: GPL-2.0-only
21 #include <linux/mtd/mtd.h>
22 #include <linux/mtd/partitions.h>
49 struct mtd_info mtd; member
53 const char *name; member
60 #define to_sst25l_flash(x) container_of(x, struct sst25l_flash, mtd)
83 err = spi_sync(flash->spi, &m); in sst25l_status()
97 err = spi_write(flash->spi, command, 1); in sst25l_write_enable()
102 err = spi_write(flash->spi, command, 1); in sst25l_write_enable()
108 err = spi_write(flash->spi, command, 2); in sst25l_write_enable()
[all …]
/kernel/linux/linux-5.10/drivers/mtd/chips/
Dmap_rom.c15 #include <linux/mtd/mtd.h>
16 #include <linux/mtd/map.h>
22 static int maprom_erase (struct mtd_info *mtd, struct erase_info *info);
23 static int maprom_point (struct mtd_info *mtd, loff_t from, size_t len,
25 static int maprom_unpoint(struct mtd_info *mtd, loff_t from, size_t len);
30 .name = "map_rom",
38 erase_size = of_get_property(map->device_node, "erase-size", NULL); in default_erasesize()
40 return !erase_size ? map->size : be32_to_cpu(*erase_size); in default_erasesize()
45 struct mtd_info *mtd; in map_rom_probe() local
47 mtd = kzalloc(sizeof(*mtd), GFP_KERNEL); in map_rom_probe()
[all …]
Dmap_absent.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * This map driver is used to allocate "placeholder" MTD
9 * registration of MTD device nodes regardless of probe outcome.
17 * Any device 'probed' with this driver will return -ENODEV
27 #include <linux/mtd/mtd.h>
28 #include <linux/mtd/map.h>
41 .name = "map_absent",
47 struct mtd_info *mtd; in map_absent_probe() local
49 mtd = kzalloc(sizeof(*mtd), GFP_KERNEL); in map_absent_probe()
50 if (!mtd) { in map_absent_probe()
[all …]
Dmap_ram.c14 #include <linux/mtd/mtd.h>
15 #include <linux/mtd/map.h>
23 static int mapram_point (struct mtd_info *mtd, loff_t from, size_t len,
25 static int mapram_unpoint(struct mtd_info *mtd, loff_t from, size_t len);
30 .name = "map_ram",
36 struct mtd_info *mtd; in map_ram_probe() local
49 map_write8(map, 0x55, map->size-1); in map_ram_probe()
50 if (map_read8(map, map->size-1) != 0x55) in map_ram_probe()
53 map_write8(map, 0xAA, map->size-1); in map_ram_probe()
54 if (map_read8(map, map->size-1) != 0xAA) in map_ram_probe()
[all …]
/kernel/linux/linux-6.6/drivers/mtd/maps/
Dsa1100-flash.c1 // SPDX-License-Identifier: GPL-2.0-only
18 #include <linux/mtd/mtd.h>
19 #include <linux/mtd/map.h>
20 #include <linux/mtd/partitions.h>
21 #include <linux/mtd/concat.h>
28 char name[16]; member
30 struct mtd_info *mtd; member
35 struct mtd_info *mtd; member
50 subdev->plat->set_vpp(1); in sa1100_set_vpp()
52 if (--sa1100_vpp_refcnt == 0) /* last nested 'off' */ in sa1100_set_vpp()
[all …]
/kernel/linux/linux-5.10/drivers/mtd/maps/
Dsa1100-flash.c1 // SPDX-License-Identifier: GPL-2.0-only
18 #include <linux/mtd/mtd.h>
19 #include <linux/mtd/map.h>
20 #include <linux/mtd/partitions.h>
21 #include <linux/mtd/concat.h>
28 char name[16]; member
30 struct mtd_info *mtd; member
35 struct mtd_info *mtd; member
50 subdev->plat->set_vpp(1); in sa1100_set_vpp()
52 if (--sa1100_vpp_refcnt == 0) /* last nested 'off' */ in sa1100_set_vpp()
[all …]
/kernel/linux/linux-6.6/drivers/mtd/chips/
Dmap_rom.c1 // SPDX-License-Identifier: GPL-2.0
16 #include <linux/mtd/mtd.h>
17 #include <linux/mtd/map.h>
23 static int maprom_erase (struct mtd_info *mtd, struct erase_info *info);
24 static int maprom_point (struct mtd_info *mtd, loff_t from, size_t len,
26 static int maprom_unpoint(struct mtd_info *mtd, loff_t from, size_t len);
31 .name = "map_rom",
39 erase_size = of_get_property(map->device_node, "erase-size", NULL); in default_erasesize()
41 return !erase_size ? map->size : be32_to_cpu(*erase_size); in default_erasesize()
46 struct mtd_info *mtd; in map_rom_probe() local
[all …]
Dmap_absent.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * This map driver is used to allocate "placeholder" MTD
9 * registration of MTD device nodes regardless of probe outcome.
17 * Any device 'probed' with this driver will return -ENODEV
27 #include <linux/mtd/mtd.h>
28 #include <linux/mtd/map.h>
41 .name = "map_absent",
47 struct mtd_info *mtd; in map_absent_probe() local
49 mtd = kzalloc(sizeof(*mtd), GFP_KERNEL); in map_absent_probe()
50 if (!mtd) { in map_absent_probe()
[all …]
Dmap_ram.c1 // SPDX-License-Identifier: GPL-2.0
15 #include <linux/mtd/mtd.h>
16 #include <linux/mtd/map.h>
24 static int mapram_point (struct mtd_info *mtd, loff_t from, size_t len,
26 static int mapram_unpoint(struct mtd_info *mtd, loff_t from, size_t len);
31 .name = "map_ram",
37 struct mtd_info *mtd; in map_ram_probe() local
50 map_write8(map, 0x55, map->size-1); in map_ram_probe()
51 if (map_read8(map, map->size-1) != 0x55) in map_ram_probe()
54 map_write8(map, 0xAA, map->size-1); in map_ram_probe()
[all …]
/kernel/linux/linux-5.10/drivers/mtd/ubi/
Dgluebi.c1 // SPDX-License-Identifier: GPL-2.0-or-later
9 * This is a small driver which implements fake MTD devices on top of UBI
11 * MTD-oriented software (including all the legacy software) work on top of
14 * Gluebi emulates MTD devices of "MTD_UBIVOLUME" type. Their minimal I/O unit
15 * size (@mtd->writesize) is equivalent to the UBI minimal I/O unit. The
26 #include <linux/mtd/ubi.h>
27 #include <linux/mtd/mtd.h>
28 #include "ubi-media.h"
32 current->pid, __func__, ##__VA_ARGS__)
35 * struct gluebi_device - a gluebi device description data structure.
[all …]
/kernel/linux/linux-6.6/drivers/mtd/ubi/
Dgluebi.c1 // SPDX-License-Identifier: GPL-2.0-or-later
9 * This is a small driver which implements fake MTD devices on top of UBI
11 * MTD-oriented software (including all the legacy software) work on top of
14 * Gluebi emulates MTD devices of "MTD_UBIVOLUME" type. Their minimal I/O unit
15 * size (@mtd->writesize) is equivalent to the UBI minimal I/O unit. The
26 #include <linux/mtd/ubi.h>
27 #include <linux/mtd/mtd.h>
28 #include "ubi-media.h"
32 current->pid, __func__, ##__VA_ARGS__)
35 * struct gluebi_device - a gluebi device description data structure.
[all …]

12345678910>>...37