Lines Matching refs:hpriv

488 					 struct ahci_host_priv *hpriv)  in ahci_pci_save_initial_config()  argument
503 if (hpriv->flags & AHCI_HFLAG_MV_PATA) { in ahci_pci_save_initial_config()
512 ahci_save_initial_config(&pdev->dev, hpriv, force_port_map, in ahci_pci_save_initial_config()
523 struct ahci_host_priv *hpriv = host->private_data; in ahci_pci_reset_controller() local
528 if ((tmp16 & hpriv->port_map) != hpriv->port_map) { in ahci_pci_reset_controller()
529 tmp16 |= hpriv->port_map; in ahci_pci_reset_controller()
539 struct ahci_host_priv *hpriv = host->private_data; in ahci_pci_init_controller() local
545 if (hpriv->flags & AHCI_HFLAG_MV_PATA) { in ahci_pci_init_controller()
636 struct ahci_host_priv *hpriv = host->private_data; in ahci_pci_device_suspend() local
637 void __iomem *mmio = hpriv->mmio; in ahci_pci_device_suspend()
641 hpriv->flags & AHCI_HFLAG_NO_SUSPEND) { in ahci_pci_device_suspend()
1096 struct ahci_host_priv *hpriv; in ahci_init_one() local
1167 hpriv = devm_kzalloc(dev, sizeof(*hpriv), GFP_KERNEL); in ahci_init_one()
1168 if (!hpriv) in ahci_init_one()
1170 hpriv->flags |= (unsigned long)pi.private_data; in ahci_init_one()
1175 hpriv->flags |= AHCI_HFLAG_NO_MSI; in ahci_init_one()
1179 hpriv->flags &= ~AHCI_HFLAG_IGN_SERR_INTERNAL; in ahci_init_one()
1183 hpriv->flags &= ~AHCI_HFLAG_32BIT_ONLY; in ahci_init_one()
1185 if ((hpriv->flags & AHCI_HFLAG_NO_MSI) || pci_enable_msi(pdev)) in ahci_init_one()
1188 hpriv->mmio = pcim_iomap_table(pdev)[ahci_pci_bar]; in ahci_init_one()
1191 ahci_pci_save_initial_config(pdev, hpriv); in ahci_init_one()
1194 if (hpriv->cap & HOST_CAP_NCQ) { in ahci_init_one()
1202 if (!(hpriv->flags & AHCI_HFLAG_NO_FPDMA_AA)) in ahci_init_one()
1206 if (hpriv->cap & HOST_CAP_PMP) in ahci_init_one()
1209 ahci_set_em_messages(hpriv, &pi); in ahci_init_one()
1218 hpriv->flags |= AHCI_HFLAG_NO_SUSPEND; in ahci_init_one()
1224 hpriv->flags |= AHCI_HFLAG_SRST_TOUT_IS_OFFLINE; in ahci_init_one()
1234 n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map)); in ahci_init_one()
1239 host->private_data = hpriv; in ahci_init_one()
1241 if (!(hpriv->cap & HOST_CAP_SSS) || ahci_ignore_sss) in ahci_init_one()
1258 ap->em_message_type = hpriv->em_msg_type; in ahci_init_one()
1262 if (!(hpriv->port_map & (1 << i))) in ahci_init_one()
1273 rc = ahci_configure_dma_masks(pdev, hpriv->cap & HOST_CAP_64); in ahci_init_one()