Home
last modified time | relevance | path

Searched refs:ecif (Results 1 – 25 of 88) sorted by relevance

1234

/external/python/cpython2/Modules/_ctypes/libffi/src/m32r/
Dffi.c35 void ffi_prep_args(char *stack, extended_cif *ecif) in ffi_prep_args() argument
47 if (ecif->cif->rtype->type == FFI_TYPE_STRUCT && ecif->cif->rtype->size > 8) in ffi_prep_args()
49 *(void **) argp = ecif->rvalue; in ffi_prep_args()
53 avn = ecif->cif->nargs; in ffi_prep_args()
54 p_argv = ecif->avalue; in ffi_prep_args()
56 for (i = ecif->cif->nargs, p_arg = ecif->cif->arg_types; in ffi_prep_args()
180 extended_cif ecif; in ffi_call() local
182 ecif.cif = cif; in ffi_call()
183 ecif.avalue = avalue; in ffi_call()
190 ecif.rvalue = alloca (cif->rtype->size); in ffi_call()
[all …]
/external/libffi/src/m32r/
Dffi.c35 void ffi_prep_args(char *stack, extended_cif *ecif) in ffi_prep_args() argument
47 if (ecif->cif->rtype->type == FFI_TYPE_STRUCT && ecif->cif->rtype->size > 8) in ffi_prep_args()
49 *(void **) argp = ecif->rvalue; in ffi_prep_args()
53 avn = ecif->cif->nargs; in ffi_prep_args()
54 p_argv = ecif->avalue; in ffi_prep_args()
56 for (i = ecif->cif->nargs, p_arg = ecif->cif->arg_types; in ffi_prep_args()
180 extended_cif ecif; in ffi_call() local
182 ecif.cif = cif; in ffi_call()
183 ecif.avalue = avalue; in ffi_call()
190 ecif.rvalue = alloca (cif->rtype->size); in ffi_call()
[all …]
/external/python/cpython3/Modules/_ctypes/libffi_osx/x86/
Dx86-ffi_darwin.c38 void ffi_prep_args(char *stack, extended_cif *ecif);
40 void ffi_prep_args(char *stack, extended_cif *ecif) in ffi_prep_args() argument
49 if (ecif->cif->flags == FFI_TYPE_STRUCT) in ffi_prep_args()
51 *(void **) argp = ecif->rvalue; in ffi_prep_args()
55 p_argv = ecif->avalue; in ffi_prep_args()
57 for (i = ecif->cif->nargs, p_arg = ecif->cif->arg_types; in ffi_prep_args()
190 extended_cif ecif; in ffi_call() local
192 ecif.cif = cif; in ffi_call()
193 ecif.avalue = avalue; in ffi_call()
201 ecif.rvalue = alloca(cif->rtype->size); in ffi_call()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi_osx/x86/
Dx86-ffi_darwin.c38 void ffi_prep_args(char *stack, extended_cif *ecif);
40 void ffi_prep_args(char *stack, extended_cif *ecif) in ffi_prep_args() argument
49 if (ecif->cif->flags == FFI_TYPE_STRUCT) in ffi_prep_args()
51 *(void **) argp = ecif->rvalue; in ffi_prep_args()
55 p_argv = ecif->avalue; in ffi_prep_args()
57 for (i = ecif->cif->nargs, p_arg = ecif->cif->arg_types; in ffi_prep_args()
190 extended_cif ecif; in ffi_call() local
192 ecif.cif = cif; in ffi_call()
193 ecif.avalue = avalue; in ffi_call()
201 ecif.rvalue = alloca(cif->rtype->size); in ffi_call()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi/src/x86/
Dffi.c46 void ffi_prep_args(char *stack, extended_cif *ecif);
47 void ffi_prep_args(char *stack, extended_cif *ecif) in ffi_prep_args() argument
58 int cabi = ecif->cif->abi; in ffi_prep_args()
63 if ((ecif->cif->flags == FFI_TYPE_STRUCT in ffi_prep_args()
64 || ecif->cif->flags == FFI_TYPE_MS_STRUCT) in ffi_prep_args()
66 && (ecif->cif->rtype->size != 1 && ecif->cif->rtype->size != 2 in ffi_prep_args()
67 && ecif->cif->rtype->size != 4 && ecif->cif->rtype->size != 8) in ffi_prep_args()
71 *(void **) argp = ecif->rvalue; in ffi_prep_args()
85 p_argv = ecif->avalue; in ffi_prep_args()
87 for (i = ecif->cif->nargs, p_arg = ecif->cif->arg_types; in ffi_prep_args()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi/src/microblaze/
Dffi.c42 void ffi_prep_args(void* stack, extended_cif* ecif) in ffi_prep_args() argument
49 p_argv = ecif->avalue; in ffi_prep_args()
51 if (ecif == NULL || ecif->cif == NULL) { in ffi_prep_args()
55 if ((ecif->cif->rtype != NULL) && in ffi_prep_args()
56 (ecif->cif->rtype->type == FFI_TYPE_STRUCT)) in ffi_prep_args()
62 memcpy(addr, &(ecif->rvalue), WORD_SIZE); in ffi_prep_args()
66 if (ecif->avalue == NULL) { in ffi_prep_args()
70 for (i = 0, p_arg = ecif->cif->arg_types; i < ecif->cif->nargs; in ffi_prep_args()
153 extended_cif ecif; in ffi_call() local
154 ecif.cif = cif; in ffi_call()
[all …]
/external/libffi/src/microblaze/
Dffi.c42 void ffi_prep_args(void* stack, extended_cif* ecif) in ffi_prep_args() argument
49 p_argv = ecif->avalue; in ffi_prep_args()
51 if (ecif == NULL || ecif->cif == NULL) { in ffi_prep_args()
55 if ((ecif->cif->rtype != NULL) && in ffi_prep_args()
56 (ecif->cif->rtype->type == FFI_TYPE_STRUCT)) in ffi_prep_args()
62 memcpy(addr, &(ecif->rvalue), WORD_SIZE); in ffi_prep_args()
66 if (ecif->avalue == NULL) { in ffi_prep_args()
70 for (i = 0, p_arg = ecif->cif->arg_types; i < ecif->cif->nargs; in ffi_prep_args()
153 extended_cif ecif; in ffi_call() local
154 ecif.cif = cif; in ffi_call()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi/src/vax/
Dffi.c48 void *ffi_prep_args (extended_cif *ecif, void *stack);
51 ffi_prep_args (extended_cif *ecif, void *stack) in ffi_prep_args() argument
61 if (ecif->cif->rtype->type == FFI_TYPE_STRUCT in ffi_prep_args()
62 && !ecif->cif->flags) in ffi_prep_args()
63 struct_value_ptr = ecif->rvalue; in ffi_prep_args()
67 p_argv = ecif->avalue; in ffi_prep_args()
69 for (i = ecif->cif->nargs, p_arg = ecif->cif->arg_types; in ffi_prep_args()
165 extended_cif ecif; in ffi_call() local
167 ecif.cif = cif; in ffi_call()
168 ecif.avalue = avalue; in ffi_call()
[all …]
/external/libffi/src/vax/
Dffi.c48 void *ffi_prep_args (extended_cif *ecif, void *stack);
51 ffi_prep_args (extended_cif *ecif, void *stack) in ffi_prep_args() argument
61 if (ecif->cif->rtype->type == FFI_TYPE_STRUCT in ffi_prep_args()
62 && !ecif->cif->flags) in ffi_prep_args()
63 struct_value_ptr = ecif->rvalue; in ffi_prep_args()
67 p_argv = ecif->avalue; in ffi_prep_args()
69 for (i = ecif->cif->nargs, p_arg = ecif->cif->arg_types; in ffi_prep_args()
165 extended_cif ecif; in ffi_call() local
167 ecif.cif = cif; in ffi_call()
168 ecif.avalue = avalue; in ffi_call()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi/src/powerpc/
Dffi.c86 extended_cif ecif; in ffi_call() local
88 ecif.cif = cif; in ffi_call()
89 ecif.avalue = avalue; in ffi_call()
91 ecif.rvalue = rvalue; in ffi_call()
93 ecif.rvalue = smst_buffer; in ffi_call()
97 ecif.rvalue = alloca (cif->rtype->size); in ffi_call()
100 ffi_call_LINUX64 (&ecif, -(long) cif->bytes, cif->flags, ecif.rvalue, fn); in ffi_call()
102 ffi_call_SYSV (&ecif, -cif->bytes, cif->flags, ecif.rvalue, fn); in ffi_call()
106 if (rvalue && ecif.rvalue == smst_buffer) in ffi_call()
/external/libffi/src/powerpc/
Dffi.c86 extended_cif ecif; in ffi_call() local
88 ecif.cif = cif; in ffi_call()
89 ecif.avalue = avalue; in ffi_call()
91 ecif.rvalue = rvalue; in ffi_call()
93 ecif.rvalue = smst_buffer; in ffi_call()
97 ecif.rvalue = alloca (cif->rtype->size); in ffi_call()
100 ffi_call_LINUX64 (&ecif, -(long) cif->bytes, cif->flags, ecif.rvalue, fn); in ffi_call()
102 ffi_call_SYSV (&ecif, -cif->bytes, cif->flags, ecif.rvalue, fn); in ffi_call()
106 if (rvalue && ecif.rvalue == smst_buffer) in ffi_call()
/external/libffi/src/x86/
Dffi.c46 unsigned int ffi_prep_args(char *stack, extended_cif *ecif);
47 unsigned int ffi_prep_args(char *stack, extended_cif *ecif) in ffi_prep_args() argument
54 const int cabi = ecif->cif->abi; in ffi_prep_args()
65 if ((ecif->cif->flags == FFI_TYPE_STRUCT in ffi_prep_args()
66 || ecif->cif->flags == FFI_TYPE_MS_STRUCT) in ffi_prep_args()
68 && ((ecif->cif->rtype->size & (1 | 2 | 4 | 8)) == 0) in ffi_prep_args()
82 *(void **) argp = ecif->rvalue; in ffi_prep_args()
86 p_arg = ecif->cif->arg_types; in ffi_prep_args()
87 p_argv = ecif->avalue; in ffi_prep_args()
90 const int nargs = ecif->cif->nargs - 1; in ffi_prep_args()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi/src/m68k/
Dffi.c27 void *ffi_prep_args (void *stack, extended_cif *ecif);
37 ffi_prep_args (void *stack, extended_cif *ecif) in ffi_prep_args() argument
49 (ecif->cif->rtype->type == FFI_TYPE_LONGDOUBLE) || in ffi_prep_args()
51 (((ecif->cif->rtype->type == FFI_TYPE_STRUCT) in ffi_prep_args()
52 && !ecif->cif->flags))) in ffi_prep_args()
53 struct_value_ptr = ecif->rvalue; in ffi_prep_args()
57 p_argv = ecif->avalue; in ffi_prep_args()
59 for (i = ecif->cif->nargs, p_arg = ecif->cif->arg_types; in ffi_prep_args()
224 extended_cif ecif; in ffi_call() local
226 ecif.cif = cif; in ffi_call()
[all …]
/external/libffi/src/m68k/
Dffi.c27 void *ffi_prep_args (void *stack, extended_cif *ecif);
37 ffi_prep_args (void *stack, extended_cif *ecif) in ffi_prep_args() argument
49 (ecif->cif->rtype->type == FFI_TYPE_LONGDOUBLE) || in ffi_prep_args()
51 (((ecif->cif->rtype->type == FFI_TYPE_STRUCT) in ffi_prep_args()
52 && !ecif->cif->flags))) in ffi_prep_args()
53 struct_value_ptr = ecif->rvalue; in ffi_prep_args()
57 p_argv = ecif->avalue; in ffi_prep_args()
59 for (i = ecif->cif->nargs, p_arg = ecif->cif->arg_types; in ffi_prep_args()
224 extended_cif ecif; in ffi_call() local
226 ecif.cif = cif; in ffi_call()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi/src/nios2/
Dffi.c81 void ffi_prep_args (char *stack, extended_cif *ecif) in ffi_prep_args() argument
88 if (ecif->cif->rtype->type == FFI_TYPE_STRUCT in ffi_prep_args()
89 && ecif->cif->rtype->size > 8) in ffi_prep_args()
91 (*(void **) argp) = ecif->rvalue; in ffi_prep_args()
95 for (i = 0; i < ecif->cif->nargs; i++) in ffi_prep_args()
97 void *avalue = ecif->avalue[i]; in ffi_prep_args()
98 ffi_type *atype = ecif->cif->arg_types[i]; in ffi_prep_args()
153 extended_cif ecif; in ffi_call() local
162 ecif.cif = cif; in ffi_call()
163 ecif.avalue = avalue; in ffi_call()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi/src/arc/
Dffi.c46 ffi_prep_args (char *stack, extended_cif * ecif) in ffi_prep_args() argument
57 if (ecif->cif->rtype->type == FFI_TYPE_STRUCT) in ffi_prep_args()
59 *(void **) argp = ecif->rvalue; in ffi_prep_args()
63 p_argv = ecif->avalue; in ffi_prep_args()
65 for (i = ecif->cif->nargs, p_arg = ecif->cif->arg_types; in ffi_prep_args()
169 extended_cif ecif; in ffi_call() local
171 ecif.cif = cif; in ffi_call()
172 ecif.avalue = avalue; in ffi_call()
178 ecif.rvalue = alloca (cif->rtype->size); in ffi_call()
181 ecif.rvalue = rvalue; in ffi_call()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi/src/moxie/
Dffi.c35 void *ffi_prep_args(char *stack, extended_cif *ecif) in ffi_prep_args() argument
43 p_argv = ecif->avalue; in ffi_prep_args()
46 if (ecif->cif->rtype->type == FFI_TYPE_STRUCT) in ffi_prep_args()
48 *(void **) argp = ecif->rvalue; in ffi_prep_args()
52 for (i = ecif->cif->nargs, p_arg = ecif->cif->arg_types; in ffi_prep_args()
130 extended_cif ecif; in ffi_call() local
132 ecif.cif = cif; in ffi_call()
133 ecif.avalue = avalue; in ffi_call()
141 ecif.rvalue = alloca(cif->rtype->size); in ffi_call()
144 ecif.rvalue = rvalue; in ffi_call()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi_arm_wince/
Dffi.c40 void ffi_prep_args(char *stack, extended_cif *ecif) in ffi_prep_args() argument
50 if ( ecif->cif->rtype->type == FFI_TYPE_STRUCT ) { in ffi_prep_args()
51 *(void **) argp = ecif->rvalue; in ffi_prep_args()
55 p_argv = ecif->avalue; in ffi_prep_args()
57 for (i = ecif->cif->nargs, p_arg = ecif->cif->arg_types; in ffi_prep_args()
161 extended_cif ecif; in ffi_call() local
163 ecif.cif = cif; in ffi_call()
164 ecif.avalue = avalue; in ffi_call()
173 ecif.rvalue = alloca(cif->rtype->size); in ffi_call()
177 ecif.rvalue = rvalue; in ffi_call()
[all …]
/external/libffi/src/moxie/
Dffi.c35 void *ffi_prep_args(char *stack, extended_cif *ecif) in ffi_prep_args() argument
43 p_argv = ecif->avalue; in ffi_prep_args()
46 if (ecif->cif->rtype->type == FFI_TYPE_STRUCT) in ffi_prep_args()
48 *(void **) argp = ecif->rvalue; in ffi_prep_args()
52 for (i = ecif->cif->nargs, p_arg = ecif->cif->arg_types; in ffi_prep_args()
130 extended_cif ecif; in ffi_call() local
132 ecif.cif = cif; in ffi_call()
133 ecif.avalue = avalue; in ffi_call()
141 ecif.rvalue = alloca(cif->rtype->size); in ffi_call()
144 ecif.rvalue = rvalue; in ffi_call()
[all …]
/external/libffi/src/nios2/
Dffi.c81 void ffi_prep_args (char *stack, extended_cif *ecif) in ffi_prep_args() argument
88 if (ecif->cif->rtype->type == FFI_TYPE_STRUCT in ffi_prep_args()
89 && ecif->cif->rtype->size > 8) in ffi_prep_args()
91 (*(void **) argp) = ecif->rvalue; in ffi_prep_args()
95 for (i = 0; i < ecif->cif->nargs; i++) in ffi_prep_args()
97 void *avalue = ecif->avalue[i]; in ffi_prep_args()
98 ffi_type *atype = ecif->cif->arg_types[i]; in ffi_prep_args()
153 extended_cif ecif; in ffi_call() local
162 ecif.cif = cif; in ffi_call()
163 ecif.avalue = avalue; in ffi_call()
[all …]
/external/libffi/src/arc/
Dffi.c46 ffi_prep_args (char *stack, extended_cif * ecif) in ffi_prep_args() argument
57 if (ecif->cif->rtype->type == FFI_TYPE_STRUCT) in ffi_prep_args()
59 *(void **) argp = ecif->rvalue; in ffi_prep_args()
63 p_argv = ecif->avalue; in ffi_prep_args()
65 for (i = ecif->cif->nargs, p_arg = ecif->cif->arg_types; in ffi_prep_args()
169 extended_cif ecif; in ffi_call() local
171 ecif.cif = cif; in ffi_call()
172 ecif.avalue = avalue; in ffi_call()
178 ecif.rvalue = alloca (cif->rtype->size); in ffi_call()
181 ecif.rvalue = rvalue; in ffi_call()
[all …]
/external/libffi/src/xtensa/
Dffi.c97 void ffi_prep_args(extended_cif *ecif, unsigned char* stack) in ffi_prep_args() argument
119 p_argv.v = ecif->avalue; in ffi_prep_args()
123 if (ecif->cif->rtype->type == FFI_TYPE_STRUCT && ecif->cif->rtype->size > 16) in ffi_prep_args()
125 *addr++ = (unsigned long)ecif->rvalue; in ffi_prep_args()
128 for (i = ecif->cif->nargs, ptr = ecif->cif->arg_types; in ffi_prep_args()
192 extended_cif ecif; in ffi_call() local
197 ecif.cif = cif; in ffi_call()
198 ecif.avalue = avalue; in ffi_call()
209 ecif.rvalue = alloc; in ffi_call()
213 ecif.rvalue = rvalue; in ffi_call()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi/src/xtensa/
Dffi.c97 void ffi_prep_args(extended_cif *ecif, unsigned char* stack) in ffi_prep_args() argument
119 p_argv.v = ecif->avalue; in ffi_prep_args()
123 if (ecif->cif->rtype->type == FFI_TYPE_STRUCT && ecif->cif->rtype->size > 16) in ffi_prep_args()
125 *addr++ = (unsigned long)ecif->rvalue; in ffi_prep_args()
128 for (i = ecif->cif->nargs, ptr = ecif->cif->arg_types; in ffi_prep_args()
192 extended_cif ecif; in ffi_call() local
197 ecif.cif = cif; in ffi_call()
198 ecif.avalue = avalue; in ffi_call()
209 ecif.rvalue = alloc; in ffi_call()
213 ecif.rvalue = rvalue; in ffi_call()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi/src/bfin/
Dffi.c123 extended_cif ecif; in ffi_call() local
124 ecif.cif = cif; in ffi_call()
125 ecif.avalue = avalue; in ffi_call()
126 ecif.rvalue = rvalue; in ffi_call()
130 ffi_call_SYSV(cif->bytes, &ecif, ffi_prep_args, ret_type, ecif.rvalue, fn); in ffi_call()
144 void ffi_prep_args(unsigned char *stack, extended_cif *ecif) in ffi_prep_args() argument
151 p_argv = ecif->avalue; in ffi_prep_args()
152 for (i = ecif->cif->nargs, p_arg = ecif->cif->arg_types; in ffi_prep_args()
/external/libffi/src/bfin/
Dffi.c123 extended_cif ecif; in ffi_call() local
124 ecif.cif = cif; in ffi_call()
125 ecif.avalue = avalue; in ffi_call()
126 ecif.rvalue = rvalue; in ffi_call()
130 ffi_call_SYSV(cif->bytes, &ecif, ffi_prep_args, ret_type, ecif.rvalue, fn); in ffi_call()
144 void ffi_prep_args(unsigned char *stack, extended_cif *ecif) in ffi_prep_args() argument
151 p_argv = ecif->avalue; in ffi_prep_args()
152 for (i = ecif->cif->nargs, p_arg = ecif->cif->arg_types; in ffi_prep_args()

1234