• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/ata/

Lines Matching refs:ap

118 static u32 sil_scr_read (struct ata_port *ap, unsigned int sc_reg);
119 static void sil_scr_write (struct ata_port *ap, unsigned int sc_reg, u32 val);
120 static int sil_set_mode (struct ata_port *ap, struct ata_device **r_failed);
121 static void sil_freeze(struct ata_port *ap);
122 static void sil_thaw(struct ata_port *ap);
292 * @ap: port to set up
299 static int sil_set_mode (struct ata_port *ap, struct ata_device **r_failed)
301 struct ata_host *host = ap->host;
304 void __iomem *addr = mmio_base + sil_port[ap->port_no].xfer_mode;
309 rc = ata_do_set_mode(ap, r_failed);
314 dev = &ap->device[i];
333 static inline void __iomem *sil_scr_addr(struct ata_port *ap, unsigned int sc_reg)
335 void __iomem *offset = ap->ioaddr.scr_addr;
352 static u32 sil_scr_read (struct ata_port *ap, unsigned int sc_reg)
354 void __iomem *mmio = sil_scr_addr(ap, sc_reg);
360 static void sil_scr_write (struct ata_port *ap, unsigned int sc_reg, u32 val)
362 void __iomem *mmio = sil_scr_addr(ap, sc_reg);
367 static void sil_host_intr(struct ata_port *ap, u32 bmdma2)
369 struct ata_eh_info *ehi = &ap->eh_info;
370 struct ata_queued_cmd *qc = ata_qc_from_tag(ap, ap->active_tag);
380 serror = sil_scr_read(ap, SCR_ERROR);
381 sil_scr_write(ap, SCR_ERROR, serror);
388 if (!(ap->pflags & ATA_PFLAG_FROZEN)) {
389 ata_ehi_hotplugged(&ap->eh_info);
390 ap->eh_info.serror |= serror;
401 ata_chk_status(ap);
406 switch (ap->hsm_task_state) {
423 ap->ops->bmdma_stop(qc);
427 ap->hsm_task_state = HSM_ST_ERR;
438 status = ata_chk_status(ap);
443 ata_bmdma_irq_clear(ap);
446 ata_hsm_move(ap, qc, status, 0);
457 ata_port_freeze(ap);
470 struct ata_port *ap = host->ports[i];
471 u32 bmdma2 = readl(mmio_base + sil_port[ap->port_no].bmdma2);
473 if (unlikely(!ap || ap->flags & ATA_FLAG_DISABLED))
477 if (ap->flags & SIL_FLAG_NO_SATA_IRQ)
484 sil_host_intr(ap, bmdma2);
493 static void sil_freeze(struct ata_port *ap)
495 void __iomem *mmio_base = ap->host->iomap[SIL_MMIO_BAR];
499 writel(0, mmio_base + sil_port[ap->port_no].sien);
503 tmp |= SIL_MASK_IDE0_INT << ap->port_no;
508 static void sil_thaw(struct ata_port *ap)
510 void __iomem *mmio_base = ap->host->iomap[SIL_MMIO_BAR];
514 ata_chk_status(ap);
515 ata_bmdma_irq_clear(ap);
518 if (!(ap->flags & SIL_FLAG_NO_SATA_IRQ))
519 writel(SIL_SIEN_N, mmio_base + sil_port[ap->port_no].sien);
523 tmp &= ~(SIL_MASK_IDE0_INT << ap->port_no);
557 struct ata_port *ap = dev->ap;
558 int print_info = ap->eh_context.i.flags & ATA_EHI_PRINTINFO;
572 ((ap->flags & SIL_FLAG_MOD15WRITE) &&