Lines Matching +full:no +full:- +full:ref +full:- +full:current +full:- +full:limit

1 // SPDX-License-Identifier: GPL-2.0
27 adapter = dev_get_drvdata(&cdev->dev); in zfcp_ccw_adapter_by_cdev()
29 kref_get(&adapter->ref); in zfcp_ccw_adapter_by_cdev()
39 kref_put(&adapter->ref, zfcp_adapter_release); in zfcp_ccw_adapter_put()
44 * zfcp_ccw_activate - activate adapter and wait for it to finish
63 * rate limit. Recovery has already scheduled a port scan for us, in zfcp_ccw_activate()
64 * but with both random delay and rate limit. Nevertheless we get in zfcp_ccw_activate()
69 * and port scan. If not, i.e. recovery takes ages, there was no in zfcp_ccw_activate()
75 flush_delayed_work(&adapter->scan_work); in zfcp_ccw_activate()
90 * zfcp_ccw_probe - probe function of zfcp driver
94 * device found on the current system. This is only a stub to make cio
104 * zfcp_ccw_remove - remove function of zfcp driver
126 write_lock_irq(&adapter->port_list_lock); in zfcp_ccw_remove()
127 list_for_each_entry(port, &adapter->port_list, list) { in zfcp_ccw_remove()
128 write_lock(&port->unit_list_lock); in zfcp_ccw_remove()
129 list_splice_init(&port->unit_list, &unit_remove_lh); in zfcp_ccw_remove()
130 write_unlock(&port->unit_list_lock); in zfcp_ccw_remove()
132 list_splice_init(&adapter->port_list, &port_remove_lh); in zfcp_ccw_remove()
133 write_unlock_irq(&adapter->port_list_lock); in zfcp_ccw_remove()
137 device_unregister(&unit->dev); in zfcp_ccw_remove()
140 device_unregister(&port->dev); in zfcp_ccw_remove()
146 * zfcp_ccw_set_online - set_online function of zfcp driver
166 dev_err(&cdev->dev, in zfcp_ccw_set_online()
171 kref_get(&adapter->ref); in zfcp_ccw_set_online()
175 BUG_ON(!zfcp_reqlist_isempty(adapter->req_list)); in zfcp_ccw_set_online()
176 adapter->req_no = 0; in zfcp_ccw_set_online()
182 * without rate limit - basically what zfcp_ccw_activate() has in zfcp_ccw_set_online()
191 flush_delayed_work(&adapter->scan_work); in zfcp_ccw_set_online()
197 * zfcp_ccw_set_offline - set_offline function of zfcp driver
219 * zfcp_ccw_notify - ccw notify function
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()
262 * zfcp_ccw_shutdown - handle shutdown from cio