/openbmc/linux/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 189 if (!wptr) return 0; in pvr2_debugifc_do1cmd() 196 if (!wptr) return -EINVAL; in pvr2_debugifc_do1cmd() 223 if (!wptr) return -EINVAL; in pvr2_debugifc_do1cmd() 226 if (scnt && wptr) { in pvr2_debugifc_do1cmd() 256 if (!wptr) return -EINVAL; in pvr2_debugifc_do1cmd() [all …]
|
/openbmc/qemu/tests/qemu-iotests/tests/ |
H A D | zoned.out | 5 start: 0x0, len 0x80000, cap 0x80000, wptr 0x0, zcond:1, [type: 2] 8 start: 0x0, len 0x80000, cap 0x80000, wptr 0x0, zcond:1, [type: 2] 9 start: 0x80000, len 0x80000, cap 0x80000, wptr 0x80000, zcond:1, [type: 2] 10 start: 0x100000, len 0x80000, cap 0x80000, wptr 0x100000, zcond:1, [type: 2] 11 start: 0x180000, len 0x80000, cap 0x80000, wptr 0x180000, zcond:1, [type: 2] 12 start: 0x200000, len 0x80000, cap 0x80000, wptr 0x200000, zcond:1, [type: 2] 25 start: 0x0, len 0x80000, cap 0x80000, wptr 0x0, zcond:3, [type: 2] 38 start: 0x0, len 0x80000, cap 0x80000, wptr 0x0, zcond:1, [type: 2] 56 start: 0x0, len 0x80000, cap 0x80000, wptr 0x0, zcond:1, [type: 2] 59 start: 0x0, len 0x80000, cap 0x80000, wptr 0x18, zcond:2, [type: 2] [all …]
|
/openbmc/linux/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() 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 += 4; in vpu_rpc_send_cmd_buf() 87 if (wptr >= desc->end) { in vpu_rpc_send_cmd_buf() 88 wptr = desc->start; in vpu_rpc_send_cmd_buf() [all …]
|
H A D | vpu_malone.c | 187 u32 wptr; member 519 desc->wptr = readl(&str_buf->wptr); in vpu_malone_get_stream_buffer_desc() 532 writel(wptr, &str_buf->wptr); in vpu_malone_update_wptr() 1068 wptr = readl(&str_buf->wptr); in vpu_malone_add_padding_scode() 1073 size = ALIGN(wptr, 4) - wptr; in vpu_malone_add_padding_scode() 1533 u32 wptr = readl(&str_buf->wptr); in vpu_malone_input_frame_data() local 1540 scode.wptr = wptr; in vpu_malone_input_frame_data() 1548 wptr = scode.wptr; in vpu_malone_input_frame_data() 1558 wptr = scode.wptr; in vpu_malone_input_frame_data() 1587 u32 wptr = readl(&str_buf->wptr); in vpu_malone_input_stream_data() local [all …]
|
H A D | vpu_helpers.c | 284 offset = *wptr; in vpu_helper_copy_to_stream_buffer() 304 u32 *wptr, u8 val, u32 size) in vpu_helper_memset_stream_buffer() argument 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() 349 else if (desc.rptr < desc.wptr) in vpu_helper_get_free_space() 362 if (desc.wptr > desc.rptr) in vpu_helper_get_used_space() 363 return desc.wptr - desc.rptr; in vpu_helper_get_used_space() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_ih.c | 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() 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() 167 wptr, ih->rptr); in amdgpu_ih_ring_write() 211 u32 wptr; in amdgpu_ih_process() local 216 wptr = amdgpu_ih_get_wptr(adev, ih); in amdgpu_ih_process() 225 while (ih->rptr != wptr && --count) { in amdgpu_ih_process() 234 wptr = amdgpu_ih_get_wptr(adev, ih); in amdgpu_ih_process() [all …]
|
H A 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() 225 return (wptr & ih->ptr_mask); in iceland_ih_get_wptr()
|
H A 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() 226 return (wptr & ih->ptr_mask); in cz_ih_get_wptr()
|
H A 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() 229 return (wptr & ih->ptr_mask); in tonga_ih_get_wptr()
|
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()
|
H A 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() 214 return (wptr & ih->ptr_mask); in cik_ih_get_wptr()
|
H A D | amdgpu_ring_mux.c | 214 void amdgpu_ring_mux_set_wptr(struct amdgpu_ring_mux *mux, struct amdgpu_ring *ring, u64 wptr) in amdgpu_ring_mux_set_wptr() argument 240 e->sw_wptr = wptr; in amdgpu_ring_mux_set_wptr() 241 e->start_ptr_in_hw_ring = mux->real_ring->wptr; in amdgpu_ring_mux_set_wptr() 244 if (ring->hw_prio > AMDGPU_RING_PRIO_DEFAULT || mux->wptr_resubmit < wptr) { in amdgpu_ring_mux_set_wptr() 245 amdgpu_ring_mux_copy_pkt_from_sw_ring(mux, ring, e->sw_cptr, wptr); in amdgpu_ring_mux_set_wptr() 246 e->end_ptr_in_hw_ring = mux->real_ring->wptr; in amdgpu_ring_mux_set_wptr() 249 e->end_ptr_in_hw_ring = mux->real_ring->wptr; in amdgpu_ring_mux_set_wptr() 341 amdgpu_ring_mux_set_wptr(mux, ring, ring->wptr); in amdgpu_sw_ring_set_wptr_gfx() 429 offset = ring->wptr & ring->buf_mask; in amdgpu_sw_ring_ib_mark_offset() 455 chunk->start = ring->wptr; in amdgpu_ring_mux_start_ib() [all …]
|
H A D | sdma_v5_0.c | 309 u64 wptr; in sdma_v5_0_ring_get_wptr() local 317 wptr = wptr << 32; in sdma_v5_0_ring_get_wptr() 322 return wptr >> 2; in sdma_v5_0_ring_get_wptr() 350 ring->wptr << 2); in sdma_v5_0_ring_set_wptr() 351 *wptr_saved = ring->wptr << 2; in sdma_v5_0_ring_set_wptr() 364 ring->wptr << 2); in sdma_v5_0_ring_set_wptr() 373 lower_32_bits(ring->wptr << 2), in sdma_v5_0_ring_set_wptr() 377 ring->wptr << 2); in sdma_v5_0_ring_set_wptr() 386 lower_32_bits(ring->wptr << 2), in sdma_v5_0_ring_set_wptr() 391 lower_32_bits(ring->wptr << 2)); in sdma_v5_0_ring_set_wptr() [all …]
|
H A D | ih_v6_1.c | 394 u32 wptr, tmp; in ih_v6_1_get_wptr() local 397 wptr = le32_to_cpu(*ih->wptr_cpu); in ih_v6_1_get_wptr() 400 if (!REG_GET_FIELD(wptr, IH_RB_WPTR, RB_OVERFLOW)) in ih_v6_1_get_wptr() 403 wptr = RREG32_NO_KIQ(ih_regs->ih_rb_wptr); in ih_v6_1_get_wptr() 404 if (!REG_GET_FIELD(wptr, IH_RB_WPTR, RB_OVERFLOW)) in ih_v6_1_get_wptr() 406 wptr = REG_SET_FIELD(wptr, IH_RB_WPTR, RB_OVERFLOW, 0); in ih_v6_1_get_wptr() 412 tmp = (wptr + 32) & ih->ptr_mask; in ih_v6_1_get_wptr() 415 wptr, ih->rptr, tmp); in ih_v6_1_get_wptr() 429 return (wptr & ih->ptr_mask); in ih_v6_1_get_wptr() 497 uint32_t wptr = cpu_to_le32(entry->src_data[0]); in ih_v6_1_self_irq() local [all …]
|
H A D | ih_v6_0.c | 422 u32 wptr, tmp; in ih_v6_0_get_wptr() local 425 wptr = le32_to_cpu(*ih->wptr_cpu); in ih_v6_0_get_wptr() 428 if (!REG_GET_FIELD(wptr, IH_RB_WPTR, RB_OVERFLOW)) in ih_v6_0_get_wptr() 431 wptr = RREG32_NO_KIQ(ih_regs->ih_rb_wptr); in ih_v6_0_get_wptr() 432 if (!REG_GET_FIELD(wptr, IH_RB_WPTR, RB_OVERFLOW)) in ih_v6_0_get_wptr() 434 wptr = REG_SET_FIELD(wptr, IH_RB_WPTR, RB_OVERFLOW, 0); in ih_v6_0_get_wptr() 440 tmp = (wptr + 32) & ih->ptr_mask; in ih_v6_0_get_wptr() 443 wptr, ih->rptr, tmp); in ih_v6_0_get_wptr() 456 return (wptr & ih->ptr_mask); in ih_v6_0_get_wptr() 524 uint32_t wptr = cpu_to_le32(entry->src_data[0]); in ih_v6_0_self_irq() local [all …]
|
H A D | sdma_v4_4_2.c | 176 u64 wptr; in sdma_v4_4_2_ring_get_wptr() local 184 wptr = wptr << 32; in sdma_v4_4_2_ring_get_wptr() 187 ring->me, wptr); in sdma_v4_4_2_ring_get_wptr() 190 return wptr >> 2; in sdma_v4_4_2_ring_get_wptr() 245 u64 wptr; in sdma_v4_4_2_page_ring_get_wptr() local 252 wptr = wptr << 32; in sdma_v4_4_2_page_ring_get_wptr() 256 return wptr >> 2; in sdma_v4_4_2_page_ring_get_wptr() 277 uint64_t wptr = ring->wptr << 2; in sdma_v4_4_2_page_ring_set_wptr() local 280 lower_32_bits(wptr)); in sdma_v4_4_2_page_ring_set_wptr() 652 ring->wptr = 0; in sdma_v4_4_2_gfx_resume() [all …]
|
/openbmc/linux/drivers/net/ppp/ |
H A D | bsd_comp.c | 586 if (wptr) \ in bsd_compress() 591 wptr = NULL; \ in bsd_compress() 630 wptr = obuf; in bsd_compress() 639 if (wptr) in bsd_compress() 643 *wptr++ = 0; in bsd_compress() 893 wptr = obuf; in bsd_decompress() 894 *wptr++ = adrs; in bsd_decompress() 895 *wptr++ = ctrl; in bsd_decompress() 896 *wptr++ = 0; in bsd_decompress() 994 wptr += codelen; in bsd_decompress() [all …]
|
H A 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()
|
/openbmc/qemu/audio/ |
H A D | jackaudio.c | 50 int rptr, wptr; member 102 buffer->wptr = 0; in qjack_buffer_create() 114 buffer->wptr = 0; in qjack_buffer_clear() 144 int wptr = buffer->wptr; in qjack_buffer_write() local 153 wptr = 0; in qjack_buffer_write() 159 buffer->wptr = wptr; in qjack_buffer_write() 170 int wptr = buffer->wptr; in qjack_buffer_write_l() local 187 wptr += frames; in qjack_buffer_write_l() 188 if (wptr >= buffer->frames) { in qjack_buffer_write_l() 189 wptr -= buffer->frames; in qjack_buffer_write_l() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/amdkfd/ |
H A 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()
|
/openbmc/linux/drivers/gpu/drm/radeon/ |
H A 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()
|
/openbmc/linux/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() 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() 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 >= tee->rb_mgr.ring_size) in tee_submit_cmd() 310 tee->rb_mgr.wptr = 0; in tee_submit_cmd() 313 iowrite32(tee->rb_mgr.wptr, tee->io_regs + tee->vdata->ring_wptr_reg); in tee_submit_cmd()
|
/openbmc/linux/drivers/net/ethernet/tehuti/ |
H A D | tehuti.c | 171 f->wptr = 0; in bdx_fifo_init() 1112 f->m.wptr = delta; in bdx_rx_alloc_skbs() 1167 f->m.wptr = delta; in bdx_recycle_skb() 1210 size = f->m.wptr - f->m.rptr; in bdx_rx_receive() 1427 d->wptr = d->start; in bdx_tx_db_init() 1505 db->wptr->addr.skb = skb; in bdx_tx_map_skb() 1568 fsize = f->m.rptr - f->m.wptr; in bdx_tx_space() 1639 len = f->m.wptr - f->m.memsz; in bdx_tx_transmit() 1641 f->m.wptr = len; in bdx_tx_transmit() 1806 f->m.wptr += size; in bdx_tx_push_desc() [all …]
|
/openbmc/qemu/hw/input/ |
H A D | adb-kbd.c | 43 int rptr, wptr, count; member 183 s->data[s->wptr] = keycode; in adb_kbd_put_keycode() 184 if (++s->wptr == sizeof(s->data)) { in adb_kbd_put_keycode() 185 s->wptr = 0; in adb_kbd_put_keycode() 234 s->wptr = s->rptr = s->count = 0; in adb_kbd_request() 339 VMSTATE_INT32(wptr, KBDState), 354 s->wptr = 0; in adb_kbd_reset()
|
/openbmc/linux/drivers/video/fbdev/ |
H A 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()
|