Lines Matching defs:ns

189 #define NS_IS_INITIALIZED(ns) ((ns)->geom.totsz != 0)  argument
192 #define NS_STATUS_OK(ns) (NAND_STATUS_READY | (NAND_STATUS_WP * ((ns)->lines.wp == 0))) argument
195 #define NS_STATUS_FAILED(ns) (NAND_STATUS_FAIL | NS_STATUS_OK(ns)) argument
198 #define NS_RAW_OFFSET(ns) \ argument
202 #define NS_RAW_OFFSET_OOB(ns) (NS_RAW_OFFSET(ns) + ns->geom.pgsz) argument
205 #define NS_PAGE_BYTE_SHIFT(ns) ((ns)->regs.column + (ns)->regs.off) argument
500 static int ns_debugfs_create(struct nandsim *ns) in ns_debugfs_create()
525 static void ns_debugfs_remove(struct nandsim *ns) in ns_debugfs_remove()
536 static int __init ns_alloc_device(struct nandsim *ns) in ns_alloc_device()
608 static void ns_free_device(struct nandsim *ns) in ns_free_device()
643 struct nandsim *ns = nand_get_controller_data(chip); in ns_init() local
789 static void ns_free(struct nandsim *ns) in ns_free()
802 static int ns_parse_badblocks(struct nandsim *ns, struct mtd_info *mtd) in ns_parse_badblocks()
1138 static inline void ns_accept_addr_byte(struct nandsim *ns, u_char bt) in ns_accept_addr_byte()
1156 static inline void ns_switch_to_ready_state(struct nandsim *ns, u_char status) in ns_switch_to_ready_state()
1216 static int ns_find_operation(struct nandsim *ns, uint32_t flag) in ns_find_operation()
1301 static void ns_put_pages(struct nandsim *ns) in ns_put_pages()
1310 static int ns_get_pages(struct nandsim *ns, struct file *file, size_t count, in ns_get_pages()
1341 static ssize_t ns_read_file(struct nandsim *ns, struct file *file, void *buf, in ns_read_file()
1358 static ssize_t ns_write_file(struct nandsim *ns, struct file *file, void *buf, in ns_write_file()
1378 static inline union ns_mem *NS_GET_PAGE(struct nandsim *ns) in NS_GET_PAGE()
1386 static inline u_char *NS_PAGE_BYTE_OFF(struct nandsim *ns) in NS_PAGE_BYTE_OFF()
1391 static int ns_do_read_error(struct nandsim *ns, int num) in ns_do_read_error()
1403 static void ns_do_bit_flips(struct nandsim *ns, int num) in ns_do_bit_flips()
1423 static void ns_read_page(struct nandsim *ns, int num) in ns_read_page()
1468 static void ns_erase_sector(struct nandsim *ns) in ns_erase_sector()
1496 static int ns_prog_page(struct nandsim *ns, int num) in ns_prog_page()
1571 static int ns_do_state_action(struct nandsim *ns, uint32_t action) in ns_do_state_action()
1721 static void ns_switch_state(struct nandsim *ns) in ns_switch_state()
1865 struct nandsim *ns = nand_get_controller_data(chip); in ns_nand_read_byte() local
1926 struct nandsim *ns = nand_get_controller_data(chip); in ns_nand_write_byte() local
2084 struct nandsim *ns = nand_get_controller_data(chip); in ns_nand_write_buf() local
2111 struct nandsim *ns = nand_get_controller_data(chip); in ns_nand_read_buf() local
2161 struct nandsim *ns = nand_get_controller_data(chip); in ns_exec_op() local
2264 struct nandsim *ns; in ns_init_module() local
2429 struct nandsim *ns = nand_get_controller_data(chip); in ns_cleanup_module() local