Lines Matching refs:nand_chip

99 static int check_offs_len(struct nand_chip *chip, loff_t ofs, uint64_t len)  in check_offs_len()
171 void nand_select_target(struct nand_chip *chip, unsigned int cs) in nand_select_target()
194 void nand_deselect_target(struct nand_chip *chip) in nand_deselect_target()
209 static void nand_release_device(struct nand_chip *chip) in nand_release_device()
225 int nand_bbm_get_next_page(struct nand_chip *chip, int page) in nand_bbm_get_next_page()
252 static int nand_block_bad(struct nand_chip *chip, loff_t ofs) in nand_block_bad()
281 static int nand_isbad_bbm(struct nand_chip *chip, loff_t ofs) in nand_isbad_bbm()
300 static int nand_get_device(struct nand_chip *chip) in nand_get_device()
319 static int nand_check_wp(struct nand_chip *chip) in nand_check_wp()
343 static uint8_t *nand_fill_oob(struct nand_chip *chip, uint8_t *oob, size_t len, in nand_fill_oob()
382 static int nand_do_write_oob(struct nand_chip *chip, loff_t to, in nand_do_write_oob()
453 static int nand_default_block_markbad(struct nand_chip *chip, loff_t ofs) in nand_default_block_markbad()
492 int nand_markbad_bbm(struct nand_chip *chip, loff_t ofs) in nand_markbad_bbm()
519 static int nand_block_markbad_lowlevel(struct nand_chip *chip, loff_t ofs) in nand_block_markbad_lowlevel()
564 struct nand_chip *chip = mtd_to_nand(mtd); in nand_block_isreserved()
581 static int nand_block_checkbad(struct nand_chip *chip, loff_t ofs, int allowbbt) in nand_block_checkbad()
607 int nand_soft_waitrdy(struct nand_chip *chip, unsigned long timeout_ms) in nand_soft_waitrdy()
675 int nand_gpio_waitrdy(struct nand_chip *chip, struct gpio_desc *gpiod, in nand_gpio_waitrdy()
706 void panic_nand_wait(struct nand_chip *chip, unsigned long timeo) in panic_nand_wait()
729 static bool nand_supports_get_features(struct nand_chip *chip, int addr) in nand_supports_get_features()
735 static bool nand_supports_set_features(struct nand_chip *chip, int addr) in nand_supports_set_features()
750 static int nand_reset_interface(struct nand_chip *chip, int chipnr) in nand_reset_interface()
791 static int nand_setup_interface(struct nand_chip *chip, int chipnr) in nand_setup_interface()
873 int nand_choose_best_sdr_timings(struct nand_chip *chip, in nand_choose_best_sdr_timings()
927 static int nand_choose_interface_config(struct nand_chip *chip) in nand_choose_interface_config()
962 static int nand_fill_column_cycles(struct nand_chip *chip, u8 *addrs, in nand_fill_column_cycles()
1004 static int nand_sp_exec_read_page_op(struct nand_chip *chip, unsigned int page, in nand_sp_exec_read_page_op()
1047 static int nand_lp_exec_read_page_op(struct nand_chip *chip, unsigned int page, in nand_lp_exec_read_page_op()
1097 int nand_read_page_op(struct nand_chip *chip, unsigned int page, in nand_read_page_op()
1138 int nand_read_param_page_op(struct nand_chip *chip, u8 page, void *buf, in nand_read_param_page_op()
1186 int nand_change_read_column_op(struct nand_chip *chip, in nand_change_read_column_op()
1250 int nand_read_oob_op(struct nand_chip *chip, unsigned int page, in nand_read_oob_op()
1274 static int nand_exec_prog_page_op(struct nand_chip *chip, unsigned int page, in nand_exec_prog_page_op()
1362 int nand_prog_page_begin_op(struct nand_chip *chip, unsigned int page, in nand_prog_page_begin_op()
1396 int nand_prog_page_end_op(struct nand_chip *chip) in nand_prog_page_end_op()
1447 int nand_prog_page_op(struct nand_chip *chip, unsigned int page, in nand_prog_page_op()
1491 int nand_change_write_column_op(struct nand_chip *chip, in nand_change_write_column_op()
1554 int nand_readid_op(struct nand_chip *chip, u8 addr, void *buf, in nand_readid_op()
1600 int nand_status_op(struct nand_chip *chip, u8 *status) in nand_status_op()
1637 int nand_exit_status_op(struct nand_chip *chip) in nand_exit_status_op()
1664 int nand_erase_op(struct nand_chip *chip, unsigned int eraseblock) in nand_erase_op()
1724 static int nand_set_features_op(struct nand_chip *chip, u8 feature, in nand_set_features_op()
1771 static int nand_get_features_op(struct nand_chip *chip, u8 feature, in nand_get_features_op()
1800 static int nand_wait_rdy_op(struct nand_chip *chip, unsigned int timeout_ms, in nand_wait_rdy_op()
1832 int nand_reset_op(struct nand_chip *chip) in nand_reset_op()
1867 int nand_read_data_op(struct nand_chip *chip, void *buf, unsigned int len, in nand_read_data_op()
1917 int nand_write_data_op(struct nand_chip *chip, const void *buf, in nand_write_data_op()
2169 int nand_op_parser_exec_op(struct nand_chip *chip, in nand_op_parser_exec_op()
2371 int nand_reset(struct nand_chip *chip, int chipnr) in nand_reset()
2407 int nand_get_features(struct nand_chip *chip, int addr, in nand_get_features()
2428 int nand_set_features(struct nand_chip *chip, int addr, in nand_set_features()
2580 int nand_read_page_raw_notsupp(struct nand_chip *chip, u8 *buf, in nand_read_page_raw_notsupp()
2595 int nand_read_page_raw(struct nand_chip *chip, uint8_t *buf, int oob_required, in nand_read_page_raw()
2631 int nand_monolithic_read_page_raw(struct nand_chip *chip, u8 *buf, in nand_monolithic_read_page_raw()
2666 static int nand_read_page_raw_syndrome(struct nand_chip *chip, uint8_t *buf, in nand_read_page_raw_syndrome()
2728 static int nand_read_page_swecc(struct nand_chip *chip, uint8_t *buf, in nand_read_page_swecc()
2775 static int nand_read_subpage(struct nand_chip *chip, uint32_t data_offs, in nand_read_subpage()
2887 static int nand_read_page_hwecc(struct nand_chip *chip, uint8_t *buf, in nand_read_page_hwecc()
2959 static int nand_read_page_syndrome(struct nand_chip *chip, uint8_t *buf, in nand_read_page_syndrome()
3048 static uint8_t *nand_transfer_oob(struct nand_chip *chip, uint8_t *oob, in nand_transfer_oob()
3082 static int nand_setup_read_retry(struct nand_chip *chip, int retry_mode) in nand_setup_read_retry()
3095 static void nand_wait_readrdy(struct nand_chip *chip) in nand_wait_readrdy()
3114 static int nand_do_read_ops(struct nand_chip *chip, loff_t from, in nand_do_read_ops()
3289 int nand_read_oob_std(struct nand_chip *chip, int page) in nand_read_oob_std()
3303 static int nand_read_oob_syndrome(struct nand_chip *chip, int page) in nand_read_oob_syndrome()
3356 int nand_write_oob_std(struct nand_chip *chip, int page) in nand_write_oob_std()
3371 static int nand_write_oob_syndrome(struct nand_chip *chip, int page) in nand_write_oob_syndrome()
3446 static int nand_do_read_oob(struct nand_chip *chip, loff_t from, in nand_do_read_oob()
3527 struct nand_chip *chip = mtd_to_nand(mtd); in nand_read_oob()
3559 int nand_write_page_raw_notsupp(struct nand_chip *chip, const u8 *buf, in nand_write_page_raw_notsupp()
3574 int nand_write_page_raw(struct nand_chip *chip, const uint8_t *buf, in nand_write_page_raw()
3611 int nand_monolithic_write_page_raw(struct nand_chip *chip, const u8 *buf, in nand_monolithic_write_page_raw()
3640 static int nand_write_page_raw_syndrome(struct nand_chip *chip, in nand_write_page_raw_syndrome()
3702 static int nand_write_page_swecc(struct nand_chip *chip, const uint8_t *buf, in nand_write_page_swecc()
3731 static int nand_write_page_hwecc(struct nand_chip *chip, const uint8_t *buf, in nand_write_page_hwecc()
3777 static int nand_write_subpage_hwecc(struct nand_chip *chip, uint32_t offset, in nand_write_subpage_hwecc()
3848 static int nand_write_page_syndrome(struct nand_chip *chip, const uint8_t *buf, in nand_write_page_syndrome()
3918 static int nand_write_page(struct nand_chip *chip, uint32_t offset, in nand_write_page()
3956 static int nand_do_write_ops(struct nand_chip *chip, loff_t to, in nand_do_write_ops()
4091 struct nand_chip *chip = mtd_to_nand(mtd); in panic_nand_write()
4121 struct nand_chip *chip = mtd_to_nand(mtd); in nand_write_oob()
4170 int nand_erase_nand(struct nand_chip *chip, struct erase_info *instr, in nand_erase_nand()
4268 struct nand_chip *chip = mtd_to_nand(mtd); in nand_sync()
4285 struct nand_chip *chip = mtd_to_nand(mtd); in nand_block_isbad()
4332 struct nand_chip *chip = mtd_to_nand(mtd); in nand_suspend()
4351 struct nand_chip *chip = mtd_to_nand(mtd); in nand_resume()
4383 struct nand_chip *chip = mtd_to_nand(mtd); in nand_lock()
4399 struct nand_chip *chip = mtd_to_nand(mtd); in nand_unlock()
4408 static void nand_set_defaults(struct nand_chip *chip) in nand_set_defaults()
4514 void nand_decode_ext_id(struct nand_chip *chip) in nand_decode_ext_id()
4552 static void nand_decode_id(struct nand_chip *chip, struct nand_flash_dev *type) in nand_decode_id()
4575 static void nand_decode_bbm_options(struct nand_chip *chip) in nand_decode_bbm_options()
4591 static bool find_full_id_nand(struct nand_chip *chip, in find_full_id_nand()
4635 static void nand_manufacturer_detect(struct nand_chip *chip) in nand_manufacturer_detect()
4661 static int nand_manufacturer_init(struct nand_chip *chip) in nand_manufacturer_init()
4676 static void nand_manufacturer_cleanup(struct nand_chip *chip) in nand_manufacturer_cleanup()
4693 static int nand_detect(struct nand_chip *chip, struct nand_flash_dev *type) in nand_detect()
4962 static void of_get_nand_ecc_legacy_user_config(struct nand_chip *chip) in of_get_nand_ecc_legacy_user_config()
4998 static int rawnand_dt_init(struct nand_chip *chip) in rawnand_dt_init()
5056 static int nand_scan_ident(struct nand_chip *chip, unsigned int maxchips, in nand_scan_ident()
5136 static void nand_scan_ident_cleanup(struct nand_chip *chip) in nand_scan_ident_cleanup()
5142 static int nand_set_ecc_on_host_ops(struct nand_chip *chip) in nand_set_ecc_on_host_ops()
5201 static int nand_set_ecc_soft_ops(struct nand_chip *chip) in nand_set_ecc_soft_ops()
5317 nand_check_ecc_caps(struct nand_chip *chip, in nand_check_ecc_caps()
5371 nand_match_ecc_req(struct nand_chip *chip, in nand_match_ecc_req()
5454 nand_maximize_ecc(struct nand_chip *chip, in nand_maximize_ecc()
5532 int nand_ecc_choose_conf(struct nand_chip *chip, in nand_ecc_choose_conf()
5556 struct nand_chip *chip = container_of(nand, struct nand_chip, in rawnand_erase()
5573 struct nand_chip *chip = container_of(nand, struct nand_chip, in rawnand_markbad()
5581 struct nand_chip *chip = container_of(nand, struct nand_chip, in rawnand_isbad()
5606 static int nand_scan_tail(struct nand_chip *chip) in nand_scan_tail()
5895 static int nand_attach(struct nand_chip *chip) in nand_attach()
5903 static void nand_detach(struct nand_chip *chip) in nand_detach()
5919 int nand_scan_with_ids(struct nand_chip *chip, unsigned int maxchips, in nand_scan_with_ids()
5954 void nand_cleanup(struct nand_chip *chip) in nand_cleanup()