Home
last modified time | relevance | path

Searched refs:mtd (Results 1 – 25 of 440) sorted by relevance

12345678910>>...18

/linux/include/linux/mtd/
A Dmtd.h403 while (mtd->parent) in mtd_get_master()
404 mtd = mtd->parent; in mtd_get_master()
406 return mtd; in mtd_get_master()
411 while (mtd->parent) { in mtd_get_master_ofs()
413 mtd = mtd->parent; in mtd_get_master_ofs()
421 return mtd->parent; in mtd_is_partition()
462 mtd->dev.of_node = np; in mtd_set_of_node()
463 if (!mtd->name) in mtd_set_of_node()
474 return ops->mode == MTD_OPS_AUTO_OOB ? mtd->oobavail : mtd->oobsize; in mtd_oobavail()
640 return mtd_div_by_ws(mtd_mod_by_eb(offs, mtd), mtd); in mtd_offset_to_wunit()
[all …]
/linux/drivers/mtd/
A Dmtdcore.c45 return mtd ? mtd_suspend(mtd) : 0; in mtd_cls_suspend()
407 mtd->_reboot(mtd); in mtd_reboot_notifier()
596 (mtd->_read && mtd->_read_oob))) in add_mtd_device()
670 dev_set_drvdata(&mtd->dev, mtd); in add_mtd_device()
739 mtd->index, mtd->name, mtd->usecount); in del_mtd_device()
1119 if (mtd && mtd != ret) in get_mtd_device()
1159 mtd = mtd->parent; in __get_mtd_device()
1220 mtd = mtd->parent; in __put_mtd_device()
1362 mtd = mtd->parent; in mtd_update_ecc_stats()
2206 mtd = mtd->parent; in mtd_block_markbad()
[all …]
A Dmtdpstore.c30 struct mtd_info *mtd = cxt->mtd; in mtdpstore_block_isbad() local
52 struct mtd_info *mtd = cxt->mtd; in mtdpstore_panic_block_isbad() local
63 struct mtd_info *mtd = cxt->mtd; in mtdpstore_mark_used() local
73 struct mtd_info *mtd = cxt->mtd; in mtdpstore_mark_unused() local
83 struct mtd_info *mtd = cxt->mtd; in mtdpstore_block_mark_unused() local
110 struct mtd_info *mtd = cxt->mtd; in mtdpstore_block_is_used() local
128 struct mtd_info *mtd = cxt->mtd; in mtdpstore_is_empty() local
142 struct mtd_info *mtd = cxt->mtd; in mtdpstore_mark_removed() local
152 struct mtd_info *mtd = cxt->mtd; in mtdpstore_block_clear_removed() local
168 struct mtd_info *mtd = cxt->mtd; in mtdpstore_block_is_removed() local
[all …]
A Dmtdchar.c80 mfi->mtd = mtd; in mtdchar_open()
94 struct mtd_info *mtd = mfi->mtd; in mtdchar_close() local
100 mtd_sync(mtd); in mtdchar_close()
131 struct mtd_info *mtd = mfi->mtd; in mtdchar_read() local
221 struct mtd_info *mtd = mfi->mtd; in mtdchar_write() local
312 struct mtd_info *mtd = mfi->mtd; in otp_select_filemode() local
627 struct mtd_info *mtd = mfi->mtd; in mtdchar_ioctl() local
1028 struct mtd_info *mtd = mfi->mtd; in mtdchar_unlocked_ioctl() local
1054 struct mtd_info *mtd = mfi->mtd; in mtdchar_compat_ioctl() local
1142 struct mtd_info *mtd = mfi->mtd; in mtdchar_get_unmapped_area() local
[all …]
A Dmtdconcat.c30 struct mtd_info mtd; member
83 mtd->ecc_stats.failed++; in concat_read()
86 mtd->ecc_stats.corrected++; in concat_read()
200 if (mtd->writesize > 1) { in concat_writev()
202 if (do_div(__to, mtd->writesize) || (total_len % mtd->writesize)) in concat_writev()
287 mtd->ecc_stats.failed++; in concat_read_oob()
290 mtd->ecc_stats.corrected++; in concat_read_oob()
624 mtd->ecc_stats.badblocks++; in concat_block_markbad()
727 concat->mtd.flags |= in mtd_concat_create()
759 concat->mtd.name = name; in mtd_concat_create()
[all …]
A Dmtdoops.c49 struct mtd_info *mtd; member
76 struct mtd_info *mtd = cxt->mtd; in mtdoops_erase_block() local
77 u32 start_page_offset = mtd_div_by_eb(offset, mtd) * mtd->erasesize; in mtdoops_erase_block()
125 struct mtd_info *mtd = cxt->mtd; in mtdoops_workfunc_erase() local
129 if (!mtd) in mtdoops_workfunc_erase()
179 struct mtd_info *mtd = cxt->mtd; in mtdoops_write() local
224 struct mtd_info *mtd = cxt->mtd; in find_next_position() local
315 if (mtd->size < mtd->erasesize * 2) { in mtdoops_notify_add()
317 mtd->index); in mtdoops_notify_add()
351 cxt->mtd = mtd; in mtdoops_notify_add()
[all …]
A D.built-in.a.cmd1mtd/built-in.a := echo >/dev/null; rm -f drivers/mtd/built-in.a; /usr/bin/ccache /home/test/worksp…
A Dmtdblock.c61 pos, len, mtd->name); in erase_write()
80 struct mtd_info *mtd = mtdblk->mbd.mtd; in write_cached_data() local
113 struct mtd_info *mtd = mtdblk->mbd.mtd; in do_cached_write() local
119 mtd->name, pos, len); in do_cached_write()
183 struct mtd_info *mtd = mtdblk->mbd.mtd; in do_cached_read() local
189 mtd->name, pos, len); in do_cached_read()
264 if (!(mbd->mtd->flags & MTD_NO_ERASE) && mbd->mtd->erasesize) { in mtdblock_open()
290 mtd_sync(mbd->mtd); in mtdblock_release()
305 mtd_sync(dev->mtd); in mtdblock_flush()
316 dev->mbd.mtd = mtd; in mtdblock_add_mtd()
[all …]
/linux/drivers/mtd/nand/onenand/
A Donenand_base.c1386 this->command(mtd, readcmd, from, mtd->oobsize); in onenand_read_oob_nolock()
1561 this->command(mtd, readcmd, from, mtd->oobsize); in onenand_bbt_read_oob()
1609 this->command(mtd, readcmd, to, mtd->oobsize); in onenand_verify_oob()
1738 this->command(mtd, ONENAND_CMD_PROG, to, mtd->writesize); in onenand_panic_write()
1906 this->command(mtd, cmd, to, mtd->writesize); in onenand_write_ops_nolock()
2015 this->command(mtd, ONENAND_CMD_BUFFERRAM, to, mtd->oobsize); in onenand_write_oob_nolock()
2033 this->command(mtd, oobcmd, to, mtd->oobsize); in onenand_write_oob_nolock()
3738 mtd->oobsize = mtd->writesize >> 5; in onenand_probe()
3740 mtd->erasesize = mtd->writesize << 6; in onenand_probe()
3921 this->subpagesize = mtd->writesize >> mtd->subpage_sft; in onenand_scan()
[all …]
/linux/drivers/mtd/nand/raw/
A Dmpc5121_nfc.c142 nfc_write(mtd, reg, nfc_read(mtd, reg) | bits); in nfc_set()
148 nfc_write(mtd, reg, nfc_read(mtd, reg) & ~bits); in nfc_clear()
156 mpc5121_nfc_done(mtd); in mpc5121_nfc_send_addr()
164 mpc5121_nfc_done(mtd); in mpc5121_nfc_send_cmd()
172 mpc5121_nfc_done(mtd); in mpc5121_nfc_send_prog_page()
180 mpc5121_nfc_done(mtd); in mpc5121_nfc_send_read_page()
188 mpc5121_nfc_done(mtd); in mpc5121_nfc_send_read_id()
417 sbsize = (mtd->oobsize / (mtd->writesize / 512)) & ~1; in mpc5121_nfc_copy_spare()
764 nfc_write(mtd, NFC_SPAS, mtd->oobsize >> 1); in mpc5121_nfc_probe()
768 mtd); in mpc5121_nfc_probe()
[all …]
A D.built-in.a.cmd1mtd/nand/raw/built-in.a := echo >/dev/null; rm -f drivers/mtd/nand/raw/built-in.a; /usr/bin/ccache…
/linux/drivers/mtd/ubi/
A Dgluebi.c44 struct mtd_info mtd; member
92 gluebi = container_of(mtd, struct gluebi_device, mtd); in gluebi_get_device()
134 gluebi = container_of(mtd, struct gluebi_device, mtd); in gluebi_put_device()
159 gluebi = container_of(mtd, struct gluebi_device, mtd); in gluebi_read()
199 gluebi = container_of(mtd, struct gluebi_device, mtd); in gluebi_write()
202 if (len % mtd->writesize || offs % mtd->writesize) in gluebi_write()
244 gluebi = container_of(mtd, struct gluebi_device, mtd); in gluebi_erase()
288 mtd = &gluebi->mtd; in gluebi_create()
290 if (!mtd->name) { in gluebi_create()
368 mtd = &gluebi->mtd; in gluebi_remove()
[all …]
/linux/drivers/mtd/chips/
A Dmap_ram.c36 struct mtd_info *mtd; in map_ram_probe() local
59 mtd = kzalloc(sizeof(*mtd), GFP_KERNEL); in map_ram_probe()
60 if (!mtd) in map_ram_probe()
64 mtd->priv = map; in map_ram_probe()
65 mtd->name = map->name; in map_ram_probe()
66 mtd->type = MTD_RAM; in map_ram_probe()
67 mtd->size = map->size; in map_ram_probe()
76 mtd->writesize = 1; in map_ram_probe()
79 while(mtd->size & (mtd->erasesize - 1)) in map_ram_probe()
80 mtd->erasesize >>= 1; in map_ram_probe()
[all …]
A Dmap_rom.c45 struct mtd_info *mtd; in map_rom_probe() local
47 mtd = kzalloc(sizeof(*mtd), GFP_KERNEL); in map_rom_probe()
48 if (!mtd) in map_rom_probe()
52 mtd->priv = map; in map_rom_probe()
53 mtd->name = map->name; in map_rom_probe()
54 mtd->type = MTD_ROM; in map_rom_probe()
55 mtd->size = map->size; in map_rom_probe()
60 mtd->_sync = maprom_nop; in map_rom_probe()
64 mtd->writesize = 1; in map_rom_probe()
65 mtd->writebufsize = 1; in map_rom_probe()
[all …]
A Dmap_absent.c47 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()
55 mtd->priv = map; in map_absent_probe()
56 mtd->name = map->name; in map_absent_probe()
57 mtd->type = MTD_ABSENT; in map_absent_probe()
58 mtd->size = map->size; in map_absent_probe()
63 mtd->flags = 0; in map_absent_probe()
64 mtd->erasesize = PAGE_SIZE; in map_absent_probe()
65 mtd->writesize = 1; in map_absent_probe()
[all …]
/linux/drivers/mtd/tests/
A Doobtest.c356 if (IS_ERR(mtd)) { in mtd_oobtest_init()
367 tmp = mtd->size; in mtd_oobtest_init()
370 pgcnt = mtd->erasesize / mtd->writesize; in mtd_oobtest_init()
375 (unsigned long long)mtd->size, mtd->erasesize, in mtd_oobtest_init()
376 mtd->writesize, ebcnt, pgcnt, mtd->oobsize); in mtd_oobtest_init()
551 err = mtd_write_oob(mtd, mtd->size - mtd->writesize, &ops); in mtd_oobtest_init()
570 err = mtd_read_oob(mtd, mtd->size - mtd->writesize, &ops); in mtd_oobtest_init()
596 err = mtd_write_oob(mtd, mtd->size - mtd->writesize, &ops); in mtd_oobtest_init()
615 err = mtd_read_oob(mtd, mtd->size - mtd->writesize, &ops); in mtd_oobtest_init()
644 addr = (loff_t)(i + 1) * mtd->erasesize - mtd->writesize; in mtd_oobtest_init()
[all …]
A Dpagetest.c28 static struct mtd_info *mtd; variable
47 return mtdtest_write(mtd, addr, mtd->erasesize, writebuf); in write_eraseblock()
59 addr0 += mtd->erasesize; in verify_eraseblock()
61 addrn = mtd->size; in verify_eraseblock()
129 addrn = mtd->size; in crosstest()
337 if (IS_ERR(mtd)) { in mtd_pagetest_init()
338 err = PTR_ERR(mtd); in mtd_pagetest_init()
348 tmp = mtd->size; in mtd_pagetest_init()
351 pgcnt = mtd->erasesize / mtd->writesize; in mtd_pagetest_init()
357 (unsigned long long)mtd->size, mtd->erasesize, in mtd_pagetest_init()
[all …]
A Dstresstest.c32 static struct mtd_info *mtd; variable
82 if (offs >= mtd->erasesize) in do_read()
83 offs -= mtd->erasesize; in do_read()
122 offs -= mtd->erasesize; in do_write()
154 if (IS_ERR(mtd)) { in mtd_stresstest_init()
155 err = PTR_ERR(mtd); in mtd_stresstest_init()
160 if (mtd->writesize == 1) { in mtd_stresstest_init()
165 pgsize = mtd->writesize; in mtd_stresstest_init()
167 tmp = mtd->size; in mtd_stresstest_init()
175 (unsigned long long)mtd->size, mtd->erasesize, in mtd_stresstest_init()
[all …]
A Dspeedtest.c33 static struct mtd_info *mtd; variable
53 err = mtd_erase(mtd, &ei); in multiblock_erase()
67 return mtdtest_write(mtd, addr, mtd->erasesize, iobuf); in write_eraseblock()
111 return mtdtest_read(mtd, addr, mtd->erasesize, iobuf); in read_eraseblock()
195 if (IS_ERR(mtd)) { in mtd_speedtest_init()
196 err = PTR_ERR(mtd); in mtd_speedtest_init()
201 if (mtd->writesize == 1) { in mtd_speedtest_init()
206 pgsize = mtd->writesize; in mtd_speedtest_init()
208 tmp = mtd->size; in mtd_speedtest_init()
216 (unsigned long long)mtd->size, mtd->erasesize, in mtd_speedtest_init()
[all …]
A Dnandbiterrs.c95 return mtdtest_write(mtd, offset, mtd->writesize, wbuffer); in write_page()
108 ops.len = mtd->writesize; in rewrite_page()
140 err = mtd_read(mtd, offset, mtd->writesize, &read, rbuffer); in read_page()
184 while (byte < mtd->writesize) { in insert_biterror()
337 if (IS_ERR(mtd)) { in mtd_nandbiterrs_init()
338 err = PTR_ERR(mtd); in mtd_nandbiterrs_init()
343 if (!mtd_type_is_nand(mtd)) { in mtd_nandbiterrs_init()
350 (unsigned long long)mtd->size, mtd->erasesize, in mtd_nandbiterrs_init()
351 mtd->writesize, mtd->oobsize); in mtd_nandbiterrs_init()
353 subsize = mtd->writesize >> mtd->subpage_sft; in mtd_nandbiterrs_init()
[all …]
/linux/drivers/mtd/devices/
A Dmtdram.c68 *virt = mtd->priv + from; in ram_point()
127 memset(mtd, 0, sizeof(*mtd)); in mtdram_init_device()
130 mtd->name = name; in mtdram_init_device()
131 mtd->type = MTD_RAM; in mtdram_init_device()
132 mtd->flags = MTD_CAP_RAM; in mtdram_init_device()
133 mtd->size = size; in mtdram_init_device()
134 mtd->writesize = 1; in mtdram_init_device()
140 mtd->_erase = ram_erase; in mtdram_init_device()
141 mtd->_point = ram_point; in mtdram_init_device()
143 mtd->_read = ram_read; in mtdram_init_device()
[all …]
A Dpowernv_flash.c31 struct mtd_info mtd; member
50 struct device *dev = &mtd->dev; in powernv_flash_async_op()
186 struct mtd_info *mtd) in powernv_flash_set_driver_info() argument
210 mtd->type = MTD_NORFLASH; in powernv_flash_set_driver_info()
211 mtd->flags = MTD_WRITEABLE; in powernv_flash_set_driver_info()
212 mtd->size = size; in powernv_flash_set_driver_info()
213 mtd->erasesize = erase_size; in powernv_flash_set_driver_info()
214 mtd->writebufsize = mtd->writesize = 1; in powernv_flash_set_driver_info()
215 mtd->owner = THIS_MODULE; in powernv_flash_set_driver_info()
219 mtd->dev.parent = dev; in powernv_flash_set_driver_info()
[all …]
A Dlart.c419 …if (addr == mtd->eraseregions[i].offset + (mtd->eraseregions[i].erasesize * mtd->eraseregions[i].n… in flash_erase()
566 static struct mtd_info mtd; variable
608 memset (&mtd,0,sizeof (mtd)); in lart_flash_init()
617 mtd.name = module_name; in lart_flash_init()
619 mtd.writesize = 1; in lart_flash_init()
620 mtd.writebufsize = 4; in lart_flash_init()
627 mtd._read = flash_read; in lart_flash_init()
637 mtd.name, in lart_flash_init()
638 mtd.size,mtd.size / (1024*1024), in lart_flash_init()
639 mtd.erasesize,mtd.erasesize / 1024, in lart_flash_init()
[all …]
/linux/drivers/mtd/spi-nor/
A D.built-in.a.cmd1mtd/spi-nor/built-in.a := echo >/dev/null; rm -f drivers/mtd/spi-nor/built-in.a; /usr/bin/ccache /…
/linux/drivers/net/ethernet/sfc/
A Dmtd.c16 #define to_efx_mtd_partition(mtd) \ argument
17 container_of(mtd, struct efx_mtd_partition, mtd)
23 struct efx_nic *efx = mtd->priv; in efx_mtd_erase()
31 struct efx_nic *efx = mtd->priv; in efx_mtd_sync()
34 rc = efx->type->mtd_sync(mtd); in efx_mtd_sync()
64 part->mtd.writesize = 1; in efx_mtd_add()
69 part->mtd.owner = THIS_MODULE; in efx_mtd_add()
70 part->mtd.priv = efx; in efx_mtd_add()
71 part->mtd.name = part->name; in efx_mtd_add()
72 part->mtd._erase = efx_mtd_erase; in efx_mtd_add()
[all …]

Completed in 66 milliseconds

12345678910>>...18