Home
last modified time | relevance | path

Searched refs:nand (Results 1 – 25 of 696) sorted by relevance

12345678910>>...28

/linux/drivers/mtd/nand/
A Dcore.c32 if (nand->ops->isbad(nand, pos)) in nanddev_isbad()
47 return nand->ops->isbad(nand, pos); in nanddev_isbad()
70 ret = nand->ops->markbad(nand, pos); in nanddev_markbad()
128 if (nanddev_isbad(nand, pos) || nanddev_isreserved(nand, pos)) { in nanddev_erase()
134 return nand->ops->erase(nand, pos); in nanddev_erase()
229 nand->ecc.engine = nand_ecc_get_sw_engine(nand); in nanddev_get_ecc_engine()
232 nand->ecc.engine = nand_ecc_get_on_die_hw_engine(nand); in nanddev_get_ecc_engine()
284 nand->mtd.name); in nanddev_find_ecc_configuration()
327 if (nand->ecc.engine) in nanddev_ecc_engine_cleanup()
351 if (!nand || !ops) in nanddev_init()
[all …]
A Decc.c108 if (!nand->ecc.engine || !nand->ecc.engine->ops->init_ctx) in nand_ecc_init_ctx()
111 return nand->ecc.engine->ops->init_ctx(nand); in nand_ecc_init_ctx()
121 if (nand->ecc.engine && nand->ecc.engine->ops->cleanup_ctx) in nand_ecc_cleanup_ctx()
122 nand->ecc.engine->ops->cleanup_ctx(nand); in nand_ecc_cleanup_ctx()
134 if (!nand->ecc.engine || !nand->ecc.engine->ops->prepare_io_req) in nand_ecc_prepare_io_req()
137 return nand->ecc.engine->ops->prepare_io_req(nand, req); in nand_ecc_prepare_io_req()
149 if (!nand->ecc.engine || !nand->ecc.engine->ops->finish_io_req) in nand_ecc_finish_io_req()
152 return nand->ecc.engine->ops->finish_io_req(nand, req); in nand_ecc_finish_io_req()
489 ctx->nand = nand; in nand_ecc_init_req_tweaking()
522 struct nand_device *nand = ctx->nand; in nand_ecc_tweak_req() local
[all …]
A Decc-sw-bch.c165 nand_ecc_sw_bch_cleanup(nand); in nand_ecc_sw_bch_init()
246 nand->ecc.ctx.priv = engine_conf; in nand_ecc_sw_bch_init_ctx()
247 nand->ecc.ctx.nsteps = nsteps; in nand_ecc_sw_bch_init_ctx()
248 nand->ecc.ctx.total = nsteps * code_size; in nand_ecc_sw_bch_init_ctx()
250 ret = nand_ecc_sw_bch_init(nand); in nand_ecc_sw_bch_init_ctx()
265 nand_ecc_sw_bch_cleanup(nand); in nand_ecc_sw_bch_init_ctx()
282 nand_ecc_sw_bch_cleanup(nand); in nand_ecc_sw_bch_cleanup_ctx()
298 int eccsteps = nand->ecc.ctx.nsteps; in nand_ecc_sw_bch_prepare_io_req()
299 int total = nand->ecc.ctx.total; in nand_ecc_sw_bch_prepare_io_req()
334 int total = nand->ecc.ctx.total; in nand_ecc_sw_bch_finish_io_req()
[all …]
A Dbbt.c23 int nanddev_bbt_init(struct nand_device *nand) in nanddev_bbt_init() argument
26 unsigned int nblocks = nanddev_neraseblocks(nand); in nanddev_bbt_init()
30 nand->bbt.cache = kcalloc(nwords, sizeof(*nand->bbt.cache), in nanddev_bbt_init()
32 if (!nand->bbt.cache) in nanddev_bbt_init()
45 void nanddev_bbt_cleanup(struct nand_device *nand) in nanddev_bbt_cleanup() argument
47 kfree(nand->bbt.cache); in nanddev_bbt_cleanup()
60 int nanddev_bbt_update(struct nand_device *nand) in nanddev_bbt_update() argument
78 unsigned long *pos = nand->bbt.cache + in nanddev_bbt_get_block_status()
83 if (entry >= nanddev_neraseblocks(nand)) in nanddev_bbt_get_block_status()
111 unsigned long *pos = nand->bbt.cache + in nanddev_bbt_set_block_status()
[all …]
A Decc-sw-hamming.c471 struct mtd_info *mtd = nanddev_to_mtd(nand); in nand_ecc_sw_hamming_init_ctx()
515 nand->ecc.ctx.priv = engine_conf; in nand_ecc_sw_hamming_init_ctx()
517 nand->ecc.ctx.total = nand->ecc.ctx.nsteps * engine_conf->code_size; in nand_ecc_sw_hamming_init_ctx()
549 struct mtd_info *mtd = nanddev_to_mtd(nand); in nand_ecc_sw_hamming_prepare_io_req()
550 int eccsize = nand->ecc.ctx.conf.step_size; in nand_ecc_sw_hamming_prepare_io_req()
552 int eccsteps = nand->ecc.ctx.nsteps; in nand_ecc_sw_hamming_prepare_io_req()
553 int total = nand->ecc.ctx.total; in nand_ecc_sw_hamming_prepare_io_req()
586 struct mtd_info *mtd = nanddev_to_mtd(nand); in nand_ecc_sw_hamming_finish_io_req()
587 int eccsize = nand->ecc.ctx.conf.step_size; in nand_ecc_sw_hamming_finish_io_req()
588 int total = nand->ecc.ctx.total; in nand_ecc_sw_hamming_finish_io_req()
[all …]
A D.built-in.a.cmd1nand/built-in.a := echo >/dev/null; rm -f drivers/mtd/nand/built-in.a; /usr/bin/ccache /home/test/…
/linux/include/linux/mtd/
A Dnand.h318 struct nand_device *nand; member
419 return &nand->mtd; in nanddev_to_mtd()
453 return nand->memorg.oobsize; in nanddev_per_page_oobsize()
490 return nand->memorg.pagesize * nand->memorg.pages_per_eraseblock; in nanddev_eraseblock_size()
514 return nand->memorg.eraseblocks_per_lun * nand->memorg.luns_per_target; in nanddev_eraseblocks_per_target()
550 return nand->memorg.ntargets * nand->memorg.luns_per_target * in nanddev_neraseblocks()
562 return nanddev_target_size(nand) * nanddev_ntargets(nand); in nanddev_size()
577 return &nand->memorg; in nanddev_get_memorg()
587 return &nand->ecc.ctx.conf; in nanddev_get_ecc_conf()
607 return nand->ecc.ctx.total / nand->ecc.ctx.nsteps; in nanddev_get_ecc_bytes_per_step()
[all …]
/linux/drivers/mtd/nand/raw/
A Dmeson_nand.c109 struct nand_chip nand; member
219 return container_of(nand, struct meson_nfc_nand_chip, nand); in to_meson_nand()
336 len = nand->ecc.size * (i + 1) + (nand->ecc.bytes + 2) * i; in meson_nfc_oob_ptr()
346 temp = nand->ecc.size + nand->ecc.bytes; in meson_nfc_data_ptr()
363 buf += nand->ecc.size; in meson_nfc_get_data_oob()
382 buf += nand->ecc.size; in meson_nfc_set_data_oob()
638 meson_nfc_select_chip(nand, nand->cur_cs); in meson_nfc_write_page_sub()
722 meson_nfc_select_chip(nand, nand->cur_cs); in meson_nfc_read_page_sub()
1150 if (nand->ecc.strength > 60 || nand->ecc.strength < 8) in meson_nand_bch_mode()
1269 nand = &meson_chip->nand; in meson_nfc_nand_chip_init()
[all …]
A Dsunxi_nand.c206 return container_of(nand, struct sunxi_nand_chip, nand); in to_sunxi_nand()
1112 sunxi_nfc_select_chip(nand, nand->cur_cs); in sunxi_nfc_hw_ecc_read_page()
1148 sunxi_nfc_select_chip(nand, nand->cur_cs); in sunxi_nfc_hw_ecc_read_page_dma()
1170 sunxi_nfc_select_chip(nand, nand->cur_cs); in sunxi_nfc_hw_ecc_read_subpage()
1204 sunxi_nfc_select_chip(nand, nand->cur_cs); in sunxi_nfc_hw_ecc_read_subpage_dma()
1225 sunxi_nfc_select_chip(nand, nand->cur_cs); in sunxi_nfc_hw_ecc_write_page()
1262 sunxi_nfc_select_chip(nand, nand->cur_cs); in sunxi_nfc_hw_ecc_write_subpage()
1298 sunxi_nfc_select_chip(nand, nand->cur_cs); in sunxi_nfc_hw_ecc_write_page_dma()
1362 return nand->ecc.read_page(nand, buf, 1, page); in sunxi_nfc_hw_ecc_read_oob()
1372 ret = nand->ecc.write_page(nand, buf, 1, page); in sunxi_nfc_hw_ecc_write_oob()
[all …]
A D.built-in.a.cmd1nand/raw/built-in.a := echo >/dev/null; rm -f drivers/mtd/nand/raw/built-in.a; /usr/bin/ccache /ho…
A DMakefile3 obj-$(CONFIG_MTD_RAW_NAND) += nand.o
44 obj-$(CONFIG_MTD_NAND_GPMI_NAND) += gpmi-nand/
63 nand-objs += nand_onfi.o
64 nand-objs += nand_jedec.o
65 nand-objs += nand_amd.o
66 nand-objs += nand_esmt.o
67 nand-objs += nand_hynix.o
68 nand-objs += nand_macronix.o
69 nand-objs += nand_micron.o
70 nand-objs += nand_samsung.o
[all …]
/linux/Documentation/devicetree/bindings/mtd/
A Ddenali,nand.yaml15 - altr,socfpga-denali-nand
42 - const: nand
57 - const: nand
59 - const: nand
67 - $ref: nand-controller.yaml
76 "^nand@[a-f0-9]$":
79 nand-ecc-strength:
94 "^nand@[a-f0-9]$":
97 nand-ecc-strength:
113 "^nand@[a-f0-9]$":
[all …]
A Dmarvell-nand.txt39 - nand-rb: see nand-controller.yaml (0-1).
46 - nand-on-flash-bbt: see nand-controller.yaml.
47 - nand-ecc-mode: see nand-controller.yaml. Will use hardware ECC if not specified.
48 - nand-ecc-algo: see nand-controller.yaml. This property is essentially useful when
54 - nand-ecc-strength: see nand-controller.yaml.
74 nand@0 {
77 nand-rb = <0>;
78 nand-ecc-mode = "hw";
80 nand-on-flash-bbt;
81 nand-ecc-strength = <4>;
[all …]
A Dqcom,nandc.yaml15 - qcom,ipq806x-nand
16 - qcom,ipq4019-nand
17 - qcom,ipq6018-nand
18 - qcom,ipq8074-nand
19 - qcom,sdx55-nand
38 "^nand@[a-f0-9]$":
41 nand-bus-width:
44 nand-ecc-strength:
47 nand-ecc-step-size:
132 nand@0 {
[all …]
A Dnvidia-tegra20-nand.txt5 - "nvidia,tegra20-nand"
11 - nand
15 - nand
29 - nand-bus-width : See nand-controller.yaml
30 - nand-on-flash-bbt: See nand-controller.yaml
36 - nand-ecc-maximize: See nand-controller.yaml
50 clock-names = "nand";
52 reset-names = "nand";
54 nand@0 {
58 nand-bus-width = <8>;
[all …]
A Dsamsung-s3c2410.txt5 "samsung,s3c2410-nand"
6 "samsung,s3c2412-nand"
7 "samsung,s3c2440-nand"
11 - clock-names : must contain "nand"
17 - nand-ecc-mode : see nand-controller.yaml
18 - nand-on-flash-bbt : see nand-controller.yaml
26 nand-controller@4e000000 {
34 clock-names = "nand";
36 nand {
37 nand-ecc-mode = "soft";
[all …]
A Dbrcm,brcmnand.yaml83 enum: [ nand, flash-dma, flash-edu, nand-cache, nand-int-base, iproc-idm, iproc-ext ]
104 const: nand
106 brcm,nand-has-wp:
115 "^nand@[a-f0-9]$":
121 nand-ecc-step-size:
150 - const: nand
161 - const: nand
197 nand@1 {
210 compatible = "brcm,nand-bcm63168", "brcm,nand-bcm6368",
215 reg-names = "nand", "nand-int-base", "nand-cache";
[all …]
A Dvf610-nfc.txt28 - nand-bus-width: see nand-controller.yaml
29 - nand-ecc-mode: see nand-controller.yaml
32 - nand-ecc-strength: supported strengths are 24 and 32 bit (see nand-controller.yaml)
35 - nand-on-flash-bbt: see nand-controller.yaml
39 nfc: nand@400e0000 {
50 nand@0 {
53 nand-bus-width = <8>;
54 nand-ecc-mode = "hw";
55 nand-ecc-strength = <32>;
56 nand-ecc-step-size = <2048>;
[all …]
A Dhisi504-nand.txt10 - nand-bus-width: See nand-controller.yaml.
11 - nand-ecc-mode: Support none and hw ecc mode.
17 - nand-ecc-strength: Number of bits to correct per ECC step.
18 - nand-ecc-step-size: Number of data bytes covered by a single ECC step.
22 - nand-ecc-strength = <16>, nand-ecc-step-size = <1024>
29 nand: nand@4020000 {
33 nand-bus-width = <8>;
34 nand-ecc-mode = "hw";
35 nand-ecc-strength = <16>;
36 nand-ecc-step-size = <1024>;
A Dgpmi-nand.yaml22 - fsl,imx23-gpmi-nand
23 - fsl,imx28-gpmi-nand
24 - fsl,imx6q-gpmi-nand
25 - fsl,imx6sx-gpmi-nand
26 - fsl,imx7d-gpmi-nand
29 - fsl,imx8mm-gpmi-nand
30 - fsl,imx8mn-gpmi-nand
40 - const: gpmi-nand
96 - $ref: "nand-controller.yaml"
103 - fsl,imx23-gpmi-nand
[all …]
A Drockchip,nand-controller.yaml10 - $ref: "nand-controller.yaml#"
56 "^nand@[0-7]$":
63 nand-ecc-mode:
66 nand-ecc-step-size:
69 nand-ecc-strength:
85 nand-bus-width:
148 nand@0 {
150 label = "rk-nand";
151 nand-bus-width = <8>;
152 nand-ecc-mode = "hw";
[all …]
/linux/drivers/mtd/nand/spi/
A Dcore.c171 nand->memorg.ntargets, in spinand_init_cfg_cache()
263 nand->ecc.ctx.conf.step_size = nand->ecc.requirements.step_size; in spinand_ondie_ecc_init_ctx()
264 nand->ecc.ctx.conf.strength = nand->ecc.requirements.strength; in spinand_ondie_ecc_init_ctx()
282 kfree(nand->ecc.ctx.priv); in spinand_ondie_ecc_cleanup_ctx()
437 nbytes = nanddev_page_size(nand) + nanddev_per_page_oobsize(nand); in spinand_write_to_cache_op()
991 nanddev_page_size(nand); in spinand_select_op_variant()
1104 nanddev_size(nand) >> 20, nanddev_eraseblock_size(nand) >> 10, in spinand_detect()
1105 nanddev_page_size(nand), nanddev_per_page_oobsize(nand)); in spinand_detect()
1241 if (nand->ecc.engine) { in spinand_init()
1259 nanddev_cleanup(nand); in spinand_init()
[all …]
/linux/drivers/mtd/
A Dbuilt-in.a22 nand/core.o/
23 nand/bbt.o/
24 nand/ecc.o/
25 nand/ecc-sw-hamming.o/
26 nand/raw/nand_base.o/
28 nand/raw/nand_bbt.o/
30 nand/raw/nand_ids.o/
31 nand/raw/nand_onfi.o/
33 nand/raw/nand_amd.o/
34 nand/raw/nand_esmt.o/
[all …]
/linux/drivers/mtd/nand/raw/atmel/
A Dnand-controller.c523 return nand_gpio_waitrdy(&nand->base, nand->activecs->rb.gpio, in atmel_nand_waitrdy()
546 nand->activecs = &nand->cs[cs]; in atmel_nand_select_target()
558 nand->activecs = &nand->cs[cs]; in atmel_hsmc_nand_select_target()
1596 BIT(nand->cs[i].id), BIT(nand->cs[i].id)); in atmel_smc_nand_init()
1637 if (!nand) in atmel_nand_create()
1721 return nand; in atmel_nand_create()
1733 if (nand->cdgpio && gpiod_get_value(nand->cdgpio)) { in atmel_nand_controller_add_nand()
1786 nand = devm_kzalloc(nc->dev, sizeof(*nand) + sizeof(*nand->cs), in atmel_nand_controller_legacy_add_nands()
1788 if (!nand) in atmel_nand_controller_legacy_add_nands()
1791 nand->numcs = 1; in atmel_nand_controller_legacy_add_nands()
[all …]
/linux/drivers/mtd/nand/raw/ingenic/
A Dingenic_nand_drv.c159 if (nand->reading) in ingenic_nand_ecc_calculate()
162 params.size = nand->chip.ecc.size; in ingenic_nand_ecc_calculate()
295 if (!nand->busy_gpio) in ingenic_nand_exec_instr()
347 struct ingenic_nand *nand; in ingenic_nand_init_chip() local
368 nand = devm_kzalloc(dev, sizeof(*nand), GFP_KERNEL); in ingenic_nand_init_chip()
369 if (!nand) in ingenic_nand_init_chip()
374 if (IS_ERR(nand->busy_gpio)) { in ingenic_nand_init_chip()
375 ret = PTR_ERR(nand->busy_gpio); in ingenic_nand_init_chip()
394 if (IS_ERR(nand->wp_gpio)) { in ingenic_nand_init_chip()
395 ret = PTR_ERR(nand->wp_gpio); in ingenic_nand_init_chip()
[all …]

Completed in 69 milliseconds

12345678910>>...28