Lines Matching refs:loff_t
79 static int nand_update_bbt(struct mtd_info *mtd, loff_t offs);
177 loff_t from; in read_bbt()
185 from = ((loff_t)page) << this->page_shift; in read_bbt()
223 (loff_t)(offs + act) << in read_bbt()
235 (loff_t)(offs + act) << in read_bbt()
290 static int scan_read_data(struct mtd_info *mtd, uint8_t *buf, loff_t offs, in scan_read_data()
314 static int scan_read_oob(struct mtd_info *mtd, uint8_t *buf, loff_t offs, in scan_read_oob()
344 static int scan_read(struct mtd_info *mtd, uint8_t *buf, loff_t offs, in scan_read()
354 static int scan_write_bbt(struct mtd_info *mtd, loff_t offs, size_t len, in scan_write_bbt()
395 scan_read(mtd, buf, (loff_t)td->pages[0] << this->page_shift, in read_abs_bbts()
404 scan_read(mtd, buf, (loff_t)md->pages[0] << this->page_shift, in read_abs_bbts()
414 loff_t offs, uint8_t *buf, int numpages) in scan_block_fast()
460 loff_t from; in create_bbt()
482 from = (loff_t)startblock << this->bbt_erase_shift; in create_bbt()
560 loff_t offs = (loff_t)actblock << this->bbt_erase_shift; in search_bbt()
629 loff_t to; in write_bbt()
715 to = ((loff_t)page) << this->page_shift; in write_bbt()
720 to &= ~(((loff_t)1 << this->bbt_erase_shift) - 1); in write_bbt()
988 nand_update_bbt(mtd, (loff_t)block << in mark_bbt_region()
1010 nand_update_bbt(mtd, (loff_t)(block - 1) << in mark_bbt_region()
1148 static int nand_update_bbt(struct mtd_info *mtd, loff_t offs) in nand_update_bbt()
1318 int nand_isreserved_bbt(struct mtd_info *mtd, loff_t offs) in nand_isreserved_bbt()
1333 int nand_isbad_bbt(struct mtd_info *mtd, loff_t offs, int allowbbt) in nand_isbad_bbt()
1360 int nand_markbad_bbt(struct mtd_info *mtd, loff_t offs) in nand_markbad_bbt()