Lines Matching refs:hpriv

588 					 struct ahci_host_priv *hpriv)  in ahci_pci_save_initial_config()  argument
592 hpriv->force_port_map = 1; in ahci_pci_save_initial_config()
600 if (hpriv->flags & AHCI_HFLAG_MV_PATA) { in ahci_pci_save_initial_config()
602 hpriv->mask_port_map = 0x3; in ahci_pci_save_initial_config()
604 hpriv->mask_port_map = 0xf; in ahci_pci_save_initial_config()
609 ahci_save_initial_config(&pdev->dev, hpriv); in ahci_pci_save_initial_config()
619 struct ahci_host_priv *hpriv = host->private_data; in ahci_pci_reset_controller() local
624 if ((tmp16 & hpriv->port_map) != hpriv->port_map) { in ahci_pci_reset_controller()
625 tmp16 |= hpriv->port_map; in ahci_pci_reset_controller()
635 struct ahci_host_priv *hpriv = host->private_data; in ahci_pci_init_controller() local
641 if (hpriv->flags & AHCI_HFLAG_MV_PATA) { in ahci_pci_init_controller()
664 struct ahci_host_priv *hpriv = ap->host->private_data; in ahci_vt8251_hardreset() local
675 hpriv->start_engine(ap); in ahci_vt8251_hardreset()
690 struct ahci_host_priv *hpriv = ap->host->private_data; in ahci_p5wdh_hardreset() local
706 hpriv->start_engine(ap); in ahci_p5wdh_hardreset()
751 struct ahci_host_priv *hpriv = ap->host->private_data; in ahci_avn_hardreset() local
793 hpriv->start_engine(ap); in ahci_avn_hardreset()
807 struct ahci_host_priv *hpriv = host->private_data; in ahci_pci_device_suspend() local
808 void __iomem *mmio = hpriv->mmio; in ahci_pci_device_suspend()
812 hpriv->flags & AHCI_HFLAG_NO_SUSPEND) { in ahci_pci_device_suspend()
1340 struct ahci_host_priv *hpriv) in ahci_init_msix() argument
1346 if (hpriv->flags & AHCI_HFLAG_NO_MSI) in ahci_init_msix()
1366 hpriv->irq = entry.vector; in ahci_init_msix()
1378 struct ahci_host_priv *hpriv) in ahci_init_msi() argument
1382 if (hpriv->flags & AHCI_HFLAG_NO_MSI) in ahci_init_msi()
1404 if (readl(hpriv->mmio + HOST_CTL) & HOST_MRSM) { in ahci_init_msi()
1411 hpriv->flags |= AHCI_HFLAG_MULTI_MSI; in ahci_init_msi()
1422 hpriv->irq = pdev->irq; in ahci_init_msi()
1428 struct ahci_host_priv *hpriv) in ahci_init_interrupts() argument
1432 nvec = ahci_init_msi(pdev, n_ports, hpriv); in ahci_init_interrupts()
1441 nvec = ahci_init_msix(pdev, n_ports, hpriv); in ahci_init_interrupts()
1447 hpriv->irq = pdev->irq; in ahci_init_interrupts()
1458 struct ahci_host_priv *hpriv; in ahci_init_one() local
1525 hpriv = devm_kzalloc(dev, sizeof(*hpriv), GFP_KERNEL); in ahci_init_one()
1526 if (!hpriv) in ahci_init_one()
1528 hpriv->flags |= (unsigned long)pi.private_data; in ahci_init_one()
1533 hpriv->flags |= AHCI_HFLAG_NO_MSI; in ahci_init_one()
1537 hpriv->flags &= ~AHCI_HFLAG_IGN_SERR_INTERNAL; in ahci_init_one()
1541 hpriv->flags &= ~AHCI_HFLAG_32BIT_ONLY; in ahci_init_one()
1543 hpriv->mmio = pcim_iomap_table(pdev)[ahci_pci_bar]; in ahci_init_one()
1547 hpriv->flags |= AHCI_HFLAG_NO_DEVSLP; in ahci_init_one()
1550 ahci_pci_save_initial_config(pdev, hpriv); in ahci_init_one()
1553 if (hpriv->cap & HOST_CAP_NCQ) { in ahci_init_one()
1561 if (!(hpriv->flags & AHCI_HFLAG_NO_FPDMA_AA)) in ahci_init_one()
1573 if (hpriv->cap & HOST_CAP_PMP) in ahci_init_one()
1576 ahci_set_em_messages(hpriv, &pi); in ahci_init_one()
1585 hpriv->flags |= AHCI_HFLAG_NO_SUSPEND; in ahci_init_one()
1591 hpriv->flags |= AHCI_HFLAG_SRST_TOUT_IS_OFFLINE; in ahci_init_one()
1601 n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map)); in ahci_init_one()
1606 host->private_data = hpriv; in ahci_init_one()
1608 ahci_init_interrupts(pdev, n_ports, hpriv); in ahci_init_one()
1610 if (!(hpriv->cap & HOST_CAP_SSS) || ahci_ignore_sss) in ahci_init_one()
1627 ap->em_message_type = hpriv->em_msg_type; in ahci_init_one()
1631 if (!(hpriv->port_map & (1 << i))) in ahci_init_one()
1642 rc = ahci_configure_dma_masks(pdev, hpriv->cap & HOST_CAP_64); in ahci_init_one()