Lines Matching defs:host
28 static void ahci_host_stop(struct ata_host *host);
38 * @hpriv: host private area to store config values
82 * @hpriv: host private area to store config values
99 * @hpriv: host private area to store config values
123 * @hpriv: host private area to store config values
138 * @hpriv: host private area to store config values
152 * @hpriv: host private area to store config values
171 * @hpriv: host private area to store config values
190 * @hpriv: host private area to store config values
237 * @hpriv: host private area to store config values
258 * @hpriv: host private area to store config values
310 * @hpriv: host private area to store config values
668 * ahci_platform_init_host - Bring up an ahci-platform host
669 * @pdev: platform device pointer for the host
670 * @hpriv: ahci-host private data for the host
675 * ahci-platform host, note any necessary resources (ie clks, phys, etc.)
689 struct ata_host *host;
700 /* prepare host */
720 host = ata_host_alloc_pinfo(dev, ppi, n_ports);
721 if (!host)
724 host->private_data = hpriv;
727 host->flags |= ATA_HOST_PARALLEL_SCAN;
732 ahci_reset_em(host);
734 for (i = 0; i < host->n_ports; i++) {
735 struct ata_port *ap = host->ports[i];
758 rc = ahci_reset_controller(host);
762 ahci_init_controller(host);
763 ahci_print_info(host, "platform");
765 return ahci_host_activate(host, sht);
769 static void ahci_host_stop(struct ata_host *host)
771 struct ahci_host_priv *hpriv = host->private_data;
777 * ahci_platform_shutdown - Disable interrupts and stop DMA for host ports
778 * @pdev: platform device pointer for the host
781 * deconfiguration required to ensure that an ahci_platform host cannot
786 struct ata_host *host = platform_get_drvdata(pdev);
787 struct ahci_host_priv *hpriv = host->private_data;
791 for (i = 0; i < host->n_ports; i++) {
792 struct ata_port *ap = host->ports[i];
803 /* Disable and clear host interrupts */
806 writel(GENMASK(host->n_ports, 0), mmio + HOST_IRQ_STAT);
812 * ahci_platform_suspend_host - Suspend an ahci-platform host
813 * @dev: device pointer for the host
816 * ahci-platform host, note any necessary resources (ie clks, phys, etc.)
824 struct ata_host *host = dev_get_drvdata(dev);
825 struct ahci_host_priv *hpriv = host->private_data;
847 ata_host_suspend(host, PMSG_SUSPEND);
853 * ahci_platform_resume_host - Resume an ahci-platform host
854 * @dev: device pointer for the host
857 * host, note any necessary resources (ie clks, phys, etc.) must be
865 struct ata_host *host = dev_get_drvdata(dev);
866 struct ahci_host_priv *hpriv = host->private_data;
870 rc = ahci_reset_controller(host);
874 ahci_init_controller(host);
880 ata_host_resume(host);
890 * This function suspends the host associated with the device, followed by
898 struct ata_host *host = dev_get_drvdata(dev);
899 struct ahci_host_priv *hpriv = host->private_data;
917 * resuming the host associated with the device.
924 struct ata_host *host = dev_get_drvdata(dev);
925 struct ahci_host_priv *hpriv = host->private_data;