Lines Matching defs:nor

57 static u8 spi_nor_get_cmd_ext(const struct spi_nor *nor,  in spi_nor_get_cmd_ext()
80 void spi_nor_spimem_setup_op(const struct spi_nor *nor, in spi_nor_spimem_setup_op()
131 static bool spi_nor_spimem_bounce(struct spi_nor *nor, struct spi_mem_op *op) in spi_nor_spimem_bounce()
152 static int spi_nor_spimem_exec_op(struct spi_nor *nor, struct spi_mem_op *op) in spi_nor_spimem_exec_op()
163 int spi_nor_controller_ops_read_reg(struct spi_nor *nor, u8 opcode, in spi_nor_controller_ops_read_reg()
172 int spi_nor_controller_ops_write_reg(struct spi_nor *nor, u8 opcode, in spi_nor_controller_ops_write_reg()
181 static int spi_nor_controller_ops_erase(struct spi_nor *nor, loff_t offs) in spi_nor_controller_ops_erase()
199 static ssize_t spi_nor_spimem_read_data(struct spi_nor *nor, loff_t from, in spi_nor_spimem_read_data()
245 ssize_t spi_nor_read_data(struct spi_nor *nor, loff_t from, size_t len, u8 *buf) in spi_nor_read_data()
263 static ssize_t spi_nor_spimem_write_data(struct spi_nor *nor, loff_t to, in spi_nor_spimem_write_data()
304 ssize_t spi_nor_write_data(struct spi_nor *nor, loff_t to, size_t len, in spi_nor_write_data()
322 int spi_nor_read_any_reg(struct spi_nor *nor, struct spi_mem_op *op, in spi_nor_read_any_reg()
344 int spi_nor_write_any_volatile_reg(struct spi_nor *nor, struct spi_mem_op *op, in spi_nor_write_any_volatile_reg()
365 int spi_nor_write_enable(struct spi_nor *nor) in spi_nor_write_enable()
392 int spi_nor_write_disable(struct spi_nor *nor) in spi_nor_write_disable()
426 int spi_nor_read_id(struct spi_nor *nor, u8 naddr, u8 ndummy, u8 *id, in spi_nor_read_id()
452 int spi_nor_read_sr(struct spi_nor *nor, u8 *sr) in spi_nor_read_sr()
492 int spi_nor_read_cr(struct spi_nor *nor, u8 *cr) in spi_nor_read_cr()
523 int spi_nor_set_4byte_addr_mode_en4b_ex4b(struct spi_nor *nor, bool enable) in spi_nor_set_4byte_addr_mode_en4b_ex4b()
556 int spi_nor_set_4byte_addr_mode_wren_en4b_ex4b(struct spi_nor *nor, bool enable) in spi_nor_set_4byte_addr_mode_wren_en4b_ex4b()
585 int spi_nor_set_4byte_addr_mode_brwr(struct spi_nor *nor, bool enable) in spi_nor_set_4byte_addr_mode_brwr()
615 int spi_nor_sr_ready(struct spi_nor *nor) in spi_nor_sr_ready()
632 static bool spi_nor_use_parallel_locking(struct spi_nor *nor) in spi_nor_use_parallel_locking()
638 static int spi_nor_rww_start_rdst(struct spi_nor *nor) in spi_nor_rww_start_rdst()
657 static void spi_nor_rww_end_rdst(struct spi_nor *nor) in spi_nor_rww_end_rdst()
669 static int spi_nor_lock_rdst(struct spi_nor *nor) in spi_nor_lock_rdst()
677 static void spi_nor_unlock_rdst(struct spi_nor *nor) in spi_nor_unlock_rdst()
691 static int spi_nor_ready(struct spi_nor *nor) in spi_nor_ready()
718 static int spi_nor_wait_till_ready_with_timeout(struct spi_nor *nor, in spi_nor_wait_till_ready_with_timeout()
751 int spi_nor_wait_till_ready(struct spi_nor *nor) in spi_nor_wait_till_ready()
763 int spi_nor_global_block_unlock(struct spi_nor *nor) in spi_nor_global_block_unlock()
798 int spi_nor_write_sr(struct spi_nor *nor, const u8 *sr, size_t len) in spi_nor_write_sr()
833 static int spi_nor_write_sr1_and_check(struct spi_nor *nor, u8 sr1) in spi_nor_write_sr1_and_check()
865 static int spi_nor_write_16bit_sr_and_check(struct spi_nor *nor, u8 sr1) in spi_nor_write_16bit_sr_and_check()
940 int spi_nor_write_16bit_cr_and_check(struct spi_nor *nor, u8 cr) in spi_nor_write_16bit_cr_and_check()
992 int spi_nor_write_sr_and_check(struct spi_nor *nor, u8 sr1) in spi_nor_write_sr_and_check()
1008 static int spi_nor_write_sr2(struct spi_nor *nor, const u8 *sr2) in spi_nor_write_sr2()
1044 static int spi_nor_read_sr2(struct spi_nor *nor, u8 *sr2) in spi_nor_read_sr2()
1073 static int spi_nor_erase_die(struct spi_nor *nor, loff_t addr, size_t die_size) in spi_nor_erase_die()
1162 static bool spi_nor_has_uniform_erase(const struct spi_nor *nor) in spi_nor_has_uniform_erase()
1167 static void spi_nor_set_4byte_opcodes(struct spi_nor *nor) in spi_nor_set_4byte_opcodes()
1186 static int spi_nor_prep(struct spi_nor *nor) in spi_nor_prep()
1196 static void spi_nor_unprep(struct spi_nor *nor) in spi_nor_unprep()
1211 static bool spi_nor_rww_start_io(struct spi_nor *nor) in spi_nor_rww_start_io()
1229 static void spi_nor_rww_end_io(struct spi_nor *nor) in spi_nor_rww_end_io()
1236 static int spi_nor_lock_device(struct spi_nor *nor) in spi_nor_lock_device()
1244 static void spi_nor_unlock_device(struct spi_nor *nor) in spi_nor_unlock_device()
1253 static bool spi_nor_rww_start_exclusive(struct spi_nor *nor) in spi_nor_rww_start_exclusive()
1273 static void spi_nor_rww_end_exclusive(struct spi_nor *nor) in spi_nor_rww_end_exclusive()
1284 int spi_nor_prep_and_lock(struct spi_nor *nor) in spi_nor_prep_and_lock()
1301 void spi_nor_unlock_and_unprep(struct spi_nor *nor) in spi_nor_unlock_and_unprep()
1314 static bool spi_nor_rww_start_pe(struct spi_nor *nor, loff_t start, size_t len) in spi_nor_rww_start_pe()
1344 static void spi_nor_rww_end_pe(struct spi_nor *nor, loff_t start, size_t len) in spi_nor_rww_end_pe()
1361 static int spi_nor_prep_and_lock_pe(struct spi_nor *nor, loff_t start, size_t len) in spi_nor_prep_and_lock_pe()
1378 static void spi_nor_unlock_and_unprep_pe(struct spi_nor *nor, loff_t start, size_t len) in spi_nor_unlock_and_unprep_pe()
1391 static bool spi_nor_rww_start_rd(struct spi_nor *nor, loff_t start, size_t len) in spi_nor_rww_start_rd()
1422 static void spi_nor_rww_end_rd(struct spi_nor *nor, loff_t start, size_t len) in spi_nor_rww_end_rd()
1440 static int spi_nor_prep_and_lock_rd(struct spi_nor *nor, loff_t start, size_t len) in spi_nor_prep_and_lock_rd()
1457 static void spi_nor_unlock_and_unprep_rd(struct spi_nor *nor, loff_t start, size_t len) in spi_nor_unlock_and_unprep_rd()
1472 int spi_nor_erase_sector(struct spi_nor *nor, u32 addr) in spi_nor_erase_sector()
1625 static int spi_nor_init_erase_cmd_list(struct spi_nor *nor, in spi_nor_init_erase_cmd_list()
1684 static int spi_nor_erase_multi_sectors(struct spi_nor *nor, u64 addr, u32 len) in spi_nor_erase_multi_sectors()
1733 static int spi_nor_erase_dice(struct spi_nor *nor, loff_t addr, in spi_nor_erase_dice()
1784 struct spi_nor *nor = mtd_to_spi_nor(mtd); in spi_nor_erase() local
1877 int spi_nor_sr1_bit6_quad_enable(struct spi_nor *nor) in spi_nor_sr1_bit6_quad_enable()
1902 int spi_nor_sr2_bit1_quad_enable(struct spi_nor *nor) in spi_nor_sr2_bit1_quad_enable()
1933 int spi_nor_sr2_bit7_quad_enable(struct spi_nor *nor) in spi_nor_sr2_bit7_quad_enable()
1989 static const struct flash_info *spi_nor_match_id(struct spi_nor *nor, in spi_nor_match_id()
2009 static const struct flash_info *spi_nor_detect(struct spi_nor *nor) in spi_nor_detect()
2046 struct spi_nor *nor = mtd_to_spi_nor(mtd); in spi_nor_read() local
2091 struct spi_nor *nor = mtd_to_spi_nor(mtd); in spi_nor_write() local
2138 static int spi_nor_check(struct spi_nor *nor) in spi_nor_check()
2240 static int spi_nor_spimem_check_op(struct spi_nor *nor, in spi_nor_spimem_check_op()
2271 static int spi_nor_spimem_check_readop(struct spi_nor *nor, in spi_nor_spimem_check_readop()
2295 static int spi_nor_spimem_check_pp(struct spi_nor *nor, in spi_nor_spimem_check_pp()
2313 spi_nor_spimem_adjust_hwcaps(struct spi_nor *nor, u32 *hwcaps) in spi_nor_spimem_adjust_hwcaps()
2391 int spi_nor_post_bfpt_fixups(struct spi_nor *nor, in spi_nor_post_bfpt_fixups()
2411 static int spi_nor_select_read(struct spi_nor *nor, in spi_nor_select_read()
2442 static int spi_nor_select_pp(struct spi_nor *nor, in spi_nor_select_pp()
2518 static int spi_nor_select_erase(struct spi_nor *nor) in spi_nor_select_erase()
2560 static int spi_nor_set_addr_nbytes(struct spi_nor *nor) in spi_nor_set_addr_nbytes()
2603 static int spi_nor_setup(struct spi_nor *nor, in spi_nor_setup()
2669 static void spi_nor_manufacturer_init_params(struct spi_nor *nor) in spi_nor_manufacturer_init_params()
2688 static void spi_nor_no_sfdp_init_params(struct spi_nor *nor) in spi_nor_no_sfdp_init_params()
2758 static void spi_nor_init_flags(struct spi_nor *nor) in spi_nor_init_flags()
2800 static void spi_nor_init_fixup_flags(struct spi_nor *nor) in spi_nor_init_fixup_flags()
2819 static int spi_nor_late_init_params(struct spi_nor *nor) in spi_nor_late_init_params()
2870 static void spi_nor_sfdp_init_params_deprecated(struct spi_nor *nor) in spi_nor_sfdp_init_params_deprecated()
2891 static void spi_nor_init_params_deprecated(struct spi_nor *nor) in spi_nor_init_params_deprecated()
2910 static void spi_nor_init_default_params(struct spi_nor *nor) in spi_nor_init_default_params()
2992 static int spi_nor_init_params(struct spi_nor *nor) in spi_nor_init_params()
3030 static int spi_nor_set_octal_dtr(struct spi_nor *nor, bool enable) in spi_nor_set_octal_dtr()
3062 static int spi_nor_quad_enable(struct spi_nor *nor) in spi_nor_quad_enable()
3081 int spi_nor_set_4byte_addr_mode(struct spi_nor *nor, bool enable) in spi_nor_set_4byte_addr_mode()
3113 static int spi_nor_init(struct spi_nor *nor) in spi_nor_init()
3167 static void spi_nor_soft_reset(struct spi_nor *nor) in spi_nor_soft_reset()
3204 struct spi_nor *nor = mtd_to_spi_nor(mtd); in spi_nor_suspend() local
3218 struct spi_nor *nor = mtd_to_spi_nor(mtd); in spi_nor_resume() local
3231 struct spi_nor *nor = mtd_to_spi_nor(master); in spi_nor_get_device() local
3248 struct spi_nor *nor = mtd_to_spi_nor(master); in spi_nor_put_device() local
3259 static void spi_nor_restore(struct spi_nor *nor) in spi_nor_restore()
3280 static const struct flash_info *spi_nor_match_name(struct spi_nor *nor, in spi_nor_match_name()
3298 static const struct flash_info *spi_nor_get_flash_info(struct spi_nor *nor, in spi_nor_get_flash_info()
3349 static int spi_nor_set_mtd_eraseregions(struct spi_nor *nor) in spi_nor_set_mtd_eraseregions()
3379 static int spi_nor_set_mtd_info(struct spi_nor *nor) in spi_nor_set_mtd_info()
3417 static int spi_nor_hw_reset(struct spi_nor *nor) in spi_nor_hw_reset()
3438 int spi_nor_scan(struct spi_nor *nor, const char *name, in spi_nor_scan()
3516 static int spi_nor_create_read_dirmap(struct spi_nor *nor) in spi_nor_create_read_dirmap()
3547 static int spi_nor_create_write_dirmap(struct spi_nor *nor) in spi_nor_create_write_dirmap()
3580 struct spi_nor *nor; in spi_nor_probe() local
3653 struct spi_nor *nor = spi_mem_get_drvdata(spimem); in spi_nor_remove() local
3663 struct spi_nor *nor = spi_mem_get_drvdata(spimem); in spi_nor_shutdown() local