Lines Matching refs:drv_data

60 	struct st_ahci_drv_data *drv_data = hpriv->plat_data;  in st_ahci_deassert_resets()  local
63 if (drv_data->pwr) { in st_ahci_deassert_resets()
64 err = reset_control_deassert(drv_data->pwr); in st_ahci_deassert_resets()
71 if (drv_data->sw_rst) { in st_ahci_deassert_resets()
72 err = reset_control_deassert(drv_data->sw_rst); in st_ahci_deassert_resets()
79 if (drv_data->pwr_rst) { in st_ahci_deassert_resets()
80 err = reset_control_deassert(drv_data->pwr_rst); in st_ahci_deassert_resets()
93 struct st_ahci_drv_data *drv_data = hpriv->plat_data; in st_ahci_host_stop() local
97 if (drv_data->pwr) { in st_ahci_host_stop()
98 err = reset_control_assert(drv_data->pwr); in st_ahci_host_stop()
109 struct st_ahci_drv_data *drv_data = hpriv->plat_data; in st_ahci_probe_resets() local
111 drv_data->pwr = devm_reset_control_get(dev, "pwr-dwn"); in st_ahci_probe_resets()
112 if (IS_ERR(drv_data->pwr)) { in st_ahci_probe_resets()
114 drv_data->pwr = NULL; in st_ahci_probe_resets()
117 drv_data->sw_rst = devm_reset_control_get(dev, "sw-rst"); in st_ahci_probe_resets()
118 if (IS_ERR(drv_data->sw_rst)) { in st_ahci_probe_resets()
120 drv_data->sw_rst = NULL; in st_ahci_probe_resets()
123 drv_data->pwr_rst = devm_reset_control_get(dev, "pwr-rst"); in st_ahci_probe_resets()
124 if (IS_ERR(drv_data->pwr_rst)) { in st_ahci_probe_resets()
126 drv_data->pwr_rst = NULL; in st_ahci_probe_resets()
150 struct st_ahci_drv_data *drv_data; in st_ahci_probe() local
154 drv_data = devm_kzalloc(&pdev->dev, sizeof(*drv_data), GFP_KERNEL); in st_ahci_probe()
155 if (!drv_data) in st_ahci_probe()
161 hpriv->plat_data = drv_data; in st_ahci_probe()
188 struct st_ahci_drv_data *drv_data = hpriv->plat_data; in st_ahci_suspend() local
195 if (drv_data->pwr) { in st_ahci_suspend()
196 err = reset_control_assert(drv_data->pwr); in st_ahci_suspend()