Searched refs:nuc900_nand (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/drivers/mtd/nand/
H A Dnuc900_nand.c57 struct nuc900_nand { struct
81 struct nuc900_nand *nand; nuc900_nand_read_byte()
83 nand = container_of(mtd, struct nuc900_nand, mtd); nuc900_nand_read_byte()
94 struct nuc900_nand *nand; nuc900_nand_read_buf()
96 nand = container_of(mtd, struct nuc900_nand, mtd); nuc900_nand_read_buf()
106 struct nuc900_nand *nand; nuc900_nand_write_buf()
108 nand = container_of(mtd, struct nuc900_nand, mtd); nuc900_nand_write_buf()
114 static int nuc900_check_rb(struct nuc900_nand *nand) nuc900_check_rb()
127 struct nuc900_nand *nand; nuc900_nand_devready()
130 nand = container_of(mtd, struct nuc900_nand, mtd); nuc900_nand_devready()
140 struct nuc900_nand *nand; nuc900_nand_command_lp()
142 nand = container_of(mtd, struct nuc900_nand, mtd); nuc900_nand_command_lp()
219 static void nuc900_nand_enable(struct nuc900_nand *nand) nuc900_nand_enable()
242 struct nuc900_nand *nuc900_nand; nuc900_nand_probe() local
246 nuc900_nand = devm_kzalloc(&pdev->dev, sizeof(struct nuc900_nand), nuc900_nand_probe()
248 if (!nuc900_nand) nuc900_nand_probe()
250 chip = &(nuc900_nand->chip); nuc900_nand_probe()
252 nuc900_nand->mtd.priv = chip; nuc900_nand_probe()
253 nuc900_nand->mtd.dev.parent = &pdev->dev; nuc900_nand_probe()
254 spin_lock_init(&nuc900_nand->lock); nuc900_nand_probe()
256 nuc900_nand->clk = devm_clk_get(&pdev->dev, NULL); nuc900_nand_probe()
257 if (IS_ERR(nuc900_nand->clk)) nuc900_nand_probe()
259 clk_enable(nuc900_nand->clk); nuc900_nand_probe()
271 nuc900_nand->reg = devm_ioremap_resource(&pdev->dev, res); nuc900_nand_probe()
272 if (IS_ERR(nuc900_nand->reg)) nuc900_nand_probe()
273 return PTR_ERR(nuc900_nand->reg); nuc900_nand_probe()
275 nuc900_nand_enable(nuc900_nand); nuc900_nand_probe()
277 if (nand_scan(&(nuc900_nand->mtd), 1)) nuc900_nand_probe()
280 mtd_device_register(&(nuc900_nand->mtd), partitions, nuc900_nand_probe()
283 platform_set_drvdata(pdev, nuc900_nand); nuc900_nand_probe()
290 struct nuc900_nand *nuc900_nand = platform_get_drvdata(pdev); nuc900_nand_remove() local
292 nand_release(&nuc900_nand->mtd); nuc900_nand_remove()
293 clk_disable(nuc900_nand->clk); nuc900_nand_remove()
H A DMakefile47 obj-$(CONFIG_MTD_NAND_NUC900) += nuc900_nand.o

Completed in 60 milliseconds