/drivers/input/misc/ |
H A D | keychord.c | 61 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 D | adf_transport_debug.c | 94 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 D | iforce-packets.c | 55 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 D | common.c | 299 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 D | ser-gigaset.c | 685 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 D | pcf50633-adc.c | 88 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 D | pio.c | 346 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 D | utils.c | 67 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 D | r128_drv.h | 74 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 D | ehv_bytechan.c | 58 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 D | tty_buffer.c | 133 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 D | dma_v2.c | 64 "%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 D | xgene_enet_main.c | 50 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 D | ipath_ruc.c | 174 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 D | ipath_ud.c | 64 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 D | msm_rd.c | 20 * 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 D | sa1111ps2.c | 53 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 D | serio_raw.c | 33 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 D | jsm_neo.c | 297 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 D | qib_sdma.c | 174 * 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 D | hidraw.c | 55 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 D | be.h | 43 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 D | uhci-debug.c | 145 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 D | intel_ringbuffer.h | 110 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 D | bfin_uart.c | 157 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...] |