Lines Matching +full:sets +full:- +full:of +full:- +full:ports

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
62 * We want to scan ports here, with some random backoff and without in zfcp_ccw_activate()
70 * point in waiting a random delay on top of the time consumed by in zfcp_ccw_activate()
75 flush_delayed_work(&adapter->scan_work); in zfcp_ccw_activate()
90 * zfcp_ccw_probe - probe function of zfcp driver
104 * zfcp_ccw_remove - remove function of zfcp driver
108 * from the system. Task of this function is to get rid of all units and
109 * ports that belong to this adapter. And in addition all resources of this
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
149 * This function gets called by the common i/o layer and sets an
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()
181 * We want to scan ports here, always, with some random delay and 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
200 * This function gets called by the common i/o layer and sets an adapter
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