/external/python/cpython2/Modules/_ctypes/libffi/src/m32r/ |
D | ffi.c | 35 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/cpython2/Modules/_ctypes/libffi_osx/x86/ |
D | x86-ffi_darwin.c | 38 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/ |
D | ffi.c | 46 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/powerpc/ |
D | ffi.c | 86 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/python/cpython2/Modules/_ctypes/libffi/src/microblaze/ |
D | ffi.c | 42 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/ |
D | ffi.c | 48 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/nios2/ |
D | ffi.c | 81 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_arm_wince/ |
D | ffi.c | 40 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/python/cpython2/Modules/_ctypes/libffi/src/arc/ |
D | ffi.c | 46 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/ |
D | ffi.c | 35 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/src/m68k/ |
D | ffi.c | 27 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/bfin/ |
D | ffi.c | 123 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/python/cpython2/Modules/_ctypes/libffi/src/xtensa/ |
D | ffi.c | 97 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/m88k/ |
D | ffi.c | 72 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 …]
|
/external/python/cpython2/Modules/_ctypes/libffi/src/metag/ |
D | ffi.c | 37 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 …]
|
/external/python/cpython2/Modules/_ctypes/libffi_msvc/ |
D | ffi.c | 40 void ffi_prep_args(char *stack, extended_cif *ecif) in ffi_prep_args() argument 49 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() 122 if (argp - stack > ecif->cif->bytes) in ffi_prep_args() 194 extended_cif ecif; in ffi_call() local 196 ecif.cif = cif; in ffi_call() 197 ecif.avalue = avalue; in ffi_call() 206 ecif.rvalue = alloca(cif->rtype->size); in ffi_call() [all …]
|
/external/python/cpython2/Modules/_ctypes/libffi/src/arm/ |
D | ffi.c | 40 int ffi_prep_args_SYSV(char *stack, extended_cif *ecif, float *vfp_space); 41 int ffi_prep_args_VFP(char *stack, extended_cif *ecif, float *vfp_space); 128 int ffi_prep_args_SYSV(char *stack, extended_cif *ecif, float *vfp_space) in ffi_prep_args_SYSV() argument 137 if ( ecif->cif->flags == FFI_TYPE_STRUCT ) { in ffi_prep_args_SYSV() 138 *(void **) argp = ecif->rvalue; in ffi_prep_args_SYSV() 142 p_argv = ecif->avalue; in ffi_prep_args_SYSV() 144 for (i = ecif->cif->nargs, p_arg = ecif->cif->arg_types; in ffi_prep_args_SYSV() 155 int ffi_prep_args_VFP(char *stack, extended_cif *ecif, float *vfp_space) in ffi_prep_args_VFP() argument 166 FFI_ASSERT(ecif->cif->abi == FFI_VFP); in ffi_prep_args_VFP() 176 if ( ecif->cif->flags == FFI_TYPE_STRUCT ) { in ffi_prep_args_VFP() [all …]
|
/external/python/cpython2/Modules/_ctypes/libffi/src/frv/ |
D | ffi.c | 37 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()
|
/external/python/cpython2/Modules/_ctypes/libffi/src/sparc/ |
D | ffi.c | 37 void ffi_prep_args_v8(char *stack, extended_cif *ecif) in ffi_prep_args_v8() argument 51 *(int *) argp = (long)ecif->rvalue; in ffi_prep_args_v8() 68 p_argv = ecif->avalue; in ffi_prep_args_v8() 70 for (i = ecif->cif->nargs, p_arg = ecif->cif->arg_types; i; i--, p_arg++) in ffi_prep_args_v8() 123 int ffi_prep_args_v9(char *stack, extended_cif *ecif) in ffi_prep_args_v9() argument 148 p_argv = ecif->avalue; in ffi_prep_args_v9() 150 if (ecif->cif->rtype->type == FFI_TYPE_STRUCT && in ffi_prep_args_v9() 151 ecif->cif->rtype->size > 32) in ffi_prep_args_v9() 153 *(unsigned long long *) argp = (unsigned long)ecif->rvalue; in ffi_prep_args_v9() 158 for (i = 0, p_arg = ecif->cif->arg_types; i < ecif->cif->nargs; in ffi_prep_args_v9() [all …]
|
/external/python/cpython2/Modules/_ctypes/libffi/src/sh64/ |
D | ffi.c | 59 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 …]
|
/external/python/cpython2/Modules/_ctypes/libffi/src/cris/ |
D | ffi.c | 70 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 …]
|
/external/python/cpython2/Modules/_ctypes/libffi/src/avr32/ |
D | ffi.c | 67 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 …]
|
/external/python/cpython2/Modules/_ctypes/libffi/src/sh/ |
D | ffi.c | 111 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 …]
|
/external/python/cpython2/Modules/_ctypes/libffi/src/s390/ |
D | ffi.c | 162 ffi_prep_args (unsigned char *stack, extended_cif *ecif) in ffi_prep_args() argument 180 int gpr_off = ecif->cif->bytes; in ffi_prep_args() 193 void **p_argv = ecif->avalue; in ffi_prep_args() 199 if (ecif->cif->flags == FFI390_RET_STRUCT) in ffi_prep_args() 200 p_gpr[n_gpr++] = (unsigned long) ecif->rvalue; in ffi_prep_args() 204 for (ptr = ecif->cif->arg_types, i = ecif->cif->nargs; in ffi_prep_args() 507 extended_cif ecif; in ffi_call() local 509 ecif.cif = cif; in ffi_call() 510 ecif.avalue = avalue; in ffi_call() 511 ecif.rvalue = rvalue; in ffi_call() [all …]
|
/external/python/cpython2/Modules/_ctypes/libffi/src/pa/ |
D | ffi.c | 142 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 …]
|