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()
1224 int nand_read_page_op(struct nand_chip *chip, unsigned int page, in nand_read_page_op()
1265 int nand_read_param_page_op(struct nand_chip *chip, u8 page, void *buf, in nand_read_param_page_op()
1314 int nand_change_read_column_op(struct nand_chip *chip, in nand_change_read_column_op()
1378 int nand_read_oob_op(struct nand_chip *chip, unsigned int page, in nand_read_oob_op()
1402 static int nand_exec_prog_page_op(struct nand_chip *chip, unsigned int page, in nand_exec_prog_page_op()
1481 int nand_prog_page_begin_op(struct nand_chip *chip, unsigned int page, in nand_prog_page_begin_op()
1515 int nand_prog_page_end_op(struct nand_chip *chip) in nand_prog_page_end_op()
1567 int nand_prog_page_op(struct nand_chip *chip, unsigned int page, in nand_prog_page_op()
1622 int nand_change_write_column_op(struct nand_chip *chip, in nand_change_write_column_op()
1685 int nand_readid_op(struct nand_chip *chip, u8 addr, void *buf, in nand_readid_op()
1751 int nand_status_op(struct nand_chip *chip, u8 *status) in nand_status_op()
1800 int nand_exit_status_op(struct nand_chip *chip) in nand_exit_status_op()
1827 int nand_erase_op(struct nand_chip *chip, unsigned int eraseblock) in nand_erase_op()
1888 static int nand_set_features_op(struct nand_chip *chip, u8 feature, in nand_set_features_op()
1938 static int nand_get_features_op(struct nand_chip *chip, u8 feature, in nand_get_features_op()
1981 static int nand_wait_rdy_op(struct nand_chip *chip, unsigned int timeout_ms, in nand_wait_rdy_op()
2013 int nand_reset_op(struct nand_chip *chip) in nand_reset_op()
2050 int nand_read_data_op(struct nand_chip *chip, void *buf, unsigned int len, in nand_read_data_op()
2133 int nand_write_data_op(struct nand_chip *chip, const void *buf, in nand_write_data_op()
2385 int nand_op_parser_exec_op(struct nand_chip *chip, in nand_op_parser_exec_op()
2587 int nand_reset(struct nand_chip *chip, int chipnr) in nand_reset()
2623 int nand_get_features(struct nand_chip *chip, int addr, in nand_get_features()
2644 int nand_set_features(struct nand_chip *chip, int addr, in nand_set_features()
2796 int nand_read_page_raw_notsupp(struct nand_chip *chip, u8 *buf, in nand_read_page_raw_notsupp()
2811 int nand_read_page_raw(struct nand_chip *chip, uint8_t *buf, int oob_required, in nand_read_page_raw()
2847 int nand_monolithic_read_page_raw(struct nand_chip *chip, u8 *buf, in nand_monolithic_read_page_raw()
2882 static int nand_read_page_raw_syndrome(struct nand_chip *chip, uint8_t *buf, in nand_read_page_raw_syndrome()
2944 static int nand_read_page_swecc(struct nand_chip *chip, uint8_t *buf, in nand_read_page_swecc()
2991 static int nand_read_subpage(struct nand_chip *chip, uint32_t data_offs, in nand_read_subpage()
3103 static int nand_read_page_hwecc(struct nand_chip *chip, uint8_t *buf, in nand_read_page_hwecc()
3176 int nand_read_page_hwecc_oob_first(struct nand_chip *chip, uint8_t *buf, in nand_read_page_hwecc_oob_first()
3242 static int nand_read_page_syndrome(struct nand_chip *chip, uint8_t *buf, in nand_read_page_syndrome()
3331 static uint8_t *nand_transfer_oob(struct nand_chip *chip, uint8_t *oob, in nand_transfer_oob()
3365 static int nand_setup_read_retry(struct nand_chip *chip, int retry_mode) in nand_setup_read_retry()
3378 static void nand_wait_readrdy(struct nand_chip *chip) in nand_wait_readrdy()
3397 static int nand_do_read_ops(struct nand_chip *chip, loff_t from, in nand_do_read_ops()
3576 int nand_read_oob_std(struct nand_chip *chip, int page) in nand_read_oob_std()
3590 static int nand_read_oob_syndrome(struct nand_chip *chip, int page) in nand_read_oob_syndrome()
3643 int nand_write_oob_std(struct nand_chip *chip, int page) in nand_write_oob_std()
3658 static int nand_write_oob_syndrome(struct nand_chip *chip, int page) in nand_write_oob_syndrome()
3733 static int nand_do_read_oob(struct nand_chip *chip, loff_t from, in nand_do_read_oob()
3818 struct nand_chip *chip = mtd_to_nand(mtd); in nand_read_oob()
3858 int nand_write_page_raw_notsupp(struct nand_chip *chip, const u8 *buf, in nand_write_page_raw_notsupp()
3873 int nand_write_page_raw(struct nand_chip *chip, const uint8_t *buf, in nand_write_page_raw()
3910 int nand_monolithic_write_page_raw(struct nand_chip *chip, const u8 *buf, in nand_monolithic_write_page_raw()
3939 static int nand_write_page_raw_syndrome(struct nand_chip *chip, in nand_write_page_raw_syndrome()
4001 static int nand_write_page_swecc(struct nand_chip *chip, const uint8_t *buf, in nand_write_page_swecc()
4030 static int nand_write_page_hwecc(struct nand_chip *chip, const uint8_t *buf, in nand_write_page_hwecc()
4076 static int nand_write_subpage_hwecc(struct nand_chip *chip, uint32_t offset, in nand_write_subpage_hwecc()
4147 static int nand_write_page_syndrome(struct nand_chip *chip, const uint8_t *buf, in nand_write_page_syndrome()
4217 static int nand_write_page(struct nand_chip *chip, uint32_t offset, in nand_write_page()
4255 static int nand_do_write_ops(struct nand_chip *chip, loff_t to, in nand_do_write_ops()
4394 struct nand_chip *chip = mtd_to_nand(mtd); in panic_nand_write()
4424 struct nand_chip *chip = mtd_to_nand(mtd); in nand_write_oob()
4471 int nand_erase_nand(struct nand_chip *chip, struct erase_info *instr, in nand_erase_nand()
4572 struct nand_chip *chip = mtd_to_nand(mtd); in nand_sync()
4589 struct nand_chip *chip = mtd_to_nand(mtd); in nand_block_isbad()
4634 struct nand_chip *chip = mtd_to_nand(mtd); in nand_suspend()
4653 struct nand_chip *chip = mtd_to_nand(mtd); in nand_resume()
4687 struct nand_chip *chip = mtd_to_nand(mtd); in nand_lock()
4703 struct nand_chip *chip = mtd_to_nand(mtd); in nand_unlock()
4712 static void nand_set_defaults(struct nand_chip *chip) in nand_set_defaults()
4818 void nand_decode_ext_id(struct nand_chip *chip) in nand_decode_ext_id()
4856 static void nand_decode_id(struct nand_chip *chip, struct nand_flash_dev *type) in nand_decode_id()
4879 static void nand_decode_bbm_options(struct nand_chip *chip) in nand_decode_bbm_options()
4895 static bool find_full_id_nand(struct nand_chip *chip, in find_full_id_nand()
4939 static void nand_manufacturer_detect(struct nand_chip *chip) in nand_manufacturer_detect()
4965 static int nand_manufacturer_init(struct nand_chip *chip) in nand_manufacturer_init()
4980 static void nand_manufacturer_cleanup(struct nand_chip *chip) in nand_manufacturer_cleanup()
4997 static int nand_detect(struct nand_chip *chip, struct nand_flash_dev *type) in nand_detect()
5266 static void of_get_nand_ecc_legacy_user_config(struct nand_chip *chip) in of_get_nand_ecc_legacy_user_config()
5281 static int of_get_nand_bus_width(struct nand_chip *chip) in of_get_nand_bus_width()
5301 static int of_get_nand_secure_regions(struct nand_chip *chip) in of_get_nand_secure_regions()
5369 static int rawnand_dt_init(struct nand_chip *chip) in rawnand_dt_init()
5429 static int nand_scan_ident(struct nand_chip *chip, unsigned int maxchips, in nand_scan_ident()
5510 static void nand_scan_ident_cleanup(struct nand_chip *chip) in nand_scan_ident_cleanup()
5516 int rawnand_sw_hamming_init(struct nand_chip *chip) in rawnand_sw_hamming_init()
5546 int rawnand_sw_hamming_calculate(struct nand_chip *chip, in rawnand_sw_hamming_calculate()
5556 int rawnand_sw_hamming_correct(struct nand_chip *chip, in rawnand_sw_hamming_correct()
5567 void rawnand_sw_hamming_cleanup(struct nand_chip *chip) in rawnand_sw_hamming_cleanup()
5575 int rawnand_sw_bch_init(struct nand_chip *chip) in rawnand_sw_bch_init()
5600 static int rawnand_sw_bch_calculate(struct nand_chip *chip, in rawnand_sw_bch_calculate()
5609 int rawnand_sw_bch_correct(struct nand_chip *chip, unsigned char *buf, in rawnand_sw_bch_correct()
5618 void rawnand_sw_bch_cleanup(struct nand_chip *chip) in rawnand_sw_bch_cleanup()
5626 static int nand_set_ecc_on_host_ops(struct nand_chip *chip) in nand_set_ecc_on_host_ops()
5685 static int nand_set_ecc_soft_ops(struct nand_chip *chip) in nand_set_ecc_soft_ops()
5773 nand_check_ecc_caps(struct nand_chip *chip, in nand_check_ecc_caps()
5827 nand_match_ecc_req(struct nand_chip *chip, in nand_match_ecc_req()
5910 nand_maximize_ecc(struct nand_chip *chip, in nand_maximize_ecc()
5988 int nand_ecc_choose_conf(struct nand_chip *chip, in nand_ecc_choose_conf()
6012 struct nand_chip *chip = container_of(nand, struct nand_chip, in rawnand_erase()
6029 struct nand_chip *chip = container_of(nand, struct nand_chip, in rawnand_markbad()
6037 struct nand_chip *chip = container_of(nand, struct nand_chip, in rawnand_isbad()
6062 static int nand_scan_tail(struct nand_chip *chip) in nand_scan_tail()
6369 static int nand_attach(struct nand_chip *chip) in nand_attach()
6377 static void nand_detach(struct nand_chip *chip) in nand_detach()
6393 int nand_scan_with_ids(struct nand_chip *chip, unsigned int maxchips, in nand_scan_with_ids()
6428 void nand_cleanup(struct nand_chip *chip) in nand_cleanup()