Lines Matching defs:host
69 #define ATP867X_IOBASE(ap) ((ap)->host->iomap[0])
109 struct pci_dev *pdev = to_pci_dev(ap->host->dev);
253 struct pci_dev *pdev = to_pci_dev(ap->host->dev);
339 struct pci_dev *pdev = to_pci_dev(ap->host->dev);
359 static void atp867x_fixup(struct ata_host *host)
361 struct pci_dev *pdev = to_pci_dev(host->dev);
362 struct ata_port *ap = host->ports[0];
405 static int atp867x_ata_pci_sff_init_host(struct ata_host *host)
407 struct device *gdev = host->dev;
420 host->iomap = pcim_iomap_table(pdev);
427 (unsigned long long)(host->iomap[i]));
433 for (i = 0; i < host->n_ports; i++) {
434 struct ata_port *ap = host->ports[i];
464 atp867x_fixup(host);
479 struct ata_host *host;
492 host = ata_host_alloc_pinfo(&pdev->dev, ppi, ATP867X_NUM_PORTS);
493 if (!host) {
494 dev_err(&pdev->dev, "failed to allocate ATA host\n");
499 rc = atp867x_ata_pci_sff_init_host(host);
501 dev_err(&pdev->dev, "failed to init host\n");
507 rc = ata_host_activate(host, pdev->irq, ata_bmdma_interrupt,
510 dev_err(&pdev->dev, "failed to activate host\n");
519 struct ata_host *host = pci_get_drvdata(pdev);
526 atp867x_fixup(host);
528 ata_host_resume(host);