Lines Matching refs:ap

125 static int xgene_ahci_poll_reg_val(struct ata_port *ap,  in xgene_ahci_poll_reg_val()  argument
137 ata_msleep(ap, interval); in xgene_ahci_poll_reg_val()
151 static int xgene_ahci_restart_engine(struct ata_port *ap) in xgene_ahci_restart_engine() argument
153 struct ahci_host_priv *hpriv = ap->host->private_data; in xgene_ahci_restart_engine()
154 struct ahci_port_priv *pp = ap->private_data; in xgene_ahci_restart_engine()
155 void __iomem *port_mmio = ahci_port_base(ap); in xgene_ahci_restart_engine()
164 if (xgene_ahci_poll_reg_val(ap, port_mmio + in xgene_ahci_restart_engine()
168 ahci_stop_engine(ap); in xgene_ahci_restart_engine()
169 ahci_start_fis_rx(ap); in xgene_ahci_restart_engine()
181 hpriv->start_engine(ap); in xgene_ahci_restart_engine()
204 struct ata_port *ap = qc->ap; in xgene_ahci_qc_issue() local
205 struct ahci_host_priv *hpriv = ap->host->private_data; in xgene_ahci_qc_issue()
209 void *port_mmio = ahci_port_base(ap); in xgene_ahci_qc_issue()
215 if (ctx->class[ap->port_no] == ATA_DEV_PMP) { in xgene_ahci_qc_issue()
222 if (unlikely((ctx->last_cmd[ap->port_no] == ATA_CMD_ID_ATA) || in xgene_ahci_qc_issue()
223 (ctx->last_cmd[ap->port_no] == ATA_CMD_PACKET) || in xgene_ahci_qc_issue()
224 (ctx->last_cmd[ap->port_no] == ATA_CMD_SMART))) in xgene_ahci_qc_issue()
225 xgene_ahci_restart_engine(ap); in xgene_ahci_qc_issue()
230 ctx->last_cmd[ap->port_no] = qc->tf.command; in xgene_ahci_qc_issue()
367 struct ata_port *ap = link->ap; in xgene_ahci_do_hardreset() local
368 struct ahci_host_priv *hpriv = ap->host->private_data; in xgene_ahci_do_hardreset()
370 struct ahci_port_priv *pp = ap->private_data; in xgene_ahci_do_hardreset()
372 void __iomem *port_mmio = ahci_port_base(ap); in xgene_ahci_do_hardreset()
406 struct ata_port *ap = link->ap; in xgene_ahci_hardreset() local
407 struct ahci_host_priv *hpriv = ap->host->private_data; in xgene_ahci_hardreset()
408 void __iomem *port_mmio = ahci_port_base(ap); in xgene_ahci_hardreset()
424 ahci_stop_engine(ap); in xgene_ahci_hardreset()
435 hpriv->start_engine(ap); in xgene_ahci_hardreset()
438 *class = ahci_dev_classify(ap); in xgene_ahci_hardreset()
468 struct ata_port *ap = link->ap; in xgene_ahci_pmp_softreset() local
470 void *port_mmio = ahci_port_base(ap); in xgene_ahci_pmp_softreset()
512 struct ata_port *ap = link->ap; in xgene_ahci_softreset() local
513 struct ahci_host_priv *hpriv = ap->host->private_data; in xgene_ahci_softreset()
515 void *port_mmio = ahci_port_base(ap); in xgene_ahci_softreset()
536 ctx->class[ap->port_no] = *class; in xgene_ahci_softreset()