Searched refs:rptr (Results 1 - 25 of 36) sorted by relevance

12

/drivers/video/fbdev/
H A Dmaxinefb.c77 unsigned char *rptr; local
80 rptr = regs + 0x80000 + (regno << 4);
81 j = *((volatile unsigned short *) rptr);
/drivers/gpu/drm/radeon/
H A Dradeon_ring.c37 * There is a rptr (read pointer) that determines where the
80 uint32_t rptr = radeon_ring_get_rptr(rdev, ring); local
83 ring->ring_free_dw = rptr + (ring->ring_size / 4);
232 * Update the last rptr value and timestamp (all asics).
249 uint32_t rptr = radeon_ring_get_rptr(rdev, ring); local
253 if (rptr != atomic_read(&ring->last_rptr)) {
303 /* no way to read back the next rptr */
369 * @rptr_offs: offset of the rptr writeback location in the WB buffer
468 uint32_t rptr, wptr, rptr_next; local
478 rptr
[all...]
H A Dni_dma.c51 * Get the current rptr from the hardware (cayman+).
56 u32 rptr, reg; local
59 rptr = rdev->wb.wb[ring->rptr_offs/4];
66 rptr = RREG32(reg);
69 return (rptr & 0x3fffc) >> 2;
H A Dr600_dma.c49 * Get the current rptr from the hardware (r6xx+).
54 u32 rptr; local
57 rptr = rdev->wb.wb[ring->rptr_offs/4];
59 rptr = RREG32(DMA_RB_RPTR);
61 return (rptr & 0x3fffc) >> 2;
H A Dr600.c2540 u32 rptr; local
2543 rptr = rdev->wb.wb[ring->rptr_offs/4];
2545 rptr = RREG32(R600_CP_RB_RPTR);
2547 return rptr;
2717 DRM_ERROR("failed to get scratch reg for rptr save (%d).\n", r);
3346 * increments the rptr. When the rptr catches up with the wptr, all the
3359 rdev->ih.rptr = 0;
3495 /* set rptr, wptr to 0 */
3499 rdev->ih.rptr
3976 u32 rptr; local
[all...]
H A Dcik_sdma.c61 * Get the current rptr from the hardware (CIK+).
66 u32 rptr, reg; local
69 rptr = rdev->wb.wb[ring->rptr_offs/4];
76 rptr = RREG32(reg);
79 return (rptr & 0x3fffc) >> 2;
H A Dradeon_vce.c708 uint32_t rptr = vce_v1_0_get_rptr(rdev, ring); local
722 if (vce_v1_0_get_rptr(rdev, ring) != rptr)
/drivers/gpu/drm/qxl/
H A Dqxl_object.c148 void *rptr; local
166 rptr = bo->kptr + (page_offset * PAGE_SIZE);
167 return rptr;
170 ret = qxl_bo_kmap(bo, &rptr);
174 rptr += page_offset * PAGE_SIZE;
175 return rptr;
/drivers/gpu/drm/msm/adreno/
H A Dadreno_gpu.c73 gpu_write(gpu, REG_AXXX_CP_RB_RPTR_ADDR, rbmemptr(adreno_gpu, rptr));
107 adreno_gpu->memptrs->rptr = 0;
205 if (spin_until(adreno_gpu->memptrs->rptr == wptr))
224 seq_printf(m, "rptr: %d\n", adreno_gpu->memptrs->rptr);
260 printk("rptr: %d\n", adreno_gpu->memptrs->rptr);
283 uint32_t rptr = adreno_gpu->memptrs->rptr; local
284 return (rptr
[all...]
H A Dadreno_gpu.h54 volatile uint32_t rptr; member in struct:adreno_rbmemptrs
73 /* ringbuffer rptr/wptr: */
/drivers/staging/media/lirc/
H A Dlirc_parallel.c84 static unsigned int rptr; variable
211 if (nwptr == rptr) {
338 if (rptr != wptr) {
339 if (copy_to_user(buf+count, (char *) &rbuf[rptr],
344 rptr = (rptr + 1) & (RBUF_SIZE - 1);
457 if (rptr != wptr)
523 rptr = 0;
/drivers/net/ppp/
H A Dppp_deflate.c49 static int z_compress(void *state, unsigned char *rptr,
180 * @rptr: uncompressed packet (input)
188 static int z_compress(void *arg, unsigned char *rptr, unsigned char *obuf, argument
198 proto = PPP_PROTOCOL(rptr);
212 wptr[0] = PPP_ADDRESS(rptr);
213 wptr[1] = PPP_CONTROL(rptr);
224 rptr += off;
225 state->strm.next_in = rptr;
H A Dbsd_comp.c184 static int bsd_compress (void *state, unsigned char *rptr,
563 static int bsd_compress (void *state, unsigned char *rptr, unsigned char *obuf, argument
615 ent = PPP_PROTOCOL(rptr);
641 *wptr++ = PPP_ADDRESS(rptr);
642 *wptr++ = PPP_CONTROL(rptr);
650 rptr += PPP_HDRLEN;
656 c = *rptr++;
/drivers/infiniband/hw/cxgb3/
H A Dcxio_hal.c76 u32 rptr; local
92 if (Q_PTR2IDX((cq->rptr), cq->size_log2) != ret) {
95 rptr = cq->rptr;
98 * Keep the generation correct by bumping rptr until it
101 while (Q_PTR2IDX((rptr+1), cq->size_log2) != ret)
102 rptr++;
105 * Now rptr is the index for the (last) cqe that was
109 cqe = cq->queue + Q_PTR2IDX(rptr, cq->size_log2);
110 while (!CQ_VLD_ENTRY(rptr, c
1119 u32 rptr = wq->oldest_read - wq->sq + 1; local
[all...]
H A Dcxio_wr.h46 #define Q_EMPTY(rptr,wptr) ((rptr)==(wptr))
47 #define Q_FULL(rptr,wptr,size_log2) ( (((wptr)-(rptr))>>(size_log2)) && \
48 ((rptr)!=(wptr)) )
50 #define Q_FREECNT(rptr,wptr,size_log2) ((1UL<<size_log2)-((wptr)-(rptr)))
51 #define Q_COUNT(rptr,wptr) ((wptr)-(rptr))
717 u32 rptr; member in struct:t3_cq
[all...]
H A Dcxio_hal.h69 u32 rptr; member in struct:cxio_hal_ctrl_qp
H A Diwch_provider.c263 if (cqe < Q_COUNT(chp->cq.rptr, chp->cq.wptr)) {
320 u32 rptr; local
329 if (get_user(rptr, chp->user_rptr_addr))
332 chp->cq.rptr = rptr;
335 PDBG("%s rptr 0x%x\n", __func__, chp->cq.rptr);
/drivers/i2c/busses/
H A Di2c-cpm.c313 int rptr; local
335 rptr = 0;
347 dev_dbg(&adap->dev, "R: %d T: %d\n", rptr, tptr);
349 cpm_i2c_parse_message(adap, pmsg, num, tptr, rptr);
351 rptr++;
364 rptr = 0;
373 !(in_be16(&rbdf[rptr].cbd_sc) & BD_SC_EMPTY),
386 ret = cpm_i2c_check_message(adap, pmsg, tptr, rptr);
389 rptr++;
/drivers/net/ethernet/tehuti/
H A Dtehuti.c171 f->rptr = 0;
1227 size = f->m.wptr - f->m.rptr;
1233 rxdd = (struct rxd_desc *)(f->m.va + f->m.rptr);
1248 f->m.rptr += tmp_len;
1250 tmp_len = f->m.rptr - f->m.memsz;
1252 f->m.rptr = tmp_len;
1254 DBG("wrapped desc rptr=%d tmp_len=%d\n",
1255 f->m.rptr, tmp_len);
1309 WRITE_REG(priv, f->m.reg_RPTR, f->m.rptr & TXF_WPTR_WR_PTR);
1384 int taken = db->wptr - db->rptr;
[all...]
H A Dtehuti.h146 u32 rptr, wptr; /* cached values of RPTR and WPTR registers, member in struct:fifo
201 struct tx_map *rptr; /* points to the next element to read */ member in struct:txdb
/drivers/infiniband/hw/cxgb4/
H A Dcq.c314 u32 rptr = wq->sq.oldest_read - wq->sq.sw_sq + 1; local
316 if (rptr == wq->sq.size)
317 rptr = 0;
318 while (rptr != wq->sq.pidx) {
319 wq->sq.oldest_read = &wq->sq.sw_sq[rptr];
323 if (++rptr == wq->sq.size)
324 rptr = 0;
/drivers/tty/
H A Dmoxa.c275 u16 rptr, wptr, mask, len; local
278 rptr = readw(ofsAddr + RXrptr);
281 len = (wptr - rptr) & mask;
1997 u16 rptr, wptr, mask; local
1999 rptr = readw(ofsAddr + TXrptr);
2002 return (wptr - rptr) & mask;
2008 u16 rptr, wptr, mask; local
2010 rptr = readw(ofsAddr + TXrptr);
2013 return mask - ((wptr - rptr) & mask);
2019 u16 rptr, wpt local
[all...]
/drivers/parisc/
H A Dsba_iommu.c202 unsigned long *rptr = (unsigned long *) &(ioc->res_map[(pide >>3) & ~(sizeof(unsigned long) - 1)]); local
207 rptr, pide & (BITS_PER_LONG - 1), *rptr);
233 u32 *rptr = (u32 *) ioc->res_map; /* resource map ptr */ local
237 while (rptr < rptr_end) {
238 u32 rval = *rptr;
258 rptr++; /* look at next word of res_map */
/drivers/isdn/i4l/
H A Disdn_bsdcomp.c466 unsigned char *rptr = skb_in->data; local
512 c = *rptr++;
/drivers/usb/gadget/udc/
H A Dfsl_qe_udc.h120 u32 rptr; member in struct:usb_device_para

Completed in 390 milliseconds

12