tag | line | file | source code |
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 | 172 | drivers/net/eql.c | static inline int eql_number_slaves(slave_queue_t *queue); /* */ |
queue | 174 | drivers/net/eql.c | static inline int eql_is_empty(slave_queue_t *queue); /* */ |
queue | 175 | drivers/net/eql.c | static inline int eql_is_full(slave_queue_t *queue); /* */ |
queue | 178 | drivers/net/eql.c | static void eql_delete_slave_queue(slave_queue_t *queue); /* */ |
queue | 180 | drivers/net/eql.c | static int eql_insert_slave(slave_queue_t *queue, slave_t *slave); /* */ |
queue | 181 | drivers/net/eql.c | static slave_t *eql_remove_slave(slave_queue_t *queue, slave_t *slave); /* */ |
queue | 184 | drivers/net/eql.c | static int eql_remove_slave_dev(slave_queue_t *queue, struct device *dev); /* */ |
queue | 186 | drivers/net/eql.c | static inline struct device *eql_best_slave_dev(slave_queue_t *queue); /* */ |
queue | 187 | drivers/net/eql.c | static inline slave_t *eql_best_slave(slave_queue_t *queue); /* */ |
queue | 188 | drivers/net/eql.c | static inline slave_t *eql_first_slave(slave_queue_t *queue); /* */ |
queue | 189 | drivers/net/eql.c | static inline slave_t *eql_next_slave(slave_queue_t *queue, slave_t *slave); /* */ |
queue | 191 | drivers/net/eql.c | static inline void eql_set_best_slave(slave_queue_t *queue, slave_t *slave); /* */ |
queue | 192 | drivers/net/eql.c | static inline void eql_schedule_slaves(slave_queue_t *queue); /* */ |
queue | 194 | drivers/net/eql.c | static slave_t *eql_find_slave_dev(slave_queue_t *queue, struct device *dev); /* */ |
queue | 285 | drivers/net/eql.c | eql->queue = new_queue; |
queue | 286 | drivers/net/eql.c | eql->queue->lock = 0; |
queue | 317 | drivers/net/eql.c | eql_delete_slave_queue (eql->queue); |
queue | 367 | drivers/net/eql.c | eql_schedule_slaves (eql->queue); |
queue | 369 | drivers/net/eql.c | slave_dev = eql_best_slave_dev (eql->queue); |
queue | 370 | drivers/net/eql.c | slave = eql_best_slave (eql->queue); |
queue | 377 | drivers/net/eql.c | dev->name, eql_number_slaves (eql->queue), skb->len, |
queue | 469 | drivers/net/eql.c | eql_insert_slave (eql->queue, s); |
queue | 508 | drivers/net/eql.c | eql_remove_slave_dev (eql->queue, slave_dev); |
queue | 541 | drivers/net/eql.c | slave = eql_find_slave_dev (eql->queue, slave_dev); |
queue | 582 | drivers/net/eql.c | slave = eql_find_slave_dev (eql->queue, slave_dev); |
queue | 726 | drivers/net/eql.c | eql_number_slaves(slave_queue_t *queue) |
queue | 728 | drivers/net/eql.c | return queue->num_slaves; |
queue | 734 | drivers/net/eql.c | eql_is_empty(slave_queue_t *queue) |
queue | 736 | drivers/net/eql.c | if (eql_number_slaves (queue) == 0) |
queue | 744 | drivers/net/eql.c | eql_is_full(slave_queue_t *queue) |
queue | 746 | drivers/net/eql.c | equalizer_t *eql = (equalizer_t *) queue->master_dev->priv; |
queue | 748 | drivers/net/eql.c | if (eql_number_slaves (queue) == eql->max_slaves) |
queue | 758 | drivers/net/eql.c | slave_queue_t *queue; |
queue | 762 | drivers/net/eql.c | queue = (slave_queue_t *) kmalloc (sizeof (slave_queue_t), GFP_KERNEL); |
queue | 763 | drivers/net/eql.c | if (queue == NULL) |
queue | 765 | drivers/net/eql.c | memset (queue, 0, sizeof (slave_queue_t)); |
queue | 775 | drivers/net/eql.c | queue->head = head_slave; |
queue | 776 | drivers/net/eql.c | queue->num_slaves = 0; |
queue | 777 | drivers/net/eql.c | queue->master_dev = dev; |
queue | 785 | drivers/net/eql.c | kfree (queue); |
queue | 788 | drivers/net/eql.c | return queue; |
queue | 794 | drivers/net/eql.c | eql_delete_slave_queue(slave_queue_t *queue) |
queue | 801 | drivers/net/eql.c | while ( ! eql_is_empty (queue) ) |
queue | 803 | drivers/net/eql.c | zapped = eql_remove_slave (queue, queue->head->next); |
queue | 806 | drivers/net/eql.c | kfree (queue->head->next); |
queue | 807 | drivers/net/eql.c | kfree (queue->head); |
queue | 808 | drivers/net/eql.c | kfree (queue); |
queue | 814 | drivers/net/eql.c | eql_insert_slave(slave_queue_t *queue, slave_t *slave) |
queue | 818 | drivers/net/eql.c | if ( ! eql_is_full (queue) ) |
queue | 822 | drivers/net/eql.c | duplicate_slave = eql_find_slave_dev (queue, slave->dev); |
queue | 828 | drivers/net/eql.c | eql_delete_slave (eql_remove_slave (queue, duplicate_slave)); |
queue | 831 | drivers/net/eql.c | slave->next = queue->head->next; |
queue | 832 | drivers/net/eql.c | queue->head->next = slave; |
queue | 833 | drivers/net/eql.c | queue->num_slaves++; |
queue | 846 | drivers/net/eql.c | eql_remove_slave(slave_queue_t *queue, slave_t *slave) |
queue | 853 | drivers/net/eql.c | prev = queue->head; |
queue | 854 | drivers/net/eql.c | curr = queue->head->next; |
queue | 866 | drivers/net/eql.c | queue->num_slaves--; |
queue | 880 | drivers/net/eql.c | eql_insert_slave_dev(slave_queue_t *queue, struct device *dev) |
queue | 886 | drivers/net/eql.c | if ( ! eql_is_full (queue) ) |
queue | 893 | drivers/net/eql.c | slave->next = queue->head->next; |
queue | 894 | drivers/net/eql.c | queue->head->next = slave; |
queue | 906 | drivers/net/eql.c | eql_remove_slave_dev(slave_queue_t *queue, struct device *dev) |
queue | 912 | drivers/net/eql.c | target = eql_find_slave_dev (queue, dev); |
queue | 918 | drivers/net/eql.c | prev = queue->head; |
queue | 926 | drivers/net/eql.c | queue->num_slaves--; |
queue | 939 | drivers/net/eql.c | eql_best_slave_dev(slave_queue_t *queue) |
queue | 941 | drivers/net/eql.c | if (queue->best_slave != 0) |
queue | 943 | drivers/net/eql.c | if (queue->best_slave->dev != 0) |
queue | 944 | drivers/net/eql.c | return queue->best_slave->dev; |
queue | 955 | drivers/net/eql.c | eql_best_slave(slave_queue_t *queue) |
queue | 957 | drivers/net/eql.c | return queue->best_slave; |
queue | 962 | drivers/net/eql.c | eql_schedule_slaves(slave_queue_t *queue) |
queue | 964 | drivers/net/eql.c | struct device *master_dev = queue->master_dev; |
queue | 971 | drivers/net/eql.c | master_dev->name, eql_number_slaves (queue)); |
queue | 974 | drivers/net/eql.c | if ( eql_is_empty (queue) ) |
queue | 977 | drivers/net/eql.c | eql_set_best_slave (queue, (slave_t *) 0); |
queue | 988 | drivers/net/eql.c | for (i = 1, slave = eql_first_slave (queue); |
queue | 989 | drivers/net/eql.c | i <= eql_number_slaves (queue); |
queue | 990 | drivers/net/eql.c | i++, slave = eql_next_slave (queue, slave)) |
queue | 1033 | drivers/net/eql.c | eql_set_best_slave (queue, best_slave); |
queue | 1039 | drivers/net/eql.c | eql_delete_slave (eql_remove_slave (queue, slave_corpse)); |
queue | 1048 | drivers/net/eql.c | eql_find_slave_dev(slave_queue_t *queue, struct device *dev) |
queue | 1052 | drivers/net/eql.c | slave = eql_first_slave(queue); |
queue | 1072 | drivers/net/eql.c | eql_first_slave(slave_queue_t *queue) |
queue | 1074 | drivers/net/eql.c | return queue->head->next; |
queue | 1080 | drivers/net/eql.c | eql_next_slave(slave_queue_t *queue, slave_t *slave) |
queue | 1088 | drivers/net/eql.c | eql_set_best_slave(slave_queue_t *queue, slave_t *slave) |
queue | 1090 | drivers/net/eql.c | queue->best_slave = slave; |
queue | 1097 | drivers/net/eql.c | eql_lock_slave_queue(slave_queue_t *queue) |
queue | 1101 | drivers/net/eql.c | printk ("eql: lock == %d\n", queue->lock); |
queue | 1102 | drivers/net/eql.c | if (queue->lock) |
queue | 1107 | drivers/net/eql.c | queue->lock = 1; |
queue | 1109 | drivers/net/eql.c | queue->lock = 1; |
queue | 1115 | drivers/net/eql.c | eql_unlock_slave_queue(slave_queue_t *queue) |
queue | 1119 | drivers/net/eql.c | if (queue->lock != 0) |
queue | 1121 | drivers/net/eql.c | queue->lock = 0; |
queue | 1131 | drivers/net/eql.c | eql_is_locked_slave_queue(slave_queue_t *queue) |
queue | 1133 | drivers/net/eql.c | return test_bit(1, (void *) &queue->lock); |
queue | 1145 | drivers/net/eql.c | if ( ! eql_is_empty (eql->queue) ) |
queue | 1149 | drivers/net/eql.c | for (i = 1, slave = eql_first_slave (eql->queue); |
queue | 1150 | drivers/net/eql.c | i <= eql_number_slaves (eql->queue); |
queue | 1151 | drivers/net/eql.c | i++, slave = eql_next_slave (eql->queue, slave)) |
queue | 1174 | drivers/net/eql.c | eql_delete_slave (eql_remove_slave (eql->queue, slave_corpse)); |
queue | 54 | drivers/sound/midibuf.c | unsigned char queue[MAX_QUEUE_SIZE]; |
queue | 85 | drivers/sound/midibuf.c | q->queue[q->tail] = (data); \ |
queue | 95 | drivers/sound/midibuf.c | data = q->queue[q->head]; \ |
queue | 178 | 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 | 439 | drivers/sound/sequencer.c | memcpy (&queue[qtail * EV_SZ], note, EV_SZ); |
queue | 1020 | drivers/sound/sequencer.c | if ((action = play_event (&queue[this_one * EV_SZ]))) |
queue | 2067 | drivers/sound/sequencer.c | queue = (unsigned char *) (sound_mem_blocks[sound_num_blocks] = kmalloc (SEQ_MAX_QUEUE * EV_SZ, GFP_KERNEL)); |
queue | 56 | include/linux/if_eql.h | slave_queue_t *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); |
queue | 122 | mm/page_alloc.c | do { struct mem_list * queue = free_area_list+order; \ |
queue | 124 | mm/page_alloc.c | do { struct mem_list *prev = queue, *ret; \ |
queue | 125 | mm/page_alloc.c | while (queue != (ret = prev->next)) { \ |
queue | 136 | mm/page_alloc.c | new_order++; queue++; \ |