Searched refs:tail (Results 151 - 175 of 372) sorted by relevance

1234567891011>>

/drivers/net/ethernet/i825xx/
H A Dether1.c13 * and one for receive. Each has a head and a tail. The head is where
14 * we/the chip adds packets to be transmitted/received, and the tail
616 int start, tail; local
619 tail = priv(dev)->tx_tail;
622 if (tail > priv(dev)->tx_head)
625 if (start + size > tail)
629 if (priv(dev)->tx_head < tail && (priv(dev)->tx_head + size) > tail)
/drivers/net/ethernet/qualcomm/
H A Dqca_spi.c363 netdev_dbg(net_dev, "no RX tail\n");
403 if (txr->skb[txr->tail])
429 qca->txr.tail = 0;
673 if (qca->txr.skb[qca->txr.tail]) {
711 new_tail = qca->txr.tail + 1;
715 qca->txr.skb[qca->txr.tail] = skb;
716 qca->txr.tail = new_tail;
/drivers/tty/serial/
H A Dip22zilog.c411 writeb(xmit->buf[xmit->tail], &channel->data);
415 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1);
608 writeb(xmit->buf[xmit->tail], &channel->data);
612 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1);
H A Dm32r_sio.c270 serial_out(up, UART_TX, xmit->buf[xmit->tail]);
271 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1);
399 serial_out(up, UART_TX, xmit->buf[xmit->tail]);
400 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1);
H A Dxilinx_uartps.c283 tail], CDNS_UART_FIFO_OFFSET);
287 /* Adjust the tail of the UART buffer and wrap
290 port->state->xmit.tail =
291 (port->state->xmit.tail + 1) &
528 port->state->xmit.buf[port->state->xmit.tail],
532 /* Adjust the tail of the UART buffer and wrap
535 port->state->xmit.tail = (port->state->xmit.tail + 1) &
H A Dpch_uart.c802 xmit->tail += sg_dma_len(sg);
805 xmit->tail &= UART_XMIT_SIZE - 1;
825 CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE);
827 pch_uart_hal_write(priv, &xmit->buf[xmit->tail], sz);
828 xmit->tail = (xmit->tail + sz) & (UART_XMIT_SIZE - 1);
925 size = min(xmit->head - xmit->tail, fifo_size);
985 bytes = min((int)CIRC_CNT(xmit->head, xmit->tail,
987 xmit->tail, UART_XMIT_SIZE));
1037 sg->offset = (xmit->tail
[all...]
H A Dmfd.c307 xmit->tail += dbuf->ofs;
308 xmit->tail &= UART_XMIT_SIZE - 1;
322 count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE);
326 chan_writel(up->txc, HSU_CH_D0SAR, dbuf->dma_addr + xmit->tail);
426 * explicitly set tail to 0. So head will
427 * always be greater than tail.
553 serial_out(up, UART_TX, xmit->buf[xmit->tail]);
554 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1);
H A Dfsl_lpuart.c353 writeb(xmit->buf[xmit->tail], sport->port.membase + UARTDR);
354 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1);
376 tx_bus_addr = sport->dma_tx_buf_bus + xmit->tail;
399 xmit->tail, UART_XMIT_SIZE);
424 xmit->tail = (xmit->tail + sport->dma_tx_bytes) & (UART_XMIT_SIZE - 1);
528 writeb(xmit->buf[xmit->tail], sport->port.membase + UARTDR);
529 xmit->tail = (xmit->tail
[all...]
H A Dimx.c483 /* send xmit->buf[xmit->tail]
485 writel(xmit->buf[xmit->tail], sport->port.membase + URTX0);
486 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1);
510 xmit->tail = (xmit->tail + sport->tx_bytes) & (UART_XMIT_SIZE - 1);
541 if (xmit->tail > xmit->head && xmit->head > 0) {
544 sg_set_buf(sgl, xmit->buf + xmit->tail,
545 UART_XMIT_SIZE - xmit->tail);
549 sg_init_one(sgl, xmit->buf + xmit->tail, spor
[all...]
H A Dapbuart.c148 UART_PUT_CHAR(port, xmit->buf[xmit->tail]);
149 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1);
H A Dar933x_uart.c360 ar933x_uart_putc(up, xmit->buf[xmit->tail]);
362 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1);
/drivers/net/irda/
H A Dali-ircc.c376 self->tx_fifo.tail = self->tx_buff.head;
1477 self->tx_fifo.queue[self->tx_fifo.free].start = self->tx_fifo.tail;
1479 self->tx_fifo.tail += skb->len;
1705 self->tx_fifo.tail = self->tx_buff.head;
1738 self->tx_fifo.tail = self->tx_buff.head;
1761 self->st_fifo.tail = self->st_fifo.head = 0;
1818 if (st_fifo->tail >= MAX_RX_WINDOW) {
1823 st_fifo->entries[st_fifo->tail].status = status;
1824 st_fifo->entries[st_fifo->tail].len = len;
1826 st_fifo->tail
[all...]
H A Dnsc-ircc.c456 self->tx_fifo.tail = self->tx_buff.head;
1484 self->tx_fifo.queue[self->tx_fifo.free].start = self->tx_fifo.tail;
1486 self->tx_fifo.tail += skb->len;
1689 self->tx_fifo.tail = self->tx_buff.head;
1722 self->tx_fifo.tail = self->tx_buff.head;
1743 self->st_fifo.tail = self->st_fifo.head = 0;
1784 if (st_fifo->tail >= MAX_RX_WINDOW) {
1789 st_fifo->entries[st_fifo->tail].status = status;
1790 st_fifo->entries[st_fifo->tail].len = len;
1792 st_fifo->tail
[all...]
H A Dw83977af_ir.c733 self->st_fifo.len = self->st_fifo.tail = self->st_fifo.head = 0;
780 st_fifo->entries[st_fifo->tail].status = status;
782 st_fifo->entries[st_fifo->tail].len = inb(iobase+RFLFL);
783 st_fifo->entries[st_fifo->tail].len |= inb(iobase+RFLFH) << 8;
785 st_fifo->tail++;
/drivers/staging/dgap/
H A Ddgap.c1549 uint tail; local
1585 tail = readw(&(bs->rx_tail));
1586 tail &= rmask;
1588 data_len = (head - tail) & rmask;
1689 s = ((head >= tail) ? head : ch->ch_rsize) - tail;
1695 memcpy_fromio(buf, ch->ch_raddr + tail, s);
1697 tail += s;
1702 tail &= rmask;
1705 writew(tail,
2540 u16 head, tail, tmask; local
2630 u16 head, tail, tmask, remain; local
4479 u16 head, tail; local
4559 u16 tail; local
4644 u16 tail; local
4727 u16 tail; local
5368 uint tail; local
[all...]
/drivers/crypto/
H A Dtalitos.c252 int tail, status; local
256 tail = priv->chan[ch].tail;
257 while (priv->chan[ch].fifo[tail].desc) {
258 request = &priv->chan[ch].fifo[tail];
283 /* increment fifo tail */
284 priv->chan[ch].tail = (tail + 1) & (priv->fifo_len - 1);
296 tail = priv->chan[ch].tail;
341 int tail, iter; local
[all...]
/drivers/isdn/gigaset/
H A Disocdata.c944 unsigned tail, head, numbytes; local
948 while (head != (tail = inbuf->tail)) {
949 gig_dbg(DEBUG_INTR, "buffer state: %u -> %u", head, tail);
950 if (head > tail)
951 tail = RBUFSIZE;
953 numbytes = tail - head;
/drivers/media/dvb-core/
H A Ddvb_net.c610 const u8 *tail; local
624 tail = skb_tail_pointer(priv->ule_skb);
625 expected_crc = *(tail - 4) << 24 |
626 *(tail - 3) << 16 |
627 *(tail - 2) << 8 |
628 *(tail - 1);
661 priv->ule_skb->tail -= 4;
/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_main.c173 writel(i, rx_ring->tail);
549 skb->tail += pull_len;
1054 writel(i, tx_ring->tail);
1056 /* we need this if more than one processor can write to our tail
1093 * + 2 desc gap to keep tail from touching head
1140 /* use SW head and tail until we have real hardware */
1142 u32 tail = ring->next_to_use; local
1144 return ((head <= tail) ? tail : tail
[all...]
/drivers/gpu/drm/i915/
H A Dintel_ringbuffer.c53 int __intel_ring_space(int head, int tail, int size) argument
55 int space = head - (tail + I915_RING_FREE_SPACE);
64 ringbuf->tail, ringbuf->size);
76 ringbuf->tail &= ringbuf->size - 1;
79 ring->write_tail(ring, ringbuf->tail);
533 "ctl %08x head %08x tail %08x start %08x\n",
542 "ctl %08x head %08x tail %08x start %08x\n",
583 "ctl %08x (valid? %d) head %08x tail %08x start %08x [expected %08lx]\n",
596 ringbuf->tail = I915_READ_TAIL(ring) & TAIL_ADDR;
969 /* If num_dwords was rounded, make sure the tail pointe
[all...]
/drivers/gpu/drm/radeon/
H A Dradeon_cp.c654 dev_priv->ring.tail = cur_read_ptr;
792 dev_priv->ring.tail = cur_read_ptr;
1986 ring->space = (head - ring->tail) * sizeof(u32);
2215 tail_aligned = dev_priv->ring.tail & (RADEON_RING_ALIGN-1);
2222 ring[dev_priv->ring.tail + i] = CP_PACKET2();
2224 dev_priv->ring.tail += i;
2229 dev_priv->ring.tail &= dev_priv->ring.tail_mask;
2235 RADEON_WRITE(R600_CP_RB_WPTR, dev_priv->ring.tail);
2239 RADEON_WRITE(RADEON_CP_RB_WPTR, dev_priv->ring.tail);
H A Dradeon_drv.h150 u32 tail; member in struct:drm_radeon_ring_buffer
214 drm_radeon_freelist_t *tail; member in struct:drm_radeon_private
2003 if (head == dev_priv->ring.tail) \
2071 _align_nr = RADEON_RING_ALIGN - ((dev_priv->ring.tail + n) & (RADEON_RING_ALIGN-1)); \
2079 write = dev_priv->ring.tail; \
2085 DRM_INFO( "ADVANCE_RING() wr=0x%06x tail=0x%06x\n", \
2086 write, dev_priv->ring.tail ); \
2088 if (((dev_priv->ring.tail + _nr) & mask) != write) { \
2091 ((dev_priv->ring.tail + _nr) & mask), \
2094 dev_priv->ring.tail
[all...]
/drivers/media/usb/tlg2300/
H A Dpd-video.c347 int *head, int *tail, int *bubble_err)
352 for (*head = *tail = -1; start < urb->number_of_packets; start++) {
374 *tail = start;
382 *tail = start;
389 if (*head == -1 && *tail == -1)
404 int bubble_err = 0, head = 0, tail = 0; local
415 switch (get_chunk(head, urb, &head, &tail, &bubble_err)) {
418 (tail - head + 1) * ISO_PKT_SIZE);
431 } while (head = tail + 1, head < urb->number_of_packets);
346 get_chunk(int start, struct urb *urb, int *head, int *tail, int *bubble_err) argument
/drivers/media/pci/ivtv/
H A Divtvfb.c393 u16 lead = 0, tail = 0; local
436 tail = (count - lead) & 3;
438 dma_size = count - lead - tail;
446 if (tail && copy_from_user(dst, buf, tail))
/drivers/vfio/
H A Dvfio_iommu_type1.c194 struct page *tail = pfn_to_page(pfn); local
195 struct page *head = compound_head(tail);
197 if (head != tail) {
209 if (PageTail(tail))
212 return PageReserved(tail);

Completed in 1594 milliseconds

1234567891011>>