Lines Matching defs:ns
199 #define NS_IS_INITIALIZED(ns) ((ns)->geom.totsz != 0) argument
202 #define NS_STATUS_OK(ns) (NAND_STATUS_READY | (NAND_STATUS_WP * ((ns)->lines.wp == 0))) argument
205 #define NS_STATUS_FAILED(ns) (NAND_STATUS_FAIL | NS_STATUS_OK(ns)) argument
208 #define NS_RAW_OFFSET(ns) \ argument
212 #define NS_RAW_OFFSET_OOB(ns) (NS_RAW_OFFSET(ns) + ns->geom.pgsz) argument
459 static int alloc_device(struct nandsim *ns) in alloc_device()
521 static void free_device(struct nandsim *ns) in free_device()
564 struct nandsim *ns = chip->priv; in init_nandsim() local
714 static void free_nandsim(struct nandsim *ns) in free_nandsim()
722 static int parse_badblocks(struct nandsim *ns, struct mtd_info *mtd) in parse_badblocks()
1138 static inline void accept_addr_byte(struct nandsim *ns, u_char bt) in accept_addr_byte()
1156 static inline void switch_to_ready_state(struct nandsim *ns, u_char status) in switch_to_ready_state()
1215 static int find_operation(struct nandsim *ns, uint32_t flag) in find_operation()
1299 static void put_pages(struct nandsim *ns) in put_pages()
1308 static int get_pages(struct nandsim *ns, struct file *file, size_t count, loff_t pos) in get_pages()
1352 static ssize_t read_file(struct nandsim *ns, struct file *file, void *buf, size_t count, loff_t *po… in read_file()
1371 static ssize_t write_file(struct nandsim *ns, struct file *file, void *buf, size_t count, loff_t *p… in write_file()
1393 static inline union ns_mem *NS_GET_PAGE(struct nandsim *ns) in NS_GET_PAGE()
1401 static inline u_char *NS_PAGE_BYTE_OFF(struct nandsim *ns) in NS_PAGE_BYTE_OFF()
1406 int do_read_error(struct nandsim *ns, int num) in do_read_error()
1421 void do_bit_flips(struct nandsim *ns, int num) in do_bit_flips()
1441 static void read_page(struct nandsim *ns, int num) in read_page()
1485 static void erase_sector(struct nandsim *ns) in erase_sector()
1513 static int prog_page(struct nandsim *ns, int num) in prog_page()
1589 static int do_state_action(struct nandsim *ns, uint32_t action) in do_state_action()
1739 static void switch_state(struct nandsim *ns) in switch_state()
1887 struct nandsim *ns = ((struct nand_chip *)mtd->priv)->priv; in ns_nand_read_byte() local
1960 struct nandsim *ns = ((struct nand_chip *)mtd->priv)->priv; in ns_nand_write_byte() local
2115 struct nandsim *ns = ((struct nand_chip *)mtd->priv)->priv; in ns_hwcontrol() local
2142 struct nandsim *ns = ((struct nand_chip *)mtd->priv)->priv; in ns_nand_write_buf() local
2169 struct nandsim *ns = ((struct nand_chip *)mtd->priv)->priv; in ns_nand_read_buf() local
2412 struct nandsim *ns = ((struct nand_chip *)nsmtd->priv)->priv; in ns_cleanup_module() local