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()
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()
203 static int zfcp_ccw_set_offline(struct ccw_device *cdev) in zfcp_ccw_set_offline() argument
205 struct zfcp_adapter *adapter = zfcp_ccw_adapter_by_cdev(cdev); in zfcp_ccw_set_offline()
226 static int zfcp_ccw_notify(struct ccw_device *cdev, int event) in zfcp_ccw_notify() argument
228 struct zfcp_adapter *adapter = zfcp_ccw_adapter_by_cdev(cdev); in zfcp_ccw_notify()
235 dev_warn(&cdev->dev, "The FCP device has been detached\n"); in zfcp_ccw_notify()
239 dev_warn(&cdev->dev, in zfcp_ccw_notify()
244 dev_info(&cdev->dev, "The FCP device is operational again\n"); in zfcp_ccw_notify()
251 dev_warn(&cdev->dev, "The FCP device did not respond within " in zfcp_ccw_notify()
265 static void zfcp_ccw_shutdown(struct ccw_device *cdev) in zfcp_ccw_shutdown() argument
267 struct zfcp_adapter *adapter = zfcp_ccw_adapter_by_cdev(cdev); in zfcp_ccw_shutdown()