Searched refs:tail (Results 76 - 100 of 372) sorted by relevance

1234567891011>>

/drivers/virt/
H A Dfsl_hypervisor.c464 /* Returns the next head/tail pointer, wrapping around the queue if necessary */
473 unsigned int tail; member in struct:doorbell_queue
500 if (dbq->head != nextp(dbq->tail)) {
501 dbq->q[dbq->tail] = doorbell;
507 dbq->tail = nextp(dbq->tail);
581 mask = (dbq->head == dbq->tail) ? 0 : (POLLIN | POLLRDNORM);
614 if (dbq->head == dbq->tail) {
621 dbq->head != dbq->tail))
/drivers/net/ethernet/intel/i40e/
H A Di40e_adminq.h57 u32 tail; member in struct:i40e_adminq_ring
H A Di40e_adminq.c53 /* set head and tail registers in our local struct */
55 hw->aq.asq.tail = I40E_VF_ATQT1;
60 hw->aq.arq.tail = I40E_VF_ARQT1;
66 hw->aq.asq.tail = I40E_PF_ATQT;
71 hw->aq.arq.tail = I40E_PF_ARQT;
309 wr32(hw, hw->aq.asq.tail, 0);
338 wr32(hw, hw->aq.arq.tail, 0);
346 /* Update tail in the HW to post pre-allocated buffers */
347 wr32(hw, hw->aq.arq.tail, hw->aq.num_arq_entries - 1);
490 wr32(hw, hw->aq.asq.tail,
[all...]
/drivers/net/ethernet/intel/i40evf/
H A Di40e_adminq.h57 u32 tail; member in struct:i40e_adminq_ring
H A Di40e_adminq.c51 /* set head and tail registers in our local struct */
53 hw->aq.asq.tail = I40E_VF_ATQT1;
58 hw->aq.arq.tail = I40E_VF_ARQT1;
64 hw->aq.asq.tail = I40E_PF_ATQT;
69 hw->aq.arq.tail = I40E_PF_ARQT;
307 wr32(hw, hw->aq.asq.tail, 0);
336 wr32(hw, hw->aq.arq.tail, 0);
344 /* Update tail in the HW to post pre-allocated buffers */
345 wr32(hw, hw->aq.arq.tail, hw->aq.num_arq_entries - 1);
488 wr32(hw, hw->aq.asq.tail,
[all...]
/drivers/net/irda/
H A Dbfin_sir.h35 int tail; member in struct:dma_rx_buf
H A Dvlsi_ir.h662 * producer advances r->tail after inserting for processing
664 * ring is empty if head==tail / full if (tail+1)==head
673 atomic_t head, tail; member in struct:vlsi_ring
683 t = atomic_read(&r->tail) & r->mask;
689 atomic_inc(&r->tail);
698 return (h == (atomic_read(&r->tail) & r->mask)) ? NULL : &r->rd[h];
/drivers/scsi/bfa/
H A Dbfa_plog.h139 u16 tail; member in struct:bfa_plog_s
/drivers/staging/dgnc/
H A Ddgnc_neo.c1132 ushort tail; local
1140 /* cache head and tail of queue */
1142 tail = ch->ch_r_tail & RQUEUEMASK;
1149 qleft = tail - head - 1;
1305 tail = (tail + 1) & RQUEUEMASK;
1306 ch->ch_r_tail = tail;
1435 ushort tail; local
1525 /* cache head and tail of queue */
1527 tail
[all...]
/drivers/usb/musb/
H A Dcppi_dma.h105 struct cppi_descriptor *tail; member in struct:cppi_channel
/drivers/gpu/drm/i810/
H A Di810_drv.h76 int tail; member in struct:_drm_i810_ring_buffer
153 outring = dev_priv->ring.tail; \
161 dev_priv->ring.tail = outring; \
/drivers/hid/usbhid/
H A Dhiddev.c62 int tail; member in struct:hiddev_list
360 if (list->head == list->tail) {
363 while (list->head == list->tail) {
396 while (list->head != list->tail &&
399 if (list->buffer[list->tail].field_index != HID_FIELD_INDEX_NONE) {
402 event.hid = list->buffer[list->tail].usage_code;
403 event.value = list->buffer[list->tail].value;
411 if (list->buffer[list->tail].field_index != HID_FIELD_INDEX_NONE ||
414 if (copy_to_user(buffer + retval, list->buffer + list->tail, sizeof(struct hiddev_usage_ref))) {
421 list->tail
[all...]
/drivers/media/pci/ivtv/
H A Divtv-udma.c30 dma_page->tail = 1 + ((first+size-1) & ~PAGE_MASK);
34 if (dma_page->page_count == 1) dma_page->tail -= dma_page->offset;
50 dma_page->tail : PAGE_SIZE - offset;
/drivers/staging/lustre/lustre/obdclass/
H A Dllog.c500 struct llog_rec_tail *tail; local
528 tail = (void *)rec + rec->lrh_len - sizeof(*tail);
531 while ((void *)tail > buf) {
532 if (tail->lrt_index == 0) {
540 rec = (void *)tail - tail->lrt_len +
541 sizeof(*tail);
548 tail->lrt_index);
561 tail
[all...]
/drivers/net/ethernet/cadence/
H A Dmacb.c496 unsigned int tail; local
518 for (tail = bp->tx_tail; tail != bp->tx_head; tail++) {
522 desc = macb_tx_desc(bp, tail);
524 tx_skb = macb_tx_skb(bp, tail);
531 tail++;
532 tx_skb = macb_tx_skb(bp, tail);
541 macb_tx_ring_wrap(tail), skb->data);
579 unsigned int tail; local
873 unsigned int tail; local
1892 unsigned int tail, head; local
[all...]
/drivers/gpu/drm/i915/
H A Dintel_lrc.c48 * But, what about the ringbuffer control registers (head, tail, etc..)?
96 * for the appropriate context. The tail pointer in the hardware context is not
100 * tail after the request was written to the ring buffer and a pointer to the
131 * preemption, but just sampling the new tail pointer).
344 static int execlists_ctx_write_tail(struct drm_i915_gem_object *ctx_obj, u32 tail) argument
352 reg_state[CTX_RING_TAIL+1] = tail;
403 * will update tail past first request's workload */
416 WARN_ON(execlists_submit_context(ring, req0->ctx, req0->tail,
418 req1 ? req1->tail : 0));
533 u32 tail)
531 execlists_context_queue(struct intel_engine_cs *ring, struct intel_context *to, u32 tail) argument
[all...]
/drivers/net/ethernet/toshiba/
H A Dps3_gelic_net.c232 chain->tail = (descr - 1);
356 chain->tail = start_descr;
495 chain->tail = card->rx_top->prev; /* point to the last */
559 tx_chain->head != tx_chain->tail && tx_chain->tail;
560 tx_chain->tail = tx_chain->tail->next) {
561 status = gelic_descr_get_status(tx_chain->tail);
562 netdev = tx_chain->tail->skb->dev;
576 if (tx_chain->tail
[all...]
/drivers/isdn/gigaset/
H A Dasyncdata.c351 if (inbuf->head == inbuf->tail ||
412 gig_dbg(DEBUG_INTR, "buffer state: %u -> %u", inbuf->head, inbuf->tail);
414 while (inbuf->head != inbuf->tail) {
419 numbytes = (inbuf->head > inbuf->tail ?
420 RBUFSIZE : inbuf->tail) - inbuf->head;
/drivers/pnp/
H A Dquirks.c141 struct pnp_option *tail = NULL, *first_new_option = NULL; local
147 tail = option;
149 if (!tail) {
171 list_add(&new_option->list, &tail->list);
172 tail = new_option;
/drivers/scsi/arcmsr/
H A Darcmsr_attr.c83 unsigned int tail = acb->rqbuf_getIndex; local
85 unsigned int cnt_to_end = CIRC_CNT_TO_END(head, tail, ARCMSR_MAX_QBUFFER);
87 allxfer_len = CIRC_CNT(head, tail, ARCMSR_MAX_QBUFFER);
92 memcpy(ptmpQbuffer, acb->rqbuffer + tail, allxfer_len);
94 memcpy(ptmpQbuffer, acb->rqbuffer + tail, cnt_to_end);
/drivers/hid/
H A Duhid.c44 __u8 tail; member in struct:uhid_device
64 if (newhead != uhid->tail) {
651 if (uhid->head == uhid->tail)
655 uhid->head != uhid->tail);
664 if (uhid->head == uhid->tail) {
669 if (copy_to_user(buffer, uhid->outq[uhid->tail], len)) {
672 kfree(uhid->outq[uhid->tail]);
673 uhid->outq[uhid->tail] = NULL;
676 uhid->tail = (uhid->tail
[all...]
/drivers/infiniband/hw/ipath/
H A Dipath_user_sdma.c686 unsigned ofs, u16 tail)
694 descqp = &dd->ipath_sdma_descq[tail].qw[0];
713 u16 tail; local
728 tail = dd->ipath_sdma_descq_tail;
735 u16 dtail = tail;
741 ipath_user_sdma_send_frag(dd, pkt, i, ofs, tail);
744 if (++tail == dd->ipath_sdma_descq_cnt) {
745 tail = 0;
778 /* advance the tail on the chip if necessary */
779 if (dd->ipath_sdma_descq_tail != tail) {
684 ipath_user_sdma_send_frag(struct ipath_devdata *dd, struct ipath_user_sdma_pkt *pkt, int idx, unsigned ofs, u16 tail) argument
[all...]
/drivers/video/adf/
H A Dadf_fops.c837 int tail = fpriv->event_tail; local
838 return CIRC_CNT(head, tail, sizeof(fpriv->event_buf)) != 0;
844 int tail = fpriv->event_tail; local
845 size_t space = CIRC_SPACE(head, tail, sizeof(fpriv->event_buf));
847 CIRC_SPACE_TO_END(head, tail, sizeof(fpriv->event_buf));
873 int head, tail; local
890 tail = fpriv->event_tail;
892 cnt = CIRC_CNT(head, tail, sizeof(fpriv->event_buf));
893 cnt_to_end = CIRC_CNT_TO_END(head, tail, sizeof(fpriv->event_buf));
897 memcpy(event_buf, fpriv->event_buf + tail, copy_siz
[all...]
/drivers/dma/
H A Dmic_x100_dma.c91 u32 tail; local
95 tail = mic_dma_read_cmp_cnt(ch);
102 for (last_tail = ch->last_tail; tail != last_tail;) {
113 /* finish all completion callbacks before incrementing tail */
119 static u32 mic_dma_ring_count(u32 head, u32 tail) argument
123 if (head >= tail)
124 count = (tail - 0) + (MIC_DMA_DESC_RX_SIZE - head);
126 count = tail - head;
/drivers/gpu/drm/mga/
H A Dmga_drv.h54 u32 tail; member in struct:drm_mga_primary_buffer
84 drm_mga_freelist_t *tail; member in struct:drm_mga_private
273 write = dev_priv->prim.tail; \
283 write = dev_priv->prim.tail; \
288 dev_priv->prim.tail = write; \
290 DRM_INFO("ADVANCE_DMA() tail=0x%05x sp=0x%x\n", \
298 DRM_INFO(" tail=0x%06x head=0x%06lx\n", \
299 dev_priv->prim.tail, \
351 entry->age.head = (dev_priv->prim.tail + \

Completed in 5428 milliseconds

1234567891011>>