Lines Matching defs:ccw_queue
123 INIT_LIST_HEAD(&device->ccw_queue);
163 INIT_LIST_HEAD(&block->ccw_queue);
356 return list_empty(&device->ccw_queue) &&
357 list_empty(&device->block->ccw_queue);
359 return list_empty(&device->ccw_queue);
648 list_for_each(l, &block->ccw_queue)
679 list_for_each(l, &device->ccw_queue)
1756 list_add(&fcqr->devlist, &device->ccw_queue);
1787 if (cqr->devlist.next != &device->ccw_queue) {
1869 list_for_each_safe(l, n, &device->ccw_queue) {
1889 list_for_each_safe(l, n, &device->ccw_queue) {
1975 if (list_empty(&device->ccw_queue))
1977 cqr = list_entry(device->ccw_queue.next, struct dasd_ccw_req, devlist);
2045 if (list_empty(&device->ccw_queue))
2047 cqr = list_entry(device->ccw_queue.next, struct dasd_ccw_req, devlist);
2112 list_for_each_entry_safe(cqr, n, &device->ccw_queue, devlist) {
2210 * Queue a request to the head of the device ccw_queue.
2221 list_add(&cqr->devlist, &device->ccw_queue);
2229 * Queue a request to the tail of the device ccw_queue.
2240 list_add_tail(&cqr->devlist, &device->ccw_queue);
2317 struct list_head ccw_queue;
2320 INIT_LIST_HEAD(&ccw_queue);
2323 list_add(&maincqr->blocklist, &ccw_queue);
2325 cqr = list_first_entry(&ccw_queue,
2405 static inline int _wait_for_wakeup_queue(struct list_head *ccw_queue)
2409 list_for_each_entry(cqr, ccw_queue, blocklist) {
2417 static int _dasd_sleep_on_queue(struct list_head *ccw_queue, int interruptible)
2425 list_for_each_entry_safe(cqr, n, ccw_queue, blocklist) {
2463 wait_event(generic_waitq, _wait_for_wakeup_queue(ccw_queue));
2466 list_for_each_entry_safe(cqr, n, ccw_queue, blocklist) {
2501 * Queue a request to the tail of the device ccw_queue and wait for
2511 * Start requests from a ccw_queue and wait for their completion.
2513 int dasd_sleep_on_queue(struct list_head *ccw_queue)
2515 return _dasd_sleep_on_queue(ccw_queue, 0);
2520 * Start requests from a ccw_queue and wait interruptible for their completion.
2522 int dasd_sleep_on_queue_interruptible(struct list_head *ccw_queue)
2524 return _dasd_sleep_on_queue(ccw_queue, 1);
2529 * Queue a request to the tail of the device ccw_queue and wait
2549 if (list_empty(&device->ccw_queue))
2551 cqr = list_entry(device->ccw_queue.next, struct dasd_ccw_req, devlist);
2588 list_add(&cqr->devlist, device->ccw_queue.next);
2796 list_for_each_safe(l, n, &block->ccw_queue) {
2856 if (list_empty(&block->ccw_queue))
2862 list_for_each_entry(cqr, &block->ccw_queue, blocklist) {
2973 list_for_each_entry_safe(cqr, n, &block->ccw_queue, blocklist) {
3130 list_add_tail(&cqr->blocklist, &block->ccw_queue);
3184 &block->ccw_queue, blocklist) {
3698 list_for_each_entry(cqr, &device->ccw_queue, devlist)