Home
last modified time | relevance | path

Searched refs:ptr (Results 1 – 25 of 3373) sorted by relevance

12345678910>>...135

/netbsd-src/sys/dev/videomode/
H A Dedidreg.h60 #define EDID_VENDOR_ID(ptr) ((((ptr)[8]) << 8) + ptr[9]) argument
66 #define EDID_PRODUCT_ID(ptr) (((ptr)[10]) | (((ptr)[11]) << 8)) argument
67 #define EDID_SERIAL_NUMBER(ptr) (((ptr)[12] << 24) + \ argument
68 ((ptr)[13] << 16) + \
69 ((ptr)[14] << 8) + \
70 (ptr)[15])
73 #define EDID_WEEK(ptr) ((ptr)[16]) argument
74 #define EDID_YEAR(ptr) (((ptr)[17]) + 1990) argument
76 #define EDID_VERSION(ptr) ((ptr)[18]) argument
77 #define EDID_REVISION(ptr) ((ptr)[19]) argument
[all …]
/netbsd-src/external/mit/expat/dist/lib/
H A Dxmltok_impl.c44 # define IS_INVALID_CHAR(enc, ptr, n) (0) argument
47 # define INVALID_LEAD_CASE(n, ptr, nextTokPtr) \ argument
49 if (end - ptr < n) \
51 if (IS_INVALID_CHAR(enc, ptr, n)) { \
52 *(nextTokPtr) = (ptr); \
55 ptr += n; \
58 # define INVALID_CASES(ptr, nextTokPtr) \ argument
59 INVALID_LEAD_CASE(2, ptr, nextTokPtr) \
60 INVALID_LEAD_CASE(3, ptr, nextTokPtr) \
61 INVALID_LEAD_CASE(4, ptr, nextTokPtr) \
[all …]
/netbsd-src/external/gpl3/binutils.old/dist/gas/
H A Dsb.c58 sb_build (sb *ptr, size_t size) in sb_build() argument
60 ptr->ptr = XNEWVEC (char, size + 1); in sb_build()
61 ptr->max = size; in sb_build()
62 ptr->len = 0; in sb_build()
66 sb_new (sb *ptr) in sb_new() argument
68 sb_build (ptr, INIT_ALLOC); in sb_new()
74 sb_kill (sb *ptr) in sb_kill() argument
76 free (ptr->ptr); in sb_kill()
82 sb_add_sb (sb *ptr, sb *s) in sb_add_sb() argument
84 sb_check (ptr, s->len); in sb_add_sb()
[all …]
H A Dmacro.c112 buffer_and_nest (const char *from, const char *to, sb *ptr, in buffer_and_nest() argument
118 size_t line_start = ptr->len; in buffer_and_nest()
119 size_t more = get_line (ptr); in buffer_and_nest()
143 sb_add_buffer (ptr, linefile, strlen (linefile)); in buffer_and_nest()
161 while (i < ptr->len && ISWHITE (ptr->ptr[i])) in buffer_and_nest()
168 if (i >= ptr->len || ! is_name_beginner (ptr->ptr[i])) in buffer_and_nest()
171 while (i < ptr->len && is_part_of_name (ptr->ptr[i])) in buffer_and_nest()
173 if (i < ptr->len && is_name_ender (ptr->ptr[i])) in buffer_and_nest()
176 while (i < ptr->len && ISWHITE (ptr->ptr[i])) in buffer_and_nest()
179 if (i >= ptr->len || ptr->ptr[i] != ':') in buffer_and_nest()
[all …]
/netbsd-src/external/gpl3/binutils/dist/gas/
H A Dsb.c58 sb_build (sb *ptr, size_t size) in sb_build() argument
60 ptr->ptr = XNEWVEC (char, size + 1); in sb_build()
61 ptr->max = size; in sb_build()
62 ptr->len = 0; in sb_build()
66 sb_new (sb *ptr) in sb_new() argument
68 sb_build (ptr, INIT_ALLOC); in sb_new()
74 sb_kill (sb *ptr) in sb_kill() argument
76 free (ptr->ptr); in sb_kill()
82 sb_add_sb (sb *ptr, sb *s) in sb_add_sb() argument
84 sb_check (ptr, s->len); in sb_add_sb()
[all …]
H A Dmacro.c94 buffer_and_nest (const char *from, const char *to, sb *ptr, in buffer_and_nest() argument
122 sb_add_string (ptr, linefile); in buffer_and_nest()
126 line_start = ptr->len; in buffer_and_nest()
127 more = get_line (ptr); in buffer_and_nest()
142 while (i < ptr->len && ISWHITE (ptr->ptr[i])) in buffer_and_nest()
149 if (i >= ptr->len || ! is_name_beginner (ptr->ptr[i])) in buffer_and_nest()
152 while (i < ptr->len && is_part_of_name (ptr->ptr[i])) in buffer_and_nest()
154 if (i < ptr->len && is_name_ender (ptr->ptr[i])) in buffer_and_nest()
157 while (i < ptr->len && ISWHITE (ptr->ptr[i])) in buffer_and_nest()
160 if (i >= ptr->len || ptr->ptr[i] != ':') in buffer_and_nest()
[all …]
/netbsd-src/crypto/external/bsd/openssl.old/dist/include/internal/
H A Dtsan_assist.h57 # define tsan_load(ptr) atomic_load_explicit((ptr), memory_order_relaxed) argument
58 # define tsan_store(ptr, val) atomic_store_explicit((ptr), (val), memory_order_relaxed) argument
59 # define tsan_counter(ptr) atomic_fetch_add_explicit((ptr), 1, memory_order_relaxed) argument
60 # define tsan_decr(ptr) atomic_fetch_add_explicit((ptr), -1, memory_order_relaxed) argument
61 # define tsan_ld_acq(ptr) atomic_load_explicit((ptr), memory_order_acquire) argument
62 # define tsan_st_rel(ptr, val) atomic_store_explicit((ptr), (val), memory_order_release) argument
70 # define tsan_load(ptr) __atomic_load_n((ptr), __ATOMIC_RELAXED) argument
71 # define tsan_store(ptr, val) __atomic_store_n((ptr), (val), __ATOMIC_RELAXED) argument
72 # define tsan_counter(ptr) __atomic_fetch_add((ptr), 1, __ATOMIC_RELAXED) argument
73 # define tsan_decr(ptr) __atomic_fetch_add((ptr), -1, __ATOMIC_RELAXED) argument
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/include/internal/
H A Dtsan_assist.h57 # define tsan_load(ptr) atomic_load_explicit((ptr), memory_order_relaxed) argument
58 # define tsan_store(ptr, val) atomic_store_explicit((ptr), (val), memory_order_relaxed) argument
59 # define tsan_counter(ptr) atomic_fetch_add_explicit((ptr), 1, memory_order_relaxed) argument
60 # define tsan_decr(ptr) atomic_fetch_add_explicit((ptr), -1, memory_order_relaxed) argument
61 # define tsan_ld_acq(ptr) atomic_load_explicit((ptr), memory_order_acquire) argument
62 # define tsan_st_rel(ptr, val) atomic_store_explicit((ptr), (val), memory_order_release) argument
70 # define tsan_load(ptr) __atomic_load_n((ptr), __ATOMIC_RELAXED) argument
71 # define tsan_store(ptr, val) __atomic_store_n((ptr), (val), __ATOMIC_RELAXED) argument
72 # define tsan_counter(ptr) __atomic_fetch_add((ptr), 1, __ATOMIC_RELAXED) argument
73 # define tsan_decr(ptr) __atomic_fetch_add((ptr), -1, __ATOMIC_RELAXED) argument
[all …]
/netbsd-src/external/gpl2/groff/dist/src/libs/libgroff/
H A Dstring.cpp29 static void sfree(char *ptr, int size);
30 static char *sfree_alloc(char *ptr, int size, int len, int *sizep);
31 static char *srealloc(char *ptr, int size, int oldlen, int newlen, int *sizep);
43 static void sfree(char *ptr, int) in sfree() argument
45 a_delete ptr; in sfree() local
48 static char *sfree_alloc(char *ptr, int oldsz, int len, int *sizep) in sfree_alloc() argument
52 return ptr; in sfree_alloc()
54 a_delete ptr; in sfree_alloc() local
63 static char *srealloc(char *ptr, int oldsz, int oldlen, int newlen, int *sizep) in srealloc() argument
67 return ptr; in srealloc()
[all …]
/netbsd-src/sys/arch/alpha/alpha/
H A Ddec_2100_a50.c300 mc_uc_avanti *ptr; in dec_2100_a50_mcheck() local
312 ptr = (mc_uc_avanti *) (logout + sizeof (*hdr)); in dec_2100_a50_mcheck()
320 ptr->paltemp[i], ptr->paltemp[i+1]); in dec_2100_a50_mcheck()
322 printf(fmt1, "Excepting Instruction Addr", ptr->exc_addr); in dec_2100_a50_mcheck()
323 printf(fmt1, "Summary of arithmetic traps", ptr->exc_sum); in dec_2100_a50_mcheck()
324 printf(fmt1, "Exception mask", ptr->exc_mask); in dec_2100_a50_mcheck()
325 printf(fmt1, "ICCSR", ptr->iccsr); in dec_2100_a50_mcheck()
326 printf(fmt1, "Base address for PALcode", ptr->pal_base); in dec_2100_a50_mcheck()
327 printf(fmt1, "HIER", ptr->hier); in dec_2100_a50_mcheck()
328 printf(fmt1, "HIRR", ptr->hirr); in dec_2100_a50_mcheck()
[all …]
/netbsd-src/libexec/talkd/
H A Dtable.c87 TABLE_ENTRY *ptr; in find_match() local
94 for (ptr = table; ptr != NIL; ptr = ptr->next) { in find_match()
95 if ((ptr->time - current_time) > MAX_LIFE) { in find_match()
99 &ptr->request); in find_match()
100 delete(ptr); in find_match()
104 print_request("", &ptr->request); in find_match()
105 if (strcmp(request->l_name, ptr->request.r_name) == 0 && in find_match()
106 strcmp(request->r_name, ptr->request.l_name) == 0 && in find_match()
107 ptr->request.type == LEAVE_INVITE) in find_match()
108 return (&ptr->request); in find_match()
[all …]
/netbsd-src/usr.sbin/mrouted/
H A Dcallout.c49 struct timeout_q *ptr; in age_callout_queue() local
55 ptr = Q; in age_callout_queue()
57 while (ptr) { in age_callout_queue()
58 if (!ptr->time) { in age_callout_queue()
63 if (ptr->func) in age_callout_queue()
64 ptr->func(ptr->data); in age_callout_queue()
67 free(ptr); in age_callout_queue()
68 ptr = Q; in age_callout_queue()
71 ptr->time --; in age_callout_queue()
73 logit(LOG_DEBUG,0,"[callout, age_callout_queue] -- time (%d)", ptr->time); in age_callout_queue()
[all …]
/netbsd-src/external/mpl/dhcp/dist/common/
H A Dalloc.c40 int option_chain_head_allocate (ptr, file, line) in option_chain_head_allocate() argument
41 struct option_chain_head **ptr; in option_chain_head_allocate()
47 if (!ptr) {
55 if (*ptr) {
60 *ptr = (struct option_chain_head *)0;
67 return option_chain_head_reference (ptr, h, file, line);
72 int option_chain_head_reference (ptr, bp, file, line) in option_chain_head_reference() argument
73 struct option_chain_head **ptr; in option_chain_head_reference()
78 if (!ptr) {
86 if (*ptr) {
[all …]
/netbsd-src/external/gpl2/mkhybrid/dist/libhfs_iso/
H A Ddata.c78 char d_getb(unsigned char *ptr) in d_getb() argument
80 return (char) ptr[0]; in d_getb()
87 short d_getw(unsigned char *ptr) in d_getw() argument
90 ((ptr[0] << 8) | in d_getw()
91 (ptr[1] << 0)); in d_getw()
98 long d_getl(unsigned char *ptr) in d_getl() argument
101 ((ptr[0] << 24) | in d_getl()
102 (ptr[1] << 16) | in d_getl()
103 (ptr[2] << 8) | in d_getl()
104 (ptr[3] << 0)); in d_getl()
[all …]
H A Dlow.c65 unsigned char *ptr = b; in l_readblock0() local
71 d_fetchw(&ptr, &rec.sbSig); in l_readblock0()
72 d_fetchw(&ptr, &rec.sbBlkSize); in l_readblock0()
73 d_fetchl(&ptr, &rec.sbBlkCount); in l_readblock0()
74 d_fetchw(&ptr, &rec.sbDevType); in l_readblock0()
75 d_fetchw(&ptr, &rec.sbDevId); in l_readblock0()
76 d_fetchl(&ptr, &rec.sbData); in l_readblock0()
77 d_fetchw(&ptr, &rec.sbDrvrCount); in l_readblock0()
78 d_fetchl(&ptr, &rec.ddBlock); in l_readblock0()
79 d_fetchw(&ptr, &rec.ddSize); in l_readblock0()
[all …]
/netbsd-src/external/gpl3/binutils/dist/gprofng/libcollector/
H A Dlibcol_util.c424 void * ptr = __collector_allocCSize (__collector_heap, size, 0); in __collector_malloc() local
425 return ptr; in __collector_malloc()
432 void * ptr = __collector_malloc (n); in __collector_calloc() local
433 if (NULL == ptr) in __collector_calloc()
435 collector_memset (ptr, 0, n); in __collector_calloc()
436 return ptr; in __collector_calloc()
1086 void *ptr = dlsym (libc, "fprintf"); in __collector_util_init() local
1087 if (ptr) in __collector_util_init()
1088 __collector_util_funcs.fprintf = (int(*)(FILE *, const char *, ...))ptr; in __collector_util_init()
1100 ptr = dlsym (libc, "mmap"); in __collector_util_init()
[all …]
/netbsd-src/usr.bin/fsplit/
H A Dfsplit.c257 char *ptr; in get_name() local
260 for (ptr = name + letters + 2; ptr >= name + letters; ptr--) { in get_name()
261 (*ptr)++; in get_name()
262 if (*ptr <= '9') in get_name()
264 *ptr = '0'; in get_name()
266 if (ptr < name + letters) { in get_name()
275 char *ptr; in get_line() local
277 for (ptr = buf; ptr < &buf[BSZ]; ) { in get_line()
278 *ptr = getc(ifp); in get_line()
281 if (*ptr++ == '\n') { in get_line()
[all …]
/netbsd-src/external/gpl3/binutils.old/dist/gprofng/libcollector/
H A Dlibcol_util.c430 void * ptr = __collector_allocCSize (__collector_heap, size, 0); in __collector_malloc() local
431 return ptr; in __collector_malloc()
438 void * ptr = __collector_malloc (n); in __collector_calloc() local
439 if (NULL == ptr) in __collector_calloc()
441 collector_memset (ptr, 0, n); in __collector_calloc()
442 return ptr; in __collector_calloc()
1092 void *ptr = dlsym (libc, "fprintf"); in __collector_util_init() local
1093 if (ptr) in __collector_util_init()
1094 __collector_util_funcs.fprintf = (int(*)(FILE *, const char *, ...))ptr; in __collector_util_init()
1106 ptr = dlsym (libc, "mmap"); in __collector_util_init()
[all …]
/netbsd-src/lib/libpthread/
H A Dpthread_rwlock.c84 rw_cas(pthread_rwlock_t *ptr, uintptr_t o, uintptr_t n) in __weak_alias()
87 return (uintptr_t)atomic_cas_ptr(&ptr->ptr_owner, (void *)o, in __weak_alias()
92 pthread_rwlock_init(pthread_rwlock_t *ptr, in pthread_rwlock_init() argument
96 return __libc_rwlock_init_stub(ptr, attr); in pthread_rwlock_init()
101 ptr->ptr_magic = _PT_RWLOCK_MAGIC; in pthread_rwlock_init()
102 PTQ_INIT(&ptr->ptr_rblocked); in pthread_rwlock_init()
103 PTQ_INIT(&ptr->ptr_wblocked); in pthread_rwlock_init()
104 ptr->ptr_nreaders = 0; in pthread_rwlock_init()
105 ptr->ptr_owner = NULL; in pthread_rwlock_init()
112 pthread_rwlock_destroy(pthread_rwlock_t *ptr) in pthread_rwlock_destroy() argument
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/gcc/
H A Dssa-iterators.h387 const ssa_use_operand_t *ptr; in has_zero_uses() local
389 for (ptr = head->next; ptr != head; ptr = ptr->next) in has_zero_uses()
390 if (USE_STMT (ptr) && !is_gimple_debug (USE_STMT (ptr))) in has_zero_uses()
401 const ssa_use_operand_t *ptr; in has_single_use() local
404 for (ptr = head->next; ptr != head; ptr = ptr->next) in has_single_use()
405 if (USE_STMT(ptr) && !is_gimple_debug (USE_STMT (ptr))) in has_single_use()
421 const ssa_use_operand_t *const ptr = &(SSA_NAME_IMM_USE_NODE (var)); in single_imm_use() local
424 if (ptr == ptr->next) in single_imm_use()
433 if (ptr == ptr->next->next) in single_imm_use()
435 if (USE_STMT (ptr->next) && !is_gimple_debug (USE_STMT (ptr->next))) in single_imm_use()
[all …]
/netbsd-src/external/gpl3/gcc/dist/gcc/
H A Dssa-iterators.h390 const ssa_use_operand_t *ptr; in has_zero_uses() local
392 for (ptr = head->next; ptr != head; ptr = ptr->next) in has_zero_uses()
393 if (USE_STMT (ptr) && !is_gimple_debug (USE_STMT (ptr))) in has_zero_uses()
404 const ssa_use_operand_t *ptr; in has_single_use() local
407 for (ptr = head->next; ptr != head; ptr = ptr->next) in has_single_use()
408 if (USE_STMT(ptr) && !is_gimple_debug (USE_STMT (ptr))) in has_single_use()
424 const ssa_use_operand_t *const ptr = &(SSA_NAME_IMM_USE_NODE (var)); in single_imm_use() local
427 if (ptr == ptr->next) in single_imm_use()
436 if (ptr == ptr->next->next) in single_imm_use()
438 if (USE_STMT (ptr->next) && !is_gimple_debug (USE_STMT (ptr->next))) in single_imm_use()
[all …]
/netbsd-src/usr.sbin/acpitools/amldb/
H A Ddebug.c76 char *ptr, *method; in aml_dbgr() local
111 ptr = &commandline[1]; in aml_dbgr()
112 while (ptr[0] != '\n') in aml_dbgr()
113 ptr++; in aml_dbgr()
114 ptr[0] = '\0'; in aml_dbgr()
117 ptr = &commandline[1]; in aml_dbgr()
118 while (ptr[0] == ' ') in aml_dbgr()
119 ptr++; in aml_dbgr()
122 if (ptr[0] == '\0') { in aml_dbgr()
127 if (ptr[0] == '\\') { in aml_dbgr()
[all …]
/netbsd-src/external/gpl3/gdb/dist/gdb/stubs/
H A Dsparc-stub.c524 hexToInt(char **ptr, int *intValue) in hexToInt() argument
531 while (**ptr) in hexToInt()
533 hexValue = hex(**ptr); in hexToInt()
540 (*ptr)++; in hexToInt()
561 char *ptr; in handle_exception() local
596 ptr = remcomOutBuffer; in handle_exception()
598 *ptr++ = 'T'; in handle_exception()
599 *ptr++ = hexchars[sigval >> 4]; in handle_exception()
600 *ptr++ = hexchars[sigval & 0xf]; in handle_exception()
602 *ptr++ = hexchars[PC >> 4]; in handle_exception()
[all …]
/netbsd-src/external/gpl2/groff/dist/src/preproc/refer/
H A Dref.cpp70 const char *ptr = start; in reference() local
71 assert(*ptr == '%'); in reference()
72 while (ptr < end) { in reference()
73 if (ptr + 1 < end && ptr[1] != '\0' in reference()
74 && ((ptr[1] != '%' && ptr[1] == annotation_field) in reference()
75 || (ptr + 2 < end && ptr[1] == '%' && ptr[2] != '\0' in reference()
76 && discard_fields.search(ptr[2]) < 0))) { in reference()
77 if (ptr[1] == '%') in reference()
78 ptr++; in reference()
79 string &f = temp_fields[(unsigned char)ptr[1]]; in reference()
[all …]
/netbsd-src/sys/fs/hfs/
H A Dlibhfs.c149 hfslib_init_cbargs(hfs_callback_args* ptr) in hfslib_init_cbargs() argument
151 memset(ptr, 0, sizeof(hfs_callback_args)); in hfslib_init_cbargs()
388 uint16_t* ptr; /* dummy var */ in hfslib_path_to_cnid() local
434 ptr = (uint16_t*)path + 256; in hfslib_path_to_cnid()
435 uchar = be16tohp((void*)&ptr); in hfslib_path_to_cnid()
436 *(ptr-1) = uchar; in hfslib_path_to_cnid()
930 void* ptr; /* temporary pointer for realloc() */ in hfslib_get_directory_contents() local
1052 ptr = hfslib_realloc(*out_children, in hfslib_get_directory_contents()
1055 if (ptr == NULL) in hfslib_get_directory_contents()
1057 *out_children = ptr; in hfslib_get_directory_contents()
[all …]

12345678910>>...135