/kernel/linux/linux-5.10/drivers/media/usb/pvrusb2/ |
H A 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, in pvr2_debugifc_do1cmd() [all...] |
/kernel/linux/linux-6.6/drivers/media/usb/pvrusb2/ |
H A 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, in pvr2_debugifc_do1cmd() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_ih.c | 61 /* add 8 bytes for the rptr/wptr shadows and in amdgpu_ih_ring_init() 124 /* add 8 bytes for the rptr/wptr shadows and in amdgpu_ih_ring_fini() 146 * Writes an IV to the ring buffer using the CPU and increment the wptr. 152 uint32_t wptr = le32_to_cpu(*ih->wptr_cpu) >> 2; in amdgpu_ih_ring_write() local 156 ih->ring[wptr++] = cpu_to_le32(iv[i]); in amdgpu_ih_ring_write() 158 wptr <<= 2; in amdgpu_ih_ring_write() 159 wptr &= ih->ptr_mask; in amdgpu_ih_ring_write() 161 /* Only commit the new wptr if we don't overflow */ in amdgpu_ih_ring_write() 162 if (wptr != READ_ONCE(ih->rptr)) { in amdgpu_ih_ring_write() 164 WRITE_ONCE(*ih->wptr_cpu, cpu_to_le32(wptr)); in amdgpu_ih_ring_write() 211 u32 wptr; amdgpu_ih_process() local [all...] |
H A D | iceland_ih.c | 42 * host is currently reading, and a wptr (write pointer) 46 * wptr. When there is an interrupt, the host then starts 88 /* set rptr, wptr to 0 */ in iceland_ih_disable_interrupts() 143 /* set rptr, wptr to 0 */ in iceland_ih_irq_init() 179 * iceland_ih_get_wptr - get the IH ring buffer wptr 182 * @ih: IH ring buffer to fetch wptr 184 * Get the IH ring buffer wptr from either the register 188 * Returns the value of the wptr. 193 u32 wptr, tmp; in iceland_ih_get_wptr() local 195 wptr in iceland_ih_get_wptr() [all...] |
H A D | cz_ih.c | 42 * host is currently reading, and a wptr (write pointer) 46 * wptr. When there is an interrupt, the host then starts 88 /* set rptr, wptr to 0 */ in cz_ih_disable_interrupts() 143 /* set rptr, wptr to 0 */ in cz_ih_irq_init() 179 * cz_ih_get_wptr - get the IH ring buffer wptr 182 * @ih: IH ring buffer to fetch wptr 184 * Get the IH ring buffer wptr from either the register 188 * Returns the value of the wptr. 193 u32 wptr, tmp; in cz_ih_get_wptr() local 195 wptr in cz_ih_get_wptr() [all...] |
H A D | tonga_ih.c | 42 * host is currently reading, and a wptr (write pointer) 46 * wptr. When there is an interrupt, the host then starts 84 /* set rptr, wptr to 0 */ in tonga_ih_disable_interrupts() 141 /* set rptr, wptr to 0 */ in tonga_ih_irq_init() 181 * tonga_ih_get_wptr - get the IH ring buffer wptr 184 * @ih: IH ring buffer to fetch wptr 186 * Get the IH ring buffer wptr from either the register 190 * Returns the value of the wptr. 195 u32 wptr, tmp; in tonga_ih_get_wptr() local 197 wptr in tonga_ih_get_wptr() [all...] |
H A D | cik_ih.c | 42 * host is currently reading, and a wptr (write pointer) 46 * wptr. When there is an interrupt, the host then starts 88 /* set rptr, wptr to 0 */ in cik_ih_disable_interrupts() 141 /* set rptr, wptr to 0 */ in cik_ih_irq_init() 177 * cik_ih_get_wptr - get the IH ring buffer wptr 180 * @ih: IH ring buffer to fetch wptr 182 * Get the IH ring buffer wptr from either the register 186 * Returns the value of the wptr. 191 u32 wptr, tmp; in cik_ih_get_wptr() local 193 wptr in cik_ih_get_wptr() [all...] |
H A 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() 129 return (wptr & ih->ptr_mask); in si_ih_get_wptr()
|
/kernel/linux/linux-6.6/drivers/media/platform/amphion/ |
H A D | vpu_rpc.c | 39 ptr1 = desc->wptr; in vpu_rpc_check_buffer_space() 43 ptr2 = desc->wptr; in vpu_rpc_check_buffer_space() 61 u32 wptr; in vpu_rpc_send_cmd_buf() local 70 wptr = desc->wptr; in vpu_rpc_send_cmd_buf() 71 data = (u32 *)(shared->cmd_mem_vir + desc->wptr - desc->start); in vpu_rpc_send_cmd_buf() 76 wptr += 4; in vpu_rpc_send_cmd_buf() 78 if (wptr >= desc->end) { in vpu_rpc_send_cmd_buf() 79 wptr = desc->start; in vpu_rpc_send_cmd_buf() 85 wptr in vpu_rpc_send_cmd_buf() [all...] |
H A 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() 502 writel(buf->phys, &str_buf->wptr); in vpu_malone_config_stream_buffer() 519 desc->wptr = readl(&str_buf->wptr); in vpu_malone_get_stream_buffer_desc() 528 static void vpu_malone_update_wptr(struct vpu_malone_str_buffer __iomem *str_buf, u32 wptr) in vpu_malone_update_wptr() argument 1057 u32 wptr; vpu_malone_add_padding_scode() local 1533 u32 wptr = readl(&str_buf->wptr); vpu_malone_input_frame_data() local 1587 u32 wptr = readl(&str_buf->wptr); vpu_malone_input_stream_data() local 1659 u32 wptr = desc->wptr; vpu_malone_check_ready() local [all...] |
H A D | vpu_helpers.c | 271 u32 *wptr, u32 size, void *src) in vpu_helper_copy_to_stream_buffer() 278 if (!stream_buffer || !wptr || !src) in vpu_helper_copy_to_stream_buffer() 284 offset = *wptr; in vpu_helper_copy_to_stream_buffer() 298 *wptr = vpu_helper_step_walk(stream_buffer, offset, size); in vpu_helper_copy_to_stream_buffer() 304 u32 *wptr, u8 val, u32 size) in vpu_helper_memset_stream_buffer() 311 if (!stream_buffer || !wptr) in vpu_helper_memset_stream_buffer() 317 offset = *wptr; in vpu_helper_memset_stream_buffer() 335 *wptr = offset; in vpu_helper_memset_stream_buffer() 347 if (desc.rptr > desc.wptr) in vpu_helper_get_free_space() 348 return desc.rptr - desc.wptr; in vpu_helper_get_free_space() 270 vpu_helper_copy_to_stream_buffer(struct vpu_buffer *stream_buffer, u32 *wptr, u32 size, void *src) vpu_helper_copy_to_stream_buffer() argument 303 vpu_helper_memset_stream_buffer(struct vpu_buffer *stream_buffer, u32 *wptr, u8 val, u32 size) vpu_helper_memset_stream_buffer() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/ppp/ |
H A 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 in bsd_compress() 843 unsigned char *wptr; bsd_decompress() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ppp/ |
H A 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 in bsd_compress() 843 unsigned char *wptr; bsd_decompress() local [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
H A D | iceland_ih.c | 42 * host is currently reading, and a wptr (write pointer) 46 * wptr. When there is an interrupt, the host then starts 88 /* set rptr, wptr to 0 */ in iceland_ih_disable_interrupts() 143 /* set rptr, wptr to 0 */ in iceland_ih_irq_init() 179 * iceland_ih_get_wptr - get the IH ring buffer wptr 183 * Get the IH ring buffer wptr from either the register 187 * Returns the value of the wptr. 192 u32 wptr, tmp; in iceland_ih_get_wptr() local 194 wptr = le32_to_cpu(*ih->wptr_cpu); in iceland_ih_get_wptr() 196 if (!REG_GET_FIELD(wptr, IH_RB_WPT in iceland_ih_get_wptr() [all...] |
H A D | cz_ih.c | 42 * host is currently reading, and a wptr (write pointer) 46 * wptr. When there is an interrupt, the host then starts 88 /* set rptr, wptr to 0 */ in cz_ih_disable_interrupts() 143 /* set rptr, wptr to 0 */ in cz_ih_irq_init() 179 * cz_ih_get_wptr - get the IH ring buffer wptr 183 * Get the IH ring buffer wptr from either the register 187 * Returns the value of the wptr. 192 u32 wptr, tmp; in cz_ih_get_wptr() local 194 wptr = le32_to_cpu(*ih->wptr_cpu); in cz_ih_get_wptr() 196 if (!REG_GET_FIELD(wptr, IH_RB_WPT in cz_ih_get_wptr() [all...] |
H A D | tonga_ih.c | 42 * host is currently reading, and a wptr (write pointer) 46 * wptr. When there is an interrupt, the host then starts 84 /* set rptr, wptr to 0 */ in tonga_ih_disable_interrupts() 141 /* set rptr, wptr to 0 */ in tonga_ih_irq_init() 181 * tonga_ih_get_wptr - get the IH ring buffer wptr 185 * Get the IH ring buffer wptr from either the register 189 * Returns the value of the wptr. 194 u32 wptr, tmp; in tonga_ih_get_wptr() local 196 wptr = le32_to_cpu(*ih->wptr_cpu); in tonga_ih_get_wptr() 198 if (!REG_GET_FIELD(wptr, IH_RB_WPT in tonga_ih_get_wptr() [all...] |
H A D | amdgpu_ih.c | 61 /* add 8 bytes for the rptr/wptr shadows and in amdgpu_ih_ring_init() 120 /* add 8 bytes for the rptr/wptr shadows and in amdgpu_ih_ring_fini() 146 u32 wptr; in amdgpu_ih_process() local 151 wptr = amdgpu_ih_get_wptr(adev, ih); in amdgpu_ih_process() 158 DRM_DEBUG("%s: rptr %d, wptr %d\n", __func__, ih->rptr, wptr); in amdgpu_ih_process() 160 /* Order reading of wptr vs. reading of IH ring data */ in amdgpu_ih_process() 163 while (ih->rptr != wptr && --count) { in amdgpu_ih_process() 171 /* make sure wptr hasn't changed while processing */ in amdgpu_ih_process() 172 wptr in amdgpu_ih_process() [all...] |
H A D | cik_ih.c | 42 * host is currently reading, and a wptr (write pointer) 46 * wptr. When there is an interrupt, the host then starts 88 /* set rptr, wptr to 0 */ in cik_ih_disable_interrupts() 141 /* set rptr, wptr to 0 */ in cik_ih_irq_init() 177 * cik_ih_get_wptr - get the IH ring buffer wptr 181 * Get the IH ring buffer wptr from either the register 185 * Returns the value of the wptr. 190 u32 wptr, tmp; in cik_ih_get_wptr() local 192 wptr = le32_to_cpu(*ih->wptr_cpu); in cik_ih_get_wptr() 194 if (wptr in cik_ih_get_wptr() [all...] |
H A 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()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/radeon/ |
H A D | radeon_ring.c | 41 * GPU is currently reading, and a wptr (write pointer) 45 * wptr. The GPU then starts fetching commands and executes 87 ring->ring_free_dw -= ring->wptr; in radeon_ring_free_size() 128 ring->wptr_old = ring->wptr; in radeon_ring_alloc() 164 * Update the wptr (write pointer) to tell the GPU to 176 while (ring->wptr & ring->align_mask) { in radeon_ring_commit() 206 * radeon_ring_undo - reset the wptr 210 * Reset the driver's copy of the wptr (all asics). 214 ring->wptr = ring->wptr_old; in radeon_ring_undo() 218 * radeon_ring_unlock_undo - reset the wptr an 470 uint32_t rptr, wptr, rptr_next; radeon_debugfs_ring_info_show() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/tehuti/ |
H A D | tehuti.c | 171 f->wptr = 0; in bdx_fifo_init() 1107 rxfd = (struct rxf_desc *)(f->m.va + f->m.wptr); in bdx_rx_alloc_skbs() 1115 f->m.wptr += sizeof(struct rxf_desc); in bdx_rx_alloc_skbs() 1116 delta = f->m.wptr - f->m.memsz; in bdx_rx_alloc_skbs() 1118 f->m.wptr = delta; in bdx_rx_alloc_skbs() 1126 /*TBD: to do - delayed rxf wptr like in txd */ in bdx_rx_alloc_skbs() 1127 WRITE_REG(priv, f->m.reg_WPTR, f->m.wptr & TXF_WPTR_WR_PTR); in bdx_rx_alloc_skbs() 1162 rxfd = (struct rxf_desc *)(f->m.va + f->m.wptr); in bdx_recycle_skb() 1170 f->m.wptr += sizeof(struct rxf_desc); in bdx_recycle_skb() 1171 delta = f->m.wptr in bdx_recycle_skb() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/tehuti/ |
H A 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() 1120 /*TBD: to do - delayed rxf wptr like in txd */ 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 in bdx_recycle_skb() [all...] |
/kernel/linux/linux-5.10/drivers/crypto/ccp/ |
H A 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() 270 dev_dbg(tee->dev, "tee: ring buffer full. rptr = %u wptr = %u\n", 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() 283 dev_err(tee->dev, "tee: ring buffer full. rptr = %u wptr = %u response flag %u\n", 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 > in tee_submit_cmd() [all...] |
/kernel/linux/linux-6.6/drivers/crypto/ccp/ |
H A D | tee-dev.c | 125 tee->rb_mgr.wptr = 0; in tee_init_ring() 260 (tee->rb_mgr.ring_start + tee->rb_mgr.wptr); in tee_submit_cmd() 267 if (!(tee->rb_mgr.wptr + sizeof(struct tee_ring_cmd) == rptr || in tee_submit_cmd() 271 dev_dbg(tee->dev, "tee: ring buffer full. rptr = %u wptr = %u\n", in tee_submit_cmd() 272 rptr, tee->rb_mgr.wptr); in tee_submit_cmd() 282 (tee->rb_mgr.wptr + sizeof(struct tee_ring_cmd) == rptr || in tee_submit_cmd() 284 dev_err(tee->dev, "tee: ring buffer full. rptr = %u wptr = %u response flag %u\n", in tee_submit_cmd() 285 rptr, tee->rb_mgr.wptr, cmd->flag); in tee_submit_cmd() 308 tee->rb_mgr.wptr += sizeof(struct tee_ring_cmd); in tee_submit_cmd() 309 if (tee->rb_mgr.wptr > in tee_submit_cmd() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_kernel_queue.c | 233 uint32_t wptr, rptr; in kq_acquire_packet_buffer() local 237 /* When rptr == wptr, the buffer is empty. in kq_acquire_packet_buffer() 238 * When rptr == wptr + 1, the buffer is full. in kq_acquire_packet_buffer() 239 * It is always rptr that advances to the position of wptr, rather than in kq_acquire_packet_buffer() 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 > in kq_acquire_packet_buffer() [all...] |