/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/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/cpython3/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/libffi/src/microblaze/ |
D | ffi.c | 42 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 …]
|
/external/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/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/libffi/src/powerpc/ |
D | ffi.c | 91 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()
|
/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/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/libffi/src/arc/ |
D | ffi.c | 46 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 …]
|
/external/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/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/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/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/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/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/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/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/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 …]
|