Lines Matching refs:drv_data

57 	struct st_ahci_drv_data *drv_data = hpriv->plat_data;  in st_ahci_deassert_resets()  local
60 if (drv_data->pwr) { in st_ahci_deassert_resets()
61 err = reset_control_deassert(drv_data->pwr); in st_ahci_deassert_resets()
68 if (drv_data->sw_rst) { in st_ahci_deassert_resets()
69 err = reset_control_deassert(drv_data->sw_rst); in st_ahci_deassert_resets()
76 if (drv_data->pwr_rst) { in st_ahci_deassert_resets()
77 err = reset_control_deassert(drv_data->pwr_rst); in st_ahci_deassert_resets()
90 struct st_ahci_drv_data *drv_data = hpriv->plat_data; in st_ahci_host_stop() local
94 if (drv_data->pwr) { in st_ahci_host_stop()
95 err = reset_control_assert(drv_data->pwr); in st_ahci_host_stop()
106 struct st_ahci_drv_data *drv_data = hpriv->plat_data; in st_ahci_probe_resets() local
108 drv_data->pwr = devm_reset_control_get(dev, "pwr-dwn"); in st_ahci_probe_resets()
109 if (IS_ERR(drv_data->pwr)) { in st_ahci_probe_resets()
111 drv_data->pwr = NULL; in st_ahci_probe_resets()
114 drv_data->sw_rst = devm_reset_control_get(dev, "sw-rst"); in st_ahci_probe_resets()
115 if (IS_ERR(drv_data->sw_rst)) { in st_ahci_probe_resets()
117 drv_data->sw_rst = NULL; in st_ahci_probe_resets()
120 drv_data->pwr_rst = devm_reset_control_get(dev, "pwr-rst"); in st_ahci_probe_resets()
121 if (IS_ERR(drv_data->pwr_rst)) { in st_ahci_probe_resets()
123 drv_data->pwr_rst = NULL; in st_ahci_probe_resets()
148 struct st_ahci_drv_data *drv_data; in st_ahci_probe() local
152 drv_data = devm_kzalloc(&pdev->dev, sizeof(*drv_data), GFP_KERNEL); in st_ahci_probe()
153 if (!drv_data) in st_ahci_probe()
159 hpriv->plat_data = drv_data; in st_ahci_probe()
189 struct st_ahci_drv_data *drv_data = hpriv->plat_data; in st_ahci_suspend() local
196 if (drv_data->pwr) { in st_ahci_suspend()
197 err = reset_control_assert(drv_data->pwr); in st_ahci_suspend()