Lines Matching defs:host
69 #define ATP867X_IOBASE(ap) ((ap)->host->iomap[0])
109 struct pci_dev *pdev = to_pci_dev(ap->host->dev);
254 struct pci_dev *pdev = to_pci_dev(ap->host->dev);
338 struct pci_dev *pdev = to_pci_dev(ap->host->dev);
358 static void atp867x_fixup(struct ata_host *host)
360 struct pci_dev *pdev = to_pci_dev(host->dev);
361 struct ata_port *ap = host->ports[0];
403 static int atp867x_ata_pci_sff_init_host(struct ata_host *host)
405 struct device *gdev = host->dev;
418 host->iomap = pcim_iomap_table(pdev);
424 host->iomap[i]);
429 for (i = 0; i < host->n_ports; i++) {
430 struct ata_port *ap = host->ports[i];
459 atp867x_fixup(host);
474 struct ata_host *host;
487 host = ata_host_alloc_pinfo(&pdev->dev, ppi, ATP867X_NUM_PORTS);
488 if (!host) {
489 dev_err(&pdev->dev, "failed to allocate ATA host\n");
494 rc = atp867x_ata_pci_sff_init_host(host);
496 dev_err(&pdev->dev, "failed to init host\n");
502 rc = ata_host_activate(host, pdev->irq, ata_bmdma_interrupt,
505 dev_err(&pdev->dev, "failed to activate host\n");
514 struct ata_host *host = pci_get_drvdata(pdev);
521 atp867x_fixup(host);
523 ata_host_resume(host);