Lines Matching refs:host_priv
292 struct sata_fsl_host_priv *host_priv = host->private_data; in fsl_sata_set_irq_coalescing() local
293 void __iomem *hcr_base = host_priv->hcr_base; in fsl_sata_set_irq_coalescing()
352 struct sata_fsl_host_priv *host_priv = host->private_data; in fsl_sata_rx_watermark_show() local
353 void __iomem *csr_base = host_priv->csr_base; in fsl_sata_rx_watermark_show()
370 struct sata_fsl_host_priv *host_priv = host->private_data; in fsl_sata_rx_watermark_store() local
371 void __iomem *csr_base = host_priv->csr_base; in fsl_sata_rx_watermark_store()
509 struct sata_fsl_host_priv *host_priv = ap->host->private_data; in sata_fsl_qc_prep() local
510 void __iomem *hcr_base = host_priv->hcr_base; in sata_fsl_qc_prep()
541 host_priv->data_snoop); in sata_fsl_qc_prep()
558 struct sata_fsl_host_priv *host_priv = ap->host->private_data; in sata_fsl_qc_issue() local
559 void __iomem *hcr_base = host_priv->hcr_base; in sata_fsl_qc_issue()
579 ioread32(COMMANDSTAT + host_priv->csr_base)); in sata_fsl_qc_issue()
587 struct sata_fsl_host_priv *host_priv = qc->ap->host->private_data; in sata_fsl_qc_fill_rtf() local
588 void __iomem *hcr_base = host_priv->hcr_base; in sata_fsl_qc_fill_rtf()
601 struct sata_fsl_host_priv *host_priv = link->ap->host->private_data; in sata_fsl_scr_write() local
602 void __iomem *ssr_base = host_priv->ssr_base; in sata_fsl_scr_write()
625 struct sata_fsl_host_priv *host_priv = link->ap->host->private_data; in sata_fsl_scr_read() local
626 void __iomem *ssr_base = host_priv->ssr_base; in sata_fsl_scr_read()
648 struct sata_fsl_host_priv *host_priv = ap->host->private_data; in sata_fsl_freeze() local
649 void __iomem *hcr_base = host_priv->hcr_base; in sata_fsl_freeze()
657 ioread32(host_priv->csr_base + COMMANDSTAT)); in sata_fsl_freeze()
669 struct sata_fsl_host_priv *host_priv = ap->host->private_data; in sata_fsl_thaw() local
670 void __iomem *hcr_base = host_priv->hcr_base; in sata_fsl_thaw()
691 struct sata_fsl_host_priv *host_priv = ap->host->private_data; in sata_fsl_pmp_attach() local
692 void __iomem *hcr_base = host_priv->hcr_base; in sata_fsl_pmp_attach()
701 struct sata_fsl_host_priv *host_priv = ap->host->private_data; in sata_fsl_pmp_detach() local
702 void __iomem *hcr_base = host_priv->hcr_base; in sata_fsl_pmp_detach()
721 struct sata_fsl_host_priv *host_priv = ap->host->private_data; in sata_fsl_port_start() local
722 void __iomem *hcr_base = host_priv->hcr_base; in sata_fsl_port_start()
775 struct sata_fsl_host_priv *host_priv = ap->host->private_data; in sata_fsl_port_stop() local
776 void __iomem *hcr_base = host_priv->hcr_base; in sata_fsl_port_stop()
799 struct sata_fsl_host_priv *host_priv = ap->host->private_data; in sata_fsl_dev_classify() local
800 void __iomem *hcr_base = host_priv->hcr_base; in sata_fsl_dev_classify()
822 struct sata_fsl_host_priv *host_priv = ap->host->private_data; in sata_fsl_hardreset() local
823 void __iomem *hcr_base = host_priv->hcr_base; in sata_fsl_hardreset()
936 struct sata_fsl_host_priv *host_priv = ap->host->private_data; in sata_fsl_softreset() local
937 void __iomem *hcr_base = host_priv->hcr_base; in sata_fsl_softreset()
1080 struct sata_fsl_host_priv *host_priv = ap->host->private_data; in sata_fsl_error_intr() local
1081 void __iomem *hcr_base = host_priv->hcr_base; in sata_fsl_error_intr()
1206 struct sata_fsl_host_priv *host_priv = ap->host->private_data; in sata_fsl_host_intr() local
1207 void __iomem *hcr_base = host_priv->hcr_base; in sata_fsl_host_intr()
1308 struct sata_fsl_host_priv *host_priv = host->private_data; in sata_fsl_interrupt() local
1309 void __iomem *hcr_base = host_priv->hcr_base; in sata_fsl_interrupt()
1348 struct sata_fsl_host_priv *host_priv = host->private_data; in sata_fsl_init_controller() local
1349 void __iomem *hcr_base = host_priv->hcr_base; in sata_fsl_init_controller()
1399 struct sata_fsl_host_priv *host_priv = host->private_data; in sata_fsl_host_stop() local
1401 iounmap(host_priv->hcr_base); in sata_fsl_host_stop()
1402 kfree(host_priv); in sata_fsl_host_stop()
1458 struct sata_fsl_host_priv *host_priv = NULL; in sata_fsl_probe() local
1485 host_priv = kzalloc(sizeof(struct sata_fsl_host_priv), GFP_KERNEL); in sata_fsl_probe()
1486 if (!host_priv) in sata_fsl_probe()
1489 host_priv->hcr_base = hcr_base; in sata_fsl_probe()
1490 host_priv->ssr_base = ssr_base; in sata_fsl_probe()
1491 host_priv->csr_base = csr_base; in sata_fsl_probe()
1498 host_priv->irq = irq; in sata_fsl_probe()
1501 host_priv->data_snoop = DATA_SNOOP_ENABLE_V2; in sata_fsl_probe()
1503 host_priv->data_snoop = DATA_SNOOP_ENABLE_V1; in sata_fsl_probe()
1513 host->private_data = host_priv; in sata_fsl_probe()
1526 host_priv->intr_coalescing.show = fsl_sata_intr_coalescing_show; in sata_fsl_probe()
1527 host_priv->intr_coalescing.store = fsl_sata_intr_coalescing_store; in sata_fsl_probe()
1528 sysfs_attr_init(&host_priv->intr_coalescing.attr); in sata_fsl_probe()
1529 host_priv->intr_coalescing.attr.name = "intr_coalescing"; in sata_fsl_probe()
1530 host_priv->intr_coalescing.attr.mode = S_IRUGO | S_IWUSR; in sata_fsl_probe()
1531 retval = device_create_file(host->dev, &host_priv->intr_coalescing); in sata_fsl_probe()
1535 host_priv->rx_watermark.show = fsl_sata_rx_watermark_show; in sata_fsl_probe()
1536 host_priv->rx_watermark.store = fsl_sata_rx_watermark_store; in sata_fsl_probe()
1537 sysfs_attr_init(&host_priv->rx_watermark.attr); in sata_fsl_probe()
1538 host_priv->rx_watermark.attr.name = "rx_watermark"; in sata_fsl_probe()
1539 host_priv->rx_watermark.attr.mode = S_IRUGO | S_IWUSR; in sata_fsl_probe()
1540 retval = device_create_file(host->dev, &host_priv->rx_watermark); in sata_fsl_probe()
1542 device_remove_file(&ofdev->dev, &host_priv->intr_coalescing); in sata_fsl_probe()
1555 kfree(host_priv); in sata_fsl_probe()
1563 struct sata_fsl_host_priv *host_priv = host->private_data; in sata_fsl_remove() local
1565 device_remove_file(&ofdev->dev, &host_priv->intr_coalescing); in sata_fsl_remove()
1566 device_remove_file(&ofdev->dev, &host_priv->rx_watermark); in sata_fsl_remove()
1583 struct sata_fsl_host_priv *host_priv = host->private_data; in sata_fsl_resume() local
1585 void __iomem *hcr_base = host_priv->hcr_base; in sata_fsl_resume()