Lines Matching refs:hpriv
132 struct ahci_host_priv *hpriv = host->private_data; in acard_ahci_pci_device_suspend() local
133 void __iomem *mmio = hpriv->mmio; in acard_ahci_pci_device_suspend()
137 hpriv->flags & AHCI_HFLAG_NO_SUSPEND) { in acard_ahci_pci_device_suspend()
327 struct ahci_host_priv *hpriv = ap->host->private_data; in acard_ahci_port_start() local
339 if ((hpriv->cap & HOST_CAP_FBS) && sata_pmp_supported(ap)) { in acard_ahci_port_start()
344 else if (hpriv->flags & AHCI_HFLAG_YES_FBS) { in acard_ahci_port_start()
410 struct ahci_host_priv *hpriv; in acard_ahci_init_one() local
434 hpriv = devm_kzalloc(dev, sizeof(*hpriv), GFP_KERNEL); in acard_ahci_init_one()
435 if (!hpriv) in acard_ahci_init_one()
437 hpriv->flags |= (unsigned long)pi.private_data; in acard_ahci_init_one()
439 if (!(hpriv->flags & AHCI_HFLAG_NO_MSI)) in acard_ahci_init_one()
442 hpriv->mmio = pcim_iomap_table(pdev)[AHCI_PCI_BAR]; in acard_ahci_init_one()
445 ahci_save_initial_config(&pdev->dev, hpriv, 0, 0); in acard_ahci_init_one()
448 if (hpriv->cap & HOST_CAP_NCQ) in acard_ahci_init_one()
451 if (hpriv->cap & HOST_CAP_PMP) in acard_ahci_init_one()
454 ahci_set_em_messages(hpriv, &pi); in acard_ahci_init_one()
461 n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map)); in acard_ahci_init_one()
466 host->private_data = hpriv; in acard_ahci_init_one()
468 if (!(hpriv->cap & HOST_CAP_SSS) || ahci_ignore_sss) in acard_ahci_init_one()
485 if (!(hpriv->port_map & (1 << i))) in acard_ahci_init_one()
490 rc = acard_ahci_configure_dma_masks(pdev, hpriv->cap & HOST_CAP_64); in acard_ahci_init_one()