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()
373 return list_empty(&device->ccw_queue) && in _wait_for_empty_queues()
374 list_empty(&device->block->ccw_queue); in _wait_for_empty_queues()
376 return list_empty(&device->ccw_queue); in _wait_for_empty_queues()
667 list_for_each(l, &block->ccw_queue) in dasd_profile_start()
698 list_for_each(l, &device->ccw_queue) in dasd_profile_start()
1767 list_add(&fcqr->devlist, &device->ccw_queue); in dasd_int_handler()
1798 if (cqr->devlist.next != &device->ccw_queue) { in dasd_int_handler()
1880 list_for_each_safe(l, n, &device->ccw_queue) { in __dasd_device_recovery()
1900 list_for_each_safe(l, n, &device->ccw_queue) { in __dasd_device_process_ccw_queue()
1981 if (list_empty(&device->ccw_queue)) in __dasd_device_check_expire()
1983 cqr = list_entry(device->ccw_queue.next, struct dasd_ccw_req, devlist); in __dasd_device_check_expire()
2049 if (list_empty(&device->ccw_queue)) in __dasd_device_start_head()
2051 cqr = list_entry(device->ccw_queue.next, struct dasd_ccw_req, devlist); in __dasd_device_start_head()
2116 list_for_each_entry_safe(cqr, n, &device->ccw_queue, devlist) { in dasd_flush_device_queue()
2224 list_add(&cqr->devlist, &device->ccw_queue); in dasd_add_request_head()
2243 list_add_tail(&cqr->devlist, &device->ccw_queue); in dasd_add_request_tail()
2320 struct list_head ccw_queue; in _dasd_sleep_on() local
2323 INIT_LIST_HEAD(&ccw_queue); in _dasd_sleep_on()
2326 list_add(&maincqr->blocklist, &ccw_queue); in _dasd_sleep_on()
2328 cqr = list_first_entry(&ccw_queue, in _dasd_sleep_on()
2408 static inline int _wait_for_wakeup_queue(struct list_head *ccw_queue) in _wait_for_wakeup_queue() argument
2412 list_for_each_entry(cqr, ccw_queue, blocklist) { in _wait_for_wakeup_queue()
2420 static int _dasd_sleep_on_queue(struct list_head *ccw_queue, int interruptible) in _dasd_sleep_on_queue() argument
2428 list_for_each_entry_safe(cqr, n, ccw_queue, blocklist) { in _dasd_sleep_on_queue()
2466 wait_event(generic_waitq, _wait_for_wakeup_queue(ccw_queue)); in _dasd_sleep_on_queue()
2469 list_for_each_entry_safe(cqr, n, ccw_queue, blocklist) { in _dasd_sleep_on_queue()
2519 int dasd_sleep_on_queue(struct list_head *ccw_queue) in dasd_sleep_on_queue() argument
2521 return _dasd_sleep_on_queue(ccw_queue, 0); in dasd_sleep_on_queue()
2528 int dasd_sleep_on_queue_interruptible(struct list_head *ccw_queue) in dasd_sleep_on_queue_interruptible() argument
2530 return _dasd_sleep_on_queue(ccw_queue, 1); in dasd_sleep_on_queue_interruptible()
2555 if (list_empty(&device->ccw_queue)) in _dasd_term_running_cqr()
2557 cqr = list_entry(device->ccw_queue.next, struct dasd_ccw_req, devlist); in _dasd_term_running_cqr()
2594 list_add(&cqr->devlist, device->ccw_queue.next); in dasd_sleep_on_immediatly()
2801 list_for_each_safe(l, n, &block->ccw_queue) { in __dasd_process_block_ccw_queue()
2861 if (list_empty(&block->ccw_queue)) in __dasd_block_start_head()
2867 list_for_each_entry(cqr, &block->ccw_queue, blocklist) { in __dasd_block_start_head()
2978 list_for_each_entry_safe(cqr, n, &block->ccw_queue, blocklist) { in _dasd_requests_to_flushqueue()
3135 list_add_tail(&cqr->blocklist, &block->ccw_queue); in do_dasd_request()
3189 &block->ccw_queue, blocklist) { in dasd_times_out()
3703 list_for_each_entry(cqr, &device->ccw_queue, devlist) in dasd_generic_last_path_gone()