Home
last modified time | relevance | path

Searched refs:rptr (Results 1 – 45 of 45) sorted by relevance

/linux-4.1.27/arch/m68k/include/asm/
Dm68360_pram.h89 unsigned long rptr; /* Rx internal data pointer */ member
149 unsigned long rptr; /* Rx internal data pointer */ member
201 unsigned long rptr; /* Rx internal data pointer */ member
252 unsigned long rptr; /* Rx internal data pointer */ member
270 unsigned long rptr; /* Rx internal data pointer */ member
294 unsigned long rptr; /* Rx internal data pointer */ member
323 unsigned long rptr; /* Rx internal data pointer */ member
400 unsigned long rptr; /* Rx internal data pointer */ member
/linux-4.1.27/sound/pci/riptide/
Driptide.c815 union cmdret rptr = CMDRET_ZERO; in writearm() local
819 SEND_RMEM(cif, 0x02, addr, &rptr); in writearm()
820 rptr.retlongs[0] &= (~mask); in writearm()
824 SEND_WMEM(cif, 0x02, (rptr.retlongs[0] | data)); in writearm()
825 SEND_RMEM(cif, 0x02, addr, &rptr); in writearm()
826 if ((rptr.retlongs[0] & data) == data) { in writearm()
830 rptr.retlongs[0] &= ~mask; in writearm()
941 union cmdret rptr = CMDRET_ZERO; in setmixer() local
947 SEND_RDGV(cif, num, num, &rptr); in setmixer()
948 if (rptr.retwords[0] == lval && rptr.retwords[1] == rval) in setmixer()
[all …]
/linux-4.1.27/drivers/gpu/drm/radeon/
Dradeon_ring.c80 uint32_t rptr = radeon_ring_get_rptr(rdev, ring); in radeon_ring_free_size() local
83 ring->ring_free_dw = rptr + (ring->ring_size / 4); in radeon_ring_free_size()
249 uint32_t rptr = radeon_ring_get_rptr(rdev, ring); in radeon_ring_test_lockup() local
253 if (rptr != atomic_read(&ring->last_rptr)) { in radeon_ring_test_lockup()
468 uint32_t rptr, wptr, rptr_next; in radeon_debugfs_ring_info() local
478 rptr = radeon_ring_get_rptr(rdev, ring); in radeon_debugfs_ring_info()
480 rptr, rptr); in radeon_debugfs_ring_info()
504 i = (rptr + ring->ptr_mask + 1 - 32) & ring->ptr_mask; in radeon_debugfs_ring_info()
507 if (rptr == i) in radeon_debugfs_ring_info()
Dr600_dma.c54 u32 rptr; in r600_dma_get_rptr() local
57 rptr = rdev->wb.wb[ring->rptr_offs/4]; in r600_dma_get_rptr()
59 rptr = RREG32(DMA_RB_RPTR); in r600_dma_get_rptr()
61 return (rptr & 0x3fffc) >> 2; in r600_dma_get_rptr()
Dni_dma.c56 u32 rptr, reg; in cayman_dma_get_rptr() local
59 rptr = rdev->wb.wb[ring->rptr_offs/4]; in cayman_dma_get_rptr()
66 rptr = RREG32(reg); in cayman_dma_get_rptr()
69 return (rptr & 0x3fffc) >> 2; in cayman_dma_get_rptr()
Dcik_sdma.c66 u32 rptr, reg; in cik_sdma_get_rptr() local
69 rptr = rdev->wb.wb[ring->rptr_offs/4]; in cik_sdma_get_rptr()
76 rptr = RREG32(reg); in cik_sdma_get_rptr()
79 return (rptr & 0x3fffc) >> 2; in cik_sdma_get_rptr()
Dr600.c2567 u32 rptr; in r600_gfx_get_rptr() local
2570 rptr = rdev->wb.wb[ring->rptr_offs/4]; in r600_gfx_get_rptr()
2572 rptr = RREG32(R600_CP_RB_RPTR); in r600_gfx_get_rptr()
2574 return rptr; in r600_gfx_get_rptr()
3382 rdev->ih.rptr = 0; in r600_ih_ring_init()
3522 rdev->ih.rptr = 0; in r600_disable_interrupts()
3960 wptr, rdev->ih.rptr, (wptr + 16) & rdev->ih.ptr_mask); in r600_get_ih_wptr()
3961 rdev->ih.rptr = (wptr + 16) & rdev->ih.ptr_mask; in r600_get_ih_wptr()
4002 u32 rptr; in r600_irq_process() local
4023 rptr = rdev->ih.rptr; in r600_irq_process()
[all …]
Dni.c1458 u32 rptr; in cayman_gfx_get_rptr() local
1461 rptr = rdev->wb.wb[ring->rptr_offs/4]; in cayman_gfx_get_rptr()
1464 rptr = RREG32(CP_RB0_RPTR); in cayman_gfx_get_rptr()
1466 rptr = RREG32(CP_RB1_RPTR); in cayman_gfx_get_rptr()
1468 rptr = RREG32(CP_RB2_RPTR); in cayman_gfx_get_rptr()
1471 return rptr; in cayman_gfx_get_rptr()
Dcik.c4510 u32 rptr; in cik_gfx_get_rptr() local
4513 rptr = rdev->wb.wb[ring->rptr_offs/4]; in cik_gfx_get_rptr()
4515 rptr = RREG32(CP_RB0_RPTR); in cik_gfx_get_rptr()
4517 return rptr; in cik_gfx_get_rptr()
4540 u32 rptr; in cik_compute_get_rptr() local
4543 rptr = rdev->wb.wb[ring->rptr_offs/4]; in cik_compute_get_rptr()
4547 rptr = RREG32(CP_HQD_PQ_RPTR); in cik_compute_get_rptr()
4552 return rptr; in cik_compute_get_rptr()
7268 rdev->ih.rptr = 0; in cik_disable_interrupts()
7852 wptr, rdev->ih.rptr, (wptr + 16) & rdev->ih.ptr_mask); in cik_get_ih_wptr()
[all …]
Dradeon_vce.c740 uint32_t rptr = vce_v1_0_get_rptr(rdev, ring); in radeon_vce_ring_test() local
754 if (vce_v1_0_get_rptr(rdev, ring) != rptr) in radeon_vce_ring_test()
Devergreen.c4978 wptr, rdev->ih.rptr, (wptr + 16) & rdev->ih.ptr_mask); in evergreen_get_ih_wptr()
4979 rdev->ih.rptr = (wptr + 16) & rdev->ih.ptr_mask; in evergreen_get_ih_wptr()
4990 u32 rptr; in evergreen_irq_process() local
5009 rptr = rdev->ih.rptr; in evergreen_irq_process()
5010 DRM_DEBUG("evergreen_irq_process start: rptr %d, wptr %d\n", rptr, wptr); in evergreen_irq_process()
5018 while (rptr != wptr) { in evergreen_irq_process()
5020 ring_index = rptr / 4; in evergreen_irq_process()
5447 rptr += 16; in evergreen_irq_process()
5448 rptr &= rdev->ih.ptr_mask; in evergreen_irq_process()
5449 WREG32(IH_RB_RPTR, rptr); in evergreen_irq_process()
[all …]
Dsi.c5929 rdev->ih.rptr = 0; in si_disable_interrupts()
6409 wptr, rdev->ih.rptr, (wptr + 16) & rdev->ih.ptr_mask); in si_get_ih_wptr()
6410 rdev->ih.rptr = (wptr + 16) & rdev->ih.ptr_mask; in si_get_ih_wptr()
6431 u32 rptr; in si_irq_process() local
6449 rptr = rdev->ih.rptr; in si_irq_process()
6450 DRM_DEBUG("si_irq_process start: rptr %d, wptr %d\n", rptr, wptr); in si_irq_process()
6458 while (rptr != wptr) { in si_irq_process()
6460 ring_index = rptr / 4; in si_irq_process()
6844 rptr += 16; in si_irq_process()
6845 rptr &= rdev->ih.ptr_mask; in si_irq_process()
[all …]
Dr100.c1059 u32 rptr; in r100_gfx_get_rptr() local
1062 rptr = le32_to_cpu(rdev->wb.wb[ring->rptr_offs/4]); in r100_gfx_get_rptr()
1064 rptr = RREG32(RADEON_CP_RB_RPTR); in r100_gfx_get_rptr()
1066 return rptr; in r100_gfx_get_rptr()
Dradeon.h984 unsigned rptr; member
/linux-4.1.27/drivers/infiniband/hw/cxgb3/
Dcxio_wr.h46 #define Q_EMPTY(rptr,wptr) ((rptr)==(wptr)) argument
47 #define Q_FULL(rptr,wptr,size_log2) ( (((wptr)-(rptr))>>(size_log2)) && \ argument
48 ((rptr)!=(wptr)) )
50 #define Q_FREECNT(rptr,wptr,size_log2) ((1UL<<size_log2)-((wptr)-(rptr))) argument
51 #define Q_COUNT(rptr,wptr) ((wptr)-(rptr)) argument
717 u32 rptr; member
771 cqe = cq->queue + (Q_PTR2IDX(cq->rptr, cq->size_log2)); in cxio_next_hw_cqe()
772 if (CQ_VLD_ENTRY(cq->rptr, cq->size_log2, cqe)) in cxio_next_hw_cqe()
796 cqe = cq->queue + (Q_PTR2IDX(cq->rptr, cq->size_log2)); in cxio_next_cqe()
797 if (CQ_VLD_ENTRY(cq->rptr, cq->size_log2, cqe)) in cxio_next_cqe()
Dcxio_hal.c76 u32 rptr; in cxio_hal_cq_op() local
92 if (Q_PTR2IDX((cq->rptr), cq->size_log2) != ret) { in cxio_hal_cq_op()
95 rptr = cq->rptr; in cxio_hal_cq_op()
101 while (Q_PTR2IDX((rptr+1), cq->size_log2) != ret) in cxio_hal_cq_op()
102 rptr++; in cxio_hal_cq_op()
109 cqe = cq->queue + Q_PTR2IDX(rptr, cq->size_log2); in cxio_hal_cq_op()
110 while (!CQ_VLD_ENTRY(rptr, cq->size_log2, cqe)) { in cxio_hal_cq_op()
436 __func__, cq->rptr, cq->sw_wptr); in cxio_flush_hw_cq()
441 cq->rptr++; in cxio_flush_hw_cq()
609 __func__, rdev_p->ctrl_qp.wptr, rdev_p->ctrl_qp.rptr, len, in cxio_hal_ctrl_qp_write_mem()
[all …]
Diwch_provider.c263 if (cqe < Q_COUNT(chp->cq.rptr, chp->cq.wptr)) { in iwch_resize_cq()
320 u32 rptr; in iwch_arm_cq() local
329 if (get_user(rptr, chp->user_rptr_addr)) in iwch_arm_cq()
332 chp->cq.rptr = rptr; in iwch_arm_cq()
335 PDBG("%s rptr 0x%x\n", __func__, chp->cq.rptr); in iwch_arm_cq()
Dcxio_hal.h69 u32 rptr; member
/linux-4.1.27/drivers/video/fbdev/
Dmaxinefb.c77 unsigned char *rptr; in maxinefb_ims332_read_register() local
80 rptr = regs + 0x80000 + (regno << 4); in maxinefb_ims332_read_register()
81 j = *((volatile unsigned short *) rptr); in maxinefb_ims332_read_register()
/linux-4.1.27/drivers/net/ethernet/tehuti/
Dtehuti.c171 f->rptr = 0; in bdx_fifo_init()
1227 size = f->m.wptr - f->m.rptr; in bdx_rx_receive()
1233 rxdd = (struct rxd_desc *)(f->m.va + f->m.rptr); in bdx_rx_receive()
1248 f->m.rptr += tmp_len; in bdx_rx_receive()
1250 tmp_len = f->m.rptr - f->m.memsz; in bdx_rx_receive()
1252 f->m.rptr = tmp_len; in bdx_rx_receive()
1255 f->m.rptr, tmp_len); in bdx_rx_receive()
1309 WRITE_REG(priv, f->m.reg_RPTR, f->m.rptr & TXF_WPTR_WR_PTR); in bdx_rx_receive()
1384 int taken = db->wptr - db->rptr; in bdx_tx_db_size()
1400 BDX_ASSERT(*pptr != db->rptr && /* expect either read */ in __bdx_tx_db_ptr_next()
[all …]
Dtehuti.h146 u32 rptr, wptr; /* cached values of RPTR and WPTR registers, member
201 struct tx_map *rptr; /* points to the next element to read */ member
/linux-4.1.27/drivers/gpu/drm/msm/adreno/
Dadreno_gpu.c76 rbmemptr(adreno_gpu, rptr)); in adreno_hw_init()
111 adreno_gpu->memptrs->rptr = 0; in adreno_recover()
210 if (spin_until(adreno_gpu->memptrs->rptr == wptr)) in adreno_idle()
229 seq_printf(m, "rptr: %d\n", adreno_gpu->memptrs->rptr); in adreno_show()
265 printk("rptr: %d\n", adreno_gpu->memptrs->rptr); in adreno_dump()
288 uint32_t rptr = adreno_gpu->memptrs->rptr; in ring_freewords() local
289 return (rptr + (size - 1) - wptr) % size; in ring_freewords()
Dadreno_gpu.h131 volatile uint32_t rptr; member
/linux-4.1.27/drivers/staging/media/lirc/
Dlirc_parallel.c84 static unsigned int rptr; variable
211 if (nwptr == rptr) { in rbuf_write()
338 if (rptr != wptr) { in lirc_read()
339 if (copy_to_user(buf+count, &rbuf[rptr], in lirc_read()
344 rptr = (rptr + 1) & (RBUF_SIZE - 1); in lirc_read()
457 if (rptr != wptr) in lirc_poll()
523 rptr = 0; in lirc_open()
/linux-4.1.27/drivers/net/ppp/
Dppp_deflate.c49 static int z_compress(void *state, unsigned char *rptr,
188 static int z_compress(void *arg, unsigned char *rptr, unsigned char *obuf, in z_compress() argument
198 proto = PPP_PROTOCOL(rptr); in z_compress()
212 wptr[0] = PPP_ADDRESS(rptr); in z_compress()
213 wptr[1] = PPP_CONTROL(rptr); in z_compress()
224 rptr += off; in z_compress()
225 state->strm.next_in = rptr; in z_compress()
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, in bsd_compress() argument
615 ent = PPP_PROTOCOL(rptr); in bsd_compress()
641 *wptr++ = PPP_ADDRESS(rptr); in bsd_compress()
642 *wptr++ = PPP_CONTROL(rptr); in bsd_compress()
650 rptr += PPP_HDRLEN; in bsd_compress()
656 c = *rptr++; in bsd_compress()
/linux-4.1.27/drivers/gpu/drm/qxl/
Dqxl_object.c148 void *rptr; in qxl_bo_kmap_atomic_page() local
166 rptr = bo->kptr + (page_offset * PAGE_SIZE); in qxl_bo_kmap_atomic_page()
167 return rptr; in qxl_bo_kmap_atomic_page()
170 ret = qxl_bo_kmap(bo, &rptr); in qxl_bo_kmap_atomic_page()
174 rptr += page_offset * PAGE_SIZE; in qxl_bo_kmap_atomic_page()
175 return rptr; in qxl_bo_kmap_atomic_page()
/linux-4.1.27/drivers/i2c/busses/
Di2c-cpm.c313 int rptr; in cpm_i2c_xfer() local
325 rptr = 0; in cpm_i2c_xfer()
337 dev_dbg(&adap->dev, "R: %d T: %d\n", rptr, tptr); in cpm_i2c_xfer()
339 cpm_i2c_parse_message(adap, pmsg, num, tptr, rptr); in cpm_i2c_xfer()
341 rptr++; in cpm_i2c_xfer()
354 rptr = 0; in cpm_i2c_xfer()
363 !(in_be16(&rbdf[rptr].cbd_sc) & BD_SC_EMPTY), in cpm_i2c_xfer()
376 ret = cpm_i2c_check_message(adap, pmsg, tptr, rptr); in cpm_i2c_xfer()
379 rptr++; in cpm_i2c_xfer()
/linux-4.1.27/arch/powerpc/kernel/
Dalign.c244 unsigned long *rptr; in emulate_multiple() local
297 rptr = &regs->gpr[reg]; in emulate_multiple()
307 memset(rptr, 0, ((nb + 3) / 4) * sizeof(unsigned long)); in emulate_multiple()
313 if (__get_user_inatomic(REG_BYTE(rptr, i ^ bswiz), in emulate_multiple()
317 rptr = &regs->gpr[0]; in emulate_multiple()
320 if (__get_user_inatomic(REG_BYTE(rptr, in emulate_multiple()
328 if (__put_user_inatomic(REG_BYTE(rptr, i ^ bswiz), in emulate_multiple()
332 rptr = &regs->gpr[0]; in emulate_multiple()
335 if (__put_user_inatomic(REG_BYTE(rptr, in emulate_multiple()
/linux-4.1.27/drivers/gpu/drm/amd/amdkfd/
Dkfd_kernel_queue.c208 uint32_t wptr, rptr; in acquire_packet_buffer() local
213 rptr = *kq->rptr_kernel; in acquire_packet_buffer()
219 __func__, rptr, wptr, queue_address); in acquire_packet_buffer()
221 available_size = (rptr - 1 - wptr + queue_size_dwords) % in acquire_packet_buffer()
/linux-4.1.27/fs/xfs/libxfs/
Dxfs_btree.c2160 union xfs_btree_ptr rptr; /* right block pointer */ in xfs_btree_rshift() local
2184 xfs_btree_get_sibling(cur, left, &rptr, XFS_BB_RIGHTSIB); in xfs_btree_rshift()
2185 if (xfs_btree_ptr_is_null(cur, &rptr)) in xfs_btree_rshift()
2197 error = xfs_btree_read_buf_block(cur, &rptr, 0, &right, &rbp); in xfs_btree_rshift()
2336 union xfs_btree_ptr rptr; /* right sibling block ptr */ in __xfs_btree_split() local
2367 error = cur->bc_ops->alloc_block(cur, &lptr, &rptr, stat); in __xfs_btree_split()
2375 error = xfs_btree_get_buf_block(cur, &rptr, 0, &right, &rbp); in __xfs_btree_split()
2451 xfs_btree_set_sibling(cur, left, &rptr, XFS_BB_RIGHTSIB); in __xfs_btree_split()
2469 xfs_btree_set_sibling(cur, rrblock, &rptr, XFS_BB_LEFTSIB); in __xfs_btree_split()
2491 *ptrp = rptr; in __xfs_btree_split()
[all …]
/linux-4.1.27/include/linux/
Dppp-comp.h53 int (*compress) (void *state, unsigned char *rptr,
/linux-4.1.27/drivers/infiniband/hw/cxgb4/
Dcq.c321 u32 rptr = wq->sq.oldest_read - wq->sq.sw_sq + 1; in advance_oldest_read() local
323 if (rptr == wq->sq.size) in advance_oldest_read()
324 rptr = 0; in advance_oldest_read()
325 while (rptr != wq->sq.pidx) { in advance_oldest_read()
326 wq->sq.oldest_read = &wq->sq.sw_sq[rptr]; in advance_oldest_read()
330 if (++rptr == wq->sq.size) in advance_oldest_read()
331 rptr = 0; in advance_oldest_read()
/linux-4.1.27/drivers/tty/
Dmoxa.c275 u16 rptr, wptr, mask, len; in moxa_low_water_check() local
278 rptr = readw(ofsAddr + RXrptr); in moxa_low_water_check()
281 len = (wptr - rptr) & mask; in moxa_low_water_check()
1997 u16 rptr, wptr, mask; in MoxaPortTxQueue() local
1999 rptr = readw(ofsAddr + TXrptr); in MoxaPortTxQueue()
2002 return (wptr - rptr) & mask; in MoxaPortTxQueue()
2008 u16 rptr, wptr, mask; in MoxaPortTxFree() local
2010 rptr = readw(ofsAddr + TXrptr); in MoxaPortTxFree()
2013 return mask - ((wptr - rptr) & mask); in MoxaPortTxFree()
2019 u16 rptr, wptr, mask; in MoxaPortRxQueue() local
[all …]
/linux-4.1.27/drivers/parisc/
Dsba_iommu.c202 unsigned long *rptr = (unsigned long *) &(ioc->res_map[(pide >>3) & ~(sizeof(unsigned long) - 1)]); in sba_dump_pdir_entry() local
207 rptr, pide & (BITS_PER_LONG - 1), *rptr); in sba_dump_pdir_entry()
233 u32 *rptr = (u32 *) ioc->res_map; /* resource map ptr */ in sba_check_pdir() local
237 while (rptr < rptr_end) { in sba_check_pdir()
238 u32 rval = *rptr; in sba_check_pdir()
258 rptr++; /* look at next word of res_map */ in sba_check_pdir()
/linux-4.1.27/arch/ia64/hp/common/
Dsba_iommu.c321 unsigned long *rptr = (unsigned long *) &ioc->res_map[(pide >>3) & -sizeof(unsigned long)]; in sba_dump_pdir_entry() local
325 msg, rptr, pide & (BITS_PER_LONG - 1), *rptr); in sba_dump_pdir_entry()
351 u64 *rptr = (u64 *) ioc->res_map; /* resource map ptr */ in sba_check_pdir() local
355 while (rptr < rptr_end) { in sba_check_pdir()
359 rval = *rptr; in sba_check_pdir()
379 rptr++; /* look at next word of res_map */ in sba_check_pdir()
/linux-4.1.27/tools/lib/traceevent/
Dkbuffer-parse.c359 translate_data(struct kbuffer *kbuf, void *data, void **rptr, in translate_data() argument
400 *rptr = data; in translate_data()
/linux-4.1.27/drivers/net/ethernet/sgi/
Dmeth.c482 unsigned long rptr = (int_status&TX_INFO_RPTR) >> 16; in meth_tx_cleanup() local
490 while (priv->tx_read != rptr) { in meth_tx_cleanup()
495 DPRINTK("Auchi! tx_read=%d,tx_write=%d,rptr=%d?\n", priv->tx_read, priv->tx_write,rptr); in meth_tx_cleanup()
/linux-4.1.27/drivers/mmc/host/
Ds3cmci.c1487 struct s3cmci_reg *rptr = debug_regs; in s3cmci_regs_show() local
1489 for (; rptr->name; rptr++) in s3cmci_regs_show()
1490 seq_printf(seq, "SDI%s\t=0x%08x\n", rptr->name, in s3cmci_regs_show()
1491 readl(host->base + rptr->addr)); in s3cmci_regs_show()
/linux-4.1.27/drivers/isdn/i4l/
Disdn_bsdcomp.c466 unsigned char *rptr = skb_in->data; in bsd_compress() local
512 c = *rptr++; in bsd_compress()
/linux-4.1.27/drivers/usb/gadget/udc/
Dfsl_qe_udc.h120 u32 rptr; member
/linux-4.1.27/drivers/net/ethernet/sfc/
Def10.c2049 efx_dword_t rptr; in efx_ef10_ev_read_ack() local
2057 EFX_POPULATE_DWORD_2(rptr, ERF_DD_EVQ_IND_RPTR_FLAGS, in efx_ef10_ev_read_ack()
2063 efx_writed_page(efx, &rptr, ER_DD_EVQ_INDIRECT, in efx_ef10_ev_read_ack()
2065 EFX_POPULATE_DWORD_2(rptr, ERF_DD_EVQ_IND_RPTR_FLAGS, in efx_ef10_ev_read_ack()
2070 efx_writed_page(efx, &rptr, ER_DD_EVQ_INDIRECT, in efx_ef10_ev_read_ack()
2073 EFX_POPULATE_DWORD_1(rptr, ERF_DZ_EVQ_RPTR, in efx_ef10_ev_read_ack()
2076 efx_writed_page(efx, &rptr, ER_DZ_EVQ_RPTR, channel->channel); in efx_ef10_ev_read_ack()
/linux-4.1.27/arch/powerpc/include/asm/
Dqe.h530 __be32 rptr; /* Rx internal data pointer */ member
/linux-4.1.27/drivers/s390/net/
Dctcm_mpc.c131 char *ptr, *rptr; in ctcmpc_dumpit() local
139 rptr = ptr = buf; in ctcmpc_dumpit()
144 for (ct = 0; ct < len; ct++, ptr++, rptr++) { in ctcmpc_dumpit()
146 sprintf(addr, "%16.16llx", (__u64)rptr); in ctcmpc_dumpit()
/linux-4.1.27/drivers/net/ethernet/sun/
Dcassini.c4163 u32 wptr, rptr; in cas_link_timer() local
4176 rptr = readl(cp->regs + REG_TX_FIFO_READ_PTR); in cas_link_timer()
4177 if ((val == 0) && (wptr != rptr)) { in cas_link_timer()
4180 val, wptr, rptr); in cas_link_timer()