Lines Matching refs:nc
30 struct nand_chip *nc = mtd->priv; in orion_nand_cmd_ctrl() local
31 struct orion_nand_data *board = nc->priv; in orion_nand_cmd_ctrl()
44 if (nc->options & NAND_BUSWIDTH_16) in orion_nand_cmd_ctrl()
47 writeb(cmd, nc->IO_ADDR_W + offs); in orion_nand_cmd_ctrl()
53 struct nand_chip *nc; in orion_nand_probe() local
62 nc = kzalloc(sizeof(struct nand_chip) + sizeof(struct mtd_info), GFP_KERNEL); in orion_nand_probe()
63 if (!nc) { in orion_nand_probe()
68 mtd = (struct mtd_info *)(nc + 1); in orion_nand_probe()
80 mtd->priv = nc; in orion_nand_probe()
83 nc->priv = board; in orion_nand_probe()
84 nc->IO_ADDR_R = nc->IO_ADDR_W = io_base; in orion_nand_probe()
85 nc->cmd_ctrl = orion_nand_cmd_ctrl; in orion_nand_probe()
86 nc->ecc.mode = NAND_ECC_SOFT; in orion_nand_probe()
89 nc->chip_delay = board->chip_delay; in orion_nand_probe()
92 nc->options |= NAND_BUSWIDTH_16; in orion_nand_probe()
131 kfree(nc); in orion_nand_probe()
139 struct nand_chip *nc = mtd->priv; in orion_nand_remove() local
143 iounmap(nc->IO_ADDR_W); in orion_nand_remove()
145 kfree(nc); in orion_nand_remove()