Lines Matching refs:cdev
20 struct zfcp_adapter *zfcp_ccw_adapter_by_cdev(struct ccw_device *cdev) in zfcp_ccw_adapter_by_cdev() argument
26 adapter = dev_get_drvdata(&cdev->dev); in zfcp_ccw_adapter_by_cdev()
48 static int zfcp_ccw_activate(struct ccw_device *cdev, int clear, char *tag) in zfcp_ccw_activate() argument
50 struct zfcp_adapter *adapter = zfcp_ccw_adapter_by_cdev(cdev); in zfcp_ccw_activate()
97 static int zfcp_ccw_probe(struct ccw_device *cdev) in zfcp_ccw_probe() argument
111 static void zfcp_ccw_remove(struct ccw_device *cdev) in zfcp_ccw_remove() argument
119 ccw_device_set_offline(cdev); in zfcp_ccw_remove()
121 adapter = zfcp_ccw_adapter_by_cdev(cdev); in zfcp_ccw_remove()
158 static int zfcp_ccw_set_online(struct ccw_device *cdev) in zfcp_ccw_set_online() argument
160 struct zfcp_adapter *adapter = zfcp_ccw_adapter_by_cdev(cdev); in zfcp_ccw_set_online()
163 adapter = zfcp_adapter_enqueue(cdev); in zfcp_ccw_set_online()
166 dev_err(&cdev->dev, in zfcp_ccw_set_online()
178 zfcp_ccw_activate(cdev, 0, "ccsonl1"); in zfcp_ccw_set_online()
205 static int zfcp_ccw_offline_sync(struct ccw_device *cdev, int set, char *tag) in zfcp_ccw_offline_sync() argument
207 struct zfcp_adapter *adapter = zfcp_ccw_adapter_by_cdev(cdev); in zfcp_ccw_offline_sync()
227 static int zfcp_ccw_set_offline(struct ccw_device *cdev) in zfcp_ccw_set_offline() argument
229 return zfcp_ccw_offline_sync(cdev, 0, "ccsoff1"); in zfcp_ccw_set_offline()
240 static int zfcp_ccw_notify(struct ccw_device *cdev, int event) in zfcp_ccw_notify() argument
242 struct zfcp_adapter *adapter = zfcp_ccw_adapter_by_cdev(cdev); in zfcp_ccw_notify()
254 dev_warn(&cdev->dev, "The FCP device has been detached\n"); in zfcp_ccw_notify()
258 dev_warn(&cdev->dev, in zfcp_ccw_notify()
268 dev_info(&cdev->dev, "The FCP device is operational again\n"); in zfcp_ccw_notify()
275 dev_warn(&cdev->dev, "The FCP device did not respond within " in zfcp_ccw_notify()
289 static void zfcp_ccw_shutdown(struct ccw_device *cdev) in zfcp_ccw_shutdown() argument
291 struct zfcp_adapter *adapter = zfcp_ccw_adapter_by_cdev(cdev); in zfcp_ccw_shutdown()
303 static int zfcp_ccw_suspend(struct ccw_device *cdev) in zfcp_ccw_suspend() argument
305 zfcp_ccw_offline_sync(cdev, ZFCP_STATUS_ADAPTER_SUSPENDED, "ccsusp1"); in zfcp_ccw_suspend()
309 static int zfcp_ccw_thaw(struct ccw_device *cdev) in zfcp_ccw_thaw() argument
315 zfcp_ccw_activate(cdev, 0, "ccthaw1"); in zfcp_ccw_thaw()
319 static int zfcp_ccw_resume(struct ccw_device *cdev) in zfcp_ccw_resume() argument
321 zfcp_ccw_activate(cdev, ZFCP_STATUS_ADAPTER_SUSPENDED, "ccresu1"); in zfcp_ccw_resume()