Home
last modified time | relevance | path

Searched refs:rtype (Results 1 – 25 of 83) sorted by relevance

1234

/external/python/cpython2/Modules/_ctypes/libffi/src/
Dprep_cif.c111 ffi_type *rtype, ffi_type **atypes) in ffi_prep_cif_core() argument
127 cif->rtype = rtype; in ffi_prep_cif_core()
136 if ((cif->rtype->size == 0) && (initialize_aggregate(cif->rtype) != FFI_OK)) in ffi_prep_cif_core()
140 FFI_ASSERT_VALID_TYPE(cif->rtype); in ffi_prep_cif_core()
145 if (cif->rtype->type == FFI_TYPE_STRUCT in ffi_prep_cif_core()
147 && (cif->abi != FFI_V9 || cif->rtype->size > 32) in ffi_prep_cif_core()
150 && (cif->rtype->size > 10 * FFI_SIZEOF_ARG) in ffi_prep_cif_core()
153 && (cif->rtype->size > 16) in ffi_prep_cif_core()
156 && (cif->rtype->size > 8) in ffi_prep_cif_core()
219 ffi_type *rtype, ffi_type **atypes) in ffi_prep_cif() argument
[all …]
/external/python/cpython2/Modules/_ctypes/libffi_msvc/
Dffi.c49 if (ecif->cif->rtype->type == FFI_TYPE_STRUCT) in ffi_prep_args()
133 switch (cif->rtype->type) in ffi_prep_cif_machdep()
140 cif->flags = (unsigned) cif->rtype->type; in ffi_prep_cif_machdep()
147 if (cif->rtype->size <= 4) in ffi_prep_cif_machdep()
149 else if (cif->rtype->size <= 8) in ffi_prep_cif_machdep()
203 (cif->rtype->type == FFI_TYPE_STRUCT)) in ffi_call()
206 ecif.rvalue = alloca(cif->rtype->size); in ffi_call()
257 unsigned short rtype; in ffi_closure_SYSV() local
274 rtype = cif->flags; in ffi_closure_SYSV()
279 if (rtype == FFI_TYPE_INT) in ffi_closure_SYSV()
[all …]
Dprep_cif.c89 /*@dependent@*/ /*@out@*/ /*@partial@*/ ffi_type *rtype, in ffi_prep_cif() argument
102 cif->rtype = rtype; in ffi_prep_cif()
108 if ((cif->rtype->size == 0) && (initialize_aggregate(cif->rtype) != FFI_OK)) in ffi_prep_cif()
113 FFI_ASSERT_VALID_TYPE(cif->rtype); in ffi_prep_cif()
118 if (cif->rtype->type == FFI_TYPE_STRUCT in ffi_prep_cif()
120 && (cif->rtype->size > 8) /* MSVC returns small structs in registers */ in ffi_prep_cif()
123 && (cif->abi != FFI_V9 || cif->rtype->size > 32) in ffi_prep_cif()
/external/libxml2/
Dgentest.py402 def is_known_param_type(name, rtype): argument
412 if rtype[0:6] == 'const ':
413 crtype = rtype[6:]
415 crtype = rtype
428 """ % (name, crtype, name, name, rtype))
686 rtype = arg.xpathEval("string(@type)")
687 if rtype == 'void':
691 type = type_convert(rtype, nam, info, module, name, n)
692 if is_known_param_type(type, rtype) == 0:
696 rtype[0:6] == 'const ':
[all …]
/external/python/cpython2/Modules/_ctypes/libffi/src/m32r/
Dffi.c47 if (ecif->cif->rtype->type == FFI_TYPE_STRUCT && ecif->cif->rtype->size > 8) in ffi_prep_args()
143 switch (cif->rtype->type) in ffi_prep_cif_machdep()
146 cif->flags = (unsigned) cif->rtype->type; in ffi_prep_cif_machdep()
150 if (cif->rtype->size <= 4) in ffi_prep_cif_machdep()
153 else if (cif->rtype->size <= 8) in ffi_prep_cif_machdep()
157 cif->flags = (unsigned) cif->rtype->type; in ffi_prep_cif_machdep()
188 (cif->rtype->type == FFI_TYPE_STRUCT)) in ffi_call()
190 ecif.rvalue = alloca (cif->rtype->size); in ffi_call()
200 if (cif->rtype->type == FFI_TYPE_STRUCT) in ffi_call()
202 int size = cif->rtype->size; in ffi_call()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi/src/vax/
Dffi.c61 if (ecif->cif->rtype->type == FFI_TYPE_STRUCT in ffi_prep_args()
125 switch (cif->rtype->type) in ffi_prep_cif_machdep()
132 if (cif->rtype->elements[0]->type == FFI_TYPE_STRUCT && in ffi_prep_cif_machdep()
133 cif->rtype->elements[1]) in ffi_prep_cif_machdep()
139 if (cif->rtype->size == sizeof (char)) in ffi_prep_cif_machdep()
141 else if (cif->rtype->size == sizeof (short)) in ffi_prep_cif_machdep()
143 else if (cif->rtype->size == sizeof (int)) in ffi_prep_cif_machdep()
145 else if (cif->rtype->size == 2 * sizeof (int)) in ffi_prep_cif_machdep()
152 if (cif->rtype->size <= sizeof (int)) in ffi_prep_cif_machdep()
174 && cif->rtype->type == FFI_TYPE_STRUCT in ffi_call()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi/src/microblaze/
Dffi.c55 if ((ecif->cif->rtype != NULL) && in ffi_prep_args()
56 (ecif->cif->rtype->type == FFI_TYPE_STRUCT)) in ffi_prep_args()
159 if ((rvalue == NULL) && (cif->rtype->type == FFI_TYPE_STRUCT)) { in ffi_call()
160 ecif.rvalue = alloca(cif->rtype->size); in ffi_call()
169 ecif.rvalue, fn, cif->rtype->type, cif->rtype->size); in ffi_call()
179 unsigned int* rtype, unsigned int* rsize) in ffi_closure_call_SYSV() argument
210 if ((cif->rtype != NULL) && (cif->rtype->type == FFI_TYPE_STRUCT)) { in ffi_closure_call_SYSV()
266 *rsize = cif->rtype->size; in ffi_closure_call_SYSV()
267 *rtype = cif->rtype->type; in ffi_closure_call_SYSV()
/external/python/cpython2/Modules/_ctypes/libffi/src/m68k/
Dffi.c49 (ecif->cif->rtype->type == FFI_TYPE_LONGDOUBLE) || in ffi_prep_args()
51 (((ecif->cif->rtype->type == FFI_TYPE_STRUCT) in ffi_prep_args()
134 switch (cif->rtype->type) in ffi_prep_cif_machdep()
141 if (cif->rtype->elements[0]->type == FFI_TYPE_STRUCT && in ffi_prep_cif_machdep()
142 cif->rtype->elements[1]) in ffi_prep_cif_machdep()
148 switch (cif->rtype->size) in ffi_prep_cif_machdep()
233 && cif->rtype->type == FFI_TYPE_STRUCT in ffi_call()
234 && cif->rtype->size > 8) in ffi_call()
235 ecif.rvalue = alloca (cif->rtype->size); in ffi_call()
270 cif->rtype->type == FFI_TYPE_STRUCT && in ffi_prep_incoming_args_SYSV()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi/src/x86/
Dffi.c66 && (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()
231 switch (cif->rtype->type) in ffi_prep_cif_machdep()
250 cif->flags = (unsigned) cif->rtype->type; in ffi_prep_cif_machdep()
262 if (cif->rtype->size == 1) in ffi_prep_cif_machdep()
266 else if (cif->rtype->size == 2) in ffi_prep_cif_machdep()
270 else if (cif->rtype->size == 4) in ffi_prep_cif_machdep()
278 else if (cif->rtype->size == 8) in ffi_prep_cif_machdep()
356 && cif->rtype->size != 1 && cif->rtype->size != 2 in ffi_call()
357 && cif->rtype->size != 4 && cif->rtype->size != 8) in ffi_call()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi_osx/
Dffi.c135 /*@dependent@*/ /*@out@*/ /*@partial@*/ ffi_type* rtype, in ffi_prep_cif() argument
151 cif->rtype = rtype; in ffi_prep_cif()
156 if ((cif->rtype->size == 0) && (initialize_aggregate(cif->rtype) != FFI_OK)) in ffi_prep_cif()
161 FFI_ASSERT_VALID_TYPE(cif->rtype); in ffi_prep_cif()
166 if (cif->rtype->type == FFI_TYPE_STRUCT in ffi_prep_cif()
168 && (cif->abi != FFI_V9 || cif->rtype->size > 32) in ffi_prep_cif()
171 && (struct_on_stack(cif->rtype->size)) in ffi_prep_cif()
/external/python/cpython2/Modules/_ctypes/libffi_arm_wince/
Dprep_cif.c89 /*@dependent@*/ /*@out@*/ /*@partial@*/ ffi_type *rtype, in ffi_prep_cif() argument
102 cif->rtype = rtype; in ffi_prep_cif()
108 if ((cif->rtype->size == 0) && (initialize_aggregate(cif->rtype) != FFI_OK)) in ffi_prep_cif()
113 FFI_ASSERT_VALID_TYPE(cif->rtype); in ffi_prep_cif()
118 if (cif->rtype->type == FFI_TYPE_STRUCT in ffi_prep_cif()
123 && (cif->abi != FFI_V9 || cif->rtype->size > 32) in ffi_prep_cif()
/external/python/cpython2/Modules/_ctypes/libffi/src/xtensa/
Dffi.c57 switch(cif->rtype->type) { in ffi_prep_cif_machdep()
62 cif->flags = cif->rtype->type; in ffi_prep_cif_machdep()
76 if (cif->rtype->size > 4 * 4) { in ffi_prep_cif_machdep()
123 if (ecif->cif->rtype->type == FFI_TYPE_STRUCT && ecif->cif->rtype->size > 16) in ffi_prep_args()
193 unsigned long rsize = cif->rtype->size; in ffi_call()
264 int rtype = cif->rtype->type; in ffi_closure_SYSV_inner() local
265 if (rtype == FFI_TYPE_STRUCT && cif->rtype->size > 4 * 4) in ffi_closure_SYSV_inner()
297 return rtype; in ffi_closure_SYSV_inner()
/external/python/cpython2/Modules/_ctypes/libffi/src/sh64/
Dffi.c69 if (return_type (ecif->cif->rtype) == FFI_TYPE_STRUCT) in ffi_prep_args()
165 greg = (return_type (cif->rtype) == FFI_TYPE_STRUCT ? 1 : 0); in ffi_prep_cif_machdep()
219 switch (cif->rtype->type) in ffi_prep_cif_machdep()
222 cif->flags = return_type (cif->rtype); in ffi_prep_cif_machdep()
230 cif->flags = cif->rtype->type; in ffi_prep_cif_machdep()
265 if (cif->rtype->type == FFI_TYPE_STRUCT in ffi_call()
266 && return_type (cif->rtype) != FFI_TYPE_STRUCT) in ffi_call()
269 (cif->rtype->type == FFI_TYPE_STRUCT)) in ffi_call()
271 ecif.rvalue = alloca(cif->rtype->size); in ffi_call()
288 && cif->rtype->type == FFI_TYPE_STRUCT in ffi_call()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi/src/sparc/
Dffi.c150 if (ecif->cif->rtype->type == FFI_TYPE_STRUCT && in ffi_prep_args_v9()
151 ecif->cif->rtype->size > 32) in ffi_prep_args_v9()
263 if (cif->rtype->type != FFI_TYPE_STRUCT) in ffi_prep_cif_machdep()
294 switch (cif->rtype->type) in ffi_prep_cif_machdep()
302 cif->flags = cif->rtype->type; in ffi_prep_cif_machdep()
306 if (cif->abi == FFI_V9 && cif->rtype->size > 32) in ffi_prep_cif_machdep()
319 cif->flags = cif->rtype->type; in ffi_prep_cif_machdep()
395 if (cif->rtype->type == FFI_TYPE_STRUCT) in ffi_call()
397 if (cif->rtype->size <= 32) in ffi_call()
403 ecif.rvalue = alloca(cif->rtype->size); in ffi_call()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi/src/nios2/
Dffi.c88 if (ecif->cif->rtype->type == FFI_TYPE_STRUCT in ffi_prep_args()
89 && ecif->cif->rtype->size > 8) in ffi_prep_args()
159 int bigret = (cif->rtype->type == FFI_TYPE_STRUCT in ffi_call()
160 && cif->rtype->size > 8); in ffi_call()
168 ecif.rvalue = alloca (cif->rtype->size); in ffi_call()
178 switch (cif->rtype->size) in ffi_call()
193 memcpy (rvalue, (void *)&result, cif->rtype->size); in ffi_call()
216 if (cif->rtype->type == FFI_TYPE_STRUCT in ffi_closure_helper()
217 && cif->rtype->size > 8) in ffi_closure_helper()
/external/python/cpython2/Modules/_ctypes/libffi/src/moxie/
Dffi.c46 if (ecif->cif->rtype->type == FFI_TYPE_STRUCT) in ffi_prep_args()
109 if (cif->rtype->type == FFI_TYPE_STRUCT) in ffi_prep_cif_machdep()
112 cif->flags = cif->rtype->size; in ffi_prep_cif_machdep()
139 (cif->rtype->type == FFI_TYPE_STRUCT)) in ffi_call()
141 ecif.rvalue = alloca(cif->rtype->size); in ffi_call()
189 if ((cif->rtype != NULL) && (cif->rtype->type == FFI_TYPE_STRUCT)) { in ffi_closure_eabi()
231 if (cif->rtype && (cif->rtype->type == FFI_TYPE_STRUCT)) in ffi_closure_eabi()
/external/python/cpython2/Modules/_ctypes/libffi/src/cris/
Dffi.c160 ffi_type * rtype, ffi_type ** atypes) in ffi_prep_cif_core() argument
174 cif->rtype = rtype; in ffi_prep_cif_core()
178 if ((cif->rtype->size == 0) in ffi_prep_cif_core()
179 && (initialize_aggregate_packed_struct (cif->rtype) != FFI_OK)) in ffi_prep_cif_core()
182 FFI_ASSERT_VALID_TYPE (cif->rtype); in ffi_prep_cif_core()
221 switch (cif->rtype->type) in ffi_prep_cif_machdep()
229 cif->flags = (unsigned) cif->rtype->type; in ffi_prep_cif_machdep()
253 if ((rvalue == NULL) && (cif->rtype->type == FFI_TYPE_STRUCT)) in ffi_call()
255 ecif.rvalue = alloca (cif->rtype->size); in ffi_call()
348 cif->rtype->type == FFI_TYPE_STRUCT in ffi_prep_closure_inner()
/external/python/cpython2/Modules/_ctypes/libffi/src/sh/
Dffi.c127 if (return_type (ecif->cif->rtype) == FFI_TYPE_STRUCT) in ffi_prep_args()
334 greg = ((return_type (cif->rtype) == FFI_TYPE_STRUCT) && in ffi_prep_cif_machdep()
387 switch (cif->rtype->type) in ffi_prep_cif_machdep()
390 cif->flags += (unsigned) (return_type (cif->rtype)) << 24; in ffi_prep_cif_machdep()
398 cif->flags += (unsigned) cif->rtype->type << 24; in ffi_prep_cif_machdep()
423 if (cif->rtype->type == FFI_TYPE_STRUCT in ffi_call()
424 && return_type (cif->rtype) != FFI_TYPE_STRUCT) in ffi_call()
427 (cif->rtype->type == FFI_TYPE_STRUCT)) in ffi_call()
429 ecif.rvalue = alloca(cif->rtype->size); in ffi_call()
446 && cif->rtype->type == FFI_TYPE_STRUCT in ffi_call()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi/src/m88k/
Dffi.c86 if (ecif->cif->rtype->type == FFI_TYPE_STRUCT in ffi_prep_args()
203 switch (cif->rtype->type) in ffi_prep_cif_machdep()
210 if (cif->rtype->size == sizeof (int) && in ffi_prep_cif_machdep()
211 cif->rtype->alignment == sizeof (int)) in ffi_prep_cif_machdep()
243 && cif->rtype->type == FFI_TYPE_STRUCT in ffi_call()
244 && (cif->rtype->size != sizeof (int) in ffi_call()
245 || cif->rtype->alignment != sizeof (int))) in ffi_call()
246 ecif.rvalue = alloca (cif->rtype->size); in ffi_call()
377 if (cif->rtype->type == FFI_TYPE_STRUCT && !cif->flags) in ffi_prep_closure_loc()
/external/python/cpython2/Modules/_ctypes/libffi/src/metag/
Dffi.c124 if (cif->rtype->type == FFI_TYPE_STRUCT) { in ffi_prep_cif_machdep()
134 switch (cif->rtype->type) { in ffi_prep_cif_machdep()
138 cif->flags = (unsigned) cif->rtype->type; in ffi_prep_cif_machdep()
146 if (cif->rtype->size <= 4) in ffi_prep_cif_machdep()
149 else if ((cif->rtype->size > 4) && (cif->rtype->size <= 8)) in ffi_prep_cif_machdep()
177 …(cif->flags == FFI_TYPE_INT) || (cif->flags == FFI_TYPE_DOUBLE)) && (cif->rtype->type == FFI_TYPE_… in ffi_call()
189 ecif.rvalue = alloca(cif->rtype->size); in ffi_call()
205 memcpy (rvalue, &temp, cif->rtype->size); in ffi_call()
/external/python/cpython2/Modules/_ctypes/libffi/src/aarch64/
Dffi.c767 if (is_v_register_candidate (cif->rtype)) in ffi_prep_cif_machdep()
824 if (is_register_candidate (cif->rtype)) in ffi_call()
827 switch (cif->rtype->type) in ffi_call()
846 void *addr = get_basic_type_addr (cif->rtype->type, in ffi_call()
848 copy_basic_type (rvalue, addr, cif->rtype->type); in ffi_call()
853 if (is_hfa (cif->rtype)) in ffi_call()
856 unsigned short type = get_homogeneous_type (cif->rtype); in ffi_call()
857 unsigned elems = element_count (cif->rtype); in ffi_call()
865 else if ((cif->rtype->size + 7) / 8 < N_X_ARG_REG) in ffi_call()
867 size_t size = ALIGN (cif->rtype->size, sizeof (UINT64)); in ffi_call()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi/src/avr32/
Dffi.c188 switch(cif->rtype->type) in ffi_prep_cif_machdep()
211 if(!pass_struct_on_stack(cif->rtype)) in ffi_prep_cif_machdep()
213 if(cif->rtype->size <= 1) in ffi_prep_cif_machdep()
215 else if(cif->rtype->size <= 2) in ffi_prep_cif_machdep()
217 else if(cif->rtype->size <= 4) in ffi_prep_cif_machdep()
219 else if(cif->rtype->size <= 8) in ffi_prep_cif_machdep()
222 cif->flags = (unsigned)cif->rtype->type; in ffi_prep_cif_machdep()
225 cif->flags = (unsigned)cif->rtype->type; in ffi_prep_cif_machdep()
228 cif->flags = (unsigned)cif->rtype->type; in ffi_prep_cif_machdep()
253 ecif.rvalue = alloca(cif->rtype->size); in ffi_call()
/external/python/cpython2/Modules/_ctypes/libffi/src/mips/
Dffi.c97 if ( ecif->cif->rtype->type == FFI_TYPE_STRUCT ) in ffi_prep_args()
334 if (cif->rtype->type != FFI_TYPE_STRUCT && cif->abi == FFI_O32) in ffi_prep_cif_machdep()
374 switch (cif->rtype->type) in ffi_prep_cif_machdep()
378 cif->flags += cif->rtype->type << (FFI_FLAG_BITS * 2); in ffi_prep_cif_machdep()
396 switch (cif->rtype->type) in ffi_prep_cif_machdep()
402 cif->flags += cif->rtype->type << (FFI_FLAG_BITS * 2); in ffi_prep_cif_machdep()
430 if (cif->rtype->type == FFI_TYPE_STRUCT) in ffi_prep_cif_machdep()
432 struct_flags = calc_n32_return_struct_flags(soft_float, cif->rtype); in ffi_prep_cif_machdep()
510 switch (cif->rtype->type) in ffi_prep_cif_machdep()
552 cif->flags += cif->rtype->type << (FFI_FLAG_BITS * 8); in ffi_prep_cif_machdep()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi_osx/x86/
Dx86-ffi_darwin.c120 switch (cif->rtype->type) in ffi_prep_cif_machdep()
135 cif->flags = (unsigned) cif->rtype->type; in ffi_prep_cif_machdep()
144 if (cif->rtype->size == 1) in ffi_prep_cif_machdep()
148 else if (cif->rtype->size == 2) in ffi_prep_cif_machdep()
152 else if (cif->rtype->size == 4) in ffi_prep_cif_machdep()
156 else if (cif->rtype->size == 8) in ffi_prep_cif_machdep()
201 ecif.rvalue = alloca(cif->rtype->size); in ffi_call()
411 (cif->rtype->type == FFI_TYPE_STRUCT)) in ffi_raw_call()
413 ecif.rvalue = alloca(cif->rtype->size); in ffi_raw_call()
/external/openssh/
Dserverloop.c708 char *rtype; in server_input_global_request() local
717 rtype = packet_get_string(NULL); in server_input_global_request()
719 debug("server_input_global_request: rtype %s want_reply %d", rtype, want_reply); in server_input_global_request()
722 if (strcmp(rtype, "tcpip-forward") == 0) { in server_input_global_request()
750 } else if (strcmp(rtype, "cancel-tcpip-forward") == 0) { in server_input_global_request()
761 } else if (strcmp(rtype, "streamlocal-forward@openssh.com") == 0) { in server_input_global_request()
782 } else if (strcmp(rtype, "cancel-streamlocal-forward@openssh.com") == 0) { in server_input_global_request()
792 } else if (strcmp(rtype, "no-more-sessions@openssh.com") == 0) { in server_input_global_request()
795 } else if (strcmp(rtype, "hostkeys-prove-00@openssh.com") == 0) { in server_input_global_request()
807 free(rtype); in server_input_global_request()
[all …]

1234