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 * @param 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.
1711 /* Reject writes, which are not page aligned */
1713 printk(KERN_ERR "%s: Attempt to write not page aligned data\n",
1727 /* Partial page write */
1742 /* In partial page write we don't update bufferram */
1806 /* Reject writes, which are not page aligned */
1808 printk(KERN_ERR "%s: Attempt to write not page aligned data\n",
1833 /* Partial page write */
1873 /* In partial page write we don't update bufferram */
1914 /* In partial page write we don't update bufferram */
2001 /* For compatibility with NAND: Do not allow write past end of page */
2003 printk(KERN_ERR "%s: Attempt to write past end of page\n",
2695 int value, block, page;
2701 page = -1;
2706 page = (int) (addr >> this->page_shift);
2714 page >>= 1;
2716 page &= this->page_mask;
2727 if (page != -1) {
2728 /* Now we use page size operation */
2741 value = onenand_page_address(page, sectors);
2945 /* Force buffer page aligned */
2995 * main area of page 49.
3186 * Write lock mark on spare area in page 0 in OTP block
3203 * main area of page 49.
3736 /* OneNAND page size & block size */
3737 /* The data buffer size is equal to page size */
3760 /* It's real page size */
3771 * We emulate the 4KiB page and 256KiB erase block size