Lines Matching refs:uint8_t
84 static inline uint8_t bbt_get_entry(struct nand_chip *chip, int block) in bbt_get_entry()
86 uint8_t entry = chip->bbt[block >> BBT_ENTRY_SHIFT]; in bbt_get_entry()
92 uint8_t mark) in bbt_mark_entry()
94 uint8_t msk = (mark & BBT_ENTRY_MASK) << ((block & BBT_ENTRY_MASK) * 2); in bbt_mark_entry()
98 static int check_pattern_no_oob(uint8_t *buf, struct nand_bbt_descr *td) in check_pattern_no_oob()
115 static int check_pattern(uint8_t *buf, int len, int paglen, struct nand_bbt_descr *td) in check_pattern()
136 static int check_short_pattern(uint8_t *buf, struct nand_bbt_descr *td) in check_short_pattern()
174 static int read_bbt(struct mtd_info *mtd, uint8_t *buf, int page, int num, in read_bbt()
182 uint8_t msk = (uint8_t)((1 << bits) - 1); in read_bbt()
219 uint8_t dat = buf[i]; in read_bbt()
221 uint8_t tmp = (dat >> j) & msk; in read_bbt()
267 static int read_abs_bbt(struct mtd_info *mtd, uint8_t *buf, struct nand_bbt_descr *td, int chip) in read_abs_bbt()
293 static int scan_read_data(struct mtd_info *mtd, uint8_t *buf, loff_t offs, in scan_read_data()
317 static int scan_read_oob(struct mtd_info *mtd, uint8_t *buf, loff_t offs, in scan_read_oob()
347 static int scan_read(struct mtd_info *mtd, uint8_t *buf, loff_t offs, in scan_read()
358 uint8_t *buf, uint8_t *oob) in scan_write_bbt()
391 static void read_abs_bbts(struct mtd_info *mtd, uint8_t *buf, in read_abs_bbts()
417 loff_t offs, uint8_t *buf, int numpages) in scan_block_fast()
457 static int create_bbt(struct mtd_info *mtd, uint8_t *buf, in create_bbt()
527 static int search_bbt(struct mtd_info *mtd, uint8_t *buf, struct nand_bbt_descr *td) in search_bbt()
598 static void search_read_bbts(struct mtd_info *mtd, uint8_t *buf, in search_read_bbts()
620 static int write_bbt(struct mtd_info *mtd, uint8_t *buf, in write_bbt()
629 uint8_t msk[4]; in write_bbt()
630 uint8_t rcode = td->reserved_block_code; in write_bbt()
781 uint8_t dat; in write_bbt()
841 static int check_create(struct mtd_info *mtd, uint8_t *buf, struct nand_bbt_descr *bd) in check_create()
970 uint8_t oldval; in mark_bbt_region()
1082 uint8_t *buf; in nand_scan_bbt()
1151 uint8_t *buf; in nand_update_bbt()
1198 static uint8_t scan_ff_pattern[] = { 0xff, 0xff };
1201 static uint8_t bbt_pattern[] = {'B', 'b', 't', '0' };
1202 static uint8_t mirror_pattern[] = {'1', 't', 'b', 'B' };