| H A D | nand_base.c | 100 static int check_offs_len(struct nand_chip *chip, loff_t ofs, uint64_t len) in check_offs_len() 105 if (ofs & ((1ULL << chip->phys_erase_shift) - 1)) { in check_offs_len() 111 if (len & ((1ULL << chip->phys_erase_shift) - 1)) { in check_offs_len() 165 * @chip: NAND chip object 166 * @cs: the CS line to select. Note that this CS id is always from the chip 169 * Select a NAND target so that further operations executed on @chip go to the 172 void nand_select_target(struct nand_chip *chip, unsigned int cs) in nand_select_target() 178 if (WARN_ON(cs > nanddev_ntargets(&chip->base))) in nand_select_target() 181 chip in nand_select_target() 99 check_offs_len(struct nand_chip * chip,loff_t ofs,uint64_t len) check_offs_len() argument 171 nand_select_target(struct nand_chip * chip,unsigned int cs) nand_select_target() argument 194 nand_deselect_target(struct nand_chip * chip) nand_deselect_target() argument 209 nand_release_device(struct nand_chip * chip) nand_release_device() argument 225 nand_bbm_get_next_page(struct nand_chip * chip,int page) nand_bbm_get_next_page() argument 252 nand_block_bad(struct nand_chip * chip,loff_t ofs) nand_block_bad() argument 291 nand_region_is_secured(struct nand_chip * chip,loff_t offset,u64 size) nand_region_is_secured() argument 312 nand_isbad_bbm(struct nand_chip * chip,loff_t ofs) nand_isbad_bbm() argument 338 nand_get_device(struct nand_chip * chip) nand_get_device() argument 360 nand_check_wp(struct nand_chip * chip) nand_check_wp() argument 388 nand_fill_oob(struct nand_chip * chip,uint8_t * oob,size_t len,struct mtd_oob_ops * ops) nand_fill_oob() argument 427 nand_do_write_oob(struct nand_chip * chip,loff_t to,struct mtd_oob_ops * ops) nand_do_write_oob() argument 502 nand_default_block_markbad(struct nand_chip * chip,loff_t ofs) nand_default_block_markbad() argument 541 nand_markbad_bbm(struct nand_chip * chip,loff_t ofs) nand_markbad_bbm() argument 568 nand_block_markbad_lowlevel(struct nand_chip * chip,loff_t ofs) nand_block_markbad_lowlevel() argument 611 struct nand_chip *chip = mtd_to_nand(mtd); nand_block_isreserved() local 628 nand_block_checkbad(struct nand_chip * chip,loff_t ofs,int allowbbt) nand_block_checkbad() argument 654 nand_soft_waitrdy(struct nand_chip * chip,unsigned long timeout_ms) nand_soft_waitrdy() argument 722 nand_gpio_waitrdy(struct nand_chip * chip,struct gpio_desc * gpiod,unsigned long timeout_ms) nand_gpio_waitrdy() argument 753 panic_nand_wait(struct nand_chip * chip,unsigned long timeo) panic_nand_wait() argument 776 nand_supports_get_features(struct nand_chip * chip,int addr) nand_supports_get_features() argument 782 nand_supports_set_features(struct nand_chip * chip,int addr) nand_supports_set_features() argument 797 nand_reset_interface(struct nand_chip * chip,int chipnr) nand_reset_interface() argument 838 nand_setup_interface(struct nand_chip * chip,int chipnr) nand_setup_interface() argument 929 nand_choose_best_sdr_timings(struct nand_chip * chip,struct nand_interface_config * iface,struct nand_sdr_timings * spec_timings) nand_choose_best_sdr_timings() argument 980 nand_choose_best_nvddr_timings(struct nand_chip * chip,struct nand_interface_config * iface,struct nand_nvddr_timings * spec_timings) nand_choose_best_nvddr_timings() argument 1030 nand_choose_best_timings(struct nand_chip * chip,struct nand_interface_config * iface) nand_choose_best_timings() argument 1057 nand_choose_interface_config(struct nand_chip * chip) nand_choose_interface_config() argument 1092 nand_fill_column_cycles(struct nand_chip * chip,u8 * addrs,unsigned int offset_in_page) nand_fill_column_cycles() argument 1138 nand_sp_exec_read_page_op(struct nand_chip * chip,unsigned int page,unsigned int offset_in_page,void * buf,unsigned int len) nand_sp_exec_read_page_op() argument 1181 nand_lp_exec_read_page_op(struct nand_chip * chip,unsigned int page,unsigned int offset_in_page,void * buf,unsigned int len) nand_lp_exec_read_page_op() argument 1224 rawnand_cap_cont_reads(struct nand_chip * chip) rawnand_cap_cont_reads() argument 1250 nand_lp_exec_cont_read_page_op(struct nand_chip * chip,unsigned int page,unsigned int offset_in_page,void * buf,unsigned int len,bool check_only) nand_lp_exec_cont_read_page_op() argument 1324 rawnand_cont_read_ongoing(struct nand_chip * chip,unsigned int page) rawnand_cont_read_ongoing() argument 1342 nand_read_page_op(struct nand_chip * chip,unsigned int page,unsigned int offset_in_page,void * buf,unsigned int len) nand_read_page_op() argument 1389 nand_read_param_page_op(struct nand_chip * chip,u8 page,void * buf,unsigned int len) nand_read_param_page_op() argument 1438 nand_change_read_column_op(struct nand_chip * chip,unsigned int offset_in_page,void * buf,unsigned int len,bool force_8bit) nand_change_read_column_op() argument 1505 nand_read_oob_op(struct nand_chip * chip,unsigned int page,unsigned int offset_in_oob,void * buf,unsigned int len) nand_read_oob_op() argument 1529 nand_exec_prog_page_op(struct nand_chip * chip,unsigned int page,unsigned int offset_in_page,const void * buf,unsigned int len,bool prog) nand_exec_prog_page_op() argument 1609 nand_prog_page_begin_op(struct nand_chip * chip,unsigned int page,unsigned int offset_in_page,const void * buf,unsigned int len) nand_prog_page_begin_op() argument 1643 nand_prog_page_end_op(struct nand_chip * chip) nand_prog_page_end_op() argument 1695 nand_prog_page_op(struct nand_chip * chip,unsigned int page,unsigned int offset_in_page,const void * buf,unsigned int len) nand_prog_page_op() argument 1750 nand_change_write_column_op(struct nand_chip * chip,unsigned int offset_in_page,const void * buf,unsigned int len,bool force_8bit) nand_change_write_column_op() argument 1813 nand_readid_op(struct nand_chip * chip,u8 addr,void * buf,unsigned int len) nand_readid_op() argument 1879 nand_status_op(struct nand_chip * chip,u8 * status) nand_status_op() argument 1928 nand_exit_status_op(struct nand_chip * chip) nand_exit_status_op() argument 1956 nand_erase_op(struct nand_chip * chip,unsigned int eraseblock) nand_erase_op() argument 2018 nand_set_features_op(struct nand_chip * chip,u8 feature,const void * data) nand_set_features_op() argument 2068 nand_get_features_op(struct nand_chip * chip,u8 feature,void * data) nand_get_features_op() argument 2111 nand_wait_rdy_op(struct nand_chip * chip,unsigned int timeout_ms,unsigned int delay_ns) nand_wait_rdy_op() argument 2143 nand_reset_op(struct nand_chip * chip) nand_reset_op() argument 2180 nand_read_data_op(struct nand_chip * chip,void * buf,unsigned int len,bool force_8bit,bool check_only) nand_read_data_op() argument 2263 nand_write_data_op(struct nand_chip * chip,const void * buf,unsigned int len,bool force_8bit) nand_write_data_op() argument 2515 nand_op_parser_exec_op(struct nand_chip * chip,const struct nand_op_parser * parser,const struct nand_operation * op,bool check_only) nand_op_parser_exec_op() argument 2717 nand_reset(struct nand_chip * chip,int chipnr) nand_reset() argument 2753 nand_get_features(struct nand_chip * chip,int addr,u8 * subfeature_param) nand_get_features() argument 2774 nand_set_features(struct nand_chip * chip,int addr,u8 * subfeature_param) nand_set_features() argument 2795 nand_read_page_raw_notsupp(struct nand_chip * chip,u8 * buf,int oob_required,int page) nand_read_page_raw_notsupp() argument 2810 nand_read_page_raw(struct nand_chip * chip,uint8_t * buf,int oob_required,int page) nand_read_page_raw() argument 2846 nand_monolithic_read_page_raw(struct nand_chip * chip,u8 * buf,int oob_required,int page) nand_monolithic_read_page_raw() argument 2881 nand_read_page_raw_syndrome(struct nand_chip * chip,uint8_t * buf,int oob_required,int page) nand_read_page_raw_syndrome() argument 2943 nand_read_page_swecc(struct nand_chip * chip,uint8_t * buf,int oob_required,int page) nand_read_page_swecc() argument 2990 nand_read_subpage(struct nand_chip * chip,uint32_t data_offs,uint32_t readlen,uint8_t * bufpoi,int page) nand_read_subpage() argument 3102 nand_read_page_hwecc(struct nand_chip * chip,uint8_t * buf,int oob_required,int page) nand_read_page_hwecc() argument 3175 nand_read_page_hwecc_oob_first(struct nand_chip * chip,uint8_t * buf,int oob_required,int page) nand_read_page_hwecc_oob_first() argument 3241 nand_read_page_syndrome(struct nand_chip * chip,uint8_t * buf,int oob_required,int page) nand_read_page_syndrome() argument 3330 nand_transfer_oob(struct nand_chip * chip,uint8_t * oob,struct mtd_oob_ops * ops,size_t len) nand_transfer_oob() argument 3355 rawnand_enable_cont_reads(struct nand_chip * chip,unsigned int page,u32 readlen,int col) rawnand_enable_cont_reads() argument 3391 rawnand_cont_read_skip_first_page(struct nand_chip * chip,unsigned int page) rawnand_cont_read_skip_first_page() argument 3409 nand_setup_read_retry(struct nand_chip * chip,int retry_mode) nand_setup_read_retry() argument 3422 nand_wait_readrdy(struct nand_chip * chip) nand_wait_readrdy() argument 3441 nand_do_read_ops(struct nand_chip * chip,loff_t from,struct mtd_oob_ops * ops) nand_do_read_ops() argument 3628 nand_read_oob_std(struct nand_chip * chip,int page) nand_read_oob_std() argument 3642 nand_read_oob_syndrome(struct nand_chip * chip,int page) nand_read_oob_syndrome() argument 3695 nand_write_oob_std(struct nand_chip * chip,int page) nand_write_oob_std() argument 3710 nand_write_oob_syndrome(struct nand_chip * chip,int page) nand_write_oob_syndrome() argument 3785 nand_do_read_oob(struct nand_chip * chip,loff_t from,struct mtd_oob_ops * ops) nand_do_read_oob() argument 3870 struct nand_chip *chip = mtd_to_nand(mtd); nand_read_oob() local 3910 nand_write_page_raw_notsupp(struct nand_chip * chip,const u8 * buf,int oob_required,int page) nand_write_page_raw_notsupp() argument 3925 nand_write_page_raw(struct nand_chip * chip,const uint8_t * buf,int oob_required,int page) nand_write_page_raw() argument 3962 nand_monolithic_write_page_raw(struct nand_chip * chip,const u8 * buf,int oob_required,int page) nand_monolithic_write_page_raw() argument 3991 nand_write_page_raw_syndrome(struct nand_chip * chip,const uint8_t * buf,int oob_required,int page) nand_write_page_raw_syndrome() argument 4053 nand_write_page_swecc(struct nand_chip * chip,const uint8_t * buf,int oob_required,int page) nand_write_page_swecc() argument 4082 nand_write_page_hwecc(struct nand_chip * chip,const uint8_t * buf,int oob_required,int page) nand_write_page_hwecc() argument 4128 nand_write_subpage_hwecc(struct nand_chip * chip,uint32_t offset,uint32_t data_len,const uint8_t * buf,int oob_required,int page) nand_write_subpage_hwecc() argument 4199 nand_write_page_syndrome(struct nand_chip * chip,const uint8_t * buf,int oob_required,int page) nand_write_page_syndrome() argument 4269 nand_write_page(struct nand_chip * chip,uint32_t offset,int data_len,const uint8_t * buf,int oob_required,int page,int raw) nand_write_page() argument 4307 nand_do_write_ops(struct nand_chip * chip,loff_t to,struct mtd_oob_ops * ops) nand_do_write_ops() argument 4446 struct nand_chip *chip = mtd_to_nand(mtd); panic_nand_write() local 4476 struct nand_chip *chip = mtd_to_nand(mtd); nand_write_oob() local 4523 nand_erase_nand(struct nand_chip * chip,struct erase_info * instr,int allowbbt) nand_erase_nand() argument 4624 struct nand_chip *chip = mtd_to_nand(mtd); nand_sync() local 4641 struct nand_chip *chip = mtd_to_nand(mtd); nand_block_isbad() local 4686 struct nand_chip *chip = mtd_to_nand(mtd); nand_suspend() local 4705 struct nand_chip *chip = mtd_to_nand(mtd); nand_resume() local 4739 struct nand_chip *chip = mtd_to_nand(mtd); nand_lock() local 4760 struct nand_chip *chip = mtd_to_nand(mtd); nand_unlock() local 4774 nand_set_defaults(struct nand_chip * chip) nand_set_defaults() argument 4880 nand_decode_ext_id(struct nand_chip * chip) nand_decode_ext_id() argument 4918 nand_decode_id(struct nand_chip * chip,struct nand_flash_dev * type) nand_decode_id() argument 4941 nand_decode_bbm_options(struct nand_chip * chip) nand_decode_bbm_options() argument 4957 find_full_id_nand(struct nand_chip * chip,struct nand_flash_dev * type) find_full_id_nand() argument 5001 nand_manufacturer_detect(struct nand_chip * chip) nand_manufacturer_detect() argument 5027 nand_manufacturer_init(struct nand_chip * chip) nand_manufacturer_init() argument 5042 nand_manufacturer_cleanup(struct nand_chip * chip) nand_manufacturer_cleanup() argument 5056 rawnand_check_data_only_read_support(struct nand_chip * chip) rawnand_check_data_only_read_support() argument 5063 rawnand_early_check_supported_ops(struct nand_chip * chip) rawnand_early_check_supported_ops() argument 5074 rawnand_check_cont_read_support(struct nand_chip * chip) rawnand_check_cont_read_support() argument 5089 rawnand_late_check_supported_ops(struct nand_chip * chip) rawnand_late_check_supported_ops() argument 5120 nand_detect(struct nand_chip * chip,struct nand_flash_dev * type) nand_detect() argument 5391 of_get_nand_ecc_legacy_user_config(struct nand_chip * chip) of_get_nand_ecc_legacy_user_config() argument 5406 of_get_nand_bus_width(struct nand_chip * chip) of_get_nand_bus_width() argument 5426 of_get_nand_secure_regions(struct nand_chip * chip) of_get_nand_secure_regions() argument 5494 rawnand_dt_init(struct nand_chip * chip) rawnand_dt_init() argument 5554 nand_scan_ident(struct nand_chip * chip,unsigned int maxchips,struct nand_flash_dev * table) nand_scan_ident() argument 5635 nand_scan_ident_cleanup(struct nand_chip * chip) nand_scan_ident_cleanup() argument 5641 rawnand_sw_hamming_init(struct nand_chip * chip) rawnand_sw_hamming_init() argument 5671 rawnand_sw_hamming_calculate(struct nand_chip * chip,const unsigned char * buf,unsigned char * code) rawnand_sw_hamming_calculate() argument 5681 rawnand_sw_hamming_correct(struct nand_chip * chip,unsigned char * buf,unsigned char * read_ecc,unsigned char * calc_ecc) rawnand_sw_hamming_correct() argument 5692 rawnand_sw_hamming_cleanup(struct nand_chip * chip) rawnand_sw_hamming_cleanup() argument 5700 rawnand_sw_bch_init(struct nand_chip * chip) rawnand_sw_bch_init() argument 5725 rawnand_sw_bch_calculate(struct nand_chip * chip,const unsigned char * buf,unsigned char * code) rawnand_sw_bch_calculate() argument 5734 rawnand_sw_bch_correct(struct nand_chip * chip,unsigned char * buf,unsigned char * read_ecc,unsigned char * calc_ecc) rawnand_sw_bch_correct() argument 5743 rawnand_sw_bch_cleanup(struct nand_chip * chip) rawnand_sw_bch_cleanup() argument 5751 nand_set_ecc_on_host_ops(struct nand_chip * chip) nand_set_ecc_on_host_ops() argument 5810 nand_set_ecc_soft_ops(struct nand_chip * chip) nand_set_ecc_soft_ops() argument 5898 nand_check_ecc_caps(struct nand_chip * chip,const struct nand_ecc_caps * caps,int oobavail) nand_check_ecc_caps() argument 5952 nand_match_ecc_req(struct nand_chip * chip,const struct nand_ecc_caps * caps,int oobavail) nand_match_ecc_req() argument 6035 nand_maximize_ecc(struct nand_chip * chip,const struct nand_ecc_caps * caps,int oobavail) nand_maximize_ecc() argument 6113 nand_ecc_choose_conf(struct nand_chip * chip,const struct nand_ecc_caps * caps,int oobavail) nand_ecc_choose_conf() argument 6137 struct nand_chip *chip = container_of(nand, struct nand_chip, rawnand_erase() local 6154 struct nand_chip *chip = container_of(nand, struct nand_chip, rawnand_markbad() local 6162 struct nand_chip *chip = container_of(nand, struct nand_chip, rawnand_isbad() local 6187 nand_scan_tail(struct nand_chip * chip) nand_scan_tail() argument 6506 nand_attach(struct nand_chip * chip) nand_attach() argument 6514 nand_detach(struct nand_chip * chip) nand_detach() argument 6530 nand_scan_with_ids(struct nand_chip * chip,unsigned int maxchips,struct nand_flash_dev * ids) nand_scan_with_ids() argument 6565 nand_cleanup(struct nand_chip * chip) nand_cleanup() argument [all...] |