tmio 133 drivers/mtd/nand/raw/tmio_nand.c struct tmio_nand *tmio = mtd_to_tmio(nand_to_mtd(chip)); tmio 154 drivers/mtd/nand/raw/tmio_nand.c tmio_iowrite8(mode, tmio->fcr + FCR_MODE); tmio 155 drivers/mtd/nand/raw/tmio_nand.c tmio->read_good = 0; tmio 164 drivers/mtd/nand/raw/tmio_nand.c struct tmio_nand *tmio = mtd_to_tmio(nand_to_mtd(chip)); tmio 166 drivers/mtd/nand/raw/tmio_nand.c return !(tmio_ioread8(tmio->fcr + FCR_STATUS) & FCR_STATUS_BUSY); tmio 171 drivers/mtd/nand/raw/tmio_nand.c struct tmio_nand *tmio = __tmio; tmio 174 drivers/mtd/nand/raw/tmio_nand.c tmio_iowrite8(0x00, tmio->fcr + FCR_IMR); tmio 175 drivers/mtd/nand/raw/tmio_nand.c complete(&tmio->comp); tmio 188 drivers/mtd/nand/raw/tmio_nand.c struct tmio_nand *tmio = mtd_to_tmio(nand_to_mtd(nand_chip)); tmio 194 drivers/mtd/nand/raw/tmio_nand.c tmio_iowrite8(0x0f, tmio->fcr + FCR_ISR); tmio 195 drivers/mtd/nand/raw/tmio_nand.c reinit_completion(&tmio->comp); tmio 196 drivers/mtd/nand/raw/tmio_nand.c tmio_iowrite8(0x81, tmio->fcr + FCR_IMR); tmio 199 drivers/mtd/nand/raw/tmio_nand.c timeout = wait_for_completion_timeout(&tmio->comp, tmio 203 drivers/mtd/nand/raw/tmio_nand.c tmio_iowrite8(0x00, tmio->fcr + FCR_IMR); tmio 204 drivers/mtd/nand/raw/tmio_nand.c dev_warn(&tmio->dev->dev, "still busy after 400 ms\n"); tmio 207 drivers/mtd/nand/raw/tmio_nand.c tmio_iowrite8(0x00, tmio->fcr + FCR_IMR); tmio 208 drivers/mtd/nand/raw/tmio_nand.c dev_warn(&tmio->dev->dev, "timeout waiting for interrupt\n"); tmio 225 drivers/mtd/nand/raw/tmio_nand.c struct tmio_nand *tmio = mtd_to_tmio(nand_to_mtd(chip)); tmio 228 drivers/mtd/nand/raw/tmio_nand.c if (tmio->read_good--) tmio 229 drivers/mtd/nand/raw/tmio_nand.c return tmio->read; tmio 231 drivers/mtd/nand/raw/tmio_nand.c data = tmio_ioread16(tmio->fcr + FCR_DATA); tmio 232 drivers/mtd/nand/raw/tmio_nand.c tmio->read = data >> 8; tmio 245 drivers/mtd/nand/raw/tmio_nand.c struct tmio_nand *tmio = mtd_to_tmio(nand_to_mtd(chip)); tmio 247 drivers/mtd/nand/raw/tmio_nand.c tmio_iowrite16_rep(tmio->fcr + FCR_DATA, buf, len >> 1); tmio 252 drivers/mtd/nand/raw/tmio_nand.c struct tmio_nand *tmio = mtd_to_tmio(nand_to_mtd(chip)); tmio 254 drivers/mtd/nand/raw/tmio_nand.c tmio_ioread16_rep(tmio->fcr + FCR_DATA, buf, len >> 1); tmio 259 drivers/mtd/nand/raw/tmio_nand.c struct tmio_nand *tmio = mtd_to_tmio(nand_to_mtd(chip)); tmio 261 drivers/mtd/nand/raw/tmio_nand.c tmio_iowrite8(FCR_MODE_HWECC_RESET, tmio->fcr + FCR_MODE); tmio 262 drivers/mtd/nand/raw/tmio_nand.c tmio_ioread8(tmio->fcr + FCR_DATA); /* dummy read */ tmio 263 drivers/mtd/nand/raw/tmio_nand.c tmio_iowrite8(FCR_MODE_HWECC_CALC, tmio->fcr + FCR_MODE); tmio 269 drivers/mtd/nand/raw/tmio_nand.c struct tmio_nand *tmio = mtd_to_tmio(nand_to_mtd(chip)); tmio 272 drivers/mtd/nand/raw/tmio_nand.c tmio_iowrite8(FCR_MODE_HWECC_RESULT, tmio->fcr + FCR_MODE); tmio 274 drivers/mtd/nand/raw/tmio_nand.c ecc = tmio_ioread16(tmio->fcr + FCR_DATA); tmio 277 drivers/mtd/nand/raw/tmio_nand.c ecc = tmio_ioread16(tmio->fcr + FCR_DATA); tmio 280 drivers/mtd/nand/raw/tmio_nand.c ecc = tmio_ioread16(tmio->fcr + FCR_DATA); tmio 284 drivers/mtd/nand/raw/tmio_nand.c tmio_iowrite8(FCR_MODE_DATA, tmio->fcr + FCR_MODE); tmio 305 drivers/mtd/nand/raw/tmio_nand.c static int tmio_hw_init(struct platform_device *dev, struct tmio_nand *tmio) tmio 317 drivers/mtd/nand/raw/tmio_nand.c tmio_iowrite8(0x81, tmio->ccr + CCR_ICC); tmio 320 drivers/mtd/nand/raw/tmio_nand.c tmio_iowrite16(tmio->fcr_base, tmio->ccr + CCR_BASE); tmio 321 drivers/mtd/nand/raw/tmio_nand.c tmio_iowrite16(tmio->fcr_base >> 16, tmio->ccr + CCR_BASE + 2); tmio 324 drivers/mtd/nand/raw/tmio_nand.c tmio_iowrite8(0x02, tmio->ccr + CCR_COMMAND); tmio 328 drivers/mtd/nand/raw/tmio_nand.c tmio_iowrite8(0x02, tmio->ccr + CCR_NFPSC); tmio 331 drivers/mtd/nand/raw/tmio_nand.c tmio_iowrite8(0x02, tmio->ccr + CCR_NFDC); tmio 334 drivers/mtd/nand/raw/tmio_nand.c tmio_iowrite8(0x0f, tmio->fcr + FCR_ISR); tmio 337 drivers/mtd/nand/raw/tmio_nand.c tmio_iowrite8(FCR_MODE_POWER_ON, tmio->fcr + FCR_MODE); tmio 338 drivers/mtd/nand/raw/tmio_nand.c tmio_iowrite8(FCR_MODE_COMMAND, tmio->fcr + FCR_MODE); tmio 339 drivers/mtd/nand/raw/tmio_nand.c tmio_iowrite8(NAND_CMD_RESET, tmio->fcr + FCR_DATA); tmio 342 drivers/mtd/nand/raw/tmio_nand.c tmio_iowrite8(FCR_MODE_STANDBY, tmio->fcr + FCR_MODE); tmio 349 drivers/mtd/nand/raw/tmio_nand.c static void tmio_hw_stop(struct platform_device *dev, struct tmio_nand *tmio) tmio 353 drivers/mtd/nand/raw/tmio_nand.c tmio_iowrite8(FCR_MODE_POWER_OFF, tmio->fcr + FCR_MODE); tmio 366 drivers/mtd/nand/raw/tmio_nand.c struct tmio_nand *tmio; tmio 374 drivers/mtd/nand/raw/tmio_nand.c tmio = devm_kzalloc(&dev->dev, sizeof(*tmio), GFP_KERNEL); tmio 375 drivers/mtd/nand/raw/tmio_nand.c if (!tmio) tmio 378 drivers/mtd/nand/raw/tmio_nand.c init_completion(&tmio->comp); tmio 380 drivers/mtd/nand/raw/tmio_nand.c tmio->dev = dev; tmio 382 drivers/mtd/nand/raw/tmio_nand.c platform_set_drvdata(dev, tmio); tmio 383 drivers/mtd/nand/raw/tmio_nand.c nand_chip = &tmio->chip; tmio 388 drivers/mtd/nand/raw/tmio_nand.c tmio->ccr = devm_ioremap(&dev->dev, ccr->start, resource_size(ccr)); tmio 389 drivers/mtd/nand/raw/tmio_nand.c if (!tmio->ccr) tmio 392 drivers/mtd/nand/raw/tmio_nand.c tmio->fcr_base = fcr->start & 0xfffff; tmio 393 drivers/mtd/nand/raw/tmio_nand.c tmio->fcr = devm_ioremap(&dev->dev, fcr->start, resource_size(fcr)); tmio 394 drivers/mtd/nand/raw/tmio_nand.c if (!tmio->fcr) tmio 397 drivers/mtd/nand/raw/tmio_nand.c retval = tmio_hw_init(dev, tmio); tmio 402 drivers/mtd/nand/raw/tmio_nand.c nand_chip->legacy.IO_ADDR_R = tmio->fcr; tmio 403 drivers/mtd/nand/raw/tmio_nand.c nand_chip->legacy.IO_ADDR_W = tmio->fcr; tmio 428 drivers/mtd/nand/raw/tmio_nand.c dev_name(&dev->dev), tmio); tmio 434 drivers/mtd/nand/raw/tmio_nand.c tmio->irq = irq; tmio 454 drivers/mtd/nand/raw/tmio_nand.c tmio_hw_stop(dev, tmio); tmio 460 drivers/mtd/nand/raw/tmio_nand.c struct tmio_nand *tmio = platform_get_drvdata(dev); tmio 462 drivers/mtd/nand/raw/tmio_nand.c nand_release(&tmio->chip); tmio 463 drivers/mtd/nand/raw/tmio_nand.c tmio_hw_stop(dev, tmio); tmio 76 drivers/usb/host/ohci-tmio.c struct tmio_hcd *tmio = hcd_to_tmio(hcd); tmio 80 drivers/usb/host/ohci-tmio.c spin_lock_irqsave(&tmio->lock, flags); tmio 85 drivers/usb/host/ohci-tmio.c tmio_iowrite16(pm, tmio->ccr + CCR_PM); tmio 86 drivers/usb/host/ohci-tmio.c spin_unlock_irqrestore(&tmio->lock, flags); tmio 93 drivers/usb/host/ohci-tmio.c struct tmio_hcd *tmio = hcd_to_tmio(hcd); tmio 110 drivers/usb/host/ohci-tmio.c tmio_iowrite8(0, tmio->ccr + CCR_INTC); tmio 111 drivers/usb/host/ohci-tmio.c tmio_iowrite8(0, tmio->ccr + CCR_ILME); tmio 112 drivers/usb/host/ohci-tmio.c tmio_iowrite16(0, tmio->ccr + CCR_BASE); tmio 113 drivers/usb/host/ohci-tmio.c tmio_iowrite16(0, tmio->ccr + CCR_BASE + 2); tmio 114 drivers/usb/host/ohci-tmio.c tmio_iowrite16(pm, tmio->ccr + CCR_PM); tmio 120 drivers/usb/host/ohci-tmio.c struct tmio_hcd *tmio = hcd_to_tmio(hcd); tmio 124 drivers/usb/host/ohci-tmio.c tmio_iowrite16(base, tmio->ccr + CCR_BASE); tmio 125 drivers/usb/host/ohci-tmio.c tmio_iowrite16(base >> 16, tmio->ccr + CCR_BASE + 2); tmio 126 drivers/usb/host/ohci-tmio.c tmio_iowrite8(1, tmio->ccr + CCR_ILME); tmio 127 drivers/usb/host/ohci-tmio.c tmio_iowrite8(2, tmio->ccr + CCR_INTC); tmio 130 drivers/usb/host/ohci-tmio.c tmio_ioread8(tmio->ccr + CCR_REVID), tmio 194 drivers/usb/host/ohci-tmio.c struct tmio_hcd *tmio; tmio 214 drivers/usb/host/ohci-tmio.c tmio = hcd_to_tmio(hcd); tmio 216 drivers/usb/host/ohci-tmio.c spin_lock_init(&tmio->lock); tmio 218 drivers/usb/host/ohci-tmio.c tmio->ccr = ioremap(config->start, resource_size(config)); tmio 219 drivers/usb/host/ohci-tmio.c if (!tmio->ccr) { tmio 262 drivers/usb/host/ohci-tmio.c iounmap(tmio->ccr); tmio 273 drivers/usb/host/ohci-tmio.c struct tmio_hcd *tmio = hcd_to_tmio(hcd); tmio 281 drivers/usb/host/ohci-tmio.c iounmap(tmio->ccr); tmio 293 drivers/usb/host/ohci-tmio.c struct tmio_hcd *tmio = hcd_to_tmio(hcd); tmio 302 drivers/usb/host/ohci-tmio.c spin_lock_irqsave(&tmio->lock, flags); tmio 304 drivers/usb/host/ohci-tmio.c misc = tmio_ioread8(tmio->ccr + CCR_MISC); tmio 306 drivers/usb/host/ohci-tmio.c tmio_iowrite8(misc, tmio->ccr + CCR_MISC); tmio 308 drivers/usb/host/ohci-tmio.c spin_unlock_irqrestore(&tmio->lock, flags); tmio 323 drivers/usb/host/ohci-tmio.c struct tmio_hcd *tmio = hcd_to_tmio(hcd); tmio 340 drivers/usb/host/ohci-tmio.c spin_lock_irqsave(&tmio->lock, flags); tmio 342 drivers/usb/host/ohci-tmio.c misc = tmio_ioread8(tmio->ccr + CCR_MISC); tmio 344 drivers/usb/host/ohci-tmio.c tmio_iowrite8(misc, tmio->ccr + CCR_MISC); tmio 346 drivers/usb/host/ohci-tmio.c spin_unlock_irqrestore(&tmio->lock, flags);