Lines Matching refs:fd
364 printer_open(struct inode *inode, struct file *fd)
377 fd->private_data = dev;
391 printer_close(struct inode *inode, struct file *fd)
393 struct printer_dev *dev = fd->private_data;
398 fd->private_data = NULL;
447 printer_read(struct file *fd, char __user *buf, size_t len, loff_t *ptr)
449 struct printer_dev *dev = fd->private_data;
499 if (fd->f_flags & (O_NONBLOCK|O_NDELAY)) {
583 printer_write(struct file *fd, const char __user *buf, size_t len, loff_t *ptr)
585 struct printer_dev *dev = fd->private_data;
611 if (fd->f_flags & (O_NONBLOCK|O_NDELAY)) {
693 printer_fsync(struct file *fd, loff_t start, loff_t end, int datasync)
695 struct printer_dev *dev = fd->private_data;
696 struct inode *inode = file_inode(fd);
716 printer_poll(struct file *fd, poll_table *wait)
718 struct printer_dev *dev = fd->private_data;
728 poll_wait(fd, &dev->rx_wait, wait);
729 poll_wait(fd, &dev->tx_wait, wait);
745 printer_ioctl(struct file *fd, unsigned int code, unsigned long arg)
747 struct printer_dev *dev = fd->private_data;