Lines Matching refs:nandsim

305 struct nandsim {  struct
524 static int nandsim_debugfs_create(struct nandsim *dev) in nandsim_debugfs_create()
560 static void nandsim_debugfs_remove(struct nandsim *ns) in nandsim_debugfs_remove()
572 static int alloc_device(struct nandsim *ns) in alloc_device()
635 static void free_device(struct nandsim *ns) in free_device()
670 struct nandsim *ns = chip->priv; in init_nandsim()
807 static void free_nandsim(struct nandsim *ns) in free_nandsim()
815 static int parse_badblocks(struct nandsim *ns, struct mtd_info *mtd) in parse_badblocks()
1176 static inline void accept_addr_byte(struct nandsim *ns, u_char bt) in accept_addr_byte()
1194 static inline void switch_to_ready_state(struct nandsim *ns, u_char status) in switch_to_ready_state()
1253 static int find_operation(struct nandsim *ns, uint32_t flag) in find_operation()
1337 static void put_pages(struct nandsim *ns) in put_pages()
1346 static int get_pages(struct nandsim *ns, struct file *file, size_t count, loff_t pos) in get_pages()
1390 static ssize_t read_file(struct nandsim *ns, struct file *file, void *buf, size_t count, loff_t pos) in read_file()
1405 static ssize_t write_file(struct nandsim *ns, struct file *file, void *buf, size_t count, loff_t po… in write_file()
1423 static inline union ns_mem *NS_GET_PAGE(struct nandsim *ns) in NS_GET_PAGE()
1431 static inline u_char *NS_PAGE_BYTE_OFF(struct nandsim *ns) in NS_PAGE_BYTE_OFF()
1436 static int do_read_error(struct nandsim *ns, int num) in do_read_error()
1448 static void do_bit_flips(struct nandsim *ns, int num) in do_bit_flips()
1468 static void read_page(struct nandsim *ns, int num) in read_page()
1512 static void erase_sector(struct nandsim *ns) in erase_sector()
1540 static int prog_page(struct nandsim *ns, int num) in prog_page()
1614 static int do_state_action(struct nandsim *ns, uint32_t action) in do_state_action()
1764 static void switch_state(struct nandsim *ns) in switch_state()
1911 struct nandsim *ns = ((struct nand_chip *)mtd->priv)->priv; in ns_nand_read_byte()
1972 struct nandsim *ns = ((struct nand_chip *)mtd->priv)->priv; in ns_nand_write_byte()
2126 struct nandsim *ns = ((struct nand_chip *)mtd->priv)->priv; in ns_hwcontrol()
2153 struct nandsim *ns = ((struct nand_chip *)mtd->priv)->priv; in ns_nand_write_buf()
2180 struct nandsim *ns = ((struct nand_chip *)mtd->priv)->priv; in ns_nand_read_buf()
2230 struct nandsim *nand; in ns_init_module()
2240 + sizeof(struct nandsim), GFP_KERNEL); in ns_init_module()
2247 nand = (struct nandsim *)(chip + 1); in ns_init_module()
2408 struct nandsim *ns = ((struct nand_chip *)nsmtd->priv)->priv; in ns_cleanup_module()