HomeSort by: relevance | last modified time | path
    Searched defs:wptr (Results 1 - 25 of 70) sorted by relevancy

1 2 3

  /src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/
amdgpu_ih.c 66 /* add 8 bytes for the rptr/wptr shadows and
159 /* add 8 bytes for the rptr/wptr shadows and
194 u32 wptr; local in function:amdgpu_ih_process
199 wptr = amdgpu_ih_get_wptr(adev, ih);
206 DRM_DEBUG("%s: rptr %d, wptr %d\n", __func__, ih->rptr, wptr);
208 /* Order reading of wptr vs. reading of IH ring data */
211 while (ih->rptr != wptr && --count) {
219 /* make sure wptr hasn't changed while processing */
220 wptr = amdgpu_ih_get_wptr(adev, ih)
    [all...]
amdgpu_ih.c 66 /* add 8 bytes for the rptr/wptr shadows and
159 /* add 8 bytes for the rptr/wptr shadows and
194 u32 wptr; local in function:amdgpu_ih_process
199 wptr = amdgpu_ih_get_wptr(adev, ih);
206 DRM_DEBUG("%s: rptr %d, wptr %d\n", __func__, ih->rptr, wptr);
208 /* Order reading of wptr vs. reading of IH ring data */
211 while (ih->rptr != wptr && --count) {
219 /* make sure wptr hasn't changed while processing */
220 wptr = amdgpu_ih_get_wptr(adev, ih)
    [all...]
amdgpu_cik_ih.c 47 * host is currently reading, and a wptr (write pointer)
51 * wptr. When there is an interrupt, the host then starts
93 /* set rptr, wptr to 0 */
146 /* set rptr, wptr to 0 */
182 * cik_ih_get_wptr - get the IH ring buffer wptr
186 * Get the IH ring buffer wptr from either the register
190 * Returns the value of the wptr.
195 u32 wptr, tmp; local in function:cik_ih_get_wptr
197 wptr = le32_to_cpu(*ih->wptr_cpu);
199 if (wptr & IH_RB_WPTR__RB_OVERFLOW_MASK)
    [all...]
amdgpu_cz_ih.c 47 * host is currently reading, and a wptr (write pointer)
51 * wptr. When there is an interrupt, the host then starts
93 /* set rptr, wptr to 0 */
148 /* set rptr, wptr to 0 */
184 * cz_ih_get_wptr - get the IH ring buffer wptr
188 * Get the IH ring buffer wptr from either the register
192 * Returns the value of the wptr.
197 u32 wptr, tmp; local in function:cz_ih_get_wptr
199 wptr = le32_to_cpu(*ih->wptr_cpu);
201 if (REG_GET_FIELD(wptr, IH_RB_WPTR, RB_OVERFLOW))
    [all...]
amdgpu_iceland_ih.c 47 * host is currently reading, and a wptr (write pointer)
51 * wptr. When there is an interrupt, the host then starts
93 /* set rptr, wptr to 0 */
148 /* set rptr, wptr to 0 */
184 * iceland_ih_get_wptr - get the IH ring buffer wptr
188 * Get the IH ring buffer wptr from either the register
192 * Returns the value of the wptr.
197 u32 wptr, tmp; local in function:iceland_ih_get_wptr
199 wptr = le32_to_cpu(*ih->wptr_cpu);
201 if (REG_GET_FIELD(wptr, IH_RB_WPTR, RB_OVERFLOW))
    [all...]
amdgpu_si_ih.c 113 u32 wptr, tmp; local in function:si_ih_get_wptr
115 wptr = le32_to_cpu(*ih->wptr_cpu);
117 if (wptr & IH_RB_WPTR__RB_OVERFLOW_MASK) {
118 wptr &= ~IH_RB_WPTR__RB_OVERFLOW_MASK;
120 wptr, ih->rptr, (wptr + 16) & ih->ptr_mask);
121 ih->rptr = (wptr + 16) & ih->ptr_mask;
126 return (wptr & ih->ptr_mask);
amdgpu_tonga_ih.c 47 * host is currently reading, and a wptr (write pointer)
51 * wptr. When there is an interrupt, the host then starts
89 /* set rptr, wptr to 0 */
146 /* set rptr, wptr to 0 */
186 * tonga_ih_get_wptr - get the IH ring buffer wptr
190 * Get the IH ring buffer wptr from either the register
194 * Returns the value of the wptr.
199 u32 wptr, tmp; local in function:tonga_ih_get_wptr
201 wptr = le32_to_cpu(*ih->wptr_cpu);
203 if (REG_GET_FIELD(wptr, IH_RB_WPTR, RB_OVERFLOW))
    [all...]
amdgpu_cik_ih.c 47 * host is currently reading, and a wptr (write pointer)
51 * wptr. When there is an interrupt, the host then starts
93 /* set rptr, wptr to 0 */
146 /* set rptr, wptr to 0 */
182 * cik_ih_get_wptr - get the IH ring buffer wptr
186 * Get the IH ring buffer wptr from either the register
190 * Returns the value of the wptr.
195 u32 wptr, tmp; local in function:cik_ih_get_wptr
197 wptr = le32_to_cpu(*ih->wptr_cpu);
199 if (wptr & IH_RB_WPTR__RB_OVERFLOW_MASK)
    [all...]
amdgpu_cz_ih.c 47 * host is currently reading, and a wptr (write pointer)
51 * wptr. When there is an interrupt, the host then starts
93 /* set rptr, wptr to 0 */
148 /* set rptr, wptr to 0 */
184 * cz_ih_get_wptr - get the IH ring buffer wptr
188 * Get the IH ring buffer wptr from either the register
192 * Returns the value of the wptr.
197 u32 wptr, tmp; local in function:cz_ih_get_wptr
199 wptr = le32_to_cpu(*ih->wptr_cpu);
201 if (REG_GET_FIELD(wptr, IH_RB_WPTR, RB_OVERFLOW))
    [all...]
amdgpu_iceland_ih.c 47 * host is currently reading, and a wptr (write pointer)
51 * wptr. When there is an interrupt, the host then starts
93 /* set rptr, wptr to 0 */
148 /* set rptr, wptr to 0 */
184 * iceland_ih_get_wptr - get the IH ring buffer wptr
188 * Get the IH ring buffer wptr from either the register
192 * Returns the value of the wptr.
197 u32 wptr, tmp; local in function:iceland_ih_get_wptr
199 wptr = le32_to_cpu(*ih->wptr_cpu);
201 if (REG_GET_FIELD(wptr, IH_RB_WPTR, RB_OVERFLOW))
    [all...]
amdgpu_si_ih.c 113 u32 wptr, tmp; local in function:si_ih_get_wptr
115 wptr = le32_to_cpu(*ih->wptr_cpu);
117 if (wptr & IH_RB_WPTR__RB_OVERFLOW_MASK) {
118 wptr &= ~IH_RB_WPTR__RB_OVERFLOW_MASK;
120 wptr, ih->rptr, (wptr + 16) & ih->ptr_mask);
121 ih->rptr = (wptr + 16) & ih->ptr_mask;
126 return (wptr & ih->ptr_mask);
amdgpu_tonga_ih.c 47 * host is currently reading, and a wptr (write pointer)
51 * wptr. When there is an interrupt, the host then starts
89 /* set rptr, wptr to 0 */
146 /* set rptr, wptr to 0 */
186 * tonga_ih_get_wptr - get the IH ring buffer wptr
190 * Get the IH ring buffer wptr from either the register
194 * Returns the value of the wptr.
199 u32 wptr, tmp; local in function:tonga_ih_get_wptr
201 wptr = le32_to_cpu(*ih->wptr_cpu);
203 if (REG_GET_FIELD(wptr, IH_RB_WPTR, RB_OVERFLOW))
    [all...]
amdgpu_navi10_ih.c 74 /* set rptr, wptr to 0 */
152 /* set rptr, wptr to 0 */
205 * navi10_ih_get_wptr - get the IH ring buffer wptr
209 * Get the IH ring buffer wptr from either the register
212 * Returns the value of the wptr.
217 u32 wptr, reg, tmp; local in function:navi10_ih_get_wptr
219 wptr = le32_to_cpu(*ih->wptr_cpu);
221 if (!REG_GET_FIELD(wptr, IH_RB_WPTR, RB_OVERFLOW))
225 wptr = RREG32_NO_KIQ(reg);
226 if (!REG_GET_FIELD(wptr, IH_RB_WPTR, RB_OVERFLOW)
    [all...]
amdgpu_vega10_ih.c 123 /* set rptr, wptr to 0 */
142 /* set rptr, wptr to 0 */
163 /* set rptr, wptr to 0 */
274 /* set rptr, wptr to 0 */
303 /* set rptr, wptr to 0 */
330 /* set rptr, wptr to 0 */
371 * vega10_ih_get_wptr - get the IH ring buffer wptr
375 * Get the IH ring buffer wptr from either the register
378 * Returns the value of the wptr.
383 u32 wptr, reg, tmp local in function:vega10_ih_get_wptr
548 uint32_t wptr = cpu_to_le32(entry->src_data[0]); local in function:vega10_ih_self_irq
    [all...]
  /src/sys/external/bsd/drm2/dist/drm/amd/amdkfd/
kfd_kernel_queue.c 237 uint32_t wptr, rptr; local in function:kq_acquire_packet_buffer
241 /* When rptr == wptr, the buffer is empty.
242 * When rptr == wptr + 1, the buffer is full.
243 * It is always rptr that advances to the position of wptr, rather than
247 wptr = kq->pending_wptr;
253 pr_debug("wptr: %d\n", wptr);
256 available_size = (rptr + queue_size_dwords - 1 - wptr) %
267 if (wptr + packet_size_in_dwords >= queue_size_dwords) {
275 while (wptr > 0)
    [all...]
kfd_kernel_queue.c 237 uint32_t wptr, rptr; local in function:kq_acquire_packet_buffer
241 /* When rptr == wptr, the buffer is empty.
242 * When rptr == wptr + 1, the buffer is full.
243 * It is always rptr that advances to the position of wptr, rather than
247 wptr = kq->pending_wptr;
253 pr_debug("wptr: %d\n", wptr);
256 available_size = (rptr + queue_size_dwords - 1 - wptr) %
267 if (wptr + packet_size_in_dwords >= queue_size_dwords) {
275 while (wptr > 0)
    [all...]
  /src/sys/external/bsd/drm2/dist/drm/amd/display/dmub/inc/
dmub_rb.h 126 uint32_t wptr = rb->wrpt; local in function:dmub_rb_flush_pending
128 while (rptr != wptr) {
dmub_rb.h 126 uint32_t wptr = rb->wrpt; local in function:dmub_rb_flush_pending
128 while (rptr != wptr) {
  /src/sys/dev/podulebus/
if_ei.c 253 u_int16_t *wptr; local in function:ei_copyin
259 wptr = dest;
270 ei_atopo(src) / 2, wptr, cnt / 2);
273 wptr += cnt / 2;
280 *(u_int8_t *)wptr =
292 const u_int16_t *wptr; local in function:ei_copyout
307 wptr = src;
318 ei_atopo(dest) / 2, wptr, cnt / 2);
320 wptr += cnt / 2;
if_ei.c 253 u_int16_t *wptr; local in function:ei_copyin
259 wptr = dest;
270 ei_atopo(src) / 2, wptr, cnt / 2);
273 wptr += cnt / 2;
280 *(u_int8_t *)wptr =
292 const u_int16_t *wptr; local in function:ei_copyout
307 wptr = src;
318 ei_atopo(dest) / 2, wptr, cnt / 2);
320 wptr += cnt / 2;
sec.c 238 uint16_t tmp, *wptr; local in function:sec_copyin
257 wptr = dest;
267 SEC_SRAM + src % SEC_PAGESIZE / 2, wptr, cnt / 2);
269 wptr += cnt / 2;
274 *(u_int8_t *)wptr =
284 const uint16_t *wptr; local in function:sec_copyout
306 wptr = src;
316 dest % SEC_PAGESIZE / 2, wptr, cnt / 2);
317 wptr += cnt / 2;
330 tmp |= *(uint8_t const *)wptr;
    [all...]
  /src/lib/libedit/
tokenizer.c 89 Char *wptr, *wmax; /* Space and limit on the word buffer */ local in function:TYPE
107 *tok->wptr = '\0';
108 if ((tok->flags & TOK_KEEP) || tok->wptr != tok->wstart) {
111 tok->wstart = ++tok->wptr;
150 tok->wptr = tok->wspace;
167 tok->wptr = tok->wspace;
219 co = (int)(tok->wptr - tok->wstart);
237 *tok->wptr++ = *ptr;
241 *tok->wptr++ = *ptr;
246 *tok->wptr++ = *ptr
    [all...]
tokenizer.c 89 Char *wptr, *wmax; /* Space and limit on the word buffer */ local in function:TYPE
107 *tok->wptr = '\0';
108 if ((tok->flags & TOK_KEEP) || tok->wptr != tok->wstart) {
111 tok->wstart = ++tok->wptr;
150 tok->wptr = tok->wspace;
167 tok->wptr = tok->wspace;
219 co = (int)(tok->wptr - tok->wstart);
237 *tok->wptr++ = *ptr;
241 *tok->wptr++ = *ptr;
246 *tok->wptr++ = *ptr
    [all...]
  /src/sys/arch/arm/gemini/
gemini_gmac.c 622 uint16_t wptr; local in function:gmac_hwqueue_produce
629 aprint_debug("gmac_hwqueue_produce(%p, %zu): rptr=%u(%u) wptr old=%u",
634 for (wptr = hwq->hwq_wptr;
636 count--, wptr = (wptr + 1) & (hwq->hwq_size - 1)) {
637 KASSERT(((wptr + 1) & (hwq->hwq_size - 1)) != hwq->hwq_rptr);
639 sizeof(gmac_desc_t [hwq->hwq_qoff + wptr]),
644 hwq->hwq_wptr = wptr;
724 "map %p(%zu): can't map rx mbuf(%p) wptr=%u: %d\n",
926 * Update hardware's copy of rptr. (wptr is RO)
    [all...]
  /src/sys/external/bsd/drm2/dist/drm/radeon/
radeon_ring.c 47 * GPU is currently reading, and a wptr (write pointer)
51 * wptr. The GPU then starts fetching commands and executes
93 ring->ring_free_dw -= ring->wptr;
134 ring->wptr_old = ring->wptr;
170 * Update the wptr (write pointer) to tell the GPU to
182 while (ring->wptr & ring->align_mask) {
212 * radeon_ring_undo - reset the wptr
216 * Reset the driver's copy of the wptr (all asics).
220 ring->wptr = ring->wptr_old;
224 * radeon_ring_unlock_undo - reset the wptr and unlock the rin
477 uint32_t rptr, wptr, rptr_next; local in function:radeon_debugfs_ring_info
    [all...]

Completed in 32 milliseconds

1 2 3