/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...] |
/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...] |
/src/sys/net/ |
ppp-deflate.c | 234 u_char *rptr, *wptr; local in function:z_compress 262 wptr = mtod(m, u_char *); 267 wptr[0] = PPP_ADDRESS(rptr); 268 wptr[1] = PPP_CONTROL(rptr); 269 wptr[2] = PPP_COMP >> 8; 270 wptr[3] = PPP_COMP; 271 wptr += PPP_HDRLEN; 272 wptr[0] = state->seqno >> 8; 273 wptr[1] = state->seqno; 274 wptr += 2 466 u_char *rptr, *wptr; local in function:z_decompress [all...] |
bsd-comp.c | 467 u_char *rptr, *wptr; local in function:bsd_compress 474 if (wptr) { \ 475 *wptr++ = (v); \ 476 if (wptr >= cp_end) { \ 477 m->m_len = wptr - mtod(m, u_char *); \ 484 wptr = mtod(m, u_char *); \ 485 cp_end = wptr + M_TRAILINGSPACE(m); \ 487 wptr = NULL; \ 527 wptr = mtod(m, u_char *); 528 cp_end = wptr + M_TRAILINGSPACE(m) 805 u_char *p, *rptr, *wptr; local in function:bsd_decompress [all...] |
/src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/ |
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_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_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_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_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_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...] |
amdgpu_amdkfd.h | 180 /* Read user wptr from a specified user address space with page fault 186 #define read_user_wptr(mmptr, wptr, dst) \ 189 if ((mmptr) && (wptr)) { \ 192 valid = !get_user((dst), (wptr)); \ 195 valid = !get_user((dst), (wptr)); \
|
amdgpu_sdma_v5_0.c | 247 ret = ring->wptr & ring->buf_mask;/* this is the offset we need patch later */ 261 cur = (ring->wptr - 1) & ring->buf_mask; 291 * Get the current wptr from the hardware (NAVI10+). 296 volatile u64 *wptr = NULL; local in function:sdma_v5_0_ring_get_wptr 301 wptr = ((volatile u64 *)&adev->wb.wb[ring->wptr_offs]); 302 DRM_DEBUG("wptr/doorbell before shift == 0x%016"PRIx64"\n", *wptr); 303 *wptr = (*wptr) >> 2; 304 DRM_DEBUG("wptr/doorbell after shift == 0x%016"PRIx64"\n", *wptr) [all...] |
amdgpu_ring.h | 191 u64 wptr; member in struct:amdgpu_ring 297 ring->ring[ring->wptr++ & ring->buf_mask] = v; 298 ring->wptr &= ring->ptr_mask; 311 occupied = ring->wptr & ring->buf_mask; 328 ring->wptr += count_dw; 329 ring->wptr &= ring->ptr_mask;
|
amdgpu_vce_v2_0.c | 99 WREG32(mmVCE_RB_WPTR, lower_32_bits(ring->wptr)); 101 WREG32(mmVCE_RB_WPTR2, lower_32_bits(ring->wptr)); 249 WREG32(mmVCE_RB_RPTR, lower_32_bits(ring->wptr)); 250 WREG32(mmVCE_RB_WPTR, lower_32_bits(ring->wptr)); 256 WREG32(mmVCE_RB_RPTR2, lower_32_bits(ring->wptr)); 257 WREG32(mmVCE_RB_WPTR2, lower_32_bits(ring->wptr));
|
amdgpu_vcn_v2_5.c | 882 ring->wptr = RREG32_SOC15(UVD, inst_idx, mmUVD_RBC_RB_RPTR); 884 lower_32_bits(ring->wptr)); 1053 ring->wptr = RREG32_SOC15(UVD, i, mmUVD_RBC_RB_RPTR); 1055 lower_32_bits(ring->wptr)); 1057 WREG32_SOC15(UVD, i, mmUVD_RB_RPTR, lower_32_bits(ring->wptr)); 1058 WREG32_SOC15(UVD, i, mmUVD_RB_WPTR, lower_32_bits(ring->wptr)); 1064 WREG32_SOC15(UVD, i, mmUVD_RB_RPTR2, lower_32_bits(ring->wptr)); 1065 WREG32_SOC15(UVD, i, mmUVD_RB_WPTR2, lower_32_bits(ring->wptr)); 1226 ring->wptr = 0; 1239 ring->wptr = 0 [all...] |
amdgpu_sdma_v4_0.c | 664 * Get the current wptr from the hardware (VEGA10+). 669 u64 wptr; local in function:sdma_v4_0_ring_get_wptr 673 wptr = READ_ONCE(*((volatile u64 *)&adev->wb.wb[ring->wptr_offs])); 674 DRM_DEBUG("wptr/doorbell before shift == 0x%016"PRIx64"\n", wptr); 676 wptr = RREG32_SDMA(ring->me, mmSDMA0_GFX_RB_WPTR_HI); 677 wptr = wptr << 32; 678 wptr |= RREG32_SDMA(ring->me, mmSDMA0_GFX_RB_WPTR); 679 DRM_DEBUG("wptr before shift [%i] wptr == 0x%016"PRIx64"\n" 738 u64 wptr; local in function:sdma_v4_0_page_ring_get_wptr 770 uint64_t wptr = ring->wptr << 2; local in function:sdma_v4_0_page_ring_set_wptr [all...] |
amdgpu_vcn_v2_0.c | 869 ring->wptr = RREG32_SOC15(UVD, 0, mmUVD_RBC_RB_RPTR); 871 lower_32_bits(ring->wptr)); 1021 ring->wptr = RREG32_SOC15(UVD, 0, mmUVD_RBC_RB_RPTR); 1023 lower_32_bits(ring->wptr)); 1026 WREG32_SOC15(UVD, 0, mmUVD_RB_RPTR, lower_32_bits(ring->wptr)); 1027 WREG32_SOC15(UVD, 0, mmUVD_RB_WPTR, lower_32_bits(ring->wptr)); 1033 WREG32_SOC15(UVD, 0, mmUVD_RB_RPTR2, lower_32_bits(ring->wptr)); 1034 WREG32_SOC15(UVD, 0, mmUVD_RB_WPTR2, lower_32_bits(ring->wptr)); 1173 WREG32_SOC15(UVD, 0, mmUVD_RB_RPTR, lower_32_bits(ring->wptr)); 1174 WREG32_SOC15(UVD, 0, mmUVD_RB_WPTR, lower_32_bits(ring->wptr)); [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...] |
radeon_vce_v1_0.c | 102 WREG32(VCE_RB_WPTR, ring->wptr); 104 WREG32(VCE_RB_WPTR2, ring->wptr); 303 WREG32(VCE_RB_RPTR, ring->wptr); 304 WREG32(VCE_RB_WPTR, ring->wptr); 310 WREG32(VCE_RB_RPTR2, ring->wptr); 311 WREG32(VCE_RB_WPTR2, ring->wptr);
|
radeon_ni_dma.c | 83 * Get the current wptr from the hardware (cayman+). 104 * Write the wptr back to the hardware (cayman+). 116 WREG32(reg, (ring->wptr << 2) & 0x3fffc); 134 u32 next_rptr = ring->wptr + 4; 147 while ((ring->wptr & 7) != 5) 248 ring->wptr = 0; 249 WREG32(DMA_RB_WPTR + reg_offset, ring->wptr << 2);
|
/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;
|
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/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) {
|