/linux/drivers/gpu/drm/amd/amdgpu/ |
A D | amdgpu_ih.c | 52 ih->rptr = 0; in amdgpu_ih_ring_init() 161 if (wptr != READ_ONCE(ih->rptr)) { in amdgpu_ih_ring_write() 196 uint32_t checkpoint_wptr, rptr; in amdgpu_ih_wait_on_checkpoint_process() local 204 rptr = READ_ONCE(ih->rptr); in amdgpu_ih_wait_on_checkpoint_process() 207 if (rptr > checkpoint_wptr) in amdgpu_ih_wait_on_checkpoint_process() 212 checkpoint_wptr, &rptr)); in amdgpu_ih_wait_on_checkpoint_process() 241 while (ih->rptr != wptr && --count) { in amdgpu_ih_process() 243 ih->rptr &= ih->ptr_mask; in amdgpu_ih_process() 251 if (wptr != ih->rptr) in amdgpu_ih_process() 273 u32 ring_index = ih->rptr >> 2; in amdgpu_ih_decode_iv_helper() [all …]
|
A D | tonga_ih.c | 88 adev->irq.ih.rptr = 0; in tonga_ih_disable_interrupts() 216 wptr, ih->rptr, (wptr + 16) & ih->ptr_mask); in tonga_ih_get_wptr() 217 ih->rptr = (wptr + 16) & ih->ptr_mask; in tonga_ih_get_wptr() 241 u32 ring_index = ih->rptr >> 2; in tonga_ih_decode_iv() 257 ih->rptr += 16; in tonga_ih_decode_iv() 273 *ih->rptr_cpu = ih->rptr; in tonga_ih_set_rptr() 274 WDOORBELL32(ih->doorbell_index, ih->rptr); in tonga_ih_set_rptr() 276 WREG32(mmIH_RB_RPTR, ih->rptr); in tonga_ih_set_rptr()
|
A D | cik_ih.c | 92 adev->irq.ih.rptr = 0; in cik_ih_disable_interrupts() 202 wptr, ih->rptr, (wptr + 16) & ih->ptr_mask); in cik_ih_get_wptr() 203 ih->rptr = (wptr + 16) & ih->ptr_mask; in cik_ih_get_wptr() 247 u32 ring_index = ih->rptr >> 2; in cik_ih_decode_iv() 263 ih->rptr += 16; in cik_ih_decode_iv() 277 WREG32(mmIH_RB_RPTR, ih->rptr); in cik_ih_set_rptr()
|
A D | si_ih.c | 59 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()
|
A D | iceland_ih.c | 92 adev->irq.ih.rptr = 0; in iceland_ih_disable_interrupts() 212 wptr, ih->rptr, (wptr + 16) & ih->ptr_mask); in iceland_ih_get_wptr() 213 ih->rptr = (wptr + 16) & ih->ptr_mask; in iceland_ih_get_wptr() 238 u32 ring_index = ih->rptr >> 2; in iceland_ih_decode_iv() 254 ih->rptr += 16; in iceland_ih_decode_iv() 268 WREG32(mmIH_RB_RPTR, ih->rptr); in iceland_ih_set_rptr()
|
A D | cz_ih.c | 92 adev->irq.ih.rptr = 0; in cz_ih_disable_interrupts() 213 wptr, ih->rptr, (wptr + 16) & ih->ptr_mask); in cz_ih_get_wptr() 214 ih->rptr = (wptr + 16) & ih->ptr_mask; in cz_ih_get_wptr() 239 u32 ring_index = ih->rptr >> 2; in cz_ih_decode_iv() 255 ih->rptr += 16; in cz_ih_decode_iv() 269 WREG32(mmIH_RB_RPTR, ih->rptr); in cz_ih_set_rptr()
|
A D | vega10_ih.c | 127 ih->rptr = 0; in vega10_ih_toggle_ring_interrupts() 363 wptr, ih->rptr, tmp); in vega10_ih_get_wptr() 364 ih->rptr = tmp; in vega10_ih_get_wptr() 392 if ((v < ih->ring_size) && (v != ih->rptr)) in vega10_ih_irq_rearm() 393 WDOORBELL32(ih->doorbell_index, ih->rptr); in vega10_ih_irq_rearm() 414 *ih->rptr_cpu = ih->rptr; in vega10_ih_set_rptr() 415 WDOORBELL32(ih->doorbell_index, ih->rptr); in vega10_ih_set_rptr() 421 WREG32(ih_regs->ih_rb_rptr, ih->rptr); in vega10_ih_set_rptr()
|
A D | vega20_ih.c | 131 ih->rptr = 0; in vega20_ih_toggle_ring_interrupts() 414 wptr, ih->rptr, tmp); in vega20_ih_get_wptr() 415 ih->rptr = tmp; in vega20_ih_get_wptr() 444 if ((v < ih->ring_size) && (v != ih->rptr)) in vega20_ih_irq_rearm() 445 WDOORBELL32(ih->doorbell_index, ih->rptr); in vega20_ih_irq_rearm() 466 *ih->rptr_cpu = ih->rptr; in vega20_ih_set_rptr() 467 WDOORBELL32(ih->doorbell_index, ih->rptr); in vega20_ih_set_rptr() 473 WREG32(ih_regs->ih_rb_rptr, ih->rptr); in vega20_ih_set_rptr()
|
A D | navi10_ih.c | 182 ih->rptr = 0; in navi10_ih_toggle_ring_interrupts() 437 wptr, ih->rptr, tmp); in navi10_ih_get_wptr() 438 ih->rptr = tmp; in navi10_ih_get_wptr() 466 if ((v < ih->ring_size) && (v != ih->rptr)) in navi10_ih_irq_rearm() 467 WDOORBELL32(ih->doorbell_index, ih->rptr); in navi10_ih_irq_rearm() 488 *ih->rptr_cpu = ih->rptr; in navi10_ih_set_rptr() 489 WDOORBELL32(ih->doorbell_index, ih->rptr); in navi10_ih_set_rptr() 495 WREG32(ih_regs->ih_rb_rptr, ih->rptr); in navi10_ih_set_rptr()
|
/linux/sound/pci/riptide/ |
A D | riptide.c | 932 if (rptr.retwords[0] == lval && rptr.retwords[1] == rval) in setmixer() 964 *a = rptr.retbytes[0]; in getsourcesink() 965 *b = rptr.retbytes[1]; in getsourcesink() 984 p[i] += rptr.retwords[1]; in getsamplerate() 1063 if (SEND_RDGV(cif, num, num, &rptr) && SEND_RDGV(cif, num, num, &rptr)) in getmixer() 1065 *rval = rptr.retwords[0]; in getmixer() 1066 *lval = rptr.retwords[1]; in getmixer() 1267 snd_printdd("AC97: 0x%x 0x%x\n", rptr.retlongs[0], rptr.retlongs[1]); in riptide_reset() 1362 data->id, rptr.retlongs[1], rptr.retlongs[1] % data->size, in snd_riptide_pointer() 1415 i = rptr.retlongs[1]; in snd_riptide_trigger() [all …]
|
/linux/drivers/gpu/drm/amd/display/dmub/inc/ |
A D | dmub_cmd.h | 2692 return (rb->wrpt == rb->rptr); in dmub_rb_empty() 2706 if (rb->wrpt >= rb->rptr) in dmub_rb_full() 2820 uint32_t rptr) in dmub_rb_peek_offset() argument 2869 rb->rptr += DMUB_RB_CMD_SIZE; in dmub_rb_pop_front() 2871 if (rb->rptr >= rb->capacity) in dmub_rb_pop_front() 2872 rb->rptr %= rb->capacity; in dmub_rb_pop_front() 2887 uint32_t rptr = rb->rptr; in dmub_rb_flush_pending() local 2890 while (rptr != wptr) { in dmub_rb_flush_pending() 2899 rptr += DMUB_RB_CMD_SIZE; in dmub_rb_flush_pending() 2900 if (rptr >= rb->capacity) in dmub_rb_flush_pending() [all …]
|
/linux/drivers/gpu/drm/radeon/ |
A D | radeon_ring.c | 83 uint32_t rptr = radeon_ring_get_rptr(rdev, ring); in radeon_ring_free_size() local 86 ring->ring_free_dw = rptr + (ring->ring_size / 4); in radeon_ring_free_size() 254 uint32_t rptr = radeon_ring_get_rptr(rdev, ring); in radeon_ring_test_lockup() local 258 if (rptr != atomic_read(&ring->last_rptr)) { in radeon_ring_test_lockup() 470 uint32_t rptr, wptr, rptr_next; in radeon_debugfs_ring_info_show() local 480 rptr = radeon_ring_get_rptr(rdev, ring); in radeon_debugfs_ring_info_show() 482 rptr, rptr); in radeon_debugfs_ring_info_show() 506 i = (rptr + ring->ptr_mask + 1 - 32) & ring->ptr_mask; in radeon_debugfs_ring_info_show() 509 if (rptr == i) in radeon_debugfs_ring_info_show()
|
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()
|
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/net/ethernet/tehuti/ |
A D | tehuti.c | 170 f->rptr = 0; in bdx_fifo_init() 1210 size = f->m.wptr - f->m.rptr; in bdx_rx_receive() 1231 f->m.rptr += tmp_len; in bdx_rx_receive() 1235 f->m.rptr = tmp_len; in bdx_rx_receive() 1238 f->m.rptr, tmp_len); in bdx_rx_receive() 1426 d->rptr = d->start; in bdx_tx_db_init() 1568 fsize = f->m.rptr - f->m.wptr; in bdx_tx_space() 1707 f->m.rptr += BDX_TXF_DESC_SZ; in bdx_tx_cleanup() 1708 f->m.rptr &= f->m.size_mask; in bdx_tx_cleanup() 1718 } while (db->rptr->len > 0); in bdx_tx_cleanup() [all …]
|
/linux/drivers/crypto/ccp/ |
A D | tee-dev.c | 249 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()
|
/linux/drivers/video/fbdev/ |
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/ |
A D | ppp_deflate.c | 46 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()
|
A 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/drivers/gpu/drm/qxl/ |
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/ |
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/ |
A D | kfd_kernel_queue.c | 232 uint32_t wptr, rptr; in kq_acquire_packet_buffer() local 241 rptr = *kq->rptr_kernel; in kq_acquire_packet_buffer() 247 pr_debug("rptr: %d\n", rptr); in kq_acquire_packet_buffer() 251 available_size = (rptr + queue_size_dwords - 1 - wptr) % in kq_acquire_packet_buffer() 266 if (packet_size_in_dwords >= rptr) in kq_acquire_packet_buffer()
|
/linux/drivers/gpu/drm/amd/display/dmub/src/ |
A D | dmub_srv.c | 659 uint32_t i, rptr; in dmub_srv_wait_for_idle() local 665 rptr = dmub->hw_funcs.get_inbox1_rptr(dmub); in dmub_srv_wait_for_idle() 667 if (rptr > dmub->inbox1_rb.capacity) in dmub_srv_wait_for_idle() 670 dmub->inbox1_rb.rptr = rptr; in dmub_srv_wait_for_idle() 792 const uint64_t *src = (const uint64_t *)(rb->base_address) + rb->rptr / sizeof(uint64_t); in dmub_rb_out_trace_buffer_front() 797 if (rb->rptr == rb->wrpt) in dmub_rb_out_trace_buffer_front() 805 rb->rptr += sizeof(struct dmcub_trace_buf_entry); in dmub_rb_out_trace_buffer_front() 807 rb->rptr %= rb->capacity; in dmub_rb_out_trace_buffer_front()
|
/linux/drivers/net/ethernet/cavium/liquidio/ |
A D | octeon_iq.h | 195 u64 rptr; member 226 u64 rptr; member 253 u64 rptr; member
|
/linux/fs/xfs/libxfs/ |
A D | xfs_btree.c | 2471 if (xfs_btree_ptr_is_null(cur, &rptr)) in xfs_btree_rshift() 2777 *ptrp = rptr; in __xfs_btree_split() 3002 union xfs_btree_ptr rptr; in xfs_btree_new_root() local 3041 if (!xfs_btree_ptr_is_null(cur, &rptr)) { in xfs_btree_new_root() 3054 xfs_btree_buf_to_ptr(cur, rbp, &rptr); in xfs_btree_new_root() 3068 !xfs_btree_ptr_is_null(cur, &rptr)); in xfs_btree_new_root() 3810 if (xfs_btree_ptr_is_null(cur, &rptr) && in xfs_btree_delrec() 3837 if (!xfs_btree_ptr_is_null(cur, &rptr)) { in xfs_btree_delrec() 3997 rptr = cptr; in xfs_btree_delrec() 4257 union xfs_btree_ptr rptr; in xfs_btree_visit_block() local [all …]
|