Home
last modified time | relevance | path

Searched defs:mtd (Results 26 – 50 of 116) sorted by relevance

12345

/rk3399_rockchip-uboot/drivers/mtd/nand/spi/
H A Dforesee.c33 static int fsxxndxxg_ooblayout_ecc(struct mtd_info *mtd, int section, in fsxxndxxg_ooblayout_ecc()
39 static int fsxxndxxg_ooblayout_free(struct mtd_info *mtd, int section, in fsxxndxxg_ooblayout_free()
56 static int f35sqb00xg_ooblayout_ecc(struct mtd_info *mtd, int section, in f35sqb00xg_ooblayout_ecc()
68 static int f35sqb00xg_ooblayout_free(struct mtd_info *mtd, int section, in f35sqb00xg_ooblayout_free()
H A Ddosilicon.c39 static int ds35xxga_ooblayout_ecc(struct mtd_info *mtd, int section, in ds35xxga_ooblayout_ecc()
51 static int ds35xxga_ooblayout_free(struct mtd_info *mtd, int section, in ds35xxga_ooblayout_free()
68 static int ds35xxgb_ooblayout_ecc(struct mtd_info *mtd, int section, in ds35xxgb_ooblayout_ecc()
80 static int ds35xxgb_ooblayout_free(struct mtd_info *mtd, int section, in ds35xxgb_ooblayout_free()
H A Dmicron.c39 static int mt29f2g01abagd_ooblayout_ecc(struct mtd_info *mtd, int section, in mt29f2g01abagd_ooblayout_ecc()
51 static int mt29f2g01abagd_ooblayout_free(struct mtd_info *mtd, int section, in mt29f2g01abagd_ooblayout_free()
95 static int mt29f4g01abafd_ooblayout_ecc(struct mtd_info *mtd, int section, in mt29f4g01abafd_ooblayout_ecc()
107 static int mt29f4g01abafd_ooblayout_free(struct mtd_info *mtd, int section, in mt29f4g01abafd_ooblayout_free()
/rk3399_rockchip-uboot/drivers/mtd/nand/raw/
H A Drockchip_nand_v9.c86 struct mtd_info mtd; member
120 static void rockchip_nand_select_chip(struct mtd_info *mtd, int chipnr) in rockchip_nand_select_chip()
147 static void rockchip_nand_cmd_ctrl(struct mtd_info *mtd, in rockchip_nand_cmd_ctrl()
168 static void rockchip_nand_read_buf(struct mtd_info *mtd, in rockchip_nand_read_buf()
182 static void rockchip_nand_write_buf(struct mtd_info *mtd, in rockchip_nand_write_buf()
196 static uint8_t rockchip_nand_read_byte(struct mtd_info *mtd) in rockchip_nand_read_byte()
205 static int rockchip_nand_dev_ready(struct mtd_info *mtd) in rockchip_nand_dev_ready()
216 static int rockchip_nand_hw_ecc_setup(struct mtd_info *mtd, in rockchip_nand_hw_ecc_setup()
284 static void rockchip_nand_read_extra_oob(struct mtd_info *mtd, u8 *oob) in rockchip_nand_read_extra_oob()
299 static void rockchip_nand_write_extra_oob(struct mtd_info *mtd, u8 *oob) in rockchip_nand_write_extra_oob()
[all …]
H A Drockchip_nand.c84 struct mtd_info mtd; member
114 static void rockchip_nand_select_chip(struct mtd_info *mtd, int chipnr) in rockchip_nand_select_chip()
141 static void rockchip_nand_cmd_ctrl(struct mtd_info *mtd, in rockchip_nand_cmd_ctrl()
162 static void rockchip_nand_read_buf(struct mtd_info *mtd, in rockchip_nand_read_buf()
176 static void rockchip_nand_write_buf(struct mtd_info *mtd, in rockchip_nand_write_buf()
190 static uint8_t rockchip_nand_read_byte(struct mtd_info *mtd) in rockchip_nand_read_byte()
199 static int rockchip_nand_dev_ready(struct mtd_info *mtd) in rockchip_nand_dev_ready()
210 static int rockchip_nand_hw_ecc_setup(struct mtd_info *mtd, in rockchip_nand_hw_ecc_setup()
283 static void rockchip_nand_read_extra_oob(struct mtd_info *mtd, u8 *oob) in rockchip_nand_read_extra_oob()
298 static void rockchip_nand_write_extra_oob(struct mtd_info *mtd, u8 *oob) in rockchip_nand_write_extra_oob()
[all …]
H A Dkmeter1_nand.c49 static void kpn_nand_hwcontrol(struct mtd_info *mtd, int cmd, unsigned int ctrl) in kpn_nand_hwcontrol()
74 static u_char kpn_nand_read_byte(struct mtd_info *mtd) in kpn_nand_read_byte()
79 static void kpn_nand_write_buf(struct mtd_info *mtd, const u_char *buf, int len) in kpn_nand_write_buf()
89 static void kpn_nand_read_buf(struct mtd_info *mtd, u_char *buf, int len) in kpn_nand_read_buf()
97 static int kpn_nand_dev_ready(struct mtd_info *mtd) in kpn_nand_dev_ready()
H A Ddenali.c73 static inline struct denali_nand_info *mtd_to_denali(struct mtd_info *mtd) in mtd_to_denali()
213 static void denali_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in denali_read_buf()
223 static void denali_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) in denali_write_buf()
233 static void denali_read_buf16(struct mtd_info *mtd, uint8_t *buf, int len) in denali_read_buf16()
244 static void denali_write_buf16(struct mtd_info *mtd, const uint8_t *buf, in denali_write_buf16()
256 static uint8_t denali_read_byte(struct mtd_info *mtd) in denali_read_byte()
265 static void denali_write_byte(struct mtd_info *mtd, uint8_t byte) in denali_write_byte()
270 static uint16_t denali_read_word(struct mtd_info *mtd) in denali_read_word()
279 static void denali_cmd_ctrl(struct mtd_info *mtd, int dat, unsigned int ctrl) in denali_cmd_ctrl()
301 static int denali_dev_ready(struct mtd_info *mtd) in denali_dev_ready()
[all …]
H A Dlpc32xx_nand_slc.c136 static void lpc32xx_nand_cmd_ctrl(struct mtd_info *mtd, in lpc32xx_nand_cmd_ctrl()
155 static int lpc32xx_nand_dev_ready(struct mtd_info *mtd) in lpc32xx_nand_dev_ready()
282 static void lpc32xx_nand_xfer(struct mtd_info *mtd, const u8 *buf, in lpc32xx_nand_xfer()
347 static int lpc32xx_ecc_calculate(struct mtd_info *mtd, const uint8_t *dat, in lpc32xx_ecc_calculate()
357 static void lpc32xx_hwecc_enable(struct mtd_info *mtd, int mode) in lpc32xx_hwecc_enable()
375 int lpc32xx_correct_data(struct mtd_info *mtd, u_char *dat, in lpc32xx_correct_data()
399 static void lpc32xx_dma_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in lpc32xx_dma_read_buf()
404 static void lpc32xx_dma_write_buf(struct mtd_info *mtd, const uint8_t *buf, in lpc32xx_dma_write_buf()
411 static int lpc32xx_read_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, in lpc32xx_read_page_hwecc()
449 static int lpc32xx_write_page_hwecc(struct mtd_info *mtd, in lpc32xx_write_page_hwecc()
[all …]
H A Dfsl_ifc_nand.c222 static void set_addr(struct mtd_info *mtd, int column, int page_addr, int oob) in set_addr()
247 static int check_read_ecc(struct mtd_info *mtd, struct fsl_ifc_ctrl *ctrl, in check_read_ecc()
256 static int fsl_ifc_run_command(struct mtd_info *mtd) in fsl_ifc_run_command()
332 struct mtd_info *mtd) in fsl_ifc_do_read()
368 static void fsl_ifc_cmdfunc(struct mtd_info *mtd, unsigned int command, in fsl_ifc_cmdfunc()
572 static void fsl_ifc_write_buf(struct mtd_info *mtd, const u8 *buf, int len) in fsl_ifc_write_buf()
600 static u8 fsl_ifc_read_byte(struct mtd_info *mtd) in fsl_ifc_read_byte()
624 static uint8_t fsl_ifc_read_byte16(struct mtd_info *mtd) in fsl_ifc_read_byte16()
648 static void fsl_ifc_read_buf(struct mtd_info *mtd, u8 *buf, int len) in fsl_ifc_read_buf()
671 static int fsl_ifc_wait(struct mtd_info *mtd, struct nand_chip *chip) in fsl_ifc_wait()
[all …]
H A Dfsmc_nand.c166 static void fsmc_nand_hwcontrol(struct mtd_info *mtd, int cmd, uint ctrl) in fsmc_nand_hwcontrol()
194 static int fsmc_bch8_correct_data(struct mtd_info *mtd, u_char *dat, in fsmc_bch8_correct_data()
261 static int fsmc_read_hwecc(struct mtd_info *mtd, in fsmc_read_hwecc()
313 void fsmc_enable_hwecc(struct mtd_info *mtd, int mode) in fsmc_enable_hwecc()
337 static int fsmc_read_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, in fsmc_read_page_hwecc()
403 struct mtd_info *mtd; in fsmc_nand_switch_ecc() local
445 struct mtd_info *mtd; in fsmc_nand_init() local
H A Dtegra_nand.c154 static uint8_t read_byte(struct mtd_info *mtd) in read_byte()
178 static void read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in read_buf()
205 static int nand_dev_ready(struct mtd_info *mtd) in nand_dev_ready()
221 static void nand_select_chip(struct mtd_info *mtd, int chipnr) in nand_select_chip()
255 static void nand_command(struct mtd_info *mtd, unsigned int command, in nand_command()
506 static int nand_rw_page(struct mtd_info *mtd, struct nand_chip *chip, in nand_rw_page()
656 static int nand_read_page_hwecc(struct mtd_info *mtd, in nand_read_page_hwecc()
669 static int nand_write_page_hwecc(struct mtd_info *mtd, in nand_write_page_hwecc()
689 static int nand_read_page_raw(struct mtd_info *mtd, in nand_read_page_raw()
702 static int nand_write_page_raw(struct mtd_info *mtd, in nand_write_page_raw()
[all …]
H A Dmxc_nand.c342 static int mxc_nand_dev_ready(struct mtd_info *mtd)
351 static void _mxc_nand_enable_hwecc(struct mtd_info *mtd, int on)
375 static void mxc_nand_enable_hwecc(struct mtd_info *mtd, int mode)
384 static int mxc_nand_read_oob_syndrome(struct mtd_info *mtd,
436 static int mxc_nand_read_page_raw_syndrome(struct mtd_info *mtd,
481 static int mxc_nand_read_page_syndrome(struct mtd_info *mtd,
548 static int mxc_nand_write_oob_syndrome(struct mtd_info *mtd,
574 static int mxc_nand_write_page_raw_syndrome(struct mtd_info *mtd,
614 static int mxc_nand_write_page_syndrome(struct mtd_info *mtd,
659 static int mxc_nand_correct_data(struct mtd_info *mtd, u_char *dat,
[all …]
H A Dfsl_elbc_nand.c155 static void set_addr(struct mtd_info *mtd, int column, int page_addr, int oob) in set_addr()
195 static int fsl_elbc_run_command(struct mtd_info *mtd) in fsl_elbc_run_command()
279 static void fsl_elbc_cmdfunc(struct mtd_info *mtd, unsigned int command, in fsl_elbc_cmdfunc()
480 static void fsl_elbc_select_chip(struct mtd_info *mtd, int chip) in fsl_elbc_select_chip()
490 static void fsl_elbc_write_buf(struct mtd_info *mtd, const u8 *buf, int len) in fsl_elbc_write_buf()
527 static u8 fsl_elbc_read_byte(struct mtd_info *mtd) in fsl_elbc_read_byte()
544 static void fsl_elbc_read_buf(struct mtd_info *mtd, u8 *buf, int len) in fsl_elbc_read_buf()
567 static int fsl_elbc_wait(struct mtd_info *mtd, struct nand_chip *chip) in fsl_elbc_wait()
598 static int fsl_elbc_read_page(struct mtd_info *mtd, struct nand_chip *chip, in fsl_elbc_read_page()
613 static int fsl_elbc_write_page(struct mtd_info *mtd, struct nand_chip *chip, in fsl_elbc_write_page()
[all …]
H A Datmel_nand.c161 static void pmecc_gen_syndrome(struct mtd_info *mtd, int sector) in pmecc_gen_syndrome()
178 static void pmecc_substitute(struct mtd_info *mtd) in pmecc_substitute()
228 static void pmecc_get_sigma(struct mtd_info *mtd) in pmecc_get_sigma()
384 static int pmecc_err_location(struct mtd_info *mtd) in pmecc_err_location()
437 static void pmecc_correct_data(struct mtd_info *mtd, uint8_t *buf, uint8_t *ecc, in pmecc_correct_data()
483 static int pmecc_correction(struct mtd_info *mtd, u32 pmecc_stat, uint8_t *buf, in pmecc_correction()
529 static int atmel_nand_pmecc_read_page(struct mtd_info *mtd, in atmel_nand_pmecc_read_page()
570 static int atmel_nand_pmecc_write_page(struct mtd_info *mtd, in atmel_nand_pmecc_write_page()
616 static void atmel_pmecc_core_init(struct mtd_info *mtd) in atmel_pmecc_core_init()
806 struct mtd_info *mtd) in atmel_pmecc_nand_init_params()
[all …]
/rk3399_rockchip-uboot/drivers/mtd/onenand/
H A Dsamsung.c58 struct mtd_info *mtd; member
210 static int s3c_onenand_wait(struct mtd_info *mtd, int state) in s3c_onenand_wait()
271 static int s3c_onenand_command(struct mtd_info *mtd, int cmd, in s3c_onenand_command()
375 static unsigned char *s3c_get_bufferram(struct mtd_info *mtd, int area) in s3c_get_bufferram()
394 static int onenand_read_bufferram(struct mtd_info *mtd, loff_t addr, int area, in onenand_read_bufferram()
405 static int onenand_write_bufferram(struct mtd_info *mtd, loff_t addr, int area, in onenand_write_bufferram()
416 static int s3c_onenand_bbt_wait(struct mtd_info *mtd, int state) in s3c_onenand_bbt_wait()
448 static void s3c_onenand_check_lock_status(struct mtd_info *mtd) in s3c_onenand_check_lock_status()
465 static void s3c_onenand_do_lock_cmd(struct mtd_info *mtd, loff_t ofs, in s3c_onenand_do_lock_cmd()
487 static void s3c_onenand_unlock_all(struct mtd_info *mtd) in s3c_onenand_unlock_all()
[all …]
H A Donenand_bbt.c62 static int create_bbt(struct mtd_info *mtd, uint8_t * buf, in create_bbt()
138 static inline int onenand_memory_bbt(struct mtd_info *mtd, in onenand_memory_bbt()
152 static int onenand_isbad_bbt(struct mtd_info *mtd, loff_t offs, int allowbbt) in onenand_isbad_bbt()
192 int onenand_scan_bbt(struct mtd_info *mtd, struct nand_bbt_descr *bd) in onenand_scan_bbt()
246 int onenand_default_bbt(struct mtd_info *mtd) in onenand_default_bbt()
/rk3399_rockchip-uboot/common/
H A Dfb_nand.c19 struct mtd_info *mtd; member
34 struct mtd_info **mtd, in fb_nand_lookup()
68 static int _fb_nand_erase(struct mtd_info *mtd, struct part_info *part) in _fb_nand_erase()
91 static int _fb_nand_write(struct mtd_info *mtd, struct part_info *part, in _fb_nand_write()
153 struct mtd_info *mtd = NULL; in fb_nand_flash_write() local
208 struct mtd_info *mtd = NULL; in fb_nand_erase() local
/rk3399_rockchip-uboot/include/linux/mtd/
H A Dmtd.h47 struct mtd_info *mtd; member
340 static inline void mtd_set_of_node(struct mtd_info *mtd, in mtd_set_of_node()
346 static inline const struct device_node *mtd_get_of_node(struct mtd_info *mtd) in mtd_get_of_node()
353 static inline void mtd_set_of_node(struct mtd_info *mtd, in mtd_set_of_node()
358 static inline const struct device_node *mtd_get_of_node(struct mtd_info *mtd) in mtd_get_of_node()
364 static inline bool mtd_is_partition(const struct mtd_info *mtd) in mtd_is_partition()
369 static inline bool mtd_has_partitions(const struct mtd_info *mtd) in mtd_has_partitions()
394 static inline void mtd_set_ooblayout(struct mtd_info *mtd, in mtd_set_ooblayout()
400 static inline int mtd_oobavail(struct mtd_info *mtd, struct mtd_oob_ops *ops) in mtd_oobavail()
440 static inline void mtd_sync(struct mtd_info *mtd) in mtd_sync()
[all …]
H A Dnand_bch.h46 nand_bch_calculate_ecc(struct mtd_info *mtd, const u_char *dat, in nand_bch_calculate_ecc()
53 nand_bch_correct_data(struct mtd_info *mtd, unsigned char *buf, in nand_bch_correct_data()
59 static inline struct nand_bch_control *nand_bch_init(struct mtd_info *mtd) in nand_bch_init()
/rk3399_rockchip-uboot/cmd/
H A Dnand.c41 static int nand_dump(struct mtd_info *mtd, ulong off, int only_oob, in nand_dump()
118 struct mtd_info *mtd = get_nand_dev_by_index(dev); in set_dev() local
155 static void do_nand_status(struct mtd_info *mtd) in do_nand_status()
191 struct mtd_info *mtd = get_nand_dev_by_index(0); in do_nand_env_oob() local
287 struct mtd_info *mtd; in nand_print_and_set_info() local
313 static bool mtd_is_aligned_with_block_size(struct mtd_info *mtd, u64 size) in mtd_is_aligned_with_block_size()
318 static int raw_access(struct mtd_info *mtd, ulong addr, loff_t off, in raw_access()
375 struct mtd_info *mtd = get_nand_dev_by_index(dev); in adjust_size_for_badblocks() local
398 struct mtd_info *mtd; in do_nand() local
870 static int nand_load_image(cmd_tbl_t *cmdtp, struct mtd_info *mtd, in nand_load_image()
[all …]
/rk3399_rockchip-uboot/drivers/mtd/
H A Dmtd_blk.c50 struct mtd_info *mtd = NULL; in mtd_blk_map_table_init() local
110 static bool get_mtd_blk_map_address(struct mtd_info *mtd, loff_t *off) in get_mtd_blk_map_address()
157 struct mtd_info *mtd = NULL; in mtd_blk_map_fit() local
183 static __maybe_unused int mtd_map_read(struct mtd_info *mtd, loff_t offset, in mtd_map_read()
242 static __maybe_unused int mtd_map_write(struct mtd_info *mtd, loff_t offset, in mtd_map_write()
336 static __maybe_unused int mtd_map_erase(struct mtd_info *mtd, loff_t offset, in mtd_map_erase()
389 struct mtd_info *mtd; in mtd_part_parse() local
496 struct mtd_info *mtd; in mtd_dread() local
582 struct mtd_info *mtd; in mtd_dwrite() local
665 struct mtd_info *mtd; in mtd_derase() local
[all …]
H A Daltera_qspi.c64 struct mtd_info *mtd = info->mtd; in flash_print_info() local
86 struct mtd_info *mtd = info->mtd; in flash_erase() local
106 struct mtd_info *mtd = info->mtd; in write_buff() local
134 static int altera_qspi_erase(struct mtd_info *mtd, struct erase_info *instr) in altera_qspi_erase()
195 static int altera_qspi_read(struct mtd_info *mtd, loff_t from, size_t len, in altera_qspi_read()
207 static int altera_qspi_write(struct mtd_info *mtd, loff_t to, size_t len, in altera_qspi_write()
229 static void altera_qspi_sync(struct mtd_info *mtd) in altera_qspi_sync()
233 static void altera_qspi_get_locked_range(struct mtd_info *mtd, loff_t *ofs, in altera_qspi_get_locked_range()
256 static int altera_qspi_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in altera_qspi_lock()
290 static int altera_qspi_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in altera_qspi_unlock()
[all …]
/rk3399_rockchip-uboot/drivers/mtd/spi/
H A Dsf_mtd.c17 static int spi_flash_mtd_erase(struct mtd_info *mtd, struct erase_info *instr) in spi_flash_mtd_erase()
40 static int spi_flash_mtd_read(struct mtd_info *mtd, loff_t from, size_t len, in spi_flash_mtd_read()
56 static int spi_flash_mtd_write(struct mtd_info *mtd, loff_t to, size_t len, in spi_flash_mtd_write()
72 static void spi_flash_mtd_sync(struct mtd_info *mtd) in spi_flash_mtd_sync()
/rk3399_rockchip-uboot/env/
H A Donenand.c25 #define ONENAND_ENV_SIZE(mtd) (ONENAND_MAX_ENV_SIZE - ENV_HEADER_SIZE) argument
31 struct mtd_info *mtd = &onenand_mtd; in env_onenand_load() local
70 struct mtd_info *mtd = &onenand_mtd; in env_onenand_save() local
H A Dnand.c132 struct mtd_info *mtd; in writeenv() local
168 struct mtd_info *mtd; in erase_and_write_env() local
253 struct mtd_info *mtd; in readenv() local
286 int get_nand_env_oob(struct mtd_info *mtd, unsigned long *result) in get_nand_env_oob()
378 struct mtd_info *mtd = get_nand_dev_by_index(0); in env_nand_load() local

12345