/Linux-v6.1/drivers/media/usb/pvrusb2/ |
D | pvrusb2-debugifc.c | 55 const char *wptr; in debugifc_isolate_word() local 60 wptr = NULL; in debugifc_isolate_word() 68 wptr = buf; in debugifc_isolate_word() 73 *wstrPtr = wptr; in debugifc_isolate_word() 182 const char *wptr; in pvr2_debugifc_do1cmd() local 186 scnt = debugifc_isolate_word(buf,count,&wptr,&wlen); in pvr2_debugifc_do1cmd() 189 if (!wptr) return 0; in pvr2_debugifc_do1cmd() 191 pvr2_trace(PVR2_TRACE_DEBUGIFC,"debugifc cmd: \"%.*s\"",wlen,wptr); in pvr2_debugifc_do1cmd() 192 if (debugifc_match_keyword(wptr,wlen,"reset")) { in pvr2_debugifc_do1cmd() 193 scnt = debugifc_isolate_word(buf,count,&wptr,&wlen); in pvr2_debugifc_do1cmd() [all …]
|
/Linux-v6.1/drivers/media/platform/amphion/ |
D | vpu_rpc.c | 41 ptr1 = desc->wptr; in vpu_rpc_check_buffer_space() 45 ptr2 = desc->wptr; in vpu_rpc_check_buffer_space() 63 u32 wptr; in vpu_rpc_send_cmd_buf() local 72 wptr = desc->wptr; in vpu_rpc_send_cmd_buf() 73 data = (u32 *)(shared->cmd_mem_vir + desc->wptr - desc->start); in vpu_rpc_send_cmd_buf() 78 wptr += 4; in vpu_rpc_send_cmd_buf() 80 if (wptr >= desc->end) { in vpu_rpc_send_cmd_buf() 81 wptr = desc->start; in vpu_rpc_send_cmd_buf() 87 wptr += 4; in vpu_rpc_send_cmd_buf() 89 if (wptr >= desc->end) { in vpu_rpc_send_cmd_buf() [all …]
|
D | vpu_malone.c | 187 u32 wptr; member 318 u32 wptr; member 375 iface->cmd_buffer_desc.buffer.wptr = phy_addr; in vpu_malone_init_rpc() 383 iface->msg_buffer_desc.buffer.wptr = in vpu_malone_init_rpc() 427 iface->eng_access_buff_desc[i].buffer.wptr = in vpu_malone_init_rpc() 450 iface->debug_buffer_desc.buffer.wptr = in vpu_malone_set_log_buf() 499 writel(buf->phys, &str_buf->wptr); in vpu_malone_config_stream_buffer() 516 desc->wptr = readl(&str_buf->wptr); in vpu_malone_get_stream_buffer_desc() 525 static void vpu_malone_update_wptr(struct vpu_malone_str_buffer __iomem *str_buf, u32 wptr) in vpu_malone_update_wptr() argument 529 writel(wptr, &str_buf->wptr); in vpu_malone_update_wptr() [all …]
|
D | vpu_helpers.c | 235 u32 *wptr, u32 size, void *src) in vpu_helper_copy_to_stream_buffer() argument 242 if (!stream_buffer || !wptr || !src) in vpu_helper_copy_to_stream_buffer() 248 offset = *wptr; in vpu_helper_copy_to_stream_buffer() 262 *wptr = vpu_helper_step_walk(stream_buffer, offset, size); in vpu_helper_copy_to_stream_buffer() 268 u32 *wptr, u8 val, u32 size) in vpu_helper_memset_stream_buffer() argument 275 if (!stream_buffer || !wptr) in vpu_helper_memset_stream_buffer() 281 offset = *wptr; in vpu_helper_memset_stream_buffer() 299 *wptr = offset; in vpu_helper_memset_stream_buffer() 311 if (desc.rptr > desc.wptr) in vpu_helper_get_free_space() 312 return desc.rptr - desc.wptr; in vpu_helper_get_free_space() [all …]
|
/Linux-v6.1/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_ih.c | 151 uint32_t wptr = le32_to_cpu(*ih->wptr_cpu) >> 2; in amdgpu_ih_ring_write() local 155 ih->ring[wptr++] = cpu_to_le32(iv[i]); in amdgpu_ih_ring_write() 157 wptr <<= 2; in amdgpu_ih_ring_write() 158 wptr &= ih->ptr_mask; in amdgpu_ih_ring_write() 161 if (wptr != READ_ONCE(ih->rptr)) { in amdgpu_ih_ring_write() 163 WRITE_ONCE(*ih->wptr_cpu, cpu_to_le32(wptr)); in amdgpu_ih_ring_write() 207 u32 wptr; in amdgpu_ih_process() local 212 wptr = amdgpu_ih_get_wptr(adev, ih); in amdgpu_ih_process() 216 DRM_DEBUG("%s: rptr %d, wptr %d\n", __func__, ih->rptr, wptr); in amdgpu_ih_process() 221 while (ih->rptr != wptr && --count) { in amdgpu_ih_process() [all …]
|
D | cz_ih.c | 193 u32 wptr, tmp; in cz_ih_get_wptr() local 195 wptr = le32_to_cpu(*ih->wptr_cpu); in cz_ih_get_wptr() 197 if (!REG_GET_FIELD(wptr, IH_RB_WPTR, RB_OVERFLOW)) in cz_ih_get_wptr() 201 wptr = RREG32(mmIH_RB_WPTR); in cz_ih_get_wptr() 203 if (!REG_GET_FIELD(wptr, IH_RB_WPTR, RB_OVERFLOW)) in cz_ih_get_wptr() 206 wptr = REG_SET_FIELD(wptr, IH_RB_WPTR, RB_OVERFLOW, 0); in cz_ih_get_wptr() 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() 221 return (wptr & ih->ptr_mask); in cz_ih_get_wptr()
|
D | iceland_ih.c | 193 u32 wptr, tmp; in iceland_ih_get_wptr() local 195 wptr = le32_to_cpu(*ih->wptr_cpu); in iceland_ih_get_wptr() 197 if (!REG_GET_FIELD(wptr, IH_RB_WPTR, RB_OVERFLOW)) in iceland_ih_get_wptr() 201 wptr = RREG32(mmIH_RB_WPTR); in iceland_ih_get_wptr() 203 if (!REG_GET_FIELD(wptr, IH_RB_WPTR, RB_OVERFLOW)) in iceland_ih_get_wptr() 206 wptr = REG_SET_FIELD(wptr, IH_RB_WPTR, RB_OVERFLOW, 0); in iceland_ih_get_wptr() 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() 220 return (wptr & ih->ptr_mask); in iceland_ih_get_wptr()
|
D | tonga_ih.c | 195 u32 wptr, tmp; in tonga_ih_get_wptr() local 197 wptr = le32_to_cpu(*ih->wptr_cpu); in tonga_ih_get_wptr() 199 if (!REG_GET_FIELD(wptr, IH_RB_WPTR, RB_OVERFLOW)) in tonga_ih_get_wptr() 203 wptr = RREG32(mmIH_RB_WPTR); in tonga_ih_get_wptr() 205 if (!REG_GET_FIELD(wptr, IH_RB_WPTR, RB_OVERFLOW)) in tonga_ih_get_wptr() 208 wptr = REG_SET_FIELD(wptr, IH_RB_WPTR, RB_OVERFLOW, 0); in tonga_ih_get_wptr() 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() 223 return (wptr & ih->ptr_mask); in tonga_ih_get_wptr()
|
D | cik_ih.c | 191 u32 wptr, tmp; in cik_ih_get_wptr() local 193 wptr = le32_to_cpu(*ih->wptr_cpu); in cik_ih_get_wptr() 195 if (wptr & IH_RB_WPTR__RB_OVERFLOW_MASK) { in cik_ih_get_wptr() 196 wptr &= ~IH_RB_WPTR__RB_OVERFLOW_MASK; in cik_ih_get_wptr() 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() 208 return (wptr & ih->ptr_mask); in cik_ih_get_wptr()
|
D | si_ih.c | 110 u32 wptr, tmp; in si_ih_get_wptr() local 112 wptr = le32_to_cpu(*ih->wptr_cpu); in si_ih_get_wptr() 114 if (wptr & IH_RB_WPTR__RB_OVERFLOW_MASK) { in si_ih_get_wptr() 115 wptr &= ~IH_RB_WPTR__RB_OVERFLOW_MASK; in si_ih_get_wptr() 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() 123 return (wptr & ih->ptr_mask); in si_ih_get_wptr()
|
D | sdma_v5_0.c | 288 ret = ring->wptr & ring->buf_mask;/* this is the offset we need patch later */ in sdma_v5_0_ring_init_cond_exec() 302 cur = (ring->wptr - 1) & ring->buf_mask; in sdma_v5_0_ring_patch_cond_exec() 337 u64 wptr; in sdma_v5_0_ring_get_wptr() local 341 wptr = READ_ONCE(*((u64 *)ring->wptr_cpu_addr)); in sdma_v5_0_ring_get_wptr() 342 DRM_DEBUG("wptr/doorbell before shift == 0x%016llx\n", wptr); in sdma_v5_0_ring_get_wptr() 344 wptr = RREG32_SOC15_IP(GC, sdma_v5_0_get_reg_offset(adev, ring->me, mmSDMA0_GFX_RB_WPTR_HI)); in sdma_v5_0_ring_get_wptr() 345 wptr = wptr << 32; in sdma_v5_0_ring_get_wptr() 346 wptr |= RREG32_SOC15_IP(GC, sdma_v5_0_get_reg_offset(adev, ring->me, mmSDMA0_GFX_RB_WPTR)); in sdma_v5_0_ring_get_wptr() 347 DRM_DEBUG("wptr before shift [%i] wptr == 0x%016llx\n", ring->me, wptr); in sdma_v5_0_ring_get_wptr() 350 return wptr >> 2; in sdma_v5_0_ring_get_wptr() [all …]
|
D | sdma_v6_0.c | 112 ret = ring->wptr & ring->buf_mask;/* this is the offset we need patch later */ in sdma_v6_0_ring_init_cond_exec() 126 cur = (ring->wptr - 1) & ring->buf_mask; in sdma_v6_0_ring_patch_cond_exec() 160 u64 wptr = 0; in sdma_v6_0_ring_get_wptr() local 164 wptr = READ_ONCE(*((u64 *)ring->wptr_cpu_addr)); in sdma_v6_0_ring_get_wptr() 165 DRM_DEBUG("wptr/doorbell before shift == 0x%016llx\n", wptr); in sdma_v6_0_ring_get_wptr() 168 return wptr >> 2; in sdma_v6_0_ring_get_wptr() 197 ring->wptr << 2); in sdma_v6_0_ring_set_wptr() 198 *wptr_saved = ring->wptr << 2; in sdma_v6_0_ring_set_wptr() 200 WDOORBELL64(aggregated_db_index, ring->wptr << 2); in sdma_v6_0_ring_set_wptr() 202 ring->doorbell_index, ring->wptr << 2); in sdma_v6_0_ring_set_wptr() [all …]
|
D | ih_v6_0.c | 393 u32 wptr, tmp; in ih_v6_0_get_wptr() local 396 wptr = le32_to_cpu(*ih->wptr_cpu); in ih_v6_0_get_wptr() 399 if (!REG_GET_FIELD(wptr, IH_RB_WPTR, RB_OVERFLOW)) in ih_v6_0_get_wptr() 402 wptr = RREG32_NO_KIQ(ih_regs->ih_rb_wptr); in ih_v6_0_get_wptr() 403 if (!REG_GET_FIELD(wptr, IH_RB_WPTR, RB_OVERFLOW)) in ih_v6_0_get_wptr() 405 wptr = REG_SET_FIELD(wptr, IH_RB_WPTR, RB_OVERFLOW, 0); in ih_v6_0_get_wptr() 411 tmp = (wptr + 32) & ih->ptr_mask; in ih_v6_0_get_wptr() 414 wptr, ih->rptr, tmp); in ih_v6_0_get_wptr() 421 return (wptr & ih->ptr_mask); in ih_v6_0_get_wptr() 487 uint32_t wptr = cpu_to_le32(entry->src_data[0]); in ih_v6_0_self_irq() local [all …]
|
D | vega10_ih.c | 338 u32 wptr, tmp; in vega10_ih_get_wptr() local 347 wptr = le32_to_cpu(*ih->wptr_cpu); in vega10_ih_get_wptr() 349 if (!REG_GET_FIELD(wptr, IH_RB_WPTR, RB_OVERFLOW)) in vega10_ih_get_wptr() 356 wptr = RREG32_NO_KIQ(ih_regs->ih_rb_wptr); in vega10_ih_get_wptr() 357 if (!REG_GET_FIELD(wptr, IH_RB_WPTR, RB_OVERFLOW)) in vega10_ih_get_wptr() 360 wptr = REG_SET_FIELD(wptr, IH_RB_WPTR, RB_OVERFLOW, 0); in vega10_ih_get_wptr() 366 tmp = (wptr + 32) & ih->ptr_mask; in vega10_ih_get_wptr() 369 wptr, ih->rptr, tmp); in vega10_ih_get_wptr() 377 return (wptr & ih->ptr_mask); in vega10_ih_get_wptr()
|
D | vcn_v2_0.c | 918 ring->wptr = RREG32_SOC15(UVD, 0, mmUVD_RBC_RB_RPTR); in vcn_v2_0_start_dpg_mode() 920 lower_32_bits(ring->wptr)); in vcn_v2_0_start_dpg_mode() 1076 ring->wptr = RREG32_SOC15(UVD, 0, mmUVD_RBC_RB_RPTR); in vcn_v2_0_start() 1078 lower_32_bits(ring->wptr)); in vcn_v2_0_start() 1083 WREG32_SOC15(UVD, 0, mmUVD_RB_RPTR, lower_32_bits(ring->wptr)); in vcn_v2_0_start() 1084 WREG32_SOC15(UVD, 0, mmUVD_RB_WPTR, lower_32_bits(ring->wptr)); in vcn_v2_0_start() 1092 WREG32_SOC15(UVD, 0, mmUVD_RB_RPTR2, lower_32_bits(ring->wptr)); in vcn_v2_0_start() 1093 WREG32_SOC15(UVD, 0, mmUVD_RB_WPTR2, lower_32_bits(ring->wptr)); in vcn_v2_0_start() 1236 ring->wptr = 0; in vcn_v2_0_pause_dpg_mode() 1240 WREG32_SOC15(UVD, 0, mmUVD_RB_RPTR, lower_32_bits(ring->wptr)); in vcn_v2_0_pause_dpg_mode() [all …]
|
D | vcn_v3_0.c | 314 ring->wptr = 0; in vcn_v3_0_hw_init() 327 ring->wptr = 0; in vcn_v3_0_hw_init() 1075 ring->wptr = RREG32_SOC15(VCN, inst_idx, mmUVD_RBC_RB_RPTR); in vcn_v3_0_start_dpg_mode() 1077 lower_32_bits(ring->wptr)); in vcn_v3_0_start_dpg_mode() 1081 fw_shared->rb.wptr = lower_32_bits(ring->wptr); in vcn_v3_0_start_dpg_mode() 1251 ring->wptr = RREG32_SOC15(VCN, i, mmUVD_RBC_RB_RPTR); in vcn_v3_0_start() 1253 lower_32_bits(ring->wptr)); in vcn_v3_0_start() 1254 fw_shared->rb.wptr = lower_32_bits(ring->wptr); in vcn_v3_0_start() 1260 WREG32_SOC15(VCN, i, mmUVD_RB_RPTR, lower_32_bits(ring->wptr)); in vcn_v3_0_start() 1261 WREG32_SOC15(VCN, i, mmUVD_RB_WPTR, lower_32_bits(ring->wptr)); in vcn_v3_0_start() [all …]
|
D | vega20_ih.c | 389 u32 wptr, tmp; in vega20_ih_get_wptr() local 398 wptr = le32_to_cpu(*ih->wptr_cpu); in vega20_ih_get_wptr() 400 if (!REG_GET_FIELD(wptr, IH_RB_WPTR, RB_OVERFLOW)) in vega20_ih_get_wptr() 407 wptr = RREG32_NO_KIQ(ih_regs->ih_rb_wptr); in vega20_ih_get_wptr() 408 if (!REG_GET_FIELD(wptr, IH_RB_WPTR, RB_OVERFLOW)) in vega20_ih_get_wptr() 411 wptr = REG_SET_FIELD(wptr, IH_RB_WPTR, RB_OVERFLOW, 0); in vega20_ih_get_wptr() 417 tmp = (wptr + 32) & ih->ptr_mask; in vega20_ih_get_wptr() 420 wptr, ih->rptr, tmp); in vega20_ih_get_wptr() 428 return (wptr & ih->ptr_mask); in vega20_ih_get_wptr()
|
/Linux-v6.1/drivers/net/ppp/ |
D | bsd_comp.c | 580 unsigned char *wptr; in bsd_compress() local 586 if (wptr) \ in bsd_compress() 588 *wptr++ = (unsigned char) (v); \ in bsd_compress() 591 wptr = NULL; \ in bsd_compress() 630 wptr = obuf; in bsd_compress() 639 if (wptr) in bsd_compress() 641 *wptr++ = PPP_ADDRESS(rptr); in bsd_compress() 642 *wptr++ = PPP_CONTROL(rptr); in bsd_compress() 643 *wptr++ = 0; in bsd_compress() 644 *wptr++ = PPP_COMP; in bsd_compress() [all …]
|
D | ppp_deflate.c | 190 unsigned char *wptr; in z_compress() local 204 wptr = obuf; in z_compress() 209 wptr[0] = PPP_ADDRESS(rptr); in z_compress() 210 wptr[1] = PPP_CONTROL(rptr); in z_compress() 211 put_unaligned_be16(PPP_COMP, wptr + 2); in z_compress() 212 wptr += PPP_HDRLEN; in z_compress() 213 put_unaligned_be16(state->seqno, wptr); in z_compress() 214 wptr += DEFLATE_OVHD; in z_compress() 216 state->strm.next_out = wptr; in z_compress()
|
/Linux-v6.1/drivers/net/ethernet/tehuti/ |
D | tehuti.c | 171 f->wptr = 0; in bdx_fifo_init() 1101 rxfd = (struct rxf_desc *)(f->m.va + f->m.wptr); in bdx_rx_alloc_skbs() 1109 f->m.wptr += sizeof(struct rxf_desc); in bdx_rx_alloc_skbs() 1110 delta = f->m.wptr - f->m.memsz; in bdx_rx_alloc_skbs() 1112 f->m.wptr = delta; in bdx_rx_alloc_skbs() 1121 WRITE_REG(priv, f->m.reg_WPTR, f->m.wptr & TXF_WPTR_WR_PTR); in bdx_rx_alloc_skbs() 1156 rxfd = (struct rxf_desc *)(f->m.va + f->m.wptr); in bdx_recycle_skb() 1164 f->m.wptr += sizeof(struct rxf_desc); in bdx_recycle_skb() 1165 delta = f->m.wptr - f->m.memsz; in bdx_recycle_skb() 1167 f->m.wptr = delta; in bdx_recycle_skb() [all …]
|
/Linux-v6.1/drivers/gpu/drm/radeon/ |
D | radeon_ring.c | 87 ring->ring_free_dw -= ring->wptr; in radeon_ring_free_size() 128 ring->wptr_old = ring->wptr; in radeon_ring_alloc() 176 while (ring->wptr & ring->align_mask) { in radeon_ring_commit() 214 ring->wptr = ring->wptr_old; in radeon_ring_undo() 314 size = ring->wptr + (ring->ring_size / 4); in radeon_ring_backup() 470 uint32_t rptr, wptr, rptr_next; in radeon_debugfs_ring_info_show() local 476 wptr = radeon_ring_get_wptr(rdev, ring); in radeon_debugfs_ring_info_show() 478 wptr, wptr); in radeon_debugfs_ring_info_show() 492 ring->wptr, ring->wptr); in radeon_debugfs_ring_info_show()
|
D | vce_v1_0.c | 98 WREG32(VCE_RB_WPTR, ring->wptr); in vce_v1_0_set_wptr() 100 WREG32(VCE_RB_WPTR2, ring->wptr); in vce_v1_0_set_wptr() 298 WREG32(VCE_RB_RPTR, ring->wptr); in vce_v1_0_start() 299 WREG32(VCE_RB_WPTR, ring->wptr); in vce_v1_0_start() 305 WREG32(VCE_RB_RPTR2, ring->wptr); in vce_v1_0_start() 306 WREG32(VCE_RB_WPTR2, ring->wptr); in vce_v1_0_start()
|
/Linux-v6.1/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_kernel_queue.c | 233 uint32_t wptr, rptr; in kq_acquire_packet_buffer() local 243 wptr = kq->pending_wptr; in kq_acquire_packet_buffer() 249 pr_debug("wptr: %d\n", wptr); in kq_acquire_packet_buffer() 252 available_size = (rptr + queue_size_dwords - 1 - wptr) % in kq_acquire_packet_buffer() 263 if (wptr + packet_size_in_dwords >= queue_size_dwords) { in kq_acquire_packet_buffer() 271 while (wptr > 0) { in kq_acquire_packet_buffer() 272 queue_address[wptr] = kq->nop_packet; in kq_acquire_packet_buffer() 273 wptr = (wptr + 1) % queue_size_dwords; in kq_acquire_packet_buffer() 278 *buffer_ptr = &queue_address[wptr]; in kq_acquire_packet_buffer() 279 kq->pending_wptr = wptr + packet_size_in_dwords; in kq_acquire_packet_buffer()
|
/Linux-v6.1/drivers/crypto/ccp/ |
D | tee-dev.c | 124 tee->rb_mgr.wptr = 0; in tee_init_ring() 259 (tee->rb_mgr.ring_start + tee->rb_mgr.wptr); 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() 307 tee->rb_mgr.wptr += sizeof(struct tee_ring_cmd); in tee_submit_cmd() 308 if (tee->rb_mgr.wptr >= tee->rb_mgr.ring_size) in tee_submit_cmd() 309 tee->rb_mgr.wptr = 0; in tee_submit_cmd() 312 iowrite32(tee->rb_mgr.wptr, tee->io_regs + tee->vdata->ring_wptr_reg); in tee_submit_cmd()
|
/Linux-v6.1/drivers/video/fbdev/ |
D | maxinefb.c | 67 unsigned char *wptr; in maxinefb_ims332_write_register() local 69 wptr = regs + 0xa0000 + (regno << 4); in maxinefb_ims332_write_register() 71 *((volatile unsigned short *) (wptr)) = val; in maxinefb_ims332_write_register()
|