Lines Matching defs:mtd

106 static int check_offs_len(struct mtd_info *mtd,  in check_offs_len()
133 static void nand_release_device(struct mtd_info *mtd) in nand_release_device()
147 uint8_t nand_read_byte(struct mtd_info *mtd) in nand_read_byte()
160 static uint8_t nand_read_byte16(struct mtd_info *mtd) in nand_read_byte16()
172 static u16 nand_read_word(struct mtd_info *mtd) in nand_read_word()
185 static void nand_select_chip(struct mtd_info *mtd, int chipnr) in nand_select_chip()
208 static void nand_write_byte(struct mtd_info *mtd, uint8_t byte) in nand_write_byte()
222 static void nand_write_byte16(struct mtd_info *mtd, uint8_t byte) in nand_write_byte16()
287 void nand_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) in nand_write_buf()
302 void nand_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in nand_read_buf()
317 void nand_write_buf16(struct mtd_info *mtd, const uint8_t *buf, int len) in nand_write_buf16()
333 void nand_read_buf16(struct mtd_info *mtd, uint8_t *buf, int len) in nand_read_buf16()
348 static int nand_block_bad(struct mtd_info *mtd, loff_t ofs) in nand_block_bad()
395 static int nand_default_block_markbad(struct mtd_info *mtd, loff_t ofs) in nand_default_block_markbad()
445 static int nand_block_markbad_lowlevel(struct mtd_info *mtd, loff_t ofs) in nand_block_markbad_lowlevel()
486 static int nand_check_wp(struct mtd_info *mtd) in nand_check_wp()
511 static int nand_block_isreserved(struct mtd_info *mtd, loff_t ofs) in nand_block_isreserved()
530 static int nand_block_checkbad(struct mtd_info *mtd, loff_t ofs, int allowbbt) in nand_block_checkbad()
553 void nand_wait_ready(struct mtd_info *mtd) in nand_wait_ready()
579 static void nand_wait_status_ready(struct mtd_info *mtd, unsigned long timeo) in nand_wait_status_ready()
610 static void nand_command(struct mtd_info *mtd, unsigned int command, in nand_command()
714 static void nand_command_lp(struct mtd_info *mtd, unsigned int command, in nand_command_lp()
825 struct mtd_info *mtd, int new_state) in panic_nand_get_device()
840 nand_get_device(struct mtd_info *mtd, int new_state) in nand_get_device()
857 static void panic_nand_wait(struct mtd_info *mtd, struct nand_chip *chip, in panic_nand_wait()
888 static int nand_wait(struct mtd_info *mtd, struct nand_chip *chip) in nand_wait()
946 struct mtd_info *mtd = nand_to_mtd(chip); in nand_reset_data_interface() local
990 struct mtd_info *mtd = nand_to_mtd(chip); in nand_setup_data_interface() local
1033 struct mtd_info *mtd = nand_to_mtd(chip); in nand_init_data_interface() local
1097 struct mtd_info *mtd = nand_to_mtd(chip); in nand_read_page_op() local
1128 struct mtd_info *mtd = nand_to_mtd(chip); in nand_read_param_page_op() local
1159 struct mtd_info *mtd = nand_to_mtd(chip); in nand_change_read_column_op() local
1191 struct mtd_info *mtd = nand_to_mtd(chip); in nand_read_oob_op() local
1224 struct mtd_info *mtd = nand_to_mtd(chip); in nand_prog_page_begin_op() local
1252 struct mtd_info *mtd = nand_to_mtd(chip); in nand_prog_page_end_op() local
1282 struct mtd_info *mtd = nand_to_mtd(chip); in nand_prog_page_op() local
1321 struct mtd_info *mtd = nand_to_mtd(chip); in nand_change_write_column_op() local
1353 struct mtd_info *mtd = nand_to_mtd(chip); in nand_readid_op() local
1382 struct mtd_info *mtd = nand_to_mtd(chip); in nand_status_op() local
1405 struct mtd_info *mtd = nand_to_mtd(chip); in nand_exit_status_op() local
1426 struct mtd_info *mtd = nand_to_mtd(chip); in nand_erase_op() local
1460 struct mtd_info *mtd = nand_to_mtd(chip); in nand_set_features_op() local
1490 struct mtd_info *mtd = nand_to_mtd(chip); in nand_get_features_op() local
1513 struct mtd_info *mtd = nand_to_mtd(chip); in nand_reset_op() local
1537 struct mtd_info *mtd = nand_to_mtd(chip); in nand_read_data_op() local
1572 struct mtd_info *mtd = nand_to_mtd(chip); in nand_write_data_op() local
1600 struct mtd_info *mtd = nand_to_mtd(chip); in nand_reset() local
1763 static int nand_read_page_raw(struct mtd_info *mtd, struct nand_chip *chip, in nand_read_page_raw()
1792 static int nand_read_page_raw_syndrome(struct mtd_info *mtd, in nand_read_page_raw_syndrome()
1851 static int nand_read_page_swecc(struct mtd_info *mtd, struct nand_chip *chip, in nand_read_page_swecc()
1897 static int nand_read_subpage(struct mtd_info *mtd, struct nand_chip *chip, in nand_read_subpage()
2010 static int nand_read_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, in nand_read_page_hwecc()
2080 static int nand_read_page_hwecc_oob_first(struct mtd_info *mtd, in nand_read_page_hwecc_oob_first()
2147 static int nand_read_page_syndrome(struct mtd_info *mtd, struct nand_chip *chip, in nand_read_page_syndrome()
2281 static int nand_setup_read_retry(struct mtd_info *mtd, int retry_mode) in nand_setup_read_retry()
2304 static int nand_do_read_ops(struct mtd_info *mtd, loff_t from, in nand_do_read_ops()
2491 static int nand_read_oob_std(struct mtd_info *mtd, struct nand_chip *chip, in nand_read_oob_std()
2504 static int nand_read_oob_syndrome(struct mtd_info *mtd, struct nand_chip *chip, in nand_read_oob_syndrome()
2558 static int nand_write_oob_std(struct mtd_info *mtd, struct nand_chip *chip, in nand_write_oob_std()
2572 static int nand_write_oob_syndrome(struct mtd_info *mtd, in nand_write_oob_syndrome()
2647 static int nand_do_read_oob(struct mtd_info *mtd, loff_t from, in nand_do_read_oob()
2745 static int nand_read_oob(struct mtd_info *mtd, loff_t from, in nand_read_oob()
2792 static int nand_write_page_raw(struct mtd_info *mtd, struct nand_chip *chip, in nand_write_page_raw()
2821 static int nand_write_page_raw_syndrome(struct mtd_info *mtd, in nand_write_page_raw_syndrome()
2880 static int nand_write_page_swecc(struct mtd_info *mtd, struct nand_chip *chip, in nand_write_page_swecc()
2909 static int nand_write_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, in nand_write_page_hwecc()
2952 static int nand_write_subpage_hwecc(struct mtd_info *mtd, in nand_write_subpage_hwecc()
3020 static int nand_write_page_syndrome(struct mtd_info *mtd, in nand_write_page_syndrome()
3088 static int nand_write_page(struct mtd_info *mtd, struct nand_chip *chip, in nand_write_page()
3132 static uint8_t *nand_fill_oob(struct mtd_info *mtd, uint8_t *oob, size_t len, in nand_fill_oob()
3191 static int nand_do_write_ops(struct mtd_info *mtd, loff_t to, in nand_do_write_ops()
3320 static int panic_nand_write(struct mtd_info *mtd, loff_t to, size_t len, in panic_nand_write()
3352 static int nand_do_write_oob(struct mtd_info *mtd, loff_t to, in nand_do_write_oob()
3434 static int nand_write_oob(struct mtd_info *mtd, loff_t to, in nand_write_oob()
3477 static int single_erase(struct mtd_info *mtd, int page) in single_erase()
3495 static int nand_erase(struct mtd_info *mtd, struct erase_info *instr) in nand_erase()
3508 int nand_erase_nand(struct mtd_info *mtd, struct erase_info *instr, in nand_erase_nand()
3615 static void nand_sync(struct mtd_info *mtd) in nand_sync()
3630 static int nand_block_isbad(struct mtd_info *mtd, loff_t offs) in nand_block_isbad()
3653 static int nand_block_markbad(struct mtd_info *mtd, loff_t ofs) in nand_block_markbad()
3675 static int nand_onfi_set_features(struct mtd_info *mtd, struct nand_chip *chip, in nand_onfi_set_features()
3695 static int nand_onfi_get_features(struct mtd_info *mtd, struct nand_chip *chip, in nand_onfi_get_features()
3792 static int nand_flash_detect_ext_param_page(struct mtd_info *mtd, in nand_flash_detect_ext_param_page()
3866 static int nand_setup_read_retry_micron(struct mtd_info *mtd, int retry_mode) in nand_setup_read_retry_micron()
3893 static int nand_flash_detect_onfi(struct mtd_info *mtd, struct nand_chip *chip, in nand_flash_detect_onfi()
3998 static int nand_flash_detect_onfi(struct mtd_info *mtd, struct nand_chip *chip, in nand_flash_detect_onfi()
4008 static int nand_flash_detect_jedec(struct mtd_info *mtd, struct nand_chip *chip, in nand_flash_detect_jedec()
4162 static void nand_decode_ext_id(struct mtd_info *mtd, struct nand_chip *chip, in nand_decode_ext_id()
4295 static void nand_decode_id(struct mtd_info *mtd, struct nand_chip *chip, in nand_decode_id()
4328 static void nand_decode_bbm_options(struct mtd_info *mtd, in nand_decode_bbm_options()
4365 static bool find_full_id_nand(struct mtd_info *mtd, struct nand_chip *chip, in find_full_id_nand()
4394 struct nand_flash_dev *nand_get_flash_type(struct mtd_info *mtd, in nand_get_flash_type()
4574 static int nand_dt_init(struct mtd_info *mtd, struct nand_chip *chip, int node) in nand_dt_init()
4628 static int nand_dt_init(struct mtd_info *mtd, struct nand_chip *chip, int node) in nand_dt_init()
4644 int nand_scan_ident(struct mtd_info *mtd, int maxchips, in nand_scan_ident()
4736 struct mtd_info *mtd = nand_to_mtd(chip); in nand_check_ecc_caps() local
4798 struct mtd_info *mtd = nand_to_mtd(chip); in nand_match_ecc_req() local
4882 struct mtd_info *mtd = nand_to_mtd(chip); in nand_maximize_ecc() local
4957 static bool nand_ecc_strength_good(struct mtd_info *mtd) in nand_ecc_strength_good()
5005 int nand_scan_tail(struct mtd_info *mtd) in nand_scan_tail()
5302 int nand_scan(struct mtd_info *mtd, int maxchips) in nand_scan()