tag | line | file | source code |
queue | 115 | drivers/block/linear.c | int queue, nblk; |
queue | 146 | drivers/block/linear.c | queue=tmp_dev - devices[minor]; |
queue | 158 | drivers/block/linear.c | pending[queue].rq_dev=tmp_dev->dev; |
queue | 159 | drivers/block/linear.c | pending[queue].cmd=req->cmd; |
queue | 160 | drivers/block/linear.c | pending[queue].sector=rblock << 1; |
queue | 161 | drivers/block/linear.c | pending[queue].nr_sectors=nblk << 1; |
queue | 162 | drivers/block/linear.c | pending[queue].current_nr_sectors=req->bh->b_size >> 9; |
queue | 163 | drivers/block/linear.c | pending[queue].bh=req->bh; |
queue | 164 | drivers/block/linear.c | pending[queue].bhtail=bh2; |
queue | 188 | drivers/block/raid0.c | int i, queue, blk_in_chunk, factor, chunk; |
queue | 224 | drivers/block/raid0.c | queue=tmp_dev - devices[minor]; |
queue | 241 | drivers/block/raid0.c | if (!pending[queue].bh) |
queue | 243 | drivers/block/raid0.c | pending[queue].rq_dev=tmp_dev->dev; |
queue | 244 | drivers/block/raid0.c | pending[queue].bhtail=pending[queue].bh=bh; |
queue | 245 | drivers/block/raid0.c | pending[queue].sector=rblock << 1; |
queue | 246 | drivers/block/raid0.c | pending[queue].cmd=req->cmd; |
queue | 247 | drivers/block/raid0.c | pending[queue].current_nr_sectors= |
queue | 248 | drivers/block/raid0.c | pending[queue].nr_sectors=bh->b_size >> 9; |
queue | 252 | drivers/block/raid0.c | pending[queue].bhtail->b_reqnext=bh; |
queue | 253 | drivers/block/raid0.c | pending[queue].bhtail=bh; |
queue | 254 | drivers/block/raid0.c | pending[queue].nr_sectors+=bh->b_size >> 9; |
queue | 119 | drivers/char/psaux.c | static struct aux_queue *queue; |
queue | 192 | drivers/char/psaux.c | result = queue->buf[queue->tail]; |
queue | 193 | drivers/char/psaux.c | queue->tail = (queue->tail + 1) & (AUX_BUF_SIZE-1); |
queue | 201 | drivers/char/psaux.c | return queue->head == queue->tail; |
queue | 213 | drivers/char/psaux.c | int head = queue->head; |
queue | 214 | drivers/char/psaux.c | int maxhead = (queue->tail-1) & (AUX_BUF_SIZE-1); |
queue | 219 | drivers/char/psaux.c | add_mouse_randomness(queue->buf[head] = inb(AUX_INPUT_PORT)); |
queue | 224 | drivers/char/psaux.c | queue->head = head; |
queue | 226 | drivers/char/psaux.c | if (queue->fasync) |
queue | 227 | drivers/char/psaux.c | kill_fasync(queue->fasync, SIGIO); |
queue | 228 | drivers/char/psaux.c | wake_up_interruptible(&queue->proc_list); |
queue | 239 | drivers/char/psaux.c | int head = queue->head; |
queue | 240 | drivers/char/psaux.c | int maxhead = (queue->tail-1) & (AUX_BUF_SIZE-1); |
queue | 242 | drivers/char/psaux.c | add_mouse_randomness(queue->buf[head] = inb(qp_data)); |
queue | 247 | drivers/char/psaux.c | queue->head = head; |
queue | 249 | drivers/char/psaux.c | if (queue->fasync) |
queue | 250 | drivers/char/psaux.c | kill_fasync(queue->fasync, SIGIO); |
queue | 251 | drivers/char/psaux.c | wake_up_interruptible(&queue->proc_list); |
queue | 292 | drivers/char/psaux.c | retval = fasync_helper(inode, filp, on, &queue->fasync); |
queue | 313 | drivers/char/psaux.c | queue->head = queue->tail = 0; /* Flush input queue */ |
queue | 355 | drivers/char/psaux.c | queue->head = queue->tail = 0; /* Flush input queue */ |
queue | 428 | drivers/char/psaux.c | add_wait_queue(&queue->proc_list, &wait); |
queue | 436 | drivers/char/psaux.c | remove_wait_queue(&queue->proc_list, &wait); |
queue | 460 | drivers/char/psaux.c | select_wait(&queue->proc_list, wait); |
queue | 510 | drivers/char/psaux.c | queue = (struct aux_queue *) kmalloc(sizeof(*queue), GFP_KERNEL); |
queue | 511 | drivers/char/psaux.c | memset(queue, 0, sizeof(*queue)); |
queue | 512 | drivers/char/psaux.c | queue->head = queue->tail = 0; |
queue | 513 | drivers/char/psaux.c | queue->proc_list = NULL; |
queue | 208 | drivers/char/scc.c | static struct mbuf * scc_enqueue_buffer(struct mbuf **queue, struct mbuf * buffer); |
queue | 209 | drivers/char/scc.c | static struct mbuf * scc_dequeue_buffer(struct mbuf **queue); |
queue | 350 | drivers/char/scc.c | scc_enqueue_buffer(struct mbuf **queue, struct mbuf * buffer) |
queue | 358 | drivers/char/scc.c | if (queue == NULLBUFP) /* called with illegal parameters, notify the user */ |
queue | 374 | drivers/char/scc.c | anchor = *queue; /* the anchor is the "start" of the chain */ |
queue | 378 | drivers/char/scc.c | *queue = buffer; /* new anchor */ |
queue | 406 | drivers/char/scc.c | return *queue; /* return "start" of chain */ |
queue | 414 | drivers/char/scc.c | scc_dequeue_buffer(struct mbuf **queue) |
queue | 422 | drivers/char/scc.c | if (queue == NULLBUFP) /* called with illegal parameter */ |
queue | 431 | drivers/char/scc.c | buffer = *queue; /* head of the chain */ |
queue | 456 | drivers/char/scc.c | *queue = buffer->next; /* new head of chain */ |
queue | 109 | drivers/isdn/icn/icn.c | icn_new_buf(pqueue ** queue, int length) |
queue | 114 | drivers/isdn/icn/icn.c | if ((p = *queue)) { |
queue | 122 | drivers/isdn/icn/icn.c | p = *queue = (pqueue *) kmalloc(sizeof(pqueue) + length, GFP_ATOMIC); |
queue | 135 | drivers/isdn/icn/icn.c | static void icn_free_queue(pqueue ** queue) |
queue | 140 | drivers/isdn/icn/icn.c | p = *queue; |
queue | 146 | drivers/isdn/icn/icn.c | *queue = (pqueue *) 0; |
queue | 98 | drivers/isdn/isdn_common.c | isdn_new_buf(pqueue ** queue, int length) |
queue | 103 | drivers/isdn/isdn_common.c | if ((p = *queue)) { |
queue | 111 | drivers/isdn/isdn_common.c | p = *queue = (pqueue *) kmalloc(sizeof(pqueue) + length, GFP_ATOMIC); |
queue | 123 | drivers/isdn/isdn_common.c | static void isdn_free_queue(pqueue ** queue) |
queue | 128 | drivers/isdn/isdn_common.c | p = *queue; |
queue | 134 | drivers/isdn/isdn_common.c | *queue = (pqueue *) 0; |
queue | 1787 | drivers/isdn/isdn_net.c | netdev->queue = &netdev->local; |
queue | 87 | drivers/isdn/isdn_ppp.c | if(lp->netdev->queue == lp) |
queue | 88 | drivers/isdn/isdn_ppp.c | lp->netdev->queue = lp->next; |
queue | 601 | drivers/isdn/isdn_ppp.c | for (min_sqno = 0, lpq = net_dev->queue;;) { |
queue | 605 | drivers/isdn/isdn_ppp.c | if (lpq == net_dev->queue) |
queue | 621 | drivers/isdn/isdn_ppp.c | for (lpq = net_dev->queue;;) { |
queue | 624 | drivers/isdn/isdn_ppp.c | if (lpq == net_dev->queue) |
queue | 793 | drivers/isdn/isdn_ppp.c | isdn_net_local *lp = nd->queue; |
queue | 852 | drivers/isdn/isdn_ppp.c | nd->queue = nd->queue->next; |
queue | 916 | drivers/isdn/isdn_ppp.c | lp = p->queue; |
queue | 922 | drivers/isdn/isdn_ppp.c | p->queue = nlp; |
queue | 111 | drivers/net/3c509.c | struct sk_buff *queue[SKB_QUEUE_SIZE]; |
queue | 408 | drivers/net/3c509.c | skb = lp->queue[lp->head]; |
queue | 454 | drivers/net/3c509.c | lp->queue[tail] = skb; |
queue | 176 | drivers/net/eql.c | static inline int eql_number_slaves(slave_queue_t *queue); /* */ |
queue | 178 | drivers/net/eql.c | static inline int eql_is_empty(slave_queue_t *queue); /* */ |
queue | 179 | drivers/net/eql.c | static inline int eql_is_full(slave_queue_t *queue); /* */ |
queue | 182 | drivers/net/eql.c | static void eql_delete_slave_queue(slave_queue_t *queue); /* */ |
queue | 184 | drivers/net/eql.c | static int eql_insert_slave(slave_queue_t *queue, slave_t *slave); /* */ |
queue | 185 | drivers/net/eql.c | static slave_t *eql_remove_slave(slave_queue_t *queue, slave_t *slave); /* */ |
queue | 188 | drivers/net/eql.c | static int eql_remove_slave_dev(slave_queue_t *queue, struct device *dev); /* */ |
queue | 190 | drivers/net/eql.c | static inline struct device *eql_best_slave_dev(slave_queue_t *queue); /* */ |
queue | 191 | drivers/net/eql.c | static inline slave_t *eql_best_slave(slave_queue_t *queue); /* */ |
queue | 192 | drivers/net/eql.c | static inline slave_t *eql_first_slave(slave_queue_t *queue); /* */ |
queue | 193 | drivers/net/eql.c | static inline slave_t *eql_next_slave(slave_queue_t *queue, slave_t *slave); /* */ |
queue | 195 | drivers/net/eql.c | static inline void eql_set_best_slave(slave_queue_t *queue, slave_t *slave); /* */ |
queue | 196 | drivers/net/eql.c | static inline void eql_schedule_slaves(slave_queue_t *queue); /* */ |
queue | 198 | drivers/net/eql.c | static slave_t *eql_find_slave_dev(slave_queue_t *queue, struct device *dev); /* */ |
queue | 295 | drivers/net/eql.c | eql->queue = new_queue; |
queue | 296 | drivers/net/eql.c | eql->queue->lock = 0; |
queue | 330 | drivers/net/eql.c | eql_delete_slave_queue (eql->queue); |
queue | 370 | drivers/net/eql.c | eql_schedule_slaves (eql->queue); |
queue | 372 | drivers/net/eql.c | slave_dev = eql_best_slave_dev (eql->queue); |
queue | 373 | drivers/net/eql.c | slave = eql_best_slave (eql->queue); |
queue | 380 | drivers/net/eql.c | dev->name, eql_number_slaves (eql->queue), skb->len, |
queue | 458 | drivers/net/eql.c | eql_insert_slave (eql->queue, s); |
queue | 489 | drivers/net/eql.c | eql_remove_slave_dev (eql->queue, slave_dev); |
queue | 518 | drivers/net/eql.c | slave = eql_find_slave_dev (eql->queue, slave_dev); |
queue | 557 | drivers/net/eql.c | slave = eql_find_slave_dev (eql->queue, slave_dev); |
queue | 680 | drivers/net/eql.c | static inline int eql_number_slaves(slave_queue_t *queue) |
queue | 682 | drivers/net/eql.c | return queue->num_slaves; |
queue | 685 | drivers/net/eql.c | static inline int eql_is_empty(slave_queue_t *queue) |
queue | 687 | drivers/net/eql.c | if (eql_number_slaves (queue) == 0) |
queue | 692 | drivers/net/eql.c | static inline int eql_is_full(slave_queue_t *queue) |
queue | 694 | drivers/net/eql.c | equalizer_t *eql = (equalizer_t *) queue->master_dev->priv; |
queue | 696 | drivers/net/eql.c | if (eql_number_slaves (queue) == eql->max_slaves) |
queue | 703 | drivers/net/eql.c | slave_queue_t *queue; |
queue | 707 | drivers/net/eql.c | queue = (slave_queue_t *) kmalloc (sizeof (slave_queue_t), GFP_KERNEL); |
queue | 708 | drivers/net/eql.c | if (queue == NULL) |
queue | 710 | drivers/net/eql.c | memset (queue, 0, sizeof (slave_queue_t)); |
queue | 719 | drivers/net/eql.c | queue->head = head_slave; |
queue | 720 | drivers/net/eql.c | queue->num_slaves = 0; |
queue | 721 | drivers/net/eql.c | queue->master_dev = dev; |
queue | 729 | drivers/net/eql.c | kfree (queue); |
queue | 732 | drivers/net/eql.c | return queue; |
queue | 736 | drivers/net/eql.c | static void eql_delete_slave_queue(slave_queue_t *queue) |
queue | 745 | drivers/net/eql.c | while ( ! eql_is_empty (queue) ) |
queue | 747 | drivers/net/eql.c | zapped = eql_remove_slave (queue, queue->head->next); |
queue | 750 | drivers/net/eql.c | kfree (queue->head->next); |
queue | 751 | drivers/net/eql.c | kfree (queue->head); |
queue | 752 | drivers/net/eql.c | kfree (queue); |
queue | 755 | drivers/net/eql.c | static int eql_insert_slave(slave_queue_t *queue, slave_t *slave) |
queue | 759 | drivers/net/eql.c | if ( ! eql_is_full (queue) ) |
queue | 762 | drivers/net/eql.c | duplicate_slave = eql_find_slave_dev (queue, slave->dev); |
queue | 767 | drivers/net/eql.c | eql_delete_slave (eql_remove_slave (queue, duplicate_slave)); |
queue | 769 | drivers/net/eql.c | slave->next = queue->head->next; |
queue | 770 | drivers/net/eql.c | queue->head->next = slave; |
queue | 771 | drivers/net/eql.c | queue->num_slaves++; |
queue | 780 | drivers/net/eql.c | static slave_t *eql_remove_slave(slave_queue_t *queue, slave_t *slave) |
queue | 787 | drivers/net/eql.c | prev = queue->head; |
queue | 788 | drivers/net/eql.c | curr = queue->head->next; |
queue | 800 | drivers/net/eql.c | queue->num_slaves--; |
queue | 810 | drivers/net/eql.c | static int eql_insert_slave_dev(slave_queue_t *queue, struct device *dev) |
queue | 815 | drivers/net/eql.c | if ( ! eql_is_full (queue) ) |
queue | 822 | drivers/net/eql.c | slave->next = queue->head->next; |
queue | 823 | drivers/net/eql.c | queue->head->next = slave; |
queue | 833 | drivers/net/eql.c | static int eql_remove_slave_dev(slave_queue_t *queue, struct device *dev) |
queue | 839 | drivers/net/eql.c | target = eql_find_slave_dev (queue, dev); |
queue | 844 | drivers/net/eql.c | prev = queue->head; |
queue | 852 | drivers/net/eql.c | queue->num_slaves--; |
queue | 861 | drivers/net/eql.c | static inline struct device *eql_best_slave_dev(slave_queue_t *queue) |
queue | 863 | drivers/net/eql.c | if (queue->best_slave != 0) |
queue | 865 | drivers/net/eql.c | if (queue->best_slave->dev != 0) |
queue | 866 | drivers/net/eql.c | return queue->best_slave->dev; |
queue | 875 | drivers/net/eql.c | static inline slave_t *eql_best_slave(slave_queue_t *queue) |
queue | 877 | drivers/net/eql.c | return queue->best_slave; |
queue | 880 | drivers/net/eql.c | static inline void eql_schedule_slaves(slave_queue_t *queue) |
queue | 882 | drivers/net/eql.c | struct device *master_dev = queue->master_dev; |
queue | 889 | drivers/net/eql.c | master_dev->name, eql_number_slaves (queue)); |
queue | 891 | drivers/net/eql.c | if ( eql_is_empty (queue) ) |
queue | 896 | drivers/net/eql.c | eql_set_best_slave (queue, (slave_t *) 0); |
queue | 909 | drivers/net/eql.c | for (i = 1, slave = eql_first_slave (queue); |
queue | 910 | drivers/net/eql.c | i <= eql_number_slaves (queue); |
queue | 911 | drivers/net/eql.c | i++, slave = eql_next_slave (queue, slave)) |
queue | 954 | drivers/net/eql.c | eql_set_best_slave (queue, best_slave); |
queue | 959 | drivers/net/eql.c | eql_delete_slave (eql_remove_slave (queue, slave_corpse)); |
queue | 965 | drivers/net/eql.c | static slave_t * eql_find_slave_dev(slave_queue_t *queue, struct device *dev) |
queue | 968 | drivers/net/eql.c | slave = eql_first_slave(queue); |
queue | 984 | drivers/net/eql.c | static inline slave_t *eql_first_slave(slave_queue_t *queue) |
queue | 986 | drivers/net/eql.c | return queue->head->next; |
queue | 990 | drivers/net/eql.c | static inline slave_t *eql_next_slave(slave_queue_t *queue, slave_t *slave) |
queue | 995 | drivers/net/eql.c | static inline void eql_set_best_slave(slave_queue_t *queue, slave_t *slave) |
queue | 997 | drivers/net/eql.c | queue->best_slave = slave; |
queue | 1001 | drivers/net/eql.c | static inline int eql_lock_slave_queue(slave_queue_t *queue) |
queue | 1005 | drivers/net/eql.c | printk ("eql: lock == %d\n", queue->lock); |
queue | 1006 | drivers/net/eql.c | if (queue->lock) |
queue | 1011 | drivers/net/eql.c | queue->lock = 1; |
queue | 1013 | drivers/net/eql.c | queue->lock = 1; |
queue | 1017 | drivers/net/eql.c | static inline int eql_unlock_slave_queue(slave_queue_t *queue) |
queue | 1021 | drivers/net/eql.c | if (queue->lock != 0) |
queue | 1023 | drivers/net/eql.c | queue->lock = 0; |
queue | 1031 | drivers/net/eql.c | static inline int eql_is_locked_slave_queue(slave_queue_t *queue) |
queue | 1033 | drivers/net/eql.c | return test_bit(1, (void *) &queue->lock); |
queue | 1043 | drivers/net/eql.c | if ( ! eql_is_empty (eql->queue) ) |
queue | 1046 | drivers/net/eql.c | for (i = 1, slave = eql_first_slave (eql->queue); |
queue | 1047 | drivers/net/eql.c | i <= eql_number_slaves (eql->queue); |
queue | 1048 | drivers/net/eql.c | i++, slave = eql_next_slave (eql->queue, slave)) |
queue | 1066 | drivers/net/eql.c | eql_delete_slave (eql_remove_slave (eql->queue, slave_corpse)); |
queue | 56 | drivers/sound/midibuf.c | unsigned char queue[MAX_QUEUE_SIZE]; |
queue | 87 | drivers/sound/midibuf.c | q->queue[q->tail] = (data); \ |
queue | 97 | drivers/sound/midibuf.c | data = q->queue[q->head]; \ |
queue | 180 | drivers/sound/midibuf.c | midi_out_buf[dev]->queue[midi_out_buf[dev]->head])) |
queue | 81 | drivers/sound/sequencer.c | static unsigned char *queue = NULL; |
queue | 424 | drivers/sound/sequencer.c | memcpy (&queue[qtail * EV_SZ], note, EV_SZ); |
queue | 1005 | drivers/sound/sequencer.c | if ((action = play_event (&queue[this_one * EV_SZ]))) |
queue | 2040 | drivers/sound/sequencer.c | queue = (unsigned char *) (sound_mem_blocks[sound_num_blocks] = kmalloc (SEQ_MAX_QUEUE * EV_SZ, GFP_KERNEL)); |
queue | 2043 | drivers/sound/sequencer.c | if (queue == NULL) |
queue | 2053 | drivers/sound/sequencer.c | if (queue == NULL) |
queue | 56 | include/linux/if_eql.h | slave_queue_t *queue; |
queue | 335 | include/linux/isdn.h | isdn_net_local *queue; |
queue | 625 | ipc/sem.c | struct sem_queue queue; |
queue | 627 | ipc/sem.c | queue.sma = sma; |
queue | 628 | ipc/sem.c | queue.sops = sops; |
queue | 629 | ipc/sem.c | queue.nsops = nsops; |
queue | 630 | ipc/sem.c | queue.undo = un; |
queue | 631 | ipc/sem.c | queue.pid = current->pid; |
queue | 632 | ipc/sem.c | queue.status = 0; |
queue | 633 | ipc/sem.c | insert_into_queue(sma,&queue); |
queue | 634 | ipc/sem.c | queue.sleeper = NULL; |
queue | 635 | ipc/sem.c | current->semsleeping = &queue; |
queue | 636 | ipc/sem.c | interruptible_sleep_on(&queue.sleeper); |
queue | 641 | ipc/sem.c | if (!queue.prev) { |
queue | 643 | ipc/sem.c | return queue.status; |
queue | 645 | ipc/sem.c | remove_from_queue(sma,&queue); |