Lines Matching refs:cdev

21 struct zfcp_adapter *zfcp_ccw_adapter_by_cdev(struct ccw_device *cdev)  in zfcp_ccw_adapter_by_cdev()  argument
27 adapter = dev_get_drvdata(&cdev->dev); in zfcp_ccw_adapter_by_cdev()
49 static int zfcp_ccw_activate(struct ccw_device *cdev, int clear, char *tag) in zfcp_ccw_activate() argument
51 struct zfcp_adapter *adapter = zfcp_ccw_adapter_by_cdev(cdev); in zfcp_ccw_activate()
98 static int zfcp_ccw_probe(struct ccw_device *cdev) in zfcp_ccw_probe() argument
112 static void zfcp_ccw_remove(struct ccw_device *cdev) in zfcp_ccw_remove() argument
120 ccw_device_set_offline(cdev); in zfcp_ccw_remove()
122 adapter = zfcp_ccw_adapter_by_cdev(cdev); in zfcp_ccw_remove()
159 static int zfcp_ccw_set_online(struct ccw_device *cdev) in zfcp_ccw_set_online() argument
161 struct zfcp_adapter *adapter = zfcp_ccw_adapter_by_cdev(cdev); in zfcp_ccw_set_online()
164 adapter = zfcp_adapter_enqueue(cdev); in zfcp_ccw_set_online()
167 dev_err(&cdev->dev, in zfcp_ccw_set_online()
179 zfcp_ccw_activate(cdev, 0, "ccsonl1"); in zfcp_ccw_set_online()
206 static int zfcp_ccw_offline_sync(struct ccw_device *cdev, int set, char *tag) in zfcp_ccw_offline_sync() argument
208 struct zfcp_adapter *adapter = zfcp_ccw_adapter_by_cdev(cdev); in zfcp_ccw_offline_sync()
228 static int zfcp_ccw_set_offline(struct ccw_device *cdev) in zfcp_ccw_set_offline() argument
230 return zfcp_ccw_offline_sync(cdev, 0, "ccsoff1"); in zfcp_ccw_set_offline()
241 static int zfcp_ccw_notify(struct ccw_device *cdev, int event) in zfcp_ccw_notify() argument
243 struct zfcp_adapter *adapter = zfcp_ccw_adapter_by_cdev(cdev); in zfcp_ccw_notify()
255 dev_warn(&cdev->dev, "The FCP device has been detached\n"); in zfcp_ccw_notify()
259 dev_warn(&cdev->dev, in zfcp_ccw_notify()
269 dev_info(&cdev->dev, "The FCP device is operational again\n"); in zfcp_ccw_notify()
276 dev_warn(&cdev->dev, "The FCP device did not respond within " in zfcp_ccw_notify()
290 static void zfcp_ccw_shutdown(struct ccw_device *cdev) in zfcp_ccw_shutdown() argument
292 struct zfcp_adapter *adapter = zfcp_ccw_adapter_by_cdev(cdev); in zfcp_ccw_shutdown()
304 static int zfcp_ccw_suspend(struct ccw_device *cdev) in zfcp_ccw_suspend() argument
306 zfcp_ccw_offline_sync(cdev, ZFCP_STATUS_ADAPTER_SUSPENDED, "ccsusp1"); in zfcp_ccw_suspend()
310 static int zfcp_ccw_thaw(struct ccw_device *cdev) in zfcp_ccw_thaw() argument
316 zfcp_ccw_activate(cdev, 0, "ccthaw1"); in zfcp_ccw_thaw()
320 static int zfcp_ccw_resume(struct ccw_device *cdev) in zfcp_ccw_resume() argument
322 zfcp_ccw_activate(cdev, ZFCP_STATUS_ADAPTER_SUSPENDED, "ccresu1"); in zfcp_ccw_resume()