• Home
  • Raw
  • Download

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
497 static int ns_debugfs_create(struct nandsim *ns) in ns_debugfs_create()
522 static void ns_debugfs_remove(struct nandsim *ns) in ns_debugfs_remove()
533 static int __init ns_alloc_device(struct nandsim *ns) in ns_alloc_device()
605 static void ns_free_device(struct nandsim *ns) in ns_free_device()
640 struct nandsim *ns = nand_get_controller_data(chip); in ns_init() local
786 static void ns_free(struct nandsim *ns) in ns_free()
799 static int ns_parse_badblocks(struct nandsim *ns, struct mtd_info *mtd) in ns_parse_badblocks()
1142 static inline void ns_accept_addr_byte(struct nandsim *ns, u_char bt) in ns_accept_addr_byte()
1160 static inline void ns_switch_to_ready_state(struct nandsim *ns, u_char status) in ns_switch_to_ready_state()
1220 static int ns_find_operation(struct nandsim *ns, uint32_t flag) in ns_find_operation()
1305 static void ns_put_pages(struct nandsim *ns) in ns_put_pages()
1314 static int ns_get_pages(struct nandsim *ns, struct file *file, size_t count, in ns_get_pages()
1345 static ssize_t ns_read_file(struct nandsim *ns, struct file *file, void *buf, in ns_read_file()
1362 static ssize_t ns_write_file(struct nandsim *ns, struct file *file, void *buf, in ns_write_file()
1382 static inline union ns_mem *NS_GET_PAGE(struct nandsim *ns) in NS_GET_PAGE()
1390 static inline u_char *NS_PAGE_BYTE_OFF(struct nandsim *ns) in NS_PAGE_BYTE_OFF()
1395 static int ns_do_read_error(struct nandsim *ns, int num) in ns_do_read_error()
1407 static void ns_do_bit_flips(struct nandsim *ns, int num) in ns_do_bit_flips()
1427 static void ns_read_page(struct nandsim *ns, int num) in ns_read_page()
1472 static void ns_erase_sector(struct nandsim *ns) in ns_erase_sector()
1500 static int ns_prog_page(struct nandsim *ns, int num) in ns_prog_page()
1575 static int ns_do_state_action(struct nandsim *ns, uint32_t action) in ns_do_state_action()
1725 static void ns_switch_state(struct nandsim *ns) in ns_switch_state()
1876 struct nandsim *ns = nand_get_controller_data(chip); in ns_nand_read_byte() local
1937 struct nandsim *ns = nand_get_controller_data(chip); in ns_nand_write_byte() local
2095 struct nandsim *ns = nand_get_controller_data(chip); in ns_nand_write_buf() local
2122 struct nandsim *ns = nand_get_controller_data(chip); in ns_nand_read_buf() local
2172 struct nandsim *ns = nand_get_controller_data(chip); in ns_exec_op() local
2260 struct nandsim *ns; in ns_init_module() local
2425 struct nandsim *ns = nand_get_controller_data(chip); in ns_cleanup_module() local