• Home
  • Raw
  • Download

Lines Matching refs:code

40 	const unsigned int code2 = ((struct_ioctlent *) b)->code;  in compare()
45 ioctl_lookup(const unsigned int code) in ioctl_lookup() argument
49 iop = bsearch((const void *) (const uintptr_t) code, ioctlent, in ioctl_lookup()
53 if (iop->code != code) { in ioctl_lookup()
64 const unsigned int code = iop->code; in ioctl_next_match() local
66 if (iop < ioctlent + nioctlents && iop->code == code) in ioctl_next_match()
72 ioctl_print_code(const unsigned int code) in ioctl_print_code() argument
75 printflags(ioctl_dirs, _IOC_DIR(code), "_IOC_???"); in ioctl_print_code()
77 _IOC_TYPE(code), _IOC_NR(code), _IOC_SIZE(code)); in ioctl_print_code()
81 evdev_decode_number(const unsigned int code) in evdev_decode_number() argument
83 const unsigned int nr = _IOC_NR(code); in evdev_decode_number()
85 if (_IOC_DIR(code) == _IOC_WRITE) { in evdev_decode_number()
95 if (_IOC_DIR(code) != _IOC_READ) in evdev_decode_number()
104 tprintf(", %u)", _IOC_SIZE(code)); in evdev_decode_number()
116 tprintf("EVIOCGNAME(%u)", _IOC_SIZE(code)); in evdev_decode_number()
119 tprintf("EVIOCGPHYS(%u)", _IOC_SIZE(code)); in evdev_decode_number()
122 tprintf("EVIOCGUNIQ(%u)", _IOC_SIZE(code)); in evdev_decode_number()
125 tprintf("EVIOCGPROP(%u)", _IOC_SIZE(code)); in evdev_decode_number()
128 tprintf("EVIOCGMTSLOTS(%u)", _IOC_SIZE(code)); in evdev_decode_number()
131 tprintf("EVIOCGKEY(%u)", _IOC_SIZE(code)); in evdev_decode_number()
134 tprintf("EVIOCGLED(%u)", _IOC_SIZE(code)); in evdev_decode_number()
137 tprintf("EVIOCGSND(%u)", _IOC_SIZE(code)); in evdev_decode_number()
140 tprintf("EVIOCGSW(%u)", _IOC_SIZE(code)); in evdev_decode_number()
148 hiddev_decode_number(const unsigned int code) in hiddev_decode_number() argument
150 if (_IOC_DIR(code) == _IOC_READ) { in hiddev_decode_number()
151 switch (_IOC_NR(code)) { in hiddev_decode_number()
153 tprintf("HIDIOCGRAWNAME(%u)", _IOC_SIZE(code)); in hiddev_decode_number()
156 tprintf("HIDIOCGRAWPHYS(%u)", _IOC_SIZE(code)); in hiddev_decode_number()
159 tprintf("HIDIOCSFEATURE(%u)", _IOC_SIZE(code)); in hiddev_decode_number()
162 tprintf("HIDIOCGPHYS(%u)", _IOC_SIZE(code)); in hiddev_decode_number()
167 } else if (_IOC_DIR(code) == (_IOC_READ | _IOC_WRITE)) { in hiddev_decode_number()
168 switch (_IOC_NR(code)) { in hiddev_decode_number()
170 tprintf("HIDIOCSFEATURE(%u)", _IOC_SIZE(code)); in hiddev_decode_number()
173 tprintf("HIDIOCGFEATURE(%u)", _IOC_SIZE(code)); in hiddev_decode_number()
186 const unsigned int code = tcp->u_arg[1]; in ioctl_decode_command_number() local
188 switch (_IOC_TYPE(code)) { in ioctl_decode_command_number()
190 return evdev_decode_number(code); in ioctl_decode_command_number()
192 return hiddev_decode_number(code); in ioctl_decode_command_number()
194 if (_IOC_DIR(code) == _IOC_WRITE) { in ioctl_decode_command_number()
195 tprintf("MIXER_WRITE(%u)", _IOC_NR(code)); in ioctl_decode_command_number()
197 } else if (_IOC_DIR(code) == _IOC_READ) { in ioctl_decode_command_number()
198 tprintf("MIXER_READ(%u)", _IOC_NR(code)); in ioctl_decode_command_number()
203 if (_IOC_DIR(code) == _IOC_READ && _IOC_NR(code) == 0x2c) { in ioctl_decode_command_number()
204 tprintf("UI_GET_SYSNAME(%u)", _IOC_SIZE(code)); in ioctl_decode_command_number()
209 if (_IOC_DIR(code) == _IOC_READ && _IOC_NR(code) == 0x13) { in ioctl_decode_command_number()
210 tprintf("JSIOCGNAME(%u)", _IOC_SIZE(code)); in ioctl_decode_command_number()
215 if (_IOC_DIR(code) == _IOC_WRITE && _IOC_NR(code) == 0) { in ioctl_decode_command_number()
216 tprintf("SPI_IOC_MESSAGE(%u)", _IOC_SIZE(code)); in ioctl_decode_command_number()
255 const unsigned int code = tcp->u_arg[1]; in ioctl_decode() local
258 switch (_IOC_TYPE(code)) { in ioctl_decode()
260 return perf_ioctl(tcp, code, arg); in ioctl_decode()
263 int ret = file_ioctl(tcp, code, arg); in ioctl_decode()
270 return term_ioctl(tcp, code, arg); in ioctl_decode()
273 return file_ioctl(tcp, code, arg); in ioctl_decode()
276 return term_ioctl(tcp, code, arg); in ioctl_decode()
278 return sock_ioctl(tcp, code, arg); in ioctl_decode()
280 return rtc_ioctl(tcp, code, arg); in ioctl_decode()
282 return hdio_ioctl(tcp, code, arg); in ioctl_decode()
284 return block_ioctl(tcp, code, arg); in ioctl_decode()
286 return fs_x_ioctl(tcp, code, arg); in ioctl_decode()
288 return scsi_ioctl(tcp, code, arg); in ioctl_decode()
290 return loop_ioctl(tcp, code, arg); in ioctl_decode()
293 return mtd_ioctl(tcp, code, arg); in ioctl_decode()
298 return ubi_ioctl(tcp, code, arg); in ioctl_decode()
301 return v4l2_ioctl(tcp, code, arg); in ioctl_decode()
304 return ptp_ioctl(tcp, code, arg); in ioctl_decode()
308 return evdev_ioctl(tcp, code, arg); in ioctl_decode()
312 return uffdio_ioctl(tcp, code, arg); in ioctl_decode()
316 return btrfs_ioctl(tcp, code, arg); in ioctl_decode()
319 return nsfs_ioctl(tcp, code, arg); in ioctl_decode()
322 return dm_ioctl(tcp, code, arg); in ioctl_decode()
326 return kvm_ioctl(tcp, code, arg); in ioctl_decode()
329 return inotify_ioctl(tcp, code, arg); in ioctl_decode()
331 return nbd_ioctl(tcp, code, arg); in ioctl_decode()