Lines Matching defs:host
183 return ap->host->iomap[PDC_MMIO_BAR] + ap->port_no * 0x100 + offset;
199 * pdc2027x_pata_cable_detect - Probe host controller cable detect info
235 * pdc2027x_prereset - prereset for PATA host controller
280 * pdc2027x_set_piomode - Initialize host controller PATA PIO timings
324 * pdc2027x_set_dmamode - Initialize host controller PATA UDMA timings
468 * @host: target ATA host
471 static long pdc_read_counter(struct ata_host *host)
473 void __iomem *mmio_base = host->iomap[PDC_MMIO_BAR];
509 * @host: target ATA host
512 static void pdc_adjust_pll(struct ata_host *host, long pll_clock, unsigned int board_idx)
514 void __iomem *mmio_base = host->iomap[PDC_MMIO_BAR];
594 * @host: target ATA host
598 static long pdc_detect_pll_input_clock(struct ata_host *host)
600 void __iomem *mmio_base = host->iomap[PDC_MMIO_BAR];
613 start_count = pdc_read_counter(host);
620 end_count = pdc_read_counter(host);
643 * @host: target ATA host
646 static void pdc_hardware_init(struct ata_host *host, unsigned int board_idx)
656 pll_clock = pdc_detect_pll_input_clock(host);
658 dev_info(host->dev, "PLL input clock %ld kHz\n", pll_clock/1000);
661 pdc_adjust_pll(host, pll_clock, board_idx);
704 struct ata_host *host;
710 /* alloc host */
711 host = ata_host_alloc_pinfo(&pdev->dev, ppi, 2);
712 if (!host)
715 /* acquire resources and fill host */
723 host->iomap = pcim_iomap_table(pdev);
729 mmio_base = host->iomap[PDC_MMIO_BAR];
732 struct ata_port *ap = host->ports[i];
744 pdc_hardware_init(host, board_idx);
747 return ata_host_activate(host, pdev->irq, ata_bmdma_interrupt,
754 struct ata_host *host = pci_get_drvdata(pdev);
768 pdc_hardware_init(host, board_idx);
770 ata_host_resume(host);