Lines Matching defs:port_base

271 static void inic_reset_port(void __iomem *port_base)
273 void __iomem *idma_ctl = port_base + PORT_IDMA_CTL;
288 writeb(0xff, port_base + PORT_IRQ_STAT);
319 void __iomem *port_base = inic_port_base(ap);
321 readb(port_base + PORT_RPQ_FIFO);
322 readb(port_base + PORT_RPQ_CNT);
323 writew(0, port_base + PORT_IDMA_CTL);
384 void __iomem *port_base = inic_port_base(ap);
390 irq_stat = readb(port_base + PORT_IRQ_STAT);
391 writeb(irq_stat, port_base + PORT_IRQ_STAT);
392 idma_stat = readw(port_base + PORT_IDMA_STAT);
406 if (unlikely(readb(port_base + PORT_TF_COMMAND) &
546 void __iomem *port_base = inic_port_base(ap);
549 writew(HCTL_FTHD0 | HCTL_LEDEN, port_base + HOST_CTL);
550 writew(IDMA_CTL_GO, port_base + PORT_IDMA_CTL);
551 writeb(0, port_base + PORT_CPB_PTQFIFO);
558 void __iomem *port_base = inic_port_base(ap);
560 tf->error = readb(port_base + PORT_TF_FEATURE);
561 tf->nsect = readb(port_base + PORT_TF_NSECT);
562 tf->lbal = readb(port_base + PORT_TF_LBAL);
563 tf->lbam = readb(port_base + PORT_TF_LBAM);
564 tf->lbah = readb(port_base + PORT_TF_LBAH);
565 tf->device = readb(port_base + PORT_TF_DEVICE);
566 tf->status = readb(port_base + PORT_TF_COMMAND);
591 void __iomem *port_base = inic_port_base(ap);
593 writeb(PIRQ_MASK_FREEZE, port_base + PORT_IRQ_MASK);
594 writeb(0xff, port_base + PORT_IRQ_STAT);
599 void __iomem *port_base = inic_port_base(ap);
601 writeb(0xff, port_base + PORT_IRQ_STAT);
602 writeb(PIRQ_MASK_DEFAULT, port_base + PORT_IRQ_MASK);
607 void __iomem *port_base = inic_port_base(link->ap);
609 return ata_check_ready(readb(port_base + PORT_TF_COMMAND));
620 void __iomem *port_base = inic_port_base(ap);
621 void __iomem *idma_ctl = port_base + PORT_IDMA_CTL;
626 inic_reset_port(port_base);
664 void __iomem *port_base = inic_port_base(ap);
666 inic_reset_port(port_base);
679 void __iomem *port_base = inic_port_base(ap);
687 writel(pp->cpb_tbl_dma, port_base + PORT_CPB_CPBLAR);
777 void __iomem *port_base = mmio_base + i * PORT_SIZE;
779 writeb(0xff, port_base + PORT_IRQ_MASK);
780 inic_reset_port(port_base);