Home
last modified time | relevance | path

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

12345678910>>...17

/device/generic/goldfish-opengl/tests/gles_android_wrapper/
Dgles_dispatch.cpp24 void *ptr; in create_gles_dispatch() local
25 ptr = dlsym(gles_android,"glAlphaFunc"); disp->set_glAlphaFunc((glAlphaFunc_t)ptr); in create_gles_dispatch()
26 ptr = dlsym(gles_android,"glClearColor"); disp->set_glClearColor((glClearColor_t)ptr); in create_gles_dispatch()
27 ptr = dlsym(gles_android,"glClearDepthf"); disp->set_glClearDepthf((glClearDepthf_t)ptr); in create_gles_dispatch()
28 ptr = dlsym(gles_android,"glClipPlanef"); disp->set_glClipPlanef((glClipPlanef_t)ptr); in create_gles_dispatch()
29 ptr = dlsym(gles_android,"glColor4f"); disp->set_glColor4f((glColor4f_t)ptr); in create_gles_dispatch()
30 ptr = dlsym(gles_android,"glDepthRangef"); disp->set_glDepthRangef((glDepthRangef_t)ptr); in create_gles_dispatch()
31 ptr = dlsym(gles_android,"glFogf"); disp->set_glFogf((glFogf_t)ptr); in create_gles_dispatch()
32 ptr = dlsym(gles_android,"glFogfv"); disp->set_glFogfv((glFogfv_t)ptr); in create_gles_dispatch()
33 ptr = dlsym(gles_android,"glFrustumf"); disp->set_glFrustumf((glFrustumf_t)ptr); in create_gles_dispatch()
[all …]
Degl_dispatch.cpp24 void *ptr; in create_egl_dispatch() local
25 ptr = dlsym(gles_android,"eglGetError"); disp->set_eglGetError((eglGetError_t)ptr); in create_egl_dispatch()
26 ptr = dlsym(gles_android,"eglGetDisplay"); disp->set_eglGetDisplay((eglGetDisplay_t)ptr); in create_egl_dispatch()
27 ptr = dlsym(gles_android,"eglInitialize"); disp->set_eglInitialize((eglInitialize_t)ptr); in create_egl_dispatch()
28 ptr = dlsym(gles_android,"eglTerminate"); disp->set_eglTerminate((eglTerminate_t)ptr); in create_egl_dispatch()
29 ptr = dlsym(gles_android,"eglQueryString"); disp->set_eglQueryString((eglQueryString_t)ptr); in create_egl_dispatch()
30 ptr = dlsym(gles_android,"eglGetConfigs"); disp->set_eglGetConfigs((eglGetConfigs_t)ptr); in create_egl_dispatch()
31 ptr = dlsym(gles_android,"eglChooseConfig"); disp->set_eglChooseConfig((eglChooseConfig_t)ptr); in create_egl_dispatch()
32ptr = dlsym(gles_android,"eglGetConfigAttrib"); disp->set_eglGetConfigAttrib((eglGetConfigAttrib_t… in create_egl_dispatch()
33ptr = dlsym(gles_android,"eglCreateWindowSurface"); disp->set_eglCreateWindowSurface((eglCreateWin… in create_egl_dispatch()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/expat/
Dxmltok_impl.c6 #define IS_INVALID_CHAR(enc, ptr, n) (0) argument
9 #define INVALID_LEAD_CASE(n, ptr, nextTokPtr) \ argument
11 if (end - ptr < n) \
13 if (IS_INVALID_CHAR(enc, ptr, n)) { \
14 *(nextTokPtr) = (ptr); \
17 ptr += n; \
20 #define INVALID_CASES(ptr, nextTokPtr) \ argument
21 INVALID_LEAD_CASE(2, ptr, nextTokPtr) \
22 INVALID_LEAD_CASE(3, ptr, nextTokPtr) \
23 INVALID_LEAD_CASE(4, ptr, nextTokPtr) \
[all …]
Dxmltok.h146 const char *ptr,
149 int (PTRFASTCALL *charRefNumber)(const ENCODING *enc, const char *ptr);
154 const char *ptr,
158 const char *ptr,
198 #define XmlTok(enc, state, ptr, end, nextTokPtr) \ argument
199 (((enc)->scanners[state])(enc, ptr, end, nextTokPtr))
201 #define XmlPrologTok(enc, ptr, end, nextTokPtr) \ argument
202 XmlTok(enc, XML_PROLOG_STATE, ptr, end, nextTokPtr)
204 #define XmlContentTok(enc, ptr, end, nextTokPtr) \ argument
205 XmlTok(enc, XML_CONTENT_STATE, ptr, end, nextTokPtr)
[all …]
Dxmlrole.c97 const char *ptr,
124 const char *ptr, in prolog0() argument
145 ptr + 2 * MIN_BYTES_PER_CHAR(enc), in prolog0()
161 const char *ptr, in prolog1() argument
176 ptr + 2 * MIN_BYTES_PER_CHAR(enc), in prolog1()
192 const char *ptr, in prolog2() argument
213 const char *ptr, in doctype0() argument
231 const char *ptr, in doctype1() argument
245 if (XmlNameMatchesAscii(enc, ptr, end, KW_SYSTEM)) { in doctype1()
249 if (XmlNameMatchesAscii(enc, ptr, end, KW_PUBLIC)) { in doctype1()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/expat/
Dxmltok_impl.c9 #define IS_INVALID_CHAR(enc, ptr, n) (0) argument
12 #define INVALID_LEAD_CASE(n, ptr, nextTokPtr) \ argument
14 if (end - ptr < n) \
16 if (IS_INVALID_CHAR(enc, ptr, n)) { \
17 *(nextTokPtr) = (ptr); \
20 ptr += n; \
23 #define INVALID_CASES(ptr, nextTokPtr) \ argument
24 INVALID_LEAD_CASE(2, ptr, nextTokPtr) \
25 INVALID_LEAD_CASE(3, ptr, nextTokPtr) \
26 INVALID_LEAD_CASE(4, ptr, nextTokPtr) \
[all …]
Dxmltok.h146 const char *ptr,
149 int (PTRFASTCALL *charRefNumber)(const ENCODING *enc, const char *ptr);
154 const char *ptr,
158 const char *ptr,
198 #define XmlTok(enc, state, ptr, end, nextTokPtr) \ argument
199 (((enc)->scanners[state])(enc, ptr, end, nextTokPtr))
201 #define XmlPrologTok(enc, ptr, end, nextTokPtr) \ argument
202 XmlTok(enc, XML_PROLOG_STATE, ptr, end, nextTokPtr)
204 #define XmlContentTok(enc, ptr, end, nextTokPtr) \ argument
205 XmlTok(enc, XML_CONTENT_STATE, ptr, end, nextTokPtr)
[all …]
Dxmlrole.c103 const char *ptr,
130 const char *ptr, in prolog0() argument
151 ptr + 2 * MIN_BYTES_PER_CHAR(enc), in prolog0()
167 const char *ptr, in prolog1() argument
182 ptr + 2 * MIN_BYTES_PER_CHAR(enc), in prolog1()
198 const char *ptr, in prolog2() argument
219 const char *ptr, in doctype0() argument
237 const char *ptr, in doctype1() argument
251 if (XmlNameMatchesAscii(enc, ptr, end, KW_SYSTEM)) { in doctype1()
255 if (XmlNameMatchesAscii(enc, ptr, end, KW_PUBLIC)) { in doctype1()
[all …]
/device/generic/goldfish-opengl/system/GLESv2_enc/
Dgl2_enc.cpp28 unsigned char *ptr; in glActiveTexture_enc() local
34 ptr = buf; in glActiveTexture_enc()
35 int tmp = OP_glActiveTexture;memcpy(ptr, &tmp, 4); ptr += 4; in glActiveTexture_enc()
36 memcpy(ptr, &totalSize, 4); ptr += 4; in glActiveTexture_enc()
38 memcpy(ptr, &texture, 4); ptr += 4; in glActiveTexture_enc()
40 if (useChecksum) checksumCalculator->addBuffer(buf, ptr-buf); in glActiveTexture_enc()
41 if (useChecksum) checksumCalculator->writeChecksum(ptr, checksumSize); ptr += checksumSize; in glActiveTexture_enc()
53 unsigned char *ptr; in glAttachShader_enc() local
59 ptr = buf; in glAttachShader_enc()
60 int tmp = OP_glAttachShader;memcpy(ptr, &tmp, 4); ptr += 4; in glAttachShader_enc()
[all …]
/device/generic/goldfish-opengl/system/GLESv1_enc/
Dgl_enc.cpp28 unsigned char *ptr; in glAlphaFunc_enc() local
34 ptr = buf; in glAlphaFunc_enc()
35 int tmp = OP_glAlphaFunc;memcpy(ptr, &tmp, 4); ptr += 4; in glAlphaFunc_enc()
36 memcpy(ptr, &totalSize, 4); ptr += 4; in glAlphaFunc_enc()
38 memcpy(ptr, &func, 4); ptr += 4; in glAlphaFunc_enc()
39 memcpy(ptr, &ref, 4); ptr += 4; in glAlphaFunc_enc()
41 if (useChecksum) checksumCalculator->addBuffer(buf, ptr-buf); in glAlphaFunc_enc()
42 if (useChecksum) checksumCalculator->writeChecksum(ptr, checksumSize); ptr += checksumSize; in glAlphaFunc_enc()
54 unsigned char *ptr; in glClearColor_enc() local
60 ptr = buf; in glClearColor_enc()
[all …]
/device/generic/goldfish-opengl/system/renderControl_enc/
DrenderControl_enc.cpp28 unsigned char *ptr; in rcGetRendererVersion_enc() local
34 ptr = buf; in rcGetRendererVersion_enc()
35 int tmp = OP_rcGetRendererVersion;memcpy(ptr, &tmp, 4); ptr += 4; in rcGetRendererVersion_enc()
36 memcpy(ptr, &totalSize, 4); ptr += 4; in rcGetRendererVersion_enc()
39 if (useChecksum) checksumCalculator->addBuffer(buf, ptr-buf); in rcGetRendererVersion_enc()
40 if (useChecksum) checksumCalculator->writeChecksum(ptr, checksumSize); ptr += checksumSize; in rcGetRendererVersion_enc()
69 unsigned char *ptr; in rcGetEGLVersion_enc() local
75 ptr = buf; in rcGetEGLVersion_enc()
76 int tmp = OP_rcGetEGLVersion;memcpy(ptr, &tmp, 4); ptr += 4; in rcGetEGLVersion_enc()
77 memcpy(ptr, &totalSize, 4); ptr += 4; in rcGetEGLVersion_enc()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/
Dst.c205 register st_table_entry *ptr, *next; local
209 ptr = table->bins[i];
210 while (ptr != 0) {
211 next = ptr->next;
212 free(ptr);
213 ptr = next;
220 #define PTR_NOT_EQUAL(table, ptr, hash_val, key) \ argument
221 ((ptr) != 0 && (ptr->hash != (hash_val) || !EQUAL((table), (key), (ptr)->key)))
229 #define FIND_ENTRY(table, ptr, hash_val, bin_pos) do {\ argument
231 ptr = (table)->bins[bin_pos];\
[all …]
/device/lge/bullhead/camera/QCamera2/stack/common/
Dcam_list.h40 #define member_of(ptr, type, member) ({ \ argument
41 const typeof(((type *)0)->member) *__mptr = (ptr); \
48 static inline void cam_list_init(struct cam_list *ptr) in cam_list_init() argument
50 ptr->next = ptr; in cam_list_init()
51 ptr->prev = ptr; in cam_list_init()
74 static inline void cam_list_del_node(struct cam_list *ptr) in cam_list_del_node() argument
76 struct cam_list *prev = ptr->prev; in cam_list_del_node()
77 struct cam_list *next = ptr->next; in cam_list_del_node()
79 next->prev = ptr->prev; in cam_list_del_node()
80 prev->next = ptr->next; in cam_list_del_node()
[all …]
/device/google/marlin/camera/QCamera2/stack/common/
Dcam_list.h39 #define member_of(ptr, type, member) ({ \ argument
40 const typeof(((type *)0)->member) *__mptr = (ptr); \
47 static inline void cam_list_init(struct cam_list *ptr) in cam_list_init() argument
49 ptr->next = ptr; in cam_list_init()
50 ptr->prev = ptr; in cam_list_init()
73 static inline void cam_list_del_node(struct cam_list *ptr) in cam_list_del_node() argument
75 struct cam_list *prev = ptr->prev; in cam_list_del_node()
76 struct cam_list *next = ptr->next; in cam_list_del_node()
78 next->prev = ptr->prev; in cam_list_del_node()
79 prev->next = ptr->next; in cam_list_del_node()
[all …]
/device/huawei/angler/camera/QCamera2/stack/common/
Dcam_list.h40 #define member_of(ptr, type, member) ({ \ argument
41 const typeof(((type *)0)->member) *__mptr = (ptr); \
48 static inline void cam_list_init(struct cam_list *ptr) in cam_list_init() argument
50 ptr->next = ptr; in cam_list_init()
51 ptr->prev = ptr; in cam_list_init()
74 static inline void cam_list_del_node(struct cam_list *ptr) in cam_list_del_node() argument
76 struct cam_list *prev = ptr->prev; in cam_list_del_node()
77 struct cam_list *next = ptr->next; in cam_list_del_node()
79 next->prev = ptr->prev; in cam_list_del_node()
80 prev->next = ptr->next; in cam_list_del_node()
[all …]
/device/linaro/bootloader/edk2/StdLib/Include/X64/machine/
Datomic.h44 x86_atomic_testset_u64(volatile u_int64_t *ptr, u_int64_t val) { in x86_atomic_testset_u64() argument
45 __asm volatile ("xchgq %0,(%2)" :"=r" (val):"0" (val),"r" (ptr)); in x86_atomic_testset_u64()
50 x86_atomic_testset_u32(volatile u_int32_t *ptr, u_int32_t val) { in x86_atomic_testset_u32() argument
51 __asm volatile ("xchgl %0,(%2)" :"=r" (val):"0" (val),"r" (ptr)); in x86_atomic_testset_u32()
58 x86_atomic_testset_i32(volatile int32_t *ptr, int32_t val) { in x86_atomic_testset_i32() argument
59 __asm volatile ("xchgl %0,(%2)" :"=r" (val):"0" (val),"r" (ptr)); in x86_atomic_testset_i32()
66 x86_atomic_setbits_u32(volatile u_int32_t *ptr, u_int32_t bits) { in x86_atomic_setbits_u32() argument
67 __asm volatile("lock ; orl %1,%0" : "=m" (*ptr) : "ir" (bits)); in x86_atomic_setbits_u32()
71 x86_atomic_clearbits_u32(volatile u_int32_t *ptr, u_int32_t bits) { in x86_atomic_clearbits_u32() argument
72 __asm volatile("lock ; andl %1,%0" : "=m" (*ptr) : "ir" (~bits)); in x86_atomic_clearbits_u32()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/
Dmystrtoul.c95 PyOS_strtoul(register char *str, char **ptr, int base) in PyOS_strtoul() argument
113 if (ptr) in PyOS_strtoul()
114 *ptr = str; in PyOS_strtoul()
122 if (ptr) in PyOS_strtoul()
123 *ptr = str; in PyOS_strtoul()
131 if (ptr) in PyOS_strtoul()
132 *ptr = str; in PyOS_strtoul()
151 if (ptr) in PyOS_strtoul()
152 *ptr = str; in PyOS_strtoul()
166 if (ptr) in PyOS_strtoul()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
Dmystrtoul.c95 PyOS_strtoul(register char *str, char **ptr, int base) in PyOS_strtoul() argument
113 if (ptr) in PyOS_strtoul()
114 *ptr = str; in PyOS_strtoul()
122 if (ptr) in PyOS_strtoul()
123 *ptr = str; in PyOS_strtoul()
131 if (ptr) in PyOS_strtoul()
132 *ptr = str; in PyOS_strtoul()
151 if (ptr) in PyOS_strtoul()
152 *ptr = str; in PyOS_strtoul()
166 if (ptr) in PyOS_strtoul()
[all …]
/device/generic/goldfish-opengl/shared/OpenglCodecCommon/
DglUtils.h63 void glUtilsPackStrings(char *ptr, char **strings, GLint *length, GLsizei count);
79 const T *ptr = indices; in minmax() local
81 if (*min == -1 || *ptr < *min) *min = *ptr; in minmax()
82 if (*max == -1 || *ptr > *max) *max = *ptr; in minmax()
83 ptr++; in minmax()
95 const T *ptr = indices; in minmaxExcept() local
97 if (*ptr != whatExclude) { in minmaxExcept()
98 if (*min == -1 || *ptr < *min) *min = *ptr; in minmaxExcept()
99 if (*max == -1 || *ptr > *max) *max = *ptr; in minmaxExcept()
101 ptr++; in minmaxExcept()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/stringlib/
Dstring_format.h29 STRINGLIB_CHAR *ptr; member
69 str->ptr = p; in SubString_init()
73 str->end = str->ptr + len; in SubString_init()
80 if (str->ptr == NULL) { in SubString_new_object()
84 return STRINGLIB_NEW(str->ptr, str->end - str->ptr); in SubString_new_object()
91 if (str->ptr == NULL) { in SubString_new_object_or_empty()
94 return STRINGLIB_NEW(str->ptr, str->end - str->ptr); in SubString_new_object_or_empty()
128 STRINGLIB_CHAR *ptr; member
142 output->ptr = STRINGLIB_STR(output->obj); in output_initialize()
143 output->end = STRINGLIB_LEN(output->obj) + output->ptr; in output_initialize()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/stringlib/
Dstring_format.h29 STRINGLIB_CHAR *ptr; member
69 str->ptr = p; in SubString_init()
73 str->end = str->ptr + len; in SubString_init()
80 if (str->ptr == NULL) { in SubString_new_object()
84 return STRINGLIB_NEW(str->ptr, str->end - str->ptr); in SubString_new_object()
91 if (str->ptr == NULL) { in SubString_new_object_or_empty()
94 return STRINGLIB_NEW(str->ptr, str->end - str->ptr); in SubString_new_object_or_empty()
128 STRINGLIB_CHAR *ptr; member
142 output->ptr = STRINGLIB_STR(output->obj); in output_initialize()
143 output->end = STRINGLIB_LEN(output->obj) + output->ptr; in output_initialize()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Modules/
D_sre.c351 SRE_AT(SRE_STATE* state, SRE_CHAR* ptr, SRE_CODE at) in SRE_AT() argument
361 return ((void*) ptr == state->beginning); in SRE_AT()
364 return ((void*) ptr == state->beginning || in SRE_AT()
365 SRE_IS_LINEBREAK((int) ptr[-1])); in SRE_AT()
368 return (((void*) (ptr+1) == state->end && in SRE_AT()
369 SRE_IS_LINEBREAK((int) ptr[0])) || in SRE_AT()
370 ((void*) ptr == state->end)); in SRE_AT()
373 return ((void*) ptr == state->end || in SRE_AT()
374 SRE_IS_LINEBREAK((int) ptr[0])); in SRE_AT()
377 return ((void*) ptr == state->end); in SRE_AT()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
D_sre.c350 SRE_AT(SRE_STATE* state, SRE_CHAR* ptr, SRE_CODE at) in SRE_AT() argument
360 return ((void*) ptr == state->beginning); in SRE_AT()
363 return ((void*) ptr == state->beginning || in SRE_AT()
364 SRE_IS_LINEBREAK((int) ptr[-1])); in SRE_AT()
367 return (((void*) (ptr+1) == state->end && in SRE_AT()
368 SRE_IS_LINEBREAK((int) ptr[0])) || in SRE_AT()
369 ((void*) ptr == state->end)); in SRE_AT()
372 return ((void*) ptr == state->end || in SRE_AT()
373 SRE_IS_LINEBREAK((int) ptr[0])); in SRE_AT()
376 return ((void*) ptr == state->end); in SRE_AT()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Modules/
D_sre.c350 SRE_AT(SRE_STATE* state, SRE_CHAR* ptr, SRE_CODE at) in SRE_AT() argument
360 return ((void*) ptr == state->beginning); in SRE_AT()
363 return ((void*) ptr == state->beginning || in SRE_AT()
364 SRE_IS_LINEBREAK((int) ptr[-1])); in SRE_AT()
367 return (((void*) (ptr+1) == state->end && in SRE_AT()
368 SRE_IS_LINEBREAK((int) ptr[0])) || in SRE_AT()
369 ((void*) ptr == state->end)); in SRE_AT()
372 return ((void*) ptr == state->end || in SRE_AT()
373 SRE_IS_LINEBREAK((int) ptr[0])); in SRE_AT()
376 return ((void*) ptr == state->end); in SRE_AT()
[all …]
/device/linaro/bootloader/edk2/StdLib/LibC/Stdio/
Dfparseln.c111 char *ptr, *cp; in fparseln() local
145 if ((ptr = __fgetln(fp, &s)) == NULL) in fparseln()
149 for (cp = ptr; cp < ptr + s; cp++) in fparseln()
150 if (*cp == com && !isescaped(ptr, cp, esc)) { in fparseln()
151 s = cp - ptr; in fparseln()
158 cp = &ptr[s - 1]; in fparseln()
165 cp = &ptr[s - 1]; in fparseln()
167 if (*cp == con && !isescaped(ptr, cp, esc)) { in fparseln()
183 (void) memcpy(buf + len, ptr, s); in fparseln()
192 ptr = cp = buf; in fparseln()
[all …]

12345678910>>...17