[go: nahoru, domu]

Lines Matching refs:fd

95 	/* From then on, ep0 fd is in either of two basic modes:
369 ep_read (struct file *fd, char __user *buf, size_t len, loff_t *ptr)
371 struct ep_data *data = fd->private_data;
375 if ((value = get_ready_ep (fd->f_flags, data)) < 0)
414 ep_write (struct file *fd, const char __user *buf, size_t len, loff_t *ptr)
416 struct ep_data *data = fd->private_data;
420 if ((value = get_ready_ep (fd->f_flags, data)) < 0)
456 ep_release (struct inode *inode, struct file *fd)
458 struct ep_data *data = fd->private_data;
477 static long ep_ioctl(struct file *fd, unsigned code, unsigned long value)
479 struct ep_data *data = fd->private_data;
482 if ((status = get_ready_ep (fd->f_flags, data)) < 0)
759 * fd = open ("/dev/gadget/$ENDPOINT", O_RDWR)
760 * status = write (fd, descriptors, sizeof descriptors)
771 ep_config (struct file *fd, const char __user *buf, size_t len, loff_t *ptr)
773 struct ep_data *data = fd->private_data;
858 fd->f_op = &ep_io_operations;
879 ep_open (struct inode *inode, struct file *fd)
893 fd->private_data = data;
983 ep0_read (struct file *fd, char __user *buf, size_t len, loff_t *ptr)
985 struct dev_data *dev = fd->private_data;
991 /* report fd mode change before acting on it */
1029 if ((fd->f_flags & O_NONBLOCK) != 0
1111 if (fd->f_flags & O_NONBLOCK) {
1183 ep0_write (struct file *fd, const char __user *buf, size_t len, loff_t *ptr)
1185 struct dev_data *dev = fd->private_data;
1190 /* report fd mode change before acting on it */
1240 ep0_fasync (int f, struct file *fd, int on)
1242 struct dev_data *dev = fd->private_data;
1245 return fasync_helper (f, fd, on, &dev->fasync);
1251 dev_release (struct inode *inode, struct file *fd)
1253 struct dev_data *dev = fd->private_data;
1277 ep0_poll (struct file *fd, poll_table *wait)
1279 struct dev_data *dev = fd->private_data;
1282 poll_wait(fd, &dev->wait, wait);
1286 /* report fd mode change before acting on it */
1305 static long dev_ioctl (struct file *fd, unsigned code, unsigned long value)
1307 struct dev_data *dev = fd->private_data;
1809 * fd = open ("/dev/gadget/$CHIP", O_RDWR)
1810 * status = write (fd, descriptors, sizeof descriptors)
1845 dev_config (struct file *fd, const char __user *buf, size_t len, loff_t *ptr)
1847 struct dev_data *dev = fd->private_data;
1926 fd->f_op = &ep0_io_operations;
1940 dev_open (struct inode *inode, struct file *fd)
1949 fd->private_data = dev;