Home
last modified time | relevance | path

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

1234

/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dmub/inc/
Ddmub_cmd.h803 uint32_t rptr; member
814 return (rb->wrpt == rb->rptr); in dmub_rb_empty()
821 if (rb->wrpt >= rb->rptr) in dmub_rb_full()
822 data_count = rb->wrpt - rb->rptr; in dmub_rb_full()
824 data_count = rb->capacity - (rb->rptr - rb->wrpt); in dmub_rb_full()
873 uint8_t *rd_ptr = (uint8_t *)rb->base_address + rb->rptr; in dmub_rb_front()
886 …const uint64_t volatile *src = (const uint64_t volatile *)(rb->base_address) + rb->rptr / sizeof(u… in dmub_rb_out_front()
905 rb->rptr += DMUB_RB_CMD_SIZE; in dmub_rb_pop_front()
907 if (rb->rptr >= rb->capacity) in dmub_rb_pop_front()
908 rb->rptr %= rb->capacity; in dmub_rb_pop_front()
[all …]
/kernel/linux/linux-5.10/sound/pci/riptide/
Driptide.c800 union cmdret rptr = CMDRET_ZERO; in writearm() local
804 SEND_RMEM(cif, 0x02, addr, &rptr); in writearm()
805 rptr.retlongs[0] &= (~mask); in writearm()
809 SEND_WMEM(cif, 0x02, (rptr.retlongs[0] | data)); in writearm()
810 SEND_RMEM(cif, 0x02, addr, &rptr); in writearm()
811 if ((rptr.retlongs[0] & data) == data) { in writearm()
815 rptr.retlongs[0] &= ~mask; in writearm()
926 union cmdret rptr = CMDRET_ZERO; in setmixer() local
932 SEND_RDGV(cif, num, num, &rptr); in setmixer()
933 if (rptr.retwords[0] == lval && rptr.retwords[1] == rval) in setmixer()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ih.c52 ih->rptr = 0; in amdgpu_ih_ring_init()
158 DRM_DEBUG("%s: rptr %d, wptr %d\n", __func__, ih->rptr, wptr); in amdgpu_ih_process()
163 while (ih->rptr != wptr && --count) { in amdgpu_ih_process()
165 ih->rptr &= ih->ptr_mask; in amdgpu_ih_process()
173 if (wptr != ih->rptr) in amdgpu_ih_process()
Dvega10_ih.c122 adev->irq.ih.rptr = 0; in vega10_ih_disable_interrupts()
141 adev->irq.ih1.rptr = 0; in vega10_ih_disable_interrupts()
162 adev->irq.ih2.rptr = 0; in vega10_ih_disable_interrupts()
409 wptr, ih->rptr, tmp); in vega10_ih_get_wptr()
410 ih->rptr = tmp; in vega10_ih_get_wptr()
442 u32 ring_index = ih->rptr >> 2; in vega10_ih_decode_iv()
469 ih->rptr += 32; in vega10_ih_decode_iv()
497 if ((v < ih->ring_size) && (v != ih->rptr)) in vega10_ih_irq_rearm()
498 WDOORBELL32(ih->doorbell_index, ih->rptr); in vega10_ih_irq_rearm()
516 *ih->rptr_cpu = ih->rptr; in vega10_ih_set_rptr()
[all …]
Dtonga_ih.c88 adev->irq.ih.rptr = 0; in tonga_ih_disable_interrupts()
215 wptr, ih->rptr, (wptr + 16) & ih->ptr_mask); in tonga_ih_get_wptr()
216 ih->rptr = (wptr + 16) & ih->ptr_mask; in tonga_ih_get_wptr()
238 u32 ring_index = ih->rptr >> 2; in tonga_ih_decode_iv()
254 ih->rptr += 16; in tonga_ih_decode_iv()
269 *ih->rptr_cpu = ih->rptr; in tonga_ih_set_rptr()
270 WDOORBELL32(ih->doorbell_index, ih->rptr); in tonga_ih_set_rptr()
272 WREG32(mmIH_RB_RPTR, ih->rptr); in tonga_ih_set_rptr()
Dnavi10_ih.c167 adev->irq.ih.rptr = 0; in navi10_ih_disable_interrupts()
186 adev->irq.ih1.rptr = 0; in navi10_ih_disable_interrupts()
206 adev->irq.ih2.rptr = 0; in navi10_ih_disable_interrupts()
480 wptr, ih->rptr, tmp); in navi10_ih_get_wptr()
481 ih->rptr = tmp; in navi10_ih_get_wptr()
512 u32 ring_index = ih->rptr >> 2; in navi10_ih_decode_iv()
539 ih->rptr += 32; in navi10_ih_decode_iv()
567 if ((v < ih->ring_size) && (v != ih->rptr)) in navi10_ih_irq_rearm()
568 WDOORBELL32(ih->doorbell_index, ih->rptr); in navi10_ih_irq_rearm()
586 *ih->rptr_cpu = ih->rptr; in navi10_ih_set_rptr()
[all …]
Dcik_ih.c92 adev->irq.ih.rptr = 0; in cik_ih_disable_interrupts()
201 wptr, ih->rptr, (wptr + 16) & ih->ptr_mask); in cik_ih_get_wptr()
202 ih->rptr = (wptr + 16) & ih->ptr_mask; in cik_ih_get_wptr()
246 u32 ring_index = ih->rptr >> 2; in cik_ih_decode_iv()
262 ih->rptr += 16; in cik_ih_decode_iv()
275 WREG32(mmIH_RB_RPTR, ih->rptr); in cik_ih_set_rptr()
Dsi_ih.c59 adev->irq.ih.rptr = 0; in si_ih_disable_interrupts()
117 wptr, ih->rptr, (wptr + 16) & ih->ptr_mask); in si_ih_get_wptr()
118 ih->rptr = (wptr + 16) & ih->ptr_mask; in si_ih_get_wptr()
130 u32 ring_index = ih->rptr >> 2; in si_ih_decode_iv()
144 ih->rptr += 16; in si_ih_decode_iv()
150 WREG32(IH_RB_RPTR, ih->rptr); in si_ih_set_rptr()
Dcz_ih.c92 adev->irq.ih.rptr = 0; in cz_ih_disable_interrupts()
212 wptr, ih->rptr, (wptr + 16) & ih->ptr_mask); in cz_ih_get_wptr()
213 ih->rptr = (wptr + 16) & ih->ptr_mask; in cz_ih_get_wptr()
236 u32 ring_index = ih->rptr >> 2; in cz_ih_decode_iv()
252 ih->rptr += 16; in cz_ih_decode_iv()
265 WREG32(mmIH_RB_RPTR, ih->rptr); in cz_ih_set_rptr()
Diceland_ih.c92 adev->irq.ih.rptr = 0; in iceland_ih_disable_interrupts()
211 wptr, ih->rptr, (wptr + 16) & ih->ptr_mask); in iceland_ih_get_wptr()
212 ih->rptr = (wptr + 16) & ih->ptr_mask; in iceland_ih_get_wptr()
235 u32 ring_index = ih->rptr >> 2; in iceland_ih_decode_iv()
251 ih->rptr += 16; in iceland_ih_decode_iv()
264 WREG32(mmIH_RB_RPTR, ih->rptr); in iceland_ih_set_rptr()
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/
Dradeon_ring.c84 uint32_t rptr = radeon_ring_get_rptr(rdev, ring); in radeon_ring_free_size() local
87 ring->ring_free_dw = rptr + (ring->ring_size / 4); in radeon_ring_free_size()
253 uint32_t rptr = radeon_ring_get_rptr(rdev, ring); in radeon_ring_test_lockup() local
257 if (rptr != atomic_read(&ring->last_rptr)) { in radeon_ring_test_lockup()
472 uint32_t rptr, wptr, rptr_next; in radeon_debugfs_ring_info() local
482 rptr = radeon_ring_get_rptr(rdev, ring); in radeon_debugfs_ring_info()
484 rptr, rptr); in radeon_debugfs_ring_info()
508 i = (rptr + ring->ptr_mask + 1 - 32) & ring->ptr_mask; in radeon_debugfs_ring_info()
511 if (rptr == i) in radeon_debugfs_ring_info()
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()
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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/net/ethernet/tehuti/
Dtehuti.c170 f->rptr = 0; in bdx_fifo_init()
1216 size = f->m.wptr - f->m.rptr; in bdx_rx_receive()
1222 rxdd = (struct rxd_desc *)(f->m.va + f->m.rptr); in bdx_rx_receive()
1237 f->m.rptr += tmp_len; in bdx_rx_receive()
1239 tmp_len = f->m.rptr - f->m.memsz; in bdx_rx_receive()
1241 f->m.rptr = tmp_len; in bdx_rx_receive()
1244 f->m.rptr, tmp_len); in bdx_rx_receive()
1297 WRITE_REG(priv, f->m.reg_RPTR, f->m.rptr & TXF_WPTR_WR_PTR); in bdx_rx_receive()
1376 BDX_ASSERT(*pptr != db->rptr && /* expect either read */ in __bdx_tx_db_ptr_next()
1393 BDX_ASSERT(db->rptr == db->wptr); /* can't read from empty db */ in bdx_tx_db_inc_rptr()
[all …]
/kernel/linux/linux-5.10/drivers/crypto/ccp/
Dtee-dev.c249 u32 rptr; in tee_submit_cmd() local
261 rptr = ioread32(tee->io_regs + tee->vdata->ring_rptr_reg); in tee_submit_cmd()
266 if (!(tee->rb_mgr.wptr + sizeof(struct tee_ring_cmd) == rptr || in tee_submit_cmd()
271 rptr, tee->rb_mgr.wptr); in tee_submit_cmd()
281 (tee->rb_mgr.wptr + sizeof(struct tee_ring_cmd) == rptr || in tee_submit_cmd()
284 rptr, tee->rb_mgr.wptr, cmd->flag); in tee_submit_cmd()
/kernel/linux/linux-5.10/drivers/gpu/drm/qxl/
Dqxl_object.c180 void *rptr; in qxl_bo_kmap_atomic_page() local
195 rptr = bo->kptr + (page_offset * PAGE_SIZE); in qxl_bo_kmap_atomic_page()
196 return rptr; in qxl_bo_kmap_atomic_page()
199 ret = qxl_bo_kmap(bo, &rptr); in qxl_bo_kmap_atomic_page()
203 rptr += page_offset * PAGE_SIZE; in qxl_bo_kmap_atomic_page()
204 return rptr; in qxl_bo_kmap_atomic_page()
/kernel/linux/linux-5.10/drivers/net/ppp/
Dppp_deflate.c46 static int z_compress(void *state, unsigned char *rptr,
185 static int z_compress(void *arg, unsigned char *rptr, unsigned char *obuf, in z_compress() argument
195 proto = PPP_PROTOCOL(rptr); in z_compress()
209 wptr[0] = PPP_ADDRESS(rptr); in z_compress()
210 wptr[1] = PPP_CONTROL(rptr); in z_compress()
221 rptr += off; in z_compress()
222 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()
/kernel/linux/linux-5.10/drivers/i2c/busses/
Di2c-cpm.c305 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()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdkfd/
Dkfd_kernel_queue.c233 uint32_t wptr, rptr; in kq_acquire_packet_buffer() local
242 rptr = *kq->rptr_kernel; in kq_acquire_packet_buffer()
248 pr_debug("rptr: %d\n", rptr); in kq_acquire_packet_buffer()
252 available_size = (rptr + queue_size_dwords - 1 - wptr) % in kq_acquire_packet_buffer()
267 if (packet_size_in_dwords >= rptr) in kq_acquire_packet_buffer()
/kernel/linux/linux-5.10/drivers/net/ethernet/cavium/liquidio/
Docteon_iq.h195 u64 rptr; member
226 u64 rptr; member
253 u64 rptr; member
Docteon_nic.c74 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()
/kernel/linux/linux-5.10/fs/xfs/libxfs/
Dxfs_btree.c2452 union xfs_btree_ptr rptr; /* right block pointer */ in xfs_btree_rshift() local
2473 xfs_btree_get_sibling(cur, left, &rptr, XFS_BB_RIGHTSIB); in xfs_btree_rshift()
2474 if (xfs_btree_ptr_is_null(cur, &rptr)) in xfs_btree_rshift()
2486 error = xfs_btree_read_buf_block(cur, &rptr, 0, &right, &rbp); in xfs_btree_rshift()
2622 union xfs_btree_ptr rptr; /* right sibling block ptr */ in __xfs_btree_split() local
2648 error = cur->bc_ops->alloc_block(cur, &lptr, &rptr, stat); in __xfs_btree_split()
2656 error = xfs_btree_get_buf_block(cur, &rptr, &right, &rbp); in __xfs_btree_split()
2736 xfs_btree_set_sibling(cur, left, &rptr, XFS_BB_RIGHTSIB); in __xfs_btree_split()
2750 xfs_btree_set_sibling(cur, rrblock, &rptr, XFS_BB_LEFTSIB); in __xfs_btree_split()
2780 *ptrp = rptr; in __xfs_btree_split()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dppp-comp.h50 int (*compress) (void *state, unsigned char *rptr,

1234