Home
last modified time | relevance | path

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

12345678910>>...20

/external/u-boot/drivers/mtd/nand/
Domap_gpmc.c179 struct nand_chip *nand = mtd_to_nand(mtd); in omap_enable_hwecc() local
180 struct omap_nand_info *info = nand_get_controller_data(nand); in omap_enable_hwecc()
181 unsigned int dev_width = (nand->options & NAND_BUSWIDTH_16) ? 1 : 0; in omap_enable_hwecc()
711 static int omap_select_ecc_scheme(struct nand_chip *nand, in omap_select_ecc_scheme() argument
713 struct omap_nand_info *info = nand_get_controller_data(nand); in omap_select_ecc_scheme()
724 nand->ecc.mode = NAND_ECC_SOFT; in omap_select_ecc_scheme()
725 nand->ecc.layout = NULL; in omap_select_ecc_scheme()
726 nand->ecc.size = 0; in omap_select_ecc_scheme()
739 memset(&nand->ecc, 0, sizeof(struct nand_ecc_ctrl)); in omap_select_ecc_scheme()
740 nand->ecc.mode = NAND_ECC_HW; in omap_select_ecc_scheme()
[all …]
Dmxs_nand.c267 struct nand_chip *nand = mtd_to_nand(mtd); in mxs_nand_cmd_ctrl() local
268 struct mxs_nand_info *nand_info = nand_get_controller_data(nand); in mxs_nand_cmd_ctrl()
361 struct nand_chip *nand = mtd_to_nand(mtd); in mxs_nand_select_chip() local
362 struct mxs_nand_info *nand_info = nand_get_controller_data(nand); in mxs_nand_select_chip()
408 struct nand_chip *nand = mtd_to_nand(mtd); in mxs_nand_read_buf() local
409 struct mxs_nand_info *nand_info = nand_get_controller_data(nand); in mxs_nand_read_buf()
492 struct nand_chip *nand = mtd_to_nand(mtd); in mxs_nand_write_buf() local
493 struct mxs_nand_info *nand_info = nand_get_controller_data(nand); in mxs_nand_write_buf()
553 static int mxs_nand_ecc_read_page(struct mtd_info *mtd, struct nand_chip *nand, in mxs_nand_ecc_read_page() argument
557 struct mxs_nand_info *nand_info = nand_get_controller_data(nand); in mxs_nand_ecc_read_page()
[all …]
Dfsmc_nand.c401 struct nand_chip *nand; in fsmc_nand_switch_ecc() local
412 nand = mtd_to_nand(mtd); in fsmc_nand_switch_ecc()
416 nand->ecc.mode = NAND_ECC_HW; in fsmc_nand_switch_ecc()
417 nand->ecc.bytes = 3; in fsmc_nand_switch_ecc()
418 nand->ecc.strength = 1; in fsmc_nand_switch_ecc()
419 nand->ecc.layout = &fsmc_ecc1_layout; in fsmc_nand_switch_ecc()
420 nand->ecc.calculate = fsmc_read_hwecc; in fsmc_nand_switch_ecc()
421 nand->ecc.correct = nand_correct_data; in fsmc_nand_switch_ecc()
427 nand->ecc.mode = NAND_ECC_SOFT_BCH; in fsmc_nand_switch_ecc()
428 nand->ecc.strength = 4; in fsmc_nand_switch_ecc()
[all …]
Ddavinci_nand.c57 const u32 *nand = chip->IO_ADDR_R; in nand_davinci_read_buf() local
63 *buf = readb(nand); in nand_davinci_read_buf()
71 *(u16 *)buf = readw(nand); in nand_davinci_read_buf()
80 *(u32 *)buf = __raw_readl(nand); in nand_davinci_read_buf()
88 *(u16 *)buf = readw(nand); in nand_davinci_read_buf()
94 *buf = readb(nand); in nand_davinci_read_buf()
102 const u32 *nand = chip->IO_ADDR_W; in nand_davinci_write_buf() local
108 writeb(*buf, nand); in nand_davinci_write_buf()
116 writew(*(u16 *)buf, nand); in nand_davinci_write_buf()
125 __raw_writel(*(u32 *)buf, nand); in nand_davinci_write_buf()
[all …]
Dsunxi_nand.c237 struct nand_chip nand; member
250 static inline struct sunxi_nand_chip *to_sunxi_nand(struct nand_chip *nand) in to_sunxi_nand() argument
252 return container_of(nand, struct sunxi_nand_chip, nand); in to_sunxi_nand()
381 struct nand_chip *nand = mtd_to_nand(mtd); in sunxi_nfc_dev_ready() local
382 struct sunxi_nand_chip *sunxi_nand = to_sunxi_nand(nand); in sunxi_nfc_dev_ready()
383 struct sunxi_nfc *nfc = to_sunxi_nfc(sunxi_nand->nand.controller); in sunxi_nfc_dev_ready()
385 unsigned long timeo = (sunxi_nand->nand.state == FL_ERASING ? 400 : 20); in sunxi_nfc_dev_ready()
419 struct nand_chip *nand = mtd_to_nand(mtd); in sunxi_nfc_select_chip() local
420 struct sunxi_nand_chip *sunxi_nand = to_sunxi_nand(nand); in sunxi_nfc_select_chip()
421 struct sunxi_nfc *nfc = to_sunxi_nfc(sunxi_nand->nand.controller); in sunxi_nfc_select_chip()
[all …]
Datmel_nand.c804 static int atmel_pmecc_nand_init_params(struct nand_chip *nand, in atmel_pmecc_nand_init_params() argument
811 nand_set_controller_data(nand, host); in atmel_pmecc_nand_init_params()
813 nand->ecc.mode = NAND_ECC_HW; in atmel_pmecc_nand_init_params()
814 nand->ecc.calculate = NULL; in atmel_pmecc_nand_init_params()
815 nand->ecc.correct = NULL; in atmel_pmecc_nand_init_params()
816 nand->ecc.hwctl = NULL; in atmel_pmecc_nand_init_params()
831 if (pmecc_choose_ecc(host, nand, &cap, &sector_size)) { in atmel_pmecc_nand_init_params()
884 nand->ecc.size = mtd->writesize; in atmel_pmecc_nand_init_params()
901 nand->ecc.steps = 1; in atmel_pmecc_nand_init_params()
902 nand->ecc.bytes = host->pmecc_bytes_per_sector * in atmel_pmecc_nand_init_params()
[all …]
Dkirkwood_nand.c76 int board_nand_init(struct nand_chip *nand) in board_nand_init() argument
78 nand->options = NAND_COPYBACK | NAND_CACHEPRG | NAND_NO_PADDING; in board_nand_init()
80 nand->options |= NAND_NO_SUBPAGE_WRITE; in board_nand_init()
83 nand->ecc.mode = NAND_ECC_SOFT_BCH; in board_nand_init()
85 nand->ecc.mode = NAND_ECC_SOFT; in board_nand_init()
87 nand->cmd_ctrl = kw_nand_hwcontrol; in board_nand_init()
88 nand->chip_delay = 40; in board_nand_init()
89 nand->select_chip = kw_nand_select_chip; in board_nand_init()
Dkmeter1_nand.c103 int board_nand_init(struct nand_chip *nand) in board_nand_init() argument
106 nand->ecc.mode = NAND_ECC_SOFT_BCH; in board_nand_init()
108 nand->ecc.mode = NAND_ECC_SOFT; in board_nand_init()
112 nand->cmd_ctrl = kpn_nand_hwcontrol; in board_nand_init()
113 nand->read_byte = kpn_nand_read_byte; in board_nand_init()
114 nand->write_buf = kpn_nand_write_buf; in board_nand_init()
115 nand->read_buf = kpn_nand_read_buf; in board_nand_init()
116 nand->dev_ready = kpn_nand_dev_ready; in board_nand_init()
117 nand->chip_delay = KPN_DEFAULT_CHIP_DELAY; in board_nand_init()
Dfsl_elbc_nand.c660 struct nand_chip *nand; in fsl_elbc_chip_init() local
699 nand = &priv->chip; in fsl_elbc_chip_init()
700 mtd = nand_to_mtd(nand); in fsl_elbc_chip_init()
706 nand->read_byte = fsl_elbc_read_byte; in fsl_elbc_chip_init()
707 nand->write_buf = fsl_elbc_write_buf; in fsl_elbc_chip_init()
708 nand->read_buf = fsl_elbc_read_buf; in fsl_elbc_chip_init()
709 nand->select_chip = fsl_elbc_select_chip; in fsl_elbc_chip_init()
710 nand->cmdfunc = fsl_elbc_cmdfunc; in fsl_elbc_chip_init()
711 nand->waitfunc = fsl_elbc_wait; in fsl_elbc_chip_init()
714 nand->bbt_td = &bbt_main_descr; in fsl_elbc_chip_init()
[all …]
Dfsl_ifc_nand.c875 struct nand_chip *nand; in fsl_ifc_chip_init() local
916 nand = &priv->chip; in fsl_ifc_chip_init()
917 mtd = nand_to_mtd(nand); in fsl_ifc_chip_init()
924 nand->write_buf = fsl_ifc_write_buf; in fsl_ifc_chip_init()
925 nand->read_buf = fsl_ifc_read_buf; in fsl_ifc_chip_init()
926 nand->select_chip = fsl_ifc_select_chip; in fsl_ifc_chip_init()
927 nand->cmdfunc = fsl_ifc_cmdfunc; in fsl_ifc_chip_init()
928 nand->waitfunc = fsl_ifc_wait; in fsl_ifc_chip_init()
931 nand->bbt_td = &bbt_main_descr; in fsl_ifc_chip_init()
932 nand->bbt_md = &bbt_mirror_descr; in fsl_ifc_chip_init()
[all …]
Dnand_bch.c112 struct nand_chip *nand = mtd_to_nand(mtd); in nand_bch_init() local
114 struct nand_ecclayout *layout = nand->ecc.layout; in nand_bch_init()
117 unsigned int eccsize = nand->ecc.size; in nand_bch_init()
118 unsigned int eccbytes = nand->ecc.bytes; in nand_bch_init()
119 unsigned int eccstrength = nand->ecc.strength; in nand_bch_init()
123 nand->ecc.bytes = eccbytes; in nand_bch_init()
178 nand->ecc.layout = layout; in nand_bch_init()
211 nand->ecc.strength = (eccbytes * 8) / fls(8 * eccsize); in nand_bch_init()
Dtegra_nand.c921 struct nand_chip *nand = &tegra->nand_chip; in tegra_probe() local
934 nand->ecc.mode = NAND_ECC_HW; in tegra_probe()
935 nand->ecc.layout = &eccoob; in tegra_probe()
937 nand->options = LP_OPTIONS; in tegra_probe()
938 nand->cmdfunc = nand_command; in tegra_probe()
939 nand->read_byte = read_byte; in tegra_probe()
940 nand->read_buf = read_buf; in tegra_probe()
941 nand->ecc.read_page = nand_read_page_hwecc; in tegra_probe()
942 nand->ecc.write_page = nand_write_page_hwecc; in tegra_probe()
943 nand->ecc.read_page_raw = nand_read_page_raw; in tegra_probe()
[all …]
/external/u-boot/drivers/dfu/
Ddfu_nand.c31 *len = dfu->data.nand.size; in nand_block_op()
35 start = dfu->data.nand.start + offset + dfu->bad_skip; in nand_block_op()
36 lim = dfu->data.nand.start + dfu->data.nand.size - start; in nand_block_op()
118 *size = dfu->data.nand.size; in dfu_get_medium_size_nand()
146 if (dfu->data.nand.ubi) { in dfu_flush_medium_nand()
167 opts.offset = dfu->data.nand.start + off + in dfu_flush_medium_nand()
169 opts.length = dfu->data.nand.start + in dfu_flush_medium_nand()
170 dfu->data.nand.size - opts.offset; in dfu_flush_medium_nand()
185 if (dfu->data.nand.ubi) in dfu_polltimeout_nand()
196 dfu->data.nand.ubi = 0; in dfu_fill_entity_nand()
[all …]
/external/llvm/test/CodeGen/SystemZ/
Datomicrmw-nand-04.ll17 %res = atomicrmw nand i64 *%src, i64 %b seq_cst
27 %res = atomicrmw nand i64 *%src, i64 1 seq_cst
42 %res = atomicrmw nand i64 *%src, i64 8589934591 seq_cst
58 %res = atomicrmw nand i64 *%src, i64 12884901887 seq_cst
67 %res = atomicrmw nand i64 *%src, i64 12884901888 seq_cst
76 %res = atomicrmw nand i64 *%src, i64 844424930131967 seq_cst
85 %res = atomicrmw nand i64 *%src, i64 281474976710656 seq_cst
94 %res = atomicrmw nand i64 *%src, i64 -6 seq_cst
103 %res = atomicrmw nand i64 *%src, i64 -65534 seq_cst
112 %res = atomicrmw nand i64 *%src, i64 -65538 seq_cst
[all …]
Datomicrmw-nand-03.ll16 %res = atomicrmw nand i32 *%src, i32 %b seq_cst
31 %res = atomicrmw nand i32 *%src, i32 1 seq_cst
41 %res = atomicrmw nand i32 *%src, i32 65535 seq_cst
51 %res = atomicrmw nand i32 *%src, i32 65536 seq_cst
61 %res = atomicrmw nand i32 *%src, i32 -2 seq_cst
71 %res = atomicrmw nand i32 *%src, i32 -65536 seq_cst
81 %res = atomicrmw nand i32 *%src, i32 -65537 seq_cst
91 %res = atomicrmw nand i32 *%src, i32 -65538 seq_cst
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/SystemZ/
Datomicrmw-nand-04.ll17 %res = atomicrmw nand i64 *%src, i64 %b seq_cst
27 %res = atomicrmw nand i64 *%src, i64 1 seq_cst
42 %res = atomicrmw nand i64 *%src, i64 8589934591 seq_cst
58 %res = atomicrmw nand i64 *%src, i64 12884901887 seq_cst
67 %res = atomicrmw nand i64 *%src, i64 12884901888 seq_cst
76 %res = atomicrmw nand i64 *%src, i64 844424930131967 seq_cst
85 %res = atomicrmw nand i64 *%src, i64 281474976710656 seq_cst
94 %res = atomicrmw nand i64 *%src, i64 -6 seq_cst
103 %res = atomicrmw nand i64 *%src, i64 -65534 seq_cst
112 %res = atomicrmw nand i64 *%src, i64 -65538 seq_cst
[all …]
Datomicrmw-nand-03.ll16 %res = atomicrmw nand i32 *%src, i32 %b seq_cst
31 %res = atomicrmw nand i32 *%src, i32 1 seq_cst
41 %res = atomicrmw nand i32 *%src, i32 65535 seq_cst
51 %res = atomicrmw nand i32 *%src, i32 65536 seq_cst
61 %res = atomicrmw nand i32 *%src, i32 -2 seq_cst
71 %res = atomicrmw nand i32 *%src, i32 -65536 seq_cst
81 %res = atomicrmw nand i32 *%src, i32 -65537 seq_cst
91 %res = atomicrmw nand i32 *%src, i32 -65538 seq_cst
/external/u-boot/board/socrates/
Dnand.c149 int board_nand_init(struct nand_chip *nand) in board_nand_init() argument
151 nand->cmd_ctrl = sc_nand_hwcontrol; in board_nand_init()
152 nand->ecc.mode = NAND_ECC_SOFT; in board_nand_init()
153 nand->dev_ready = sc_nand_device_ready; in board_nand_init()
154 nand->read_byte = sc_nand_read_byte; in board_nand_init()
155 nand->read_word = sc_nand_read_word; in board_nand_init()
156 nand->write_buf = sc_nand_write_buf; in board_nand_init()
157 nand->read_buf = sc_nand_read_buf; in board_nand_init()
/external/u-boot/doc/device-tree-bindings/nand/
Dnvidia,tegra20-nand.txt12 - compatible : Should be "manufacturer,device", "nand-flash"
26 nvidia,nand-width : bus width of the NAND device in bits
28 - nvidia,nand-timing : Timing parameters for the NAND. Each is in ns.
42 nand-controller@0x70008000 {
43 compatible = "nvidia,tegra20-nand";
47 nvidia,nand-width = <8>;
49 nand@0 {
51 compatible = "hynix,hy27uf4g2b", "nand-flash";
/external/u-boot/board/synopsys/axs10x/
Dnand.c222 int board_nand_init(struct nand_chip *nand) in board_nand_init() argument
230 nand->ecc.mode = NAND_ECC_SOFT; in board_nand_init()
231 nand->cmd_ctrl = axs101_nand_hwcontrol; in board_nand_init()
232 nand->read_byte = axs101_nand_read_byte; in board_nand_init()
233 nand->read_word = axs101_nand_read_word; in board_nand_init()
234 nand->write_buf = axs101_nand_write_buf; in board_nand_init()
235 nand->read_buf = axs101_nand_read_buf; in board_nand_init()
239 nand->options |= NAND_BUSWIDTH_16; in board_nand_init()
/external/u-boot/doc/
DREADME.nand12 nand bad
15 nand device
18 nand device num
21 nand erase off|partition size
22 nand erase clean [off|partition size]
40 nand info
43 nand read addr ofs|partition size
48 nand read.oob addr ofs|partition size
54 nand write addr ofs|partition size
65 nand write.trimffs addr ofs|partition size
[all …]
DREADME.commands.spl20 nand read 0x82000000 0x280000 0x400000 /* Read kernel image from NAND*/
22 nand erase 0x680000 0x20000 /* erase - one page */
23 nand write 0x80000100 0x680000 0x20000 /* write the image - one page */
27 nand read 0x82000000 0x280000 0x400000 /* Read kernel image from NAND*/
30 nand erase 0x680000 0x20000 /* erase - one page */
31 nand write <adress shown by spl export> 0x680000 0x20000
/external/u-boot/arch/arm/dts/
Dzynqmp-mini-nand.dts44 nand0: nand@ff100000 {
55 label = "nand-fsbl-uboot";
59 label = "nand-linux";
63 label = "nand-device-tree";
67 label = "nand-rootfs";
71 label = "nand-bitstream";
75 label = "nand-misc";
/external/u-boot/configs/
Deco5pk_defconfig25 CONFIG_MTDIDS_DEFAULT="nand0=omap2-nand.0"
26 CONFIG_MTDPARTS_DEFAULT="mtdparts=omap2-nand.0:512k(xloader-nand),1024k(uboot-nand),256k(params-nan…
/external/swiftshader/third_party/llvm-7.0/llvm/test/MC/AArch64/SVE/
Dnand-diagnostics.s6 nand p0.h, p0/z, p0.h, p1.h label
11 nand p0.s, p0/z, p0.s, p1.s label
16 nand p0.d, p0/z, p0.d, p1.d label
24 nand p0.b, p0/m, p1.b, p2.b label

12345678910>>...20