Searched refs:tail (Results 26 - 50 of 372) sorted by relevance

1234567891011>>

/drivers/input/misc/
H A Dkeychord.c61 unsigned char tail; member in struct:keychord_device
207 if (kdev->head == kdev->tail && (file->f_flags & O_NONBLOCK))
211 kdev->head != kdev->tail);
217 id = kdev->buff[kdev->tail];
218 kdev->tail = (kdev->tail + 1) % BUFFER_SIZE;
265 kdev->head = kdev->tail = 0;
323 if (kdev->head != kdev->tail)
/drivers/crypto/qat/qat_common/
H A Dadf_transport_debug.c94 int head, tail, empty; local
98 tail = READ_CSR_RING_TAIL(csr, bank->bank_number,
105 seq_printf(sfile, "head %x, tail %x, empty: %d\n",
106 head, tail, (empty & 1 << ring->ring_number)
225 int head, tail, empty; local
232 tail = READ_CSR_RING_TAIL(csr, bank->bank_number,
237 "ring num %02d, head %04x, tail %04x, empty: %d\n",
238 ring->ring_number, head, tail,
/drivers/input/joystick/iforce/
H A Diforce-packets.c55 int head, tail; local
59 * Update head and tail of xmit buffer
64 tail = iforce->xmit.tail;
67 if (CIRC_SPACE(head, tail, XMIT_SIZE) < n+2) {
74 empty = head == tail;
85 c = CIRC_SPACE_TO_END(head, tail, XMIT_SIZE);
/drivers/isdn/gigaset/
H A Dcommon.c299 unsigned head, tail; local
305 tail = cs->ev_tail;
307 while (tail != head) {
313 cs->ev_head = tail;
337 unsigned next, tail; local
344 tail = cs->ev_tail;
345 next = (tail + 1) % MAX_EVENTS;
349 event = cs->events + tail;
553 inbuf->tail = 0;
569 unsigned n, head, tail, byteslef local
[all...]
H A Dser-gigaset.c685 unsigned tail, head, n; local
697 tail = inbuf->tail;
700 head, tail, count);
702 if (head <= tail) {
704 n = min_t(unsigned, count, RBUFSIZE - tail);
705 memcpy(inbuf->data + tail, buf, n);
706 tail = (tail + n) % RBUFSIZE;
712 /* tail < hea
[all...]
/drivers/mfd/
H A Dpcf50633-adc.c88 int head, tail; local
93 tail = adc->queue_tail;
95 if (adc->queue[tail]) {
101 adc->queue[tail] = req;
102 if (head == tail)
104 adc->queue_tail = (tail + 1) & (PCF50633_MAX_ADC_FIFO_DEPTH - 1);
/drivers/net/wireless/b43/
H A Dpio.c346 u8 *tail = wl->pio_tailspace; local
352 tail[0] = data[data_len - 1];
353 tail[1] = 0;
354 b43_block_write(dev, tail, 2,
400 u8 *tail = wl->pio_tailspace; local
403 memset(tail, 0, 4);
410 tail[0] = data[data_len - 3];
411 tail[1] = data[data_len - 2];
412 tail[2] = data[data_len - 1];
416 tail[
722 u8 *tail = wl->pio_tailspace; local
749 u8 *tail = wl->pio_tailspace; local
[all...]
/drivers/acpi/
H A Dutils.c67 u8 *tail = NULL; local
198 tail = buffer->pointer + tail_offset;
223 *pointer = tail;
224 *((u64 *) tail) =
227 tail += sizeof(u64);
229 *tail = (char)0;
230 tail += sizeof(char);
243 *pointer = tail;
244 memcpy(tail, element->string.pointer,
247 tail
[all...]
/drivers/gpu/drm/r128/
H A Dr128_drv.h74 u32 tail; member in struct:drm_r128_ring_buffer
90 drm_r128_freelist_t *tail; member in struct:drm_r128_private
419 ring->space = (GET_RING_HEAD(dev_priv) - ring->tail) * sizeof(u32);
488 write = dev_priv->ring.tail; \
501 DRM_INFO("ADVANCE_RING() wr=0x%06x tail=0x%06x\n", \
502 write, dev_priv->ring.tail); \
507 if (((dev_priv->ring.tail + _nr) & tail_mask) != write) \
510 ((dev_priv->ring.tail + _nr) & tail_mask), \
513 dev_priv->ring.tail = write; \
518 DRM_INFO("COMMIT_RING() tail
[all...]
/drivers/tty/
H A Dehv_bytechan.c58 unsigned int tail; /* circular buffer tail */ member in struct:ehv_bc_data
406 CIRC_CNT_TO_END(bc->head, bc->tail, BUF_SIZE),
409 ret = ev_byte_channel_send(bc->handle, &len, bc->buf + bc->tail);
413 bc->tail = (bc->tail + len) & (BUF_SIZE - 1);
415 count = CIRC_CNT(bc->head, bc->tail, BUF_SIZE);
420 if (CIRC_CNT(bc->head, bc->tail, BUF_SIZE))
469 len = CIRC_SPACE_TO_END(bc->head, bc->tail, BUF_SIZE);
536 count = CIRC_SPACE(bc->head, bc->tail, BUF_SIZ
[all...]
H A Dtty_buffer.c133 buf->tail = &buf->sentinel;
250 b = buf->tail;
261 buf->tail = n;
302 struct tty_buffer *tb = port->buf.tail;
337 struct tty_buffer *tb = port->buf.tail;
366 buf->tail->commit = buf->tail->used;
389 struct tty_buffer *tb = port->buf.tail;
530 buf->tail = &buf->sentinel;
/drivers/dma/ioat/
H A Ddma_v2.c64 "%s: head: %#x tail: %#x issued: %#x count: %#x\n",
65 __func__, ioat->head, ioat->tail, ioat->issued, ioat->dmacount);
103 dev_dbg(to_dev(&ioat->base), "%s: head: %#x tail: %#x issued: %#x\n",
104 __func__, ioat->head, ioat->tail, ioat->issued);
138 int idx = ioat->tail, i;
140 dev_dbg(to_dev(chan), "%s: head: %#x tail: %#x issued: %#x\n",
141 __func__, ioat->head, ioat->tail, ioat->issued);
162 smp_mb(); /* finish all descriptor reads before incrementing tail */
163 ioat->tail = idx + i;
176 * ioat2_cleanup - clean finished descriptors (advance tail pointe
[all...]
/drivers/net/ethernet/apm/xgene/
H A Dxgene_enet_main.c50 u32 tail = buf_pool->tail; local
61 raw_desc = &buf_pool->raw_desc16[tail];
66 buf_pool->rx_skb[tail] = skb;
78 tail = (tail + 1) & slots;
82 buf_pool->tail = tail;
116 u32 tail = buf_pool->tail; local
229 u16 tail = tx_ring->tail; local
[all...]
/drivers/infiniband/hw/ipath/
H A Dipath_ruc.c174 u32 tail; local
194 tail = wq->tail;
195 /* Validate tail before using it since it is user writable. */
196 if (tail >= rq->size)
197 tail = 0;
199 if (unlikely(tail == wq->head)) {
205 wqe = get_rwqe_ptr(rq, tail);
206 if (++tail >= rq->size)
207 tail
[all...]
H A Dipath_ud.c64 u32 tail; local
119 * Note that it is safe to drop the lock after changing rq->tail
124 tail = wq->tail;
125 /* Validate tail before using it since it is user writable. */
126 if (tail >= rq->size)
127 tail = 0;
128 if (unlikely(tail == wq->head)) {
133 wqe = get_rwqe_ptr(rq, tail);
146 if (++tail >
[all...]
/drivers/gpu/drm/msm/
H A Dmsm_rd.c20 * tail -f /sys/kernel/debug/dri/<minor>/rd > logfile.rd
64 (CIRC_CNT((circ)->head, (circ)->tail, BUF_SZ))
66 (CIRC_CNT_TO_END((circ)->head, (circ)->tail, BUF_SZ))
69 (CIRC_SPACE((circ)->head, (circ)->tail, BUF_SZ))
71 (CIRC_SPACE_TO_END((circ)->head, (circ)->tail, BUF_SZ))
132 const char *fptr = &fifo->buf[fifo->tail];
147 fifo->tail = (fifo->tail + n) & (BUF_SZ - 1);
/drivers/input/serio/
H A Dsa1111ps2.c53 unsigned int tail; member in struct:ps2if
98 if (ps2if->head == ps2if->tail) {
102 sa1111_writel(ps2if->buf[ps2if->tail], ps2if->base + PS2DATA);
103 ps2if->tail = (ps2if->tail + 1) & (sizeof(ps2if->buf) - 1);
128 if (ps2if->head == ps2if->tail)
131 if (head != ps2if->tail) {
H A Dserio_raw.c33 unsigned int tail, head; member in struct:serio_raw
149 empty = serio_raw->head == serio_raw->tail;
151 *c = serio_raw->queue[serio_raw->tail];
152 serio_raw->tail = (serio_raw->tail + 1) % SERIO_RAW_QUEUE_LEN;
173 if (serio_raw->head == serio_raw->tail &&
191 serio_raw->head != serio_raw->tail ||
251 if (serio_raw->head != serio_raw->tail)
283 if (likely(head != serio_raw->tail)) {
/drivers/tty/serial/jsm/
H A Djsm_neo.c297 u16 tail; local
302 /* cache head and tail of queue */
304 tail = ch->ch_r_tail & RQUEUEMASK;
311 if ((qleft = tail - head - 1) < 0)
460 ch->ch_rqueue[tail], ch->ch_equeue[tail]);
462 ch->ch_r_tail = tail = (tail + 1) & RQUEUEMASK;
494 u16 tail; local
523 writeb(circ->buf[circ->tail],
[all...]
/drivers/infiniband/hw/qib/
H A Dqib_sdma.c174 * Reset our notion of head and tail.
541 u16 tail; local
572 tail = ppd->sdma_descq_tail;
573 descqp = &ppd->sdma_descq[tail].qw[0];
577 /* increment the tail */
578 if (++tail == ppd->sdma_descq_cnt) {
579 tail = 0;
584 tx->txreq.start_idx = tail;
611 /* increment the tail */
612 if (++tail
728 u16 head, tail, cnt; local
[all...]
/drivers/hid/
H A Dhidraw.c55 if (list->head == list->tail) {
59 while (list->head == list->tail) {
87 len = list->buffer[list->tail].len > count ?
88 count : list->buffer[list->tail].len;
90 if (list->buffer[list->tail].value) {
91 if (copy_to_user(buffer, list->buffer[list->tail].value, len)) {
98 kfree(list->buffer[list->tail].value);
99 list->buffer[list->tail].value = NULL;
100 list->tail = (list->tail
[all...]
/drivers/scsi/be2iscsi/
H A Dbe.h43 u16 tail, head; member in struct:be_queue_info
71 return q->dma_mem.va + q->tail * q->entry_size;
81 index_inc(&q->tail, q->len);
/drivers/usb/host/
H A Duhci-debug.c145 goto tail;
160 tail:
216 goto tail;
233 goto tail;
251 goto tail;
257 tail:
395 goto tail;
408 goto tail;
448 goto tail;
489 goto tail;
[all...]
/drivers/gpu/drm/i915/
H A Dintel_ringbuffer.h110 u32 tail; member in struct:intel_ringbuffer
397 iowrite32(data, ringbuf->virtual_start + ringbuf->tail);
398 ringbuf->tail += 4;
403 ringbuf->tail &= ringbuf->size - 1;
405 int __intel_ring_space(int head, int tail, int size);
429 return ringbuf->tail;
/drivers/tty/serial/
H A Dbfin_uart.c157 xmit->tail = (xmit->tail + uart->tx_count) & (UART_XMIT_SIZE - 1);
341 while ((UART_GET_LSR(uart) & THRE) && xmit->tail != xmit->head) {
342 UART_PUT_CHAR(uart, xmit->buf[xmit->tail]);
343 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1);
393 uart->tx_count = CIRC_CNT(xmit->head, xmit->tail, UART_XMIT_SIZE);
394 if (uart->tx_count > (UART_XMIT_SIZE - xmit->tail))
395 uart->tx_count = UART_XMIT_SIZE - xmit->tail;
396 blackfin_dcache_flush_range((unsigned long)(xmit->buf+xmit->tail),
[all...]

Completed in 1178 milliseconds

1234567891011>>