• Home
  • Raw
  • Download

Lines Matching refs:fd

117 static int do_ioctl32_pointer(unsigned int fd, unsigned int cmd,  in do_ioctl32_pointer()  argument
120 return sys_ioctl(fd, cmd, (unsigned long)compat_ptr(arg)); in do_ioctl32_pointer()
123 static int w_long(unsigned int fd, unsigned int cmd, unsigned long arg) in w_long() argument
130 err = sys_ioctl(fd, cmd, (unsigned long)&val); in w_long()
137 static int rw_long(unsigned int fd, unsigned int cmd, unsigned long arg) in rw_long() argument
147 err = sys_ioctl(fd, cmd, (unsigned long)&val); in rw_long()
163 static int do_video_get_event(unsigned int fd, unsigned int cmd, unsigned long arg) in do_video_get_event() argument
170 err = sys_ioctl(fd, cmd, (unsigned long) &kevent); in do_video_get_event()
194 static int do_video_stillpicture(unsigned int fd, unsigned int cmd, unsigned long arg) in do_video_stillpicture() argument
216 err = sys_ioctl(fd, cmd, (unsigned long) up_native); in do_video_stillpicture()
226 static int do_video_set_spu_palette(unsigned int fd, unsigned int cmd, unsigned long arg) in do_video_set_spu_palette() argument
243 err = sys_ioctl(fd, cmd, (unsigned long) up_native); in do_video_set_spu_palette()
249 static int do_siocgstamp(unsigned int fd, unsigned int cmd, unsigned long arg) in do_siocgstamp() argument
257 err = sys_ioctl(fd, cmd, (unsigned long)&ktv); in do_siocgstamp()
266 static int do_siocgstampns(unsigned int fd, unsigned int cmd, unsigned long arg) in do_siocgstampns() argument
274 err = sys_ioctl(fd, cmd, (unsigned long)&kts); in do_siocgstampns()
320 static int dev_ifname32(unsigned int fd, unsigned int cmd, unsigned long arg) in dev_ifname32() argument
329 err = sys_ioctl(fd, SIOCGIFNAME, (unsigned long)uifr); in dev_ifname32()
339 static int dev_ifconf(unsigned int fd, unsigned int cmd, unsigned long arg) in dev_ifconf() argument
374 err = sys_ioctl (fd, SIOCGIFCONF, (unsigned long)uifc); in dev_ifconf()
408 static int ethtool_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg) in ethtool_ioctl() argument
428 return sys_ioctl(fd, cmd, (unsigned long) ifr); in ethtool_ioctl()
431 static int bond_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg) in bond_ioctl() argument
451 err = sys_ioctl (fd, cmd, (unsigned long)&kifr); in bond_ioctl()
468 return sys_ioctl (fd, cmd, (unsigned long)uifr); in bond_ioctl()
474 static int siocdevprivate_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg) in siocdevprivate_ioctl() argument
500 return sys_ioctl(fd, cmd, (unsigned long) u_ifreq64); in siocdevprivate_ioctl()
503 static int dev_ifsioc(unsigned int fd, unsigned int cmd, unsigned long arg) in dev_ifsioc() argument
532 err = sys_ioctl (fd, cmd, (unsigned long)&ifr); in dev_ifsioc()
604 static int routing_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg) in routing_ioctl() argument
614 struct socket *mysock = sockfd_lookup(fd, &ret); in routing_ioctl()
654 ret = sys_ioctl (fd, cmd, (unsigned long) r); in routing_ioctl()
718 static int sg_ioctl_trans(unsigned int fd, unsigned int cmd, unsigned long arg) in sg_ioctl_trans() argument
792 err = sys_ioctl(fd, cmd, (unsigned long) sgio); in sg_ioctl_trans()
823 static int sg_grt_trans(unsigned int fd, unsigned int cmd, unsigned long arg) in sg_grt_trans() argument
829 err = sys_ioctl(fd,cmd,(unsigned long)r); in sg_grt_trans()
855 static int ppp_sock_fprog_ioctl_trans(unsigned int fd, unsigned int cmd, unsigned long arg) in ppp_sock_fprog_ioctl_trans() argument
878 return sys_ioctl(fd, cmd, (unsigned long) u_fprog64); in ppp_sock_fprog_ioctl_trans()
894 static int ppp_gidle(unsigned int fd, unsigned int cmd, unsigned long arg) in ppp_gidle() argument
904 err = sys_ioctl(fd, PPPIOCGIDLE, (unsigned long) idle); in ppp_gidle()
916 static int ppp_scompress(unsigned int fd, unsigned int cmd, unsigned long arg) in ppp_scompress() argument
937 return sys_ioctl(fd, PPPIOCSCOMPRESS, (unsigned long) odata); in ppp_scompress()
940 static int ppp_ioctl_trans(unsigned int fd, unsigned int cmd, unsigned long arg) in ppp_ioctl_trans() argument
946 err = ppp_gidle(fd, cmd, arg); in ppp_ioctl_trans()
950 err = ppp_scompress(fd, cmd, arg); in ppp_ioctl_trans()
959 (int)fd, (unsigned int)cmd, (unsigned int)arg); in ppp_ioctl_trans()
986 static int mt_ioctl_trans(unsigned int fd, unsigned int cmd, unsigned long arg) in mt_ioctl_trans() argument
1012 (int)fd, (unsigned int)cmd, (unsigned int)arg); in mt_ioctl_trans()
1017 err = sys_ioctl (fd, kcmd, (unsigned long)karg); in mt_ioctl_trans()
1079 static int do_fontx_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg, struct file *file) in do_fontx_ioctl() argument
1134 static int do_kdfontop_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg, struct file *fil… in do_kdfontop_ioctl() argument
1164 static int do_unimap_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg, struct file *file) in do_unimap_ioctl() argument
1197 static int do_smb_getmountuid(unsigned int fd, unsigned int cmd, unsigned long arg) in do_smb_getmountuid() argument
1206 err = sys_ioctl(fd, cmd, (unsigned long)&kuid); in do_smb_getmountuid()
1269 static int do_atm_iobuf(unsigned int fd, unsigned int cmd, unsigned long arg) in do_atm_iobuf() argument
1288 err = sys_ioctl(fd, cmd, (unsigned long)iobuf); in do_atm_iobuf()
1299 static int do_atmif_sioc(unsigned int fd, unsigned int cmd, unsigned long arg) in do_atmif_sioc() argument
1317 err = sys_ioctl(fd, cmd, (unsigned long) sioc); in do_atmif_sioc()
1327 static int do_atm_ioctl(unsigned int fd, unsigned int cmd32, unsigned long arg) in do_atm_ioctl() argument
1341 return do_atmif_sioc(fd, cmd32, arg); in do_atm_ioctl()
1355 return do_atm_iobuf(fd, cmd, arg); in do_atm_ioctl()
1373 return do_atmif_sioc(fd, cmd, arg); in do_atm_ioctl()
1380 ret_einval(unsigned int fd, unsigned int cmd, unsigned long arg) in ret_einval() argument
1385 static int ioc_settimeout(unsigned int fd, unsigned int cmd, unsigned long arg) in ioc_settimeout() argument
1387 return rw_long(fd, AUTOFS_IOC_SETTIMEOUT, arg); in ioc_settimeout()
1418 static int mtd_rw_oob(unsigned int fd, unsigned int cmd, unsigned long arg) in mtd_rw_oob() argument
1438 err = sys_ioctl(fd, real_cmd, (unsigned long) buf); in mtd_rw_oob()
1485 static int raw_ioctl(unsigned fd, unsigned cmd, unsigned long arg) in raw_ioctl() argument
1500 ret = sys_ioctl(fd,cmd,(unsigned long)&req); in raw_ioctl()
1509 ret = sys_ioctl(fd, cmd, arg); in raw_ioctl()
1538 static int serial_struct_ioctl(unsigned fd, unsigned cmd, unsigned long arg) in serial_struct_ioctl() argument
1563 err = sys_ioctl(fd,cmd,(unsigned long)(&ss)); in serial_struct_ioctl()
1592 static int do_usbdevfs_control(unsigned int fd, unsigned int cmd, unsigned long arg) in do_usbdevfs_control() argument
1602 return sys_ioctl(fd, USBDEVFS_CONTROL, (unsigned long)p); in do_usbdevfs_control()
1615 static int do_usbdevfs_bulk(unsigned int fd, unsigned int cmd, unsigned long arg) in do_usbdevfs_bulk() argument
1630 return sys_ioctl(fd, USBDEVFS_BULK, (unsigned long)p); in do_usbdevfs_bulk()
1646 static int do_usbdevfs_discsignal(unsigned int fd, unsigned int cmd, unsigned long arg) in do_usbdevfs_discsignal() argument
1664 err = sys_ioctl(fd, USBDEVFS_DISCSIGNAL, (unsigned long) &kdis); in do_usbdevfs_discsignal()
1698 static int do_i2c_rdwr_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg) in do_i2c_rdwr_ioctl() argument
1731 return sys_ioctl(fd, cmd, (unsigned long)tdata); in do_i2c_rdwr_ioctl()
1734 static int do_i2c_smbus_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg) in do_i2c_smbus_ioctl() argument
1758 return sys_ioctl(fd, cmd, (unsigned long)tdata); in do_i2c_smbus_ioctl()
1765 static int old_bridge_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg) in old_bridge_ioctl() argument
1781 static int rtc_ioctl(unsigned fd, unsigned cmd, unsigned long arg) in rtc_ioctl() argument
1792 ret = sys_ioctl(fd, (cmd == RTC_IRQP_READ32) ? in rtc_ioctl()
1801 return sys_ioctl(fd, RTC_IRQP_SET, arg); in rtc_ioctl()
1803 return sys_ioctl(fd, RTC_EPOCH_SET, arg); in rtc_ioctl()
1811 lp_timeout_trans(unsigned int fd, unsigned int cmd, unsigned long arg) in lp_timeout_trans() argument
1821 return sys_ioctl(fd, cmd, (unsigned long)tn); in lp_timeout_trans()
2751 static void compat_ioctl_error(struct file *filp, unsigned int fd, in compat_ioctl_error() argument
2772 (int)fd, (unsigned int)cmd, buf, in compat_ioctl_error()
2780 asmlinkage long compat_sys_ioctl(unsigned int fd, unsigned int cmd, in compat_sys_ioctl() argument
2788 filp = fget_light(fd, &fput_needed); in compat_sys_ioctl()
2838 error = siocdevprivate_ioctl(fd, cmd, arg); in compat_sys_ioctl()
2845 compat_ioctl_error(filp, fd, cmd, arg); in compat_sys_ioctl()
2854 error = t->handler(fd, cmd, arg, filp); in compat_sys_ioctl()
2860 error = do_vfs_ioctl(filp, fd, cmd, arg); in compat_sys_ioctl()