Lines Matching defs:page

55  * - bbts start at a page boundary, if autolocated on a block boundary
162 * read_bbt - [GENERIC] Read the bad block table starting from page
165 * @page: the starting page
170 * Read the bad block table starting from page.
172 static int read_bbt(struct mtd_info *mtd, uint8_t *buf, int page, int num,
186 from = ((loff_t)page) << this->page_shift;
193 * will be just in the first page.
255 * read_abs_bbt - [GENERIC] Read the bad block table starting at a given page
262 * Read the bad block table for all chips starting at a given page. We assume
290 /* BBT marker is in the first page, no OOB */
312 * page,OOB,page,OOB,... in buf. Completes transfer and returns the "strongest"
380 * read_abs_bbts - [GENERIC] Read the bad block table(s) for all chips starting at a given page
386 * Read the bad block table(s) for all chips starting at a given page. We
399 pr_info("Bad block table at page %d, version 0x%02X\n",
408 pr_info("Bad block table at page %d, version 0x%02X\n",
523 * The bbt ident pattern resides in the oob area of the first page in a block.
563 /* Read first page */
581 pr_info("Bad block table found at page %d, version 0x%02X\n",
625 int bits, startblock, dir, page, offs, numblocks, sft, sftmsk;
658 * There was already a version of the table, reuse the page
660 * page nr. in td->pages.
663 page = td->pages[chip];
687 page = block <<
690 if (!md || md->pages[chip] != page)
716 to = ((loff_t)page) << this->page_shift;
739 pageoffs = page - (int)(to >> this->page_shift);
754 /* Make it page aligned! */
758 /* Pattern is located at the begin of first page */
763 /* Make it page aligned! */
770 /* Pattern is located in oob area of first page */
804 td->pages[chip] = page;
1116 /* Is the bbt at a given page? */