/Linux-v4.19/sound/pci/riptide/ |
D | riptide.c | 815 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-v4.19/drivers/gpu/drm/amd/amdgpu/ |
D | tonga_ih.c | 86 adev->irq.ih.rptr = 0; in tonga_ih_disable_interrupts() 212 wptr, adev->irq.ih.rptr, (wptr + 16) & adev->irq.ih.ptr_mask); in tonga_ih_get_wptr() 213 adev->irq.ih.rptr = (wptr + 16) & adev->irq.ih.ptr_mask; in tonga_ih_get_wptr() 230 u32 ring_index = adev->irq.ih.rptr >> 2; in tonga_ih_prescreen_iv() 245 adev->irq.ih.rptr += 16; in tonga_ih_prescreen_iv() 261 u32 ring_index = adev->irq.ih.rptr >> 2; in tonga_ih_decode_iv() 277 adev->irq.ih.rptr += 16; in tonga_ih_decode_iv() 292 adev->irq.ih.ring[adev->irq.ih.rptr_offs] = adev->irq.ih.rptr; in tonga_ih_set_rptr() 294 adev->wb.wb[adev->irq.ih.rptr_offs] = adev->irq.ih.rptr; in tonga_ih_set_rptr() 295 WDOORBELL32(adev->irq.ih.doorbell_index, adev->irq.ih.rptr); in tonga_ih_set_rptr() [all …]
|
D | amdgpu_ih.c | 76 adev->irq.ih.rptr = 0; in amdgpu_ih_ring_init() 164 DRM_DEBUG("%s: rptr %d, wptr %d\n", __func__, adev->irq.ih.rptr, wptr); in amdgpu_ih_process() 169 while (adev->irq.ih.rptr != wptr) { in amdgpu_ih_process() 170 u32 ring_index = adev->irq.ih.rptr >> 2; in amdgpu_ih_process() 174 adev->irq.ih.rptr &= adev->irq.ih.ptr_mask; in amdgpu_ih_process() 185 adev->irq.ih.rptr &= adev->irq.ih.ptr_mask; in amdgpu_ih_process() 194 if (wptr != adev->irq.ih.rptr) in amdgpu_ih_process()
|
D | cik_ih.c | 90 adev->irq.ih.rptr = 0; in cik_ih_disable_interrupts() 199 wptr, adev->irq.ih.rptr, (wptr + 16) & adev->irq.ih.ptr_mask); in cik_ih_get_wptr() 200 adev->irq.ih.rptr = (wptr + 16) & adev->irq.ih.ptr_mask; in cik_ih_get_wptr() 240 u32 ring_index = adev->irq.ih.rptr >> 2; in cik_ih_prescreen_iv() 255 adev->irq.ih.rptr += 16; in cik_ih_prescreen_iv() 271 u32 ring_index = adev->irq.ih.rptr >> 2; in cik_ih_decode_iv() 287 adev->irq.ih.rptr += 16; in cik_ih_decode_iv() 299 WREG32(mmIH_RB_RPTR, adev->irq.ih.rptr); in cik_ih_set_rptr()
|
D | cz_ih.c | 90 adev->irq.ih.rptr = 0; in cz_ih_disable_interrupts() 201 wptr, adev->irq.ih.rptr, (wptr + 16) & adev->irq.ih.ptr_mask); in cz_ih_get_wptr() 202 adev->irq.ih.rptr = (wptr + 16) & adev->irq.ih.ptr_mask; in cz_ih_get_wptr() 219 u32 ring_index = adev->irq.ih.rptr >> 2; in cz_ih_prescreen_iv() 234 adev->irq.ih.rptr += 16; in cz_ih_prescreen_iv() 250 u32 ring_index = adev->irq.ih.rptr >> 2; in cz_ih_decode_iv() 266 adev->irq.ih.rptr += 16; in cz_ih_decode_iv() 278 WREG32(mmIH_RB_RPTR, adev->irq.ih.rptr); in cz_ih_set_rptr()
|
D | iceland_ih.c | 90 adev->irq.ih.rptr = 0; in iceland_ih_disable_interrupts() 201 wptr, adev->irq.ih.rptr, (wptr + 16) & adev->irq.ih.ptr_mask); in iceland_ih_get_wptr() 202 adev->irq.ih.rptr = (wptr + 16) & adev->irq.ih.ptr_mask; in iceland_ih_get_wptr() 219 u32 ring_index = adev->irq.ih.rptr >> 2; in iceland_ih_prescreen_iv() 234 adev->irq.ih.rptr += 16; in iceland_ih_prescreen_iv() 250 u32 ring_index = adev->irq.ih.rptr >> 2; in iceland_ih_decode_iv() 266 adev->irq.ih.rptr += 16; in iceland_ih_decode_iv() 278 WREG32(mmIH_RB_RPTR, adev->irq.ih.rptr); in iceland_ih_set_rptr()
|
D | vega10_ih.c | 73 adev->irq.ih.rptr = 0; in vega10_ih_disable_interrupts() 212 wptr, adev->irq.ih.rptr, tmp); in vega10_ih_get_wptr() 213 adev->irq.ih.rptr = tmp; in vega10_ih_get_wptr() 231 u32 ring_index = adev->irq.ih.rptr >> 2; in vega10_ih_prescreen_iv() 301 adev->irq.ih.rptr += 32; in vega10_ih_prescreen_iv() 317 u32 ring_index = adev->irq.ih.rptr >> 2; in vega10_ih_decode_iv() 345 adev->irq.ih.rptr += 32; in vega10_ih_decode_iv() 360 adev->irq.ih.ring[adev->irq.ih.rptr_offs] = adev->irq.ih.rptr; in vega10_ih_set_rptr() 362 adev->wb.wb[adev->irq.ih.rptr_offs] = adev->irq.ih.rptr; in vega10_ih_set_rptr() 363 WDOORBELL32(adev->irq.ih.doorbell_index, adev->irq.ih.rptr); in vega10_ih_set_rptr() [all …]
|
D | si_ih.c | 55 adev->irq.ih.rptr = 0; in si_ih_disable_interrupts() 112 wptr, adev->irq.ih.rptr, (wptr + 16) & adev->irq.ih.ptr_mask); in si_ih_get_wptr() 113 adev->irq.ih.rptr = (wptr + 16) & adev->irq.ih.ptr_mask; in si_ih_get_wptr() 137 u32 ring_index = adev->irq.ih.rptr >> 2; in si_ih_decode_iv() 151 adev->irq.ih.rptr += 16; in si_ih_decode_iv() 156 WREG32(IH_RB_RPTR, adev->irq.ih.rptr); in si_ih_set_rptr()
|
/Linux-v4.19/drivers/gpu/drm/radeon/ |
D | radeon_ring.c | 80 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()
|
D | r600_dma.c | 54 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()
|
D | ni_dma.c | 56 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()
|
/Linux-v4.19/drivers/infiniband/hw/cxgb3/ |
D | cxio_wr.h | 46 #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()
|
D | cxio_hal.c | 76 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() 432 __func__, cq->rptr, cq->sw_wptr); in cxio_flush_hw_cq() 437 cq->rptr++; in cxio_flush_hw_cq() 604 __func__, rdev_p->ctrl_qp.wptr, rdev_p->ctrl_qp.rptr, len, in cxio_hal_ctrl_qp_write_mem() [all …]
|
/Linux-v4.19/drivers/net/ethernet/tehuti/ |
D | tehuti.c | 171 f->rptr = 0; in bdx_fifo_init() 1217 size = f->m.wptr - f->m.rptr; in bdx_rx_receive() 1223 rxdd = (struct rxd_desc *)(f->m.va + f->m.rptr); in bdx_rx_receive() 1238 f->m.rptr += tmp_len; in bdx_rx_receive() 1240 tmp_len = f->m.rptr - f->m.memsz; in bdx_rx_receive() 1242 f->m.rptr = tmp_len; in bdx_rx_receive() 1245 f->m.rptr, tmp_len); in bdx_rx_receive() 1299 WRITE_REG(priv, f->m.reg_RPTR, f->m.rptr & TXF_WPTR_WR_PTR); in bdx_rx_receive() 1374 int taken = db->wptr - db->rptr; in bdx_tx_db_size() 1390 BDX_ASSERT(*pptr != db->rptr && /* expect either read */ in __bdx_tx_db_ptr_next() [all …]
|
/Linux-v4.19/drivers/video/fbdev/ |
D | maxinefb.c | 77 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-v4.19/drivers/net/ppp/ |
D | ppp_deflate.c | 49 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()
|
D | bsd_comp.c | 184 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-v4.19/drivers/gpu/drm/qxl/ |
D | qxl_object.c | 148 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-v4.19/drivers/i2c/busses/ |
D | i2c-cpm.c | 311 int rptr; in cpm_i2c_xfer() local 323 rptr = 0; in cpm_i2c_xfer() 335 dev_dbg(&adap->dev, "R: %d T: %d\n", rptr, tptr); in cpm_i2c_xfer() 337 cpm_i2c_parse_message(adap, pmsg, num, tptr, rptr); in cpm_i2c_xfer() 339 rptr++; in cpm_i2c_xfer() 352 rptr = 0; in cpm_i2c_xfer() 361 !(in_be16(&rbdf[rptr].cbd_sc) & BD_SC_EMPTY), in cpm_i2c_xfer() 374 ret = cpm_i2c_check_message(adap, pmsg, tptr, rptr); in cpm_i2c_xfer() 377 rptr++; in cpm_i2c_xfer()
|
/Linux-v4.19/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_kernel_queue.c | 212 uint32_t wptr, rptr; in acquire_packet_buffer() local 221 rptr = *kq->rptr_kernel; in acquire_packet_buffer() 227 pr_debug("rptr: %d\n", rptr); in acquire_packet_buffer() 231 available_size = (rptr + queue_size_dwords - 1 - wptr) % in acquire_packet_buffer() 246 if (packet_size_in_dwords >= rptr) in acquire_packet_buffer()
|
/Linux-v4.19/drivers/net/ethernet/cavium/liquidio/ |
D | octeon_iq.h | 193 u64 rptr; member 224 u64 rptr; member 251 u64 rptr; member
|
D | octeon_nic.c | 74 sc->cmd.cmd3.rptr = sc->dmarptr; in octeon_alloc_soft_command_resp() 76 sc->cmd.cmd2.rptr = sc->dmarptr; in octeon_alloc_soft_command_resp()
|
/Linux-v4.19/drivers/gpu/drm/msm/adreno/ |
D | adreno_gpu.c | 225 ring->memptrs->rptr = 0; in adreno_hw_init() 245 rbmemptr(gpu->rb[0], rptr)); in adreno_hw_init() 256 return ring->memptrs->rptr = adreno_gpu_read( in get_rptr() 259 return ring->memptrs->rptr; in get_rptr() 397 state->ring[i].rptr = get_rptr(adreno_gpu, gpu->rb[i]); in adreno_gpu_state_get() 533 drm_printf(p, " rptr: %d\n", state->ring[i].rptr); in adreno_show() 618 uint32_t rptr = get_rptr(adreno_gpu, ring); in ring_freewords() local 619 return (rptr + (size - 1) - wptr) % size; in ring_freewords()
|
D | a5xx_preempt.c | 75 empty = (get_wptr(ring) == ring->memptrs->rptr); in get_next_ring() 213 a5xx_gpu->preempt[i]->rptr = 0; in a5xx_preempt_hw_init() 254 ptr->rptr_addr = rbmemptr(ring, rptr); in preempt_init_ring()
|
/Linux-v4.19/fs/xfs/libxfs/ |
D | xfs_btree.c | 2508 union xfs_btree_ptr rptr; /* right block pointer */ in xfs_btree_rshift() local 2529 xfs_btree_get_sibling(cur, left, &rptr, XFS_BB_RIGHTSIB); in xfs_btree_rshift() 2530 if (xfs_btree_ptr_is_null(cur, &rptr)) in xfs_btree_rshift() 2542 error = xfs_btree_read_buf_block(cur, &rptr, 0, &right, &rbp); in xfs_btree_rshift() 2675 union xfs_btree_ptr rptr; /* right sibling block ptr */ in __xfs_btree_split() local 2701 error = cur->bc_ops->alloc_block(cur, &lptr, &rptr, stat); in __xfs_btree_split() 2709 error = xfs_btree_get_buf_block(cur, &rptr, 0, &right, &rbp); in __xfs_btree_split() 2789 xfs_btree_set_sibling(cur, left, &rptr, XFS_BB_RIGHTSIB); in __xfs_btree_split() 2803 xfs_btree_set_sibling(cur, rrblock, &rptr, XFS_BB_LEFTSIB); in __xfs_btree_split() 2833 *ptrp = rptr; in __xfs_btree_split() [all …]
|