Lines Matching refs:nand_chip
100 static int check_offs_len(struct nand_chip *chip, loff_t ofs, uint64_t len) in check_offs_len()
172 void nand_select_target(struct nand_chip *chip, unsigned int cs) in nand_select_target()
195 void nand_deselect_target(struct nand_chip *chip) in nand_deselect_target()
210 static void nand_release_device(struct nand_chip *chip) in nand_release_device()
226 int nand_bbm_get_next_page(struct nand_chip *chip, int page) in nand_bbm_get_next_page()
253 static int nand_block_bad(struct nand_chip *chip, loff_t ofs) in nand_block_bad()
292 static bool nand_region_is_secured(struct nand_chip *chip, loff_t offset, u64 size) in nand_region_is_secured()
313 static int nand_isbad_bbm(struct nand_chip *chip, loff_t ofs) in nand_isbad_bbm()
339 static void nand_get_device(struct nand_chip *chip) in nand_get_device()
361 static int nand_check_wp(struct nand_chip *chip) in nand_check_wp()
385 static uint8_t *nand_fill_oob(struct nand_chip *chip, uint8_t *oob, size_t len, in nand_fill_oob()
424 static int nand_do_write_oob(struct nand_chip *chip, loff_t to, in nand_do_write_oob()
499 static int nand_default_block_markbad(struct nand_chip *chip, loff_t ofs) in nand_default_block_markbad()
538 int nand_markbad_bbm(struct nand_chip *chip, loff_t ofs) in nand_markbad_bbm()
565 static int nand_block_markbad_lowlevel(struct nand_chip *chip, loff_t ofs) in nand_block_markbad_lowlevel()
608 struct nand_chip *chip = mtd_to_nand(mtd); in nand_block_isreserved()
625 static int nand_block_checkbad(struct nand_chip *chip, loff_t ofs, int allowbbt) in nand_block_checkbad()
651 int nand_soft_waitrdy(struct nand_chip *chip, unsigned long timeout_ms) in nand_soft_waitrdy()
719 int nand_gpio_waitrdy(struct nand_chip *chip, struct gpio_desc *gpiod, in nand_gpio_waitrdy()
750 void panic_nand_wait(struct nand_chip *chip, unsigned long timeo) in panic_nand_wait()
773 static bool nand_supports_get_features(struct nand_chip *chip, int addr) in nand_supports_get_features()
779 static bool nand_supports_set_features(struct nand_chip *chip, int addr) in nand_supports_set_features()
794 static int nand_reset_interface(struct nand_chip *chip, int chipnr) in nand_reset_interface()
835 static int nand_setup_interface(struct nand_chip *chip, int chipnr) in nand_setup_interface()
926 int nand_choose_best_sdr_timings(struct nand_chip *chip, in nand_choose_best_sdr_timings()
977 int nand_choose_best_nvddr_timings(struct nand_chip *chip, in nand_choose_best_nvddr_timings()
1027 static int nand_choose_best_timings(struct nand_chip *chip, in nand_choose_best_timings()
1054 static int nand_choose_interface_config(struct nand_chip *chip) in nand_choose_interface_config()
1089 static int nand_fill_column_cycles(struct nand_chip *chip, u8 *addrs, in nand_fill_column_cycles()
1131 static int nand_sp_exec_read_page_op(struct nand_chip *chip, unsigned int page, in nand_sp_exec_read_page_op()
1174 static int nand_lp_exec_read_page_op(struct nand_chip *chip, unsigned int page, in nand_lp_exec_read_page_op()
1211 static int nand_lp_exec_cont_read_page_op(struct nand_chip *chip, unsigned int page, in nand_lp_exec_cont_read_page_op()
1271 static bool rawnand_cont_read_ongoing(struct nand_chip *chip, unsigned int page) in rawnand_cont_read_ongoing()
1291 int nand_read_page_op(struct nand_chip *chip, unsigned int page, in nand_read_page_op()
1338 int nand_read_param_page_op(struct nand_chip *chip, u8 page, void *buf, in nand_read_param_page_op()
1387 int nand_change_read_column_op(struct nand_chip *chip, in nand_change_read_column_op()
1451 int nand_read_oob_op(struct nand_chip *chip, unsigned int page, in nand_read_oob_op()
1475 static int nand_exec_prog_page_op(struct nand_chip *chip, unsigned int page, in nand_exec_prog_page_op()
1554 int nand_prog_page_begin_op(struct nand_chip *chip, unsigned int page, in nand_prog_page_begin_op()
1588 int nand_prog_page_end_op(struct nand_chip *chip) in nand_prog_page_end_op()
1640 int nand_prog_page_op(struct nand_chip *chip, unsigned int page, in nand_prog_page_op()
1695 int nand_change_write_column_op(struct nand_chip *chip, in nand_change_write_column_op()
1758 int nand_readid_op(struct nand_chip *chip, u8 addr, void *buf, in nand_readid_op()
1824 int nand_status_op(struct nand_chip *chip, u8 *status) in nand_status_op()
1873 int nand_exit_status_op(struct nand_chip *chip) in nand_exit_status_op()
1901 int nand_erase_op(struct nand_chip *chip, unsigned int eraseblock) in nand_erase_op()
1962 static int nand_set_features_op(struct nand_chip *chip, u8 feature, in nand_set_features_op()
2012 static int nand_get_features_op(struct nand_chip *chip, u8 feature, in nand_get_features_op()
2055 static int nand_wait_rdy_op(struct nand_chip *chip, unsigned int timeout_ms, in nand_wait_rdy_op()
2087 int nand_reset_op(struct nand_chip *chip) in nand_reset_op()
2124 int nand_read_data_op(struct nand_chip *chip, void *buf, unsigned int len, in nand_read_data_op()
2207 int nand_write_data_op(struct nand_chip *chip, const void *buf, in nand_write_data_op()
2459 int nand_op_parser_exec_op(struct nand_chip *chip, in nand_op_parser_exec_op()
2661 int nand_reset(struct nand_chip *chip, int chipnr) in nand_reset()
2697 int nand_get_features(struct nand_chip *chip, int addr, in nand_get_features()
2718 int nand_set_features(struct nand_chip *chip, int addr, in nand_set_features()
2870 int nand_read_page_raw_notsupp(struct nand_chip *chip, u8 *buf, in nand_read_page_raw_notsupp()
2885 int nand_read_page_raw(struct nand_chip *chip, uint8_t *buf, int oob_required, in nand_read_page_raw()
2921 int nand_monolithic_read_page_raw(struct nand_chip *chip, u8 *buf, in nand_monolithic_read_page_raw()
2956 static int nand_read_page_raw_syndrome(struct nand_chip *chip, uint8_t *buf, in nand_read_page_raw_syndrome()
3018 static int nand_read_page_swecc(struct nand_chip *chip, uint8_t *buf, in nand_read_page_swecc()
3065 static int nand_read_subpage(struct nand_chip *chip, uint32_t data_offs, in nand_read_subpage()
3177 static int nand_read_page_hwecc(struct nand_chip *chip, uint8_t *buf, in nand_read_page_hwecc()
3250 int nand_read_page_hwecc_oob_first(struct nand_chip *chip, uint8_t *buf, in nand_read_page_hwecc_oob_first()
3316 static int nand_read_page_syndrome(struct nand_chip *chip, uint8_t *buf, in nand_read_page_syndrome()
3405 static uint8_t *nand_transfer_oob(struct nand_chip *chip, uint8_t *oob, in nand_transfer_oob()
3430 static void rawnand_enable_cont_reads(struct nand_chip *chip, unsigned int page, in rawnand_enable_cont_reads()
3460 static int nand_setup_read_retry(struct nand_chip *chip, int retry_mode) in nand_setup_read_retry()
3473 static void nand_wait_readrdy(struct nand_chip *chip) in nand_wait_readrdy()
3492 static int nand_do_read_ops(struct nand_chip *chip, loff_t from, in nand_do_read_ops()
3673 int nand_read_oob_std(struct nand_chip *chip, int page) in nand_read_oob_std()
3687 static int nand_read_oob_syndrome(struct nand_chip *chip, int page) in nand_read_oob_syndrome()
3740 int nand_write_oob_std(struct nand_chip *chip, int page) in nand_write_oob_std()
3755 static int nand_write_oob_syndrome(struct nand_chip *chip, int page) in nand_write_oob_syndrome()
3830 static int nand_do_read_oob(struct nand_chip *chip, loff_t from, in nand_do_read_oob()
3915 struct nand_chip *chip = mtd_to_nand(mtd); in nand_read_oob()
3955 int nand_write_page_raw_notsupp(struct nand_chip *chip, const u8 *buf, in nand_write_page_raw_notsupp()
3970 int nand_write_page_raw(struct nand_chip *chip, const uint8_t *buf, in nand_write_page_raw()
4007 int nand_monolithic_write_page_raw(struct nand_chip *chip, const u8 *buf, in nand_monolithic_write_page_raw()
4036 static int nand_write_page_raw_syndrome(struct nand_chip *chip, in nand_write_page_raw_syndrome()
4098 static int nand_write_page_swecc(struct nand_chip *chip, const uint8_t *buf, in nand_write_page_swecc()
4127 static int nand_write_page_hwecc(struct nand_chip *chip, const uint8_t *buf, in nand_write_page_hwecc()
4173 static int nand_write_subpage_hwecc(struct nand_chip *chip, uint32_t offset, in nand_write_subpage_hwecc()
4244 static int nand_write_page_syndrome(struct nand_chip *chip, const uint8_t *buf, in nand_write_page_syndrome()
4314 static int nand_write_page(struct nand_chip *chip, uint32_t offset, in nand_write_page()
4352 static int nand_do_write_ops(struct nand_chip *chip, loff_t to, in nand_do_write_ops()
4491 struct nand_chip *chip = mtd_to_nand(mtd); in panic_nand_write()
4521 struct nand_chip *chip = mtd_to_nand(mtd); in nand_write_oob()
4568 int nand_erase_nand(struct nand_chip *chip, struct erase_info *instr, in nand_erase_nand()
4669 struct nand_chip *chip = mtd_to_nand(mtd); in nand_sync()
4686 struct nand_chip *chip = mtd_to_nand(mtd); in nand_block_isbad()
4731 struct nand_chip *chip = mtd_to_nand(mtd); in nand_suspend()
4750 struct nand_chip *chip = mtd_to_nand(mtd); in nand_resume()
4784 struct nand_chip *chip = mtd_to_nand(mtd); in nand_lock()
4800 struct nand_chip *chip = mtd_to_nand(mtd); in nand_unlock()
4809 static void nand_set_defaults(struct nand_chip *chip) in nand_set_defaults()
4915 void nand_decode_ext_id(struct nand_chip *chip) in nand_decode_ext_id()
4953 static void nand_decode_id(struct nand_chip *chip, struct nand_flash_dev *type) in nand_decode_id()
4976 static void nand_decode_bbm_options(struct nand_chip *chip) in nand_decode_bbm_options()
4992 static bool find_full_id_nand(struct nand_chip *chip, in find_full_id_nand()
5036 static void nand_manufacturer_detect(struct nand_chip *chip) in nand_manufacturer_detect()
5062 static int nand_manufacturer_init(struct nand_chip *chip) in nand_manufacturer_init()
5077 static void nand_manufacturer_cleanup(struct nand_chip *chip) in nand_manufacturer_cleanup()
5091 static void rawnand_check_data_only_read_support(struct nand_chip *chip) in rawnand_check_data_only_read_support()
5098 static void rawnand_early_check_supported_ops(struct nand_chip *chip) in rawnand_early_check_supported_ops()
5109 static void rawnand_check_cont_read_support(struct nand_chip *chip) in rawnand_check_cont_read_support()
5124 static void rawnand_late_check_supported_ops(struct nand_chip *chip) in rawnand_late_check_supported_ops()
5138 static int nand_detect(struct nand_chip *chip, struct nand_flash_dev *type) in nand_detect()
5409 static void of_get_nand_ecc_legacy_user_config(struct nand_chip *chip) in of_get_nand_ecc_legacy_user_config()
5424 static int of_get_nand_bus_width(struct nand_chip *chip) in of_get_nand_bus_width()
5444 static int of_get_nand_secure_regions(struct nand_chip *chip) in of_get_nand_secure_regions()
5512 static int rawnand_dt_init(struct nand_chip *chip) in rawnand_dt_init()
5572 static int nand_scan_ident(struct nand_chip *chip, unsigned int maxchips, in nand_scan_ident()
5653 static void nand_scan_ident_cleanup(struct nand_chip *chip) in nand_scan_ident_cleanup()
5659 int rawnand_sw_hamming_init(struct nand_chip *chip) in rawnand_sw_hamming_init()
5689 int rawnand_sw_hamming_calculate(struct nand_chip *chip, in rawnand_sw_hamming_calculate()
5699 int rawnand_sw_hamming_correct(struct nand_chip *chip, in rawnand_sw_hamming_correct()
5710 void rawnand_sw_hamming_cleanup(struct nand_chip *chip) in rawnand_sw_hamming_cleanup()
5718 int rawnand_sw_bch_init(struct nand_chip *chip) in rawnand_sw_bch_init()
5743 static int rawnand_sw_bch_calculate(struct nand_chip *chip, in rawnand_sw_bch_calculate()
5752 int rawnand_sw_bch_correct(struct nand_chip *chip, unsigned char *buf, in rawnand_sw_bch_correct()
5761 void rawnand_sw_bch_cleanup(struct nand_chip *chip) in rawnand_sw_bch_cleanup()
5769 static int nand_set_ecc_on_host_ops(struct nand_chip *chip) in nand_set_ecc_on_host_ops()
5828 static int nand_set_ecc_soft_ops(struct nand_chip *chip) in nand_set_ecc_soft_ops()
5916 nand_check_ecc_caps(struct nand_chip *chip, in nand_check_ecc_caps()
5970 nand_match_ecc_req(struct nand_chip *chip, in nand_match_ecc_req()
6053 nand_maximize_ecc(struct nand_chip *chip, in nand_maximize_ecc()
6131 int nand_ecc_choose_conf(struct nand_chip *chip, in nand_ecc_choose_conf()
6155 struct nand_chip *chip = container_of(nand, struct nand_chip, in rawnand_erase()
6172 struct nand_chip *chip = container_of(nand, struct nand_chip, in rawnand_markbad()
6180 struct nand_chip *chip = container_of(nand, struct nand_chip, in rawnand_isbad()
6205 static int nand_scan_tail(struct nand_chip *chip) in nand_scan_tail()
6514 static int nand_attach(struct nand_chip *chip) in nand_attach()
6522 static void nand_detach(struct nand_chip *chip) in nand_detach()
6538 int nand_scan_with_ids(struct nand_chip *chip, unsigned int maxchips, in nand_scan_with_ids()
6573 void nand_cleanup(struct nand_chip *chip) in nand_cleanup()