Lines Matching defs:docg3

92 static inline u8 doc_readb(struct docg3 *docg3, u16 reg)  in doc_readb()
100 static inline u16 doc_readw(struct docg3 *docg3, u16 reg) in doc_readw()
108 static inline void doc_writeb(struct docg3 *docg3, u8 val, u16 reg) in doc_writeb()
114 static inline void doc_writew(struct docg3 *docg3, u16 val, u16 reg) in doc_writew()
120 static inline void doc_flash_command(struct docg3 *docg3, u8 cmd) in doc_flash_command()
125 static inline void doc_flash_sequence(struct docg3 *docg3, u8 seq) in doc_flash_sequence()
130 static inline void doc_flash_address(struct docg3 *docg3, u8 addr) in doc_flash_address()
137 static int doc_register_readb(struct docg3 *docg3, int reg) in doc_register_readb()
147 static int doc_register_readw(struct docg3 *docg3, int reg) in doc_register_readw()
168 static void doc_delay(struct docg3 *docg3, int nbNOPs) in doc_delay()
177 static int is_prot_seq_error(struct docg3 *docg3) in is_prot_seq_error()
185 static int doc_is_ready(struct docg3 *docg3) in doc_is_ready()
193 static int doc_wait_ready(struct docg3 *docg3) in doc_wait_ready()
208 static int doc_reset_seq(struct docg3 *docg3) in doc_reset_seq()
231 static void doc_read_data_area(struct docg3 *docg3, void *buf, int len, in doc_read_data_area()
276 static void doc_write_data_area(struct docg3 *docg3, const void *buf, int len) in doc_write_data_area()
317 static void doc_set_reliable_mode(struct docg3 *docg3) in doc_set_reliable_mode()
351 static void doc_set_asic_mode(struct docg3 *docg3, u8 mode) in doc_set_asic_mode()
373 static void doc_set_device_id(struct docg3 *docg3, int id) in doc_set_device_id()
397 static int doc_set_extra_page_mode(struct docg3 *docg3) in doc_set_extra_page_mode()
418 static void doc_setup_addr_sector(struct docg3 *docg3, int sector) in doc_setup_addr_sector()
433 static void doc_setup_writeaddr_sector(struct docg3 *docg3, int sector, int ofs) in doc_setup_writeaddr_sector()
456 static int doc_read_seek(struct docg3 *docg3, int block0, int block1, int page, in doc_read_seek()
505 static int doc_write_seek(struct docg3 *docg3, int block0, int block1, int page, in doc_write_seek()
557 static int doc_read_page_ecc_init(struct docg3 *docg3, int len) in doc_read_page_ecc_init()
578 static int doc_write_page_ecc_init(struct docg3 *docg3, int len) in doc_write_page_ecc_init()
596 static void doc_ecc_disable(struct docg3 *docg3) in doc_ecc_disable()
610 static void doc_hamming_ecc_init(struct docg3 *docg3, int nb_bytes) in doc_hamming_ecc_init()
643 static int doc_ecc_bch_fix_data(struct docg3 *docg3, void *buf, u8 *hwecc) in doc_ecc_bch_fix_data()
695 static int doc_read_page_prepare(struct docg3 *docg3, int block0, int block1, in doc_read_page_prepare()
753 static int doc_read_page_getbytes(struct docg3 *docg3, int len, u_char *buf, in doc_read_page_getbytes()
773 static void doc_write_page_putbytes(struct docg3 *docg3, int len, in doc_write_page_putbytes()
785 static void doc_get_bch_hw_ecc(struct docg3 *docg3, u8 *hwecc) in doc_get_bch_hw_ecc()
797 static void doc_page_finish(struct docg3 *docg3) in doc_page_finish()
811 static void doc_read_page_finish(struct docg3 *docg3) in doc_read_page_finish()
868 struct docg3 *docg3 = mtd->priv; in doc_read_oob() local
984 static int doc_reload_bbt(struct docg3 *docg3) in doc_reload_bbt()
1015 struct docg3 *docg3 = mtd->priv; in doc_block_isbad() local
1084 static int doc_get_op_status(struct docg3 *docg3) in doc_get_op_status()
1107 static int doc_write_erase_wait_status(struct docg3 *docg3) in doc_write_erase_wait_status()
1142 static int doc_erase_block(struct docg3 *docg3, int block0, int block1) in doc_erase_block()
1186 struct docg3 *docg3 = mtd->priv; in doc_erase() local
1231 static int doc_write_page(struct docg3 *docg3, loff_t to, const u_char *buf, in doc_write_page()
1344 static int doc_backup_oob(struct docg3 *docg3, loff_t to, in doc_backup_oob()
1385 struct docg3 *docg3 = mtd->priv; in doc_write_oob() local
1479 struct docg3 *docg3 = sysfs_dev2docg3(dev, attr); in dps0_is_key_locked() local
1494 struct docg3 *docg3 = sysfs_dev2docg3(dev, attr); in dps1_is_key_locked() local
1510 struct docg3 *docg3 = sysfs_dev2docg3(dev, attr); in dps0_insert_key() local
1529 struct docg3 *docg3 = sysfs_dev2docg3(dev, attr); in dps1_insert_key() local
1602 struct docg3 *docg3 = s->private; in flashcontrol_show() local
1624 struct docg3 *docg3 = s->private; in asic_mode_show() local
1661 struct docg3 *docg3 = s->private; in device_id_show() local
1675 struct docg3 *docg3 = s->private; in protection_show() local
1728 struct docg3 *docg3 = floor->priv; in doc_dbg_register() local
1755 struct docg3 *docg3 = mtd->priv; in doc_set_driver_info() local
1809 struct docg3 *docg3; in doc_probe_device() local
1877 struct docg3 *docg3 = mtd->priv; in doc_release_device() local
1896 struct docg3 *docg3; in docg3_resume() local
1923 struct docg3 *docg3; in docg3_suspend() local
2052 struct docg3 *docg3 = cascade->floors[0]->priv; in docg3_release() local