Home
last modified time | relevance | path

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

12

/third_party/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 …]
/third_party/python/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 …]
/third_party/libffi/src/microblaze/
Dffi.c42 void ffi_prep_args(void* stack, extended_cif* ecif) in ffi_prep_args() argument
49 if (ecif == NULL || ecif->cif == NULL) { in ffi_prep_args()
53 p_argv = ecif->avalue; 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 …]
/third_party/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 …]
/third_party/libffi/src/powerpc/
Dffi.c91 extended_cif ecif; in ffi_call_int() local
93 ecif.cif = cif; in ffi_call_int()
94 ecif.avalue = avalue; in ffi_call_int()
96 ecif.rvalue = rvalue; in ffi_call_int()
98 ecif.rvalue = smst_buffer; in ffi_call_int()
102 ecif.rvalue = alloca (cif->rtype->size); in ffi_call_int()
105 ffi_call_LINUX64 (&ecif, fn, ecif.rvalue, cif->flags, closure, in ffi_call_int()
108 ffi_call_SYSV (&ecif, fn, ecif.rvalue, cif->flags, closure, -cif->bytes); in ffi_call_int()
112 if (rvalue && ecif.rvalue == smst_buffer) in ffi_call_int()
Dffi_darwin.c107 ffi_prep_args (extended_cif *ecif, unsigned long *const stack) in ffi_prep_args() argument
109 const unsigned bytes = ecif->cif->bytes; in ffi_prep_args()
110 const unsigned flags = ecif->cif->flags; in ffi_prep_args()
111 const unsigned nargs = ecif->cif->nargs; in ffi_prep_args()
113 const ffi_abi abi = ecif->cif->abi; in ffi_prep_args()
129 void **p_argv = ecif->avalue; in ffi_prep_args()
131 ffi_type** ptr = ecif->cif->arg_types; in ffi_prep_args()
147 *next_arg++ = (unsigned long) (char *) ecif->rvalue; in ffi_prep_args()
921 extended_cif ecif; in ffi_call() local
923 ecif.cif = cif; in ffi_call()
[all …]
Dffi_linux64.c439 ffi_prep_args64 (extended_cif *ecif, unsigned long *const stack) in ffi_prep_args64() argument
441 const unsigned long bytes = ecif->cif->bytes; in ffi_prep_args64()
442 const unsigned long flags = ecif->cif->flags; in ffi_prep_args64()
506 if (ecif->cif->flags & FLAG_FP_ARGUMENTS) in ffi_prep_args64()
524 *next_arg.ul++ = (unsigned long) (char *) ecif->rvalue; in ffi_prep_args64()
527 p_argv.v = ecif->avalue; in ffi_prep_args64()
528 nargs = ecif->cif->nargs; in ffi_prep_args64()
533 nfixedargs = ecif->cif->nfixedargs; in ffi_prep_args64()
534 for (ptr = ecif->cif->arg_types, i = 0; in ffi_prep_args64()
544 if ((ecif->cif->abi & FFI_LINUX_LONG_DOUBLE_IEEE128) != 0) in ffi_prep_args64()
[all …]
Dffi_sysv.c373 ffi_prep_args_SYSV (extended_cif *ecif, unsigned *const stack) in ffi_prep_args_SYSV() argument
375 const unsigned bytes = ecif->cif->bytes; in ffi_prep_args_SYSV()
376 const unsigned flags = ecif->cif->flags; in ffi_prep_args_SYSV()
451 *gpr_base.u++ = (unsigned) (char *) ecif->rvalue; in ffi_prep_args_SYSV()
454 p_argv.v = ecif->avalue; in ffi_prep_args_SYSV()
455 for (ptr = ecif->cif->arg_types, i = ecif->cif->nargs; in ffi_prep_args_SYSV()
461 typenum = translate_float (ecif->cif->abi, typenum); in ffi_prep_args_SYSV()
/third_party/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 …]
/third_party/libffi/src/arc/
Dffi.c46 ffi_prep_args (char *stack, extended_cif * ecif) in ffi_prep_args() argument
55 if (ecif->cif->rtype->type == FFI_TYPE_STRUCT) in ffi_prep_args()
57 *(void **) argp = ecif->rvalue; in ffi_prep_args()
61 p_argv = ecif->avalue; in ffi_prep_args()
63 for (i = ecif->cif->nargs, p_arg = ecif->cif->arg_types; in ffi_prep_args()
167 extended_cif ecif; in ffi_call() local
169 ecif.cif = cif; in ffi_call()
170 ecif.avalue = avalue; in ffi_call()
176 ecif.rvalue = alloca (cif->rtype->size); in ffi_call()
179 ecif.rvalue = rvalue; in ffi_call()
[all …]
/third_party/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 …]
/third_party/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()
/third_party/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 …]
/third_party/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 …]
/third_party/libffi/src/metag/
Dffi.c37 unsigned int ffi_prep_args(char *stack, extended_cif *ecif) in ffi_prep_args() argument
47 if ( ecif->cif->flags == FFI_TYPE_STRUCT ) { in ffi_prep_args()
49 *(void **) argp = ecif->rvalue; in ffi_prep_args()
52 p_argv = ecif->avalue; in ffi_prep_args()
55 for (i = ecif->cif->nargs, p_arg = ecif->cif->arg_types; (i != 0); i--, p_arg++, p_argv++) in ffi_prep_args()
175 extended_cif ecif; in ffi_call() local
178 ecif.cif = cif; in ffi_call()
179 ecif.avalue = avalue; in ffi_call()
189 ecif.rvalue = alloca(cif->rtype->size); in ffi_call()
191 ecif.rvalue = &temp; in ffi_call()
[all …]
/third_party/libffi/src/m88k/
Dffi.c72 ffi_prep_args (void *stack, extended_cif *ecif) in ffi_prep_args() argument
86 if (ecif->cif->rtype->type == FFI_TYPE_STRUCT in ffi_prep_args()
87 && !ecif->cif->flags) in ffi_prep_args()
88 struct_value_ptr = ecif->rvalue; in ffi_prep_args()
92 p_argv = ecif->avalue; in ffi_prep_args()
94 for (i = ecif->cif->nargs, p_arg = ecif->cif->arg_types; i != 0; i--, p_arg++) in ffi_prep_args()
234 extended_cif ecif; in ffi_call() local
236 ecif.cif = cif; in ffi_call()
237 ecif.avalue = avalue; in ffi_call()
246 ecif.rvalue = alloca (cif->rtype->size); in ffi_call()
[all …]
/third_party/libffi/src/frv/
Dffi.c37 void *ffi_prep_args(char *stack, extended_cif *ecif) in ffi_prep_args() argument
45 p_argv = ecif->avalue; in ffi_prep_args()
48 for (i = ecif->cif->nargs, p_arg = ecif->cif->arg_types; in ffi_prep_args()
137 extended_cif ecif; in ffi_call() local
139 ecif.cif = cif; in ffi_call()
140 ecif.avalue = avalue; in ffi_call()
148 ecif.rvalue = alloca(cif->rtype->size); in ffi_call()
151 ecif.rvalue = rvalue; in ffi_call()
157 ffi_call_EABI(ffi_prep_args, &ecif, cif->bytes, in ffi_call()
158 cif->flags, ecif.rvalue, fn); in ffi_call()
/third_party/libffi/src/or1k/
Dffi.c33 void* ffi_prep_args(char *stack, extended_cif *ecif) in ffi_prep_args() argument
41 nfixedargs = ecif->cif->nfixedargs; in ffi_prep_args()
42 arg = ecif->cif->arg_types; in ffi_prep_args()
43 void **argv = ecif->avalue; in ffi_prep_args()
45 if (ecif->cif->rtype->type == FFI_TYPE_STRUCT) in ffi_prep_args()
47 *(void **) stack = ecif->rvalue; in ffi_prep_args()
51 for(i=0; i<ecif->cif->nargs; i++) in ffi_prep_args()
146 extended_cif ecif; in ffi_call() local
147 ecif.cif = cif; in ffi_call()
148 ecif.avalue = avalue; in ffi_call()
[all …]
/third_party/libffi/src/sh64/
Dffi.c59 void ffi_prep_args(char *stack, extended_cif *ecif) in ffi_prep_args() argument
69 if (return_type (ecif->cif->rtype) == FFI_TYPE_STRUCT) in ffi_prep_args()
71 *(void **) argp = ecif->rvalue; in ffi_prep_args()
75 avn = ecif->cif->nargs; in ffi_prep_args()
76 p_argv = ecif->avalue; in ffi_prep_args()
78 for (i = 0, p_arg = ecif->cif->arg_types; i < avn; i++, p_arg++, p_argv++) in ffi_prep_args()
256 extended_cif ecif; in ffi_call() local
259 ecif.cif = cif; in ffi_call()
260 ecif.avalue = avalue; in ffi_call()
267 ecif.rvalue = &trvalue; in ffi_call()
[all …]
/third_party/libffi/src/cris/
Dffi.c70 ffi_prep_args (char *stack, extended_cif * ecif) in ffi_prep_args() argument
80 p_argv = ecif->avalue; in ffi_prep_args()
82 for (i = ecif->cif->nargs, p_arg = ecif->cif->arg_types; in ffi_prep_args()
106 uiLocOnStack = 4 * ecif->cif->nargs + struct_count; in ffi_prep_args()
248 extended_cif ecif; in ffi_call() local
250 ecif.cif = cif; in ffi_call()
251 ecif.avalue = avalue; in ffi_call()
255 ecif.rvalue = alloca (cif->rtype->size); in ffi_call()
258 ecif.rvalue = rvalue; in ffi_call()
263 ffi_call_SYSV (ffi_prep_args, &ecif, cif->bytes, in ffi_call()
[all …]
/third_party/libffi/src/avr32/
Dffi.c67 void ffi_prep_args(char *stack, extended_cif *ecif) in ffi_prep_args() argument
77 p_argv = ecif->avalue; in ffi_prep_args()
80 if(ecif->cif->flags == FFI_TYPE_STRUCT) in ffi_prep_args()
82 *(void**)reg_base = ecif->rvalue; in ffi_prep_args()
86 for(i = 0, p_arg = ecif->cif->arg_types; i < ecif->cif->nargs; in ffi_prep_args()
237 extended_cif ecif; in ffi_call() local
242 ecif.cif = cif; in ffi_call()
243 ecif.avalue = avalue; in ffi_call()
253 ecif.rvalue = alloca(cif->rtype->size); in ffi_call()
255 ecif.rvalue = rvalue; in ffi_call()
[all …]
/third_party/libffi/src/sh/
Dffi.c111 void ffi_prep_args(char *stack, extended_cif *ecif) in ffi_prep_args() argument
127 if (return_type (ecif->cif->rtype) == FFI_TYPE_STRUCT) in ffi_prep_args()
129 *(void **) argp = ecif->rvalue; in ffi_prep_args()
138 avn = ecif->cif->nargs; in ffi_prep_args()
139 p_argv = ecif->avalue; in ffi_prep_args()
141 for (i = 0, p_arg = ecif->cif->arg_types; i < avn; i++, p_arg++, p_argv++) in ffi_prep_args()
228 p_argv = ecif->avalue; in ffi_prep_args()
230 for (i = 0, p_arg = ecif->cif->arg_types; i < avn; i++, p_arg++, p_argv++) in ffi_prep_args()
414 extended_cif ecif; in ffi_call() local
417 ecif.cif = cif; in ffi_call()
[all …]
/third_party/libffi/src/pa/
Dffi.c142 void ffi_prep_args_pa32(UINT32 *stack, extended_cif *ecif, unsigned bytes) in ffi_prep_args_pa32() argument
152 ecif, bytes); in ffi_prep_args_pa32()
154 p_arg = ecif->cif->arg_types; in ffi_prep_args_pa32()
155 p_argv = ecif->avalue; in ffi_prep_args_pa32()
157 for (i = 0; i < ecif->cif->nargs; i++) in ffi_prep_args_pa32()
378 extended_cif ecif; in ffi_call() local
380 ecif.cif = cif; in ffi_call()
381 ecif.avalue = avalue; in ffi_call()
394 ecif.rvalue = alloca(cif->rtype->size); in ffi_call()
397 ecif.rvalue = rvalue; in ffi_call()
[all …]
/third_party/libffi/src/mips/
Dffi.c72 extended_cif *ecif, in ffi_prep_args() argument
96 if ( ecif->cif->rstruct_flag != 0 ) in ffi_prep_args()
98 if ( ecif->cif->rtype->type == FFI_TYPE_STRUCT ) in ffi_prep_args()
101 *(ffi_arg *) argp = (ffi_arg) ecif->rvalue; in ffi_prep_args()
106 p_argv = ecif->avalue; in ffi_prep_args()
108 for (i = 0, p_arg = ecif->cif->arg_types; i < ecif->cif->nargs; i++, p_arg++) in ffi_prep_args()
132 type = (ecif->cif->abi == FFI_N64 in ffi_prep_args()
133 || ecif->cif->abi == FFI_N64_SOFT_FLOAT) in ffi_prep_args()
136 if (i < 8 && (ecif->cif->abi == FFI_N32_SOFT_FLOAT in ffi_prep_args()
137 || ecif->cif->abi == FFI_N64_SOFT_FLOAT)) in ffi_prep_args()
[all …]
/third_party/python/Modules/_ctypes/libffi_osx/powerpc/
Dppc-ffi_darwin.c98 volatile extended_cif* ecif = inEcif; in ffi_prep_args() local
100 const unsigned bytes = ecif->cif->bytes; in ffi_prep_args()
101 const unsigned flags = ecif->cif->flags; in ffi_prep_args()
137 void** p_argv = ecif->avalue; in ffi_prep_args()
139 ffi_type** ptr = ecif->cif->arg_types; in ffi_prep_args()
151 *next_arg++ = (unsigned long)(char*)ecif->rvalue; in ffi_prep_args()
154 for (i = ecif->cif->nargs; i > 0; i--, ptr++, p_argv++) in ffi_prep_args()
270 if (ecif->cif->abi == FFI_DARWIN) in ffi_prep_args()
587 extended_cif ecif; in ffi_call() local
589 ecif.cif = cif; in ffi_call()
[all …]

12