Lines Matching refs:nand_chip
60 struct nand_chip *chip = mtd_to_nand(mtd); in nand_ooblayout_ecc_sp()
115 struct nand_chip *chip = mtd_to_nand(mtd); in nand_ooblayout_ecc_lp()
130 struct nand_chip *chip = mtd_to_nand(mtd); in nand_ooblayout_free_lp()
155 struct nand_chip *chip = mtd_to_nand(mtd); in nand_ooblayout_ecc_lp_hamming()
182 struct nand_chip *chip = mtd_to_nand(mtd); in nand_ooblayout_free_lp_hamming()
219 struct nand_chip *chip = mtd_to_nand(mtd); in check_offs_len()
245 struct nand_chip *chip = mtd_to_nand(mtd); in nand_release_device()
263 struct nand_chip *chip = mtd_to_nand(mtd); in nand_read_byte()
276 struct nand_chip *chip = mtd_to_nand(mtd); in nand_read_byte16()
288 struct nand_chip *chip = mtd_to_nand(mtd); in nand_read_word()
301 struct nand_chip *chip = mtd_to_nand(mtd); in nand_select_chip()
324 struct nand_chip *chip = mtd_to_nand(mtd); in nand_write_byte()
338 struct nand_chip *chip = mtd_to_nand(mtd); in nand_write_byte16()
370 struct nand_chip *chip = mtd_to_nand(mtd); in nand_write_buf()
385 struct nand_chip *chip = mtd_to_nand(mtd); in nand_read_buf()
400 struct nand_chip *chip = mtd_to_nand(mtd); in nand_write_buf16()
416 struct nand_chip *chip = mtd_to_nand(mtd); in nand_read_buf16()
432 struct nand_chip *chip = mtd_to_nand(mtd); in nand_block_bad()
470 struct nand_chip *chip = mtd_to_nand(mtd); in nand_default_block_markbad()
522 struct nand_chip *chip = mtd_to_nand(mtd); in nand_block_markbad_lowlevel()
562 struct nand_chip *chip = mtd_to_nand(mtd); in nand_check_wp()
587 struct nand_chip *chip = mtd_to_nand(mtd); in nand_block_isreserved()
606 struct nand_chip *chip = mtd_to_nand(mtd); in nand_block_checkbad()
625 struct nand_chip *chip = mtd_to_nand(mtd); in panic_nand_wait_ready()
645 struct nand_chip *chip = mtd_to_nand(mtd); in nand_wait_ready()
673 register struct nand_chip *chip = mtd_to_nand(mtd); in nand_wait_status_ready()
707 int nand_soft_waitrdy(struct nand_chip *chip, unsigned long timeout_ms) in nand_soft_waitrdy()
768 register struct nand_chip *chip = mtd_to_nand(mtd); in nand_command()
870 static void nand_ccs_delay(struct nand_chip *chip) in nand_ccs_delay()
903 register struct nand_chip *chip = mtd_to_nand(mtd); in nand_command_lp()
1030 static void panic_nand_get_device(struct nand_chip *chip, in panic_nand_get_device()
1048 struct nand_chip *chip = mtd_to_nand(mtd); in nand_get_device()
1089 static void panic_nand_wait(struct mtd_info *mtd, struct nand_chip *chip, in panic_nand_wait()
1120 static int nand_wait(struct mtd_info *mtd, struct nand_chip *chip) in nand_wait()
1167 static bool nand_supports_get_features(struct nand_chip *chip, int addr) in nand_supports_get_features()
1173 static bool nand_supports_set_features(struct nand_chip *chip, int addr) in nand_supports_set_features()
1188 int nand_get_features(struct nand_chip *chip, int addr, in nand_get_features()
1209 int nand_set_features(struct nand_chip *chip, int addr, in nand_set_features()
1230 static int nand_reset_data_interface(struct nand_chip *chip, int chipnr) in nand_reset_data_interface()
1273 static int nand_setup_data_interface(struct nand_chip *chip, int chipnr) in nand_setup_data_interface()
1346 static int nand_init_data_interface(struct nand_chip *chip) in nand_init_data_interface()
1401 static int nand_fill_column_cycles(struct nand_chip *chip, u8 *addrs, in nand_fill_column_cycles()
1443 static int nand_sp_exec_read_page_op(struct nand_chip *chip, unsigned int page, in nand_sp_exec_read_page_op()
1486 static int nand_lp_exec_read_page_op(struct nand_chip *chip, unsigned int page, in nand_lp_exec_read_page_op()
1536 int nand_read_page_op(struct nand_chip *chip, unsigned int page, in nand_read_page_op()
1577 static int nand_read_param_page_op(struct nand_chip *chip, u8 page, void *buf, in nand_read_param_page_op()
1626 int nand_change_read_column_op(struct nand_chip *chip, in nand_change_read_column_op()
1690 int nand_read_oob_op(struct nand_chip *chip, unsigned int page, in nand_read_oob_op()
1714 static int nand_exec_prog_page_op(struct nand_chip *chip, unsigned int page, in nand_exec_prog_page_op()
1802 int nand_prog_page_begin_op(struct nand_chip *chip, unsigned int page, in nand_prog_page_begin_op()
1836 int nand_prog_page_end_op(struct nand_chip *chip) in nand_prog_page_end_op()
1888 int nand_prog_page_op(struct nand_chip *chip, unsigned int page, in nand_prog_page_op()
1931 int nand_change_write_column_op(struct nand_chip *chip, in nand_change_write_column_op()
1994 int nand_readid_op(struct nand_chip *chip, u8 addr, void *buf, in nand_readid_op()
2041 int nand_status_op(struct nand_chip *chip, u8 *status) in nand_status_op()
2080 int nand_exit_status_op(struct nand_chip *chip) in nand_exit_status_op()
2110 int nand_erase_op(struct nand_chip *chip, unsigned int eraseblock) in nand_erase_op()
2171 static int nand_set_features_op(struct nand_chip *chip, u8 feature, in nand_set_features_op()
2219 static int nand_get_features_op(struct nand_chip *chip, u8 feature, in nand_get_features_op()
2259 int nand_reset_op(struct nand_chip *chip) in nand_reset_op()
2294 int nand_read_data_op(struct nand_chip *chip, void *buf, unsigned int len, in nand_read_data_op()
2340 int nand_write_data_op(struct nand_chip *chip, const void *buf, in nand_write_data_op()
2606 int nand_op_parser_exec_op(struct nand_chip *chip, in nand_op_parser_exec_op()
2799 int nand_reset(struct nand_chip *chip, int chipnr) in nand_reset()
2979 int nand_read_page_raw_notsupp(struct mtd_info *mtd, struct nand_chip *chip, in nand_read_page_raw_notsupp()
2996 int nand_read_page_raw(struct mtd_info *mtd, struct nand_chip *chip, in nand_read_page_raw()
3027 struct nand_chip *chip, uint8_t *buf, in nand_read_page_raw_syndrome()
3089 static int nand_read_page_swecc(struct mtd_info *mtd, struct nand_chip *chip, in nand_read_page_swecc()
3136 static int nand_read_subpage(struct mtd_info *mtd, struct nand_chip *chip, in nand_read_subpage()
3249 static int nand_read_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, in nand_read_page_hwecc()
3324 struct nand_chip *chip, uint8_t *buf, int oob_required, int page) in nand_read_page_hwecc_oob_first()
3390 static int nand_read_page_syndrome(struct mtd_info *mtd, struct nand_chip *chip, in nand_read_page_syndrome()
3481 struct nand_chip *chip = mtd_to_nand(mtd); in nand_transfer_oob()
3514 struct nand_chip *chip = mtd_to_nand(mtd); in nand_setup_read_retry()
3539 struct nand_chip *chip = mtd_to_nand(mtd); in nand_do_read_ops()
3715 int nand_read_oob_std(struct mtd_info *mtd, struct nand_chip *chip, int page) in nand_read_oob_std()
3728 int nand_read_oob_syndrome(struct mtd_info *mtd, struct nand_chip *chip, in nand_read_oob_syndrome()
3783 int nand_write_oob_std(struct mtd_info *mtd, struct nand_chip *chip, int page) in nand_write_oob_std()
3797 int nand_write_oob_syndrome(struct mtd_info *mtd, struct nand_chip *chip, in nand_write_oob_syndrome()
3878 struct nand_chip *chip = mtd_to_nand(mtd); in nand_do_read_oob()
3990 int nand_write_page_raw_notsupp(struct mtd_info *mtd, struct nand_chip *chip, in nand_write_page_raw_notsupp()
4007 int nand_write_page_raw(struct mtd_info *mtd, struct nand_chip *chip, in nand_write_page_raw()
4038 struct nand_chip *chip, in nand_write_page_raw_syndrome()
4100 static int nand_write_page_swecc(struct mtd_info *mtd, struct nand_chip *chip, in nand_write_page_swecc()
4130 static int nand_write_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, in nand_write_page_hwecc()
4178 struct nand_chip *chip, uint32_t offset, in nand_write_subpage_hwecc()
4250 struct nand_chip *chip, in nand_write_page_syndrome()
4321 static int nand_write_page(struct mtd_info *mtd, struct nand_chip *chip, in nand_write_page()
4359 struct nand_chip *chip = mtd_to_nand(mtd); in nand_fill_oob()
4401 struct nand_chip *chip = mtd_to_nand(mtd); in nand_do_write_ops()
4530 struct nand_chip *chip = mtd_to_nand(mtd); in panic_nand_write()
4566 struct nand_chip *chip = mtd_to_nand(mtd); in nand_do_write_oob()
4666 struct nand_chip *chip = mtd_to_nand(mtd); in single_erase()
4699 struct nand_chip *chip = mtd_to_nand(mtd); in nand_erase_nand()
4809 struct nand_chip *chip = mtd_to_nand(mtd); in nand_block_isbad()
4853 struct nand_chip *chip = mtd_to_nand(mtd); in nand_max_bad_blocks()
4889 struct nand_chip *chip, int addr, in nand_default_set_features()
4903 struct nand_chip *chip, int addr, in nand_default_get_features()
4919 int nand_get_set_features_notsupp(struct mtd_info *mtd, struct nand_chip *chip, in nand_get_set_features_notsupp()
4941 struct nand_chip *chip = mtd_to_nand(mtd); in nand_resume()
4961 static void nand_set_defaults(struct nand_chip *chip) in nand_set_defaults()
5042 static int nand_flash_detect_ext_param_page(struct nand_chip *chip, in nand_flash_detect_ext_param_page()
5150 static int nand_flash_detect_onfi(struct nand_chip *chip) in nand_flash_detect_onfi()
5320 static int nand_flash_detect_jedec(struct nand_chip *chip) in nand_flash_detect_jedec()
5487 void nand_decode_ext_id(struct nand_chip *chip) in nand_decode_ext_id()
5517 static void nand_decode_id(struct nand_chip *chip, struct nand_flash_dev *type) in nand_decode_id()
5534 static void nand_decode_bbm_options(struct nand_chip *chip) in nand_decode_bbm_options()
5550 static bool find_full_id_nand(struct nand_chip *chip, in find_full_id_nand()
5583 static void nand_manufacturer_detect(struct nand_chip *chip) in nand_manufacturer_detect()
5605 static int nand_manufacturer_init(struct nand_chip *chip) in nand_manufacturer_init()
5620 static void nand_manufacturer_cleanup(struct nand_chip *chip) in nand_manufacturer_cleanup()
5631 static int nand_detect(struct nand_chip *chip, struct nand_flash_dev *type) in nand_detect()
5914 static int nand_dt_init(struct nand_chip *chip) in nand_dt_init()
5972 struct nand_chip *chip = mtd_to_nand(mtd); in nand_scan_ident()
6044 static void nand_scan_ident_cleanup(struct nand_chip *chip) in nand_scan_ident_cleanup()
6052 struct nand_chip *chip = mtd_to_nand(mtd); in nand_set_ecc_soft_ops()
6157 nand_check_ecc_caps(struct nand_chip *chip, in nand_check_ecc_caps()
6211 nand_match_ecc_req(struct nand_chip *chip, in nand_match_ecc_req()
6292 nand_maximize_ecc(struct nand_chip *chip, in nand_maximize_ecc()
6369 int nand_ecc_choose_conf(struct nand_chip *chip, in nand_ecc_choose_conf()
6406 struct nand_chip *chip = mtd_to_nand(mtd); in nand_ecc_strength_good()
6434 struct nand_chip *chip = mtd_to_nand(mtd); in nand_scan_tail()
6757 static int nand_attach(struct nand_chip *chip) in nand_attach()
6765 static void nand_detach(struct nand_chip *chip) in nand_detach()
6786 struct nand_chip *chip = mtd_to_nand(mtd); in nand_scan_with_ids()
6818 void nand_cleanup(struct nand_chip *chip) in nand_cleanup()