Lines Matching refs:uint8_t
81 static inline uint8_t bbt_get_entry(struct nand_chip *chip, int block) in bbt_get_entry()
83 uint8_t entry = chip->bbt[block >> BBT_ENTRY_SHIFT]; in bbt_get_entry()
89 uint8_t mark) in bbt_mark_entry()
91 uint8_t msk = (mark & BBT_ENTRY_MASK) << ((block & BBT_ENTRY_MASK) * 2); in bbt_mark_entry()
95 static int check_pattern_no_oob(uint8_t *buf, struct nand_bbt_descr *td) in check_pattern_no_oob()
112 static int check_pattern(uint8_t *buf, int len, int paglen, struct nand_bbt_descr *td) in check_pattern()
133 static int check_short_pattern(uint8_t *buf, struct nand_bbt_descr *td) in check_short_pattern()
171 static int read_bbt(struct mtd_info *mtd, uint8_t *buf, int page, int num, in read_bbt()
179 uint8_t msk = (uint8_t)((1 << bits) - 1); in read_bbt()
216 uint8_t dat = buf[i]; in read_bbt()
218 uint8_t tmp = (dat >> j) & msk; in read_bbt()
264 static int read_abs_bbt(struct mtd_info *mtd, uint8_t *buf, struct nand_bbt_descr *td, int chip) in read_abs_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()
355 uint8_t *buf, uint8_t *oob) in scan_write_bbt()
388 static void read_abs_bbts(struct mtd_info *mtd, uint8_t *buf, in read_abs_bbts()
414 loff_t offs, uint8_t *buf, int numpages) in scan_block_fast()
454 static int create_bbt(struct mtd_info *mtd, uint8_t *buf, in create_bbt()
524 static int search_bbt(struct mtd_info *mtd, uint8_t *buf, struct nand_bbt_descr *td) in search_bbt()
595 static void search_read_bbts(struct mtd_info *mtd, uint8_t *buf, in search_read_bbts()
617 static int write_bbt(struct mtd_info *mtd, uint8_t *buf, in write_bbt()
626 uint8_t msk[4]; in write_bbt()
627 uint8_t rcode = td->reserved_block_code; in write_bbt()
778 uint8_t dat; in write_bbt()
838 static int check_create(struct mtd_info *mtd, uint8_t *buf, struct nand_bbt_descr *bd) in check_create()
967 uint8_t oldval; in mark_bbt_region()
1079 uint8_t *buf; in nand_scan_bbt()
1153 uint8_t *buf; in nand_update_bbt()
1200 static uint8_t scan_ff_pattern[] = { 0xff, 0xff };
1203 static uint8_t bbt_pattern[] = {'B', 'b', 't', '0' };
1204 static uint8_t mirror_pattern[] = {'1', 't', 'b', 'B' };