Lines Matching defs:nandsim

13 #define pr_fmt(fmt)  "[nandsim]" fmt
188 /* Is the nandsim structure initialized ? */
289 struct nandsim {
495 * @ns: nandsim device description object
500 static int ns_debugfs_create(struct nandsim *ns)
525 static void ns_debugfs_remove(struct nandsim *ns)
536 static int __init ns_alloc_device(struct nandsim *ns)
589 ns->nand_pages_slab = kmem_cache_create("nandsim",
608 static void ns_free_device(struct nandsim *ns)
636 * Initialize the nandsim structure.
643 struct nandsim *ns = nand_get_controller_data(chip);
649 NS_ERR("init_nandsim: nandsim is already initialized\n");
787 * Free the nandsim structure.
789 static void ns_free(struct nandsim *ns)
802 static int ns_parse_badblocks(struct nandsim *ns, struct mtd_info *mtd)
1138 static inline void ns_accept_addr_byte(struct nandsim *ns, u_char bt)
1156 static inline void ns_switch_to_ready_state(struct nandsim *ns, u_char status)
1216 static int ns_find_operation(struct nandsim *ns, uint32_t flag)
1301 static void ns_put_pages(struct nandsim *ns)
1310 static int ns_get_pages(struct nandsim *ns, struct file *file, size_t count,
1341 static ssize_t ns_read_file(struct nandsim *ns, struct file *file, void *buf,
1358 static ssize_t ns_write_file(struct nandsim *ns, struct file *file, void *buf,
1378 static inline union ns_mem *NS_GET_PAGE(struct nandsim *ns)
1386 static inline u_char *NS_PAGE_BYTE_OFF(struct nandsim *ns)
1391 static int ns_do_read_error(struct nandsim *ns, int num)
1403 static void ns_do_bit_flips(struct nandsim *ns, int num)
1423 static void ns_read_page(struct nandsim *ns, int num)
1468 static void ns_erase_sector(struct nandsim *ns)
1496 static int ns_prog_page(struct nandsim *ns, int num)
1571 static int ns_do_state_action(struct nandsim *ns, uint32_t action)
1721 static void ns_switch_state(struct nandsim *ns)
1865 struct nandsim *ns = nand_get_controller_data(chip);
1926 struct nandsim *ns = nand_get_controller_data(chip);
2084 struct nandsim *ns = nand_get_controller_data(chip);
2111 struct nandsim *ns = nand_get_controller_data(chip);
2161 struct nandsim *ns = nand_get_controller_data(chip);
2164 /* The current implementation of nandsim needs to know the
2264 struct nandsim *ns;
2272 ns = kzalloc(sizeof(struct nandsim), GFP_KERNEL);
2300 * Perform minimum nandsim structure initialization to handle
2429 struct nandsim *ns = nand_get_controller_data(chip);