Lines Matching refs:ccw_queue

120 	INIT_LIST_HEAD(&device->ccw_queue);  in dasd_alloc_device()
160 INIT_LIST_HEAD(&block->ccw_queue); in dasd_alloc_block()
371 return list_empty(&device->ccw_queue) && in _wait_for_empty_queues()
372 list_empty(&device->block->ccw_queue); in _wait_for_empty_queues()
374 return list_empty(&device->ccw_queue); in _wait_for_empty_queues()
665 list_for_each(l, &block->ccw_queue) in dasd_profile_start()
696 list_for_each(l, &device->ccw_queue) in dasd_profile_start()
1765 list_add(&fcqr->devlist, &device->ccw_queue); in dasd_int_handler()
1796 if (cqr->devlist.next != &device->ccw_queue) { in dasd_int_handler()
1878 list_for_each_safe(l, n, &device->ccw_queue) { in __dasd_device_recovery()
1898 list_for_each_safe(l, n, &device->ccw_queue) { in __dasd_device_process_ccw_queue()
1979 if (list_empty(&device->ccw_queue)) in __dasd_device_check_expire()
1981 cqr = list_entry(device->ccw_queue.next, struct dasd_ccw_req, devlist); in __dasd_device_check_expire()
2047 if (list_empty(&device->ccw_queue)) in __dasd_device_start_head()
2049 cqr = list_entry(device->ccw_queue.next, struct dasd_ccw_req, devlist); in __dasd_device_start_head()
2114 list_for_each_entry_safe(cqr, n, &device->ccw_queue, devlist) { in dasd_flush_device_queue()
2222 list_add(&cqr->devlist, &device->ccw_queue); in dasd_add_request_head()
2241 list_add_tail(&cqr->devlist, &device->ccw_queue); in dasd_add_request_tail()
2318 struct list_head ccw_queue; in _dasd_sleep_on() local
2321 INIT_LIST_HEAD(&ccw_queue); in _dasd_sleep_on()
2324 list_add(&maincqr->blocklist, &ccw_queue); in _dasd_sleep_on()
2326 cqr = list_first_entry(&ccw_queue, in _dasd_sleep_on()
2406 static inline int _wait_for_wakeup_queue(struct list_head *ccw_queue) in _wait_for_wakeup_queue() argument
2410 list_for_each_entry(cqr, ccw_queue, blocklist) { in _wait_for_wakeup_queue()
2418 static int _dasd_sleep_on_queue(struct list_head *ccw_queue, int interruptible) in _dasd_sleep_on_queue() argument
2426 list_for_each_entry_safe(cqr, n, ccw_queue, blocklist) { in _dasd_sleep_on_queue()
2464 wait_event(generic_waitq, _wait_for_wakeup_queue(ccw_queue)); in _dasd_sleep_on_queue()
2467 list_for_each_entry_safe(cqr, n, ccw_queue, blocklist) { in _dasd_sleep_on_queue()
2517 int dasd_sleep_on_queue(struct list_head *ccw_queue) in dasd_sleep_on_queue() argument
2519 return _dasd_sleep_on_queue(ccw_queue, 0); in dasd_sleep_on_queue()
2526 int dasd_sleep_on_queue_interruptible(struct list_head *ccw_queue) in dasd_sleep_on_queue_interruptible() argument
2528 return _dasd_sleep_on_queue(ccw_queue, 1); in dasd_sleep_on_queue_interruptible()
2553 if (list_empty(&device->ccw_queue)) in _dasd_term_running_cqr()
2555 cqr = list_entry(device->ccw_queue.next, struct dasd_ccw_req, devlist); in _dasd_term_running_cqr()
2592 list_add(&cqr->devlist, device->ccw_queue.next); in dasd_sleep_on_immediatly()
2799 list_for_each_safe(l, n, &block->ccw_queue) { in __dasd_process_block_ccw_queue()
2859 if (list_empty(&block->ccw_queue)) in __dasd_block_start_head()
2865 list_for_each_entry(cqr, &block->ccw_queue, blocklist) { in __dasd_block_start_head()
2976 list_for_each_entry_safe(cqr, n, &block->ccw_queue, blocklist) { in _dasd_requests_to_flushqueue()
3133 list_add_tail(&cqr->blocklist, &block->ccw_queue); in do_dasd_request()
3187 &block->ccw_queue, blocklist) { in dasd_times_out()
3701 list_for_each_entry(cqr, &device->ccw_queue, devlist) in dasd_generic_last_path_gone()