Lines Matching refs:tcp
65 ff_effect_ioctl(struct tcb *tcp, long arg) in ff_effect_ioctl() argument
69 if (!verbose(tcp) || umove(tcp, arg, &ffe) < 0) in ff_effect_ioctl()
77 if (!abbrev(tcp)) { in ff_effect_ioctl()
136 abs_ioctl(struct tcb *tcp, long arg) in abs_ioctl() argument
140 if (!verbose(tcp) || umove(tcp, arg, &absinfo) < 0) in abs_ioctl()
145 if (!abbrev(tcp)) { in abs_ioctl()
160 keycode_ioctl(struct tcb *tcp, long arg) in keycode_ioctl() argument
169 if (!verbose(tcp) || umove(tcp, arg, &keycode) < 0) in keycode_ioctl()
180 keycode_V2_ioctl(struct tcb *tcp, long arg) in keycode_V2_ioctl() argument
189 if (!verbose(tcp) || umove(tcp, arg, &ike) < 0) in keycode_V2_ioctl()
193 if (!abbrev(tcp)) { in keycode_V2_ioctl()
213 getid_ioctl(struct tcb *tcp, long arg) in getid_ioctl() argument
217 if (!verbose(tcp) || umove(tcp, arg, &id) < 0) in getid_ioctl()
222 if (!abbrev(tcp)) { in getid_ioctl()
232 decode_bitset(struct tcb *tcp, long arg, const struct xlat decode_nr[], in decode_bitset() argument
235 if (!verbose(tcp)) in decode_bitset()
239 if ((unsigned long) tcp->u_rval > max_nr) in decode_bitset()
242 size = tcp->u_rval; in decode_bitset()
245 if (umoven(tcp, arg, size, decoded_arg) < 0) in decode_bitset()
258 if (abbrev(tcp) && bit_displayed >= 3) { in decode_bitset()
275 mtslots_ioctl(struct tcb *tcp, const unsigned int code, long arg) in mtslots_ioctl() argument
283 if (!verbose(tcp) || umove(tcp, arg, &buffer) < 0) in mtslots_ioctl()
302 repeat_ioctl(struct tcb *tcp, long arg) in repeat_ioctl() argument
305 printpair_int(tcp, arg, "%u"); in repeat_ioctl()
311 evdev_read_ioctl(struct tcb *tcp, const unsigned int code, long arg) in evdev_read_ioctl() argument
313 if (entering(tcp)) in evdev_read_ioctl()
316 if (syserror(tcp)) in evdev_read_ioctl()
322 return decode_bitset(tcp, arg, evdev_sync, in evdev_read_ioctl()
325 return decode_bitset(tcp, arg, evdev_keycode, in evdev_read_ioctl()
328 return decode_bitset(tcp, arg, evdev_relative_axes, in evdev_read_ioctl()
331 return decode_bitset(tcp, arg, in evdev_read_ioctl()
334 return decode_bitset(tcp, arg, in evdev_read_ioctl()
338 return decode_bitset(tcp, arg, in evdev_read_ioctl()
342 return decode_bitset(tcp, arg, in evdev_read_ioctl()
345 return decode_bitset(tcp, arg, in evdev_read_ioctl()
348 return decode_bitset(tcp, arg, evdev_autorepeat, in evdev_read_ioctl()
351 return decode_bitset(tcp, arg, evdev_ff_types, in evdev_read_ioctl()
354 printnum_int(tcp, arg, "%d"); in evdev_read_ioctl()
357 return decode_bitset(tcp, arg, evdev_ff_status, in evdev_read_ioctl()
365 return abs_ioctl(tcp, arg); in evdev_read_ioctl()
370 printnum_int(tcp, arg, "%" PRIx32); in evdev_read_ioctl()
374 printnum_int(tcp, arg, "%" PRIu32); in evdev_read_ioctl()
377 return getid_ioctl(tcp, arg); in evdev_read_ioctl()
380 return repeat_ioctl(tcp, arg);; in evdev_read_ioctl()
383 return keycode_ioctl(tcp, arg); in evdev_read_ioctl()
386 return keycode_V2_ioctl(tcp, arg); in evdev_read_ioctl()
393 return mtslots_ioctl(tcp, code, arg); in evdev_read_ioctl()
399 printstr(tcp, arg, tcp->u_rval - 1); in evdev_read_ioctl()
403 return decode_bitset(tcp, arg, in evdev_read_ioctl()
407 return decode_bitset(tcp, arg, in evdev_read_ioctl()
411 return decode_bitset(tcp, arg, in evdev_read_ioctl()
415 return decode_bitset(tcp, arg, in evdev_read_ioctl()
418 return decode_bitset(tcp, arg, in evdev_read_ioctl()
426 evdev_write_ioctl(struct tcb *tcp, const unsigned int code, long arg) in evdev_write_ioctl() argument
428 if (exiting(tcp)) in evdev_write_ioctl()
432 return abs_ioctl(tcp, arg); in evdev_write_ioctl()
437 return repeat_ioctl(tcp, arg); in evdev_write_ioctl()
440 return keycode_ioctl(tcp, arg); in evdev_write_ioctl()
443 return keycode_V2_ioctl(tcp, arg); in evdev_write_ioctl()
446 return ff_effect_ioctl(tcp, arg); in evdev_write_ioctl()
456 printnum_int(tcp, arg, "%u"); in evdev_write_ioctl()
464 evdev_ioctl(struct tcb *tcp, const unsigned int code, long arg) in evdev_ioctl() argument
468 return evdev_read_ioctl(tcp, code, arg); in evdev_ioctl()
470 if (!evdev_write_ioctl(tcp, code, arg)) in evdev_ioctl()