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)
588 ns->nand_pages_slab = kmem_cache_create("nandsim",
607 static void ns_free_device(struct nandsim *ns)
635 * Initialize the nandsim structure.
642 struct nandsim *ns = nand_get_controller_data(chip);
648 NS_ERR("init_nandsim: nandsim is already initialized\n");
786 * Free the nandsim structure.
788 static void ns_free(struct nandsim *ns)
801 static int ns_parse_badblocks(struct nandsim *ns, struct mtd_info *mtd)
1137 static inline void ns_accept_addr_byte(struct nandsim *ns, u_char bt)
1155 static inline void ns_switch_to_ready_state(struct nandsim *ns, u_char status)
1215 static int ns_find_operation(struct nandsim *ns, uint32_t flag)
1300 static void ns_put_pages(struct nandsim *ns)
1309 static int ns_get_pages(struct nandsim *ns, struct file *file, size_t count,
1340 static ssize_t ns_read_file(struct nandsim *ns, struct file *file, void *buf,
1357 static ssize_t ns_write_file(struct nandsim *ns, struct file *file, void *buf,
1377 static inline union ns_mem *NS_GET_PAGE(struct nandsim *ns)
1385 static inline u_char *NS_PAGE_BYTE_OFF(struct nandsim *ns)
1390 static int ns_do_read_error(struct nandsim *ns, int num)
1402 static void ns_do_bit_flips(struct nandsim *ns, int num)
1422 static void ns_read_page(struct nandsim *ns, int num)
1467 static void ns_erase_sector(struct nandsim *ns)
1495 static int ns_prog_page(struct nandsim *ns, int num)
1570 static int ns_do_state_action(struct nandsim *ns, uint32_t action)
1720 static void ns_switch_state(struct nandsim *ns)
1864 struct nandsim *ns = nand_get_controller_data(chip);
1925 struct nandsim *ns = nand_get_controller_data(chip);
2083 struct nandsim *ns = nand_get_controller_data(chip);
2110 struct nandsim *ns = nand_get_controller_data(chip);
2160 struct nandsim *ns = nand_get_controller_data(chip);
2163 /* The current implementation of nandsim needs to know the
2263 struct nandsim *ns;
2271 ns = kzalloc(sizeof(struct nandsim), GFP_KERNEL);
2299 * Perform minimum nandsim structure initialization to handle
2428 struct nandsim *ns = nand_get_controller_data(chip);