• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/mtd/devices/

Lines Matching defs:to

29  * This may be due to the different revisions of the ASIC controller built-in or
36 static int doc_write(struct mtd_info *mtd, loff_t to, size_t len,
56 /* DOC_WaitReady: Wait for RDY line to be asserted by the flash chip */
64 /* Out-of-line routine to wait for chip response */
76 /* This is inline, to optimise the common case, where it's ready instantly */
79 /* 4 read form NOP register should be issued in prior to the read from CDSNControl
84 /* Call the out-of-line routine to wait */
94 /* DoC_Command: Send a flash command to the flash chip through the CDSN IO register
96 required after writing to CDSN Control register, see Software Requirement 11.4 item 3. */
101 /* Assert the CLE (Command Latch Enable) line to the flash chip */
116 required after writing to CDSN Control register, see Software Requirement 11.4 item 3. */
121 /* Assert the ALE (Address Latch Enable) line to the flash chip */
162 /* Wait for it to be ready */
172 /* Wait for the chip to be ready */
211 /* Try to identify manufacturer */
260 /* Allocate an array to hold the information for each chip */
294 * be the same chip, and we write to one and check for a change in
296 * DoC 2000 (it's in the Millenium docs), but it seems to work. */
309 /* Restore register contents. May not be necessary, but do it just to
398 /* Don't allow a single read to cross a 512-byte block boundary */
402 /* Find the chip which is to be used and select it */
428 /* N.B. you have to increase the source address in this way or the
446 /* N.B. you have to increase the source address in this way or the
477 this can be told to user-space, via sys_read(), but at least
495 static int doc_write (struct mtd_info *mtd, loff_t to, size_t len,
503 struct Nand *mychip = &this->chips[to >> (this->chipshift)];
506 if (to >= this->totlen)
510 if (to & 0x1ff || len != 0x200)
513 /* Find the chip which is to be used and select it */
526 /* Set device to main plane of flash */
529 /* issue the Serial Data In command to initial the Page Program process */
531 DoC_Address(docptr, 3, to, 0x00, 0x00);
542 /* N.B. you have to increase the source address in this way or the
551 /* Write ECC data to flash, the ECC info is generated by the DiskOnChip ECC logic
566 /* Write the ECC data to flash */
568 /* N.B. you have to increase the source address in this way or the
583 (long) to, eccbuf[0], eccbuf[1], eccbuf[2], eccbuf[3],
627 /* Find the chip which is to be used and select it */
641 /* issue the Read2 command to set the pointer to the Spare Data Area.
653 /* N.B. you have to increase the source address in this way or the
685 /* Find the chip which is to be used and select it */
702 /* issue the Read2 command to set the pointer to the Spare Data Area. */
705 /* issue the Serial Data In command to initial the Page Program process */
713 /* N.B. you have to increase the source address in this way or the
757 /* Find the chip which is to be used and select it */