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()
338 static int nand_get_device(struct nand_chip *chip) in nand_get_device()
357 static int nand_check_wp(struct nand_chip *chip) in nand_check_wp()
381 static uint8_t *nand_fill_oob(struct nand_chip *chip, uint8_t *oob, size_t len, in nand_fill_oob()
420 static int nand_do_write_oob(struct nand_chip *chip, loff_t to, in nand_do_write_oob()
495 static int nand_default_block_markbad(struct nand_chip *chip, loff_t ofs) in nand_default_block_markbad()
534 int nand_markbad_bbm(struct nand_chip *chip, loff_t ofs) in nand_markbad_bbm()
561 static int nand_block_markbad_lowlevel(struct nand_chip *chip, loff_t ofs) in nand_block_markbad_lowlevel()
606 struct nand_chip *chip = mtd_to_nand(mtd); in nand_block_isreserved()
623 static int nand_block_checkbad(struct nand_chip *chip, loff_t ofs, int allowbbt) in nand_block_checkbad()
649 int nand_soft_waitrdy(struct nand_chip *chip, unsigned long timeout_ms) in nand_soft_waitrdy()
717 int nand_gpio_waitrdy(struct nand_chip *chip, struct gpio_desc *gpiod, in nand_gpio_waitrdy()
748 void panic_nand_wait(struct nand_chip *chip, unsigned long timeo) in panic_nand_wait()
771 static bool nand_supports_get_features(struct nand_chip *chip, int addr) in nand_supports_get_features()
777 static bool nand_supports_set_features(struct nand_chip *chip, int addr) in nand_supports_set_features()
792 static int nand_reset_interface(struct nand_chip *chip, int chipnr) in nand_reset_interface()
833 static int nand_setup_interface(struct nand_chip *chip, int chipnr) in nand_setup_interface()
924 int nand_choose_best_sdr_timings(struct nand_chip *chip, in nand_choose_best_sdr_timings()
975 int nand_choose_best_nvddr_timings(struct nand_chip *chip, in nand_choose_best_nvddr_timings()
1025 static int nand_choose_best_timings(struct nand_chip *chip, in nand_choose_best_timings()
1052 static int nand_choose_interface_config(struct nand_chip *chip) in nand_choose_interface_config()
1087 static int nand_fill_column_cycles(struct nand_chip *chip, u8 *addrs, in nand_fill_column_cycles()
1129 static int nand_sp_exec_read_page_op(struct nand_chip *chip, unsigned int page, in nand_sp_exec_read_page_op()
1172 static int nand_lp_exec_read_page_op(struct nand_chip *chip, unsigned int page, in nand_lp_exec_read_page_op()
1222 int nand_read_page_op(struct nand_chip *chip, unsigned int page, in nand_read_page_op()
1263 int nand_read_param_page_op(struct nand_chip *chip, u8 page, void *buf, in nand_read_param_page_op()
1312 int nand_change_read_column_op(struct nand_chip *chip, in nand_change_read_column_op()
1376 int nand_read_oob_op(struct nand_chip *chip, unsigned int page, in nand_read_oob_op()
1400 static int nand_exec_prog_page_op(struct nand_chip *chip, unsigned int page, in nand_exec_prog_page_op()
1479 int nand_prog_page_begin_op(struct nand_chip *chip, unsigned int page, in nand_prog_page_begin_op()
1513 int nand_prog_page_end_op(struct nand_chip *chip) in nand_prog_page_end_op()
1565 int nand_prog_page_op(struct nand_chip *chip, unsigned int page, in nand_prog_page_op()
1620 int nand_change_write_column_op(struct nand_chip *chip, in nand_change_write_column_op()
1683 int nand_readid_op(struct nand_chip *chip, u8 addr, void *buf, in nand_readid_op()
1749 int nand_status_op(struct nand_chip *chip, u8 *status) in nand_status_op()
1798 int nand_exit_status_op(struct nand_chip *chip) in nand_exit_status_op()
1825 int nand_erase_op(struct nand_chip *chip, unsigned int eraseblock) in nand_erase_op()
1886 static int nand_set_features_op(struct nand_chip *chip, u8 feature, in nand_set_features_op()
1936 static int nand_get_features_op(struct nand_chip *chip, u8 feature, in nand_get_features_op()
1979 static int nand_wait_rdy_op(struct nand_chip *chip, unsigned int timeout_ms, in nand_wait_rdy_op()
2011 int nand_reset_op(struct nand_chip *chip) in nand_reset_op()
2048 int nand_read_data_op(struct nand_chip *chip, void *buf, unsigned int len, in nand_read_data_op()
2131 int nand_write_data_op(struct nand_chip *chip, const void *buf, in nand_write_data_op()
2383 int nand_op_parser_exec_op(struct nand_chip *chip, in nand_op_parser_exec_op()
2585 int nand_reset(struct nand_chip *chip, int chipnr) in nand_reset()
2621 int nand_get_features(struct nand_chip *chip, int addr, in nand_get_features()
2642 int nand_set_features(struct nand_chip *chip, int addr, in nand_set_features()
2794 int nand_read_page_raw_notsupp(struct nand_chip *chip, u8 *buf, in nand_read_page_raw_notsupp()
2809 int nand_read_page_raw(struct nand_chip *chip, uint8_t *buf, int oob_required, in nand_read_page_raw()
2845 int nand_monolithic_read_page_raw(struct nand_chip *chip, u8 *buf, in nand_monolithic_read_page_raw()
2880 static int nand_read_page_raw_syndrome(struct nand_chip *chip, uint8_t *buf, in nand_read_page_raw_syndrome()
2942 static int nand_read_page_swecc(struct nand_chip *chip, uint8_t *buf, in nand_read_page_swecc()
2989 static int nand_read_subpage(struct nand_chip *chip, uint32_t data_offs, in nand_read_subpage()
3101 static int nand_read_page_hwecc(struct nand_chip *chip, uint8_t *buf, in nand_read_page_hwecc()
3173 static int nand_read_page_syndrome(struct nand_chip *chip, uint8_t *buf, in nand_read_page_syndrome()
3262 static uint8_t *nand_transfer_oob(struct nand_chip *chip, uint8_t *oob, in nand_transfer_oob()
3296 static int nand_setup_read_retry(struct nand_chip *chip, int retry_mode) in nand_setup_read_retry()
3309 static void nand_wait_readrdy(struct nand_chip *chip) in nand_wait_readrdy()
3328 static int nand_do_read_ops(struct nand_chip *chip, loff_t from, in nand_do_read_ops()
3507 int nand_read_oob_std(struct nand_chip *chip, int page) in nand_read_oob_std()
3521 static int nand_read_oob_syndrome(struct nand_chip *chip, int page) in nand_read_oob_syndrome()
3574 int nand_write_oob_std(struct nand_chip *chip, int page) in nand_write_oob_std()
3589 static int nand_write_oob_syndrome(struct nand_chip *chip, int page) in nand_write_oob_syndrome()
3664 static int nand_do_read_oob(struct nand_chip *chip, loff_t from, in nand_do_read_oob()
3749 struct nand_chip *chip = mtd_to_nand(mtd); in nand_read_oob()
3781 int nand_write_page_raw_notsupp(struct nand_chip *chip, const u8 *buf, in nand_write_page_raw_notsupp()
3796 int nand_write_page_raw(struct nand_chip *chip, const uint8_t *buf, in nand_write_page_raw()
3833 int nand_monolithic_write_page_raw(struct nand_chip *chip, const u8 *buf, in nand_monolithic_write_page_raw()
3862 static int nand_write_page_raw_syndrome(struct nand_chip *chip, in nand_write_page_raw_syndrome()
3924 static int nand_write_page_swecc(struct nand_chip *chip, const uint8_t *buf, in nand_write_page_swecc()
3953 static int nand_write_page_hwecc(struct nand_chip *chip, const uint8_t *buf, in nand_write_page_hwecc()
3999 static int nand_write_subpage_hwecc(struct nand_chip *chip, uint32_t offset, in nand_write_subpage_hwecc()
4070 static int nand_write_page_syndrome(struct nand_chip *chip, const uint8_t *buf, in nand_write_page_syndrome()
4140 static int nand_write_page(struct nand_chip *chip, uint32_t offset, in nand_write_page()
4178 static int nand_do_write_ops(struct nand_chip *chip, loff_t to, in nand_do_write_ops()
4317 struct nand_chip *chip = mtd_to_nand(mtd); in panic_nand_write()
4347 struct nand_chip *chip = mtd_to_nand(mtd); in nand_write_oob()
4396 int nand_erase_nand(struct nand_chip *chip, struct erase_info *instr, in nand_erase_nand()
4498 struct nand_chip *chip = mtd_to_nand(mtd); in nand_sync()
4515 struct nand_chip *chip = mtd_to_nand(mtd); in nand_block_isbad()
4562 struct nand_chip *chip = mtd_to_nand(mtd); in nand_suspend()
4581 struct nand_chip *chip = mtd_to_nand(mtd); in nand_resume()
4613 struct nand_chip *chip = mtd_to_nand(mtd); in nand_lock()
4629 struct nand_chip *chip = mtd_to_nand(mtd); in nand_unlock()
4638 static void nand_set_defaults(struct nand_chip *chip) in nand_set_defaults()
4744 void nand_decode_ext_id(struct nand_chip *chip) in nand_decode_ext_id()
4782 static void nand_decode_id(struct nand_chip *chip, struct nand_flash_dev *type) in nand_decode_id()
4805 static void nand_decode_bbm_options(struct nand_chip *chip) in nand_decode_bbm_options()
4821 static bool find_full_id_nand(struct nand_chip *chip, in find_full_id_nand()
4865 static void nand_manufacturer_detect(struct nand_chip *chip) in nand_manufacturer_detect()
4891 static int nand_manufacturer_init(struct nand_chip *chip) in nand_manufacturer_init()
4906 static void nand_manufacturer_cleanup(struct nand_chip *chip) in nand_manufacturer_cleanup()
4923 static int nand_detect(struct nand_chip *chip, struct nand_flash_dev *type) in nand_detect()
5192 static void of_get_nand_ecc_legacy_user_config(struct nand_chip *chip) in of_get_nand_ecc_legacy_user_config()
5228 static int of_get_nand_secure_regions(struct nand_chip *chip) in of_get_nand_secure_regions()
5297 static int rawnand_dt_init(struct nand_chip *chip) in rawnand_dt_init()
5355 static int nand_scan_ident(struct nand_chip *chip, unsigned int maxchips, in nand_scan_ident()
5435 static void nand_scan_ident_cleanup(struct nand_chip *chip) in nand_scan_ident_cleanup()
5441 int rawnand_sw_hamming_init(struct nand_chip *chip) in rawnand_sw_hamming_init()
5471 int rawnand_sw_hamming_calculate(struct nand_chip *chip, in rawnand_sw_hamming_calculate()
5481 int rawnand_sw_hamming_correct(struct nand_chip *chip, in rawnand_sw_hamming_correct()
5492 void rawnand_sw_hamming_cleanup(struct nand_chip *chip) in rawnand_sw_hamming_cleanup()
5500 int rawnand_sw_bch_init(struct nand_chip *chip) in rawnand_sw_bch_init()
5525 static int rawnand_sw_bch_calculate(struct nand_chip *chip, in rawnand_sw_bch_calculate()
5534 int rawnand_sw_bch_correct(struct nand_chip *chip, unsigned char *buf, in rawnand_sw_bch_correct()
5543 void rawnand_sw_bch_cleanup(struct nand_chip *chip) in rawnand_sw_bch_cleanup()
5551 static int nand_set_ecc_on_host_ops(struct nand_chip *chip) in nand_set_ecc_on_host_ops()
5610 static int nand_set_ecc_soft_ops(struct nand_chip *chip) in nand_set_ecc_soft_ops()
5698 nand_check_ecc_caps(struct nand_chip *chip, in nand_check_ecc_caps()
5752 nand_match_ecc_req(struct nand_chip *chip, in nand_match_ecc_req()
5835 nand_maximize_ecc(struct nand_chip *chip, in nand_maximize_ecc()
5913 int nand_ecc_choose_conf(struct nand_chip *chip, in nand_ecc_choose_conf()
5937 struct nand_chip *chip = container_of(nand, struct nand_chip, in rawnand_erase()
5954 struct nand_chip *chip = container_of(nand, struct nand_chip, in rawnand_markbad()
5962 struct nand_chip *chip = container_of(nand, struct nand_chip, in rawnand_isbad()
5987 static int nand_scan_tail(struct nand_chip *chip) in nand_scan_tail()
6294 static int nand_attach(struct nand_chip *chip) in nand_attach()
6302 static void nand_detach(struct nand_chip *chip) in nand_detach()
6318 int nand_scan_with_ids(struct nand_chip *chip, unsigned int maxchips, in nand_scan_with_ids()
6353 void nand_cleanup(struct nand_chip *chip) in nand_cleanup()