Searched refs:nfl (Results 1 - 10 of 10) sorted by relevance

/netgear-R7000-V1.0.7.12_1.2.5/src/shared/
H A Dhndnand.c66 hndnand_enable(hndnand_t *nfl, int enable) argument
68 ASSERT(nfl);
70 if (nfl->enable) {
72 (nfl->enable)(nfl, enable);
80 hndnand_read(hndnand_t *nfl, uint64 offset, uint len, uchar *buf) argument
82 ASSERT(nfl);
83 ASSERT(nfl->read);
85 return (nfl->read)(nfl, offse
92 hndnand_write(hndnand_t *nfl, uint64 offset, uint len, const uchar *buf) argument
104 hndnand_erase(hndnand_t *nfl, uint64 offset) argument
113 hndnand_checkbadb(hndnand_t *nfl, uint64 offset) argument
122 hndnand_mark_badb(hndnand_t *nfl, uint64 offset) argument
132 hndnand_dev_ready(hndnand_t *nfl) argument
141 hndnand_select_chip(hndnand_t *nfl, int chip) argument
149 hndnand_cmdfunc(hndnand_t *nfl, uint64 addr, int cmd) argument
158 hndnand_waitfunc(hndnand_t *nfl, int *status) argument
167 hndnand_read_oob(hndnand_t *nfl, uint64 addr, uint8 *oob) argument
176 hndnand_write_oob(hndnand_t *nfl, uint64 addr, uint8 *oob) argument
184 hndnand_read_page(hndnand_t *nfl, uint64 addr, uint8 *buf, uint8 *oob, bool ecc, uint32 *herr, uint32 *serr) argument
194 hndnand_write_page(hndnand_t *nfl, uint64 addr, const uint8 *buf, uint8 *oob, bool ecc) argument
203 hndnand_cmd_read_byte(hndnand_t *nfl, int cmd, int arg) argument
[all...]
H A Dnandcore.c87 static int nandcore_read(hndnand_t *nfl, uint64 offset, uint len, uchar *buf);
88 static int nandcore_write(hndnand_t *nfl, uint64 offset, uint len, const uchar *buf);
89 static int nandcore_erase(hndnand_t *nfl, uint64 offset);
90 static int nandcore_checkbadb(hndnand_t *nfl, uint64 offset);
91 static int nandcore_mark_badb(hndnand_t *nfl, uint64 offset);
94 static int nandcore_dev_ready(hndnand_t *nfl);
95 static int nandcore_select_chip(hndnand_t *nfl, int chip);
96 static int nandcore_cmdfunc(hndnand_t *nfl, uint64 addr, int cmd);
97 static int nandcore_waitfunc(hndnand_t *nfl, int *status);
98 static int nandcore_read_oob(hndnand_t *nfl, uint6
128 _nandcore_oobbyte_per_cache(hndnand_t *nfl, uint cache, uint32 spare) argument
147 _nandcore_read_page(hndnand_t *nfl, uint64 offset, uint8 *buf, uint8 *oob, bool ecc, uint32 *herr, uint32 *serr) argument
260 _nandcore_write_page(hndnand_t *nfl, uint64 offset, const uint8 *buf, uint8 *oob, bool ecc) argument
416 nandcore_override_config(hndnand_t *nfl) argument
463 nandcore_optimize_timing(hndnand_t *nfl) argument
740 nandcore_read(hndnand_t *nfl, uint64 offset, uint len, uchar *buf) argument
790 nandcore_write(hndnand_t *nfl, uint64 offset, uint len, const uchar *buf) argument
823 nandcore_erase(hndnand_t *nfl, uint64 offset) argument
871 nandcore_checkbadb(hndnand_t *nfl, uint64 offset) argument
955 nandcore_mark_badb(hndnand_t *nfl, uint64 offset) argument
1056 _nandcore_set_cmd_address(hndnand_t *nfl, uint64 addr) argument
1072 nandcore_dev_ready(hndnand_t *nfl) argument
1082 nandcore_select_chip(hndnand_t *nfl, int chip) argument
1104 nandcore_cmdfunc(hndnand_t *nfl, uint64 addr, int cmd) argument
1164 nandcore_waitfunc(hndnand_t *nfl, int *status) argument
1181 nandcore_read_oob(hndnand_t *nfl, uint64 addr, uint8 *oob) argument
1245 nandcore_write_oob(hndnand_t *nfl, uint64 addr, uint8 *oob) argument
1348 nandcore_read_page(hndnand_t *nfl, uint64 addr, uint8 *buf, uint8 *oob, bool ecc, uint32 *herr, uint32 *serr) argument
1355 nandcore_write_page(hndnand_t *nfl, uint64 addr, const uint8 *buf, uint8 *oob, bool ecc) argument
1361 nandcore_cmd_read_byte(hndnand_t *nfl, int cmd, int arg) argument
[all...]
H A Dnflash.c57 static void nflash_enable(hndnand_t *nfl, int enable);
58 static int nflash_read(hndnand_t *nfl, uint64 offset, uint len, uchar *buf);
59 static int nflash_write(hndnand_t *nfl, uint64 offset, uint len, const uchar *buf);
60 static int nflash_erase(hndnand_t *nfl, uint64 offset);
61 static int nflash_checkbadb(hndnand_t *nfl, uint64 offset);
62 static int nflash_mark_badb(hndnand_t *nfl, uint64 offset);
66 nflash_enable(hndnand_t *nfl, int enable) argument
68 si_t *sih = nfl->sih;
413 nflash_read(hndnand_t *nfl, uint64 offset, uint len, uchar *buf) argument
415 si_t *sih = nfl
533 nflash_write(hndnand_t *nfl, uint64 offset, uint len, const uchar *buf) argument
648 nflash_erase(hndnand_t *nfl, uint64 offset) argument
713 nflash_checkbadb(hndnand_t *nfl, uint64 offset) argument
782 nflash_mark_badb(hndnand_t *nfl, uint64 offset) argument
[all...]
H A Dnvram_rw.c185 BCMINITFN(nand_find_nvram)(hndnand_t *nfl, uint32 off) argument
187 int blocksize = nfl->blocksize;
192 for (; off < nfl_boot_size(nfl); off += blocksize) {
193 if (hndnand_checkbadb(nfl, off) != 0)
200 if (hndnand_read(nfl, off, len, buf) == 0)
/netgear-R7000-V1.0.7.12_1.2.5/src/include/
H A Dhndnand.h47 #define nfl_boot_size(nfl) ((((nfl)->blocksize >> 10) >= NFL_1M_BLOCK_SIZE) ? \
49 #define nfl_boot_os_size(nfl) ((((nfl)->blocksize >> 10) >= NFL_1M_BLOCK_SIZE) ? \
52 #define nfl_boot_size(nfl) NFL_BOOT_SIZE
53 #define nfl_boot_os_size(nfl) NFL_BOOT_OS_SIZE
93 void (*enable)(hndnand_t *nfl, int enable);
94 int (*read)(hndnand_t *nfl, uint64 offset, uint len, uchar *buf);
95 int (*write)(hndnand_t *nfl, uint64 offset, uint len, const uchar *buf);
96 int (*erase)(hndnand_t *nfl, uint6
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/mtd/bcm947xx/nand/
H A Dbrcmnand.c86 hndnand_t *nfl; member in struct:brcmnand_mtd
386 return (hndnand_dev_ready(brcmnand->nfl));
402 if ((ret = hndnand_waitfunc(brcmnand->nfl, &status)) == 0)
427 return hndnand_read_oob(brcmnand->nfl, nand_addr, chip->oob_poi);
441 hndnand_write_oob(brcmnand->nfl, nand_addr, chip->oob_poi);
461 ret = hndnand_read_page(brcmnand->nfl, nand_addr, buf, chip->oob_poi, ecc, &herr, &serr);
521 brcmnand->cmd_ret = hndnand_write_page(brcmnand->nfl, nand_addr, buf,
566 reg = hndnand_cmd_read_byte(brcmnand->nfl, CMDFUNC_READID,
580 b = (uint8_t)hndnand_cmd_read_byte(brcmnand->nfl, CMDFUNC_STATUS, 0);
620 hndnand_select_chip(brcmnand->nfl,
700 hndnand_t *nfl = brcmnand->nfl; local
849 hndnand_t *nfl; local
[all...]
H A Dbcm_nflash.c60 init_nflash_mtd_partitions(hndnand_t *nfl, struct mtd_info *mtd, size_t size);
70 hndnand_t *nfl; member in struct:nflash_mtd
149 page_size = nflash->nfl->pagesize;
208 if ((bytes = hndnand_read(nflash->nfl,
329 if ((ret = hndnand_erase(nflash->nfl, off)) < 0) {
330 hndnand_mark_badb(nflash->nfl, off);
340 if ((bytes = hndnand_write(nflash->nfl,
343 hndnand_mark_badb(nflash->nfl, off);
462 if ((ret = hndnand_erase(nflash->nfl, i)) < 0) {
463 hndnand_mark_badb(nflash->nfl,
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/mtd/47xxnand/
H A Dbcm_nflash.c59 init_nflash_mtd_partitions(hndnand_t *nfl, struct mtd_info *mtd, size_t size);
71 hndnand_t *nfl; member in struct:nflash_mtd
169 if ((bytes = hndnand_read(nflash->nfl,
289 if ((ret = hndnand_erase(nflash->nfl, off)) < 0) {
290 hndnand_mark_badb(nflash->nfl, off);
300 if ((bytes = hndnand_write(nflash->nfl,
303 hndnand_mark_badb(nflash->nfl, off);
422 if ((ret = hndnand_erase(nflash->nfl, i)) < 0) {
423 hndnand_mark_badb(nflash->nfl, i);
476 nflash.nfl
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/arm/mach-brcm-hnd/
H A Dboard_ns.c947 lookup_nflash_rootfs_offset(hndnand_t *nfl, struct mtd_info *mtd, int offset, size_t size) argument
957 pagesize = nfl->pagesize;
975 if (hndnand_checkbadb(nfl, blk_offset) != 0)
978 if ((ret = hndnand_read(nfl, off, pagesize, buf)) != pagesize) {
1029 init_nflash_mtd_partitions(hndnand_t *nfl, struct mtd_info *mtd, size_t size) argument
1072 bootsz = boot_partition_size(nfl->base);
1130 shift = lookup_nflash_rootfs_offset(nfl, mtd, bcm947xx_nflash_parts[2].offset,
1146 shift = lookup_nflash_rootfs_offset(nfl, mtd, bcm947xx_nflash_parts[2].offset, bcm947xx_nflash_parts[2].size );
1174 shift = lookup_nflash_rootfs_offset(nfl, mtd, bcm947xx_nflash_parts[14].offset,
1197 shift = lookup_nflash_rootfs_offset(nfl, mt
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/arm/plat-brcm/
H A Dnvram_linux.c93 BCMINITFN(nand_find_nvram)(hndnand_t *nfl, uint32 off) argument
95 int blocksize = nfl->blocksize;
100 for (; off < nfl_boot_size(nfl); off += blocksize) {
101 if (hndnand_checkbadb(nfl, off) != 0)
108 if (hndnand_read(nfl, off, len, buf) == 0)

Completed in 72 milliseconds