Lines Matching defs:hpriv
41 struct ahci_host_priv *hpriv;
64 hpriv = devm_kzalloc(dev, sizeof(*hpriv), GFP_KERNEL);
65 if (!hpriv) {
70 hpriv->flags |= (unsigned long)pi.private_data;
72 hpriv->mmio = devm_ioremap(dev, mem->start, resource_size(mem));
73 if (!hpriv->mmio) {
85 rc = pdata->init(dev, hpriv->mmio);
90 ahci_save_initial_config(dev, hpriv,
95 if (hpriv->cap & HOST_CAP_NCQ)
98 if (hpriv->cap & HOST_CAP_PMP)
101 ahci_set_em_messages(hpriv, &pi);
108 n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map));
116 host->private_data = hpriv;
118 if (!(hpriv->cap & HOST_CAP_SSS) || ahci_ignore_sss)
137 ap->em_message_type = hpriv->em_msg_type;
140 if (!(hpriv->port_map & (1 << i)))