Searched refs:head (Results 176 - 200 of 583) sorted by relevance

1234567891011>>

/drivers/gpu/drm/nouveau/
H A Dnouveau_vm.c172 list_for_each_entry(vpgd, &vm->pgd_list, head) {
211 list_for_each_entry(vpgd, &vm->pgd_list, head) {
367 list_add(&vpgd->head, &vm->pgd_list);
382 list_for_each_entry_safe(vpgd, tmp, &vm->pgd_list, head) {
385 list_del(&vpgd->head);
400 list_for_each_entry_safe(vpgd, tmp, &vm->pgd_list, head) {
H A Dnouveau_i2c.c282 list_add_tail(&port->head, &dev_priv->i2c_ports);
294 list_for_each_entry_safe(port, tmp, &dev_priv->i2c_ports, head) {
319 list_for_each_entry(port, &dev_priv->i2c_ports, head) {
324 if (&port->head == &dev_priv->i2c_ports)
/drivers/isdn/gigaset/
H A Dser-gigaset.c682 unsigned tail, head, n; local
695 head = inbuf->head;
697 head, tail, count);
699 if (head <= tail) {
709 /* tail < head and some data left */
710 n = head - tail - 1;
/drivers/staging/wlan-ng/
H A Dhfa384x_usb.c668 struct usbctlx_completor head; member in struct:usbctlx_cmd_completor
674 static inline int usbctlx_cmd_completor_fn(struct usbctlx_completor *head) argument
678 complete = (struct usbctlx_cmd_completor *) head;
689 completor->head.complete = usbctlx_cmd_completor_fn;
692 return &(completor->head);
701 struct usbctlx_completor head; member in struct:usbctlx_rrid_completor
708 static int usbctlx_rrid_completor_fn(struct usbctlx_completor *head) argument
713 complete = (struct usbctlx_rrid_completor *) head;
737 completor->head.complete = usbctlx_rrid_completor_fn;
741 return &(completor->head);
763 struct usbctlx_completor head; member in struct:usbctlx_rmem_completor
771 usbctlx_rmem_completor_fn(struct usbctlx_completor *head) argument
3057 hfa384x_usbctlx_t *head; local
[all...]
/drivers/tty/serial/jsm/
H A Djsm_tty.c525 u16 head; local
554 head = ch->ch_r_head & rmask;
557 data_len = (head - tail) & rmask;
589 "Port %d throttled, not reading any data. head: %x tail: %x\n",
590 ch->ch_portnum, head, tail);
611 s = ((head >= tail) ? head : RQUEUESIZE) - tail;
/drivers/staging/rtl8187se/
H A Dr8180_core.c392 DMESGE("Failed to kmalloc head of TX/RX struct");
469 u32 *head; local
474 head = priv->txmapringhead;
478 head = priv->txbkpringhead;
482 head = priv->txbepringhead;
486 head = priv->txvipringhead;
490 head = priv->txvopringhead;
494 head = priv->txhpringhead;
501 if (head <= tail)
502 ret = priv->txringcount - (tail - head)/
3786 u32 *head; /* head virtual addr */ local
[all...]
/drivers/gpu/drm/savage/
H A Dsavage_bci.c215 dev_priv->head.next = &dev_priv->tail;
216 dev_priv->head.prev = NULL;
217 dev_priv->head.buf = NULL;
220 dev_priv->tail.prev = &dev_priv->head;
230 entry->next = dev_priv->head.next;
231 entry->prev = &dev_priv->head;
232 dev_priv->head.next->prev = entry;
233 dev_priv->head.next = entry;
257 DRM_DEBUG(" head=0x%04x %d\n", event, wrap);
284 prev = &dev_priv->head;
[all...]
/drivers/media/video/tlg2300/
H A Dpd-video.c370 int *head, int *tail, int *bubble_err)
375 for (*head = *tail = -1; start < urb->number_of_packets; start++) {
388 if (*head != -1)
395 if (*head == -1)
396 *head = start;
403 if (*head == -1) {
404 *head = start;
412 if (*head == -1 && *tail == -1)
427 int bubble_err = 0, head = 0, tail = 0; local
438 switch (get_chunk(head, ur
369 get_chunk(int start, struct urb *urb, int *head, int *tail, int *bubble_err) argument
[all...]
/drivers/message/i2o/
H A Ddevice.c44 msg->u.head[0] = cpu_to_le32(FIVE_WORD_MSG_SIZE | SGL_OFFSET_0);
45 msg->u.head[1] =
478 msg->u.head[1] =
487 msg->u.head[0] =
/drivers/misc/sgi-xp/
H A Dxpnet.c112 * least one cache-line for head and tail alignment. The BTE is
230 dev_dbg(xpnet, "<skb->head=0x%p skb->data=0x%p skb->tail=0x%p "
231 "skb->end=0x%p skb->len=%d\n", (void *)skb->head,
239 "\tskb->head=0x%p skb->data=0x%p skb->tail=0x%p "
241 (void *)skb->head, (void *)skb->data, skb_tail_pointer(skb),
367 dev_dbg(xpnet, "all acks for skb->head=-x%p\n",
368 (void *)queued_msg->skb->head);
432 dev_dbg(xpnet, ">skb->head=0x%p skb->data=0x%p skb->tail=0x%p "
433 "skb->end=0x%p skb->len=%d\n", (void *)skb->head,
/drivers/net/irda/
H A Dsa1100_ir.c258 si->tx_buff.data = si->tx_buff.head;
901 io->head = kmalloc(size, GFP_KERNEL | GFP_DMA);
902 if (io->head != NULL) {
906 io->data = io->head;
908 return io->head ? 0 : -ENOMEM;
1007 kfree(si->tx_buff.head);
1008 kfree(si->rx_buff.head);
1028 kfree(si->tx_buff.head);
1029 kfree(si->rx_buff.head);
/drivers/net/wireless/ath/carl9170/
H A Dfw.c58 const struct carl9170fw_desc_head *head, unsigned int max_len)
69 pos = head;
74 if (pos_addr + sizeof(*head) > end_addr)
79 if (pos_length < sizeof(*head))
57 carl9170_fw_verify_descs(struct ar9170 *ar, const struct carl9170fw_desc_head *head, unsigned int max_len) argument
/drivers/net/wireless/p54/
H A Dfwio.c397 struct p54_scan_head *head; local
407 skb = p54_alloc_skb(priv, P54_HDR_FLAG_CONTROL_OPSET, sizeof(*head) +
414 head = (struct p54_scan_head *) skb_put(skb, sizeof(*head));
415 memset(head->scan_params, 0, sizeof(head->scan_params));
416 head->mode = cpu_to_le16(mode);
417 head->dwell = cpu_to_le16(dwell);
418 head->freq = freq;
/drivers/staging/omapdrm/
H A Domap_debugfs.c75 list_for_each_entry(fb, &dev->mode_config.fb_list, head) {
/drivers/tty/
H A Dn_tty.c857 int head, seen_alnums, cnt; local
897 head = tty->read_head;
901 head = (head - 1) & (N_TTY_BUF_SIZE-1);
902 c = tty->read_buf[head];
903 } while (is_continuation(c, tty) && head != tty->canon_head);
916 cnt = (tty->read_head - head) & (N_TTY_BUF_SIZE-1);
918 tty->read_head = head;
930 head = (head
2061 int nr, head, tail; local
[all...]
/drivers/tty/serial/
H A Datmel_serial.c452 if (!CIRC_SPACE(ring->head, ring->tail, ATMEL_SERIAL_RINGSIZE))
456 c = &((struct atmel_uart_char *)ring->buf)[ring->head];
460 /* Make sure the character is stored before we update head. */
463 ring->head = (ring->head + 1) & (ATMEL_SERIAL_RINGSIZE - 1);
693 count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE);
721 while (ring->head != ring->tail) {
724 /* Make sure c is loaded after head. */
788 unsigned int head; local
797 head
[all...]
/drivers/base/
H A Dattribute_container.c183 #define klist_for_each_entry(pos, head, member, iter) \
184 for (klist_iter_init(head, iter); (pos = ({ \
/drivers/gpu/drm/r128/
H A Dr128_cce.c775 dev_priv->head = kzalloc(sizeof(drm_r128_freelist_t), GFP_KERNEL);
776 if (dev_priv->head == NULL)
779 dev_priv->head->age = R128_BUFFER_USED;
791 entry->prev = dev_priv->head;
792 entry->next = dev_priv->head->next;
800 dev_priv->head->next = entry;
802 if (dev_priv->head->next)
803 dev_priv->head->next->prev = entry;
/drivers/hid/usbhid/
H A Dhiddev.c60 int head; member in struct:hiddev_list
171 list->buffer[list->head] = *uref;
172 list->head = (list->head + 1) &
359 if (list->head == list->tail) {
362 while (list->head == list->tail) {
395 while (list->head != list->tail &&
438 if (list->head != list->tail)
/drivers/input/
H A Djoydev.c64 int head; member in struct:joydev_client
67 spinlock_t buffer_lock; /* protects access to buffer, head and tail */
106 client->buffer[client->head] = *event;
109 client->head++;
110 client->head &= JOYDEV_BUFFER_SIZE - 1;
111 if (client->tail == client->head)
340 have_event = client->head != client->tail;
378 client->tail = client->head;
394 client->head != client->tail;
/drivers/input/joystick/iforce/
H A Diforce-usb.c37 if (iforce->xmit.head == iforce->xmit.tail) {
52 c = CIRC_CNT_TO_END(iforce->xmit.head, iforce->xmit.tail, XMIT_SIZE);
/drivers/isdn/hardware/eicon/
H A Dio.c433 if (IoAdapter->head)
440 IoAdapter->head = i;
801 if (IoAdapter->head) {
806 IoAdapter->head = e_no;
815 return ((byte)IoAdapter->head);
823 IoAdapter->head = IoAdapter->e_tbl[IoAdapter->head].next;
824 if (!IoAdapter->head) IoAdapter->tail = 0;
/drivers/sh/intc/
H A Dvirq.c27 #define for_each_virq(entry, head) \
28 for (entry = head; entry; entry = entry->next)
/drivers/staging/crystalhd/
H A Dcrystalhd_misc.c448 dioq->head = (struct crystalhd_elem *)&dioq->head;
449 dioq->tail = (struct crystalhd_elem *)&dioq->head;
520 tmp->flink = (struct crystalhd_elem *)&ioq->head;
534 * crystalhd_dioq_fetch - Fetch element from head.
538 * data element from the head..
555 tmp = ioq->head;
556 if (tmp != (struct crystalhd_elem *)&ioq->head) {
576 * element from the head..
593 tmp = ioq->head;
[all...]
/drivers/staging/tidspbridge/pmgr/
H A Ddbll.c55 struct dbll_library_obj *head; /* List of all opened libraries */ member in struct:dbll_tar_obj
205 if (zl_target->head == zl_lib)
206 zl_target->head = zl_lib->next;
524 zl_lib = zl_target->head;
626 if (zl_target->head)
627 (zl_target->head)->prev = zl_lib;
630 zl_lib->next = zl_target->head;
631 zl_target->head = zl_lib;

Completed in 5165 milliseconds

1234567891011>>