Lines Matching refs:ccw_queue
122 INIT_LIST_HEAD(&device->ccw_queue); in dasd_alloc_device()
162 INIT_LIST_HEAD(&block->ccw_queue); in dasd_alloc_block()
365 return list_empty(&device->ccw_queue) && in _wait_for_empty_queues()
366 list_empty(&device->block->ccw_queue); in _wait_for_empty_queues()
368 return list_empty(&device->ccw_queue); in _wait_for_empty_queues()
659 list_for_each(l, &block->ccw_queue) in dasd_profile_start()
690 list_for_each(l, &device->ccw_queue) in dasd_profile_start()
1723 list_add(&fcqr->devlist, &device->ccw_queue); in dasd_int_handler()
1754 if (cqr->devlist.next != &device->ccw_queue) { in dasd_int_handler()
1836 list_for_each_safe(l, n, &device->ccw_queue) { in __dasd_device_recovery()
1856 list_for_each_safe(l, n, &device->ccw_queue) { in __dasd_device_process_ccw_queue()
1937 if (list_empty(&device->ccw_queue)) in __dasd_device_check_expire()
1939 cqr = list_entry(device->ccw_queue.next, struct dasd_ccw_req, devlist); in __dasd_device_check_expire()
2005 if (list_empty(&device->ccw_queue)) in __dasd_device_start_head()
2007 cqr = list_entry(device->ccw_queue.next, struct dasd_ccw_req, devlist); in __dasd_device_start_head()
2072 list_for_each_entry_safe(cqr, n, &device->ccw_queue, devlist) { in dasd_flush_device_queue()
2180 list_add(&cqr->devlist, &device->ccw_queue); in dasd_add_request_head()
2199 list_add_tail(&cqr->devlist, &device->ccw_queue); in dasd_add_request_tail()
2276 struct list_head ccw_queue; in _dasd_sleep_on() local
2279 INIT_LIST_HEAD(&ccw_queue); in _dasd_sleep_on()
2282 list_add(&maincqr->blocklist, &ccw_queue); in _dasd_sleep_on()
2284 cqr = list_first_entry(&ccw_queue, in _dasd_sleep_on()
2364 static inline int _wait_for_wakeup_queue(struct list_head *ccw_queue) in _wait_for_wakeup_queue() argument
2368 list_for_each_entry(cqr, ccw_queue, blocklist) { in _wait_for_wakeup_queue()
2376 static int _dasd_sleep_on_queue(struct list_head *ccw_queue, int interruptible) in _dasd_sleep_on_queue() argument
2384 list_for_each_entry_safe(cqr, n, ccw_queue, blocklist) { in _dasd_sleep_on_queue()
2422 wait_event(generic_waitq, _wait_for_wakeup_queue(ccw_queue)); in _dasd_sleep_on_queue()
2425 list_for_each_entry_safe(cqr, n, ccw_queue, blocklist) { in _dasd_sleep_on_queue()
2475 int dasd_sleep_on_queue(struct list_head *ccw_queue) in dasd_sleep_on_queue() argument
2477 return _dasd_sleep_on_queue(ccw_queue, 0); in dasd_sleep_on_queue()
2484 int dasd_sleep_on_queue_interruptible(struct list_head *ccw_queue) in dasd_sleep_on_queue_interruptible() argument
2486 return _dasd_sleep_on_queue(ccw_queue, 1); in dasd_sleep_on_queue_interruptible()
2511 if (list_empty(&device->ccw_queue)) in _dasd_term_running_cqr()
2513 cqr = list_entry(device->ccw_queue.next, struct dasd_ccw_req, devlist); in _dasd_term_running_cqr()
2550 list_add(&cqr->devlist, device->ccw_queue.next); in dasd_sleep_on_immediatly()
2757 list_for_each_safe(l, n, &block->ccw_queue) { in __dasd_process_block_ccw_queue()
2817 if (list_empty(&block->ccw_queue)) in __dasd_block_start_head()
2823 list_for_each_entry(cqr, &block->ccw_queue, blocklist) { in __dasd_block_start_head()
2934 list_for_each_entry_safe(cqr, n, &block->ccw_queue, blocklist) { in _dasd_requests_to_flushqueue()
3093 list_add_tail(&cqr->blocklist, &block->ccw_queue); in do_dasd_request()
3147 &block->ccw_queue, blocklist) { in dasd_times_out()
3661 list_for_each_entry(cqr, &device->ccw_queue, devlist) in dasd_generic_last_path_gone()