Lines Matching refs:host

49 	struct socrates_nand_host *host = this->priv;  in socrates_nand_write_buf()  local
52 out_be32(host->io_base, FPGA_NAND_ENABLE | in socrates_nand_write_buf()
68 struct socrates_nand_host *host = this->priv; in socrates_nand_read_buf() local
73 out_be32(host->io_base, val); in socrates_nand_read_buf()
75 buf[i] = (in_be32(host->io_base) >> in socrates_nand_read_buf()
109 struct socrates_nand_host *host = nand_chip->priv; in socrates_nand_cmd_ctrl() local
125 out_be32(host->io_base, val); in socrates_nand_cmd_ctrl()
134 struct socrates_nand_host *host = nand_chip->priv; in socrates_nand_device_ready() local
136 if (in_be32(host->io_base) & FPGA_NAND_BUSY) in socrates_nand_device_ready()
146 struct socrates_nand_host *host; in socrates_nand_probe() local
153 host = devm_kzalloc(&ofdev->dev, sizeof(*host), GFP_KERNEL); in socrates_nand_probe()
154 if (!host) in socrates_nand_probe()
157 host->io_base = of_iomap(ofdev->dev.of_node, 0); in socrates_nand_probe()
158 if (host->io_base == NULL) { in socrates_nand_probe()
163 mtd = &host->mtd; in socrates_nand_probe()
164 nand_chip = &host->nand_chip; in socrates_nand_probe()
165 host->dev = &ofdev->dev; in socrates_nand_probe()
167 nand_chip->priv = host; /* link the private data structures */ in socrates_nand_probe()
189 dev_set_drvdata(&ofdev->dev, host); in socrates_nand_probe()
210 iounmap(host->io_base); in socrates_nand_probe()
219 struct socrates_nand_host *host = dev_get_drvdata(&ofdev->dev); in socrates_nand_remove() local
220 struct mtd_info *mtd = &host->mtd; in socrates_nand_remove()
224 iounmap(host->io_base); in socrates_nand_remove()