• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/mtd/nand/

Lines Matching refs:nandsim

25  * $Id: nandsim.c,v 1.1.1.1 2007/08/03 18:52:44 Exp $
160 #define NS_OUTPUT_PREFIX "[nandsim]"
180 /* Is the nandsim structure initialized ? */
276 struct nandsim {
421 static int alloc_device(struct nandsim *ns)
440 static void free_device(struct nandsim *ns)
461 * Initialize the nandsim structure.
468 struct nandsim *ns = (struct nandsim *)(chip->priv);
474 NS_ERR("init_nandsim: nandsim is already initialized\n");
611 * Free the nandsim structure.
613 static void free_nandsim(struct nandsim *ns)
621 static int parse_badblocks(struct nandsim *ns, struct mtd_info *mtd)
1025 static inline void accept_addr_byte(struct nandsim *ns, u_char bt)
1043 static inline void switch_to_ready_state(struct nandsim *ns, u_char status)
1102 static int find_operation(struct nandsim *ns, uint32_t flag)
1189 static inline union ns_mem *NS_GET_PAGE(struct nandsim *ns)
1197 static inline u_char *NS_PAGE_BYTE_OFF(struct nandsim *ns)
1205 static void read_page(struct nandsim *ns, int num)
1245 static void erase_sector(struct nandsim *ns)
1264 static int prog_page(struct nandsim *ns, int num)
1293 static int do_state_action(struct nandsim *ns, uint32_t action)
1443 static void switch_state(struct nandsim *ns)
1586 struct nandsim *ns = (struct nandsim *)((struct nand_chip *)mtd->priv)->priv;
1659 struct nandsim *ns = (struct nandsim *)((struct nand_chip *)mtd->priv)->priv;
1810 struct nandsim *ns = ((struct nand_chip *)mtd->priv)->priv;
1837 struct nandsim *ns = (struct nandsim *)((struct nand_chip *)mtd->priv)->priv;
1864 struct nandsim *ns = (struct nandsim *)((struct nand_chip *)mtd->priv)->priv;
1934 struct nandsim *nand;
1942 /* Allocate and initialize mtd_info, nand_chip and nandsim structures */
1944 + sizeof(struct nandsim), GFP_KERNEL);
1951 nand = (struct nandsim *)(chip + 1);
1970 * Perform minimum nandsim structure initialization to handle
2056 struct nandsim *ns = (struct nandsim *)(((struct nand_chip *)nsmtd->priv)->priv);
2059 free_nandsim(ns); /* Free nandsim private resources */