Lines Matching refs:pages
220 …res = read_bbt (mtd, buf, td->pages[i], this->chipsize >> this->bbt_erase_shift, bits, offs, td->r… in read_abs_bbt()
226 …res = read_bbt (mtd, buf, td->pages[0], mtd->size >> this->bbt_erase_shift, bits, 0, td->reserved_… in read_abs_bbt()
287 scan_read_raw(mtd, buf, (loff_t)td->pages[0] << this->page_shift, in read_abs_bbts()
291 td->pages[0], td->version[0]); in read_abs_bbts()
296 scan_read_raw(mtd, buf, (loff_t)md->pages[0] << this->page_shift, in read_abs_bbts()
300 md->pages[0], md->version[0]); in read_abs_bbts()
493 td->pages[i] = -1; in search_bbt()
503 td->pages[i] = actblock << blocktopage; in search_bbt()
514 if (td->pages[i] == -1) in search_bbt()
517 printk(KERN_DEBUG "Bad block table found at page %d, version 0x%02X\n", td->pages[i], in search_bbt()
601 if (td->pages[chip] != -1) { in write_bbt()
602 page = td->pages[chip]; in write_bbt()
628 if (!md || md->pages[chip] != page) in write_bbt()
736 td->pages[chip] = page; in write_bbt()
796 if (td->pages[i] == -1 && md->pages[i] == -1) { in check_create()
801 if (td->pages[i] == -1) { in check_create()
808 if (md->pages[i] == -1) { in check_create()
835 if (td->pages[i] == -1) { in check_create()
905 if (td->pages[i] == -1) in mark_bbt_region()
907 block = td->pages[i] >> (this->bbt_erase_shift - this->page_shift); in mark_bbt_region()