Searched refs:ptr (Results 151 - 175 of 2004) sorted by relevance

1234567891011>>

/freebsd-11-stable/sys/dev/uart/
H A Duart_bus.h176 int ptr, xc; local
178 ptr = sc->sc_rxget;
179 if (ptr == sc->sc_rxput)
181 xc = sc->sc_rxbuf[ptr++];
182 sc->sc_rxget = (ptr < sc->sc_rxbufsz) ? ptr : 0;
189 int ptr; local
191 ptr = sc->sc_rxget;
192 if (ptr == sc->sc_rxput)
194 ptr
202 int ptr; local
211 int ptr; local
[all...]
/freebsd-11-stable/sys/i386/include/xen/
H A Dsynch_bitops.h65 #define synch_cmpxchg(ptr, old, new) \
66 ((__typeof__(*(ptr)))__synch_cmpxchg((ptr),\
69 sizeof(*(ptr))))
71 static inline unsigned long __synch_cmpxchg(volatile void *ptr, argument
80 : "q"(new), "m"(*__synch_xg(ptr)),
87 : "q"(new), "m"(*__synch_xg(ptr)),
95 : "q"(new), "m"(*__synch_xg(ptr)),
102 : "q"(new), "m"(*__synch_xg(ptr)),
110 : "q"(new), "m"(*__synch_xg(ptr)),
[all...]
/freebsd-11-stable/contrib/llvm-project/lldb/source/Utility/
H A DSharingPtr.cpp56 extern "C" void track_sp(void *sp_this, void *ptr, long use_count) { argument
64 printf("sp(%p) -> %p %lu\n", sp_this, ptr, use_count);
66 if (ptr) {
69 g_map[sp_this] = std::make_pair(ptr, bt);
74 if (ptr)
75 printf("Searching for shared pointers that are tracking %p: ", ptr);
82 if (ptr == NULL || pos->second.first == ptr) {
97 void dump_sp_refs(void *ptr) { argument
99 // live shared pointers that reference "ptr"
[all...]
/freebsd-11-stable/contrib/groff/src/preproc/eqn/
H A Dmain.cpp135 char *ptr = &linebuf[0]; local
136 char *start = delim_search(ptr, start_delim);
150 do_text(ptr);
155 do_text(ptr);
156 ptr = start + 1;
159 char *end = strchr(ptr, end_delim);
162 str += ptr;
163 ptr = end + 1;
166 str += ptr;
171 ptr
204 delim_search(char *ptr, int delim) argument
[all...]
/freebsd-11-stable/contrib/tcsh/
H A Dgethost.c99 findtoken(char *ptr) argument
103 if (ptr == NULL || *ptr == '\0')
107 if (strcmp(keyword[i], ptr) == 0)
120 char *ptr = *pptr; local
123 for (; *ptr && ISSPACE(*ptr); ptr++)
126 for (; *ptr && *ptr !
170 const char *ptr, *bptr, *eptr = NULL, *name; local
227 char *ptr, *tok; local
[all...]
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_new_delete.cpp28 DECLARE_REAL(void, free, void *ptr)
116 if (ptr == 0) return; \
118 return InternalFree(ptr); \
119 invoke_free_hook(ptr); \
120 SCOPED_INTERCEPTOR_RAW(mangled_name, ptr); \
121 user_free(thr, pc, ptr);
124 void operator delete(void *ptr) NOEXCEPT;
125 void operator delete(void *ptr) NOEXCEPT {
130 void operator delete[](void *ptr) NOEXCEPT;
131 void operator delete[](void *ptr) NOEXCEP
137 operator delete(void *ptr, std::nothrow_t const&) argument
143 operator delete[](void *ptr, std::nothrow_t const&) argument
173 operator delete(void *ptr, std::align_val_t align, std::nothrow_t const&) argument
180 operator delete[](void *ptr, std::align_val_t align, std::nothrow_t const&) argument
[all...]
/freebsd-11-stable/sys/contrib/octeon-sdk/cvmx-malloc/
H A Darena.c79 /* find the heap and corresponding arena for a given ptr */
81 #define arena_for_chunk(ptr) ((ptr)->arena_ptr)
82 #define set_arena_for_chunk(ptr, arena) (ptr)->arena_ptr = (arena)
177 char *ptr; local
181 ptr = (heap->ar_ptr != (mstate)(heap+1)) ?
183 p = (mchunkptr)(((unsigned long)ptr + MALLOC_ALIGN_MASK) &
207 char *ptr; local
232 ptr
243 cvmx_add_arena(cvmx_arena_list_t *arena_list, void *ptr, size_t size) argument
[all...]
/freebsd-11-stable/sys/netinet/libalias/
H A Dalias_util.c74 LibAliasInternetChecksum(struct libalias *la __unused, u_short * ptr, argument
82 sum += *ptr++;
87 ((u_char *) & oddbyte)[0] = *(u_char *) ptr;
109 u_short *ptr; local
118 ptr = (u_short *) tc;
124 sum += *ptr++;
129 ((u_char *) & oddbyte)[0] = *(u_char *) ptr;
134 ptr = (void *)&pip->ip_dst;
135 sum += *ptr++;
136 sum += *ptr;
[all...]
/freebsd-11-stable/contrib/tcpdump/
H A Dprint-stp.c242 const u_char *ptr; local
248 ptr = (const u_char *)stp_bpdu;
284 ND_TCHECK_16BITS(ptr + MST_BPDU_VER3_LEN_OFFSET);
285 ND_PRINT((ndo, "\n\tv3len %d, ", EXTRACT_16BITS(ptr + MST_BPDU_VER3_LEN_OFFSET)));
286 ND_TCHECK_32BITS(ptr + MST_BPDU_CONFIG_DIGEST_OFFSET + 12);
288 if (fn_printzp(ndo, ptr + MST_BPDU_CONFIG_NAME_OFFSET, 32, ndo->ndo_snapend))
292 EXTRACT_16BITS(ptr + MST_BPDU_CONFIG_NAME_OFFSET + 32),
293 EXTRACT_32BITS(ptr + MST_BPDU_CONFIG_DIGEST_OFFSET),
294 EXTRACT_32BITS(ptr + MST_BPDU_CONFIG_DIGEST_OFFSET + 4),
295 EXTRACT_32BITS(ptr
350 const u_char *ptr; local
[all...]
/freebsd-11-stable/sys/contrib/octeon-sdk/
H A Dcvmx-cmd-queue.h378 uint64_t *ptr = (uint64_t *)cvmx_phys_to_ptr((uint64_t)qptr->base_ptr_div128<<7); local
379 ptr += qptr->index;
382 *ptr++ = *cmds++;
386 uint64_t *ptr; local
396 ptr = (uint64_t *)cvmx_phys_to_ptr((uint64_t)qptr->base_ptr_div128<<7);
400 ptr += qptr->index;
403 *ptr++ = *cmds++;
404 *ptr = cvmx_ptr_to_phys(new_buffer);
407 qptr->base_ptr_div128 = *ptr >> 7;
409 ptr
465 uint64_t *ptr = (uint64_t *)cvmx_phys_to_ptr((uint64_t)qptr->base_ptr_div128<<7); local
473 uint64_t *ptr; local
555 uint64_t *ptr = (uint64_t *)cvmx_phys_to_ptr((uint64_t)qptr->base_ptr_div128<<7); local
564 uint64_t *ptr; local
[all...]
/freebsd-11-stable/contrib/expat/lib/
H A Dxmlrole.c117 const char *ptr, const char *end,
135 prolog0(PROLOG_STATE *state, int tok, const char *ptr, const char *end, argument
153 if (! XmlNameMatchesAscii(enc, ptr + 2 * MIN_BYTES_PER_CHAR(enc), end,
166 prolog1(PROLOG_STATE *state, int tok, const char *ptr, const char *end, argument
185 if (! XmlNameMatchesAscii(enc, ptr + 2 * MIN_BYTES_PER_CHAR(enc), end,
198 prolog2(PROLOG_STATE *state, int tok, const char *ptr, const char *end, argument
200 UNUSED_P(ptr);
218 doctype0(PROLOG_STATE *state, int tok, const char *ptr, const char *end, argument
220 UNUSED_P(ptr);
235 doctype1(PROLOG_STATE *state, int tok, const char *ptr, cons argument
261 doctype2(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
277 doctype3(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
293 doctype4(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
312 doctype5(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
328 internalSubset(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
373 externalSubset0(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
382 externalSubset1(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
410 entity0(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
429 entity1(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
445 entity2(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
469 entity3(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
485 entity4(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
501 entity5(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
520 entity6(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
537 entity7(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
561 entity8(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
577 entity9(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
593 entity10(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
609 notation0(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
625 notation1(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
645 notation2(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
661 notation3(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
678 notation4(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
698 attlist0(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
715 attlist1(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
735 attlist2(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
765 attlist3(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
783 attlist4(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
802 attlist5(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
818 attlist6(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
834 attlist7(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
854 attlist8(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
884 attlist9(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
900 element0(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
917 element1(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
943 element2(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
977 element3(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
1001 element4(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
1018 element5(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
1038 element6(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
1067 element7(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
1116 condSect0(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
1136 condSect1(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
1153 condSect2(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
1171 declClose(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
1207 error(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
[all...]
/freebsd-11-stable/tools/tools/bus_autoconf/
H A Dbus_usb.c159 const char *module, const uint8_t *ptr, uint16_t size)
175 if (format_get_field(type, "mfl_vendor", ptr, size))
177 if (format_get_field(type, "mfl_product", ptr, size))
179 if (format_get_field(type, "mfl_dev_lo", ptr, size))
181 if (format_get_field(type, "mfl_dev_hi", ptr, size))
183 if (format_get_field(type, "mfl_dev_class", ptr, size))
185 if (format_get_field(type, "mfl_dev_subclass", ptr, size))
187 if (format_get_field(type, "mfl_dev_protocol", ptr, size))
189 if (format_get_field(type, "mfl_int_class", ptr, size))
191 if (format_get_field(type, "mfl_int_subclass", ptr, siz
158 usb_import_entry(struct usb_device_id *id, const char *type, const char *module, const uint8_t *ptr, uint16_t size) argument
327 usb_import_entries(const char *section, const char *module, const uint8_t *ptr, uint32_t len) argument
[all...]
H A Dbus_autoconf.c66 uint8_t *ptr; local
75 load_file(fname, &ptr, &len);
95 usb_import_entries(section, module, ptr, len);
99 free(ptr);
106 load_file(fname, &ptr, &len);
107 format_parse_entries(ptr, len);
108 free(ptr);
/freebsd-11-stable/contrib/gcc/
H A Dgengtype-lex.l245 char *ptr = yytext;
250 for (macro = ptr; *ptr != '(' && !ISSPACE (*ptr); ptr++)
252 for (macro_len = ptr - macro; !(ISALNUM (*ptr) || *ptr == '_'); ptr++)
256 for (arg = ptr; *pt
[all...]
/freebsd-11-stable/contrib/blacklist/port/
H A Dfparseln.c89 char *ptr, *cp; local
117 if ((ptr = __fgetln(fp, &s)) == NULL)
121 for (cp = ptr; cp < ptr + s; cp++)
122 if (*cp == com && !isescaped(ptr, cp, esc)) {
123 s = cp - ptr;
130 cp = &ptr[s - 1];
137 cp = &ptr[s - 1];
139 if (*cp == con && !isescaped(ptr, cp, esc)) {
161 (void) memcpy(buf + len, ptr,
211 char *ptr; local
[all...]
/freebsd-11-stable/contrib/groff/src/include/
H A Dstringclass.h88 char *ptr; member in class:string
100 return ptr[i];
106 return ptr[i];
126 return ptr;
131 return string(s1.ptr, s1.len, s2.ptr, s2.len);
140 return string(s1.ptr, s1.len, s2, strlen(s2));
142 return s2 == 0 ? s1 : string(s1.ptr, s1.len, s2, strlen(s2));
152 return string(s1, strlen(s1), s2.ptr, s2.len);
154 return s1 == 0 ? s2 : string(s1, strlen(s1), s2.ptr, s
[all...]
/freebsd-11-stable/lib/libutil/
H A Dfparseln.c85 char *ptr, *cp; local
115 if ((ptr = fgetln(fp, &s)) == NULL)
119 for (cp = ptr; cp < ptr + s; cp++)
120 if (*cp == com && !isescaped(ptr, cp, esc)) {
121 s = cp - ptr;
128 cp = &ptr[s - 1];
135 cp = &ptr[s - 1];
137 if (*cp == con && !isescaped(ptr, cp, esc)) {
158 (void) memcpy(buf + len, ptr,
204 char *ptr; local
[all...]
/freebsd-11-stable/crypto/openssl/crypto/evp/
H A Dbio_md.c106 bi->ptr = (char *)ctx;
115 EVP_MD_CTX_destroy(a->ptr);
116 a->ptr = NULL;
129 ctx = b->ptr;
154 ctx = b->ptr;
174 static long md_ctrl(BIO *b, int cmd, long num, void *ptr) argument
182 ctx = b->ptr;
191 ret = BIO_ctrl(b->next_bio, cmd, num, ptr);
195 ppmd = ptr;
201 pctx = ptr;
[all...]
/freebsd-11-stable/contrib/mdocml/
H A Dcompat_recallocarray.c49 recallocarray(void *ptr, size_t oldnmemb, size_t newnmemb, size_t size) argument
54 if (ptr == NULL)
79 memset((char *)ptr + newsize, 0, d);
80 return ptr;
89 memcpy(newptr, ptr, oldsize);
92 memcpy(newptr, ptr, newsize);
103 free(ptr);
/freebsd-11-stable/sys/compat/linuxkpi/common/include/linux/
H A Drcupdate.h50 #define call_rcu(ptr, func) do { \
51 linux_call_rcu(RCU_TYPE_REGULAR, ptr, func); \
74 #define kfree_rcu(ptr, rcu_head) do { \
75 CTASSERT(offsetof(__typeof(*(ptr)), rcu_head) < \
77 call_rcu(&(ptr)->rcu_head, (rcu_callback_t)(uintptr_t) \
78 offsetof(__typeof(*(ptr)), rcu_head)); \
102 extern void linux_call_rcu(unsigned type, struct rcu_head *ptr, rcu_callback_t func);
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/scudo/
H A Dscudo_malloc.cpp23 INTERCEPTOR_ATTRIBUTE void free(void *ptr) { argument
24 scudoDeallocate(ptr, 0, 0, FromMalloc);
31 INTERCEPTOR_ATTRIBUTE void *realloc(void *ptr, size_t size) { argument
32 return scudoRealloc(ptr, size);
49 INTERCEPTOR_ATTRIBUTE void cfree(void *ptr) ALIAS("free");
74 INTERCEPTOR_ATTRIBUTE size_t malloc_usable_size(void *ptr) { argument
75 return scudoMallocUsableSize(ptr);
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/hwasan/
H A Dhwasan_interceptors.cpp51 static bool IsInDlsymAllocPool(const void *ptr) { argument
52 uptr off = (uptr)ptr - (uptr)alloc_memory_for_dlsym;
91 void *ptr = hwasan_memalign(alignment, size, &stack); local
92 if (ptr)
93 DTLS_on_libc_memalign(ptr, size);
94 return ptr;
107 void __sanitizer_free(void *ptr) { argument
109 if (!ptr || UNLIKELY(IsInDlsymAllocPool(ptr))) return;
110 hwasan_free(ptr,
113 __sanitizer_cfree(void *ptr) argument
119 __sanitizer_malloc_usable_size(const void *ptr) argument
145 __sanitizer_realloc(void *ptr, uptr size) argument
163 __sanitizer_reallocarray(void *ptr, uptr nmemb, uptr size) argument
[all...]
/freebsd-11-stable/contrib/groff/src/libs/libbib/
H A Dsearch.cpp78 for (search_item *ptr = list; ptr; ptr = ptr->next)
84 : list(p), ptr(p->list), iter(0), query(strsave(q)),
99 while (ptr) {
101 iter = ptr->make_search_item_iterator(query);
106 ptr = ptr->next;
/freebsd-11-stable/sys/amd64/include/xen/
H A Dsynch_bitops.h65 #define synch_cmpxchg(ptr, old, new) \
66 ((__typeof__(*(ptr)))__synch_cmpxchg((ptr),\
69 sizeof(*(ptr))))
71 static inline unsigned long __synch_cmpxchg(volatile void *ptr, argument
80 : "q"(new), "m"(*__synch_xg(ptr)),
87 : "q"(new), "m"(*__synch_xg(ptr)),
94 : "q"(new), "m"(*__synch_xg(ptr)),
101 : "q"(new), "m"(*__synch_xg(ptr)),
/freebsd-11-stable/crypto/heimdal/base/
H A Dtest_base.c50 void *ptr; local
52 ptr = heim_alloc(10, "memory", memory_free);
54 heim_retain(ptr);
55 heim_release(ptr);
57 heim_retain(ptr);
58 heim_release(ptr);
60 heim_release(ptr);
62 ptr = heim_alloc(10, "memory", NULL);
63 heim_release(ptr);

Completed in 122 milliseconds

1234567891011>>