Lines Matching defs:mtd

108 static int check_offs_len(struct mtd_info *mtd,  in check_offs_len()
141 static void nand_release_device(struct mtd_info *mtd) in nand_release_device()
162 static uint8_t nand_read_byte(struct mtd_info *mtd) in nand_read_byte()
176 static uint8_t nand_read_byte16(struct mtd_info *mtd) in nand_read_byte16()
188 static u16 nand_read_word(struct mtd_info *mtd) in nand_read_word()
201 static void nand_select_chip(struct mtd_info *mtd, int chipnr) in nand_select_chip()
225 static void nand_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) in nand_write_buf()
242 static void nand_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in nand_read_buf()
259 static int nand_verify_buf(struct mtd_info *mtd, const uint8_t *buf, int len) in nand_verify_buf()
278 static void nand_write_buf16(struct mtd_info *mtd, const uint8_t *buf, int len) in nand_write_buf16()
298 static void nand_read_buf16(struct mtd_info *mtd, uint8_t *buf, int len) in nand_read_buf16()
317 static int nand_verify_buf16(struct mtd_info *mtd, const uint8_t *buf, int len) in nand_verify_buf16()
339 static int nand_block_bad(struct mtd_info *mtd, loff_t ofs, int getchip) in nand_block_bad()
391 static int nand_default_block_markbad(struct mtd_info *mtd, loff_t ofs) in nand_default_block_markbad()
447 static int nand_check_wp(struct mtd_info *mtd) in nand_check_wp()
470 static int nand_block_checkbad(struct mtd_info *mtd, loff_t ofs, int getchip, in nand_block_checkbad()
490 static void panic_nand_wait_ready(struct mtd_info *mtd, unsigned long timeo) in panic_nand_wait_ready()
505 void nand_wait_ready(struct mtd_info *mtd) in nand_wait_ready()
535 static void nand_command(struct mtd_info *mtd, unsigned int command, in nand_command()
637 static void nand_command_lp(struct mtd_info *mtd, unsigned int command, in nand_command_lp()
757 struct mtd_info *mtd, int new_state) in panic_nand_get_device()
773 nand_get_device(struct nand_chip *chip, struct mtd_info *mtd, int new_state) in nand_get_device()
815 static void panic_nand_wait(struct mtd_info *mtd, struct nand_chip *chip, in panic_nand_wait()
840 static int nand_wait(struct mtd_info *mtd, struct nand_chip *chip) in nand_wait()
896 static int __nand_unlock(struct mtd_info *mtd, loff_t ofs, in __nand_unlock()
932 int nand_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in nand_unlock()
985 int nand_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in nand_lock()
1045 static int nand_read_page_raw(struct mtd_info *mtd, struct nand_chip *chip, in nand_read_page_raw()
1062 static int nand_read_page_raw_syndrome(struct mtd_info *mtd, in nand_read_page_raw_syndrome()
1103 static int nand_read_page_swecc(struct mtd_info *mtd, struct nand_chip *chip, in nand_read_page_swecc()
1145 static int nand_read_subpage(struct mtd_info *mtd, struct nand_chip *chip, in nand_read_subpage()
1236 static int nand_read_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, in nand_read_page_hwecc()
1285 static int nand_read_page_hwecc_oob_first(struct mtd_info *mtd, in nand_read_page_hwecc_oob_first()
1330 static int nand_read_page_syndrome(struct mtd_info *mtd, struct nand_chip *chip, in nand_read_page_syndrome()
1431 static int nand_do_read_ops(struct mtd_info *mtd, loff_t from, in nand_do_read_ops()
1582 static int nand_read(struct mtd_info *mtd, loff_t from, size_t len, in nand_read()
1618 static int nand_read_oob_std(struct mtd_info *mtd, struct nand_chip *chip, in nand_read_oob_std()
1637 static int nand_read_oob_syndrome(struct mtd_info *mtd, struct nand_chip *chip, in nand_read_oob_syndrome()
1674 static int nand_write_oob_std(struct mtd_info *mtd, struct nand_chip *chip, in nand_write_oob_std()
1698 static int nand_write_oob_syndrome(struct mtd_info *mtd, in nand_write_oob_syndrome()
1758 static int nand_do_read_oob(struct mtd_info *mtd, loff_t from, in nand_do_read_oob()
1862 static int nand_read_oob(struct mtd_info *mtd, loff_t from, in nand_read_oob()
1908 static void nand_write_page_raw(struct mtd_info *mtd, struct nand_chip *chip, in nand_write_page_raw()
1923 static void nand_write_page_raw_syndrome(struct mtd_info *mtd, in nand_write_page_raw_syndrome()
1960 static void nand_write_page_swecc(struct mtd_info *mtd, struct nand_chip *chip, in nand_write_page_swecc()
1986 static void nand_write_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, in nand_write_page_hwecc()
2017 static void nand_write_page_syndrome(struct mtd_info *mtd, in nand_write_page_syndrome()
2061 static int nand_write_page(struct mtd_info *mtd, struct nand_chip *chip, in nand_write_page()
2115 static uint8_t *nand_fill_oob(struct mtd_info *mtd, uint8_t *oob, size_t len, in nand_fill_oob()
2174 static int nand_do_write_ops(struct mtd_info *mtd, loff_t to, in nand_do_write_ops()
2289 static int panic_nand_write(struct mtd_info *mtd, loff_t to, size_t len, in panic_nand_write()
2329 static int nand_write(struct mtd_info *mtd, loff_t to, size_t len, in nand_write()
2366 static int nand_do_write_oob(struct mtd_info *mtd, loff_t to, in nand_do_write_oob()
2446 static int nand_write_oob(struct mtd_info *mtd, loff_t to, in nand_write_oob()
2490 static void single_erase_cmd(struct mtd_info *mtd, int page) in single_erase_cmd()
2505 static void multi_erase_cmd(struct mtd_info *mtd, int page) in multi_erase_cmd()
2523 static int nand_erase(struct mtd_info *mtd, struct erase_info *instr) in nand_erase()
2537 int nand_erase_nand(struct mtd_info *mtd, struct erase_info *instr, in nand_erase_nand()
2699 static void nand_sync(struct mtd_info *mtd) in nand_sync()
2716 static int nand_block_isbad(struct mtd_info *mtd, loff_t offs) in nand_block_isbad()
2730 static int nand_block_markbad(struct mtd_info *mtd, loff_t ofs) in nand_block_markbad()
2750 static int nand_suspend(struct mtd_info *mtd) in nand_suspend()
2761 static void nand_resume(struct mtd_info *mtd) in nand_resume()
2847 static int nand_flash_detect_onfi(struct mtd_info *mtd, struct nand_chip *chip, in nand_flash_detect_onfi()
2916 static struct nand_flash_dev *nand_get_flash_type(struct mtd_info *mtd, in nand_get_flash_type()
3181 int nand_scan_ident(struct mtd_info *mtd, int maxchips, in nand_scan_ident()
3236 int nand_scan_tail(struct mtd_info *mtd) in nand_scan_tail()
3515 int nand_scan(struct mtd_info *mtd, int maxchips) in nand_scan()
3536 void nand_release(struct mtd_info *mtd) in nand_release()