| /OK3568_Linux_fs/kernel/drivers/mtd/ |
| H A D | mtdcore.c | 43 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_suspend() local 50 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_resume() local 92 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_release() local 102 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_type_show() local 141 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_flags_show() local 150 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_size_show() local 160 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_erasesize_show() local 169 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_writesize_show() local 178 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_subpagesize_show() local 188 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_oobsize_show() local [all …]
|
| H A D | mtdpstore.c | 16 struct mtd_info *mtd; member 30 struct mtd_info *mtd = cxt->mtd; in mtdpstore_block_isbad() local 52 struct mtd_info *mtd = cxt->mtd; in mtdpstore_panic_block_isbad() local 63 struct mtd_info *mtd = cxt->mtd; in mtdpstore_mark_used() local 73 struct mtd_info *mtd = cxt->mtd; in mtdpstore_mark_unused() local 83 struct mtd_info *mtd = cxt->mtd; in mtdpstore_block_mark_unused() local 110 struct mtd_info *mtd = cxt->mtd; in mtdpstore_block_is_used() local 128 struct mtd_info *mtd = cxt->mtd; in mtdpstore_is_empty() local 142 struct mtd_info *mtd = cxt->mtd; in mtdpstore_mark_removed() local 152 struct mtd_info *mtd = cxt->mtd; in mtdpstore_block_clear_removed() local [all …]
|
| H A D | mtdconcat.c | 30 struct mtd_info mtd; member 54 concat_read(struct mtd_info *mtd, loff_t from, size_t len, in concat_read() 106 concat_panic_write(struct mtd_info *mtd, loff_t to, size_t len, in concat_panic_write() 147 concat_write(struct mtd_info *mtd, loff_t to, size_t len, in concat_write() 185 concat_writev(struct mtd_info *mtd, const struct kvec *vecs, in concat_writev() 260 concat_read_oob(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops) in concat_read_oob() 317 concat_write_oob(struct mtd_info *mtd, loff_t to, struct mtd_oob_ops *ops) in concat_write_oob() 363 static int concat_erase(struct mtd_info *mtd, struct erase_info *instr) in concat_erase() 481 static int concat_xxlock(struct mtd_info *mtd, loff_t ofs, uint64_t len, in concat_xxlock() 519 static int concat_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in concat_lock() [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/mtd/ |
| H A D | mtdcore.c | 184 struct mtd_info __maybe_unused *mtd = dev_get_drvdata(dev); in mtd_release() local 194 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_suspend() local 201 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_resume() local 211 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_type_show() local 250 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_flags_show() local 260 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_size_show() local 271 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_erasesize_show() local 281 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_writesize_show() local 291 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_subpagesize_show() local 302 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_oobsize_show() local [all …]
|
| H A D | mtdpart.c | 290 static int part_read(struct mtd_info *mtd, loff_t from, size_t len, in part_read() 309 static int part_point(struct mtd_info *mtd, loff_t from, size_t len, in part_point() 316 static int part_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in part_unpoint() 322 static unsigned long part_get_unmapped_area(struct mtd_info *mtd, in part_get_unmapped_area() 331 static int part_read_oob(struct mtd_info *mtd, loff_t from, in part_read_oob() 368 static int part_read_user_prot_reg(struct mtd_info *mtd, loff_t from, in part_read_user_prot_reg() 375 static int part_get_user_prot_info(struct mtd_info *mtd, size_t len, in part_get_user_prot_info() 382 static int part_read_fact_prot_reg(struct mtd_info *mtd, loff_t from, in part_read_fact_prot_reg() 389 static int part_get_fact_prot_info(struct mtd_info *mtd, size_t len, in part_get_fact_prot_info() 396 static int part_write(struct mtd_info *mtd, loff_t to, size_t len, in part_write() [all …]
|
| H A D | mtdconcat.c | 38 struct mtd_info mtd; member 62 concat_read(struct mtd_info *mtd, loff_t from, size_t len, in concat_read() 118 concat_write(struct mtd_info *mtd, loff_t to, size_t len, in concat_write() 161 concat_writev(struct mtd_info *mtd, const struct kvec *vecs, in concat_writev() 237 concat_read_oob(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops) in concat_read_oob() 294 concat_write_oob(struct mtd_info *mtd, loff_t to, struct mtd_oob_ops *ops) in concat_write_oob() 347 static int concat_dev_erase(struct mtd_info *mtd, struct erase_info *erase) in concat_dev_erase() 381 static int concat_erase(struct mtd_info *mtd, struct erase_info *instr) in concat_erase() 504 static int concat_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in concat_lock() 538 static int concat_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in concat_unlock() [all …]
|
| H A D | cfi_mtd.c | 24 static int cfi_mtd_erase(struct mtd_info *mtd, struct erase_info *instr) in cfi_mtd_erase() 68 static int cfi_mtd_read(struct mtd_info *mtd, loff_t from, size_t len, in cfi_mtd_read() 80 static int cfi_mtd_write(struct mtd_info *mtd, loff_t to, size_t len, in cfi_mtd_write() 99 static void cfi_mtd_sync(struct mtd_info *mtd) in cfi_mtd_sync() 108 static int cfi_mtd_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in cfi_mtd_lock() 120 static int cfi_mtd_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in cfi_mtd_unlock() 132 static int cfi_mtd_set_erasesize(struct mtd_info *mtd, flash_info_t *fi) in cfi_mtd_set_erasesize() 205 struct mtd_info *mtd; in cfi_mtd_init() local
|
| /OK3568_Linux_fs/u-boot/drivers/mtd/nand/raw/ |
| H A D | nand_base.c | 106 static int check_offs_len(struct mtd_info *mtd, in check_offs_len() 133 static void nand_release_device(struct mtd_info *mtd) in nand_release_device() 147 uint8_t nand_read_byte(struct mtd_info *mtd) in nand_read_byte() 160 static uint8_t nand_read_byte16(struct mtd_info *mtd) in nand_read_byte16() 172 static u16 nand_read_word(struct mtd_info *mtd) in nand_read_word() 185 static void nand_select_chip(struct mtd_info *mtd, int chipnr) in nand_select_chip() 208 static void nand_write_byte(struct mtd_info *mtd, uint8_t byte) in nand_write_byte() 222 static void nand_write_byte16(struct mtd_info *mtd, uint8_t byte) in nand_write_byte16() 287 void nand_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) in nand_write_buf() 302 void nand_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in nand_read_buf() [all …]
|
| H A D | davinci_nand.c | 55 static void nand_davinci_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) in nand_davinci_read_buf() 99 static void nand_davinci_write_buf(struct mtd_info *mtd, const uint8_t *buf, in nand_davinci_write_buf() 144 static void nand_davinci_hwcontrol(struct mtd_info *mtd, int cmd, in nand_davinci_hwcontrol() 166 static u_int32_t nand_davinci_readecc(struct mtd_info *mtd) in nand_davinci_readecc() 176 static void nand_davinci_enable_hwecc(struct mtd_info *mtd, int mode) in nand_davinci_enable_hwecc() 189 static int nand_davinci_calculate_ecc(struct mtd_info *mtd, const u_char *dat, in nand_davinci_calculate_ecc() 223 static int nand_davinci_correct_data(struct mtd_info *mtd, u_char *dat, in nand_davinci_correct_data() 363 static int nand_davinci_write_page(struct mtd_info *mtd, struct nand_chip *chip, in nand_davinci_write_page() 422 static int nand_davinci_read_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, in nand_davinci_read_page_hwecc() 474 static void nand_davinci_4bit_enable_hwecc(struct mtd_info *mtd, int mode) in nand_davinci_4bit_enable_hwecc() [all …]
|
| H A D | nand_bbt.c | 169 static int read_bbt(struct mtd_info *mtd, uint8_t *buf, int page, int num, in read_bbt() 262 static int read_abs_bbt(struct mtd_info *mtd, uint8_t *buf, struct nand_bbt_descr *td, int chip) in read_abs_bbt() 288 static int scan_read_data(struct mtd_info *mtd, uint8_t *buf, loff_t offs, in scan_read_data() 312 static int scan_read_oob(struct mtd_info *mtd, uint8_t *buf, loff_t offs, in scan_read_oob() 342 static int scan_read(struct mtd_info *mtd, uint8_t *buf, loff_t offs, in scan_read() 352 static int scan_write_bbt(struct mtd_info *mtd, loff_t offs, size_t len, in scan_write_bbt() 367 static u32 bbt_get_ver_offs(struct mtd_info *mtd, struct nand_bbt_descr *td) in bbt_get_ver_offs() 386 static void read_abs_bbts(struct mtd_info *mtd, uint8_t *buf, in read_abs_bbts() 411 static int scan_block_fast(struct mtd_info *mtd, struct nand_bbt_descr *bd, in scan_block_fast() 452 static int create_bbt(struct mtd_info *mtd, uint8_t *buf, in create_bbt() [all …]
|
| H A D | mxs_nand.c | 165 struct mtd_info *mtd, in mxs_nand_calc_ecc_layout_by_info() 199 struct mtd_info *mtd) in mxs_nand_calc_ecc_layout() 266 static void mxs_nand_cmd_ctrl(struct mtd_info *mtd, int data, unsigned int ctrl) in mxs_nand_cmd_ctrl() 345 static int mxs_nand_device_ready(struct mtd_info *mtd) in mxs_nand_device_ready() 360 static void mxs_nand_select_chip(struct mtd_info *mtd, int chip) in mxs_nand_select_chip() 407 static void mxs_nand_read_buf(struct mtd_info *mtd, uint8_t *buf, int length) in mxs_nand_read_buf() 490 static void mxs_nand_write_buf(struct mtd_info *mtd, const uint8_t *buf, in mxs_nand_write_buf() 544 static uint8_t mxs_nand_read_byte(struct mtd_info *mtd) in mxs_nand_read_byte() 554 static int mxs_nand_ecc_read_page(struct mtd_info *mtd, struct nand_chip *nand, in mxs_nand_ecc_read_page() 705 static int mxs_nand_ecc_write_page(struct mtd_info *mtd, in mxs_nand_ecc_write_page() [all …]
|
| H A D | mxs_nand_spl.c | 12 static struct mtd_info *mtd; variable 15 static void mxs_nand_command(struct mtd_info *mtd, unsigned int command, in mxs_nand_command() 56 static int mxs_flash_full_ident(struct mtd_info *mtd) in mxs_flash_full_ident() 75 static int mxs_flash_onfi_ident(struct mtd_info *mtd) in mxs_flash_onfi_ident() 137 static int mxs_flash_ident(struct mtd_info *mtd) in mxs_flash_ident() 148 static int mxs_read_page_ecc(struct mtd_info *mtd, void *buf, unsigned int page) in mxs_read_page_ecc() 162 static int is_badblock(struct mtd_info *mtd, loff_t offs, int allowbbt) in is_badblock() 254 int nand_default_bbt(struct mtd_info *mtd) in nand_default_bbt()
|
| H A D | vf610_nfc.c | 198 static inline u32 vf610_nfc_read(struct mtd_info *mtd, uint reg) in vf610_nfc_read() 205 static inline void vf610_nfc_write(struct mtd_info *mtd, uint reg, u32 val) in vf610_nfc_write() 212 static inline void vf610_nfc_set(struct mtd_info *mtd, uint reg, u32 bits) in vf610_nfc_set() 217 static inline void vf610_nfc_clear(struct mtd_info *mtd, uint reg, u32 bits) in vf610_nfc_clear() 222 static inline void vf610_nfc_set_field(struct mtd_info *mtd, u32 reg, in vf610_nfc_set_field() 252 static void vf610_nfc_done(struct mtd_info *mtd) in vf610_nfc_done() 277 static u8 vf610_nfc_get_id(struct mtd_info *mtd, int col) in vf610_nfc_get_id() 292 static u8 vf610_nfc_get_status(struct mtd_info *mtd) in vf610_nfc_get_status() 326 static void vf610_nfc_addr_cycle(struct mtd_info *mtd, int column, int page) in vf610_nfc_addr_cycle() 340 static inline void vf610_nfc_ecc_mode(struct mtd_info *mtd, int ecc_mode) in vf610_nfc_ecc_mode() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/mtd/nand/onenand/ |
| H A D | onenand_base.c | 66 static int flexonenand_ooblayout_ecc(struct mtd_info *mtd, int section, in flexonenand_ooblayout_ecc() 78 static int flexonenand_ooblayout_free(struct mtd_info *mtd, int section, in flexonenand_ooblayout_free() 102 static int onenand_ooblayout_128_ecc(struct mtd_info *mtd, int section, in onenand_ooblayout_128_ecc() 114 static int onenand_ooblayout_128_free(struct mtd_info *mtd, int section, in onenand_ooblayout_128_free() 138 static int onenand_ooblayout_32_64_ecc(struct mtd_info *mtd, int section, in onenand_ooblayout_32_64_ecc() 150 static int onenand_ooblayout_32_64_free(struct mtd_info *mtd, int section, in onenand_ooblayout_32_64_free() 377 int flexonenand_region(struct mtd_info *mtd, loff_t addr) in flexonenand_region() 398 static int onenand_command(struct mtd_info *mtd, int cmd, loff_t addr, size_t len) in onenand_command() 553 static int onenand_wait(struct mtd_info *mtd, int state) in onenand_wait() 651 static int onenand_interrupt_wait(struct mtd_info *mtd, int state) in onenand_interrupt_wait() [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/mtd/onenand/ |
| H A D | onenand_base.c | 293 int flexonenand_region(struct mtd_info *mtd, loff_t addr) in flexonenand_region() 325 static int onenand_command(struct mtd_info *mtd, int cmd, loff_t addr, in onenand_command() 468 static int onenand_wait(struct mtd_info *mtd, int state) in onenand_wait() 515 static inline int onenand_bufferram_offset(struct mtd_info *mtd, int area) in onenand_bufferram_offset() 539 static int onenand_read_bufferram(struct mtd_info *mtd, loff_t addr, int area, in onenand_read_bufferram() 564 static int onenand_sync_read_bufferram(struct mtd_info *mtd, loff_t addr, int area, in onenand_sync_read_bufferram() 593 static int onenand_write_bufferram(struct mtd_info *mtd, loff_t addr, int area, in onenand_write_bufferram() 616 static int onenand_get_2x_blockpage(struct mtd_info *mtd, loff_t addr) in onenand_get_2x_blockpage() 640 static int onenand_check_bufferram(struct mtd_info *mtd, loff_t addr) in onenand_check_bufferram() 682 static int onenand_update_bufferram(struct mtd_info *mtd, loff_t addr, in onenand_update_bufferram() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/mtd/nand/raw/ |
| H A D | mpc5121_nfc.c | 122 static inline u16 nfc_read(struct mtd_info *mtd, uint reg) in nfc_read() 131 static inline void nfc_write(struct mtd_info *mtd, uint reg, u16 val) in nfc_write() 140 static inline void nfc_set(struct mtd_info *mtd, uint reg, u16 bits) in nfc_set() 146 static inline void nfc_clear(struct mtd_info *mtd, uint reg, u16 bits) in nfc_clear() 152 static inline void mpc5121_nfc_send_addr(struct mtd_info *mtd, u16 addr) in mpc5121_nfc_send_addr() 160 static inline void mpc5121_nfc_send_cmd(struct mtd_info *mtd, u16 cmd) in mpc5121_nfc_send_cmd() 168 static inline void mpc5121_nfc_send_prog_page(struct mtd_info *mtd) in mpc5121_nfc_send_prog_page() 176 static inline void mpc5121_nfc_send_read_page(struct mtd_info *mtd) in mpc5121_nfc_send_read_page() 184 static inline void mpc5121_nfc_send_read_id(struct mtd_info *mtd) in mpc5121_nfc_send_read_id() 192 static inline void mpc5121_nfc_send_read_status(struct mtd_info *mtd) in mpc5121_nfc_send_read_status() [all …]
|
| H A D | sm_common.c | 12 static int oob_sm_ooblayout_ecc(struct mtd_info *mtd, int section, in oob_sm_ooblayout_ecc() 24 static int oob_sm_ooblayout_free(struct mtd_info *mtd, int section, in oob_sm_ooblayout_free() 61 static int oob_sm_small_ooblayout_ecc(struct mtd_info *mtd, int section, in oob_sm_small_ooblayout_ecc() 73 static int oob_sm_small_ooblayout_free(struct mtd_info *mtd, int section, in oob_sm_small_ooblayout_free() 101 struct mtd_info *mtd = nand_to_mtd(chip); in sm_block_markbad() local 163 struct mtd_info *mtd = nand_to_mtd(chip); in sm_attach_chip() local 185 int sm_register_device(struct mtd_info *mtd, int smartmedia) in sm_register_device()
|
| /OK3568_Linux_fs/u-boot/drivers/mtd/nand/spi/ |
| H A D | xtx.c | 31 static int xt26g0xa_ooblayout_ecc(struct mtd_info *mtd, int section, in xt26g0xa_ooblayout_ecc() 43 static int xt26g0xa_ooblayout_free(struct mtd_info *mtd, int section, in xt26g0xa_ooblayout_free() 60 static int xt26g01b_ooblayout_ecc(struct mtd_info *mtd, int section, in xt26g01b_ooblayout_ecc() 66 static int xt26g01b_ooblayout_free(struct mtd_info *mtd, int section, in xt26g01b_ooblayout_free() 83 static int xt26g02b_ooblayout_ecc(struct mtd_info *mtd, int section, in xt26g02b_ooblayout_ecc() 95 static int xt26g02b_ooblayout_free(struct mtd_info *mtd, int section, in xt26g02b_ooblayout_free() 112 static int xt26g01c_ooblayout_ecc(struct mtd_info *mtd, int section, in xt26g01c_ooblayout_ecc() 124 static int xt26g01c_ooblayout_free(struct mtd_info *mtd, int section, in xt26g01c_ooblayout_free()
|
| /OK3568_Linux_fs/kernel/drivers/mtd/nand/spi/ |
| H A D | xtx.c | 29 static int xt26g0xa_ooblayout_ecc(struct mtd_info *mtd, int section, in xt26g0xa_ooblayout_ecc() 41 static int xt26g0xa_ooblayout_free(struct mtd_info *mtd, int section, in xt26g0xa_ooblayout_free() 58 static int xt26g01b_ooblayout_ecc(struct mtd_info *mtd, int section, in xt26g01b_ooblayout_ecc() 64 static int xt26g01b_ooblayout_free(struct mtd_info *mtd, int section, in xt26g01b_ooblayout_free() 81 static int xt26g02b_ooblayout_ecc(struct mtd_info *mtd, int section, in xt26g02b_ooblayout_ecc() 93 static int xt26g02b_ooblayout_free(struct mtd_info *mtd, int section, in xt26g02b_ooblayout_free() 110 static int xt26g01c_ooblayout_ecc(struct mtd_info *mtd, int section, in xt26g01c_ooblayout_ecc() 122 static int xt26g01c_ooblayout_free(struct mtd_info *mtd, int section, in xt26g01c_ooblayout_free()
|
| H A D | gigadevice.c | 66 static int gd5fxgq4xa_ooblayout_ecc(struct mtd_info *mtd, int section, in gd5fxgq4xa_ooblayout_ecc() 78 static int gd5fxgq4xa_ooblayout_free(struct mtd_info *mtd, int section, in gd5fxgq4xa_ooblayout_free() 124 static int gd5fxgqx_variant2_ooblayout_ecc(struct mtd_info *mtd, int section, in gd5fxgqx_variant2_ooblayout_ecc() 136 static int gd5fxgqx_variant2_ooblayout_free(struct mtd_info *mtd, int section, in gd5fxgqx_variant2_ooblayout_free() 155 static int gd5fxgq4xc_ooblayout_256_ecc(struct mtd_info *mtd, int section, in gd5fxgq4xc_ooblayout_256_ecc() 167 static int gd5fxgq4xc_ooblayout_256_free(struct mtd_info *mtd, int section, in gd5fxgq4xc_ooblayout_256_free() 184 static int gd5fxgqx_variant3_ooblayout_ecc(struct mtd_info *mtd, int section, in gd5fxgqx_variant3_ooblayout_ecc() 190 static int gd5fxgqx_variant3_ooblayout_free(struct mtd_info *mtd, int section, in gd5fxgqx_variant3_ooblayout_free()
|
| /OK3568_Linux_fs/kernel/drivers/mtd/chips/ |
| H A D | map_rom.c | 45 struct mtd_info *mtd; in map_rom_probe() local 72 static int maprom_point(struct mtd_info *mtd, loff_t from, size_t len, in maprom_point() 86 static int maprom_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in maprom_unpoint() 91 static int maprom_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) in maprom_read() 100 static void maprom_nop(struct mtd_info *mtd) in maprom_nop() 105 static int maprom_write (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char … in maprom_write() 110 static int maprom_erase (struct mtd_info *mtd, struct erase_info *info) in maprom_erase()
|
| H A D | map_absent.c | 47 struct mtd_info *mtd; in map_absent_probe() local 72 static int map_absent_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *b… in map_absent_read() 77 static int map_absent_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_ch… in map_absent_write() 82 static int map_absent_erase(struct mtd_info *mtd, struct erase_info *instr) in map_absent_erase() 87 static void map_absent_sync(struct mtd_info *mtd) in map_absent_sync() 92 static void map_absent_destroy(struct mtd_info *mtd) in map_absent_destroy()
|
| H A D | map_ram.c | 36 struct mtd_info *mtd; in map_ram_probe() local 86 static int mapram_point(struct mtd_info *mtd, loff_t from, size_t len, in mapram_point() 100 static int mapram_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in mapram_unpoint() 105 static int mapram_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) in mapram_read() 114 static int mapram_write (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char … in mapram_write() 123 static int mapram_erase (struct mtd_info *mtd, struct erase_info *instr) in mapram_erase() 137 static void mapram_nop(struct mtd_info *mtd) in mapram_nop()
|
| /OK3568_Linux_fs/kernel/drivers/rkflash/ |
| H A D | sfc_nand_mtd.c | 27 int sfc_nand_erase_mtd(struct mtd_info *mtd, u32 addr) in sfc_nand_erase_mtd() 40 static int sfc_nand_write_mtd(struct mtd_info *mtd, loff_t to, in sfc_nand_write_mtd() 78 static int sfc_nand_read_mtd(struct mtd_info *mtd, loff_t from, in sfc_nand_read_mtd() 133 int sfc_nand_isbad_mtd(struct mtd_info *mtd, loff_t ofs) in sfc_nand_isbad_mtd() 175 static int sfc_nand_markbad_mtd(struct mtd_info *mtd, loff_t ofs) in sfc_nand_markbad_mtd() 226 static int sfc_erase_mtd(struct mtd_info *mtd, struct erase_info *instr) in sfc_erase_mtd() 273 static int sfc_write_mtd(struct mtd_info *mtd, loff_t to, size_t len, in sfc_write_mtd() 291 static int sfc_read_mtd(struct mtd_info *mtd, loff_t from, size_t len, in sfc_read_mtd() 309 static int sfc_isbad_mtd(struct mtd_info *mtd, loff_t ofs) in sfc_isbad_mtd() 321 static int sfc_markbad_mtd(struct mtd_info *mtd, loff_t ofs) in sfc_markbad_mtd()
|
| /OK3568_Linux_fs/kernel/include/linux/mtd/ |
| H A D | mtd.h | 395 static inline struct mtd_info *mtd_get_master(struct mtd_info *mtd) in mtd_get_master() 403 static inline u64 mtd_get_master_ofs(struct mtd_info *mtd, u64 ofs) in mtd_get_master_ofs() 413 static inline bool mtd_is_partition(const struct mtd_info *mtd) in mtd_is_partition() 418 static inline bool mtd_has_partitions(const struct mtd_info *mtd) in mtd_has_partitions() 441 static inline void mtd_set_ooblayout(struct mtd_info *mtd, in mtd_set_ooblayout() 447 static inline void mtd_set_pairing_scheme(struct mtd_info *mtd, in mtd_set_pairing_scheme() 453 static inline void mtd_set_of_node(struct mtd_info *mtd, in mtd_set_of_node() 461 static inline struct device_node *mtd_get_of_node(struct mtd_info *mtd) in mtd_get_of_node() 466 static inline u32 mtd_oobavail(struct mtd_info *mtd, struct mtd_oob_ops *ops) in mtd_oobavail() 471 static inline int mtd_max_bad_blocks(struct mtd_info *mtd, in mtd_max_bad_blocks() [all …]
|