Lines Matching defs:page

63  * flexonenand_oob_128 - oob info for Flex-Onenand with 4KB page
96 * onenand_oob_128 - oob info for OneNAND with 4KB page
136 * onenand_oob_32_64 - oob info for large (2KB) page
251 * onenand_page_address - [DEFAULT] Get page address
252 * @page: the page address
254 * @return combined page and sector address
258 static int onenand_page_address(int page, int sector)
263 fpa = page & ONENAND_FPA_MASK;
395 * Send command to OneNAND device. This function is used for middle/large page
396 * devices (1KB/2KB Bytes per page)
401 int value, block, page;
410 page = -1;
416 page = -1;
425 page = -1;
431 page = 0;
437 page = (int) (addr - onenand_addr(this, block))>>\
440 page = (int) (addr >> this->page_shift);
447 page >>= 1;
449 page &= this->page_mask;
479 if (page != -1) {
480 /* Now we use page size operation */
503 value = onenand_page_address(page, sectors);
738 /* Note: the 'this->writesize' is a real page size */
876 int blockpage, block, page;
883 page = (int) (addr >> (this->page_shift + 1)) & this->page_mask;
884 blockpage = (block << 7) | page;
1063 * onenand_recover_lsb - [Flex-OneNAND] Recover LSB page data
1068 * MLC NAND Flash cell has paired pages - LSB page and MSB page. LSB page has
1069 * lower page address and MSB page has higher page address in paired pages.
1070 * If power off occurs during MSB page program, the paired LSB page data can
1071 * become corrupt. LSB page recovery read is a way to read LSB page though page
1072 * data are corrupted. When uncorrectable error occurs as a result of LSB page
1073 * read after power up, issue LSB page recovery read.
1100 /* Issue the LSB page recovery command */
1111 * MLC OneNAND / Flex-OneNAND has 4KB page size and 4KB dataram.
1723 /* Reject writes, which are not page aligned */
1725 printk(KERN_ERR "%s: Attempt to write not page aligned data\n",
1739 /* Partial page write */
1754 /* In partial page write we don't update bufferram */
1818 /* Reject writes, which are not page aligned */
1820 printk(KERN_ERR "%s: Attempt to write not page aligned data\n",
1845 /* Partial page write */
1885 /* In partial page write we don't update bufferram */
1926 /* In partial page write we don't update bufferram */
2010 /* For compatibility with NAND: Do not allow write past end of page */
2012 printk(KERN_ERR "%s: Attempt to write past end of page\n",
2704 int value, block, page;
2710 page = -1;
2715 page = (int) (addr >> this->page_shift);
2723 page >>= 1;
2725 page &= this->page_mask;
2736 if (page != -1) {
2737 /* Now we use page size operation */
2750 value = onenand_page_address(page, sectors);
2952 /* Force buffer page aligned */
3002 * main area of page 49.
3194 * Write lock mark on spare area in page 0 in OTP block
3211 * main area of page 49.
3743 /* OneNAND page size & block size */
3744 /* The data buffer size is equal to page size */
3767 /* It's real page size */
3778 * We emulate the 4KiB page and 256KiB erase block size