/drivers/base/ |
H A D | dma-buf.c | 109 * @dmabuf: [in] pointer to dma_buf for which fd is required. 111 * On success, returns an associated 'fd'. Else, returns error. 115 int error, fd; local 123 fd = error; 125 fd_install(fd, dmabuf->file); 127 return fd; 132 * dma_buf_get - returns the dma_buf structure related to an fd 133 * @fd: [in] fd associated with the dma_buf to be returned 135 * On success, returns the dma_buf structure associated with an fd; use 139 dma_buf_get(int fd) argument [all...] |
/drivers/staging/usbip/userspace/src/ |
H A D | usbip_attach.c | 49 int fd; local 60 fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, S_IRWXU); 61 if (fd < 0) 67 ret = write(fd, buff, strlen(buff)); 69 close(fd); 73 close(fd);
|
/drivers/lguest/ |
H A D | lguest_user.c | 90 static int add_eventfd(struct lguest *lg, unsigned long addr, int fd) argument 116 new->map[new->num].event = eventfd_ctx_fdget(fd); 155 unsigned long addr, fd; local 161 if (get_user(fd, input) != 0) 170 err = add_eventfd(lg, addr, fd);
|
/drivers/net/wimax/i2400m/ |
H A D | debugfs.c | 254 struct dentry *fd; local 273 fd = debugfs_create_size_t("tx_in", 0400, dentry, 275 result = PTR_ERR(fd); 276 if (IS_ERR(fd) && result != -ENODEV) { 282 fd = debugfs_create_size_t("tx_out", 0400, dentry, 284 result = PTR_ERR(fd); 285 if (IS_ERR(fd) && result != -ENODEV) { 291 fd = debugfs_create_u32("state", 0600, dentry, 293 result = PTR_ERR(fd); 294 if (IS_ERR(fd) [all...] |
H A D | usb.c | 380 struct dentry *fd; local 397 fd = debugfs_create_u8("rx_size_auto_shrink", 0600, dentry, 399 result = PTR_ERR(fd); 400 if (IS_ERR(fd) && result != -ENODEV) { 406 fd = debugfs_create_size_t("rx_size", 0600, dentry, 408 result = PTR_ERR(fd); 409 if (IS_ERR(fd) && result != -ENODEV) {
|
/drivers/pps/ |
H A D | pps.c | 61 static int pps_cdev_fasync(int fd, struct file *file, int on) argument 64 return fasync_helper(fd, file, on, &pps->async_queue);
|
/drivers/gpu/drm/ |
H A D | drm_fops.c | 275 /* if there is no current master make this fd it */ 353 int drm_fasync(int fd, struct file *filp, int on) argument 358 DRM_DEBUG("fd = %d, device = 0x%lx\n", fd, 360 return fasync_helper(fd, filp, on, &dev->buf_async);
|
/drivers/input/serio/ |
H A D | serio_raw.c | 59 static int serio_raw_fasync(int fd, struct file *file, int on) argument 63 return fasync_helper(fd, file, on, &client->fasync);
|
/drivers/net/ethernet/ibm/emac/ |
H A D | phy.c | 168 static int genmii_setup_forced(struct mii_phy *phy, int speed, int fd) argument 174 phy->duplex = fd; 198 if (fd == DUPLEX_FULL)
|
/drivers/rtc/ |
H A D | rtc-dev.c | 434 static int rtc_dev_fasync(int fd, struct file *file, int on) argument 437 return fasync_helper(fd, file, on, &rtc->async_queue);
|
/drivers/xen/ |
H A D | evtchn.c | 439 static int evtchn_fasync(int fd, struct file *filp, int on) argument 442 return fasync_helper(fd, filp, on, &u->evtchn_async_queue);
|
/drivers/hid/usbhid/ |
H A D | hiddev.c | 225 static int hiddev_fasync(int fd, struct file *file, int on) argument 229 return fasync_helper(fd, file, on, &list->fasync);
|
/drivers/input/misc/ |
H A D | hp_sdc_rtc.c | 75 static int hp_sdc_rtc_fasync (int fd, struct file *filp, int on); 416 static int hp_sdc_rtc_fasync (int fd, struct file *filp, int on) argument 418 return fasync_helper (fd, filp, on, &hp_sdc_rtc_async_queue);
|
/drivers/media/video/s5p-fimc/ |
H A D | fimc-mdevice.c | 251 struct fimc_dev *fd = NULL; local 258 for (i = 0; !fd && i < ARRAY_SIZE(fmd->fimc); i++) 260 fd = fmd->fimc[i]; 261 if (!fd) 263 ret = pm_runtime_get_sync(&fd->pdev->dev); 282 pm_runtime_put(&fd->pdev->dev);
|
/drivers/staging/crystalhd/ |
H A D | crystalhd_lnx.c | 263 static long chd_dec_ioctl(struct file *fd, unsigned int cmd, unsigned long ua) argument 270 if (!adp || !fd) { 275 uc = fd->private_data; 294 static int chd_dec_open(struct inode *in, struct file *fd) argument 320 fd->private_data = uc; 325 static int chd_dec_close(struct inode *in, struct file *fd) argument 336 uc = fd->private_data;
|
/drivers/target/ |
H A D | target_core_file.c | 277 struct file *fd = dev->fd_file; local 298 ret = vfs_readv(fd, &iov[0], task->task_sg_nents, &pos); 307 if (S_ISBLK(fd->f_dentry->d_inode->i_mode)) { 330 struct file *fd = dev->fd_file; local 351 ret = vfs_writev(fd, &iov[0], task->task_sg_nents, &pos);
|
/drivers/tty/vt/ |
H A D | vc_screen.c | 589 vcs_fasync(int fd, struct file *file, int on) argument 602 return fasync_helper(fd, file, on, &poll->fasync);
|
/drivers/usb/gadget/ |
H A D | f_hid.c | 266 static int f_hidg_release(struct inode *inode, struct file *fd) argument 268 fd->private_data = NULL; 272 static int f_hidg_open(struct inode *inode, struct file *fd) argument 277 fd->private_data = hidg;
|
/drivers/usb/misc/ |
H A D | yurex.c | 356 static int yurex_fasync(int fd, struct file *file, int on) argument 361 return fasync_helper(fd, file, on, &dev->async_queue);
|
/drivers/char/ipmi/ |
H A D | ipmi_devintf.c | 100 static int ipmi_fasync(int fd, struct file *file, int on) argument 106 result = fasync_helper(fd, file, on, &priv->fasync_queue);
|
/drivers/infiniband/core/ |
H A D | uverbs_main.c | 358 static int ib_uverbs_event_fasync(int fd, struct file *filp, int on) argument 362 return fasync_helper(fd, filp, on, &file->async_queue); 541 struct ib_uverbs_event_file *ib_uverbs_lookup_comp_file(int fd) argument 546 filp = fget(fd);
|
/drivers/input/ |
H A D | joydev.c | 162 static int joydev_fasync(int fd, struct file *file, int on) argument 166 return fasync_helper(fd, file, on, &client->fasync);
|
/drivers/media/video/pvrusb2/ |
H A D | pvrusb2-v4l2.c | 470 struct v4l2_fmtdesc *fd = (struct v4l2_fmtdesc *)arg; local 473 if (fd->index != 0) 476 memcpy(fd, pvr_fmtdesc, sizeof(struct v4l2_fmtdesc));
|
/drivers/message/i2o/ |
H A D | i2o_config.c | 1073 static int cfg_fasync(int fd, struct file *fp, int on) argument 1085 ret = fasync_helper(fd, fp, on, &p->fasync);
|
/drivers/net/ |
H A D | sungem_phy.c | 344 static int genmii_setup_forced(struct mii_phy *phy, int speed, int fd) argument 350 phy->duplex = fd; 370 if (fd == DUPLEX_FULL) 512 static int bcm54xx_setup_forced(struct mii_phy *phy, int speed, int fd) argument 518 phy->duplex = fd; 537 if (fd == DUPLEX_FULL) 795 static int marvell_setup_forced(struct mii_phy *phy, int speed, int fd) argument 801 phy->duplex = fd; 821 if (fd == DUPLEX_FULL) 833 ctl2 |= (fd [all...] |