Lines Matching defs:ccw_queue

138 	INIT_LIST_HEAD(&device->ccw_queue);
179 INIT_LIST_HEAD(&block->ccw_queue);
385 return list_empty(&device->ccw_queue) &&
386 list_empty(&device->block->ccw_queue);
388 return list_empty(&device->ccw_queue);
714 list_for_each(l, &block->ccw_queue)
745 list_for_each(l, &device->ccw_queue)
1822 list_add(&fcqr->devlist, &device->ccw_queue);
1853 if (cqr->devlist.next != &device->ccw_queue) {
1935 list_for_each_safe(l, n, &device->ccw_queue) {
1955 list_for_each_safe(l, n, &device->ccw_queue) {
2031 if (list_empty(&device->ccw_queue))
2033 cqr = list_entry(device->ccw_queue.next, struct dasd_ccw_req, devlist);
2100 if (list_empty(&device->ccw_queue))
2102 cqr = list_entry(device->ccw_queue.next, struct dasd_ccw_req, devlist);
2160 list_for_each_entry_safe(cqr, n, &device->ccw_queue, devlist) {
2258 * Queue a request to the head of the device ccw_queue.
2269 list_add(&cqr->devlist, &device->ccw_queue);
2277 * Queue a request to the tail of the device ccw_queue.
2288 list_add_tail(&cqr->devlist, &device->ccw_queue);
2365 struct list_head ccw_queue;
2368 INIT_LIST_HEAD(&ccw_queue);
2371 list_add(&maincqr->blocklist, &ccw_queue);
2373 cqr = list_first_entry(&ccw_queue,
2453 static inline int _wait_for_wakeup_queue(struct list_head *ccw_queue)
2457 list_for_each_entry(cqr, ccw_queue, blocklist) {
2465 static int _dasd_sleep_on_queue(struct list_head *ccw_queue, int interruptible)
2473 list_for_each_entry_safe(cqr, n, ccw_queue, blocklist) {
2511 wait_event(generic_waitq, _wait_for_wakeup_queue(ccw_queue));
2514 list_for_each_entry_safe(cqr, n, ccw_queue, blocklist) {
2549 * Queue a request to the tail of the device ccw_queue and wait for
2559 * Start requests from a ccw_queue and wait for their completion.
2561 int dasd_sleep_on_queue(struct list_head *ccw_queue)
2563 return _dasd_sleep_on_queue(ccw_queue, 0);
2568 * Start requests from a ccw_queue and wait interruptible for their completion.
2570 int dasd_sleep_on_queue_interruptible(struct list_head *ccw_queue)
2572 return _dasd_sleep_on_queue(ccw_queue, 1);
2577 * Queue a request to the tail of the device ccw_queue and wait
2597 if (list_empty(&device->ccw_queue))
2599 cqr = list_entry(device->ccw_queue.next, struct dasd_ccw_req, devlist);
2636 list_add(&cqr->devlist, device->ccw_queue.next);
2839 list_for_each_safe(l, n, &block->ccw_queue) {
2901 if (list_empty(&block->ccw_queue))
2907 list_for_each_entry(cqr, &block->ccw_queue, blocklist) {
3018 list_for_each_entry_safe(cqr, n, &block->ccw_queue, blocklist) {
3175 list_add_tail(&cqr->blocklist, &block->ccw_queue);
3229 &block->ccw_queue, blocklist) {
3802 list_for_each_entry(cqr, &device->ccw_queue, devlist)