Lines Matching defs:ns
190 #define NS_IS_INITIALIZED(ns) ((ns)->geom.totsz != 0) argument
193 #define NS_STATUS_OK(ns) (NAND_STATUS_READY | (NAND_STATUS_WP * ((ns)->lines.wp == 0))) argument
196 #define NS_STATUS_FAILED(ns) (NAND_STATUS_FAIL | NS_STATUS_OK(ns)) argument
199 #define NS_RAW_OFFSET(ns) \ argument
203 #define NS_RAW_OFFSET_OOB(ns) (NS_RAW_OFFSET(ns) + ns->geom.pgsz) argument
498 static int ns_debugfs_create(struct nandsim *ns) in ns_debugfs_create()
523 static void ns_debugfs_remove(struct nandsim *ns) in ns_debugfs_remove()
534 static int __init ns_alloc_device(struct nandsim *ns) in ns_alloc_device()
606 static void ns_free_device(struct nandsim *ns) in ns_free_device()
641 struct nandsim *ns = nand_get_controller_data(chip); in ns_init() local
787 static void ns_free(struct nandsim *ns) in ns_free()
800 static int ns_parse_badblocks(struct nandsim *ns, struct mtd_info *mtd) in ns_parse_badblocks()
1143 static inline void ns_accept_addr_byte(struct nandsim *ns, u_char bt) in ns_accept_addr_byte()
1161 static inline void ns_switch_to_ready_state(struct nandsim *ns, u_char status) in ns_switch_to_ready_state()
1221 static int ns_find_operation(struct nandsim *ns, uint32_t flag) in ns_find_operation()
1306 static void ns_put_pages(struct nandsim *ns) in ns_put_pages()
1315 static int ns_get_pages(struct nandsim *ns, struct file *file, size_t count, in ns_get_pages()
1346 static ssize_t ns_read_file(struct nandsim *ns, struct file *file, void *buf, in ns_read_file()
1363 static ssize_t ns_write_file(struct nandsim *ns, struct file *file, void *buf, in ns_write_file()
1383 static inline union ns_mem *NS_GET_PAGE(struct nandsim *ns) in NS_GET_PAGE()
1391 static inline u_char *NS_PAGE_BYTE_OFF(struct nandsim *ns) in NS_PAGE_BYTE_OFF()
1396 static int ns_do_read_error(struct nandsim *ns, int num) in ns_do_read_error()
1408 static void ns_do_bit_flips(struct nandsim *ns, int num) in ns_do_bit_flips()
1428 static void ns_read_page(struct nandsim *ns, int num) in ns_read_page()
1473 static void ns_erase_sector(struct nandsim *ns) in ns_erase_sector()
1501 static int ns_prog_page(struct nandsim *ns, int num) in ns_prog_page()
1576 static int ns_do_state_action(struct nandsim *ns, uint32_t action) in ns_do_state_action()
1726 static void ns_switch_state(struct nandsim *ns) in ns_switch_state()
1877 struct nandsim *ns = nand_get_controller_data(chip); in ns_nand_read_byte() local
1938 struct nandsim *ns = nand_get_controller_data(chip); in ns_nand_write_byte() local
2096 struct nandsim *ns = nand_get_controller_data(chip); in ns_nand_write_buf() local
2123 struct nandsim *ns = nand_get_controller_data(chip); in ns_nand_read_buf() local
2173 struct nandsim *ns = nand_get_controller_data(chip); in ns_exec_op() local
2260 struct nandsim *ns; in ns_init_module() local
2427 struct nandsim *ns = nand_get_controller_data(chip); in ns_cleanup_module() local