Home
last modified time | relevance | path

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

12345

/openbmc/linux/drivers/phy/qualcomm/
H A Dphy-qcom-eusb2-repeater.c105 if (!rptr->vregs) in eusb2_repeater_init_vregs()
109 rptr->vregs[i].supply = rptr->cfg->vreg_list[i]; in eusb2_repeater_init_vregs()
131 ret = regulator_bulk_enable(rptr->cfg->num_vregs, rptr->vregs); in eusb2_repeater_init()
196 return regulator_bulk_disable(rptr->cfg->num_vregs, rptr->vregs); in eusb2_repeater_exit()
215 rptr = devm_kzalloc(dev, sizeof(*rptr), GFP_KERNEL); in eusb2_repeater_probe()
216 if (!rptr) in eusb2_repeater_probe()
219 rptr->dev = dev; in eusb2_repeater_probe()
223 if (!rptr->cfg) in eusb2_repeater_probe()
234 rptr->base = res; in eusb2_repeater_probe()
248 phy_set_drvdata(rptr->phy, rptr); in eusb2_repeater_probe()
[all …]
/openbmc/linux/drivers/media/platform/amphion/
H A Dvpu_rpc.c40 ptr2 = desc->rptr; in vpu_rpc_check_buffer_space()
42 ptr1 = desc->rptr; in vpu_rpc_check_buffer_space()
126 u32 rptr; in vpu_rpc_receive_msg_buf() local
134 rptr = desc->rptr; in vpu_rpc_receive_msg_buf()
137 rptr += 4; in vpu_rpc_receive_msg_buf()
138 if (rptr >= desc->end) { in vpu_rpc_receive_msg_buf()
139 rptr = desc->start; in vpu_rpc_receive_msg_buf()
153 rptr += 4; in vpu_rpc_receive_msg_buf()
154 if (rptr >= desc->end) { in vpu_rpc_receive_msg_buf()
155 rptr = desc->start; in vpu_rpc_receive_msg_buf()
[all …]
H A Dvpu_dbg.c274 iface->cmd_desc->rptr); in vpu_dbg_core()
282 iface->msg_desc->rptr); in vpu_dbg_core()
294 u32 rptr; in vpu_dbg_fwlog() local
302 rptr = print_buf->read; in vpu_dbg_fwlog()
305 if (rptr == wptr) in vpu_dbg_fwlog()
307 else if (rptr < wptr) in vpu_dbg_fwlog()
308 length = wptr - rptr; in vpu_dbg_fwlog()
318 int num = print_buf->bytes - rptr; in vpu_dbg_fwlog()
323 rptr = 0; in vpu_dbg_fwlog()
329 rptr += length; in vpu_dbg_fwlog()
[all …]
H A Dvpu_helpers.c237 u32 *rptr, u32 size, void *dst) in vpu_helper_copy_from_stream_buffer() argument
244 if (!stream_buffer || !rptr || !dst) in vpu_helper_copy_from_stream_buffer()
250 offset = *rptr; in vpu_helper_copy_from_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()
350 return (desc.end - desc.start + 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()
364 else if (desc.wptr < desc.rptr) in vpu_helper_get_used_space()
[all …]
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_ih.c52 ih->rptr = 0; in amdgpu_ih_ring_init()
162 if (wptr != READ_ONCE(ih->rptr)) { in amdgpu_ih_ring_write()
167 wptr, ih->rptr); in amdgpu_ih_ring_write()
196 ih->rptr == amdgpu_ih_get_wptr(adev, ih), timeout); in amdgpu_ih_wait_on_checkpoint_process_ts()
225 while (ih->rptr != wptr && --count) { in amdgpu_ih_process()
227 ih->rptr &= ih->ptr_mask; in amdgpu_ih_process()
235 if (wptr != ih->rptr) in amdgpu_ih_process()
257 u32 ring_index = ih->rptr >> 2; in amdgpu_ih_decode_iv_helper()
284 ih->rptr += 32; in amdgpu_ih_decode_iv_helper()
294 rptr += iv_size * offset; in amdgpu_ih_decode_iv_ts_helper()
[all …]
H A Damdgpu_ih.h69 unsigned rptr; member
87 uint64_t (*decode_iv_ts)(struct amdgpu_ih_ring *ih, u32 rptr,
95 #define amdgpu_ih_decode_iv_ts(adev, ih, rptr, offset) \ argument
97 (adev)->irq.ih_funcs->decode_iv_ts((ih), (rptr), (offset)))
111 uint64_t amdgpu_ih_decode_iv_ts_helper(struct amdgpu_ih_ring *ih, u32 rptr,
H A Dtonga_ih.c88 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()
247 u32 ring_index = ih->rptr >> 2; in tonga_ih_decode_iv()
263 ih->rptr += 16; in tonga_ih_decode_iv()
279 *ih->rptr_cpu = ih->rptr; in tonga_ih_set_rptr()
280 WDOORBELL32(ih->doorbell_index, ih->rptr); in tonga_ih_set_rptr()
282 WREG32(mmIH_RB_RPTR, ih->rptr); in tonga_ih_set_rptr()
H A 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()
136 u32 ring_index = ih->rptr >> 2; in si_ih_decode_iv()
150 ih->rptr += 16; in si_ih_decode_iv()
156 WREG32(IH_RB_RPTR, ih->rptr); in si_ih_set_rptr()
H A Dcik_ih.c92 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()
253 u32 ring_index = ih->rptr >> 2; in cik_ih_decode_iv()
269 ih->rptr += 16; in cik_ih_decode_iv()
283 WREG32(mmIH_RB_RPTR, ih->rptr); in cik_ih_set_rptr()
H A Diceland_ih.c92 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()
243 u32 ring_index = ih->rptr >> 2; in iceland_ih_decode_iv()
259 ih->rptr += 16; in iceland_ih_decode_iv()
273 WREG32(mmIH_RB_RPTR, ih->rptr); in iceland_ih_set_rptr()
H A Dcz_ih.c92 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()
244 u32 ring_index = ih->rptr >> 2; in cz_ih_decode_iv()
260 ih->rptr += 16; in cz_ih_decode_iv()
274 WREG32(mmIH_RB_RPTR, ih->rptr); in cz_ih_set_rptr()
/openbmc/qemu/audio/
H A Djackaudio.c50 int rptr, wptr; member
101 buffer->rptr = 0; in qjack_buffer_create()
113 buffer->rptr = 0; in qjack_buffer_clear()
210 int rptr = buffer->rptr; in qjack_buffer_read() local
219 rptr = 0; in qjack_buffer_read()
225 buffer->rptr = rptr; in qjack_buffer_read()
237 int rptr = buffer->rptr; in qjack_buffer_read_l() local
254 rptr += copy; in qjack_buffer_read_l()
255 if (rptr >= buffer->frames) { in qjack_buffer_read_l()
256 rptr -= buffer->frames; in qjack_buffer_read_l()
[all …]
/openbmc/linux/sound/pci/riptide/
H A Driptide.c932 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 …]
/openbmc/linux/drivers/gpu/drm/radeon/
H A Dradeon_ring.c83 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()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest/
H A Duserfaultfd.patch61 + int32_t *rptr; /* Rear pointer. */
110 + int32_t *rptr = buf->rptr;
114 + val = *fptr += (uint32_t) *rptr;
121 + ++rptr;
125 + ++rptr;
126 + if (rptr >= end_ptr)
127 + rptr = state;
130 + buf->rptr = rptr;
187 + buf->rptr = &state[0];
258 + state[-1] = (buf->rptr - state) * MAX_TYPES + type;
[all …]
/openbmc/qemu/hw/input/
H A Dps2.c150 q->rptr = 0; in ps2_reset_queue()
245 q->rptr = (q->rptr - 1) & (PS2_BUFFER_SIZE - 1); in ps2_cqueue_1()
246 q->cwptr = q->rptr; in ps2_cqueue_1()
255 q->rptr = (q->rptr - 2) & (PS2_BUFFER_SIZE - 1); in ps2_cqueue_2()
256 q->cwptr = q->rptr; in ps2_cqueue_2()
266 q->rptr = (q->rptr - 3) & (PS2_BUFFER_SIZE - 1); in ps2_cqueue_3()
267 q->cwptr = q->rptr; in ps2_cqueue_3()
285 q->rptr = q->cwptr; in ps2_cqueue_reset()
553 index = q->rptr - 1; in ps2_read_data()
561 q->rptr = 0; in ps2_read_data()
[all …]
H A Dadb-kbd.c43 int rptr, wptr, count; member
199 keycode = s->data[s->rptr]; in adb_kbd_poll()
200 s->rptr++; in adb_kbd_poll()
201 if (s->rptr == sizeof(s->data)) { in adb_kbd_poll()
202 s->rptr = 0; in adb_kbd_poll()
234 s->wptr = s->rptr = s->count = 0; in adb_kbd_request()
338 VMSTATE_INT32(rptr, KBDState),
353 s->rptr = 0; in adb_kbd_reset()
/openbmc/linux/drivers/gpu/drm/amd/display/dmub/inc/
H A Ddmub_cmd.h4227 return (rb->wrpt == rb->rptr); in dmub_rb_empty()
4241 if (rb->wrpt >= rb->rptr) in dmub_rb_full()
4355 uint32_t rptr) in dmub_rb_peek_offset() argument
4404 rb->rptr += DMUB_RB_CMD_SIZE; in dmub_rb_pop_front()
4406 if (rb->rptr >= rb->capacity) in dmub_rb_pop_front()
4407 rb->rptr %= rb->capacity; in dmub_rb_pop_front()
4422 uint32_t rptr = rb->rptr; in dmub_rb_flush_pending() local
4425 while (rptr != wptr) { in dmub_rb_flush_pending()
4436 rptr += DMUB_RB_CMD_SIZE; in dmub_rb_flush_pending()
4437 if (rptr >= rb->capacity) in dmub_rb_flush_pending()
[all …]
/openbmc/linux/drivers/video/fbdev/
H A 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()
/openbmc/linux/drivers/gpu/drm/amd/display/dmub/src/
H A Ddmub_srv.c683 dmub->inbox1_rb.rptr = rptr; in dmub_srv_sync_inbox1()
703 dmub->inbox1_rb.rptr = 0; in dmub_srv_hw_reset()
705 dmub->outbox0_rb.rptr = 0; in dmub_srv_hw_reset()
707 dmub->outbox1_rb.rptr = 0; in dmub_srv_hw_reset()
744 flush_rb.rptr = dmub->inbox1_last_wptr; in dmub_srv_cmd_execute()
777 uint32_t i, rptr; in dmub_srv_wait_for_idle() local
783 rptr = dmub->hw_funcs.get_inbox1_rptr(dmub); in dmub_srv_wait_for_idle()
785 if (rptr > dmub->inbox1_rb.capacity) in dmub_srv_wait_for_idle()
788 dmub->inbox1_rb.rptr = rptr; in dmub_srv_wait_for_idle()
941 if (rb->rptr == rb->wrpt) in dmub_rb_out_trace_buffer_front()
[all …]
/openbmc/qemu/hw/m68k/
H A Dnext-kbd.c60 int rptr, wptr, count; member
114 key = q->data[q->rptr]; in kbd_read_long()
115 if (++q->rptr == KBD_QUEUE_SIZE) { in kbd_read_long()
116 q->rptr = 0; in kbd_read_long()
/openbmc/linux/drivers/net/ethernet/tehuti/
H A Dtehuti.c170 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 …]
/openbmc/linux/drivers/crypto/ccp/
H A Dtee-dev.c250 u32 rptr; in tee_submit_cmd() local
262 rptr = ioread32(tee->io_regs + tee->vdata->ring_rptr_reg); 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()
/openbmc/linux/drivers/net/ppp/
H A 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()
/openbmc/linux/drivers/gpu/drm/qxl/
H A Dqxl_object.c211 void *rptr; in qxl_bo_kmap_atomic_page() local
227 rptr = bo->kptr + (page_offset * PAGE_SIZE); in qxl_bo_kmap_atomic_page()
228 return rptr; in qxl_bo_kmap_atomic_page()
234 rptr = bo_map.vaddr; /* TODO: Use mapping abstraction properly */ in qxl_bo_kmap_atomic_page()
236 rptr += page_offset * PAGE_SIZE; in qxl_bo_kmap_atomic_page()
237 return rptr; in qxl_bo_kmap_atomic_page()

12345