Home
last modified time | relevance | path

Searched refs:queue_head (Results 1 – 23 of 23) sorted by relevance

/linux-2.4.37.9/drivers/block/
Delevator.c83 struct list_head *entry = &q->queue_head; in elevator_linus_merge()
101 if (!*req && bh_rq_in_between(bh, __rq, &q->queue_head) && !backmerge_only) in elevator_linus_merge()
127 while ((entry = entry->next) != &q->queue_head) { in elevator_linus_merge()
153 if (list_empty(&q->queue_head)) in elevator_noop_merge()
156 entry = &q->queue_head; in elevator_noop_merge()
177 *req = blkdev_entry_to_request(q->queue_head.prev); in elevator_noop_merge()
Dnbd.c241 list_for_each(tmp, &lo->queue_head) { in nbd_find_request()
336 if (!list_empty(&lo->queue_head)) { in nbd_clear_que()
337 req = list_entry(lo->queue_head.next, struct request, queue); in nbd_clear_que()
400 list_add_tail(&req->queue, &lo->queue_head); in do_nbd_request()
475 if (!list_empty(&lo->queue_head)) { in nbd_ioctl()
558 dev, lo->queue_head.next, lo->queue_head.prev, requests_in, requests_out); in nbd_ioctl()
623 INIT_LIST_HEAD(&nbd_dev[i].queue_head); in nbd_init()
Dsx8.c667 list_add(&rq->queue, &q->queue_head); in carm_insert_special()
669 list_add_tail(&rq->queue, &q->queue_head); in carm_insert_special()
1037 struct list_head *queue_head = &q->queue_head; in carm_oob_tasklet() local
1041 if (q->plugged || list_empty(queue_head)) in carm_oob_tasklet()
1049 if (list_empty(queue_head)) in carm_oob_tasklet()
1052 rq = blkdev_entry_next_request(queue_head); in carm_oob_tasklet()
1113 struct list_head *queue_head = &q->queue_head; in carm_rw_tasklet() local
1117 if (q->plugged || list_empty(queue_head)) in carm_rw_tasklet()
1125 if (list_empty(queue_head)) in carm_rw_tasklet()
1128 rq = blkdev_entry_next_request(queue_head); in carm_rw_tasklet()
Dll_rw_blk.c367 if (!list_empty(&q->queue_head) || q->plugged) in generic_plug_device()
381 if (!list_empty(&q->queue_head)) in __generic_unplug_device()
518 INIT_LIST_HEAD(&q->queue_head); in blk_init_queue()
865 if (!q->plugged && q->head_active && insert_here == &q->queue_head) { in add_request()
972 if (&req->queue == q->queue_head.prev) in attempt_back_merge()
1044 head = &q->queue_head; in __make_request()
1140 head = &q->queue_head; in __make_request()
Dcpqarray.c989 struct list_head * queue_head = &q->queue_head; in do_ida_request() local
999 if (list_empty(queue_head)) in do_ida_request()
1002 creq = blkdev_entry_next_request(queue_head); in do_ida_request()
Dcciss.c2432 struct list_head *queue_head = &q->queue_head; in do_cciss_request() local
2442 if (list_empty(queue_head)) in do_cciss_request()
2445 creq = blkdev_entry_next_request(queue_head); in do_cciss_request()
DDAC960.c2976 RequestQueueHead = &RequestQueue->queue_head; in DAC960_ProcessRequest()
/linux-2.4.37.9/drivers/scsi/
Dscsi_lib.c90 list_add(&rq->queue, &q->queue_head); in __scsi_insert_special()
92 list_add_tail(&rq->queue, &q->queue_head); in __scsi_insert_special()
265 list_add(&SCpnt->request.queue, &q->queue_head); in scsi_queue_next_request()
284 && list_empty(&q->queue_head) in scsi_queue_next_request()
934 if (list_empty(&q->queue_head)) in scsi_request_fn()
941 req = blkdev_entry_next_request(&q->queue_head); in scsi_request_fn()
1064 list_add(&SCpnt->request.queue, &q->queue_head); in scsi_request_fn()
Dscsi.c2593 struct list_head * queue_head; in scsi_dump_status() local
2595 queue_head = &blk_dev[i].request_queue.queue_head; in scsi_dump_status()
2596 if (!list_empty(queue_head)) { in scsi_dump_status()
2601 entry = queue_head->next; in scsi_dump_status()
2610 } while ((entry = entry->next) != queue_head); in scsi_dump_status()
/linux-2.4.37.9/drivers/ide/
Dide-io.c808 rq = blkdev_entry_next_request(&drive->queue.queue_head); in ide_do_request()
1291 struct list_head *queue_head = &q->queue_head; in ide_do_drive_cmd() local
1309 queue_head = queue_head->prev; in ide_do_drive_cmd()
1311 queue_head = queue_head->next; in ide_do_drive_cmd()
1313 list_add(&rq->queue, queue_head); in ide_do_drive_cmd()
Dide-taskfile.c1357 struct list_head *queue_head = &drive->queue.queue_head; in ide_diag_taskfile() local
1402 queue_head = queue_head->prev; in ide_diag_taskfile()
1403 list_add(&rq->queue, queue_head); in ide_diag_taskfile()
Dide-cd.c1379 if (entry == &drive->queue.queue_head) in cdrom_attempt_remerge()
/linux-2.4.37.9/include/linux/
Dnbd.h44 struct list_head queue_head; /* Requests are added here... */ member
Dblkdev.h109 struct list_head queue_head; member
164 #define blk_queue_empty(q) list_empty(&(q)->queue_head)
Dblk.h338 #define CURRENT blkdev_entry_next_request(&blk_dev[MAJOR_NR].request_queue.queue_head)
341 #define QUEUE_EMPTY list_empty(&blk_dev[MAJOR_NR].request_queue.queue_head)
/linux-2.4.37.9/drivers/s390/char/
Dtapedefs.h44 return blkdev_entry_next_request(&queue->queue_head); in tape_next_request()
Dtapeblock.c296 if (list_empty (&ti->request_queue.queue_head)) {
/linux-2.4.37.9/drivers/s390/block/
Ddasd_int.h129 return blkdev_entry_next_request(&queue->queue_head); in dasd_next_request()
Dxpram.c774 current_req = blkdev_entry_next_request (&queue->queue_head); in xpram_request()
Ddasd.c2130 (!list_empty (&queue->queue_head)) && in dasd_process_queues()
3066 queue_head) { in do_dasd_ioctl()
4256 !list_empty(&q->queue_head) && in dasd_disable_blkdev()
/linux-2.4.37.9/drivers/message/i2o/
Di2o_block.c871 while (!list_empty(&q->queue_head)) { in i2ob_request()
877 req = blkdev_entry_next_request(&q->queue_head); in i2ob_request()
/linux-2.4.37.9/drivers/ide/ppc/
Dpmac.c1919 if (!list_empty(&drive->queue.queue_head)) in idepmac_wake_device()
2003 if (!list_empty(&drive->queue.queue_head)) in idepmac_wake_drive()
/linux-2.4.37.9/drivers/cdrom/
Dsbpcd.c4889 list_add(&req->queue, &req->q->queue_head); in sbpcd_end_request()