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()
1900 int nand_erase_op(struct nand_chip *chip, unsigned int eraseblock) in nand_erase_op()
1961 static int nand_set_features_op(struct nand_chip *chip, u8 feature, in nand_set_features_op()
2011 static int nand_get_features_op(struct nand_chip *chip, u8 feature, in nand_get_features_op()
2054 static int nand_wait_rdy_op(struct nand_chip *chip, unsigned int timeout_ms, in nand_wait_rdy_op()
2086 int nand_reset_op(struct nand_chip *chip) in nand_reset_op()
2123 int nand_read_data_op(struct nand_chip *chip, void *buf, unsigned int len, in nand_read_data_op()
2206 int nand_write_data_op(struct nand_chip *chip, const void *buf, in nand_write_data_op()
2458 int nand_op_parser_exec_op(struct nand_chip *chip, in nand_op_parser_exec_op()
2660 int nand_reset(struct nand_chip *chip, int chipnr) in nand_reset()
2696 int nand_get_features(struct nand_chip *chip, int addr, in nand_get_features()
2717 int nand_set_features(struct nand_chip *chip, int addr, in nand_set_features()
2869 int nand_read_page_raw_notsupp(struct nand_chip *chip, u8 *buf, in nand_read_page_raw_notsupp()
2884 int nand_read_page_raw(struct nand_chip *chip, uint8_t *buf, int oob_required, in nand_read_page_raw()
2920 int nand_monolithic_read_page_raw(struct nand_chip *chip, u8 *buf, in nand_monolithic_read_page_raw()
2955 static int nand_read_page_raw_syndrome(struct nand_chip *chip, uint8_t *buf, in nand_read_page_raw_syndrome()
3017 static int nand_read_page_swecc(struct nand_chip *chip, uint8_t *buf, in nand_read_page_swecc()
3064 static int nand_read_subpage(struct nand_chip *chip, uint32_t data_offs, in nand_read_subpage()
3176 static int nand_read_page_hwecc(struct nand_chip *chip, uint8_t *buf, in nand_read_page_hwecc()
3249 int nand_read_page_hwecc_oob_first(struct nand_chip *chip, uint8_t *buf, in nand_read_page_hwecc_oob_first()
3315 static int nand_read_page_syndrome(struct nand_chip *chip, uint8_t *buf, in nand_read_page_syndrome()
3404 static uint8_t *nand_transfer_oob(struct nand_chip *chip, uint8_t *oob, in nand_transfer_oob()
3429 static void rawnand_enable_cont_reads(struct nand_chip *chip, unsigned int page, in rawnand_enable_cont_reads()
3459 static int nand_setup_read_retry(struct nand_chip *chip, int retry_mode) in nand_setup_read_retry()
3472 static void nand_wait_readrdy(struct nand_chip *chip) in nand_wait_readrdy()
3491 static int nand_do_read_ops(struct nand_chip *chip, loff_t from, in nand_do_read_ops()
3672 int nand_read_oob_std(struct nand_chip *chip, int page) in nand_read_oob_std()
3686 static int nand_read_oob_syndrome(struct nand_chip *chip, int page) in nand_read_oob_syndrome()
3739 int nand_write_oob_std(struct nand_chip *chip, int page) in nand_write_oob_std()
3754 static int nand_write_oob_syndrome(struct nand_chip *chip, int page) in nand_write_oob_syndrome()
3829 static int nand_do_read_oob(struct nand_chip *chip, loff_t from, in nand_do_read_oob()
3914 struct nand_chip *chip = mtd_to_nand(mtd); in nand_read_oob()
3954 int nand_write_page_raw_notsupp(struct nand_chip *chip, const u8 *buf, in nand_write_page_raw_notsupp()
3969 int nand_write_page_raw(struct nand_chip *chip, const uint8_t *buf, in nand_write_page_raw()
4006 int nand_monolithic_write_page_raw(struct nand_chip *chip, const u8 *buf, in nand_monolithic_write_page_raw()
4035 static int nand_write_page_raw_syndrome(struct nand_chip *chip, in nand_write_page_raw_syndrome()
4097 static int nand_write_page_swecc(struct nand_chip *chip, const uint8_t *buf, in nand_write_page_swecc()
4126 static int nand_write_page_hwecc(struct nand_chip *chip, const uint8_t *buf, in nand_write_page_hwecc()
4172 static int nand_write_subpage_hwecc(struct nand_chip *chip, uint32_t offset, in nand_write_subpage_hwecc()
4243 static int nand_write_page_syndrome(struct nand_chip *chip, const uint8_t *buf, in nand_write_page_syndrome()
4313 static int nand_write_page(struct nand_chip *chip, uint32_t offset, in nand_write_page()
4351 static int nand_do_write_ops(struct nand_chip *chip, loff_t to, in nand_do_write_ops()
4490 struct nand_chip *chip = mtd_to_nand(mtd); in panic_nand_write()
4520 struct nand_chip *chip = mtd_to_nand(mtd); in nand_write_oob()
4567 int nand_erase_nand(struct nand_chip *chip, struct erase_info *instr, in nand_erase_nand()
4668 struct nand_chip *chip = mtd_to_nand(mtd); in nand_sync()
4685 struct nand_chip *chip = mtd_to_nand(mtd); in nand_block_isbad()
4730 struct nand_chip *chip = mtd_to_nand(mtd); in nand_suspend()
4749 struct nand_chip *chip = mtd_to_nand(mtd); in nand_resume()
4783 struct nand_chip *chip = mtd_to_nand(mtd); in nand_lock()
4799 struct nand_chip *chip = mtd_to_nand(mtd); in nand_unlock()
4808 static void nand_set_defaults(struct nand_chip *chip) in nand_set_defaults()
4914 void nand_decode_ext_id(struct nand_chip *chip) in nand_decode_ext_id()
4952 static void nand_decode_id(struct nand_chip *chip, struct nand_flash_dev *type) in nand_decode_id()
4975 static void nand_decode_bbm_options(struct nand_chip *chip) in nand_decode_bbm_options()
4991 static bool find_full_id_nand(struct nand_chip *chip, in find_full_id_nand()
5035 static void nand_manufacturer_detect(struct nand_chip *chip) in nand_manufacturer_detect()
5061 static int nand_manufacturer_init(struct nand_chip *chip) in nand_manufacturer_init()
5076 static void nand_manufacturer_cleanup(struct nand_chip *chip) in nand_manufacturer_cleanup()
5090 static void rawnand_check_data_only_read_support(struct nand_chip *chip) in rawnand_check_data_only_read_support()
5097 static void rawnand_early_check_supported_ops(struct nand_chip *chip) in rawnand_early_check_supported_ops()
5108 static void rawnand_check_cont_read_support(struct nand_chip *chip) in rawnand_check_cont_read_support()
5120 static void rawnand_late_check_supported_ops(struct nand_chip *chip) in rawnand_late_check_supported_ops()
5134 static int nand_detect(struct nand_chip *chip, struct nand_flash_dev *type) in nand_detect()
5405 static void of_get_nand_ecc_legacy_user_config(struct nand_chip *chip) in of_get_nand_ecc_legacy_user_config()
5420 static int of_get_nand_bus_width(struct nand_chip *chip) in of_get_nand_bus_width()
5440 static int of_get_nand_secure_regions(struct nand_chip *chip) in of_get_nand_secure_regions()
5508 static int rawnand_dt_init(struct nand_chip *chip) in rawnand_dt_init()
5568 static int nand_scan_ident(struct nand_chip *chip, unsigned int maxchips, in nand_scan_ident()
5649 static void nand_scan_ident_cleanup(struct nand_chip *chip) in nand_scan_ident_cleanup()
5655 int rawnand_sw_hamming_init(struct nand_chip *chip) in rawnand_sw_hamming_init()
5685 int rawnand_sw_hamming_calculate(struct nand_chip *chip, in rawnand_sw_hamming_calculate()
5695 int rawnand_sw_hamming_correct(struct nand_chip *chip, in rawnand_sw_hamming_correct()
5706 void rawnand_sw_hamming_cleanup(struct nand_chip *chip) in rawnand_sw_hamming_cleanup()
5714 int rawnand_sw_bch_init(struct nand_chip *chip) in rawnand_sw_bch_init()
5739 static int rawnand_sw_bch_calculate(struct nand_chip *chip, in rawnand_sw_bch_calculate()
5748 int rawnand_sw_bch_correct(struct nand_chip *chip, unsigned char *buf, in rawnand_sw_bch_correct()
5757 void rawnand_sw_bch_cleanup(struct nand_chip *chip) in rawnand_sw_bch_cleanup()
5765 static int nand_set_ecc_on_host_ops(struct nand_chip *chip) in nand_set_ecc_on_host_ops()
5824 static int nand_set_ecc_soft_ops(struct nand_chip *chip) in nand_set_ecc_soft_ops()
5912 nand_check_ecc_caps(struct nand_chip *chip, in nand_check_ecc_caps()
5966 nand_match_ecc_req(struct nand_chip *chip, in nand_match_ecc_req()
6049 nand_maximize_ecc(struct nand_chip *chip, in nand_maximize_ecc()
6127 int nand_ecc_choose_conf(struct nand_chip *chip, in nand_ecc_choose_conf()
6151 struct nand_chip *chip = container_of(nand, struct nand_chip, in rawnand_erase()
6168 struct nand_chip *chip = container_of(nand, struct nand_chip, in rawnand_markbad()
6176 struct nand_chip *chip = container_of(nand, struct nand_chip, in rawnand_isbad()
6201 static int nand_scan_tail(struct nand_chip *chip) in nand_scan_tail()
6510 static int nand_attach(struct nand_chip *chip) in nand_attach()
6518 static void nand_detach(struct nand_chip *chip) in nand_detach()
6534 int nand_scan_with_ids(struct nand_chip *chip, unsigned int maxchips, in nand_scan_with_ids()
6569 void nand_cleanup(struct nand_chip *chip) in nand_cleanup()