/linux-2.4.37.9/drivers/acorn/scsi/ |
D | queue.c | 58 int queue_initialise (Queue_t *queue) in queue_initialise() argument 63 spin_lock_init(&queue->queue_lock); in queue_initialise() 64 INIT_LIST_HEAD(&queue->head); in queue_initialise() 65 INIT_LIST_HEAD(&queue->free); in queue_initialise() 73 queue->alloc = q = kmalloc(sizeof(QE_t) * nqueues, GFP_KERNEL); in queue_initialise() 78 list_add(&q->list, &queue->free); in queue_initialise() 82 return queue->alloc != NULL; in queue_initialise() 90 void queue_free (Queue_t *queue) in queue_free() argument 92 if (!list_empty(&queue->head)) in queue_free() 93 printk(KERN_WARNING "freeing non-empty queue %p\n", queue); in queue_free() [all …]
|
D | queue.h | 25 extern int queue_initialise (Queue_t *queue); 32 extern void queue_free (Queue_t *queue); 40 extern Scsi_Cmnd *queue_remove (Queue_t *queue); 49 extern Scsi_Cmnd *queue_remove_exclude (Queue_t *queue, void *exclude); 51 #define queue_add_cmd_ordered(queue,SCpnt) \ argument 52 __queue_add(queue,SCpnt,(SCpnt)->cmnd[0] == REQUEST_SENSE) 53 #define queue_add_cmd_tail(queue,SCpnt) \ argument 54 __queue_add(queue,SCpnt,0) 63 extern int __queue_add(Queue_t *queue, Scsi_Cmnd *SCpnt, int head); 74 extern Scsi_Cmnd *queue_remove_tgtluntag (Queue_t *queue, int target, int lun, int tag); [all …]
|
D | Makefile | 14 export-objs := fas216.o queue.o msgqueue.o 18 obj-$(CONFIG_SCSI_ACORNSCSI_3) += acornscsi_mod.o queue.o msgqueue.o 19 obj-$(CONFIG_SCSI_ARXESCSI) += arxescsi.o fas216.o queue.o msgqueue.o 21 obj-$(CONFIG_SCSI_CUMANA_2) += cumana_2.o fas216.o queue.o msgqueue.o 24 obj-$(CONFIG_SCSI_POWERTECSCSI) += powertec.o fas216.o queue.o msgqueue.o 25 obj-$(CONFIG_SCSI_EESOXSCSI) += eesox.o fas216.o queue.o msgqueue.o
|
/linux-2.4.37.9/drivers/net/ |
D | eql.c | 164 static inline int eql_number_slaves(slave_queue_t *queue); /* */ 166 static inline int eql_is_empty(slave_queue_t *queue); /* */ 167 static inline int eql_is_full(slave_queue_t *queue); /* */ 170 static void eql_delete_slave_queue(slave_queue_t *queue); /* */ 172 static int eql_insert_slave(slave_queue_t *queue, slave_t *slave); /* */ 173 static slave_t *eql_remove_slave(slave_queue_t *queue, slave_t *slave); /* */ 176 static int eql_remove_slave_dev(slave_queue_t *queue, struct net_device *dev); /* */ 178 static inline struct net_device *eql_best_slave_dev(slave_queue_t *queue); /* */ 179 static inline slave_t *eql_best_slave(slave_queue_t *queue); /* */ 180 static inline slave_t *eql_first_slave(slave_queue_t *queue); /* */ [all …]
|
D | aironet4500.h | 454 awc_fid_queue_init(struct awc_fid_queue * queue){ in awc_fid_queue_init() argument 457 memset(queue,0, sizeof(struct awc_fid_queue)); in awc_fid_queue_init() 458 spin_lock_init(&queue->spinlock); in awc_fid_queue_init() 459 spin_lock_irqsave(&queue->spinlock,flags); in awc_fid_queue_init() 460 queue->head = NULL; in awc_fid_queue_init() 461 queue->tail = NULL; in awc_fid_queue_init() 462 queue->size = 0; in awc_fid_queue_init() 463 spin_unlock_irqrestore(&queue->spinlock,flags); in awc_fid_queue_init() 467 awc_fid_queue_push_tail( struct awc_fid_queue * queue, in awc_fid_queue_push_tail() argument 472 spin_lock_irqsave(&queue->spinlock,flags); in awc_fid_queue_push_tail() [all …]
|
/linux-2.4.37.9/net/irda/ |
D | irqueue.c | 41 static irda_queue_t *dequeue_general( irda_queue_t **queue, irda_queue_t* element); 84 irda_queue_t* queue; in hashbin_clear() local 94 queue = dequeue_first( (irda_queue_t**) &hashbin->hb_queue[i]); in hashbin_clear() 95 while (queue) { in hashbin_clear() 97 (*free_func)(queue); in hashbin_clear() 98 queue = dequeue_first( in hashbin_clear() 117 irda_queue_t* queue; in hashbin_delete() local 128 queue = dequeue_first((irda_queue_t**) &hashbin->hb_queue[i]); in hashbin_delete() 129 while (queue ) { in hashbin_delete() 131 (*free_func)(queue); in hashbin_delete() [all …]
|
/linux-2.4.37.9/drivers/acorn/char/ |
D | mouse_ps2.c | 33 static struct aux_queue *queue; /* Mouse data buffer. */ variable 93 result = queue->buf[queue->tail]; in get_from_queue() 94 queue->tail = (queue->tail + 1) & (AUX_BUF_SIZE-1); in get_from_queue() 112 int head = queue->head; in psaux_interrupt() 114 queue->buf[head] = val; in psaux_interrupt() 116 if (head != queue->tail) { in psaux_interrupt() 117 queue->head = head; in psaux_interrupt() 118 kill_fasync(&queue->fasync, SIGIO, POLL_IN); in psaux_interrupt() 119 wake_up_interruptible(&queue->proc_list); in psaux_interrupt() 126 return queue->head == queue->tail; in queue_empty() [all …]
|
/linux-2.4.37.9/net/sctp/ |
D | inqueue.c | 51 void sctp_inq_init(struct sctp_inq *queue) in sctp_inq_init() argument 53 skb_queue_head_init(&queue->in); in sctp_inq_init() 54 queue->in_progress = NULL; in sctp_inq_init() 57 INIT_LIST_HEAD(&queue->immediate.list); in sctp_inq_init() 58 queue->immediate.sync = 0; in sctp_inq_init() 59 queue->immediate.routine = NULL; in sctp_inq_init() 60 queue->immediate.data = NULL; in sctp_inq_init() 62 queue->malloced = 0; in sctp_inq_init() 66 void sctp_inq_free(struct sctp_inq *queue) in sctp_inq_free() argument 71 while ((chunk = (struct sctp_chunk *) skb_dequeue(&queue->in)) != NULL) in sctp_inq_free() [all …]
|
/linux-2.4.37.9/drivers/char/ |
D | qpmouse.c | 63 static struct qp_queue *queue; variable 72 result = queue->buf[queue->tail]; in get_from_queue() 73 queue->tail = (queue->tail + 1) & (QP_BUF_SIZE-1); in get_from_queue() 81 return queue->head == queue->tail; in queue_empty() 88 retval = fasync_helper(fd, filp, on, &queue->fasync); in fasync_qp() 127 int head = queue->head; in qp_interrupt() 128 int maxhead = (queue->tail-1) & (QP_BUF_SIZE-1); in qp_interrupt() 130 add_mouse_randomness(queue->buf[head] = inb(qp_data)); in qp_interrupt() 135 queue->head = head; in qp_interrupt() 136 kill_fasync(&queue->fasync, SIGIO, POLL_IN); in qp_interrupt() [all …]
|
D | mk712.c | 111 static struct mk712_queue *queue; /* mouse data buffer */ variable 119 result = queue->buf[queue->tail]; in get_from_queue() 120 queue->tail = (queue->tail + 1) & (MK712_BUF_SIZE-1); in get_from_queue() 127 return queue->head == queue->tail; in queue_empty() 134 retval = fasync_helper(fd, filp, on, &queue->fasync); in mk712_fasync() 142 int head = queue->head; in mk712_output_packet() 144 queue->buf[head] = data; in mk712_output_packet() 146 if (head != queue->tail) { in mk712_output_packet() 147 queue->head = head; in mk712_output_packet() 148 kill_fasync(&queue->fasync, SIGIO, POLL_IN); in mk712_output_packet() [all …]
|
D | qtronix.c | 104 static struct aux_queue *queue; /* Mouse data buffer. */ variable 440 queue->head = queue->tail = 0; /* Flush input queue */ in handle_mouse_event() 447 int head = queue->head; in handle_mouse_event() 449 queue->buf[head] = scancode; in handle_mouse_event() 451 if (head != queue->tail) { in handle_mouse_event() 452 queue->head = head; in handle_mouse_event() 453 kill_fasync(&queue->fasync, SIGIO, POLL_IN); in handle_mouse_event() 454 wake_up_interruptible(&queue->proc_list); in handle_mouse_event() 465 result = queue->buf[queue->tail]; in get_from_queue() 466 queue->tail = (queue->tail + 1) & (AUX_BUF_SIZE-1); in get_from_queue() [all …]
|
D | hp_psaux.c | 250 static struct aux_queue *queue; variable 258 retval = fasync_helper(fd, filp, on, &queue->fasync); in fasync_aux() 277 queue->head = queue->tail = 0; /* Flush input queue */ in handle_mouse_scancode() 283 int head = queue->head; in handle_mouse_scancode() 285 queue->buf[head] = scancode; in handle_mouse_scancode() 288 if (head != queue->tail) { in handle_mouse_scancode() 289 queue->head = head; in handle_mouse_scancode() 290 kill_fasync(&queue->fasync, SIGIO, POLL_IN); in handle_mouse_scancode() 291 wake_up_interruptible(&queue->proc_list); in handle_mouse_scancode() 298 return queue->head == queue->tail; in queue_empty() [all …]
|
D | pc_keyb.c | 104 static struct aux_queue *queue; /* Mouse data buffer. */ variable 420 if (queue) { /* Aux port detected */ in pckbd_pm_resume() 457 queue->head = queue->tail = 0; /* Flush input queue */ in handle_mouse_event() 465 int head = queue->head; in handle_mouse_event() 467 queue->buf[head] = scancode; in handle_mouse_event() 469 if (head != queue->tail) { in handle_mouse_event() 470 queue->head = head; in handle_mouse_event() 471 kill_fasync(&queue->fasync, SIGIO, POLL_IN); in handle_mouse_event() 472 wake_up_interruptible(&queue->proc_list); in handle_mouse_event() 1037 result = queue->buf[queue->tail]; in get_from_queue() [all …]
|
D | sonypi.c | 94 sonypi_device.queue.head = sonypi_device.queue.tail = 0; in sonypi_initq() 95 sonypi_device.queue.len = 0; in sonypi_initq() 96 sonypi_device.queue.s_lock = (spinlock_t)SPIN_LOCK_UNLOCKED; in sonypi_initq() 97 init_waitqueue_head(&sonypi_device.queue.proc_list); in sonypi_initq() 105 spin_lock_irqsave(&sonypi_device.queue.s_lock, flags); in sonypi_pullq() 106 if (!sonypi_device.queue.len) { in sonypi_pullq() 107 spin_unlock_irqrestore(&sonypi_device.queue.s_lock, flags); in sonypi_pullq() 110 result = sonypi_device.queue.buf[sonypi_device.queue.head]; in sonypi_pullq() 111 sonypi_device.queue.head++; in sonypi_pullq() 112 sonypi_device.queue.head &= (SONYPI_BUF_SIZE - 1); in sonypi_pullq() [all …]
|
/linux-2.4.37.9/drivers/scsi/aacraid/ |
D | comminit.c | 248 comm->queue[HostNormCmdQueue].base = queues; in aac_comm_init() 249 aac_queue_init(dev, &comm->queue[HostNormCmdQueue], headers, HOST_NORM_CMD_ENTRIES); in aac_comm_init() 254 comm->queue[HostHighCmdQueue].base = queues; in aac_comm_init() 255 aac_queue_init(dev, &comm->queue[HostHighCmdQueue], headers, HOST_HIGH_CMD_ENTRIES); in aac_comm_init() 261 comm->queue[AdapNormCmdQueue].base = queues; in aac_comm_init() 262 aac_queue_init(dev, &comm->queue[AdapNormCmdQueue], headers, ADAP_NORM_CMD_ENTRIES); in aac_comm_init() 268 comm->queue[AdapHighCmdQueue].base = queues; in aac_comm_init() 269 aac_queue_init(dev, &comm->queue[AdapHighCmdQueue], headers, ADAP_HIGH_CMD_ENTRIES); in aac_comm_init() 275 comm->queue[HostNormRespQueue].base = queues; in aac_comm_init() 276 aac_queue_init(dev, &comm->queue[HostNormRespQueue], headers, HOST_NORM_RESP_ENTRIES); in aac_comm_init() [all …]
|
/linux-2.4.37.9/drivers/isdn/ |
D | isdn_net.h | 80 lp = nd->queue; /* get lp on top of queue */ in isdn_net_get_locked_lp() 81 spin_lock_bh(&nd->queue->xmit_lock); in isdn_net_get_locked_lp() 82 while (isdn_net_lp_busy(nd->queue)) { in isdn_net_get_locked_lp() 83 spin_unlock_bh(&nd->queue->xmit_lock); in isdn_net_get_locked_lp() 84 nd->queue = nd->queue->next; in isdn_net_get_locked_lp() 85 if (nd->queue == lp) { /* not found -- should never happen */ in isdn_net_get_locked_lp() 89 spin_lock_bh(&nd->queue->xmit_lock); in isdn_net_get_locked_lp() 91 lp = nd->queue; in isdn_net_get_locked_lp() 92 nd->queue = nd->queue->next; in isdn_net_get_locked_lp() 108 lp = nd->queue; in isdn_net_add_to_bundle() [all …]
|
/linux-2.4.37.9/drivers/net/skfp/ |
D | hwmtm.c | 344 struct s_smt_tx_queue *queue ; local 352 queue = smc->hw.fp.tx[QUEUE_A0] ; 358 queue->tx_curr_put = queue->tx_curr_get = ds ; 360 queue->tx_free = HWM_ASYNC_TXD_COUNT ; 361 queue->tx_used = 0 ; 366 queue = smc->hw.fp.tx[QUEUE_S] ; 372 queue->tx_curr_put = queue->tx_curr_get = ds ; 373 queue->tx_free = HWM_SYNC_TXD_COUNT ; 374 queue->tx_used = 0 ; 382 struct s_smt_rx_queue *queue ; local [all …]
|
/linux-2.4.37.9/include/asm-s390/ |
D | queue.h | 14 typedef struct queue struct 16 struct queue *next; argument 17 } queue; typedef 19 typedef queue list; 23 queue *head; 24 queue *tail; 32 static __inline__ void enqueue_tail(qheader *qhead,queue *member) in enqueue_tail() 36 queue *tail=qhead->tail; in enqueue_tail() 48 static __inline__ queue *dequeue_head(qheader *qhead) in dequeue_head() 50 queue *head=qhead->head,*next_head; in dequeue_head() [all …]
|
/linux-2.4.37.9/include/asm-s390x/ |
D | queue.h | 14 typedef struct queue struct 16 struct queue *next; argument 17 } queue; typedef 19 typedef queue list; 23 queue *head; 24 queue *tail; 32 static __inline__ void enqueue_tail(qheader *qhead,queue *member) in enqueue_tail() 36 queue *tail=qhead->tail; in enqueue_tail() 48 static __inline__ queue *dequeue_head(qheader *qhead) in dequeue_head() 50 queue *head=qhead->head,*next_head; in dequeue_head() [all …]
|
/linux-2.4.37.9/drivers/s390/char/ |
D | tapedefs.h | 39 blk_dev[d_major].queue = d_queue_fn; \ 42 tape_next_request( request_queue_t *queue ) in tape_next_request() argument 44 return blkdev_entry_next_request(&queue->queue_head); in tape_next_request() 62 blk_dev[d_major].queue = d_queue_fn; \ 66 tape_next_request( request_queue_t *queue ) in tape_next_request() argument 68 return *queue; in tape_next_request()
|
/linux-2.4.37.9/drivers/media/video/ |
D | meye.c | 58 static inline void meye_initq(struct meye_queue *queue) { in meye_initq() argument 59 queue->head = queue->tail = 0; in meye_initq() 60 queue->len = 0; in meye_initq() 61 queue->s_lock = (spinlock_t)SPIN_LOCK_UNLOCKED; in meye_initq() 62 init_waitqueue_head(&queue->proc_list); in meye_initq() 66 static inline int meye_pullq(struct meye_queue *queue) { in meye_pullq() argument 70 spin_lock_irqsave(&queue->s_lock, flags); in meye_pullq() 71 if (!queue->len) { in meye_pullq() 72 spin_unlock_irqrestore(&queue->s_lock, flags); in meye_pullq() 75 result = queue->buf[queue->head]; in meye_pullq() [all …]
|
/linux-2.4.37.9/arch/arm/mm/ |
D | small_page.c | 53 struct page *queue; member 107 if (!order->queue) in __get_small_page() 111 page = order->queue; in __get_small_page() 129 if (!order->queue) { in __get_small_page() 135 add_page_to_queue(page, &order->queue); in __get_small_page() 139 page = order->queue; in __get_small_page() 176 add_page_to_queue(page, &order->queue); in __free_small_page()
|
/linux-2.4.37.9/drivers/sbus/char/ |
D | pcikbd.c | 878 static struct aux_queue *queue; variable 895 result = queue->buf[queue->tail]; in get_from_queue() 896 queue->tail = (queue->tail + 1) & (AUX_BUF_SIZE-1); in get_from_queue() 905 return queue->head == queue->tail; in queue_empty() 912 retval = fasync_helper(fd, filp, on, &queue->fasync); in aux_fasync() 1002 head = queue->head; in pcimouse_interrupt() 1003 maxhead = (queue->tail - 1) & (AUX_BUF_SIZE - 1); in pcimouse_interrupt() 1012 queue->buf[head] = val; in pcimouse_interrupt() 1018 queue->head = head; in pcimouse_interrupt() 1022 kill_fasync(&queue->fasync, SIGIO, POLL_IN); in pcimouse_interrupt() [all …]
|
/linux-2.4.37.9/net/sunrpc/ |
D | sched.c | 185 __rpc_add_wait_queue(struct rpc_wait_queue *queue, struct rpc_task *task) in __rpc_add_wait_queue() argument 187 if (task->tk_rpcwait == queue) in __rpc_add_wait_queue() 195 list_add(&task->tk_list, &queue->tasks); in __rpc_add_wait_queue() 197 list_add_tail(&task->tk_list, &queue->tasks); in __rpc_add_wait_queue() 198 task->tk_rpcwait = queue; in __rpc_add_wait_queue() 201 task->tk_pid, queue, rpc_qname(queue)); in __rpc_add_wait_queue() 224 struct rpc_wait_queue *queue = task->tk_rpcwait; in __rpc_remove_wait_queue() local 226 if (!queue) in __rpc_remove_wait_queue() 233 task->tk_pid, queue, rpc_qname(queue)); in __rpc_remove_wait_queue() 424 rpc_wake_up_next(struct rpc_wait_queue *queue) in rpc_wake_up_next() argument [all …]
|
/linux-2.4.37.9/net/sched/ |
D | Config.in | 13 tristate ' RED queue' CONFIG_NET_SCH_RED 14 tristate ' SFQ queue' CONFIG_NET_SCH_SFQ 15 tristate ' TEQL queue' CONFIG_NET_SCH_TEQL 16 tristate ' TBF queue' CONFIG_NET_SCH_TBF 17 tristate ' GRED queue' CONFIG_NET_SCH_GRED
|