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

12

/drivers/video/
H A Dmaxinefb.c77 unsigned char *rptr; local
80 rptr = regs + 0x80000 + (regno << 4);
81 j = *((volatile unsigned short *) rptr);
/drivers/staging/media/lirc/
H A Dlirc_parallel.c82 unsigned int rptr; variable
219 if (nwptr == rptr) {
345 if (rptr != wptr) {
346 if (copy_to_user(buf+count, (char *) &rbuf[rptr],
351 rptr = (rptr + 1) & (RBUF_SIZE - 1);
464 if (rptr != wptr)
529 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
1121 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.c262 if (cqe < Q_COUNT(chp->cq.rptr, chp->cq.wptr)) {
319 u32 rptr; local
328 if (get_user(rptr, chp->user_rptr_addr))
331 chp->cq.rptr = rptr;
334 PDBG("%s rptr 0x%x\n", __func__, chp->cq.rptr);
/drivers/net/ethernet/tehuti/
H A Dtehuti.c170 f->rptr = 0;
1214 size = f->m.wptr - f->m.rptr;
1220 rxdd = (struct rxd_desc *)(f->m.va + f->m.rptr);
1235 f->m.rptr += tmp_len;
1237 tmp_len = f->m.rptr - f->m.memsz;
1239 f->m.rptr = tmp_len;
1241 DBG("wrapped desc rptr=%d tmp_len=%d\n",
1242 f->m.rptr, tmp_len);
1296 WRITE_REG(priv, f->m.reg_RPTR, f->m.rptr & TXF_WPTR_WR_PTR);
1371 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/gpu/drm/radeon/
H A Dradeon_ring.c293 u32 rptr; local
296 rptr = le32_to_cpu(rdev->wb.wb[ring->rptr_offs/4]);
298 rptr = RREG32(ring->rptr_reg);
299 ring->rptr = (rptr & ring->ptr_reg_mask) >> ring->ptr_reg_shift;
301 ring->ring_free_dw = (ring->rptr + (ring->ring_size / 4));
456 seq_printf(m, "rptr(0x%04x): 0x%08x\n", ring->rptr_reg, RREG32(ring->rptr_reg));
458 seq_printf(m, "driver's copy of the rptr: 0x%08x\n", ring->rptr);
461 i = ring->rptr;
[all...]
H A Dsi.c2137 ring->rptr = RREG32(CP_RB0_RPTR);
2163 ring->rptr = RREG32(CP_RB1_RPTR);
2189 ring->rptr = RREG32(CP_RB2_RPTR);
2241 ring->rptr = RREG32(ring->rptr_reg);
3101 /* set rptr, wptr to 0 */
3106 rdev->ih.rptr = 0;
3205 /* set rptr, wptr to 0 */
3495 wptr, rdev->ih.rptr, (wptr + 16) + rdev->ih.ptr_mask);
3496 rdev->ih.rptr = (wptr + 16) & rdev->ih.ptr_mask;
3517 u32 rptr; local
[all...]
H A Dr600.c1376 ring->rptr = RREG32(ring->rptr_reg);
2227 ring->rptr = RREG32(CP_RB_RPTR);
2767 * increments the rptr. When the rptr catches up with the wptr, all the
2780 rdev->ih.rptr = 0;
2939 /* set rptr, wptr to 0 */
2944 rdev->ih.rptr = 0;
3034 /* set rptr, wptr to 0 */
3302 wptr, rdev->ih.rptr, (wptr + 16) + rdev->ih.ptr_mask);
3303 rdev->ih.rptr
3344 u32 rptr; local
[all...]
H A Devergreen.c1546 ring->rptr = RREG32(CP_RB_RPTR);
2457 ring->rptr = RREG32(CP_RB_RPTR);
2875 wptr, rdev->ih.rptr, (wptr + 16) + rdev->ih.ptr_mask);
2876 rdev->ih.rptr = (wptr + 16) & rdev->ih.ptr_mask;
2887 u32 rptr; local
2897 rptr = rdev->ih.rptr;
2898 DRM_DEBUG("r600_irq_process start: rptr %d, wptr %d\n", rptr, wptr);
2901 if (rptr
[all...]
H A Dni.c1340 ring->rptr = RREG32(CP_RB0_RPTR);
1366 ring->rptr = RREG32(CP_RB1_RPTR);
1392 ring->rptr = RREG32(CP_RB2_RPTR);
1436 ring->rptr = RREG32(ring->rptr_reg);
H A Dr100.c1119 * the rptr copy in system ram */
1175 ring->rptr = RREG32(RADEON_CP_RB_RPTR);
2160 lockup->last_cp_rptr = ring->rptr;
2171 * have CP rptr to a different value of jiffies wrap around which will force
2175 * the current CP rptr, even if it's unlikely it might happen. To avoid this
2192 lockup->last_cp_rptr = ring->rptr;
2196 if (ring->rptr != lockup->last_cp_rptr) {
2198 lockup->last_cp_rptr = ring->rptr;
2229 ring->rptr = RREG32(ring->rptr_reg);
2679 seq_printf(m, "Ring rptr
[all...]
/drivers/i2c/busses/
H A Di2c-cpm.c317 int rptr; local
339 rptr = 0;
343 dev_dbg(&adap->dev, "R: %d T: %d\n", rptr, tptr);
345 cpm_i2c_parse_message(adap, pmsg, num, tptr, rptr);
347 rptr++;
360 rptr = 0;
369 !(in_be16(&rbdf[rptr].cbd_sc) & BD_SC_EMPTY),
382 ret = cpm_i2c_check_message(adap, pmsg, tptr, rptr);
385 rptr++;
/drivers/infiniband/hw/cxgb4/
H A Dcq.c371 u32 rptr = wq->sq.oldest_read - wq->sq.sw_sq + 1; local
373 if (rptr == wq->sq.size)
374 rptr = 0;
375 while (rptr != wq->sq.pidx) {
376 wq->sq.oldest_read = &wq->sq.sw_sq[rptr];
380 if (++rptr == wq->sq.size)
381 rptr = 0;
/drivers/tty/
H A Dmoxa.c274 u16 rptr, wptr, mask, len; local
277 rptr = readw(ofsAddr + RXrptr);
280 len = (wptr - rptr) & mask;
1983 u16 rptr, wptr, mask; local
1985 rptr = readw(ofsAddr + TXrptr);
1988 return (wptr - rptr) & mask;
1994 u16 rptr, wptr, mask; local
1996 rptr = readw(ofsAddr + TXrptr);
1999 return mask - ((wptr - rptr) & mask);
2005 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/
H A Dfsl_qe_udc.h120 u32 rptr; member in struct:usb_device_para
/drivers/net/ethernet/sgi/
H A Dmeth.c483 unsigned long rptr = (int_status&TX_INFO_RPTR) >> 16; local
491 while (priv->tx_read != rptr) {
496 DPRINTK("Auchi! tx_read=%d,tx_write=%d,rptr=%d?\n", priv->tx_read, priv->tx_write,rptr);
/drivers/mmc/host/
H A Ds3cmci.c1485 struct s3cmci_reg *rptr = debug_regs; local
1487 for (; rptr->name; rptr++)
1488 seq_printf(seq, "SDI%s\t=0x%08x\n", rptr->name,
1489 readl(host->base + rptr->addr));
/drivers/s390/net/
H A Dctcm_mpc.c133 char *ptr, *rptr; local
145 rptr = ptr = buf;
150 for (ct = 0; ct < len; ct++, ptr++, rptr++) {
153 sprintf(addr, "%16.16llx", (__u64)rptr);
155 sprintf(addr, "%8.8X", (__u32)rptr);

Completed in 521 milliseconds

12