Lines Matching refs:ap

258 static void __iomem *inic_port_base(struct ata_port *ap)  in inic_port_base()  argument
260 struct inic_host_priv *hpriv = ap->host->private_data; in inic_port_base()
262 return hpriv->mmio_base + ap->port_no * PORT_SIZE; in inic_port_base()
287 void __iomem *scr_addr = inic_port_base(link->ap) + PORT_SCR; in inic_scr_read()
302 void __iomem *scr_addr = inic_port_base(link->ap) + PORT_SCR; in inic_scr_write()
311 static void inic_stop_idma(struct ata_port *ap) in inic_stop_idma() argument
313 void __iomem *port_base = inic_port_base(ap); in inic_stop_idma()
320 static void inic_host_err_intr(struct ata_port *ap, u8 irq_stat, u16 idma_stat) in inic_host_err_intr() argument
322 struct ata_eh_info *ehi = &ap->link.eh_info; in inic_host_err_intr()
323 struct inic_port_priv *pp = ap->private_data; in inic_host_err_intr()
331 inic_stop_idma(ap); in inic_host_err_intr()
371 ata_port_freeze(ap); in inic_host_err_intr()
373 ata_port_abort(ap); in inic_host_err_intr()
376 static void inic_host_intr(struct ata_port *ap) in inic_host_intr() argument
378 void __iomem *port_base = inic_port_base(ap); in inic_host_intr()
379 struct ata_queued_cmd *qc = ata_qc_from_tag(ap, ap->link.active_tag); in inic_host_intr()
389 inic_host_err_intr(ap, irq_stat, idma_stat); in inic_host_intr()
395 inic_stop_idma(ap); in inic_host_intr()
409 ata_port_warn(ap, "unhandled interrupt: cmd=0x%x irq_stat=0x%x idma_stat=0x%x\n", in inic_host_intr()
477 struct inic_port_priv *pp = qc->ap->private_data; in inic_qc_prep()
539 struct ata_port *ap = qc->ap; in inic_qc_issue() local
540 void __iomem *port_base = inic_port_base(ap); in inic_qc_issue()
550 static void inic_tf_read(struct ata_port *ap, struct ata_taskfile *tf) in inic_tf_read() argument
552 void __iomem *port_base = inic_port_base(ap); in inic_tf_read()
575 inic_tf_read(qc->ap, &tf); in inic_qc_fill_rtf()
585 static void inic_freeze(struct ata_port *ap) in inic_freeze() argument
587 void __iomem *port_base = inic_port_base(ap); in inic_freeze()
593 static void inic_thaw(struct ata_port *ap) in inic_thaw() argument
595 void __iomem *port_base = inic_port_base(ap); in inic_thaw()
603 void __iomem *port_base = inic_port_base(link->ap); in inic_check_ready()
615 struct ata_port *ap = link->ap; in inic_hardreset() local
616 void __iomem *port_base = inic_port_base(ap); in inic_hardreset()
626 ata_msleep(ap, 1); in inic_hardreset()
651 inic_tf_read(ap, &tf); in inic_hardreset()
658 static void inic_error_handler(struct ata_port *ap) in inic_error_handler() argument
660 void __iomem *port_base = inic_port_base(ap); in inic_error_handler()
663 ata_std_error_handler(ap); in inic_error_handler()
670 inic_reset_port(inic_port_base(qc->ap)); in inic_post_internal_cmd()
673 static void init_port(struct ata_port *ap) in init_port() argument
675 void __iomem *port_base = inic_port_base(ap); in init_port()
676 struct inic_port_priv *pp = ap->private_data; in init_port()
686 static int inic_port_resume(struct ata_port *ap) in inic_port_resume() argument
688 init_port(ap); in inic_port_resume()
692 static int inic_port_start(struct ata_port *ap) in inic_port_start() argument
694 struct device *dev = ap->host->dev; in inic_port_start()
701 ap->private_data = pp; in inic_port_start()
714 init_port(ap); in inic_port_start()
852 struct ata_port *ap = host->ports[i]; in inic_init_one() local
854 ata_port_pbar_desc(ap, mmio_bar, -1, "mmio"); in inic_init_one()
855 ata_port_pbar_desc(ap, mmio_bar, i * PORT_SIZE, "port"); in inic_init_one()