Home
last modified time | relevance | path

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

1234

/openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.robertl/
H A Deb99.C49 ref_ptr( const ref_ptr & rptr ) : _ptr( rptr.get() ) in ref_ptr() argument
62 bool operator==( const ref_ptr & rptr ) const { return *get() == *rptr;
64 bool operator<( const ref_ptr & rptr ) const { return *get() < *rptr; }
70 const ref_ptr & operator=( const ref_ptr & rptr )
73 _ptr = rptr.get();
111 bool operator==( T* ptr, const ref_ptr< T > & rptr )
113 return *ptr == *rptr;
117 bool operator<( T* ptr, const ref_ptr< T > & rptr )
119 return *ptr < *rptr;
/openbsd-src/gnu/lib/libiberty/src/
H A Drandom.c199 static long int *rptr = &randtbl[1]; variable
239 rptr = &state[0]; in srandom()
264 state[-1] = (MAX_TYPES * (rptr - state)) + rand_type; in initstate()
308 state[-1] = (MAX_TYPES * (rptr - state)) + rand_type; in initstate()
333 state[-1] = (MAX_TYPES * (rptr - state)) + rand_type; in setstate()
355 rptr = &state[rear]; in setstate()
386 *fptr += *rptr; in random()
393 ++rptr; in random()
397 ++rptr; in random()
398 if (rptr >= end_ptr) in random()
[all …]
/openbsd-src/lib/libc/stdlib/
H A Drandom.c158 static int32_t *rptr = &randtbl[1]; variable
222 rptr = &state[0]; in srandom_l()
277 state[-1] = MAX_TYPES * (rptr - state) + rand_type; in initstate()
309 state[-1] = MAX_TYPES*(rptr - state) + rand_type; in initstate()
342 state[-1] = MAX_TYPES * (rptr - state) + rand_type; in setstate()
359 rptr = &state[rear]; in setstate()
395 *fptr += *rptr; in random_l()
399 ++rptr; in random_l()
400 } else if (++rptr >= end_ptr) in random_l()
401 rptr = state; in random_l()
/openbsd-src/sys/dev/pci/drm/amd/amdgpu/
H A Damdgpu_ih.c56 ih->rptr = 0; in amdgpu_ih_ring_init()
182 if (wptr != READ_ONCE(ih->rptr)) { in amdgpu_ih_ring_write()
187 wptr, ih->rptr); in amdgpu_ih_ring_write()
216 ih->rptr == amdgpu_ih_get_wptr(adev, ih), timeout); in amdgpu_ih_wait_on_checkpoint_process_ts()
240 DRM_DEBUG("%s: rptr %d, wptr %d\n", __func__, ih->rptr, wptr); in amdgpu_ih_process()
245 while (ih->rptr != wptr && --count) { in amdgpu_ih_process()
247 ih->rptr &= ih->ptr_mask; in amdgpu_ih_process()
255 if (wptr != ih->rptr) in amdgpu_ih_process()
277 u32 ring_index = ih->rptr >> 2; in amdgpu_ih_decode_iv_helper()
304 ih->rptr += 32; in amdgpu_ih_decode_iv_helper()
[all …]
H A Damdgpu_ih.h70 unsigned rptr; member
88 uint64_t (*decode_iv_ts)(struct amdgpu_ih_ring *ih, u32 rptr,
96 #define amdgpu_ih_decode_iv_ts(adev, ih, rptr, offset) \ argument
98 (adev)->irq.ih_funcs->decode_iv_ts((ih), (rptr), (offset)))
112 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()
H A Dvega10_ih.c127 ih->rptr = 0; in vega10_ih_toggle_ring_interrupts()
369 wptr, ih->rptr, tmp); in vega10_ih_get_wptr()
370 ih->rptr = tmp; in vega10_ih_get_wptr()
404 if ((v < ih->ring_size) && (v != ih->rptr)) in vega10_ih_irq_rearm()
405 WDOORBELL32(ih->doorbell_index, ih->rptr); in vega10_ih_irq_rearm()
429 *ih->rptr_cpu = ih->rptr; in vega10_ih_set_rptr()
430 WDOORBELL32(ih->doorbell_index, ih->rptr); in vega10_ih_set_rptr()
436 WREG32(ih_regs->ih_rb_rptr, ih->rptr); in vega10_ih_set_rptr()
/openbsd-src/sys/dev/pci/drm/apple/
H A Dafk.c541 u32 rptr, wptr; in afk_recv() local
550 rptr = le32_to_cpu(ep->rxbfr.hdr->rptr); in afk_recv()
552 trace_afk_recv_rwptr_pre(ep, rptr, wptr); in afk_recv()
554 if (rptr == wptr) in afk_recv()
557 if (rptr > (ep->rxbfr.bufsz - sizeof(*hdr))) { in afk_recv()
560 ep->endpoint, rptr, ep->rxbfr.bufsz - sizeof(*hdr)); in afk_recv()
566 hdr = ep->rxbfr.buf + rptr; in afk_recv()
569 trace_afk_recv_qe(ep, rptr, magic, size); in afk_recv()
582 if (rptr + size + sizeof(*hdr) > ep->rxbfr.bufsz) { in afk_recv()
583 rptr = 0; in afk_recv()
[all …]
H A Dtrace.h130 TP_PROTO(struct apple_dcp_afkep *ep, u32 rptr, u32 wptr),
131 TP_ARGS(ep, rptr, wptr),
134 __field(u8, endpoint) __field(u32, rptr)
139 __entry->rptr = rptr; __entry->wptr = wptr;),
143 show_dcp_endpoint(__entry->endpoint), __entry->rptr,
147 TP_PROTO(struct apple_dcp_afkep *ep, u32 rptr, u32 wptr),
148 TP_ARGS(ep, rptr, wptr));
150 TP_PROTO(struct apple_dcp_afkep *ep, u32 rptr, u32 wptr),
151 TP_ARGS(ep, rptr, wptr));
153 TP_PROTO(struct apple_dcp_afkep *ep, u32 rptr, u32 wptr),
[all …]
/openbsd-src/sys/net/
H A Dppp-deflate.c227 u_char *rptr, *wptr; in z_compress() local
234 rptr = mtod(mp, u_char *); in z_compress()
235 proto = PPP_PROTOCOL(rptr); in z_compress()
260 wptr[0] = PPP_ADDRESS(rptr); in z_compress()
261 wptr[1] = PPP_CONTROL(rptr); in z_compress()
278 rptr += (proto > 0xff)? 2: 3; /* skip 1st proto byte if 0 */ in z_compress()
279 state->strm.next_in = rptr; in z_compress()
280 state->strm.avail_in = mtod(mp, u_char *) + mp->m_len - rptr; in z_compress()
462 u_char *rptr, *wptr; in z_decompress() local
468 rptr = mtod(mi, u_char *); in z_decompress()
[all …]
H A Dbsd-comp.c465 u_char *rptr, *wptr; in bsd_compress() local
505 rptr = mtod(mp, u_char *); in bsd_compress()
506 ent = PPP_PROTOCOL(rptr); in bsd_compress()
535 *wptr++ = PPP_ADDRESS(rptr); /* assumes the ppp header is */ in bsd_compress()
536 *wptr++ = PPP_CONTROL(rptr); /* all in one mbuf */ in bsd_compress()
545 rptr += PPP_HDRLEN; in bsd_compress()
553 rptr = mtod(mp, u_char *); in bsd_compress()
561 c = *rptr++; in bsd_compress()
676 u_char *rptr; in bsd_incomp() local
684 rptr = mtod(dmsg, u_char *); in bsd_incomp()
[all …]
/openbsd-src/gnu/usr.bin/cvs/vms/
H A Dfilutils.c167 char * ptr, * rptr; local
244 if (!(rptr = strrchr (src, '.')))
245 rptr = ptr;
246 slen = rptr - src;
253 if (*rptr == '.')
302 rptr++;
303 rlen = strlen (rptr) - 1;
304 strncat (dst, rptr, rlen);
/openbsd-src/sys/dev/pci/drm/radeon/
H A Dradeon_ring.c40 * There is a rptr (read pointer) that determines where the
83 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()
237 * Update the last rptr value and timestamp (all asics).
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()
309 /* no way to read back the next rptr */ in radeon_ring_backup()
375 * @rptr_offs: offset of the rptr writeback location in the WB buffer
470 uint32_t rptr, wptr, rptr_next; in radeon_debugfs_ring_info_show() local
480 rptr in radeon_debugfs_ring_info_show()
[all...]
/openbsd-src/sys/dev/pci/drm/amd/display/dmub/inc/
H A Ddmub_cmd.h4212 uint32_t rptr; /**< Read pointer for consumer in bytes */ member
4229 return (rb->wrpt == rb->rptr); in dmub_rb_empty()
4243 if (rb->wrpt >= rb->rptr) in dmub_rb_full()
4244 data_count = rb->wrpt - rb->rptr; in dmub_rb_full()
4246 data_count = rb->capacity - (rb->rptr - rb->wrpt); in dmub_rb_full()
4319 uint8_t *rb_cmd = (uint8_t *)(rb->base_address) + rb->rptr; in dmub_rb_front()
4340 *next_rptr = rb->rptr + DMUB_RB_CMD_SIZE * num_cmds; in dmub_rb_get_rptr_with_offset()
4357 uint32_t rptr) in dmub_rb_peek_offset() argument
4359 uint8_t *rb_cmd = (uint8_t *)(rb->base_address) + rptr; in dmub_rb_peek_offset()
4380 …nst uint64_t volatile *src = (const uint64_t volatile *)((uint8_t *)(rb->base_address) + rb->rptr); in dmub_rb_out_front()
[all …]
/openbsd-src/sys/dev/pci/drm/amd/display/dmub/src/
H A Ddmub_srv.c677 uint32_t rptr = dmub->hw_funcs.get_inbox1_rptr(dmub); in dmub_srv_sync_inbox1() local
680 if (rptr > dmub->inbox1_rb.capacity || wptr > dmub->inbox1_rb.capacity) { in dmub_srv_sync_inbox1()
683 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()
720 if (dmub->inbox1_rb.rptr > dmub->inbox1_rb.capacity || in dmub_srv_cmd_queue()
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()
[all …]
/openbsd-src/gnu/usr.bin/binutils-2.17/bfd/
H A Dvms-tir.c1873 arelent **rptr; in _bfd_vms_write_tir() local
1875 rptr = section->orelocation; in _bfd_vms_write_tir()
1879 (*(*rptr)->sym_ptr_ptr)->name, in _bfd_vms_write_tir()
1880 (*(*rptr)->sym_ptr_ptr)->section->name, in _bfd_vms_write_tir()
1881 (long) (*(*rptr)->sym_ptr_ptr)->value, in _bfd_vms_write_tir()
1882 (*rptr)->address, (*rptr)->addend, in _bfd_vms_write_tir()
1883 bfd_get_reloc_size ((*rptr)->howto), in _bfd_vms_write_tir()
1884 (*rptr)->howto->name); in _bfd_vms_write_tir()
1885 rptr++; in _bfd_vms_write_tir()
1915 arelent **rptr = section->orelocation; in _bfd_vms_write_tir() local
[all …]
/openbsd-src/usr.sbin/ldapd/
H A Dconn.c145 u_char *rptr; in conn_dispatch() local
156 rptr = conn->ber.br_rptr; /* save where we start reading */ in conn_dispatch()
161 hexdump(rptr, conn->ber.br_rend - rptr, in conn_dispatch()
163 conn->ber.br_rend - rptr); in conn_dispatch()
169 log_debug("consumed %ld bytes", conn->ber.br_rptr - rptr); in conn_dispatch()
/openbsd-src/sys/arch/arm/arm/
H A Dfault.c605 badaddr_read(void *addr, size_t size, void *rptr) in badaddr_read() argument
623 if (rv == 0 && rptr) in badaddr_read()
624 *(uint8_t *) rptr = u.v1; in badaddr_read()
629 if (rv == 0 && rptr) in badaddr_read()
630 *(uint16_t *) rptr = u.v2; in badaddr_read()
635 if (rv == 0 && rptr) in badaddr_read()
636 *(uint32_t *) rptr = u.v4; in badaddr_read()
/openbsd-src/sys/arch/alpha/alpha/
H A Dinterrupt.c350 badaddr_read(void *addr, size_t size, void *rptr) in badaddr_read() argument
400 if (rptr && rv == 0) { in badaddr_read()
403 *(volatile u_int8_t *)rptr = rcpt; in badaddr_read()
407 *(volatile u_int16_t *)rptr = rcpt; in badaddr_read()
411 *(volatile u_int32_t *)rptr = rcpt; in badaddr_read()
415 *(volatile u_int64_t *)rptr = rcpt; in badaddr_read()
/openbsd-src/lib/libcrypto/bn/asm/
H A Dx86_64-mont.pl692 my $rptr="%rdi"; # const BN_ULONG *rptr,
700 my ($i,$j,$tptr)=("%rbp","%rcx",$rptr);
730 # +32 saved $rptr
736 mov $rptr,32(%rsp) # save $rptr
1416 mov 32(%rsp),$rptr # restore $rptr
1425 mov @ri[0],0($rptr,$i,8) # rp[i]=tp[i]-np[i]
1426 mov @ri[1],8($rptr,$i,8) # rp[i]=tp[i]-np[i]
1431 mov @ri[2],16($rptr,$i,8) # rp[i]=tp[i]-np[i]
1432 mov @ri[3],24($rptr,$i,8) # rp[i]=tp[i]-np[i]
1441 mov @ri[0],0($rptr,$i,8) # rp[i]=tp[i]-np[i]
[all …]
/openbsd-src/gnu/usr.bin/binutils/bfd/
H A Dvms-tir.c2049 arelent **rptr; local
2051 rptr = section->orelocation;
2055 (*(*rptr)->sym_ptr_ptr)->name,
2056 (*(*rptr)->sym_ptr_ptr)->section->name,
2057 (long) (*(*rptr)->sym_ptr_ptr)->value,
2058 (*rptr)->address, (*rptr)->addend,
2059 bfd_get_reloc_size ((*rptr)->howto),
2060 (*rptr)->howto->name);
2061 rptr++;
2089 arelent **rptr = section->orelocation; local
[all …]

1234