Lines Matching refs:ap
119 static int xgene_ahci_poll_reg_val(struct ata_port *ap, in xgene_ahci_poll_reg_val() argument
131 ata_msleep(ap, interval); in xgene_ahci_poll_reg_val()
145 static int xgene_ahci_restart_engine(struct ata_port *ap) in xgene_ahci_restart_engine() argument
147 struct ahci_host_priv *hpriv = ap->host->private_data; in xgene_ahci_restart_engine()
148 struct ahci_port_priv *pp = ap->private_data; in xgene_ahci_restart_engine()
149 void __iomem *port_mmio = ahci_port_base(ap); in xgene_ahci_restart_engine()
158 if (xgene_ahci_poll_reg_val(ap, port_mmio + in xgene_ahci_restart_engine()
162 ahci_stop_engine(ap); in xgene_ahci_restart_engine()
163 ahci_start_fis_rx(ap); in xgene_ahci_restart_engine()
175 hpriv->start_engine(ap); in xgene_ahci_restart_engine()
198 struct ata_port *ap = qc->ap; in xgene_ahci_qc_issue() local
199 struct ahci_host_priv *hpriv = ap->host->private_data; in xgene_ahci_qc_issue()
203 void *port_mmio = ahci_port_base(ap); in xgene_ahci_qc_issue()
209 if (ctx->class[ap->port_no] == ATA_DEV_PMP) { in xgene_ahci_qc_issue()
216 if (unlikely((ctx->last_cmd[ap->port_no] == ATA_CMD_ID_ATA) || in xgene_ahci_qc_issue()
217 (ctx->last_cmd[ap->port_no] == ATA_CMD_PACKET) || in xgene_ahci_qc_issue()
218 (ctx->last_cmd[ap->port_no] == ATA_CMD_SMART))) in xgene_ahci_qc_issue()
219 xgene_ahci_restart_engine(ap); in xgene_ahci_qc_issue()
224 ctx->last_cmd[ap->port_no] = qc->tf.command; in xgene_ahci_qc_issue()
361 struct ata_port *ap = link->ap; in xgene_ahci_do_hardreset() local
362 struct ahci_host_priv *hpriv = ap->host->private_data; in xgene_ahci_do_hardreset()
364 struct ahci_port_priv *pp = ap->private_data; in xgene_ahci_do_hardreset()
366 void __iomem *port_mmio = ahci_port_base(ap); in xgene_ahci_do_hardreset()
400 struct ata_port *ap = link->ap; in xgene_ahci_hardreset() local
401 struct ahci_host_priv *hpriv = ap->host->private_data; in xgene_ahci_hardreset()
402 void __iomem *port_mmio = ahci_port_base(ap); in xgene_ahci_hardreset()
418 ahci_stop_engine(ap); in xgene_ahci_hardreset()
429 hpriv->start_engine(ap); in xgene_ahci_hardreset()
432 *class = ahci_dev_classify(ap); in xgene_ahci_hardreset()
462 struct ata_port *ap = link->ap; in xgene_ahci_pmp_softreset() local
464 void *port_mmio = ahci_port_base(ap); in xgene_ahci_pmp_softreset()
506 struct ata_port *ap = link->ap; in xgene_ahci_softreset() local
507 struct ahci_host_priv *hpriv = ap->host->private_data; in xgene_ahci_softreset()
509 void *port_mmio = ahci_port_base(ap); in xgene_ahci_softreset()
530 ctx->class[ap->port_no] = *class; in xgene_ahci_softreset()