Lines Matching defs:host
27 static void ahci_host_stop(struct ata_host *host);
37 * @hpriv: host private area to store config values
81 * @hpriv: host private area to store config values
98 * @hpriv: host private area to store config values
127 * @hpriv: host private area to store config values
144 * @hpriv: host private area to store config values
191 * @hpriv: host private area to store config values
212 * @hpriv: host private area to store config values
264 * @hpriv: host private area to store config values
567 * ahci_platform_init_host - Bring up an ahci-platform host
568 * @pdev: platform device pointer for the host
569 * @hpriv: ahci-host private data for the host
574 * ahci-platform host, note any necessary resources (ie clks, phys, etc.)
588 struct ata_host *host;
602 /* prepare host */
622 host = ata_host_alloc_pinfo(dev, ppi, n_ports);
623 if (!host)
626 host->private_data = hpriv;
629 host->flags |= ATA_HOST_PARALLEL_SCAN;
634 ahci_reset_em(host);
636 for (i = 0; i < host->n_ports; i++) {
637 struct ata_port *ap = host->ports[i];
665 rc = ahci_reset_controller(host);
669 ahci_init_controller(host);
670 ahci_print_info(host, "platform");
672 return ahci_host_activate(host, sht);
676 static void ahci_host_stop(struct ata_host *host)
678 struct ahci_host_priv *hpriv = host->private_data;
684 * ahci_platform_shutdown - Disable interrupts and stop DMA for host ports
685 * @pdev: platform device pointer for the host
688 * deconfiguration required to ensure that an ahci_platform host cannot
693 struct ata_host *host = platform_get_drvdata(pdev);
694 struct ahci_host_priv *hpriv = host->private_data;
698 for (i = 0; i < host->n_ports; i++) {
699 struct ata_port *ap = host->ports[i];
710 /* Disable and clear host interrupts */
713 writel(GENMASK(host->n_ports, 0), mmio + HOST_IRQ_STAT);
719 * ahci_platform_suspend_host - Suspend an ahci-platform host
720 * @dev: device pointer for the host
723 * ahci-platform host, note any necessary resources (ie clks, phys, etc.)
731 struct ata_host *host = dev_get_drvdata(dev);
732 struct ahci_host_priv *hpriv = host->private_data;
754 return ata_host_suspend(host, PMSG_SUSPEND);
759 * ahci_platform_resume_host - Resume an ahci-platform host
760 * @dev: device pointer for the host
763 * host, note any necessary resources (ie clks, phys, etc.) must be
771 struct ata_host *host = dev_get_drvdata(dev);
772 struct ahci_host_priv *hpriv = host->private_data;
776 rc = ahci_reset_controller(host);
780 ahci_init_controller(host);
786 ata_host_resume(host);
796 * This function suspends the host associated with the device, followed by
804 struct ata_host *host = dev_get_drvdata(dev);
805 struct ahci_host_priv *hpriv = host->private_data;
823 * resuming the host associated with the device.
830 struct ata_host *host = dev_get_drvdata(dev);
831 struct ahci_host_priv *hpriv = host->private_data;