hpriv             115 drivers/ata/acard-ahci.c 	struct ahci_host_priv *hpriv = host->private_data;
hpriv             116 drivers/ata/acard-ahci.c 	void __iomem *mmio = hpriv->mmio;
hpriv             120 drivers/ata/acard-ahci.c 	    hpriv->flags & AHCI_HFLAG_NO_SUSPEND) {
hpriv             279 drivers/ata/acard-ahci.c 	struct ahci_host_priv *hpriv = ap->host->private_data;
hpriv             291 drivers/ata/acard-ahci.c 	if ((hpriv->cap & HOST_CAP_FBS) && sata_pmp_supported(ap)) {
hpriv             296 drivers/ata/acard-ahci.c 		else if (hpriv->flags & AHCI_HFLAG_YES_FBS) {
hpriv             361 drivers/ata/acard-ahci.c 	struct ahci_host_priv *hpriv;
hpriv             385 drivers/ata/acard-ahci.c 	hpriv = devm_kzalloc(dev, sizeof(*hpriv), GFP_KERNEL);
hpriv             386 drivers/ata/acard-ahci.c 	if (!hpriv)
hpriv             389 drivers/ata/acard-ahci.c 	hpriv->irq = pdev->irq;
hpriv             390 drivers/ata/acard-ahci.c 	hpriv->flags |= (unsigned long)pi.private_data;
hpriv             392 drivers/ata/acard-ahci.c 	if (!(hpriv->flags & AHCI_HFLAG_NO_MSI))
hpriv             395 drivers/ata/acard-ahci.c 	hpriv->mmio = pcim_iomap_table(pdev)[AHCI_PCI_BAR];
hpriv             398 drivers/ata/acard-ahci.c 	ahci_save_initial_config(&pdev->dev, hpriv);
hpriv             401 drivers/ata/acard-ahci.c 	if (hpriv->cap & HOST_CAP_NCQ)
hpriv             404 drivers/ata/acard-ahci.c 	if (hpriv->cap & HOST_CAP_PMP)
hpriv             407 drivers/ata/acard-ahci.c 	ahci_set_em_messages(hpriv, &pi);
hpriv             414 drivers/ata/acard-ahci.c 	n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map));
hpriv             419 drivers/ata/acard-ahci.c 	host->private_data = hpriv;
hpriv             421 drivers/ata/acard-ahci.c 	if (!(hpriv->cap & HOST_CAP_SSS) || ahci_ignore_sss)
hpriv             438 drivers/ata/acard-ahci.c 		if (!(hpriv->port_map & (1 << i)))
hpriv             444 drivers/ata/acard-ahci.c 			DMA_BIT_MASK((hpriv->cap & HOST_CAP_64) ? 64 : 32));
hpriv             617 drivers/ata/ahci.c 					 struct ahci_host_priv *hpriv)
hpriv             621 drivers/ata/ahci.c 		hpriv->force_port_map = 1;
hpriv             629 drivers/ata/ahci.c 	if (hpriv->flags & AHCI_HFLAG_MV_PATA) {
hpriv             631 drivers/ata/ahci.c 			hpriv->mask_port_map = 0x3;
hpriv             633 drivers/ata/ahci.c 			hpriv->mask_port_map = 0xf;
hpriv             638 drivers/ata/ahci.c 	ahci_save_initial_config(&pdev->dev, hpriv);
hpriv             643 drivers/ata/ahci.c 	struct ahci_host_priv *hpriv = host->private_data;
hpriv             649 drivers/ata/ahci.c 	if (hpriv->flags & AHCI_HFLAG_MV_PATA) {
hpriv             672 drivers/ata/ahci.c 	struct ahci_host_priv *hpriv = ap->host->private_data;
hpriv             678 drivers/ata/ahci.c 	hpriv->stop_engine(ap);
hpriv             683 drivers/ata/ahci.c 	hpriv->start_engine(ap);
hpriv             698 drivers/ata/ahci.c 	struct ahci_host_priv *hpriv = ap->host->private_data;
hpriv             704 drivers/ata/ahci.c 	hpriv->stop_engine(ap);
hpriv             714 drivers/ata/ahci.c 	hpriv->start_engine(ap);
hpriv             759 drivers/ata/ahci.c 	struct ahci_host_priv *hpriv = ap->host->private_data;
hpriv             768 drivers/ata/ahci.c 	hpriv->stop_engine(ap);
hpriv             801 drivers/ata/ahci.c 	hpriv->start_engine(ap);
hpriv             814 drivers/ata/ahci.c 	struct ahci_host_priv *hpriv = host->private_data;
hpriv             815 drivers/ata/ahci.c 	void __iomem *mmio = hpriv->mmio;
hpriv             855 drivers/ata/ahci.c 	struct ahci_host_priv *hpriv = host->private_data;
hpriv             857 drivers/ata/ahci.c 	if (hpriv->flags & AHCI_HFLAG_NO_SUSPEND) {
hpriv            1415 drivers/ata/ahci.c static void acer_sa5_271_workaround(struct ahci_host_priv *hpriv,
hpriv            1431 drivers/ata/ahci.c 		if ((hpriv->saved_cap & 0xC734FF00) == 0xC734FF00) {
hpriv            1432 drivers/ata/ahci.c 			hpriv->port_map = 0x7;
hpriv            1433 drivers/ata/ahci.c 			hpriv->cap = 0xC734FF02;
hpriv            1447 drivers/ata/ahci.c 	struct ahci_host_priv *hpriv;
hpriv            1454 drivers/ata/ahci.c 	hpriv = host->private_data;
hpriv            1455 drivers/ata/ahci.c 	mmio = hpriv->mmio;
hpriv            1461 drivers/ata/ahci.c 		irq_masked = irq_stat & hpriv->port_map;
hpriv            1477 drivers/ata/ahci.c 		struct ahci_host_priv *hpriv)
hpriv            1488 drivers/ata/ahci.c 	    !(readl(hpriv->mmio + AHCI_VSCAP) & 1))
hpriv            1491 drivers/ata/ahci.c 	cap = readq(hpriv->mmio + AHCI_REMAP_CAP);
hpriv            1495 drivers/ata/ahci.c 		if (readl(hpriv->mmio + ahci_remap_dcc(i))
hpriv            1514 drivers/ata/ahci.c 	hpriv->flags |= AHCI_HFLAG_NO_MSI;
hpriv            1523 drivers/ata/ahci.c 			struct ahci_host_priv *hpriv)
hpriv            1527 drivers/ata/ahci.c 	if (hpriv->flags & AHCI_HFLAG_NO_MSI)
hpriv            1539 drivers/ata/ahci.c 			if (!(readl(hpriv->mmio + HOST_CTL) & HOST_MRSM)) {
hpriv            1540 drivers/ata/ahci.c 				hpriv->get_irq_vector = ahci_get_irq_vector;
hpriv            1541 drivers/ata/ahci.c 				hpriv->flags |= AHCI_HFLAG_MULTI_MSI;
hpriv            1566 drivers/ata/ahci.c 					   struct ahci_host_priv *hpriv)
hpriv            1572 drivers/ata/ahci.c 	if (!(hpriv->flags & AHCI_HFLAG_IS_MOBILE))
hpriv            1584 drivers/ata/ahci.c 		if (hpriv->cap & HOST_CAP_PART)
hpriv            1586 drivers/ata/ahci.c 		else if (hpriv->cap & HOST_CAP_SSC)
hpriv            1596 drivers/ata/ahci.c static void ahci_intel_pcs_quirk(struct pci_dev *pdev, struct ahci_host_priv *hpriv)
hpriv            1620 drivers/ata/ahci.c 	if ((tmp16 & hpriv->port_map) != hpriv->port_map) {
hpriv            1621 drivers/ata/ahci.c 		tmp16 |= hpriv->port_map;
hpriv            1632 drivers/ata/ahci.c 	struct ahci_host_priv *hpriv;
hpriv            1703 drivers/ata/ahci.c 	hpriv = devm_kzalloc(dev, sizeof(*hpriv), GFP_KERNEL);
hpriv            1704 drivers/ata/ahci.c 	if (!hpriv)
hpriv            1706 drivers/ata/ahci.c 	hpriv->flags |= (unsigned long)pi.private_data;
hpriv            1711 drivers/ata/ahci.c 		hpriv->flags |= AHCI_HFLAG_NO_MSI;
hpriv            1715 drivers/ata/ahci.c 		hpriv->flags &= ~AHCI_HFLAG_IGN_SERR_INTERNAL;
hpriv            1719 drivers/ata/ahci.c 		hpriv->flags &= ~AHCI_HFLAG_32BIT_ONLY;
hpriv            1721 drivers/ata/ahci.c 	hpriv->mmio = pcim_iomap_table(pdev)[ahci_pci_bar];
hpriv            1724 drivers/ata/ahci.c 	ahci_remap_check(pdev, ahci_pci_bar, hpriv);
hpriv            1728 drivers/ata/ahci.c 		hpriv->flags |= AHCI_HFLAG_NO_DEVSLP;
hpriv            1732 drivers/ata/ahci.c 		hpriv->irq_handler = ahci_thunderx_irq_handler;
hpriv            1736 drivers/ata/ahci.c 	ahci_pci_save_initial_config(pdev, hpriv);
hpriv            1742 drivers/ata/ahci.c 	ahci_intel_pcs_quirk(pdev, hpriv);
hpriv            1745 drivers/ata/ahci.c 	if (hpriv->cap & HOST_CAP_NCQ) {
hpriv            1753 drivers/ata/ahci.c 		if (!(hpriv->flags & AHCI_HFLAG_NO_FPDMA_AA))
hpriv            1765 drivers/ata/ahci.c 	if (hpriv->cap & HOST_CAP_PMP)
hpriv            1768 drivers/ata/ahci.c 	ahci_set_em_messages(hpriv, &pi);
hpriv            1783 drivers/ata/ahci.c 		hpriv->flags |= AHCI_HFLAG_NO_SUSPEND;
hpriv            1789 drivers/ata/ahci.c 		hpriv->flags |= AHCI_HFLAG_SRST_TOUT_IS_OFFLINE;
hpriv            1796 drivers/ata/ahci.c 	acer_sa5_271_workaround(hpriv, pdev);
hpriv            1803 drivers/ata/ahci.c 	n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map));
hpriv            1808 drivers/ata/ahci.c 	host->private_data = hpriv;
hpriv            1810 drivers/ata/ahci.c 	if (ahci_init_msi(pdev, n_ports, hpriv) < 0) {
hpriv            1814 drivers/ata/ahci.c 	hpriv->irq = pci_irq_vector(pdev, 0);
hpriv            1816 drivers/ata/ahci.c 	if (!(hpriv->cap & HOST_CAP_SSS) || ahci_ignore_sss)
hpriv            1833 drivers/ata/ahci.c 			ap->em_message_type = hpriv->em_msg_type;
hpriv            1835 drivers/ata/ahci.c 		ahci_update_initial_lpm_policy(ap, hpriv);
hpriv            1838 drivers/ata/ahci.c 		if (!(hpriv->port_map & (1 << i)))
hpriv            1849 drivers/ata/ahci.c 	rc = ahci_configure_dma_masks(pdev, hpriv->cap & HOST_CAP_64);
hpriv             398 drivers/ata/ahci.h 			      struct ahci_host_priv *hpriv);
hpriv             416 drivers/ata/ahci.h void ahci_set_em_messages(struct ahci_host_priv *hpriv,
hpriv             427 drivers/ata/ahci.h 	struct ahci_host_priv *hpriv = host->private_data;
hpriv             428 drivers/ata/ahci.h 	void __iomem *mmio = hpriv->mmio;
hpriv             116 drivers/ata/ahci_brcm.c static void brcm_sata_alpm_init(struct ahci_host_priv *hpriv)
hpriv             118 drivers/ata/ahci_brcm.c 	struct brcm_ahci_priv *priv = hpriv->plat_data;
hpriv             123 drivers/ata/ahci_brcm.c 	host_caps = readl(hpriv->mmio + HOST_CAP);
hpriv             125 drivers/ata/ahci_brcm.c 		hpriv->flags |= AHCI_HFLAG_YES_ALPM;
hpriv             136 drivers/ata/ahci_brcm.c 			       hpriv->mmio + SATA_PORT_PCTRL6(port_ctrl));
hpriv             215 drivers/ata/ahci_brcm.c static u32 brcm_ahci_get_portmask(struct ahci_host_priv *hpriv,
hpriv             220 drivers/ata/ahci_brcm.c 	impl = readl(hpriv->mmio + HOST_PORTS_IMPL);
hpriv             251 drivers/ata/ahci_brcm.c 	struct ahci_host_priv *hpriv = host->private_data;
hpriv             252 drivers/ata/ahci_brcm.c 	struct brcm_ahci_priv *priv = hpriv->plat_data;
hpriv             253 drivers/ata/ahci_brcm.c 	void __iomem *mmio = hpriv->mmio;
hpriv             278 drivers/ata/ahci_brcm.c 	ahci_platform_disable_clks(hpriv);
hpriv             281 drivers/ata/ahci_brcm.c 	ahci_platform_enable_clks(hpriv);
hpriv             288 drivers/ata/ahci_brcm.c 	for (i = 0; i < hpriv->nports; i++) {
hpriv             289 drivers/ata/ahci_brcm.c 		rc = phy_init(hpriv->phys[i]);
hpriv             293 drivers/ata/ahci_brcm.c 		rc = phy_calibrate(hpriv->phys[i]);
hpriv             295 drivers/ata/ahci_brcm.c 			phy_exit(hpriv->phys[i]);
hpriv             312 drivers/ata/ahci_brcm.c 		phy_power_off(hpriv->phys[i]);
hpriv             313 drivers/ata/ahci_brcm.c 		phy_exit(hpriv->phys[i]);
hpriv             321 drivers/ata/ahci_brcm.c 	struct ahci_host_priv *hpriv = host->private_data;
hpriv             323 drivers/ata/ahci_brcm.c 	ahci_platform_disable_resources(hpriv);
hpriv             344 drivers/ata/ahci_brcm.c 	struct ahci_host_priv *hpriv = host->private_data;
hpriv             345 drivers/ata/ahci_brcm.c 	struct brcm_ahci_priv *priv = hpriv->plat_data;
hpriv             355 drivers/ata/ahci_brcm.c 	struct ahci_host_priv *hpriv = host->private_data;
hpriv             356 drivers/ata/ahci_brcm.c 	struct brcm_ahci_priv *priv = hpriv->plat_data;
hpriv             360 drivers/ata/ahci_brcm.c 	ret = ahci_platform_enable_clks(hpriv);
hpriv             366 drivers/ata/ahci_brcm.c 	brcm_sata_alpm_init(hpriv);
hpriv             374 drivers/ata/ahci_brcm.c 	ret = ahci_platform_enable_phys(hpriv);
hpriv             390 drivers/ata/ahci_brcm.c 	ahci_platform_disable_phys(hpriv);
hpriv             393 drivers/ata/ahci_brcm.c 	ahci_platform_disable_clks(hpriv);
hpriv             416 drivers/ata/ahci_brcm.c 	struct ahci_host_priv *hpriv;
hpriv             441 drivers/ata/ahci_brcm.c 	hpriv = ahci_platform_get_resources(pdev, 0);
hpriv             442 drivers/ata/ahci_brcm.c 	if (IS_ERR(hpriv)) {
hpriv             443 drivers/ata/ahci_brcm.c 		ret = PTR_ERR(hpriv);
hpriv             447 drivers/ata/ahci_brcm.c 	hpriv->plat_data = priv;
hpriv             448 drivers/ata/ahci_brcm.c 	hpriv->flags = AHCI_HFLAG_WAKE_BEFORE_STOP | AHCI_HFLAG_NO_WRITE_TO_RO;
hpriv             452 drivers/ata/ahci_brcm.c 		hpriv->flags |= AHCI_HFLAG_DELAY_ENGINE;
hpriv             455 drivers/ata/ahci_brcm.c 		hpriv->flags |= AHCI_HFLAG_NO_NCQ;
hpriv             462 drivers/ata/ahci_brcm.c 	ret = ahci_platform_enable_clks(hpriv);
hpriv             472 drivers/ata/ahci_brcm.c 	priv->port_mask = brcm_ahci_get_portmask(hpriv, priv);
hpriv             481 drivers/ata/ahci_brcm.c 	brcm_sata_alpm_init(hpriv);
hpriv             483 drivers/ata/ahci_brcm.c 	ret = ahci_platform_enable_phys(hpriv);
hpriv             487 drivers/ata/ahci_brcm.c 	ret = ahci_platform_init_host(pdev, hpriv, &ahci_brcm_port_info,
hpriv             497 drivers/ata/ahci_brcm.c 	ahci_platform_disable_phys(hpriv);
hpriv             501 drivers/ata/ahci_brcm.c 	ahci_platform_disable_clks(hpriv);
hpriv             511 drivers/ata/ahci_brcm.c 	struct ahci_host_priv *hpriv = host->private_data;
hpriv             512 drivers/ata/ahci_brcm.c 	struct brcm_ahci_priv *priv = hpriv->plat_data;
hpriv             121 drivers/ata/ahci_ceva.c static void ahci_ceva_setup(struct ahci_host_priv *hpriv)
hpriv             123 drivers/ata/ahci_ceva.c 	void __iomem *mmio = hpriv->mmio;
hpriv             124 drivers/ata/ahci_ceva.c 	struct ceva_ahci_priv *cevapriv = hpriv->plat_data;
hpriv             194 drivers/ata/ahci_ceva.c 	struct ahci_host_priv *hpriv;
hpriv             205 drivers/ata/ahci_ceva.c 	hpriv = ahci_platform_get_resources(pdev, 0);
hpriv             206 drivers/ata/ahci_ceva.c 	if (IS_ERR(hpriv))
hpriv             207 drivers/ata/ahci_ceva.c 		return PTR_ERR(hpriv);
hpriv             209 drivers/ata/ahci_ceva.c 	rc = ahci_platform_enable_resources(hpriv);
hpriv             275 drivers/ata/ahci_ceva.c 	hpriv->plat_data = cevapriv;
hpriv             278 drivers/ata/ahci_ceva.c 	ahci_ceva_setup(hpriv);
hpriv             280 drivers/ata/ahci_ceva.c 	rc = ahci_platform_init_host(pdev, hpriv, &ahci_ceva_port_info,
hpriv             288 drivers/ata/ahci_ceva.c 	ahci_platform_disable_resources(hpriv);
hpriv             300 drivers/ata/ahci_ceva.c 	struct ahci_host_priv *hpriv = host->private_data;
hpriv             303 drivers/ata/ahci_ceva.c 	rc = ahci_platform_enable_resources(hpriv);
hpriv             308 drivers/ata/ahci_ceva.c 	ahci_ceva_setup(hpriv);
hpriv             322 drivers/ata/ahci_ceva.c 	ahci_platform_disable_resources(hpriv);
hpriv             163 drivers/ata/ahci_da850.c 	struct ahci_host_priv *hpriv;
hpriv             170 drivers/ata/ahci_da850.c 	hpriv = ahci_platform_get_resources(pdev, 0);
hpriv             171 drivers/ata/ahci_da850.c 	if (IS_ERR(hpriv))
hpriv             172 drivers/ata/ahci_da850.c 		return PTR_ERR(hpriv);
hpriv             181 drivers/ata/ahci_da850.c 	if (!hpriv->clks[0]) {
hpriv             186 drivers/ata/ahci_da850.c 		hpriv->clks[0] = clk;
hpriv             194 drivers/ata/ahci_da850.c 	if (!hpriv->clks[1]) {
hpriv             201 drivers/ata/ahci_da850.c 		hpriv->clks[1] = clk;
hpriv             204 drivers/ata/ahci_da850.c 	mpy = ahci_da850_calculate_mpy(clk_get_rate(hpriv->clks[1]));
hpriv             210 drivers/ata/ahci_da850.c 	rc = ahci_platform_enable_resources(hpriv);
hpriv             226 drivers/ata/ahci_da850.c 	da850_sata_init(dev, pwrdn_reg, hpriv->mmio, mpy);
hpriv             228 drivers/ata/ahci_da850.c 	rc = ahci_platform_init_host(pdev, hpriv, &ahci_da850_port_info,
hpriv             235 drivers/ata/ahci_da850.c 	ahci_platform_disable_resources(hpriv);
hpriv              61 drivers/ata/ahci_dm816.c static int ahci_dm816_phy_init(struct ahci_host_priv *hpriv, struct device *dev)
hpriv              72 drivers/ata/ahci_dm816.c 	if (!hpriv->clks[1]) {
hpriv              77 drivers/ata/ahci_dm816.c 	refclk_rate = clk_get_rate(hpriv->clks[1]);
hpriv              93 drivers/ata/ahci_dm816.c 	writel(val, hpriv->mmio + AHCI_DM816_P0PHYCR_REG);
hpriv              98 drivers/ata/ahci_dm816.c 	writel(val, hpriv->mmio + AHCI_DM816_P1PHYCR_REG);
hpriv             144 drivers/ata/ahci_dm816.c 	struct ahci_host_priv *hpriv;
hpriv             147 drivers/ata/ahci_dm816.c 	hpriv = ahci_platform_get_resources(pdev, 0);
hpriv             148 drivers/ata/ahci_dm816.c 	if (IS_ERR(hpriv))
hpriv             149 drivers/ata/ahci_dm816.c 		return PTR_ERR(hpriv);
hpriv             151 drivers/ata/ahci_dm816.c 	rc = ahci_platform_enable_resources(hpriv);
hpriv             155 drivers/ata/ahci_dm816.c 	rc = ahci_dm816_phy_init(hpriv, dev);
hpriv             159 drivers/ata/ahci_dm816.c 	rc = ahci_platform_init_host(pdev, hpriv,
hpriv             168 drivers/ata/ahci_dm816.c 	ahci_platform_disable_resources(hpriv);
hpriv             225 drivers/ata/ahci_imx.c static int imx_sata_phy_reset(struct ahci_host_priv *hpriv)
hpriv             227 drivers/ata/ahci_imx.c 	struct imx_ahci_priv *imxpriv = hpriv->plat_data;
hpriv             228 drivers/ata/ahci_imx.c 	void __iomem *mmio = hpriv->mmio;
hpriv             335 drivers/ata/ahci_imx.c 	struct ahci_host_priv *hpriv = dev_get_drvdata(dev);
hpriv             336 drivers/ata/ahci_imx.c 	void __iomem *mmio = hpriv->mmio;
hpriv             445 drivers/ata/ahci_imx.c static int imx8_sata_enable(struct ahci_host_priv *hpriv)
hpriv             449 drivers/ata/ahci_imx.c 	struct imx_ahci_priv *imxpriv = hpriv->plat_data;
hpriv             646 drivers/ata/ahci_imx.c static int imx_sata_enable(struct ahci_host_priv *hpriv)
hpriv             648 drivers/ata/ahci_imx.c 	struct imx_ahci_priv *imxpriv = hpriv->plat_data;
hpriv             655 drivers/ata/ahci_imx.c 	ret = ahci_platform_enable_regulators(hpriv);
hpriv             688 drivers/ata/ahci_imx.c 		ret = imx_sata_phy_reset(hpriv);
hpriv             694 drivers/ata/ahci_imx.c 		ret = imx8_sata_enable(hpriv);
hpriv             704 drivers/ata/ahci_imx.c 	ahci_platform_disable_regulators(hpriv);
hpriv             709 drivers/ata/ahci_imx.c static void imx_sata_disable(struct ahci_host_priv *hpriv)
hpriv             711 drivers/ata/ahci_imx.c 	struct imx_ahci_priv *imxpriv = hpriv->plat_data;
hpriv             743 drivers/ata/ahci_imx.c 	ahci_platform_disable_regulators(hpriv);
hpriv             751 drivers/ata/ahci_imx.c 	struct ahci_host_priv *hpriv = host->private_data;
hpriv             752 drivers/ata/ahci_imx.c 	void __iomem *mmio = hpriv->mmio;
hpriv             753 drivers/ata/ahci_imx.c 	struct imx_ahci_priv *imxpriv = hpriv->plat_data;
hpriv             771 drivers/ata/ahci_imx.c 	imx_sata_disable(hpriv);
hpriv             783 drivers/ata/ahci_imx.c 	struct ahci_host_priv *hpriv = host->private_data;
hpriv             784 drivers/ata/ahci_imx.c 	struct imx_ahci_priv *imxpriv = hpriv->plat_data;
hpriv            1058 drivers/ata/ahci_imx.c 	struct ahci_host_priv *hpriv;
hpriv            1119 drivers/ata/ahci_imx.c 	hpriv = ahci_platform_get_resources(pdev, 0);
hpriv            1120 drivers/ata/ahci_imx.c 	if (IS_ERR(hpriv))
hpriv            1121 drivers/ata/ahci_imx.c 		return PTR_ERR(hpriv);
hpriv            1123 drivers/ata/ahci_imx.c 	hpriv->plat_data = imxpriv;
hpriv            1137 drivers/ata/ahci_imx.c 							hpriv,
hpriv            1148 drivers/ata/ahci_imx.c 	ret = imx_sata_enable(hpriv);
hpriv            1159 drivers/ata/ahci_imx.c 	reg_val = readl(hpriv->mmio + HOST_CAP);
hpriv            1162 drivers/ata/ahci_imx.c 		writel(reg_val, hpriv->mmio + HOST_CAP);
hpriv            1164 drivers/ata/ahci_imx.c 	reg_val = readl(hpriv->mmio + HOST_PORTS_IMPL);
hpriv            1167 drivers/ata/ahci_imx.c 		writel(reg_val, hpriv->mmio + HOST_PORTS_IMPL);
hpriv            1171 drivers/ata/ahci_imx.c 	writel(reg_val, hpriv->mmio + IMX_TIMER1MS);
hpriv            1173 drivers/ata/ahci_imx.c 	ret = ahci_platform_init_host(pdev, hpriv, &ahci_imx_port_info,
hpriv            1181 drivers/ata/ahci_imx.c 	imx_sata_disable(hpriv);
hpriv            1189 drivers/ata/ahci_imx.c 	struct ahci_host_priv *hpriv = host->private_data;
hpriv            1190 drivers/ata/ahci_imx.c 	struct imx_ahci_priv *imxpriv = hpriv->plat_data;
hpriv            1192 drivers/ata/ahci_imx.c 	imx_sata_disable(hpriv);
hpriv            1200 drivers/ata/ahci_imx.c 	struct ahci_host_priv *hpriv = host->private_data;
hpriv            1207 drivers/ata/ahci_imx.c 	imx_sata_disable(hpriv);
hpriv            1215 drivers/ata/ahci_imx.c 	struct ahci_host_priv *hpriv = host->private_data;
hpriv            1218 drivers/ata/ahci_imx.c 	ret = imx_sata_enable(hpriv);
hpriv              44 drivers/ata/ahci_mtk.c static int mtk_ahci_platform_resets(struct ahci_host_priv *hpriv,
hpriv              47 drivers/ata/ahci_mtk.c 	struct mtk_ahci_plat *plat = hpriv->plat_data;
hpriv             102 drivers/ata/ahci_mtk.c static int mtk_ahci_parse_property(struct ahci_host_priv *hpriv,
hpriv             105 drivers/ata/ahci_mtk.c 	struct mtk_ahci_plat *plat = hpriv->plat_data;
hpriv             121 drivers/ata/ahci_mtk.c 	of_property_read_u32(np, "ports-implemented", &hpriv->force_port_map);
hpriv             130 drivers/ata/ahci_mtk.c 	struct ahci_host_priv *hpriv;
hpriv             137 drivers/ata/ahci_mtk.c 	hpriv = ahci_platform_get_resources(pdev, 0);
hpriv             138 drivers/ata/ahci_mtk.c 	if (IS_ERR(hpriv))
hpriv             139 drivers/ata/ahci_mtk.c 		return PTR_ERR(hpriv);
hpriv             141 drivers/ata/ahci_mtk.c 	hpriv->plat_data = plat;
hpriv             143 drivers/ata/ahci_mtk.c 	err = mtk_ahci_parse_property(hpriv, dev);
hpriv             147 drivers/ata/ahci_mtk.c 	err = mtk_ahci_platform_resets(hpriv, dev);
hpriv             151 drivers/ata/ahci_mtk.c 	err = ahci_platform_enable_resources(hpriv);
hpriv             155 drivers/ata/ahci_mtk.c 	err = ahci_platform_init_host(pdev, hpriv, &ahci_port_info,
hpriv             163 drivers/ata/ahci_mtk.c 	ahci_platform_disable_resources(hpriv);
hpriv              32 drivers/ata/ahci_mvebu.c 	int (*plat_config)(struct ahci_host_priv *hpriv);
hpriv              36 drivers/ata/ahci_mvebu.c static void ahci_mvebu_mbus_config(struct ahci_host_priv *hpriv,
hpriv              42 drivers/ata/ahci_mvebu.c 		writel(0, hpriv->mmio + AHCI_WINDOW_CTRL(i));
hpriv              43 drivers/ata/ahci_mvebu.c 		writel(0, hpriv->mmio + AHCI_WINDOW_BASE(i));
hpriv              44 drivers/ata/ahci_mvebu.c 		writel(0, hpriv->mmio + AHCI_WINDOW_SIZE(i));
hpriv              52 drivers/ata/ahci_mvebu.c 		       hpriv->mmio + AHCI_WINDOW_CTRL(i));
hpriv              53 drivers/ata/ahci_mvebu.c 		writel(cs->base >> 16, hpriv->mmio + AHCI_WINDOW_BASE(i));
hpriv              55 drivers/ata/ahci_mvebu.c 		       hpriv->mmio + AHCI_WINDOW_SIZE(i));
hpriv              59 drivers/ata/ahci_mvebu.c static void ahci_mvebu_regret_option(struct ahci_host_priv *hpriv)
hpriv              66 drivers/ata/ahci_mvebu.c 	writel(0x4, hpriv->mmio + AHCI_VENDOR_SPECIFIC_0_ADDR);
hpriv              67 drivers/ata/ahci_mvebu.c 	writel(0x80, hpriv->mmio + AHCI_VENDOR_SPECIFIC_0_DATA);
hpriv              70 drivers/ata/ahci_mvebu.c static int ahci_mvebu_armada_380_config(struct ahci_host_priv *hpriv)
hpriv              77 drivers/ata/ahci_mvebu.c 		ahci_mvebu_mbus_config(hpriv, dram);
hpriv              81 drivers/ata/ahci_mvebu.c 	ahci_mvebu_regret_option(hpriv);
hpriv              86 drivers/ata/ahci_mvebu.c static int ahci_mvebu_armada_3700_config(struct ahci_host_priv *hpriv)
hpriv              90 drivers/ata/ahci_mvebu.c 	writel(0, hpriv->mmio + AHCI_VENDOR_SPECIFIC_0_ADDR);
hpriv              92 drivers/ata/ahci_mvebu.c 	reg = readl(hpriv->mmio + AHCI_VENDOR_SPECIFIC_0_DATA);
hpriv              94 drivers/ata/ahci_mvebu.c 	writel(reg, hpriv->mmio + AHCI_VENDOR_SPECIFIC_0_DATA);
hpriv             162 drivers/ata/ahci_mvebu.c 	struct ahci_host_priv *hpriv = host->private_data;
hpriv             163 drivers/ata/ahci_mvebu.c 	const struct ahci_mvebu_plat_data *pdata = hpriv->plat_data;
hpriv             165 drivers/ata/ahci_mvebu.c 	pdata->plat_config(hpriv);
hpriv             188 drivers/ata/ahci_mvebu.c 	struct ahci_host_priv *hpriv;
hpriv             195 drivers/ata/ahci_mvebu.c 	hpriv = ahci_platform_get_resources(pdev, 0);
hpriv             196 drivers/ata/ahci_mvebu.c 	if (IS_ERR(hpriv))
hpriv             197 drivers/ata/ahci_mvebu.c 		return PTR_ERR(hpriv);
hpriv             199 drivers/ata/ahci_mvebu.c 	hpriv->flags |= pdata->flags;
hpriv             200 drivers/ata/ahci_mvebu.c 	hpriv->plat_data = (void *)pdata;
hpriv             202 drivers/ata/ahci_mvebu.c 	rc = ahci_platform_enable_resources(hpriv);
hpriv             206 drivers/ata/ahci_mvebu.c 	hpriv->stop_engine = ahci_mvebu_stop_engine;
hpriv             208 drivers/ata/ahci_mvebu.c 	rc = pdata->plat_config(hpriv);
hpriv             212 drivers/ata/ahci_mvebu.c 	rc = ahci_platform_init_host(pdev, hpriv, &ahci_mvebu_port_info,
hpriv             220 drivers/ata/ahci_mvebu.c 	ahci_platform_disable_resources(hpriv);
hpriv              46 drivers/ata/ahci_platform.c 	struct ahci_host_priv *hpriv;
hpriv              50 drivers/ata/ahci_platform.c 	hpriv = ahci_platform_get_resources(pdev,
hpriv              52 drivers/ata/ahci_platform.c 	if (IS_ERR(hpriv))
hpriv              53 drivers/ata/ahci_platform.c 		return PTR_ERR(hpriv);
hpriv              55 drivers/ata/ahci_platform.c 	rc = ahci_platform_enable_resources(hpriv);
hpriv              60 drivers/ata/ahci_platform.c 			     "ports-implemented", &hpriv->force_port_map);
hpriv              63 drivers/ata/ahci_platform.c 		hpriv->flags |= AHCI_HFLAG_NO_FBS | AHCI_HFLAG_NO_NCQ;
hpriv              69 drivers/ata/ahci_platform.c 	rc = ahci_platform_init_host(pdev, hpriv, port,
hpriv              76 drivers/ata/ahci_platform.c 	ahci_platform_disable_resources(hpriv);
hpriv              91 drivers/ata/ahci_qoriq.c 	struct ahci_host_priv *hpriv = ap->host->private_data;
hpriv              92 drivers/ata/ahci_qoriq.c 	struct ahci_qoriq_priv *qoriq_priv = hpriv->plat_data;
hpriv             101 drivers/ata/ahci_qoriq.c 	hpriv->stop_engine(ap);
hpriv             138 drivers/ata/ahci_qoriq.c 	hpriv->start_engine(ap);
hpriv             163 drivers/ata/ahci_qoriq.c static int ahci_qoriq_phy_init(struct ahci_host_priv *hpriv)
hpriv             165 drivers/ata/ahci_qoriq.c 	struct ahci_qoriq_priv *qpriv = hpriv->plat_data;
hpriv             166 drivers/ata/ahci_qoriq.c 	void __iomem *reg_base = hpriv->mmio;
hpriv             259 drivers/ata/ahci_qoriq.c 	struct ahci_host_priv *hpriv;
hpriv             265 drivers/ata/ahci_qoriq.c 	hpriv = ahci_platform_get_resources(pdev, 0);
hpriv             266 drivers/ata/ahci_qoriq.c 	if (IS_ERR(hpriv))
hpriv             267 drivers/ata/ahci_qoriq.c 		return PTR_ERR(hpriv);
hpriv             293 drivers/ata/ahci_qoriq.c 	rc = ahci_platform_enable_resources(hpriv);
hpriv             297 drivers/ata/ahci_qoriq.c 	hpriv->plat_data = qoriq_priv;
hpriv             298 drivers/ata/ahci_qoriq.c 	rc = ahci_qoriq_phy_init(hpriv);
hpriv             302 drivers/ata/ahci_qoriq.c 	rc = ahci_platform_init_host(pdev, hpriv, &ahci_qoriq_port_info,
hpriv             310 drivers/ata/ahci_qoriq.c 	ahci_platform_disable_resources(hpriv);
hpriv             319 drivers/ata/ahci_qoriq.c 	struct ahci_host_priv *hpriv = host->private_data;
hpriv             322 drivers/ata/ahci_qoriq.c 	rc = ahci_platform_enable_resources(hpriv);
hpriv             326 drivers/ata/ahci_qoriq.c 	rc = ahci_qoriq_phy_init(hpriv);
hpriv             342 drivers/ata/ahci_qoriq.c 	ahci_platform_disable_resources(hpriv);
hpriv              82 drivers/ata/ahci_seattle.c 	struct ahci_host_priv *hpriv = ap->host->private_data;
hpriv              84 drivers/ata/ahci_seattle.c 	struct seattle_plat_data *plat_data = hpriv->plat_data;
hpriv             125 drivers/ata/ahci_seattle.c 		struct platform_device *pdev, struct ahci_host_priv *hpriv)
hpriv             145 drivers/ata/ahci_seattle.c 	hpriv->em_loc = 0;
hpriv             146 drivers/ata/ahci_seattle.c 	hpriv->em_buf_sz = 4;
hpriv             147 drivers/ata/ahci_seattle.c 	hpriv->em_msg_type = EM_MSG_TYPE_LED;
hpriv             148 drivers/ata/ahci_seattle.c 	hpriv->plat_data = plat_data;
hpriv             157 drivers/ata/ahci_seattle.c 	struct ahci_host_priv *hpriv;
hpriv             159 drivers/ata/ahci_seattle.c 	hpriv = ahci_platform_get_resources(pdev, 0);
hpriv             160 drivers/ata/ahci_seattle.c 	if (IS_ERR(hpriv))
hpriv             161 drivers/ata/ahci_seattle.c 		return PTR_ERR(hpriv);
hpriv             163 drivers/ata/ahci_seattle.c 	rc = ahci_platform_enable_resources(hpriv);
hpriv             167 drivers/ata/ahci_seattle.c 	rc = ahci_platform_init_host(pdev, hpriv,
hpriv             168 drivers/ata/ahci_seattle.c 				     ahci_seattle_get_port_info(pdev, hpriv),
hpriv             175 drivers/ata/ahci_seattle.c 	ahci_platform_disable_resources(hpriv);
hpriv              54 drivers/ata/ahci_st.c static int st_ahci_deassert_resets(struct ahci_host_priv *hpriv,
hpriv              57 drivers/ata/ahci_st.c 	struct st_ahci_drv_data *drv_data = hpriv->plat_data;
hpriv              89 drivers/ata/ahci_st.c 	struct ahci_host_priv *hpriv = host->private_data;
hpriv              90 drivers/ata/ahci_st.c 	struct st_ahci_drv_data *drv_data = hpriv->plat_data;
hpriv             100 drivers/ata/ahci_st.c 	ahci_platform_disable_resources(hpriv);
hpriv             103 drivers/ata/ahci_st.c static int st_ahci_probe_resets(struct ahci_host_priv *hpriv,
hpriv             106 drivers/ata/ahci_st.c 	struct st_ahci_drv_data *drv_data = hpriv->plat_data;
hpriv             126 drivers/ata/ahci_st.c 	return st_ahci_deassert_resets(hpriv, dev);
hpriv             149 drivers/ata/ahci_st.c 	struct ahci_host_priv *hpriv;
hpriv             156 drivers/ata/ahci_st.c 	hpriv = ahci_platform_get_resources(pdev, 0);
hpriv             157 drivers/ata/ahci_st.c 	if (IS_ERR(hpriv))
hpriv             158 drivers/ata/ahci_st.c 		return PTR_ERR(hpriv);
hpriv             159 drivers/ata/ahci_st.c 	hpriv->plat_data = drv_data;
hpriv             161 drivers/ata/ahci_st.c 	err = st_ahci_probe_resets(hpriv, &pdev->dev);
hpriv             165 drivers/ata/ahci_st.c 	err = ahci_platform_enable_resources(hpriv);
hpriv             169 drivers/ata/ahci_st.c 	st_ahci_configure_oob(hpriv->mmio);
hpriv             172 drivers/ata/ahci_st.c 			     "ports-implemented", &hpriv->force_port_map);
hpriv             174 drivers/ata/ahci_st.c 	err = ahci_platform_init_host(pdev, hpriv, &st_ahci_port_info,
hpriv             177 drivers/ata/ahci_st.c 		ahci_platform_disable_resources(hpriv);
hpriv             188 drivers/ata/ahci_st.c 	struct ahci_host_priv *hpriv = host->private_data;
hpriv             189 drivers/ata/ahci_st.c 	struct st_ahci_drv_data *drv_data = hpriv->plat_data;
hpriv             204 drivers/ata/ahci_st.c 	ahci_platform_disable_resources(hpriv);
hpriv             212 drivers/ata/ahci_st.c 	struct ahci_host_priv *hpriv = host->private_data;
hpriv             215 drivers/ata/ahci_st.c 	err = ahci_platform_enable_resources(hpriv);
hpriv             219 drivers/ata/ahci_st.c 	err = st_ahci_deassert_resets(hpriv, dev);
hpriv             221 drivers/ata/ahci_st.c 		ahci_platform_disable_resources(hpriv);
hpriv             225 drivers/ata/ahci_st.c 	st_ahci_configure_oob(hpriv->mmio);
hpriv             150 drivers/ata/ahci_sunxi.c 	struct ahci_host_priv *hpriv = ap->host->private_data;
hpriv             196 drivers/ata/ahci_sunxi.c 	sunxi_clrsetbits(hpriv->mmio + AHCI_P0DMACR, 0x0000ffff, 0x00004433);
hpriv             216 drivers/ata/ahci_sunxi.c 	struct ahci_host_priv *hpriv;
hpriv             219 drivers/ata/ahci_sunxi.c 	hpriv = ahci_platform_get_resources(pdev, AHCI_PLATFORM_GET_RESETS);
hpriv             220 drivers/ata/ahci_sunxi.c 	if (IS_ERR(hpriv))
hpriv             221 drivers/ata/ahci_sunxi.c 		return PTR_ERR(hpriv);
hpriv             223 drivers/ata/ahci_sunxi.c 	hpriv->start_engine = ahci_sunxi_start_engine;
hpriv             225 drivers/ata/ahci_sunxi.c 	rc = ahci_platform_enable_resources(hpriv);
hpriv             229 drivers/ata/ahci_sunxi.c 	rc = ahci_sunxi_phy_init(dev, hpriv->mmio);
hpriv             233 drivers/ata/ahci_sunxi.c 	hpriv->flags = AHCI_HFLAG_32BIT_ONLY | AHCI_HFLAG_NO_MSI |
hpriv             242 drivers/ata/ahci_sunxi.c 		hpriv->flags |= AHCI_HFLAG_NO_PMP;
hpriv             244 drivers/ata/ahci_sunxi.c 	rc = ahci_platform_init_host(pdev, hpriv, &ahci_sunxi_port_info,
hpriv             252 drivers/ata/ahci_sunxi.c 	ahci_platform_disable_resources(hpriv);
hpriv             260 drivers/ata/ahci_sunxi.c 	struct ahci_host_priv *hpriv = host->private_data;
hpriv             263 drivers/ata/ahci_sunxi.c 	rc = ahci_platform_enable_resources(hpriv);
hpriv             267 drivers/ata/ahci_sunxi.c 	rc = ahci_sunxi_phy_init(dev, hpriv->mmio);
hpriv             278 drivers/ata/ahci_sunxi.c 	ahci_platform_disable_resources(hpriv);
hpriv             154 drivers/ata/ahci_tegra.c 	int (*init)(struct ahci_host_priv *hpriv);
hpriv             177 drivers/ata/ahci_tegra.c static void tegra_ahci_handle_quirks(struct ahci_host_priv *hpriv)
hpriv             179 drivers/ata/ahci_tegra.c 	struct tegra_ahci_priv *tegra = hpriv->plat_data;
hpriv             189 drivers/ata/ahci_tegra.c static int tegra124_ahci_init(struct ahci_host_priv *hpriv)
hpriv             191 drivers/ata/ahci_tegra.c 	struct tegra_ahci_priv *tegra = hpriv->plat_data;
hpriv             233 drivers/ata/ahci_tegra.c static int tegra_ahci_power_on(struct ahci_host_priv *hpriv)
hpriv             235 drivers/ata/ahci_tegra.c 	struct tegra_ahci_priv *tegra = hpriv->plat_data;
hpriv             252 drivers/ata/ahci_tegra.c 	ret = ahci_platform_enable_resources(hpriv);
hpriv             272 drivers/ata/ahci_tegra.c static void tegra_ahci_power_off(struct ahci_host_priv *hpriv)
hpriv             274 drivers/ata/ahci_tegra.c 	struct tegra_ahci_priv *tegra = hpriv->plat_data;
hpriv             276 drivers/ata/ahci_tegra.c 	ahci_platform_disable_resources(hpriv);
hpriv             288 drivers/ata/ahci_tegra.c static int tegra_ahci_controller_init(struct ahci_host_priv *hpriv)
hpriv             290 drivers/ata/ahci_tegra.c 	struct tegra_ahci_priv *tegra = hpriv->plat_data;
hpriv             294 drivers/ata/ahci_tegra.c 	ret = tegra_ahci_power_on(hpriv);
hpriv             350 drivers/ata/ahci_tegra.c 		tegra->soc->ops->init(hpriv);
hpriv             409 drivers/ata/ahci_tegra.c 	tegra_ahci_handle_quirks(hpriv);
hpriv             420 drivers/ata/ahci_tegra.c static void tegra_ahci_controller_deinit(struct ahci_host_priv *hpriv)
hpriv             422 drivers/ata/ahci_tegra.c 	tegra_ahci_power_off(hpriv);
hpriv             427 drivers/ata/ahci_tegra.c 	struct ahci_host_priv *hpriv = host->private_data;
hpriv             429 drivers/ata/ahci_tegra.c 	tegra_ahci_controller_deinit(hpriv);
hpriv             482 drivers/ata/ahci_tegra.c 	struct ahci_host_priv *hpriv;
hpriv             488 drivers/ata/ahci_tegra.c 	hpriv = ahci_platform_get_resources(pdev, 0);
hpriv             489 drivers/ata/ahci_tegra.c 	if (IS_ERR(hpriv))
hpriv             490 drivers/ata/ahci_tegra.c 		return PTR_ERR(hpriv);
hpriv             496 drivers/ata/ahci_tegra.c 	hpriv->plat_data = tegra;
hpriv             557 drivers/ata/ahci_tegra.c 	ret = tegra_ahci_controller_init(hpriv);
hpriv             561 drivers/ata/ahci_tegra.c 	ret = ahci_platform_init_host(pdev, hpriv, &ahci_tegra_port_info,
hpriv             569 drivers/ata/ahci_tegra.c 	tegra_ahci_controller_deinit(hpriv);
hpriv              81 drivers/ata/ahci_xgene.c 	struct ahci_host_priv *hpriv;
hpriv             140 drivers/ata/ahci_xgene.c 	struct ahci_host_priv *hpriv = ap->host->private_data;
hpriv             155 drivers/ata/ahci_xgene.c 	hpriv->stop_engine(ap);
hpriv             168 drivers/ata/ahci_xgene.c 	hpriv->start_engine(ap);
hpriv             192 drivers/ata/ahci_xgene.c 	struct ahci_host_priv *hpriv = ap->host->private_data;
hpriv             193 drivers/ata/ahci_xgene.c 	struct xgene_ahci_context *ctx = hpriv->plat_data;
hpriv             269 drivers/ata/ahci_xgene.c 	void __iomem *mmio = ctx->hpriv->mmio;
hpriv             355 drivers/ata/ahci_xgene.c 	struct ahci_host_priv *hpriv = ap->host->private_data;
hpriv             356 drivers/ata/ahci_xgene.c 	struct xgene_ahci_context *ctx = hpriv->plat_data;
hpriv             394 drivers/ata/ahci_xgene.c         struct ahci_host_priv *hpriv = ap->host->private_data;
hpriv             411 drivers/ata/ahci_xgene.c 	hpriv->stop_engine(ap);
hpriv             422 drivers/ata/ahci_xgene.c 	hpriv->start_engine(ap);
hpriv             432 drivers/ata/ahci_xgene.c 	struct ahci_host_priv *hpriv = host->private_data;
hpriv             434 drivers/ata/ahci_xgene.c 	ahci_platform_disable_resources(hpriv);
hpriv             500 drivers/ata/ahci_xgene.c 	struct ahci_host_priv *hpriv = ap->host->private_data;
hpriv             501 drivers/ata/ahci_xgene.c 	struct xgene_ahci_context *ctx = hpriv->plat_data;
hpriv             565 drivers/ata/ahci_xgene.c 	struct ahci_host_priv *hpriv = host->private_data;
hpriv             569 drivers/ata/ahci_xgene.c 	if (!readl(hpriv->mmio + HOST_IRQ_STAT)) {
hpriv             586 drivers/ata/ahci_xgene.c 	struct ahci_host_priv *hpriv;
hpriv             593 drivers/ata/ahci_xgene.c 	hpriv = host->private_data;
hpriv             594 drivers/ata/ahci_xgene.c 	mmio = hpriv->mmio;
hpriv             601 drivers/ata/ahci_xgene.c 	irq_masked = irq_stat & hpriv->port_map;
hpriv             651 drivers/ata/ahci_xgene.c static int xgene_ahci_hw_init(struct ahci_host_priv *hpriv)
hpriv             653 drivers/ata/ahci_xgene.c 	struct xgene_ahci_context *ctx = hpriv->plat_data;
hpriv             667 drivers/ata/ahci_xgene.c 	writel(0xffffffff, hpriv->mmio + HOST_IRQ_STAT);
hpriv             668 drivers/ata/ahci_xgene.c 	readl(hpriv->mmio + HOST_IRQ_STAT); /* Force a barrier */
hpriv             740 drivers/ata/ahci_xgene.c 	struct ahci_host_priv *hpriv;
hpriv             749 drivers/ata/ahci_xgene.c 	hpriv = ahci_platform_get_resources(pdev, 0);
hpriv             750 drivers/ata/ahci_xgene.c 	if (IS_ERR(hpriv))
hpriv             751 drivers/ata/ahci_xgene.c 		return PTR_ERR(hpriv);
hpriv             757 drivers/ata/ahci_xgene.c 	hpriv->plat_data = ctx;
hpriv             758 drivers/ata/ahci_xgene.c 	ctx->hpriv = hpriv;
hpriv             821 drivers/ata/ahci_xgene.c 		hpriv->mmio);
hpriv             835 drivers/ata/ahci_xgene.c 	rc = ahci_platform_enable_clks(hpriv);
hpriv             838 drivers/ata/ahci_xgene.c 	ahci_platform_disable_clks(hpriv);
hpriv             840 drivers/ata/ahci_xgene.c 	rc = ahci_platform_enable_resources(hpriv);
hpriv             845 drivers/ata/ahci_xgene.c 	xgene_ahci_hw_init(hpriv);
hpriv             850 drivers/ata/ahci_xgene.c 		hpriv->flags = AHCI_HFLAG_NO_NCQ;
hpriv             853 drivers/ata/ahci_xgene.c 		hpriv->flags |= AHCI_HFLAG_YES_FBS;
hpriv             854 drivers/ata/ahci_xgene.c 		hpriv->irq_handler = xgene_ahci_irq_intr;
hpriv             860 drivers/ata/ahci_xgene.c 	rc = ahci_platform_init_host(pdev, hpriv, ppi[version - 1],
hpriv             869 drivers/ata/ahci_xgene.c 	ahci_platform_disable_resources(hpriv);
hpriv             508 drivers/ata/ata_piix.c 	struct piix_host_priv *hpriv = ap->host->private_data;
hpriv             524 drivers/ata/ata_piix.c 	if ((hpriv->saved_iocfg & mask) == 0)
hpriv             779 drivers/ata/ata_piix.c 	struct piix_host_priv *hpriv = ap->host->private_data;
hpriv             782 drivers/ata/ata_piix.c 		  hpriv->sidpr + PIIX_SIDPR_IDX);
hpriv             788 drivers/ata/ata_piix.c 	struct piix_host_priv *hpriv = link->ap->host->private_data;
hpriv             794 drivers/ata/ata_piix.c 	*val = ioread32(hpriv->sidpr + PIIX_SIDPR_DATA);
hpriv             801 drivers/ata/ata_piix.c 	struct piix_host_priv *hpriv = link->ap->host->private_data;
hpriv             807 drivers/ata/ata_piix.c 	iowrite32(val, hpriv->sidpr + PIIX_SIDPR_DATA);
hpriv            1437 drivers/ata/ata_piix.c 	struct piix_host_priv *hpriv = host->private_data;
hpriv            1444 drivers/ata/ata_piix.c 		if (hpriv->map[i] == IDE)
hpriv            1461 drivers/ata/ata_piix.c 	hpriv->sidpr = pcim_iomap_table(pdev)[PIIX_SIDPR_BAR];
hpriv            1519 drivers/ata/ata_piix.c 	struct piix_host_priv *hpriv = host->private_data;
hpriv            1528 drivers/ata/ata_piix.c 	if (hpriv->saved_iocfg & (1 << 18)) {
hpriv            1531 drivers/ata/ata_piix.c 				       hpriv->saved_iocfg & ~(1 << 18));
hpriv            1649 drivers/ata/ata_piix.c 	struct piix_host_priv *hpriv;
hpriv            1676 drivers/ata/ata_piix.c 	hpriv = devm_kzalloc(dev, sizeof(*hpriv), GFP_KERNEL);
hpriv            1677 drivers/ata/ata_piix.c 	if (!hpriv)
hpriv            1685 drivers/ata/ata_piix.c 	pci_read_config_dword(pdev, PIIX_IOCFG, &hpriv->saved_iocfg);
hpriv            1699 drivers/ata/ata_piix.c 		hpriv->map = piix_init_sata_map(pdev, port_info,
hpriv            1705 drivers/ata/ata_piix.c 	host->private_data = hpriv;
hpriv            1750 drivers/ata/ata_piix.c 	struct piix_host_priv *hpriv = host->private_data;
hpriv            1752 drivers/ata/ata_piix.c 	pci_write_config_dword(pdev, PIIX_IOCFG, hpriv->saved_iocfg);
hpriv             243 drivers/ata/libahci.c 	struct ahci_host_priv *hpriv = ap->host->private_data;
hpriv             245 drivers/ata/libahci.c 	return sprintf(buf, "%x\n", hpriv->cap);
hpriv             253 drivers/ata/libahci.c 	struct ahci_host_priv *hpriv = ap->host->private_data;
hpriv             255 drivers/ata/libahci.c 	return sprintf(buf, "%x\n", hpriv->cap2);
hpriv             263 drivers/ata/libahci.c 	struct ahci_host_priv *hpriv = ap->host->private_data;
hpriv             265 drivers/ata/libahci.c 	return sprintf(buf, "%x\n", hpriv->version);
hpriv             288 drivers/ata/libahci.c 	struct ahci_host_priv *hpriv = ap->host->private_data;
hpriv             289 drivers/ata/libahci.c 	void __iomem *mmio = hpriv->mmio;
hpriv             290 drivers/ata/libahci.c 	void __iomem *em_mmio = mmio + hpriv->em_loc;
hpriv             301 drivers/ata/libahci.c 	    !(hpriv->em_msg_type & EM_MSG_TYPE_SGPIO)) {
hpriv             314 drivers/ata/libahci.c 		em_mmio += hpriv->em_buf_sz;
hpriv             316 drivers/ata/libahci.c 	count = hpriv->em_buf_sz;
hpriv             324 drivers/ata/libahci.c 				      hpriv->em_buf_sz, PAGE_SIZE);
hpriv             348 drivers/ata/libahci.c 	struct ahci_host_priv *hpriv = ap->host->private_data;
hpriv             349 drivers/ata/libahci.c 	void __iomem *mmio = hpriv->mmio;
hpriv             350 drivers/ata/libahci.c 	void __iomem *em_mmio = mmio + hpriv->em_loc;
hpriv             358 drivers/ata/libahci.c 	    !(hpriv->em_msg_type & EM_MSG_TYPE_SGPIO) ||
hpriv             359 drivers/ata/libahci.c 	    size % 4 || size > hpriv->em_buf_sz)
hpriv             391 drivers/ata/libahci.c 	struct ahci_host_priv *hpriv = ap->host->private_data;
hpriv             392 drivers/ata/libahci.c 	void __iomem *mmio = hpriv->mmio;
hpriv             424 drivers/ata/libahci.c void ahci_save_initial_config(struct device *dev, struct ahci_host_priv *hpriv)
hpriv             426 drivers/ata/libahci.c 	void __iomem *mmio = hpriv->mmio;
hpriv             436 drivers/ata/libahci.c 	hpriv->saved_cap = cap = readl(mmio + HOST_CAP);
hpriv             437 drivers/ata/libahci.c 	hpriv->saved_port_map = port_map = readl(mmio + HOST_PORTS_IMPL);
hpriv             443 drivers/ata/libahci.c 		hpriv->saved_cap2 = cap2 = readl(mmio + HOST_CAP2);
hpriv             445 drivers/ata/libahci.c 		hpriv->saved_cap2 = cap2 = 0;
hpriv             448 drivers/ata/libahci.c 	if ((cap & HOST_CAP_64) && (hpriv->flags & AHCI_HFLAG_32BIT_ONLY)) {
hpriv             453 drivers/ata/libahci.c 	if ((cap & HOST_CAP_NCQ) && (hpriv->flags & AHCI_HFLAG_NO_NCQ)) {
hpriv             458 drivers/ata/libahci.c 	if (!(cap & HOST_CAP_NCQ) && (hpriv->flags & AHCI_HFLAG_YES_NCQ)) {
hpriv             463 drivers/ata/libahci.c 	if ((cap & HOST_CAP_PMP) && (hpriv->flags & AHCI_HFLAG_NO_PMP)) {
hpriv             468 drivers/ata/libahci.c 	if ((cap & HOST_CAP_SNTF) && (hpriv->flags & AHCI_HFLAG_NO_SNTF)) {
hpriv             474 drivers/ata/libahci.c 	if ((cap2 & HOST_CAP2_SDS) && (hpriv->flags & AHCI_HFLAG_NO_DEVSLP)) {
hpriv             481 drivers/ata/libahci.c 	if (!(cap & HOST_CAP_FBS) && (hpriv->flags & AHCI_HFLAG_YES_FBS)) {
hpriv             486 drivers/ata/libahci.c 	if ((cap & HOST_CAP_FBS) && (hpriv->flags & AHCI_HFLAG_NO_FBS)) {
hpriv             491 drivers/ata/libahci.c 	if (!(cap & HOST_CAP_ALPM) && (hpriv->flags & AHCI_HFLAG_YES_ALPM)) {
hpriv             496 drivers/ata/libahci.c 	if (hpriv->force_port_map && port_map != hpriv->force_port_map) {
hpriv             498 drivers/ata/libahci.c 			 port_map, hpriv->force_port_map);
hpriv             499 drivers/ata/libahci.c 		port_map = hpriv->force_port_map;
hpriv             500 drivers/ata/libahci.c 		hpriv->saved_port_map = port_map;
hpriv             503 drivers/ata/libahci.c 	if (hpriv->mask_port_map) {
hpriv             506 drivers/ata/libahci.c 			port_map & hpriv->mask_port_map);
hpriv             507 drivers/ata/libahci.c 		port_map &= hpriv->mask_port_map;
hpriv             535 drivers/ata/libahci.c 		hpriv->saved_port_map = port_map;
hpriv             539 drivers/ata/libahci.c 	hpriv->cap = cap;
hpriv             540 drivers/ata/libahci.c 	hpriv->cap2 = cap2;
hpriv             541 drivers/ata/libahci.c 	hpriv->version = readl(mmio + HOST_VERSION);
hpriv             542 drivers/ata/libahci.c 	hpriv->port_map = port_map;
hpriv             544 drivers/ata/libahci.c 	if (!hpriv->start_engine)
hpriv             545 drivers/ata/libahci.c 		hpriv->start_engine = ahci_start_engine;
hpriv             547 drivers/ata/libahci.c 	if (!hpriv->stop_engine)
hpriv             548 drivers/ata/libahci.c 		hpriv->stop_engine = ahci_stop_engine;
hpriv             550 drivers/ata/libahci.c 	if (!hpriv->irq_handler)
hpriv             551 drivers/ata/libahci.c 		hpriv->irq_handler = ahci_single_level_irq_intr;
hpriv             566 drivers/ata/libahci.c 	struct ahci_host_priv *hpriv = host->private_data;
hpriv             567 drivers/ata/libahci.c 	void __iomem *mmio = hpriv->mmio;
hpriv             569 drivers/ata/libahci.c 	writel(hpriv->saved_cap, mmio + HOST_CAP);
hpriv             570 drivers/ata/libahci.c 	if (hpriv->saved_cap2)
hpriv             571 drivers/ata/libahci.c 		writel(hpriv->saved_cap2, mmio + HOST_CAP2);
hpriv             572 drivers/ata/libahci.c 	writel(hpriv->saved_port_map, mmio + HOST_PORTS_IMPL);
hpriv             585 drivers/ata/libahci.c 	struct ahci_host_priv *hpriv = ap->host->private_data;
hpriv             588 drivers/ata/libahci.c 	    (sc_reg != SCR_NOTIFICATION || (hpriv->cap & HOST_CAP_SNTF)))
hpriv             633 drivers/ata/libahci.c 	struct ahci_host_priv *hpriv = ap->host->private_data;
hpriv             642 drivers/ata/libahci.c 	if ((hpriv->flags & AHCI_HFLAG_WAKE_BEFORE_STOP) &&
hpriv             682 drivers/ata/libahci.c 	struct ahci_host_priv *hpriv = ap->host->private_data;
hpriv             687 drivers/ata/libahci.c 	if (hpriv->cap & HOST_CAP_64)
hpriv             692 drivers/ata/libahci.c 	if (hpriv->cap & HOST_CAP_64)
hpriv             728 drivers/ata/libahci.c 	struct ahci_host_priv *hpriv = ap->host->private_data;
hpriv             735 drivers/ata/libahci.c 	if (hpriv->cap & HOST_CAP_SSS) {
hpriv             748 drivers/ata/libahci.c 	struct ahci_host_priv *hpriv = ap->host->private_data;
hpriv             767 drivers/ata/libahci.c 	if (hpriv->cap & HOST_CAP_ALPM) {
hpriv             796 drivers/ata/libahci.c 	if ((hpriv->cap2 & HOST_CAP2_SDS) &&
hpriv             797 drivers/ata/libahci.c 	    (hpriv->cap2 & HOST_CAP2_SADM) &&
hpriv             820 drivers/ata/libahci.c 	struct ahci_host_priv *hpriv = ap->host->private_data;
hpriv             824 drivers/ata/libahci.c 	if (!(hpriv->cap & HOST_CAP_SSS))
hpriv             841 drivers/ata/libahci.c 	struct ahci_host_priv *hpriv = ap->host->private_data;
hpriv             852 drivers/ata/libahci.c 	if (!(hpriv->flags & AHCI_HFLAG_DELAY_ENGINE))
hpriv             853 drivers/ata/libahci.c 		hpriv->start_engine(ap);
hpriv             890 drivers/ata/libahci.c 	struct ahci_host_priv *hpriv = ap->host->private_data;
hpriv             893 drivers/ata/libahci.c 	rc = hpriv->stop_engine(ap);
hpriv             911 drivers/ata/libahci.c 	struct ahci_host_priv *hpriv = host->private_data;
hpriv             912 drivers/ata/libahci.c 	void __iomem *mmio = hpriv->mmio;
hpriv             949 drivers/ata/libahci.c 		if (!(hpriv->flags & AHCI_HFLAG_NO_WRITE_TO_RO))
hpriv            1034 drivers/ata/libahci.c 	struct ahci_host_priv *hpriv = host->private_data;
hpriv            1035 drivers/ata/libahci.c 	void __iomem *mmio = hpriv->mmio;
hpriv            1050 drivers/ata/libahci.c 	struct ahci_host_priv *hpriv = ap->host->private_data;
hpriv            1052 drivers/ata/libahci.c 	void __iomem *mmio = hpriv->mmio;
hpriv            1080 drivers/ata/libahci.c 	if (hpriv->em_msg_type & EM_MSG_TYPE_LED) {
hpriv            1091 drivers/ata/libahci.c 		writel(message[0], mmio + hpriv->em_loc);
hpriv            1092 drivers/ata/libahci.c 		writel(message[1], mmio + hpriv->em_loc+4);
hpriv            1201 drivers/ata/libahci.c 	struct ahci_host_priv *hpriv = ap->host->private_data;
hpriv            1226 drivers/ata/libahci.c 	if ((tmp & PORT_CMD_ESP) && (hpriv->cap & HOST_CAP_SXS))
hpriv            1232 drivers/ata/libahci.c 	struct ahci_host_priv *hpriv = host->private_data;
hpriv            1233 drivers/ata/libahci.c 	void __iomem *mmio = hpriv->mmio;
hpriv            1258 drivers/ata/libahci.c 	struct ahci_host_priv *hpriv = dev->link->ap->host->private_data;
hpriv            1260 drivers/ata/libahci.c 	if (hpriv->flags & AHCI_HFLAG_SECT255) {
hpriv            1300 drivers/ata/libahci.c 	struct ahci_host_priv *hpriv = ap->host->private_data;
hpriv            1306 drivers/ata/libahci.c 	rc = hpriv->stop_engine(ap);
hpriv            1319 drivers/ata/libahci.c 	if (!(hpriv->cap & HOST_CAP_CLO)) {
hpriv            1337 drivers/ata/libahci.c 	hpriv->start_engine(ap);
hpriv            1386 drivers/ata/libahci.c 	struct ahci_host_priv *hpriv = ap->host->private_data;
hpriv            1436 drivers/ata/libahci.c 	if (rc == -EBUSY && hpriv->flags & AHCI_HFLAG_SRST_TOUT_IS_OFFLINE) {
hpriv            1538 drivers/ata/libahci.c 	struct ahci_host_priv *hpriv = ap->host->private_data;
hpriv            1545 drivers/ata/libahci.c 	hpriv->stop_engine(ap);
hpriv            1555 drivers/ata/libahci.c 	hpriv->start_engine(ap);
hpriv            1691 drivers/ata/libahci.c 	struct ahci_host_priv *hpriv = ap->host->private_data;
hpriv            1732 drivers/ata/libahci.c 	if (hpriv->flags & AHCI_HFLAG_IGN_IRQ_IF_ERR)
hpriv            1745 drivers/ata/libahci.c 		if (hpriv->flags & AHCI_HFLAG_IGN_SERR_INTERNAL)
hpriv            1805 drivers/ata/libahci.c 	struct ahci_host_priv *hpriv = ap->host->private_data;
hpriv            1834 drivers/ata/libahci.c 		if (hpriv->cap & HOST_CAP_SNTF)
hpriv            1946 drivers/ata/libahci.c 	struct ahci_host_priv *hpriv;
hpriv            1953 drivers/ata/libahci.c 	hpriv = host->private_data;
hpriv            1954 drivers/ata/libahci.c 	mmio = hpriv->mmio;
hpriv            1961 drivers/ata/libahci.c 	irq_masked = irq_stat & hpriv->port_map;
hpriv            2050 drivers/ata/libahci.c 	struct ahci_host_priv *hpriv = ap->host->private_data;
hpriv            2051 drivers/ata/libahci.c 	void __iomem *mmio = hpriv->mmio;
hpriv            2067 drivers/ata/libahci.c 	struct ahci_host_priv *hpriv = ap->host->private_data;
hpriv            2071 drivers/ata/libahci.c 		hpriv->stop_engine(ap);
hpriv            2072 drivers/ata/libahci.c 		hpriv->start_engine(ap);
hpriv            2078 drivers/ata/libahci.c 		hpriv->stop_engine(ap);
hpriv            2093 drivers/ata/libahci.c 	struct ahci_host_priv *hpriv = ap->host->private_data;
hpriv            2132 drivers/ata/libahci.c 	rc = hpriv->stop_engine(ap);
hpriv            2161 drivers/ata/libahci.c 	hpriv->start_engine(ap);
hpriv            2173 drivers/ata/libahci.c 	struct ahci_host_priv *hpriv = ap->host->private_data;
hpriv            2189 drivers/ata/libahci.c 	rc = hpriv->stop_engine(ap);
hpriv            2202 drivers/ata/libahci.c 	hpriv->start_engine(ap);
hpriv            2207 drivers/ata/libahci.c 	struct ahci_host_priv *hpriv = ap->host->private_data;
hpriv            2222 drivers/ata/libahci.c 	rc = hpriv->stop_engine(ap);
hpriv            2235 drivers/ata/libahci.c 	hpriv->start_engine(ap);
hpriv            2320 drivers/ata/libahci.c 	struct ahci_host_priv *hpriv = ap->host->private_data;
hpriv            2342 drivers/ata/libahci.c 	if ((hpriv->cap & HOST_CAP_FBS) && sata_pmp_supported(ap)) {
hpriv            2347 drivers/ata/libahci.c 		else if (hpriv->flags & AHCI_HFLAG_YES_FBS) {
hpriv            2403 drivers/ata/libahci.c 	if (hpriv->flags & AHCI_HFLAG_MULTI_MSI) {
hpriv            2417 drivers/ata/libahci.c 	struct ahci_host_priv *hpriv = ap->host->private_data;
hpriv            2418 drivers/ata/libahci.c 	void __iomem *host_mmio = hpriv->mmio;
hpriv            2437 drivers/ata/libahci.c 	struct ahci_host_priv *hpriv = host->private_data;
hpriv            2441 drivers/ata/libahci.c 	vers = hpriv->version;
hpriv            2442 drivers/ata/libahci.c 	cap = hpriv->cap;
hpriv            2443 drivers/ata/libahci.c 	cap2 = hpriv->cap2;
hpriv            2444 drivers/ata/libahci.c 	impl = hpriv->port_map;
hpriv            2507 drivers/ata/libahci.c void ahci_set_em_messages(struct ahci_host_priv *hpriv,
hpriv            2511 drivers/ata/libahci.c 	void __iomem *mmio = hpriv->mmio;
hpriv            2515 drivers/ata/libahci.c 	if (!ahci_em_messages || !(hpriv->cap & HOST_CAP_EMS))
hpriv            2522 drivers/ata/libahci.c 		hpriv->em_loc = ((em_loc >> 16) * 4);
hpriv            2523 drivers/ata/libahci.c 		hpriv->em_buf_sz = ((em_loc & 0xff) * 4);
hpriv            2524 drivers/ata/libahci.c 		hpriv->em_msg_type = messages;
hpriv            2535 drivers/ata/libahci.c 	struct ahci_host_priv *hpriv = host->private_data;
hpriv            2547 drivers/ata/libahci.c 		int irq = hpriv->get_irq_vector(host, i);
hpriv            2579 drivers/ata/libahci.c 	struct ahci_host_priv *hpriv = host->private_data;
hpriv            2580 drivers/ata/libahci.c 	int irq = hpriv->irq;
hpriv            2583 drivers/ata/libahci.c 	if (hpriv->flags & AHCI_HFLAG_MULTI_MSI) {
hpriv            2584 drivers/ata/libahci.c 		if (hpriv->irq_handler &&
hpriv            2585 drivers/ata/libahci.c 		    hpriv->irq_handler != ahci_single_level_irq_intr)
hpriv            2588 drivers/ata/libahci.c 		if (!hpriv->get_irq_vector) {
hpriv            2596 drivers/ata/libahci.c 		rc = ata_host_activate(host, irq, hpriv->irq_handler,
hpriv              46 drivers/ata/libahci_platform.c int ahci_platform_enable_phys(struct ahci_host_priv *hpriv)
hpriv              50 drivers/ata/libahci_platform.c 	for (i = 0; i < hpriv->nports; i++) {
hpriv              51 drivers/ata/libahci_platform.c 		rc = phy_init(hpriv->phys[i]);
hpriv              55 drivers/ata/libahci_platform.c 		rc = phy_set_mode(hpriv->phys[i], PHY_MODE_SATA);
hpriv              57 drivers/ata/libahci_platform.c 			phy_exit(hpriv->phys[i]);
hpriv              61 drivers/ata/libahci_platform.c 		rc = phy_power_on(hpriv->phys[i]);
hpriv              63 drivers/ata/libahci_platform.c 			phy_exit(hpriv->phys[i]);
hpriv              72 drivers/ata/libahci_platform.c 		phy_power_off(hpriv->phys[i]);
hpriv              73 drivers/ata/libahci_platform.c 		phy_exit(hpriv->phys[i]);
hpriv              85 drivers/ata/libahci_platform.c void ahci_platform_disable_phys(struct ahci_host_priv *hpriv)
hpriv              89 drivers/ata/libahci_platform.c 	for (i = 0; i < hpriv->nports; i++) {
hpriv              90 drivers/ata/libahci_platform.c 		phy_power_off(hpriv->phys[i]);
hpriv              91 drivers/ata/libahci_platform.c 		phy_exit(hpriv->phys[i]);
hpriv             107 drivers/ata/libahci_platform.c int ahci_platform_enable_clks(struct ahci_host_priv *hpriv)
hpriv             111 drivers/ata/libahci_platform.c 	for (c = 0; c < AHCI_MAX_CLKS && hpriv->clks[c]; c++) {
hpriv             112 drivers/ata/libahci_platform.c 		rc = clk_prepare_enable(hpriv->clks[c]);
hpriv             120 drivers/ata/libahci_platform.c 		clk_disable_unprepare(hpriv->clks[c]);
hpriv             132 drivers/ata/libahci_platform.c void ahci_platform_disable_clks(struct ahci_host_priv *hpriv)
hpriv             137 drivers/ata/libahci_platform.c 		if (hpriv->clks[c])
hpriv             138 drivers/ata/libahci_platform.c 			clk_disable_unprepare(hpriv->clks[c]);
hpriv             154 drivers/ata/libahci_platform.c int ahci_platform_enable_regulators(struct ahci_host_priv *hpriv)
hpriv             158 drivers/ata/libahci_platform.c 	rc = regulator_enable(hpriv->ahci_regulator);
hpriv             162 drivers/ata/libahci_platform.c 	rc = regulator_enable(hpriv->phy_regulator);
hpriv             166 drivers/ata/libahci_platform.c 	for (i = 0; i < hpriv->nports; i++) {
hpriv             167 drivers/ata/libahci_platform.c 		if (!hpriv->target_pwrs[i])
hpriv             170 drivers/ata/libahci_platform.c 		rc = regulator_enable(hpriv->target_pwrs[i]);
hpriv             179 drivers/ata/libahci_platform.c 		if (hpriv->target_pwrs[i])
hpriv             180 drivers/ata/libahci_platform.c 			regulator_disable(hpriv->target_pwrs[i]);
hpriv             182 drivers/ata/libahci_platform.c 	regulator_disable(hpriv->phy_regulator);
hpriv             184 drivers/ata/libahci_platform.c 	regulator_disable(hpriv->ahci_regulator);
hpriv             196 drivers/ata/libahci_platform.c void ahci_platform_disable_regulators(struct ahci_host_priv *hpriv)
hpriv             200 drivers/ata/libahci_platform.c 	for (i = 0; i < hpriv->nports; i++) {
hpriv             201 drivers/ata/libahci_platform.c 		if (!hpriv->target_pwrs[i])
hpriv             203 drivers/ata/libahci_platform.c 		regulator_disable(hpriv->target_pwrs[i]);
hpriv             206 drivers/ata/libahci_platform.c 	regulator_disable(hpriv->ahci_regulator);
hpriv             207 drivers/ata/libahci_platform.c 	regulator_disable(hpriv->phy_regulator);
hpriv             227 drivers/ata/libahci_platform.c int ahci_platform_enable_resources(struct ahci_host_priv *hpriv)
hpriv             231 drivers/ata/libahci_platform.c 	rc = ahci_platform_enable_regulators(hpriv);
hpriv             235 drivers/ata/libahci_platform.c 	rc = ahci_platform_enable_clks(hpriv);
hpriv             239 drivers/ata/libahci_platform.c 	rc = reset_control_deassert(hpriv->rsts);
hpriv             243 drivers/ata/libahci_platform.c 	rc = ahci_platform_enable_phys(hpriv);
hpriv             250 drivers/ata/libahci_platform.c 	reset_control_assert(hpriv->rsts);
hpriv             253 drivers/ata/libahci_platform.c 	ahci_platform_disable_clks(hpriv);
hpriv             256 drivers/ata/libahci_platform.c 	ahci_platform_disable_regulators(hpriv);
hpriv             273 drivers/ata/libahci_platform.c void ahci_platform_disable_resources(struct ahci_host_priv *hpriv)
hpriv             275 drivers/ata/libahci_platform.c 	ahci_platform_disable_phys(hpriv);
hpriv             277 drivers/ata/libahci_platform.c 	reset_control_assert(hpriv->rsts);
hpriv             279 drivers/ata/libahci_platform.c 	ahci_platform_disable_clks(hpriv);
hpriv             281 drivers/ata/libahci_platform.c 	ahci_platform_disable_regulators(hpriv);
hpriv             287 drivers/ata/libahci_platform.c 	struct ahci_host_priv *hpriv = res;
hpriv             290 drivers/ata/libahci_platform.c 	if (hpriv->got_runtime_pm) {
hpriv             295 drivers/ata/libahci_platform.c 	for (c = 0; c < AHCI_MAX_CLKS && hpriv->clks[c]; c++)
hpriv             296 drivers/ata/libahci_platform.c 		clk_put(hpriv->clks[c]);
hpriv             302 drivers/ata/libahci_platform.c 	for (c = 0; c < hpriv->nports; c++)
hpriv             303 drivers/ata/libahci_platform.c 		if (hpriv->target_pwrs && hpriv->target_pwrs[c])
hpriv             304 drivers/ata/libahci_platform.c 			regulator_put(hpriv->target_pwrs[c]);
hpriv             306 drivers/ata/libahci_platform.c 	kfree(hpriv->target_pwrs);
hpriv             309 drivers/ata/libahci_platform.c static int ahci_platform_get_phy(struct ahci_host_priv *hpriv, u32 port,
hpriv             314 drivers/ata/libahci_platform.c 	hpriv->phys[port] = devm_of_phy_get(dev, node, NULL);
hpriv             316 drivers/ata/libahci_platform.c 	if (!IS_ERR(hpriv->phys[port]))
hpriv             319 drivers/ata/libahci_platform.c 	rc = PTR_ERR(hpriv->phys[port]);
hpriv             332 drivers/ata/libahci_platform.c 		hpriv->phys[port] = NULL;
hpriv             350 drivers/ata/libahci_platform.c static int ahci_platform_get_regulator(struct ahci_host_priv *hpriv, u32 port,
hpriv             359 drivers/ata/libahci_platform.c 		hpriv->target_pwrs[port] = target_pwr;
hpriv             389 drivers/ata/libahci_platform.c 	struct ahci_host_priv *hpriv;
hpriv             398 drivers/ata/libahci_platform.c 	hpriv = devres_alloc(ahci_platform_put_resources, sizeof(*hpriv),
hpriv             400 drivers/ata/libahci_platform.c 	if (!hpriv)
hpriv             403 drivers/ata/libahci_platform.c 	devres_add(dev, hpriv);
hpriv             405 drivers/ata/libahci_platform.c 	hpriv->mmio = devm_ioremap_resource(dev,
hpriv             407 drivers/ata/libahci_platform.c 	if (IS_ERR(hpriv->mmio)) {
hpriv             408 drivers/ata/libahci_platform.c 		rc = PTR_ERR(hpriv->mmio);
hpriv             430 drivers/ata/libahci_platform.c 		hpriv->clks[i] = clk;
hpriv             433 drivers/ata/libahci_platform.c 	hpriv->ahci_regulator = devm_regulator_get(dev, "ahci");
hpriv             434 drivers/ata/libahci_platform.c 	if (IS_ERR(hpriv->ahci_regulator)) {
hpriv             435 drivers/ata/libahci_platform.c 		rc = PTR_ERR(hpriv->ahci_regulator);
hpriv             440 drivers/ata/libahci_platform.c 	hpriv->phy_regulator = devm_regulator_get(dev, "phy");
hpriv             441 drivers/ata/libahci_platform.c 	if (IS_ERR(hpriv->phy_regulator)) {
hpriv             442 drivers/ata/libahci_platform.c 		rc = PTR_ERR(hpriv->phy_regulator);
hpriv             446 drivers/ata/libahci_platform.c 		hpriv->phy_regulator = NULL;
hpriv             450 drivers/ata/libahci_platform.c 		hpriv->rsts = devm_reset_control_array_get_optional_shared(dev);
hpriv             451 drivers/ata/libahci_platform.c 		if (IS_ERR(hpriv->rsts)) {
hpriv             452 drivers/ata/libahci_platform.c 			rc = PTR_ERR(hpriv->rsts);
hpriv             457 drivers/ata/libahci_platform.c 	hpriv->nports = child_nodes = of_get_child_count(dev->of_node);
hpriv             465 drivers/ata/libahci_platform.c 		hpriv->nports = 1;
hpriv             467 drivers/ata/libahci_platform.c 	hpriv->phys = devm_kcalloc(dev, hpriv->nports, sizeof(*hpriv->phys), GFP_KERNEL);
hpriv             468 drivers/ata/libahci_platform.c 	if (!hpriv->phys) {
hpriv             476 drivers/ata/libahci_platform.c 	hpriv->target_pwrs = kcalloc(hpriv->nports, sizeof(*hpriv->target_pwrs), GFP_KERNEL);
hpriv             477 drivers/ata/libahci_platform.c 	if (!hpriv->target_pwrs) {
hpriv             496 drivers/ata/libahci_platform.c 			if (port >= hpriv->nports) {
hpriv             508 drivers/ata/libahci_platform.c 				rc = ahci_platform_get_regulator(hpriv, port,
hpriv             517 drivers/ata/libahci_platform.c 			rc = ahci_platform_get_phy(hpriv, port, dev, child);
hpriv             531 drivers/ata/libahci_platform.c 		if (!hpriv->mask_port_map)
hpriv             532 drivers/ata/libahci_platform.c 			hpriv->mask_port_map = mask_port_map;
hpriv             538 drivers/ata/libahci_platform.c 		rc = ahci_platform_get_phy(hpriv, 0, dev, dev->of_node);
hpriv             542 drivers/ata/libahci_platform.c 		rc = ahci_platform_get_regulator(hpriv, 0, dev);
hpriv             548 drivers/ata/libahci_platform.c 	hpriv->got_runtime_pm = true;
hpriv             551 drivers/ata/libahci_platform.c 	return hpriv;
hpriv             574 drivers/ata/libahci_platform.c 			    struct ahci_host_priv *hpriv,
hpriv             591 drivers/ata/libahci_platform.c 	hpriv->irq = irq;
hpriv             594 drivers/ata/libahci_platform.c 	pi.private_data = (void *)(unsigned long)hpriv->flags;
hpriv             596 drivers/ata/libahci_platform.c 	ahci_save_initial_config(dev, hpriv);
hpriv             598 drivers/ata/libahci_platform.c 	if (hpriv->cap & HOST_CAP_NCQ)
hpriv             601 drivers/ata/libahci_platform.c 	if (hpriv->cap & HOST_CAP_PMP)
hpriv             604 drivers/ata/libahci_platform.c 	ahci_set_em_messages(hpriv, &pi);
hpriv             611 drivers/ata/libahci_platform.c 	n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map));
hpriv             617 drivers/ata/libahci_platform.c 	host->private_data = hpriv;
hpriv             619 drivers/ata/libahci_platform.c 	if (!(hpriv->cap & HOST_CAP_SSS) || ahci_ignore_sss)
hpriv             636 drivers/ata/libahci_platform.c 			ap->em_message_type = hpriv->em_msg_type;
hpriv             639 drivers/ata/libahci_platform.c 		if (!(hpriv->port_map & (1 << i)))
hpriv             643 drivers/ata/libahci_platform.c 	if (hpriv->cap & HOST_CAP_64) {
hpriv             669 drivers/ata/libahci_platform.c 	struct ahci_host_priv *hpriv = host->private_data;
hpriv             671 drivers/ata/libahci_platform.c 	ahci_platform_disable_resources(hpriv);
hpriv             685 drivers/ata/libahci_platform.c 	struct ahci_host_priv *hpriv = host->private_data;
hpriv             686 drivers/ata/libahci_platform.c 	void __iomem *mmio = hpriv->mmio;
hpriv             723 drivers/ata/libahci_platform.c 	struct ahci_host_priv *hpriv = host->private_data;
hpriv             724 drivers/ata/libahci_platform.c 	void __iomem *mmio = hpriv->mmio;
hpriv             727 drivers/ata/libahci_platform.c 	if (hpriv->flags & AHCI_HFLAG_NO_SUSPEND) {
hpriv             742 drivers/ata/libahci_platform.c 	if (hpriv->flags & AHCI_HFLAG_SUSPEND_PHYS)
hpriv             743 drivers/ata/libahci_platform.c 		ahci_platform_disable_phys(hpriv);
hpriv             763 drivers/ata/libahci_platform.c 	struct ahci_host_priv *hpriv = host->private_data;
hpriv             774 drivers/ata/libahci_platform.c 	if (hpriv->flags & AHCI_HFLAG_SUSPEND_PHYS)
hpriv             775 drivers/ata/libahci_platform.c 		ahci_platform_enable_phys(hpriv);
hpriv             796 drivers/ata/libahci_platform.c 	struct ahci_host_priv *hpriv = host->private_data;
hpriv             803 drivers/ata/libahci_platform.c 	ahci_platform_disable_resources(hpriv);
hpriv             822 drivers/ata/libahci_platform.c 	struct ahci_host_priv *hpriv = host->private_data;
hpriv             825 drivers/ata/libahci_platform.c 	rc = ahci_platform_enable_resources(hpriv);
hpriv             841 drivers/ata/libahci_platform.c 	ahci_platform_disable_resources(hpriv);
hpriv             534 drivers/ata/pata_amd.c 	void *hpriv = NULL;
hpriv             571 drivers/ata/pata_amd.c 		hpriv = (void *)(unsigned long)udma;
hpriv             575 drivers/ata/pata_amd.c 	return ata_pci_bmdma_init_one(pdev, ppi, &amd_sht, hpriv, 0);
hpriv             353 drivers/ata/pata_hpt366.c 	const void *hpriv = NULL;
hpriv             374 drivers/ata/pata_hpt366.c 		hpriv = &hpt366_40;
hpriv             377 drivers/ata/pata_hpt366.c 		hpriv = &hpt366_25;
hpriv             380 drivers/ata/pata_hpt366.c 		hpriv = &hpt366_33;
hpriv             384 drivers/ata/pata_hpt366.c 	return ata_pci_bmdma_init_one(dev, ppi, &hpt36x_sht, (void *)hpriv, 0);
hpriv             500 drivers/ata/pata_hpt3x2n.c 	void *hpriv = (void *)USE_DPLL;
hpriv             593 drivers/ata/pata_hpt3x2n.c 		hpriv = (void *)(PCI66 | USE_DPLL);
hpriv             604 drivers/ata/pata_hpt3x2n.c 	return ata_pci_bmdma_init_one(dev, ppi, &hpt3x2n_sht, hpriv, 0);
hpriv              42 drivers/ata/pata_rdc.c 	struct rdc_host_priv *hpriv = ap->host->private_data;
hpriv              47 drivers/ata/pata_rdc.c 	if ((hpriv->saved_iocfg & mask) == 0)
hpriv             316 drivers/ata/pata_rdc.c 	struct rdc_host_priv *hpriv;
hpriv             329 drivers/ata/pata_rdc.c 	hpriv = devm_kzalloc(dev, sizeof(*hpriv), GFP_KERNEL);
hpriv             330 drivers/ata/pata_rdc.c 	if (!hpriv)
hpriv             336 drivers/ata/pata_rdc.c 	pci_read_config_dword(pdev, 0x54, &hpriv->saved_iocfg);
hpriv             341 drivers/ata/pata_rdc.c 	host->private_data = hpriv;
hpriv             354 drivers/ata/pata_rdc.c 	struct rdc_host_priv *hpriv = host->private_data;
hpriv             356 drivers/ata/pata_rdc.c 	pci_write_config_dword(pdev, 0x54, hpriv->saved_iocfg);
hpriv             131 drivers/ata/sata_highbank.c 	struct ahci_host_priv *hpriv =  ap->host->private_data;
hpriv             132 drivers/ata/sata_highbank.c 	struct ecx_plat_data *pdata = hpriv->plat_data;
hpriv             146 drivers/ata/sata_highbank.c 	if (!(hpriv->em_msg_type & EM_MSG_TYPE_LED))
hpriv             178 drivers/ata/sata_highbank.c 					struct ahci_host_priv *hpriv,
hpriv             182 drivers/ata/sata_highbank.c 	struct ecx_plat_data *pdata = hpriv->plat_data;
hpriv             208 drivers/ata/sata_highbank.c 	hpriv->em_loc = 0;
hpriv             209 drivers/ata/sata_highbank.c 	hpriv->em_buf_sz = 4;
hpriv             210 drivers/ata/sata_highbank.c 	hpriv->em_msg_type = EM_MSG_TYPE_LED;
hpriv             391 drivers/ata/sata_highbank.c 	struct ahci_host_priv *hpriv = ap->host->private_data;
hpriv             399 drivers/ata/sata_highbank.c 	hpriv->stop_engine(ap);
hpriv             420 drivers/ata/sata_highbank.c 	hpriv->start_engine(ap);
hpriv             454 drivers/ata/sata_highbank.c 	struct ahci_host_priv *hpriv;
hpriv             477 drivers/ata/sata_highbank.c 	hpriv = devm_kzalloc(dev, sizeof(*hpriv), GFP_KERNEL);
hpriv             478 drivers/ata/sata_highbank.c 	if (!hpriv) {
hpriv             488 drivers/ata/sata_highbank.c 	hpriv->irq = irq;
hpriv             489 drivers/ata/sata_highbank.c 	hpriv->flags |= (unsigned long)pi.private_data;
hpriv             491 drivers/ata/sata_highbank.c 	hpriv->mmio = devm_ioremap(dev, mem->start, resource_size(mem));
hpriv             492 drivers/ata/sata_highbank.c 	if (!hpriv->mmio) {
hpriv             497 drivers/ata/sata_highbank.c 	rc = highbank_initialize_phys(dev, hpriv->mmio);
hpriv             502 drivers/ata/sata_highbank.c 	ahci_save_initial_config(dev, hpriv);
hpriv             505 drivers/ata/sata_highbank.c 	if (hpriv->cap & HOST_CAP_NCQ)
hpriv             508 drivers/ata/sata_highbank.c 	if (hpriv->cap & HOST_CAP_PMP)
hpriv             511 drivers/ata/sata_highbank.c 	if (hpriv->cap & HOST_CAP_64)
hpriv             519 drivers/ata/sata_highbank.c 	n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map));
hpriv             522 drivers/ata/sata_highbank.c 	hpriv->plat_data = pdata;
hpriv             523 drivers/ata/sata_highbank.c 	highbank_set_em_messages(dev, hpriv, &pi);
hpriv             531 drivers/ata/sata_highbank.c 	host->private_data = hpriv;
hpriv             533 drivers/ata/sata_highbank.c 	if (!(hpriv->cap & HOST_CAP_SSS) || ahci_ignore_sss)
hpriv             544 drivers/ata/sata_highbank.c 			ap->em_message_type = hpriv->em_msg_type;
hpriv             547 drivers/ata/sata_highbank.c 		if (!(hpriv->port_map & (1 << i)))
hpriv             571 drivers/ata/sata_highbank.c 	struct ahci_host_priv *hpriv = host->private_data;
hpriv             572 drivers/ata/sata_highbank.c 	void __iomem *mmio = hpriv->mmio;
hpriv             576 drivers/ata/sata_highbank.c 	if (hpriv->flags & AHCI_HFLAG_NO_SUSPEND) {
hpriv             266 drivers/ata/sata_inic162x.c 	struct inic_host_priv *hpriv = ap->host->private_data;
hpriv             268 drivers/ata/sata_inic162x.c 	return hpriv->mmio_base + ap->port_no * PORT_SIZE;
hpriv             422 drivers/ata/sata_inic162x.c 	struct inic_host_priv *hpriv = host->private_data;
hpriv             426 drivers/ata/sata_inic162x.c 	host_irq_stat = readw(hpriv->mmio_base + HOST_IRQ_STAT);
hpriv             798 drivers/ata/sata_inic162x.c 	struct inic_host_priv *hpriv = host->private_data;
hpriv             806 drivers/ata/sata_inic162x.c 		rc = init_controller(hpriv->mmio_base, hpriv->cached_hctl);
hpriv             821 drivers/ata/sata_inic162x.c 	struct inic_host_priv *hpriv;
hpriv             832 drivers/ata/sata_inic162x.c 	hpriv = devm_kzalloc(&pdev->dev, sizeof(*hpriv), GFP_KERNEL);
hpriv             833 drivers/ata/sata_inic162x.c 	if (!host || !hpriv)
hpriv             836 drivers/ata/sata_inic162x.c 	host->private_data = hpriv;
hpriv             854 drivers/ata/sata_inic162x.c 	hpriv->mmio_base = iomap[mmio_bar];
hpriv             855 drivers/ata/sata_inic162x.c 	hpriv->cached_hctl = readw(hpriv->mmio_base + HOST_CTL);
hpriv             871 drivers/ata/sata_inic162x.c 	rc = init_controller(hpriv->mmio_base, hpriv->cached_hctl);
hpriv             438 drivers/ata/sata_mv.c #define IS_GEN_I(hpriv) ((hpriv)->hp_flags & MV_HP_GEN_I)
hpriv             439 drivers/ata/sata_mv.c #define IS_GEN_II(hpriv) ((hpriv)->hp_flags & MV_HP_GEN_II)
hpriv             440 drivers/ata/sata_mv.c #define IS_GEN_IIE(hpriv) ((hpriv)->hp_flags & MV_HP_GEN_IIE)
hpriv             441 drivers/ata/sata_mv.c #define IS_PCIE(hpriv) ((hpriv)->hp_flags & MV_HP_PCIE)
hpriv             442 drivers/ata/sata_mv.c #define IS_SOC(hpriv) ((hpriv)->hp_flags & MV_HP_FLAG_SOC)
hpriv             577 drivers/ata/sata_mv.c 	void (*phy_errata)(struct mv_host_priv *hpriv, void __iomem *mmio,
hpriv             579 drivers/ata/sata_mv.c 	void (*enable_leds)(struct mv_host_priv *hpriv, void __iomem *mmio);
hpriv             580 drivers/ata/sata_mv.c 	void (*read_preamp)(struct mv_host_priv *hpriv, int idx,
hpriv             582 drivers/ata/sata_mv.c 	int (*reset_hc)(struct mv_host_priv *hpriv, void __iomem *mmio,
hpriv             584 drivers/ata/sata_mv.c 	void (*reset_flash)(struct mv_host_priv *hpriv, void __iomem *mmio);
hpriv             604 drivers/ata/sata_mv.c static void mv5_phy_errata(struct mv_host_priv *hpriv, void __iomem *mmio,
hpriv             606 drivers/ata/sata_mv.c static void mv5_enable_leds(struct mv_host_priv *hpriv, void __iomem *mmio);
hpriv             607 drivers/ata/sata_mv.c static void mv5_read_preamp(struct mv_host_priv *hpriv, int idx,
hpriv             609 drivers/ata/sata_mv.c static int mv5_reset_hc(struct mv_host_priv *hpriv, void __iomem *mmio,
hpriv             611 drivers/ata/sata_mv.c static void mv5_reset_flash(struct mv_host_priv *hpriv, void __iomem *mmio);
hpriv             614 drivers/ata/sata_mv.c static void mv6_phy_errata(struct mv_host_priv *hpriv, void __iomem *mmio,
hpriv             616 drivers/ata/sata_mv.c static void mv6_enable_leds(struct mv_host_priv *hpriv, void __iomem *mmio);
hpriv             617 drivers/ata/sata_mv.c static void mv6_read_preamp(struct mv_host_priv *hpriv, int idx,
hpriv             619 drivers/ata/sata_mv.c static int mv6_reset_hc(struct mv_host_priv *hpriv, void __iomem *mmio,
hpriv             621 drivers/ata/sata_mv.c static void mv6_reset_flash(struct mv_host_priv *hpriv, void __iomem *mmio);
hpriv             622 drivers/ata/sata_mv.c static void mv_soc_enable_leds(struct mv_host_priv *hpriv,
hpriv             624 drivers/ata/sata_mv.c static void mv_soc_read_preamp(struct mv_host_priv *hpriv, int idx,
hpriv             626 drivers/ata/sata_mv.c static int mv_soc_reset_hc(struct mv_host_priv *hpriv,
hpriv             628 drivers/ata/sata_mv.c static void mv_soc_reset_flash(struct mv_host_priv *hpriv,
hpriv             631 drivers/ata/sata_mv.c static void mv_soc_65n_phy_errata(struct mv_host_priv *hpriv,
hpriv             634 drivers/ata/sata_mv.c static void mv_reset_channel(struct mv_host_priv *hpriv, void __iomem *mmio,
hpriv             918 drivers/ata/sata_mv.c 	struct mv_host_priv *hpriv = host->private_data;
hpriv             919 drivers/ata/sata_mv.c 	return hpriv->base;
hpriv             989 drivers/ata/sata_mv.c 			     struct mv_host_priv *hpriv,
hpriv            1019 drivers/ata/sata_mv.c static void mv_write_main_irq_mask(u32 mask, struct mv_host_priv *hpriv)
hpriv            1033 drivers/ata/sata_mv.c 	writelfl(mask, hpriv->main_irq_mask_addr);
hpriv            1039 drivers/ata/sata_mv.c 	struct mv_host_priv *hpriv = host->private_data;
hpriv            1042 drivers/ata/sata_mv.c 	old_mask = hpriv->main_irq_mask;
hpriv            1045 drivers/ata/sata_mv.c 		hpriv->main_irq_mask = new_mask;
hpriv            1046 drivers/ata/sata_mv.c 		mv_write_main_irq_mask(new_mask, hpriv);
hpriv            1067 drivers/ata/sata_mv.c 	struct mv_host_priv *hpriv = ap->host->private_data;
hpriv            1081 drivers/ata/sata_mv.c 	if (IS_GEN_IIE(hpriv))
hpriv            1090 drivers/ata/sata_mv.c 	struct mv_host_priv *hpriv = host->private_data;
hpriv            1091 drivers/ata/sata_mv.c 	void __iomem *mmio = hpriv->base, *hc_mmio;
hpriv            1094 drivers/ata/sata_mv.c 	unsigned int clks, is_dual_hc = hpriv->n_ports > MV_PORTS_PER_HC;
hpriv            1113 drivers/ata/sata_mv.c 	if (is_dual_hc && !IS_GEN_I(hpriv)) {
hpriv            1171 drivers/ata/sata_mv.c 		struct mv_host_priv *hpriv = ap->host->private_data;
hpriv            1175 drivers/ata/sata_mv.c 		mv_set_edma_ptrs(port_mmio, hpriv, pp);
hpriv            1362 drivers/ata/sata_mv.c 		struct mv_host_priv *hpriv = link->ap->host->private_data;
hpriv            1380 drivers/ata/sata_mv.c 			if (hpriv->hp_flags & MV_HP_FIX_LP_PHY_CTL) {
hpriv            1509 drivers/ata/sata_mv.c 	struct mv_host_priv *hpriv = ap->host->private_data;
hpriv            1513 drivers/ata/sata_mv.c 	old = readl(hpriv->base + GPIO_PORT_CTL);
hpriv            1519 drivers/ata/sata_mv.c 		writel(new, hpriv->base + GPIO_PORT_CTL);
hpriv            1563 drivers/ata/sata_mv.c 	struct mv_host_priv *hpriv = host->private_data;
hpriv            1567 drivers/ata/sata_mv.c 	if (hpriv->hp_flags & MV_HP_QUIRK_LED_BLINK_EN)
hpriv            1569 drivers/ata/sata_mv.c 	hpriv->hp_flags |= MV_HP_QUIRK_LED_BLINK_EN;
hpriv            1578 drivers/ata/sata_mv.c 	struct mv_host_priv *hpriv = host->private_data;
hpriv            1583 drivers/ata/sata_mv.c 	if (!(hpriv->hp_flags & MV_HP_QUIRK_LED_BLINK_EN))
hpriv            1587 drivers/ata/sata_mv.c 	for (port = 0; port < hpriv->n_ports; port++) {
hpriv            1595 drivers/ata/sata_mv.c 	hpriv->hp_flags &= ~MV_HP_QUIRK_LED_BLINK_EN;
hpriv            1605 drivers/ata/sata_mv.c 	struct mv_host_priv *hpriv = ap->host->private_data;
hpriv            1613 drivers/ata/sata_mv.c 	if (IS_GEN_I(hpriv))
hpriv            1616 drivers/ata/sata_mv.c 	else if (IS_GEN_II(hpriv)) {
hpriv            1620 drivers/ata/sata_mv.c 	} else if (IS_GEN_IIE(hpriv)) {
hpriv            1642 drivers/ata/sata_mv.c 			if (!IS_SOC(hpriv))
hpriv            1645 drivers/ata/sata_mv.c 		if (hpriv->hp_flags & MV_HP_CUT_THROUGH)
hpriv            1649 drivers/ata/sata_mv.c 		if (IS_SOC(hpriv)) {
hpriv            1667 drivers/ata/sata_mv.c 	struct mv_host_priv *hpriv = ap->host->private_data;
hpriv            1672 drivers/ata/sata_mv.c 		dma_pool_free(hpriv->crqb_pool, pp->crqb, pp->crqb_dma);
hpriv            1676 drivers/ata/sata_mv.c 		dma_pool_free(hpriv->crpb_pool, pp->crpb, pp->crpb_dma);
hpriv            1685 drivers/ata/sata_mv.c 			if (tag == 0 || !IS_GEN_I(hpriv))
hpriv            1686 drivers/ata/sata_mv.c 				dma_pool_free(hpriv->sg_tbl_pool,
hpriv            1707 drivers/ata/sata_mv.c 	struct mv_host_priv *hpriv = ap->host->private_data;
hpriv            1717 drivers/ata/sata_mv.c 	pp->crqb = dma_pool_zalloc(hpriv->crqb_pool, GFP_KERNEL, &pp->crqb_dma);
hpriv            1721 drivers/ata/sata_mv.c 	pp->crpb = dma_pool_zalloc(hpriv->crpb_pool, GFP_KERNEL, &pp->crpb_dma);
hpriv            1726 drivers/ata/sata_mv.c 	if (hpriv->hp_flags & MV_HP_ERRATA_60X1C0)
hpriv            1733 drivers/ata/sata_mv.c 		if (tag == 0 || !IS_GEN_I(hpriv)) {
hpriv            1734 drivers/ata/sata_mv.c 			pp->sg_tbl[tag] = dma_pool_alloc(hpriv->sg_tbl_pool,
hpriv            2401 drivers/ata/sata_mv.c 		struct mv_host_priv *hpriv = ap->host->private_data;
hpriv            2413 drivers/ata/sata_mv.c 		if (IS_GEN_II(hpriv))
hpriv            2640 drivers/ata/sata_mv.c 	struct mv_host_priv *hpriv = ap->host->private_data;
hpriv            2655 drivers/ata/sata_mv.c 	if (IS_GEN_IIE(hpriv) && (edma_err_cause & EDMA_ERR_TRANS_IRQ_7)) {
hpriv            2675 drivers/ata/sata_mv.c 	if (IS_GEN_IIE(hpriv) && (edma_err_cause & EDMA_ERR_TRANS_IRQ_7)) {
hpriv            2712 drivers/ata/sata_mv.c 	if (IS_GEN_I(hpriv)) {
hpriv            2800 drivers/ata/sata_mv.c 	struct mv_host_priv *hpriv = ap->host->private_data;
hpriv            2817 drivers/ata/sata_mv.c 		if (IS_GEN_I(hpriv)) {
hpriv            2883 drivers/ata/sata_mv.c 	struct mv_host_priv *hpriv = host->private_data;
hpriv            2884 drivers/ata/sata_mv.c 	void __iomem *mmio = hpriv->base, *hc_mmio;
hpriv            2891 drivers/ata/sata_mv.c 	for (port = 0; port < hpriv->n_ports; port++) {
hpriv            2926 drivers/ata/sata_mv.c 				if ((port + p) >= hpriv->n_ports)
hpriv            2948 drivers/ata/sata_mv.c 	struct mv_host_priv *hpriv = host->private_data;
hpriv            2955 drivers/ata/sata_mv.c 	err_cause = readl(mmio + hpriv->irq_cause_offset);
hpriv            2962 drivers/ata/sata_mv.c 	writelfl(0, mmio + hpriv->irq_cause_offset);
hpriv            3003 drivers/ata/sata_mv.c 	struct mv_host_priv *hpriv = host->private_data;
hpriv            3005 drivers/ata/sata_mv.c 	int using_msi = hpriv->hp_flags & MV_HP_FLAG_MSI;
hpriv            3012 drivers/ata/sata_mv.c 		mv_write_main_irq_mask(0, hpriv);
hpriv            3014 drivers/ata/sata_mv.c 	main_irq_cause = readl(hpriv->main_irq_cause_addr);
hpriv            3015 drivers/ata/sata_mv.c 	pending_irqs   = main_irq_cause & hpriv->main_irq_mask;
hpriv            3021 drivers/ata/sata_mv.c 		if (unlikely((pending_irqs & PCI_ERR) && !IS_SOC(hpriv)))
hpriv            3022 drivers/ata/sata_mv.c 			handled = mv_pci_error(host, hpriv->base);
hpriv            3029 drivers/ata/sata_mv.c 		mv_write_main_irq_mask(hpriv->main_irq_mask, hpriv);
hpriv            3055 drivers/ata/sata_mv.c 	struct mv_host_priv *hpriv = link->ap->host->private_data;
hpriv            3056 drivers/ata/sata_mv.c 	void __iomem *mmio = hpriv->base;
hpriv            3069 drivers/ata/sata_mv.c 	struct mv_host_priv *hpriv = link->ap->host->private_data;
hpriv            3070 drivers/ata/sata_mv.c 	void __iomem *mmio = hpriv->base;
hpriv            3097 drivers/ata/sata_mv.c static void mv5_reset_flash(struct mv_host_priv *hpriv, void __iomem *mmio)
hpriv            3102 drivers/ata/sata_mv.c static void mv5_read_preamp(struct mv_host_priv *hpriv, int idx,
hpriv            3110 drivers/ata/sata_mv.c 	hpriv->signal[idx].pre = tmp & 0x1800;	/* bits 12:11 */
hpriv            3111 drivers/ata/sata_mv.c 	hpriv->signal[idx].amps = tmp & 0xe0;	/* bits 7:5 */
hpriv            3114 drivers/ata/sata_mv.c static void mv5_enable_leds(struct mv_host_priv *hpriv, void __iomem *mmio)
hpriv            3127 drivers/ata/sata_mv.c static void mv5_phy_errata(struct mv_host_priv *hpriv, void __iomem *mmio,
hpriv            3133 drivers/ata/sata_mv.c 	int fix_apm_sq = (hpriv->hp_flags & MV_HP_ERRATA_50XXB0);
hpriv            3148 drivers/ata/sata_mv.c 	tmp |= hpriv->signal[port].pre;
hpriv            3149 drivers/ata/sata_mv.c 	tmp |= hpriv->signal[port].amps;
hpriv            3156 drivers/ata/sata_mv.c static void mv5_reset_hc_port(struct mv_host_priv *hpriv, void __iomem *mmio,
hpriv            3161 drivers/ata/sata_mv.c 	mv_reset_channel(hpriv, mmio, port);
hpriv            3180 drivers/ata/sata_mv.c static void mv5_reset_one_hc(struct mv_host_priv *hpriv, void __iomem *mmio,
hpriv            3198 drivers/ata/sata_mv.c static int mv5_reset_hc(struct mv_host_priv *hpriv, void __iomem *mmio,
hpriv            3205 drivers/ata/sata_mv.c 			mv5_reset_hc_port(hpriv, mmio,
hpriv            3208 drivers/ata/sata_mv.c 		mv5_reset_one_hc(hpriv, mmio, hc);
hpriv            3218 drivers/ata/sata_mv.c 	struct mv_host_priv *hpriv = host->private_data;
hpriv            3229 drivers/ata/sata_mv.c 	ZERO(hpriv->irq_cause_offset);
hpriv            3230 drivers/ata/sata_mv.c 	ZERO(hpriv->irq_mask_offset);
hpriv            3238 drivers/ata/sata_mv.c static void mv6_reset_flash(struct mv_host_priv *hpriv, void __iomem *mmio)
hpriv            3242 drivers/ata/sata_mv.c 	mv5_reset_flash(hpriv, mmio);
hpriv            3259 drivers/ata/sata_mv.c static int mv6_reset_hc(struct mv_host_priv *hpriv, void __iomem *mmio,
hpriv            3314 drivers/ata/sata_mv.c static void mv6_read_preamp(struct mv_host_priv *hpriv, int idx,
hpriv            3322 drivers/ata/sata_mv.c 		hpriv->signal[idx].amps = 0x7 << 8;
hpriv            3323 drivers/ata/sata_mv.c 		hpriv->signal[idx].pre = 0x1 << 5;
hpriv            3330 drivers/ata/sata_mv.c 	hpriv->signal[idx].amps = tmp & 0x700;	/* bits 10:8 */
hpriv            3331 drivers/ata/sata_mv.c 	hpriv->signal[idx].pre = tmp & 0xe0;	/* bits 7:5 */
hpriv            3334 drivers/ata/sata_mv.c static void mv6_enable_leds(struct mv_host_priv *hpriv, void __iomem *mmio)
hpriv            3339 drivers/ata/sata_mv.c static void mv6_phy_errata(struct mv_host_priv *hpriv, void __iomem *mmio,
hpriv            3344 drivers/ata/sata_mv.c 	u32 hp_flags = hpriv->hp_flags;
hpriv            3374 drivers/ata/sata_mv.c 	if (IS_SOC(hpriv))
hpriv            3384 drivers/ata/sata_mv.c 		if (IS_GEN_IIE(hpriv))
hpriv            3402 drivers/ata/sata_mv.c 	m2 |= hpriv->signal[port].amps;
hpriv            3403 drivers/ata/sata_mv.c 	m2 |= hpriv->signal[port].pre;
hpriv            3407 drivers/ata/sata_mv.c 	if (IS_GEN_IIE(hpriv)) {
hpriv            3417 drivers/ata/sata_mv.c static void mv_soc_enable_leds(struct mv_host_priv *hpriv,
hpriv            3423 drivers/ata/sata_mv.c static void mv_soc_read_preamp(struct mv_host_priv *hpriv, int idx,
hpriv            3432 drivers/ata/sata_mv.c 	hpriv->signal[idx].amps = tmp & 0x700;	/* bits 10:8 */
hpriv            3433 drivers/ata/sata_mv.c 	hpriv->signal[idx].pre = tmp & 0xe0;	/* bits 7:5 */
hpriv            3438 drivers/ata/sata_mv.c static void mv_soc_reset_hc_port(struct mv_host_priv *hpriv,
hpriv            3443 drivers/ata/sata_mv.c 	mv_reset_channel(hpriv, mmio, port);
hpriv            3463 drivers/ata/sata_mv.c static void mv_soc_reset_one_hc(struct mv_host_priv *hpriv,
hpriv            3476 drivers/ata/sata_mv.c static int mv_soc_reset_hc(struct mv_host_priv *hpriv,
hpriv            3481 drivers/ata/sata_mv.c 	for (port = 0; port < hpriv->n_ports; port++)
hpriv            3482 drivers/ata/sata_mv.c 		mv_soc_reset_hc_port(hpriv, mmio, port);
hpriv            3484 drivers/ata/sata_mv.c 	mv_soc_reset_one_hc(hpriv, mmio);
hpriv            3489 drivers/ata/sata_mv.c static void mv_soc_reset_flash(struct mv_host_priv *hpriv,
hpriv            3500 drivers/ata/sata_mv.c static void mv_soc_65n_phy_errata(struct mv_host_priv *hpriv,
hpriv            3538 drivers/ata/sata_mv.c static bool soc_is_65n(struct mv_host_priv *hpriv)
hpriv            3540 drivers/ata/sata_mv.c 	void __iomem *port0_mmio = mv_port_base(hpriv->base, 0);
hpriv            3557 drivers/ata/sata_mv.c static void mv_reset_channel(struct mv_host_priv *hpriv, void __iomem *mmio,
hpriv            3570 drivers/ata/sata_mv.c 	if (!IS_GEN_I(hpriv)) {
hpriv            3583 drivers/ata/sata_mv.c 	hpriv->ops->phy_errata(hpriv, mmio, port_no);
hpriv            3585 drivers/ata/sata_mv.c 	if (IS_GEN_I(hpriv))
hpriv            3621 drivers/ata/sata_mv.c 	struct mv_host_priv *hpriv = ap->host->private_data;
hpriv            3623 drivers/ata/sata_mv.c 	void __iomem *mmio = hpriv->base;
hpriv            3628 drivers/ata/sata_mv.c 	mv_reset_channel(hpriv, mmio, ap->port_no);
hpriv            3644 drivers/ata/sata_mv.c 		if (!IS_GEN_I(hpriv) && ++attempts >= 5 && sstatus == 0x121) {
hpriv            3665 drivers/ata/sata_mv.c 	struct mv_host_priv *hpriv = ap->host->private_data;
hpriv            3668 drivers/ata/sata_mv.c 	void __iomem *hc_mmio = mv_hc_base_from_port(hpriv->base, port);
hpriv            3729 drivers/ata/sata_mv.c 	struct mv_host_priv *hpriv = host->private_data;
hpriv            3730 drivers/ata/sata_mv.c 	void __iomem *mmio = hpriv->base;
hpriv            3733 drivers/ata/sata_mv.c 	if (IS_SOC(hpriv) || !IS_PCIE(hpriv))
hpriv            3743 drivers/ata/sata_mv.c 	struct mv_host_priv *hpriv = host->private_data;
hpriv            3744 drivers/ata/sata_mv.c 	void __iomem *mmio = hpriv->base;
hpriv            3757 drivers/ata/sata_mv.c 	struct mv_host_priv *hpriv = host->private_data;
hpriv            3758 drivers/ata/sata_mv.c 	void __iomem *mmio = hpriv->base;
hpriv            3770 drivers/ata/sata_mv.c 	struct mv_host_priv *hpriv = host->private_data;
hpriv            3771 drivers/ata/sata_mv.c 	u32 hp_flags = hpriv->hp_flags;
hpriv            3775 drivers/ata/sata_mv.c 		hpriv->ops = &mv5xxx_ops;
hpriv            3795 drivers/ata/sata_mv.c 		hpriv->ops = &mv5xxx_ops;
hpriv            3815 drivers/ata/sata_mv.c 		hpriv->ops = &mv6xxx_ops;
hpriv            3867 drivers/ata/sata_mv.c 		hpriv->ops = &mv6xxx_ops;
hpriv            3884 drivers/ata/sata_mv.c 		if (soc_is_65n(hpriv))
hpriv            3885 drivers/ata/sata_mv.c 			hpriv->ops = &mv_soc_65n_ops;
hpriv            3887 drivers/ata/sata_mv.c 			hpriv->ops = &mv_soc_ops;
hpriv            3897 drivers/ata/sata_mv.c 	hpriv->hp_flags = hp_flags;
hpriv            3899 drivers/ata/sata_mv.c 		hpriv->irq_cause_offset	= PCIE_IRQ_CAUSE;
hpriv            3900 drivers/ata/sata_mv.c 		hpriv->irq_mask_offset	= PCIE_IRQ_MASK;
hpriv            3901 drivers/ata/sata_mv.c 		hpriv->unmask_all_irqs	= PCIE_UNMASK_ALL_IRQS;
hpriv            3903 drivers/ata/sata_mv.c 		hpriv->irq_cause_offset	= PCI_IRQ_CAUSE;
hpriv            3904 drivers/ata/sata_mv.c 		hpriv->irq_mask_offset	= PCI_IRQ_MASK;
hpriv            3905 drivers/ata/sata_mv.c 		hpriv->unmask_all_irqs	= PCI_UNMASK_ALL_IRQS;
hpriv            3924 drivers/ata/sata_mv.c 	struct mv_host_priv *hpriv = host->private_data;
hpriv            3925 drivers/ata/sata_mv.c 	void __iomem *mmio = hpriv->base;
hpriv            3927 drivers/ata/sata_mv.c 	rc = mv_chip_id(host, hpriv->board_idx);
hpriv            3931 drivers/ata/sata_mv.c 	if (IS_SOC(hpriv)) {
hpriv            3932 drivers/ata/sata_mv.c 		hpriv->main_irq_cause_addr = mmio + SOC_HC_MAIN_IRQ_CAUSE;
hpriv            3933 drivers/ata/sata_mv.c 		hpriv->main_irq_mask_addr  = mmio + SOC_HC_MAIN_IRQ_MASK;
hpriv            3935 drivers/ata/sata_mv.c 		hpriv->main_irq_cause_addr = mmio + PCI_HC_MAIN_IRQ_CAUSE;
hpriv            3936 drivers/ata/sata_mv.c 		hpriv->main_irq_mask_addr  = mmio + PCI_HC_MAIN_IRQ_MASK;
hpriv            3940 drivers/ata/sata_mv.c 	hpriv->main_irq_mask = readl(hpriv->main_irq_mask_addr);
hpriv            3948 drivers/ata/sata_mv.c 		if (hpriv->ops->read_preamp)
hpriv            3949 drivers/ata/sata_mv.c 			hpriv->ops->read_preamp(hpriv, port, mmio);
hpriv            3951 drivers/ata/sata_mv.c 	rc = hpriv->ops->reset_hc(hpriv, mmio, n_hc);
hpriv            3955 drivers/ata/sata_mv.c 	hpriv->ops->reset_flash(hpriv, mmio);
hpriv            3956 drivers/ata/sata_mv.c 	hpriv->ops->reset_bus(host, mmio);
hpriv            3957 drivers/ata/sata_mv.c 	hpriv->ops->enable_leds(hpriv, mmio);
hpriv            3978 drivers/ata/sata_mv.c 	if (!IS_SOC(hpriv)) {
hpriv            3980 drivers/ata/sata_mv.c 		writelfl(0, mmio + hpriv->irq_cause_offset);
hpriv            3983 drivers/ata/sata_mv.c 		writelfl(hpriv->unmask_all_irqs, mmio + hpriv->irq_mask_offset);
hpriv            3997 drivers/ata/sata_mv.c static int mv_create_dma_pools(struct mv_host_priv *hpriv, struct device *dev)
hpriv            3999 drivers/ata/sata_mv.c 	hpriv->crqb_pool   = dmam_pool_create("crqb_q", dev, MV_CRQB_Q_SZ,
hpriv            4001 drivers/ata/sata_mv.c 	if (!hpriv->crqb_pool)
hpriv            4004 drivers/ata/sata_mv.c 	hpriv->crpb_pool   = dmam_pool_create("crpb_q", dev, MV_CRPB_Q_SZ,
hpriv            4006 drivers/ata/sata_mv.c 	if (!hpriv->crpb_pool)
hpriv            4009 drivers/ata/sata_mv.c 	hpriv->sg_tbl_pool = dmam_pool_create("sg_tbl", dev, MV_SG_TBL_SZ,
hpriv            4011 drivers/ata/sata_mv.c 	if (!hpriv->sg_tbl_pool)
hpriv            4017 drivers/ata/sata_mv.c static void mv_conf_mbus_windows(struct mv_host_priv *hpriv,
hpriv            4023 drivers/ata/sata_mv.c 		writel(0, hpriv->base + WINDOW_CTRL(i));
hpriv            4024 drivers/ata/sata_mv.c 		writel(0, hpriv->base + WINDOW_BASE(i));
hpriv            4033 drivers/ata/sata_mv.c 			hpriv->base + WINDOW_CTRL(i));
hpriv            4034 drivers/ata/sata_mv.c 		writel(cs->base, hpriv->base + WINDOW_BASE(i));
hpriv            4053 drivers/ata/sata_mv.c 	struct mv_host_priv *hpriv;
hpriv            4100 drivers/ata/sata_mv.c 	hpriv = devm_kzalloc(&pdev->dev, sizeof(*hpriv), GFP_KERNEL);
hpriv            4102 drivers/ata/sata_mv.c 	if (!host || !hpriv)
hpriv            4104 drivers/ata/sata_mv.c 	hpriv->port_clks = devm_kcalloc(&pdev->dev,
hpriv            4107 drivers/ata/sata_mv.c 	if (!hpriv->port_clks)
hpriv            4109 drivers/ata/sata_mv.c 	hpriv->port_phys = devm_kcalloc(&pdev->dev,
hpriv            4112 drivers/ata/sata_mv.c 	if (!hpriv->port_phys)
hpriv            4114 drivers/ata/sata_mv.c 	host->private_data = hpriv;
hpriv            4115 drivers/ata/sata_mv.c 	hpriv->board_idx = chip_soc;
hpriv            4118 drivers/ata/sata_mv.c 	hpriv->base = devm_ioremap(&pdev->dev, res->start,
hpriv            4120 drivers/ata/sata_mv.c 	if (!hpriv->base)
hpriv            4123 drivers/ata/sata_mv.c 	hpriv->base -= SATAHC0_REG_BASE;
hpriv            4125 drivers/ata/sata_mv.c 	hpriv->clk = clk_get(&pdev->dev, NULL);
hpriv            4126 drivers/ata/sata_mv.c 	if (IS_ERR(hpriv->clk))
hpriv            4129 drivers/ata/sata_mv.c 		clk_prepare_enable(hpriv->clk);
hpriv            4134 drivers/ata/sata_mv.c 		hpriv->port_clks[port] = clk_get(&pdev->dev, port_number);
hpriv            4135 drivers/ata/sata_mv.c 		if (!IS_ERR(hpriv->port_clks[port]))
hpriv            4136 drivers/ata/sata_mv.c 			clk_prepare_enable(hpriv->port_clks[port]);
hpriv            4139 drivers/ata/sata_mv.c 		hpriv->port_phys[port] = devm_phy_optional_get(&pdev->dev,
hpriv            4141 drivers/ata/sata_mv.c 		if (IS_ERR(hpriv->port_phys[port])) {
hpriv            4142 drivers/ata/sata_mv.c 			rc = PTR_ERR(hpriv->port_phys[port]);
hpriv            4143 drivers/ata/sata_mv.c 			hpriv->port_phys[port] = NULL;
hpriv            4148 drivers/ata/sata_mv.c 			hpriv->n_ports = port;
hpriv            4151 drivers/ata/sata_mv.c 			phy_power_on(hpriv->port_phys[port]);
hpriv            4155 drivers/ata/sata_mv.c 	hpriv->n_ports = n_ports;
hpriv            4162 drivers/ata/sata_mv.c 		mv_conf_mbus_windows(hpriv, dram);
hpriv            4164 drivers/ata/sata_mv.c 	rc = mv_create_dma_pools(hpriv, &pdev->dev);
hpriv            4175 drivers/ata/sata_mv.c 		hpriv->hp_flags |= MV_HP_FIX_LP_PHY_CTL;
hpriv            4190 drivers/ata/sata_mv.c 	if (!IS_ERR(hpriv->clk)) {
hpriv            4191 drivers/ata/sata_mv.c 		clk_disable_unprepare(hpriv->clk);
hpriv            4192 drivers/ata/sata_mv.c 		clk_put(hpriv->clk);
hpriv            4194 drivers/ata/sata_mv.c 	for (port = 0; port < hpriv->n_ports; port++) {
hpriv            4195 drivers/ata/sata_mv.c 		if (!IS_ERR(hpriv->port_clks[port])) {
hpriv            4196 drivers/ata/sata_mv.c 			clk_disable_unprepare(hpriv->port_clks[port]);
hpriv            4197 drivers/ata/sata_mv.c 			clk_put(hpriv->port_clks[port]);
hpriv            4199 drivers/ata/sata_mv.c 		phy_power_off(hpriv->port_phys[port]);
hpriv            4216 drivers/ata/sata_mv.c 	struct mv_host_priv *hpriv = host->private_data;
hpriv            4220 drivers/ata/sata_mv.c 	if (!IS_ERR(hpriv->clk)) {
hpriv            4221 drivers/ata/sata_mv.c 		clk_disable_unprepare(hpriv->clk);
hpriv            4222 drivers/ata/sata_mv.c 		clk_put(hpriv->clk);
hpriv            4225 drivers/ata/sata_mv.c 		if (!IS_ERR(hpriv->port_clks[port])) {
hpriv            4226 drivers/ata/sata_mv.c 			clk_disable_unprepare(hpriv->port_clks[port]);
hpriv            4227 drivers/ata/sata_mv.c 			clk_put(hpriv->port_clks[port]);
hpriv            4229 drivers/ata/sata_mv.c 		phy_power_off(hpriv->port_phys[port]);
hpriv            4251 drivers/ata/sata_mv.c 		struct mv_host_priv *hpriv = host->private_data;
hpriv            4258 drivers/ata/sata_mv.c 			mv_conf_mbus_windows(hpriv, dram);
hpriv            4329 drivers/ata/sata_mv.c 	struct mv_host_priv *hpriv = host->private_data;
hpriv            4344 drivers/ata/sata_mv.c 	if (IS_GEN_I(hpriv))
hpriv            4346 drivers/ata/sata_mv.c 	else if (IS_GEN_II(hpriv))
hpriv            4348 drivers/ata/sata_mv.c 	else if (IS_GEN_IIE(hpriv))
hpriv            4355 drivers/ata/sata_mv.c 		 scc_s, (MV_HP_FLAG_MSI & hpriv->hp_flags) ? "MSI" : "INTx");
hpriv            4372 drivers/ata/sata_mv.c 	struct mv_host_priv *hpriv;
hpriv            4381 drivers/ata/sata_mv.c 	hpriv = devm_kzalloc(&pdev->dev, sizeof(*hpriv), GFP_KERNEL);
hpriv            4382 drivers/ata/sata_mv.c 	if (!host || !hpriv)
hpriv            4384 drivers/ata/sata_mv.c 	host->private_data = hpriv;
hpriv            4385 drivers/ata/sata_mv.c 	hpriv->n_ports = n_ports;
hpriv            4386 drivers/ata/sata_mv.c 	hpriv->board_idx = board_idx;
hpriv            4399 drivers/ata/sata_mv.c 	hpriv->base = host->iomap[MV_PRIMARY_BAR];
hpriv            4407 drivers/ata/sata_mv.c 	rc = mv_create_dma_pools(hpriv, &pdev->dev);
hpriv            4413 drivers/ata/sata_mv.c 		void __iomem *port_mmio = mv_port_base(hpriv->base, port);
hpriv            4414 drivers/ata/sata_mv.c 		unsigned int offset = port_mmio - hpriv->base;
hpriv            4427 drivers/ata/sata_mv.c 		hpriv->hp_flags |= MV_HP_FLAG_MSI;
hpriv            4435 drivers/ata/sata_mv.c 				 IS_GEN_I(hpriv) ? &mv5_sht : &mv6_sht);
hpriv            2319 drivers/ata/sata_nv.c 	struct nv_host_priv *hpriv;
hpriv            2353 drivers/ata/sata_nv.c 	hpriv = devm_kzalloc(&pdev->dev, sizeof(*hpriv), GFP_KERNEL);
hpriv            2354 drivers/ata/sata_nv.c 	if (!hpriv)
hpriv            2356 drivers/ata/sata_nv.c 	hpriv->type = type;
hpriv            2357 drivers/ata/sata_nv.c 	host->private_data = hpriv;
hpriv            2399 drivers/ata/sata_nv.c 	struct nv_host_priv *hpriv = host->private_data;
hpriv            2407 drivers/ata/sata_nv.c 		if (hpriv->type >= CK804) {
hpriv            2414 drivers/ata/sata_nv.c 		if (hpriv->type == ADMA) {
hpriv             791 drivers/ata/sata_promise.c 	struct pdc_host_priv *hpriv = ap->host->private_data;
hpriv             794 drivers/ata/sata_promise.c 	spin_lock(&hpriv->hard_reset_lock);
hpriv             805 drivers/ata/sata_promise.c 	spin_unlock(&hpriv->hard_reset_lock);
hpriv            1173 drivers/ata/sata_promise.c 	struct pdc_host_priv *hpriv;
hpriv            1210 drivers/ata/sata_promise.c 	hpriv = devm_kzalloc(&pdev->dev, sizeof *hpriv, GFP_KERNEL);
hpriv            1211 drivers/ata/sata_promise.c 	if (!hpriv)
hpriv            1213 drivers/ata/sata_promise.c 	spin_lock_init(&hpriv->hard_reset_lock);
hpriv            1214 drivers/ata/sata_promise.c 	host->private_data = hpriv;
hpriv            1434 drivers/ata/sata_sx4.c 	struct pdc_host_priv *hpriv;
hpriv            1441 drivers/ata/sata_sx4.c 	hpriv = devm_kzalloc(&pdev->dev, sizeof(*hpriv), GFP_KERNEL);
hpriv            1442 drivers/ata/sata_sx4.c 	if (!host || !hpriv)
hpriv            1445 drivers/ata/sata_sx4.c 	host->private_data = hpriv;
hpriv              89 drivers/ata/sata_uli.c 	struct uli_priv *hpriv = ap->host->private_data;
hpriv              90 drivers/ata/sata_uli.c 	return hpriv->scr_cfg_addr[ap->port_no] + (4 * sc_reg);
hpriv             134 drivers/ata/sata_uli.c 	struct uli_priv *hpriv;
hpriv             154 drivers/ata/sata_uli.c 	hpriv = devm_kzalloc(&pdev->dev, sizeof(*hpriv), GFP_KERNEL);
hpriv             155 drivers/ata/sata_uli.c 	if (!hpriv)
hpriv             157 drivers/ata/sata_uli.c 	host->private_data = hpriv;
hpriv             173 drivers/ata/sata_uli.c 		hpriv->scr_cfg_addr[0] = ULI5287_BASE;
hpriv             174 drivers/ata/sata_uli.c 		hpriv->scr_cfg_addr[1] = ULI5287_BASE + ULI5287_OFFS;
hpriv             182 drivers/ata/sata_uli.c 		hpriv->scr_cfg_addr[2] = ULI5287_BASE + ULI5287_OFFS*4;
hpriv             197 drivers/ata/sata_uli.c 		hpriv->scr_cfg_addr[3] = ULI5287_BASE + ULI5287_OFFS*5;
hpriv             209 drivers/ata/sata_uli.c 		hpriv->scr_cfg_addr[0] = ULI5287_BASE;
hpriv             210 drivers/ata/sata_uli.c 		hpriv->scr_cfg_addr[1] = ULI5287_BASE + ULI5287_OFFS;
hpriv             214 drivers/ata/sata_uli.c 		hpriv->scr_cfg_addr[0] = ULI5281_BASE;
hpriv             215 drivers/ata/sata_uli.c 		hpriv->scr_cfg_addr[1] = ULI5281_BASE + ULI5281_OFFS;
hpriv             576 drivers/ata/sata_via.c 	struct svia_priv *hpriv = ap->host->private_data;
hpriv             581 drivers/ata/sata_via.c 	if (!hpriv->wd_workaround) {
hpriv             586 drivers/ata/sata_via.c 			hpriv->wd_workaround = true;
hpriv             595 drivers/ata/sata_via.c 			   struct svia_priv *hpriv)
hpriv             672 drivers/ata/sata_via.c 		hpriv->wd_workaround = true;
hpriv             683 drivers/ata/sata_via.c 	struct svia_priv *hpriv;
hpriv             723 drivers/ata/sata_via.c 	hpriv = devm_kzalloc(&pdev->dev, sizeof(*hpriv), GFP_KERNEL);
hpriv             724 drivers/ata/sata_via.c 	if (!hpriv)
hpriv             726 drivers/ata/sata_via.c 	host->private_data = hpriv;
hpriv             728 drivers/ata/sata_via.c 	svia_configure(pdev, board_id, hpriv);
hpriv             743 drivers/ata/sata_via.c 	struct svia_priv *hpriv = host->private_data;
hpriv             750 drivers/ata/sata_via.c 	if (hpriv->wd_workaround)
hpriv             210 drivers/misc/habanalabs/command_buffer.c int hl_cb_ioctl(struct hl_fpriv *hpriv, void *data)
hpriv             213 drivers/misc/habanalabs/command_buffer.c 	struct hl_device *hdev = hpriv->hdev;
hpriv             226 drivers/misc/habanalabs/command_buffer.c 		rc = hl_cb_create(hdev, &hpriv->cb_mgr, args->in.cb_size,
hpriv             227 drivers/misc/habanalabs/command_buffer.c 					&handle, hpriv->ctx->asid);
hpriv             232 drivers/misc/habanalabs/command_buffer.c 		rc = hl_cb_destroy(hdev, &hpriv->cb_mgr,
hpriv             267 drivers/misc/habanalabs/command_buffer.c int hl_cb_mmap(struct hl_fpriv *hpriv, struct vm_area_struct *vma)
hpriv             269 drivers/misc/habanalabs/command_buffer.c 	struct hl_device *hdev = hpriv->hdev;
hpriv             278 drivers/misc/habanalabs/command_buffer.c 	cb = hl_cb_get(hdev, &hpriv->cb_mgr, handle);
hpriv              79 drivers/misc/habanalabs/command_submission.c static int cs_parser(struct hl_fpriv *hpriv, struct hl_cs_job *job)
hpriv              81 drivers/misc/habanalabs/command_submission.c 	struct hl_device *hdev = hpriv->hdev;
hpriv             465 drivers/misc/habanalabs/command_submission.c static int _hl_cs_ioctl(struct hl_fpriv *hpriv, void __user *chunks,
hpriv             468 drivers/misc/habanalabs/command_submission.c 	struct hl_device *hdev = hpriv->hdev;
hpriv             502 drivers/misc/habanalabs/command_submission.c 	hl_ctx_get(hdev, hpriv->ctx);
hpriv             504 drivers/misc/habanalabs/command_submission.c 	rc = allocate_cs(hdev, hpriv->ctx, &cs);
hpriv             506 drivers/misc/habanalabs/command_submission.c 		hl_ctx_put(hpriv->ctx);
hpriv             519 drivers/misc/habanalabs/command_submission.c 		cb = validate_queue_index(hdev, &hpriv->cb_mgr, chunk,
hpriv             564 drivers/misc/habanalabs/command_submission.c 		rc = cs_parser(hpriv, job);
hpriv             610 drivers/misc/habanalabs/command_submission.c int hl_cs_ioctl(struct hl_fpriv *hpriv, void *data)
hpriv             612 drivers/misc/habanalabs/command_submission.c 	struct hl_device *hdev = hpriv->hdev;
hpriv             614 drivers/misc/habanalabs/command_submission.c 	struct hl_ctx *ctx = hpriv->ctx;
hpriv             637 drivers/misc/habanalabs/command_submission.c 		mutex_lock(&hpriv->restore_phase_mutex);
hpriv             656 drivers/misc/habanalabs/command_submission.c 				mutex_unlock(&hpriv->restore_phase_mutex);
hpriv             668 drivers/misc/habanalabs/command_submission.c 			rc = _hl_cs_ioctl(hpriv, chunks, num_chunks,
hpriv             672 drivers/misc/habanalabs/command_submission.c 		mutex_unlock(&hpriv->restore_phase_mutex);
hpriv             721 drivers/misc/habanalabs/command_submission.c 	rc = _hl_cs_ioctl(hpriv, chunks, num_chunks, &cs_seq);
hpriv             768 drivers/misc/habanalabs/command_submission.c int hl_cs_wait_ioctl(struct hl_fpriv *hpriv, void *data)
hpriv             770 drivers/misc/habanalabs/command_submission.c 	struct hl_device *hdev = hpriv->hdev;
hpriv             775 drivers/misc/habanalabs/command_submission.c 	rc = _hl_cs_wait_ioctl(hdev, hpriv->ctx, args->in.timeout_us, seq);
hpriv              53 drivers/misc/habanalabs/context.c 	if (ctx->hpriv)
hpriv              54 drivers/misc/habanalabs/context.c 		hl_hpriv_put(ctx->hpriv);
hpriv              59 drivers/misc/habanalabs/context.c int hl_ctx_create(struct hl_device *hdev, struct hl_fpriv *hpriv)
hpriv              61 drivers/misc/habanalabs/context.c 	struct hl_ctx_mgr *mgr = &hpriv->ctx_mgr;
hpriv              86 drivers/misc/habanalabs/context.c 	hl_hpriv_get(hpriv);
hpriv              87 drivers/misc/habanalabs/context.c 	ctx->hpriv = hpriv;
hpriv              90 drivers/misc/habanalabs/context.c 	hpriv->ctx = ctx;
hpriv            1054 drivers/misc/habanalabs/debugfs.c void hl_debugfs_add_file(struct hl_fpriv *hpriv)
hpriv            1056 drivers/misc/habanalabs/debugfs.c 	struct hl_dbg_device_entry *dev_entry = &hpriv->hdev->hl_debugfs;
hpriv            1059 drivers/misc/habanalabs/debugfs.c 	list_add(&hpriv->debugfs_list, &dev_entry->file_list);
hpriv            1063 drivers/misc/habanalabs/debugfs.c void hl_debugfs_remove_file(struct hl_fpriv *hpriv)
hpriv            1065 drivers/misc/habanalabs/debugfs.c 	struct hl_dbg_device_entry *dev_entry = &hpriv->hdev->hl_debugfs;
hpriv            1068 drivers/misc/habanalabs/debugfs.c 	list_del(&hpriv->debugfs_list);
hpriv              43 drivers/misc/habanalabs/device.c 	struct hl_fpriv *hpriv;
hpriv              47 drivers/misc/habanalabs/device.c 	hpriv = container_of(ref, struct hl_fpriv, refcount);
hpriv              49 drivers/misc/habanalabs/device.c 	hdev = hpriv->hdev;
hpriv              50 drivers/misc/habanalabs/device.c 	ctx = hpriv->ctx;
hpriv              52 drivers/misc/habanalabs/device.c 	put_pid(hpriv->taskpid);
hpriv              54 drivers/misc/habanalabs/device.c 	hl_debugfs_remove_file(hpriv);
hpriv              56 drivers/misc/habanalabs/device.c 	mutex_destroy(&hpriv->restore_phase_mutex);
hpriv              59 drivers/misc/habanalabs/device.c 	list_del(&hpriv->dev_node);
hpriv              63 drivers/misc/habanalabs/device.c 	kfree(hpriv);
hpriv              66 drivers/misc/habanalabs/device.c void hl_hpriv_get(struct hl_fpriv *hpriv)
hpriv              68 drivers/misc/habanalabs/device.c 	kref_get(&hpriv->refcount);
hpriv              71 drivers/misc/habanalabs/device.c void hl_hpriv_put(struct hl_fpriv *hpriv)
hpriv              73 drivers/misc/habanalabs/device.c 	kref_put(&hpriv->refcount, hpriv_release);
hpriv              86 drivers/misc/habanalabs/device.c 	struct hl_fpriv *hpriv = filp->private_data;
hpriv              88 drivers/misc/habanalabs/device.c 	hl_cb_mgr_fini(hpriv->hdev, &hpriv->cb_mgr);
hpriv              89 drivers/misc/habanalabs/device.c 	hl_ctx_mgr_fini(hpriv->hdev, &hpriv->ctx_mgr);
hpriv              93 drivers/misc/habanalabs/device.c 	hl_hpriv_put(hpriv);
hpriv             100 drivers/misc/habanalabs/device.c 	struct hl_fpriv *hpriv = filp->private_data;
hpriv             105 drivers/misc/habanalabs/device.c 	hdev = hpriv->hdev;
hpriv             108 drivers/misc/habanalabs/device.c 	list_del(&hpriv->dev_node);
hpriv             111 drivers/misc/habanalabs/device.c 	kfree(hpriv);
hpriv             127 drivers/misc/habanalabs/device.c 	struct hl_fpriv *hpriv = filp->private_data;
hpriv             131 drivers/misc/habanalabs/device.c 		return hl_cb_mmap(hpriv, vma);
hpriv             726 drivers/misc/habanalabs/device.c 	struct hl_fpriv	*hpriv;
hpriv             745 drivers/misc/habanalabs/device.c 	list_for_each_entry(hpriv, &hdev->fpriv_list, dev_node) {
hpriv             746 drivers/misc/habanalabs/device.c 		task = get_pid_task(hpriv->taskpid, PIDTYPE_PID);
hpriv             648 drivers/misc/habanalabs/habanalabs.h 	struct hl_fpriv		*hpriv;
hpriv            1355 drivers/misc/habanalabs/habanalabs.h typedef int hl_ioctl_t(struct hl_fpriv *hpriv, void *data);
hpriv            1460 drivers/misc/habanalabs/habanalabs.h int hl_ctx_create(struct hl_device *hdev, struct hl_fpriv *hpriv);
hpriv            1476 drivers/misc/habanalabs/habanalabs.h void hl_hpriv_get(struct hl_fpriv *hpriv);
hpriv            1477 drivers/misc/habanalabs/habanalabs.h void hl_hpriv_put(struct hl_fpriv *hpriv);
hpriv            1493 drivers/misc/habanalabs/habanalabs.h int hl_cb_mmap(struct hl_fpriv *hpriv, struct vm_area_struct *vma);
hpriv            1576 drivers/misc/habanalabs/habanalabs.h void hl_debugfs_add_file(struct hl_fpriv *hpriv);
hpriv            1577 drivers/misc/habanalabs/habanalabs.h void hl_debugfs_remove_file(struct hl_fpriv *hpriv);
hpriv            1608 drivers/misc/habanalabs/habanalabs.h static inline void hl_debugfs_add_file(struct hl_fpriv *hpriv)
hpriv            1612 drivers/misc/habanalabs/habanalabs.h static inline void hl_debugfs_remove_file(struct hl_fpriv *hpriv)
hpriv            1667 drivers/misc/habanalabs/habanalabs.h int hl_cb_ioctl(struct hl_fpriv *hpriv, void *data);
hpriv            1668 drivers/misc/habanalabs/habanalabs.h int hl_cs_ioctl(struct hl_fpriv *hpriv, void *data);
hpriv            1669 drivers/misc/habanalabs/habanalabs.h int hl_cs_wait_ioctl(struct hl_fpriv *hpriv, void *data);
hpriv            1670 drivers/misc/habanalabs/habanalabs.h int hl_mem_ioctl(struct hl_fpriv *hpriv, void *data);
hpriv              85 drivers/misc/habanalabs/habanalabs_drv.c 	struct hl_fpriv *hpriv;
hpriv              98 drivers/misc/habanalabs/habanalabs_drv.c 	hpriv = kzalloc(sizeof(*hpriv), GFP_KERNEL);
hpriv              99 drivers/misc/habanalabs/habanalabs_drv.c 	if (!hpriv)
hpriv             102 drivers/misc/habanalabs/habanalabs_drv.c 	hpriv->hdev = hdev;
hpriv             103 drivers/misc/habanalabs/habanalabs_drv.c 	filp->private_data = hpriv;
hpriv             104 drivers/misc/habanalabs/habanalabs_drv.c 	hpriv->filp = filp;
hpriv             105 drivers/misc/habanalabs/habanalabs_drv.c 	mutex_init(&hpriv->restore_phase_mutex);
hpriv             106 drivers/misc/habanalabs/habanalabs_drv.c 	kref_init(&hpriv->refcount);
hpriv             109 drivers/misc/habanalabs/habanalabs_drv.c 	hl_cb_mgr_init(&hpriv->cb_mgr);
hpriv             110 drivers/misc/habanalabs/habanalabs_drv.c 	hl_ctx_mgr_init(&hpriv->ctx_mgr);
hpriv             112 drivers/misc/habanalabs/habanalabs_drv.c 	hpriv->taskpid = find_get_pid(current->pid);
hpriv             140 drivers/misc/habanalabs/habanalabs_drv.c 	rc = hl_ctx_create(hdev, hpriv);
hpriv             153 drivers/misc/habanalabs/habanalabs_drv.c 	list_add(&hpriv->dev_node, &hdev->fpriv_list);
hpriv             156 drivers/misc/habanalabs/habanalabs_drv.c 	hl_debugfs_add_file(hpriv);
hpriv             163 drivers/misc/habanalabs/habanalabs_drv.c 	hl_cb_mgr_fini(hpriv->hdev, &hpriv->cb_mgr);
hpriv             164 drivers/misc/habanalabs/habanalabs_drv.c 	hl_ctx_mgr_fini(hpriv->hdev, &hpriv->ctx_mgr);
hpriv             166 drivers/misc/habanalabs/habanalabs_drv.c 	mutex_destroy(&hpriv->restore_phase_mutex);
hpriv             167 drivers/misc/habanalabs/habanalabs_drv.c 	put_pid(hpriv->taskpid);
hpriv             169 drivers/misc/habanalabs/habanalabs_drv.c 	kfree(hpriv);
hpriv             176 drivers/misc/habanalabs/habanalabs_drv.c 	struct hl_fpriv *hpriv;
hpriv             189 drivers/misc/habanalabs/habanalabs_drv.c 	hpriv = kzalloc(sizeof(*hpriv), GFP_KERNEL);
hpriv             190 drivers/misc/habanalabs/habanalabs_drv.c 	if (!hpriv)
hpriv             203 drivers/misc/habanalabs/habanalabs_drv.c 	list_add(&hpriv->dev_node, &hdev->fpriv_list);
hpriv             206 drivers/misc/habanalabs/habanalabs_drv.c 	hpriv->hdev = hdev;
hpriv             207 drivers/misc/habanalabs/habanalabs_drv.c 	filp->private_data = hpriv;
hpriv             208 drivers/misc/habanalabs/habanalabs_drv.c 	hpriv->filp = filp;
hpriv             209 drivers/misc/habanalabs/habanalabs_drv.c 	hpriv->is_control = true;
hpriv             212 drivers/misc/habanalabs/habanalabs_drv.c 	hpriv->taskpid = find_get_pid(current->pid);
hpriv             218 drivers/misc/habanalabs/habanalabs_drv.c 	kfree(hpriv);
hpriv              93 drivers/misc/habanalabs/habanalabs_ioctl.c static int dram_usage_info(struct hl_fpriv *hpriv, struct hl_info_args *args)
hpriv              95 drivers/misc/habanalabs/habanalabs_ioctl.c 	struct hl_device *hdev = hpriv->hdev;
hpriv             109 drivers/misc/habanalabs/habanalabs_ioctl.c 	if (hpriv->ctx)
hpriv             111 drivers/misc/habanalabs/habanalabs_ioctl.c 			atomic64_read(&hpriv->ctx->dram_phys_mem);
hpriv             224 drivers/misc/habanalabs/habanalabs_ioctl.c static int _hl_info_ioctl(struct hl_fpriv *hpriv, void *data,
hpriv             228 drivers/misc/habanalabs/habanalabs_ioctl.c 	struct hl_device *hdev = hpriv->hdev;
hpriv             259 drivers/misc/habanalabs/habanalabs_ioctl.c 		rc = dram_usage_info(hpriv, args);
hpriv             283 drivers/misc/habanalabs/habanalabs_ioctl.c static int hl_info_ioctl(struct hl_fpriv *hpriv, void *data)
hpriv             285 drivers/misc/habanalabs/habanalabs_ioctl.c 	return _hl_info_ioctl(hpriv, data, hpriv->hdev->dev);
hpriv             288 drivers/misc/habanalabs/habanalabs_ioctl.c static int hl_info_ioctl_control(struct hl_fpriv *hpriv, void *data)
hpriv             290 drivers/misc/habanalabs/habanalabs_ioctl.c 	return _hl_info_ioctl(hpriv, data, hpriv->hdev->dev_ctrl);
hpriv             293 drivers/misc/habanalabs/habanalabs_ioctl.c static int hl_debug_ioctl(struct hl_fpriv *hpriv, void *data)
hpriv             296 drivers/misc/habanalabs/habanalabs_ioctl.c 	struct hl_device *hdev = hpriv->hdev;
hpriv             354 drivers/misc/habanalabs/habanalabs_ioctl.c 	struct hl_fpriv *hpriv = filep->private_data;
hpriv             355 drivers/misc/habanalabs/habanalabs_ioctl.c 	struct hl_device *hdev = hpriv->hdev;
hpriv             407 drivers/misc/habanalabs/habanalabs_ioctl.c 	retcode = func(hpriv, kdata);
hpriv             426 drivers/misc/habanalabs/habanalabs_ioctl.c 	struct hl_fpriv *hpriv = filep->private_data;
hpriv             427 drivers/misc/habanalabs/habanalabs_ioctl.c 	struct hl_device *hdev = hpriv->hdev;
hpriv             444 drivers/misc/habanalabs/habanalabs_ioctl.c 	struct hl_fpriv *hpriv = filep->private_data;
hpriv             445 drivers/misc/habanalabs/habanalabs_ioctl.c 	struct hl_device *hdev = hpriv->hdev;
hpriv            1093 drivers/misc/habanalabs/memory.c static int mem_ioctl_no_mmu(struct hl_fpriv *hpriv, union hl_mem_args *args)
hpriv            1095 drivers/misc/habanalabs/memory.c 	struct hl_device *hdev = hpriv->hdev;
hpriv            1096 drivers/misc/habanalabs/memory.c 	struct hl_ctx *ctx = hpriv->ctx;
hpriv            1151 drivers/misc/habanalabs/memory.c int hl_mem_ioctl(struct hl_fpriv *hpriv, void *data)
hpriv            1154 drivers/misc/habanalabs/memory.c 	struct hl_device *hdev = hpriv->hdev;
hpriv            1155 drivers/misc/habanalabs/memory.c 	struct hl_ctx *ctx = hpriv->ctx;
hpriv            1168 drivers/misc/habanalabs/memory.c 		return mem_ioctl_no_mmu(hpriv, args);
hpriv             109 drivers/usb/renesas_usbhs/mod_host.c #define usbhsh_for_each_udev(pos, hpriv, i)	\
hpriv             110 drivers/usb/renesas_usbhs/mod_host.c 	__usbhsh_for_each_udev(1, pos, hpriv, i)
hpriv             112 drivers/usb/renesas_usbhs/mod_host.c #define usbhsh_for_each_udev_with_dev0(pos, hpriv, i)	\
hpriv             113 drivers/usb/renesas_usbhs/mod_host.c 	__usbhsh_for_each_udev(0, pos, hpriv, i)
hpriv             155 drivers/usb/renesas_usbhs/mod_host.c static struct usbhsh_request *usbhsh_ureq_alloc(struct usbhsh_hpriv *hpriv,
hpriv             172 drivers/usb/renesas_usbhs/mod_host.c static void usbhsh_ureq_free(struct usbhsh_hpriv *hpriv,
hpriv             184 drivers/usb/renesas_usbhs/mod_host.c static int usbhsh_is_running(struct usbhsh_hpriv *hpriv)
hpriv             193 drivers/usb/renesas_usbhs/mod_host.c 	return (hpriv->mod.irq_attch == NULL);
hpriv             199 drivers/usb/renesas_usbhs/mod_host.c static void usbhsh_endpoint_sequence_save(struct usbhsh_hpriv *hpriv,
hpriv             241 drivers/usb/renesas_usbhs/mod_host.c static struct usbhsh_device *usbhsh_device_get(struct usbhsh_hpriv *hpriv,
hpriv             244 drivers/usb/renesas_usbhs/mod_host.c static int usbhsh_pipe_attach(struct usbhsh_hpriv *hpriv,
hpriv             247 drivers/usb/renesas_usbhs/mod_host.c 	struct usbhs_priv *priv = usbhsh_hpriv_to_priv(hpriv);
hpriv             249 drivers/usb/renesas_usbhs/mod_host.c 	struct usbhsh_device *udev = usbhsh_device_get(hpriv, urb);
hpriv             300 drivers/usb/renesas_usbhs/mod_host.c 					 usbhsh_device_number(hpriv, udev),
hpriv             305 drivers/usb/renesas_usbhs/mod_host.c 			usbhsh_device_number(hpriv, udev),
hpriv             324 drivers/usb/renesas_usbhs/mod_host.c static void usbhsh_pipe_detach(struct usbhsh_hpriv *hpriv,
hpriv             327 drivers/usb/renesas_usbhs/mod_host.c 	struct usbhs_priv *priv = usbhsh_hpriv_to_priv(hpriv);
hpriv             353 drivers/usb/renesas_usbhs/mod_host.c 			usbhsh_device_number(hpriv, udev),
hpriv             365 drivers/usb/renesas_usbhs/mod_host.c static int usbhsh_endpoint_attach(struct usbhsh_hpriv *hpriv,
hpriv             369 drivers/usb/renesas_usbhs/mod_host.c 	struct usbhs_priv *priv = usbhsh_hpriv_to_priv(hpriv);
hpriv             370 drivers/usb/renesas_usbhs/mod_host.c 	struct usbhsh_device *udev = usbhsh_device_get(hpriv, urb);
hpriv             399 drivers/usb/renesas_usbhs/mod_host.c 		usbhsh_device_number(hpriv, udev),
hpriv             405 drivers/usb/renesas_usbhs/mod_host.c static void usbhsh_endpoint_detach(struct usbhsh_hpriv *hpriv,
hpriv             408 drivers/usb/renesas_usbhs/mod_host.c 	struct usbhs_priv *priv = usbhsh_hpriv_to_priv(hpriv);
hpriv             417 drivers/usb/renesas_usbhs/mod_host.c 		usbhsh_device_number(hpriv, usbhsh_uep_to_udev(uep)),
hpriv             421 drivers/usb/renesas_usbhs/mod_host.c 		usbhsh_pipe_detach(hpriv, uep);
hpriv             439 drivers/usb/renesas_usbhs/mod_host.c static void usbhsh_endpoint_detach_all(struct usbhsh_hpriv *hpriv,
hpriv             445 drivers/usb/renesas_usbhs/mod_host.c 		usbhsh_endpoint_detach(hpriv, usbhsh_uep_to_ep(uep));
hpriv             464 drivers/usb/renesas_usbhs/mod_host.c static struct usbhsh_device *usbhsh_device_get(struct usbhsh_hpriv *hpriv,
hpriv             476 drivers/usb/renesas_usbhs/mod_host.c 		return usbhsh_device0(hpriv);
hpriv             482 drivers/usb/renesas_usbhs/mod_host.c static struct usbhsh_device *usbhsh_device_attach(struct usbhsh_hpriv *hpriv,
hpriv             486 drivers/usb/renesas_usbhs/mod_host.c 	struct usbhsh_device *udev0 = usbhsh_device0(hpriv);
hpriv             488 drivers/usb/renesas_usbhs/mod_host.c 	struct usb_hcd *hcd = usbhsh_hpriv_to_hcd(hpriv);
hpriv             491 drivers/usb/renesas_usbhs/mod_host.c 	struct usbhs_priv *priv = usbhsh_hpriv_to_priv(hpriv);
hpriv             514 drivers/usb/renesas_usbhs/mod_host.c 	usbhsh_for_each_udev(pos, hpriv, i) {
hpriv             541 drivers/usb/renesas_usbhs/mod_host.c 		usbhsh_endpoint_detach_all(hpriv, udev);
hpriv             546 drivers/usb/renesas_usbhs/mod_host.c 		usbhsh_endpoint_detach_all(hpriv, udev0);
hpriv             568 drivers/usb/renesas_usbhs/mod_host.c 		upphub	= usbhsh_device_number(hpriv, parent);
hpriv             576 drivers/usb/renesas_usbhs/mod_host.c 			       usbhsh_device_number(hpriv, udev),
hpriv             580 drivers/usb/renesas_usbhs/mod_host.c 		usbhsh_device_number(hpriv, udev), udev);
hpriv             585 drivers/usb/renesas_usbhs/mod_host.c static void usbhsh_device_detach(struct usbhsh_hpriv *hpriv,
hpriv             588 drivers/usb/renesas_usbhs/mod_host.c 	struct usb_hcd *hcd = usbhsh_hpriv_to_hcd(hpriv);
hpriv             589 drivers/usb/renesas_usbhs/mod_host.c 	struct usbhs_priv *priv = usbhsh_hpriv_to_priv(hpriv);
hpriv             595 drivers/usb/renesas_usbhs/mod_host.c 		usbhsh_device_number(hpriv, udev), udev);
hpriv             599 drivers/usb/renesas_usbhs/mod_host.c 		usbhsh_endpoint_detach_all(hpriv, udev);
hpriv             608 drivers/usb/renesas_usbhs/mod_host.c 	if (0 == usbhsh_device_number(hpriv, udev))
hpriv             632 drivers/usb/renesas_usbhs/mod_host.c 	struct usbhsh_hpriv *hpriv = usbhsh_priv_to_hpriv(priv);
hpriv             633 drivers/usb/renesas_usbhs/mod_host.c 	struct usb_hcd *hcd = usbhsh_hpriv_to_hcd(hpriv);
hpriv             645 drivers/usb/renesas_usbhs/mod_host.c 	if (!usbhsh_is_running(hpriv))
hpriv             650 drivers/usb/renesas_usbhs/mod_host.c 	usbhsh_endpoint_sequence_save(hpriv, urb, pkt);
hpriv             651 drivers/usb/renesas_usbhs/mod_host.c 	usbhsh_ureq_free(hpriv, ureq);
hpriv             653 drivers/usb/renesas_usbhs/mod_host.c 	usbhsh_pipe_detach(hpriv, usbhsh_ep_to_uep(urb->ep));
hpriv             663 drivers/usb/renesas_usbhs/mod_host.c 	struct usbhsh_hpriv *hpriv = usbhsh_hcd_to_hpriv(hcd);
hpriv             677 drivers/usb/renesas_usbhs/mod_host.c 	ureq = usbhsh_ureq_alloc(hpriv, urb, mem_flags);
hpriv             749 drivers/usb/renesas_usbhs/mod_host.c static void usbhsh_setup_stage_packet_push(struct usbhsh_hpriv *hpriv,
hpriv             753 drivers/usb/renesas_usbhs/mod_host.c 	struct usbhs_priv *priv = usbhsh_hpriv_to_priv(hpriv);
hpriv             763 drivers/usb/renesas_usbhs/mod_host.c 	init_completion(&hpriv->setup_ack_done);
hpriv             779 drivers/usb/renesas_usbhs/mod_host.c 		req.wValue = usbhsh_device_number(hpriv, udev);
hpriv             789 drivers/usb/renesas_usbhs/mod_host.c 	wait_for_completion(&hpriv->setup_ack_done);
hpriv             801 drivers/usb/renesas_usbhs/mod_host.c 	struct usbhsh_hpriv *hpriv = usbhsh_priv_to_hpriv(priv);
hpriv             805 drivers/usb/renesas_usbhs/mod_host.c 	usbhsh_ureq_free(hpriv, ureq);
hpriv             808 drivers/usb/renesas_usbhs/mod_host.c static int usbhsh_data_stage_packet_push(struct usbhsh_hpriv *hpriv,
hpriv             817 drivers/usb/renesas_usbhs/mod_host.c 	ureq = usbhsh_ureq_alloc(hpriv, urb, mem_flags);
hpriv             839 drivers/usb/renesas_usbhs/mod_host.c static int usbhsh_status_stage_packet_push(struct usbhsh_hpriv *hpriv,
hpriv             847 drivers/usb/renesas_usbhs/mod_host.c 	ureq = usbhsh_ureq_alloc(hpriv, urb, mem_flags);
hpriv             869 drivers/usb/renesas_usbhs/mod_host.c 	struct usbhsh_hpriv *hpriv = usbhsh_hcd_to_hpriv(hcd);
hpriv             882 drivers/usb/renesas_usbhs/mod_host.c 	usbhsh_setup_stage_packet_push(hpriv, urb, pipe);
hpriv             890 drivers/usb/renesas_usbhs/mod_host.c 		ret = usbhsh_data_stage_packet_push(hpriv, urb, pipe, mflags);
hpriv             900 drivers/usb/renesas_usbhs/mod_host.c 	ret = usbhsh_status_stage_packet_push(hpriv, urb, pipe, mflags);
hpriv             952 drivers/usb/renesas_usbhs/mod_host.c 	struct usbhsh_hpriv *hpriv = usbhsh_hcd_to_hpriv(hcd);
hpriv             953 drivers/usb/renesas_usbhs/mod_host.c 	struct usbhs_priv *priv = usbhsh_hpriv_to_priv(hpriv);
hpriv             962 drivers/usb/renesas_usbhs/mod_host.c 	if (!usbhsh_is_running(hpriv)) {
hpriv             978 drivers/usb/renesas_usbhs/mod_host.c 	if (!usbhsh_device_get(hpriv, urb)) {
hpriv             979 drivers/usb/renesas_usbhs/mod_host.c 		new_udev = usbhsh_device_attach(hpriv, urb);
hpriv             992 drivers/usb/renesas_usbhs/mod_host.c 		ret = usbhsh_endpoint_attach(hpriv, urb, mem_flags);
hpriv            1003 drivers/usb/renesas_usbhs/mod_host.c 	ret = usbhsh_pipe_attach(hpriv, urb);
hpriv            1020 drivers/usb/renesas_usbhs/mod_host.c 	usbhsh_endpoint_detach(hpriv, ep);
hpriv            1023 drivers/usb/renesas_usbhs/mod_host.c 		usbhsh_device_detach(hpriv, new_udev);
hpriv            1033 drivers/usb/renesas_usbhs/mod_host.c 	struct usbhsh_hpriv *hpriv = usbhsh_hcd_to_hpriv(hcd);
hpriv            1037 drivers/usb/renesas_usbhs/mod_host.c 		struct usbhs_priv *priv = usbhsh_hpriv_to_priv(hpriv);
hpriv            1052 drivers/usb/renesas_usbhs/mod_host.c 	struct usbhsh_hpriv *hpriv;
hpriv            1062 drivers/usb/renesas_usbhs/mod_host.c 	hpriv	= usbhsh_hcd_to_hpriv(hcd);
hpriv            1064 drivers/usb/renesas_usbhs/mod_host.c 	usbhsh_endpoint_detach(hpriv, ep);
hpriv            1071 drivers/usb/renesas_usbhs/mod_host.c 		usbhsh_device_detach(hpriv, udev);
hpriv            1076 drivers/usb/renesas_usbhs/mod_host.c 	struct usbhsh_hpriv *hpriv = usbhsh_hcd_to_hpriv(hcd);
hpriv            1083 drivers/usb/renesas_usbhs/mod_host.c 	if (usbhsh_port_stat_get(hpriv) & 0xFFFF0000)
hpriv            1091 drivers/usb/renesas_usbhs/mod_host.c static int __usbhsh_hub_hub_feature(struct usbhsh_hpriv *hpriv,
hpriv            1095 drivers/usb/renesas_usbhs/mod_host.c 	struct usbhs_priv *priv = usbhsh_hpriv_to_priv(hpriv);
hpriv            1108 drivers/usb/renesas_usbhs/mod_host.c static int __usbhsh_hub_port_feature(struct usbhsh_hpriv *hpriv,
hpriv            1112 drivers/usb/renesas_usbhs/mod_host.c 	struct usbhs_priv *priv = usbhsh_hpriv_to_priv(hpriv);
hpriv            1143 drivers/usb/renesas_usbhs/mod_host.c 		usbhsh_port_stat_clear(hpriv,
hpriv            1171 drivers/usb/renesas_usbhs/mod_host.c 		usbhsh_port_stat_set(hpriv, speed);
hpriv            1172 drivers/usb/renesas_usbhs/mod_host.c 		usbhsh_port_stat_set(hpriv, USB_PORT_STAT_ENABLE);
hpriv            1186 drivers/usb/renesas_usbhs/mod_host.c 		usbhsh_port_stat_set(hpriv, (1 << wValue));
hpriv            1188 drivers/usb/renesas_usbhs/mod_host.c 		usbhsh_port_stat_clear(hpriv, (1 << wValue));
hpriv            1193 drivers/usb/renesas_usbhs/mod_host.c static int __usbhsh_hub_get_status(struct usbhsh_hpriv *hpriv,
hpriv            1197 drivers/usb/renesas_usbhs/mod_host.c 	struct usbhs_priv *priv = usbhsh_hpriv_to_priv(hpriv);
hpriv            1214 drivers/usb/renesas_usbhs/mod_host.c 		*(__le32 *)buf = cpu_to_le32(usbhsh_port_stat_get(hpriv));
hpriv            1237 drivers/usb/renesas_usbhs/mod_host.c 	struct usbhsh_hpriv *hpriv = usbhsh_hcd_to_hpriv(hcd);
hpriv            1238 drivers/usb/renesas_usbhs/mod_host.c 	struct usbhs_priv *priv = usbhsh_hpriv_to_priv(hpriv);
hpriv            1247 drivers/usb/renesas_usbhs/mod_host.c 		ret = __usbhsh_hub_hub_feature(hpriv, typeReq,
hpriv            1254 drivers/usb/renesas_usbhs/mod_host.c 		ret = __usbhsh_hub_port_feature(hpriv, typeReq,
hpriv            1262 drivers/usb/renesas_usbhs/mod_host.c 		ret = __usbhsh_hub_get_status(hpriv, typeReq,
hpriv            1268 drivers/usb/renesas_usbhs/mod_host.c 		typeReq, ret, usbhsh_port_stat_get(hpriv));
hpriv            1313 drivers/usb/renesas_usbhs/mod_host.c 	struct usbhsh_hpriv *hpriv = usbhsh_priv_to_hpriv(priv);
hpriv            1318 drivers/usb/renesas_usbhs/mod_host.c 	usbhsh_port_stat_set(hpriv, USB_PORT_STAT_CONNECTION);
hpriv            1319 drivers/usb/renesas_usbhs/mod_host.c 	usbhsh_port_stat_set(hpriv, USB_PORT_STAT_C_CONNECTION << 16);
hpriv            1332 drivers/usb/renesas_usbhs/mod_host.c 	hpriv->mod.irq_attch = NULL;
hpriv            1333 drivers/usb/renesas_usbhs/mod_host.c 	usbhs_irq_callback_update(priv, &hpriv->mod);
hpriv            1341 drivers/usb/renesas_usbhs/mod_host.c 	struct usbhsh_hpriv *hpriv = usbhsh_priv_to_hpriv(priv);
hpriv            1346 drivers/usb/renesas_usbhs/mod_host.c 	usbhsh_port_stat_clear(hpriv, USB_PORT_STAT_CONNECTION);
hpriv            1347 drivers/usb/renesas_usbhs/mod_host.c 	usbhsh_port_stat_set(hpriv, USB_PORT_STAT_C_CONNECTION << 16);
hpriv            1358 drivers/usb/renesas_usbhs/mod_host.c 	hpriv->mod.irq_attch = usbhsh_irq_attch;
hpriv            1359 drivers/usb/renesas_usbhs/mod_host.c 	usbhs_irq_callback_update(priv, &hpriv->mod);
hpriv            1373 drivers/usb/renesas_usbhs/mod_host.c 	struct usbhsh_hpriv *hpriv = usbhsh_priv_to_hpriv(priv);
hpriv            1378 drivers/usb/renesas_usbhs/mod_host.c 	complete(&hpriv->setup_ack_done); /* see usbhsh_urb_enqueue() */
hpriv            1386 drivers/usb/renesas_usbhs/mod_host.c 	struct usbhsh_hpriv *hpriv = usbhsh_priv_to_hpriv(priv);
hpriv            1391 drivers/usb/renesas_usbhs/mod_host.c 	complete(&hpriv->setup_ack_done); /* see usbhsh_urb_enqueue() */
hpriv            1401 drivers/usb/renesas_usbhs/mod_host.c 	struct usbhsh_hpriv *hpriv = usbhsh_priv_to_hpriv(priv);
hpriv            1437 drivers/usb/renesas_usbhs/mod_host.c 			usbhsh_hpriv_to_dcp(hpriv) = pipe;
hpriv            1450 drivers/usb/renesas_usbhs/mod_host.c 	struct usbhsh_hpriv *hpriv = usbhsh_priv_to_hpriv(priv);
hpriv            1451 drivers/usb/renesas_usbhs/mod_host.c 	struct usb_hcd *hcd = usbhsh_hpriv_to_hcd(hpriv);
hpriv            1494 drivers/usb/renesas_usbhs/mod_host.c 	struct usbhsh_hpriv *hpriv = usbhsh_priv_to_hpriv(priv);
hpriv            1495 drivers/usb/renesas_usbhs/mod_host.c 	struct usb_hcd *hcd = usbhsh_hpriv_to_hcd(hpriv);
hpriv            1520 drivers/usb/renesas_usbhs/mod_host.c 	struct usbhsh_hpriv *hpriv;
hpriv            1542 drivers/usb/renesas_usbhs/mod_host.c 	hpriv = usbhsh_hcd_to_hpriv(hcd);
hpriv            1547 drivers/usb/renesas_usbhs/mod_host.c 	usbhs_mod_register(priv, &hpriv->mod, USBHS_HOST);
hpriv            1550 drivers/usb/renesas_usbhs/mod_host.c 	hpriv->mod.name		= "host";
hpriv            1551 drivers/usb/renesas_usbhs/mod_host.c 	hpriv->mod.start	= usbhsh_start;
hpriv            1552 drivers/usb/renesas_usbhs/mod_host.c 	hpriv->mod.stop		= usbhsh_stop;
hpriv            1553 drivers/usb/renesas_usbhs/mod_host.c 	usbhsh_port_stat_init(hpriv);
hpriv            1556 drivers/usb/renesas_usbhs/mod_host.c 	usbhsh_for_each_udev_with_dev0(udev, hpriv, i) {
hpriv            1568 drivers/usb/renesas_usbhs/mod_host.c 	struct usbhsh_hpriv *hpriv = usbhsh_priv_to_hpriv(priv);
hpriv            1569 drivers/usb/renesas_usbhs/mod_host.c 	struct usb_hcd *hcd = usbhsh_hpriv_to_hcd(hpriv);
hpriv              22 include/linux/ahci_platform.h int ahci_platform_enable_phys(struct ahci_host_priv *hpriv);
hpriv              23 include/linux/ahci_platform.h void ahci_platform_disable_phys(struct ahci_host_priv *hpriv);
hpriv              24 include/linux/ahci_platform.h int ahci_platform_enable_clks(struct ahci_host_priv *hpriv);
hpriv              25 include/linux/ahci_platform.h void ahci_platform_disable_clks(struct ahci_host_priv *hpriv);
hpriv              26 include/linux/ahci_platform.h int ahci_platform_enable_regulators(struct ahci_host_priv *hpriv);
hpriv              27 include/linux/ahci_platform.h void ahci_platform_disable_regulators(struct ahci_host_priv *hpriv);
hpriv              28 include/linux/ahci_platform.h int ahci_platform_enable_resources(struct ahci_host_priv *hpriv);
hpriv              29 include/linux/ahci_platform.h void ahci_platform_disable_resources(struct ahci_host_priv *hpriv);
hpriv              33 include/linux/ahci_platform.h 			    struct ahci_host_priv *hpriv,