| /linux/drivers/media/platform/amphion/ |
| H A D | vpu_rpc.c | 40 ptr2 = desc->rptr; in vpu_rpc_check_buffer_space() 42 ptr1 = desc->rptr; in vpu_rpc_check_buffer_space() 112 msgword = *(u32 *)(shared->msg_mem_vir + desc->rptr - desc->start); in vpu_rpc_check_msg() 126 u32 rptr; in vpu_rpc_receive_msg_buf() local 133 data = (u32 *)(shared->msg_mem_vir + desc->rptr - desc->start); in vpu_rpc_receive_msg_buf() 134 rptr = desc->rptr; in vpu_rpc_receive_msg_buf() 137 rptr += 4; in vpu_rpc_receive_msg_buf() 138 if (rptr >= desc->end) { in vpu_rpc_receive_msg_buf() 139 rptr = desc->start; in vpu_rpc_receive_msg_buf() 153 rptr += 4; in vpu_rpc_receive_msg_buf() [all …]
|
| /linux/sound/pci/riptide/ |
| H A D | riptide.c | 799 union cmdret rptr = CMDRET_ZERO; in writearm() local 803 SEND_RMEM(cif, 0x02, addr, &rptr); in writearm() 804 rptr.retlongs[0] &= (~mask); in writearm() 808 SEND_WMEM(cif, 0x02, (rptr.retlongs[0] | data)); in writearm() 809 SEND_RMEM(cif, 0x02, addr, &rptr); in writearm() 810 if ((rptr.retlongs[0] & data) == data) { in writearm() 814 rptr.retlongs[0] &= ~mask; in writearm() 925 union cmdret rptr = CMDRET_ZERO; in setmixer() local 931 SEND_RDGV(cif, num, num, &rptr); in setmixer() 932 if (rptr.retwords[0] == lval && rptr.retwords[1] == rval) in setmixer() [all …]
|
| /linux/drivers/gpu/drm/radeon/ |
| H A D | radeon_ring.c | 85 uint32_t rptr = radeon_ring_get_rptr(rdev, ring); in radeon_ring_free_size() local 88 ring->ring_free_dw = rptr + (ring->ring_size / 4); in radeon_ring_free_size() 256 uint32_t rptr = radeon_ring_get_rptr(rdev, ring); in radeon_ring_test_lockup() local 260 if (rptr != atomic_read(&ring->last_rptr)) { in radeon_ring_test_lockup() 472 uint32_t rptr, wptr, rptr_next; in radeon_debugfs_ring_info_show() local 482 rptr = radeon_ring_get_rptr(rdev, ring); in radeon_debugfs_ring_info_show() 484 rptr, rptr); in radeon_debugfs_ring_info_show() 508 i = (rptr + ring->ptr_mask + 1 - 32) & ring->ptr_mask; in radeon_debugfs_ring_info_show() 511 if (rptr == i) in radeon_debugfs_ring_info_show()
|
| H A D | ni_dma.c | 55 u32 rptr, reg; in cayman_dma_get_rptr() local 58 rptr = rdev->wb.wb[ring->rptr_offs/4]; in cayman_dma_get_rptr() 65 rptr = RREG32(reg); in cayman_dma_get_rptr() 68 return (rptr & 0x3fffc) >> 2; in cayman_dma_get_rptr()
|
| H A D | r600_dma.c | 53 u32 rptr; in r600_dma_get_rptr() local 56 rptr = rdev->wb.wb[ring->rptr_offs/4]; in r600_dma_get_rptr() 58 rptr = RREG32(DMA_RB_RPTR); in r600_dma_get_rptr() 60 return (rptr & 0x3fffc) >> 2; in r600_dma_get_rptr()
|
| /linux/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/ |
| H A D | rpc.c | 144 u32 size, rptr = *gsp->msgq.rptr; in r535_gsp_msgq_wait() local 155 used = wptr + gsp->msgq.cnt - rptr; in r535_gsp_msgq_wait() 173 u32 rptr = *gsp->msgq.rptr; in r535_gsp_msgq_get_entry() local 177 rptr * GSP_PAGE_SIZE); in r535_gsp_msgq_get_entry() 237 u32 rptr = *gsp->msgq.rptr; in r535_gsp_msgq_recv_one_elem() local 263 len = ((gsp->msgq.cnt - rptr) * GSP_PAGE_SIZE) - sizeof(*mqe); in r535_gsp_msgq_recv_one_elem() 279 rptr = (rptr + DIV_ROUND_UP(size, GSP_PAGE_SIZE)) % gsp->msgq.cnt; in r535_gsp_msgq_recv_one_elem() 282 (*gsp->msgq.rptr) = rptr; in r535_gsp_msgq_recv_one_elem() 380 free = *gsp->cmdq.rptr + gsp->cmdq.cnt - wptr - 1; in r535_gsp_cmdq_push() 512 if (*gsp->msgq.rptr != *gsp->msgq.wptr) in r535_gsp_msg_recv()
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | tonga_ih.c | 88 adev->irq.ih.rptr = 0; in tonga_ih_disable_interrupts() 222 wptr, ih->rptr, (wptr + 16) & ih->ptr_mask); in tonga_ih_get_wptr() 223 ih->rptr = (wptr + 16) & ih->ptr_mask; in tonga_ih_get_wptr() 253 u32 ring_index = ih->rptr >> 2; in tonga_ih_decode_iv() 269 ih->rptr += 16; in tonga_ih_decode_iv() 285 *ih->rptr_cpu = ih->rptr; in tonga_ih_set_rptr() 286 WDOORBELL32(ih->doorbell_index, ih->rptr); in tonga_ih_set_rptr() 288 WREG32(mmIH_RB_RPTR, ih->rptr); in tonga_ih_set_rptr()
|
| H A D | si_ih.c | 60 adev->irq.ih.rptr = 0; in si_ih_disable_interrupts() 124 wptr, ih->rptr, (wptr + 16) & ih->ptr_mask); in si_ih_get_wptr() 125 ih->rptr = (wptr + 16) & ih->ptr_mask; in si_ih_get_wptr() 145 u32 ring_index = ih->rptr >> 2; in si_ih_decode_iv() 159 ih->rptr += 16; in si_ih_decode_iv() 165 WREG32(IH_RB_RPTR, ih->rptr); in si_ih_set_rptr()
|
| H A D | cik_ih.c | 92 adev->irq.ih.rptr = 0; in cik_ih_disable_interrupts() 208 wptr, ih->rptr, (wptr + 16) & ih->ptr_mask); in cik_ih_get_wptr() 209 ih->rptr = (wptr + 16) & ih->ptr_mask; in cik_ih_get_wptr() 261 u32 ring_index = ih->rptr >> 2; in cik_ih_decode_iv() 277 ih->rptr += 16; in cik_ih_decode_iv() 291 WREG32(mmIH_RB_RPTR, ih->rptr); in cik_ih_set_rptr()
|
| H A D | iceland_ih.c | 92 adev->irq.ih.rptr = 0; in iceland_ih_disable_interrupts() 218 wptr, ih->rptr, (wptr + 16) & ih->ptr_mask); in iceland_ih_get_wptr() 219 ih->rptr = (wptr + 16) & ih->ptr_mask; in iceland_ih_get_wptr() 249 u32 ring_index = ih->rptr >> 2; in iceland_ih_decode_iv() 265 ih->rptr += 16; in iceland_ih_decode_iv() 279 WREG32(mmIH_RB_RPTR, ih->rptr); in iceland_ih_set_rptr()
|
| H A D | cz_ih.c | 92 adev->irq.ih.rptr = 0; in cz_ih_disable_interrupts() 219 wptr, ih->rptr, (wptr + 16) & ih->ptr_mask); in cz_ih_get_wptr() 220 ih->rptr = (wptr + 16) & ih->ptr_mask; in cz_ih_get_wptr() 250 u32 ring_index = ih->rptr >> 2; in cz_ih_decode_iv() 266 ih->rptr += 16; in cz_ih_decode_iv() 280 WREG32(mmIH_RB_RPTR, ih->rptr); in cz_ih_set_rptr()
|
| H A D | amdgpu_userq_fence.c | 157 u64 rptr; in amdgpu_userq_fence_driver_process() local 164 rptr = amdgpu_userq_fence_read(fence_drv); in amdgpu_userq_fence_driver_process() 169 if (rptr < fence->seqno) in amdgpu_userq_fence_driver_process() 317 u64 rptr, wptr; in amdgpu_userq_fence_signaled() local 319 rptr = amdgpu_userq_fence_read(fence_drv); in amdgpu_userq_fence_signaled() 322 if (rptr >= wptr) in amdgpu_userq_fence_signaled()
|
| /linux/drivers/net/ethernet/tehuti/ |
| H A D | tn40.c | 53 f->rptr = 0; in tn40_fifo_alloc() 297 size = f->m.wptr - f->m.rptr; in tn40_rx_receive() 302 rxdd = (struct tn40_rxd_desc *)(f->m.va + f->m.rptr); in tn40_rx_receive() 348 f->m.rptr += tmp_len; in tn40_rx_receive() 349 tmp_len = f->m.rptr - f->m.memsz; in tn40_rx_receive() 351 f->m.rptr = tmp_len; in tn40_rx_receive() 358 f->m.rptr, tmp_len); in tn40_rx_receive() 412 tn40_write_reg(priv, f->m.reg_rptr, f->m.rptr & TN40_TXF_WPTR_WR_PTR); in tn40_rx_receive() 468 tn40_do_tx_db_ptr_next(db, &db->rptr); in tn40_tx_db_inc_rptr() 491 d->rptr = d->start; in tn40_tx_db_init() [all …]
|
| H A D | tehuti.c | 170 f->rptr = 0; in bdx_fifo_init() 1210 size = f->m.wptr - f->m.rptr; in bdx_rx_receive() 1216 rxdd = (struct rxd_desc *)(f->m.va + f->m.rptr); in bdx_rx_receive() 1231 f->m.rptr += tmp_len; in bdx_rx_receive() 1233 tmp_len = f->m.rptr - f->m.memsz; in bdx_rx_receive() 1235 f->m.rptr = tmp_len; in bdx_rx_receive() 1238 f->m.rptr, tmp_len); in bdx_rx_receive() 1291 WRITE_REG(priv, f->m.reg_RPTR, f->m.rptr & TXF_WPTR_WR_PTR); in bdx_rx_receive() 1370 BDX_ASSERT(*pptr != db->rptr && /* expect either read */ in __bdx_tx_db_ptr_next() 1387 BDX_ASSERT(db->rptr == db->wptr); /* can't read from empty db */ in bdx_tx_db_inc_rptr() [all …]
|
| /linux/drivers/crypto/ccp/ |
| H A D | tee-dev.c | 247 u32 rptr; in tee_submit_cmd() local 259 rptr = ioread32(tee->io_regs + tee->vdata->ring_rptr_reg); in tee_submit_cmd() 264 if (!(tee->rb_mgr.wptr + sizeof(struct tee_ring_cmd) == rptr || in tee_submit_cmd() 269 rptr, tee->rb_mgr.wptr); in tee_submit_cmd() 279 (tee->rb_mgr.wptr + sizeof(struct tee_ring_cmd) == rptr || in tee_submit_cmd() 282 rptr, tee->rb_mgr.wptr, cmd->flag); in tee_submit_cmd()
|
| /linux/drivers/video/fbdev/ |
| H A 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/drivers/net/ppp/ |
| H A D | ppp_deflate.c | 46 static int z_compress(void *state, unsigned char *rptr, 184 static int z_compress(void *arg, unsigned char *rptr, unsigned char *obuf, in z_compress() argument 194 proto = PPP_PROTOCOL(rptr); in z_compress() 208 wptr[0] = PPP_ADDRESS(rptr); in z_compress() 209 wptr[1] = PPP_CONTROL(rptr); in z_compress() 220 rptr += off; in z_compress() 221 state->strm.next_in = rptr; in z_compress()
|
| H A D | bsd_comp.c | 184 static int bsd_compress (void *state, unsigned char *rptr, 562 static int bsd_compress (void *state, unsigned char *rptr, unsigned char *obuf, in bsd_compress() argument 614 ent = PPP_PROTOCOL(rptr); in bsd_compress() 640 *wptr++ = PPP_ADDRESS(rptr); in bsd_compress() 641 *wptr++ = PPP_CONTROL(rptr); in bsd_compress() 649 rptr += PPP_HDRLEN; in bsd_compress() 655 c = *rptr++; in bsd_compress()
|
| /linux/drivers/gpu/drm/amd/display/dmub/inc/ |
| H A D | dmub_cmd.h | 7202 uint32_t rptr; /**< Read pointer for consumer in bytes */ member 7219 return (rb->wrpt == rb->rptr); in dmub_rb_empty() 7232 if (rb->wrpt >= rb->rptr) in dmub_rb_num_outstanding() 7233 data_count = rb->wrpt - rb->rptr; in dmub_rb_num_outstanding() 7235 data_count = rb->capacity - (rb->rptr - rb->wrpt); in dmub_rb_num_outstanding() 7250 if (rb->wrpt >= rb->rptr) in dmub_rb_num_free() 7251 data_count = rb->wrpt - rb->rptr; in dmub_rb_num_free() 7253 data_count = rb->capacity - (rb->rptr - rb->wrpt); in dmub_rb_num_free() 7272 if (rb->wrpt >= rb->rptr) in dmub_rb_full() 7273 data_count = rb->wrpt - rb->rptr; in dmub_rb_full() [all …]
|
| /linux/drivers/gpu/drm/qxl/ |
| H A D | qxl_object.c | 210 void *rptr; in qxl_bo_kmap_atomic_page() local 226 rptr = bo->kptr + (page_offset * PAGE_SIZE); in qxl_bo_kmap_atomic_page() 227 return rptr; in qxl_bo_kmap_atomic_page() 233 rptr = bo_map.vaddr; /* TODO: Use mapping abstraction properly */ in qxl_bo_kmap_atomic_page() 235 rptr += page_offset * PAGE_SIZE; in qxl_bo_kmap_atomic_page() 236 return rptr; in qxl_bo_kmap_atomic_page()
|
| /linux/drivers/i2c/busses/ |
| H A D | i2c-cpm.c | 305 int rptr; in cpm_i2c_xfer() local 317 rptr = 0; in cpm_i2c_xfer() 329 dev_dbg(&adap->dev, "R: %d T: %d\n", rptr, tptr); in cpm_i2c_xfer() 331 cpm_i2c_parse_message(adap, pmsg, num, tptr, rptr); in cpm_i2c_xfer() 333 rptr++; in cpm_i2c_xfer() 346 rptr = 0; in cpm_i2c_xfer() 355 !(in_be16(&rbdf[rptr].cbd_sc) & BD_SC_EMPTY), in cpm_i2c_xfer() 368 ret = cpm_i2c_check_message(adap, pmsg, tptr, rptr); in cpm_i2c_xfer() 371 rptr++; in cpm_i2c_xfer()
|
| /linux/drivers/gpu/drm/amd/amdkfd/ |
| H A D | kfd_kernel_queue.c | 206 uint32_t wptr, rptr; in kq_acquire_packet_buffer() local 215 rptr = *kq->rptr_kernel; in kq_acquire_packet_buffer() 221 pr_debug("rptr: %d\n", rptr); in kq_acquire_packet_buffer() 225 available_size = (rptr + queue_size_dwords - 1 - wptr) % in kq_acquire_packet_buffer() 240 if (packet_size_in_dwords >= rptr) in kq_acquire_packet_buffer()
|
| /linux/drivers/net/ethernet/cavium/liquidio/ |
| H A D | octeon_iq.h | 195 u64 rptr; member 226 u64 rptr; member 253 u64 rptr; member
|
| H A 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/drivers/tty/ |
| H A D | moxa.c | 508 u16 rptr, wptr, mask, len; in moxa_low_water_check() local 511 rptr = readw(ofsAddr + RXrptr); in moxa_low_water_check() 514 len = (wptr - rptr) & mask; in moxa_low_water_check() 2032 u16 rptr, wptr, mask; in MoxaPortTxQueue() local 2034 rptr = readw(ofsAddr + TXrptr); in MoxaPortTxQueue() 2037 return (wptr - rptr) & mask; in MoxaPortTxQueue() 2043 u16 rptr, wptr, mask; in MoxaPortTxFree() local 2045 rptr = readw(ofsAddr + TXrptr); in MoxaPortTxFree() 2048 return mask - ((wptr - rptr) & mask); in MoxaPortTxFree() 2054 u16 rptr, wptr, mask; in MoxaPortRxQueue() local [all …]
|