Lines Matching defs:mtd
56 static int nand_ooblayout_ecc_sp(struct mtd_info *mtd, int section, in nand_ooblayout_ecc_sp()
82 static int nand_ooblayout_free_sp(struct mtd_info *mtd, int section, in nand_ooblayout_free_sp()
111 static int nand_ooblayout_ecc_lp(struct mtd_info *mtd, int section, in nand_ooblayout_ecc_lp()
126 static int nand_ooblayout_free_lp(struct mtd_info *mtd, int section, in nand_ooblayout_free_lp()
151 static int nand_ooblayout_ecc_lp_hamming(struct mtd_info *mtd, int section, in nand_ooblayout_ecc_lp_hamming()
178 static int nand_ooblayout_free_lp_hamming(struct mtd_info *mtd, int section, in nand_ooblayout_free_lp_hamming()
215 static int check_offs_len(struct mtd_info *mtd, in check_offs_len()
242 static void nand_release_device(struct mtd_info *mtd) in nand_release_device()
260 static uint8_t nand_read_byte(struct mtd_info *mtd) in nand_read_byte()
273 static uint8_t nand_read_byte16(struct mtd_info *mtd) in nand_read_byte16()
285 static u16 nand_read_word(struct mtd_info *mtd) in nand_read_word()
298 static void nand_select_chip(struct mtd_info *mtd, int chipnr) in nand_select_chip()
321 static void nand_write_byte(struct mtd_info *mtd, uint8_t byte) in nand_write_byte()
335 static void nand_write_byte16(struct mtd_info *mtd, uint8_t byte) in nand_write_byte16()
367 static void nand_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) in nand_write_buf()
382 static void nand_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in nand_read_buf()
397 static void nand_write_buf16(struct mtd_info *mtd, const uint8_t *buf, int len) in nand_write_buf16()
413 static void nand_read_buf16(struct mtd_info *mtd, uint8_t *buf, int len) in nand_read_buf16()
428 static int nand_block_bad(struct mtd_info *mtd, loff_t ofs) in nand_block_bad()
475 static int nand_default_block_markbad(struct mtd_info *mtd, loff_t ofs) in nand_default_block_markbad()
525 static int nand_block_markbad_lowlevel(struct mtd_info *mtd, loff_t ofs) in nand_block_markbad_lowlevel()
566 static int nand_check_wp(struct mtd_info *mtd) in nand_check_wp()
586 static int nand_block_isreserved(struct mtd_info *mtd, loff_t ofs) in nand_block_isreserved()
605 static int nand_block_checkbad(struct mtd_info *mtd, loff_t ofs, int allowbbt) in nand_block_checkbad()
624 static void panic_nand_wait_ready(struct mtd_info *mtd, unsigned long timeo) in panic_nand_wait_ready()
644 void nand_wait_ready(struct mtd_info *mtd) in nand_wait_ready()
672 static void nand_wait_status_ready(struct mtd_info *mtd, unsigned long timeo) in nand_wait_status_ready()
694 static void nand_command(struct mtd_info *mtd, unsigned int command, in nand_command()
799 static void nand_command_lp(struct mtd_info *mtd, unsigned int command, in nand_command_lp()
915 struct mtd_info *mtd, int new_state) in panic_nand_get_device()
930 nand_get_device(struct mtd_info *mtd, int new_state) in nand_get_device()
973 static void panic_nand_wait(struct mtd_info *mtd, struct nand_chip *chip, in panic_nand_wait()
996 static int nand_wait(struct mtd_info *mtd, struct nand_chip *chip) in nand_wait()
1042 struct mtd_info *mtd = nand_to_mtd(chip); in nand_reset_data_interface() local
1085 struct mtd_info *mtd = nand_to_mtd(chip); in nand_setup_data_interface() local
1130 struct mtd_info *mtd = nand_to_mtd(chip); in nand_init_data_interface() local
1185 struct mtd_info *mtd = nand_to_mtd(chip); in nand_reset() local
1221 static int __nand_unlock(struct mtd_info *mtd, loff_t ofs, in __nand_unlock()
1257 int nand_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in nand_unlock()
1320 int nand_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in nand_lock()
1519 static int nand_read_page_raw(struct mtd_info *mtd, struct nand_chip *chip, in nand_read_page_raw()
1538 static int nand_read_page_raw_syndrome(struct mtd_info *mtd, in nand_read_page_raw_syndrome()
1580 static int nand_read_page_swecc(struct mtd_info *mtd, struct nand_chip *chip, in nand_read_page_swecc()
1627 static int nand_read_subpage(struct mtd_info *mtd, struct nand_chip *chip, in nand_read_subpage()
1735 static int nand_read_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, in nand_read_page_hwecc()
1798 static int nand_read_page_hwecc_oob_first(struct mtd_info *mtd, in nand_read_page_hwecc_oob_first()
1857 static int nand_read_page_syndrome(struct mtd_info *mtd, struct nand_chip *chip, in nand_read_page_syndrome()
1923 static uint8_t *nand_transfer_oob(struct mtd_info *mtd, uint8_t *oob, in nand_transfer_oob()
1957 static int nand_setup_read_retry(struct mtd_info *mtd, int retry_mode) in nand_setup_read_retry()
1980 static int nand_do_read_ops(struct mtd_info *mtd, loff_t from, in nand_do_read_ops()
2165 static int nand_read(struct mtd_info *mtd, loff_t from, size_t len, in nand_read()
2188 int nand_read_oob_std(struct mtd_info *mtd, struct nand_chip *chip, int page) in nand_read_oob_std()
2203 int nand_read_oob_syndrome(struct mtd_info *mtd, struct nand_chip *chip, in nand_read_oob_syndrome()
2240 int nand_write_oob_std(struct mtd_info *mtd, struct nand_chip *chip, int page) in nand_write_oob_std()
2264 int nand_write_oob_syndrome(struct mtd_info *mtd, struct nand_chip *chip, in nand_write_oob_syndrome()
2325 static int nand_do_read_oob(struct mtd_info *mtd, loff_t from, in nand_do_read_oob()
2424 static int nand_read_oob(struct mtd_info *mtd, loff_t from, in nand_read_oob()
2465 static int nand_write_page_raw(struct mtd_info *mtd, struct nand_chip *chip, in nand_write_page_raw()
2485 static int nand_write_page_raw_syndrome(struct mtd_info *mtd, in nand_write_page_raw_syndrome()
2527 static int nand_write_page_swecc(struct mtd_info *mtd, struct nand_chip *chip, in nand_write_page_swecc()
2557 static int nand_write_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, in nand_write_page_hwecc()
2594 static int nand_write_subpage_hwecc(struct mtd_info *mtd, in nand_write_subpage_hwecc()
2658 static int nand_write_page_syndrome(struct mtd_info *mtd, in nand_write_page_syndrome()
2709 static int nand_write_page(struct mtd_info *mtd, struct nand_chip *chip, in nand_write_page()
2771 static uint8_t *nand_fill_oob(struct mtd_info *mtd, uint8_t *oob, size_t len, in nand_fill_oob()
2812 static int nand_do_write_ops(struct mtd_info *mtd, loff_t to, in nand_do_write_ops()
2942 static int panic_nand_write(struct mtd_info *mtd, loff_t to, size_t len, in panic_nand_write()
2979 static int nand_write(struct mtd_info *mtd, loff_t to, size_t len, in nand_write()
3004 static int nand_do_write_oob(struct mtd_info *mtd, loff_t to, in nand_do_write_oob()
3086 static int nand_write_oob(struct mtd_info *mtd, loff_t to, in nand_write_oob()
3129 static int single_erase(struct mtd_info *mtd, int page) in single_erase()
3146 static int nand_erase(struct mtd_info *mtd, struct erase_info *instr) in nand_erase()
3159 int nand_erase_nand(struct mtd_info *mtd, struct erase_info *instr, in nand_erase_nand()
3272 static void nand_sync(struct mtd_info *mtd) in nand_sync()
3287 static int nand_block_isbad(struct mtd_info *mtd, loff_t offs) in nand_block_isbad()
3310 static int nand_block_markbad(struct mtd_info *mtd, loff_t ofs) in nand_block_markbad()
3332 static int nand_onfi_set_features(struct mtd_info *mtd, struct nand_chip *chip, in nand_onfi_set_features()
3360 static int nand_onfi_get_features(struct mtd_info *mtd, struct nand_chip *chip, in nand_onfi_get_features()
3380 static int nand_suspend(struct mtd_info *mtd) in nand_suspend()
3389 static void nand_resume(struct mtd_info *mtd) in nand_resume()
3405 static void nand_shutdown(struct mtd_info *mtd) in nand_shutdown()
3490 static int nand_flash_detect_ext_param_page(struct mtd_info *mtd, in nand_flash_detect_ext_param_page()
3560 static int nand_setup_read_retry_micron(struct mtd_info *mtd, int retry_mode) in nand_setup_read_retry_micron()
3587 static int nand_flash_detect_onfi(struct mtd_info *mtd, struct nand_chip *chip, in nand_flash_detect_onfi()
3691 static int nand_flash_detect_jedec(struct mtd_info *mtd, struct nand_chip *chip, in nand_flash_detect_jedec()
3843 static void nand_decode_ext_id(struct mtd_info *mtd, struct nand_chip *chip, in nand_decode_ext_id()
3976 static void nand_decode_id(struct mtd_info *mtd, struct nand_chip *chip, in nand_decode_id()
4009 static void nand_decode_bbm_options(struct mtd_info *mtd, in nand_decode_bbm_options()
4046 static bool find_full_id_nand(struct mtd_info *mtd, struct nand_chip *chip, in find_full_id_nand()
4075 static struct nand_flash_dev *nand_get_flash_type(struct mtd_info *mtd, in nand_get_flash_type()
4391 int nand_scan_ident(struct mtd_info *mtd, int maxchips, in nand_scan_ident()
4475 static int nand_set_ecc_soft_ops(struct mtd_info *mtd) in nand_set_ecc_soft_ops()
4585 static bool nand_ecc_strength_good(struct mtd_info *mtd) in nand_ecc_strength_good()
4613 int nand_scan_tail(struct mtd_info *mtd) in nand_scan_tail()
4906 int nand_scan(struct mtd_info *mtd, int maxchips) in nand_scan()
4946 void nand_release(struct mtd_info *mtd) in nand_release()