Searched defs:fd (Results 1 - 25 of 90) sorted by relevance

1234

/drivers/usb/gadget/
H A Dfunctions.c13 struct usb_function_driver *fd; local
18 list_for_each_entry(fd, &func_list, list) {
20 if (strcmp(name, fd->name))
23 if (!try_module_get(fd->mod)) {
27 fi = fd->alloc_inst();
29 module_put(fd->mod);
31 fi->fd = fd;
60 f = fi->fd->alloc_func(fi);
75 mod = fi->fd
92 struct usb_function_driver *fd; local
110 usb_function_unregister(struct usb_function_driver *fd) argument
[all...]
/drivers/misc/eeprom/
H A Dsunxi_sid.c62 static ssize_t sid_read(struct file *fd, struct kobject *kobj, argument
/drivers/soc/tegra/fuse/
H A Dfuse-tegra.c55 static ssize_t fuse_read(struct file *fd, struct kobject *kobj, argument
/drivers/staging/iio/Documentation/
H A Diio_event_monitor.c201 int fd, event_fd; local
225 fd = open(chrdev_name, 0);
226 if (fd == -1) {
232 ret = ioctl(fd, IIO_GET_EVENT_FD_IOCTL, &event_fd);
234 close(fd);
237 fprintf(stdout, "Failed to retrieve event fd\n");
/drivers/clk/
H A Dclk-fractional-divider.c23 struct clk_fractional_divider *fd = to_clk_fd(hw); local
28 if (fd->lock)
29 spin_lock_irqsave(fd->lock, flags);
31 val = clk_readl(fd->reg);
33 if (fd->lock)
34 spin_unlock_irqrestore(fd->lock, flags);
36 m = (val & fd->mmask) >> fd->mshift;
37 n = (val & fd->nmask) >> fd
48 struct clk_fractional_divider *fd = to_clk_fd(hw); local
68 struct clk_fractional_divider *fd = to_clk_fd(hw); local
104 struct clk_fractional_divider *fd; local
[all...]
/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_prime.c122 int fd, u32 *handle)
126 return ttm_prime_fd_to_handle(tfile, fd, handle);
120 vmw_prime_fd_to_handle(struct drm_device *dev, struct drm_file *file_priv, int fd, u32 *handle) argument
/drivers/lguest/
H A Dlguest_user.c90 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 Ddebugfs.c244 struct dentry *fd; local
263 fd = debugfs_create_size_t("tx_in", 0400, dentry,
265 result = PTR_ERR(fd);
266 if (IS_ERR(fd) && result != -ENODEV) {
272 fd = debugfs_create_size_t("tx_out", 0400, dentry,
274 result = PTR_ERR(fd);
275 if (IS_ERR(fd) && result != -ENODEV) {
281 fd = debugfs_create_u32("state", 0600, dentry,
283 result = PTR_ERR(fd);
284 if (IS_ERR(fd)
[all...]
H A Dusb.c398 struct dentry *fd; local
415 fd = debugfs_create_u8("rx_size_auto_shrink", 0600, dentry,
417 result = PTR_ERR(fd);
418 if (IS_ERR(fd) && result != -ENODEV) {
424 fd = debugfs_create_size_t("rx_size", 0600, dentry,
426 result = PTR_ERR(fd);
427 if (IS_ERR(fd) && result != -ENODEV) {
/drivers/pps/
H A Dpps.c61 static int pps_cdev_fasync(int fd, struct file *file, int on) argument
64 return fasync_helper(fd, file, on, &pps->async_queue);
/drivers/staging/android/uapi/
H A Dion.h95 * struct ion_fd_data - metadata passed to/from userspace for a handle/fd pair
97 * @fd: a file descriptor representing that handle
101 * descriptor to share or map in the fd field. For ION_IOC_IMPORT, userspace
106 int fd; member in struct:ion_fd_data
152 * opaque handle. Returns the struct with the fd field set to a file
162 * opaque handle. Returns the struct with the fd field set to a file
172 * Takes an ion_fd_data struct with the fd field populated with a valid file
/drivers/staging/lustre/lustre/mdc/
H A Dlproc_mdc.c94 int fd, rc; local
96 rc = lprocfs_write_helper(buffer, count, &fd);
100 if (fd < 0)
102 CWARN("message to fd %d\n", fd);
131 /* This works for either broadcast or unicast to a single fd */
132 if (fd == 0) {
135 struct file *fp = fget(fd);
/drivers/hid/
H A Dhidraw.c319 static int hidraw_fasync(int fd, struct file *file, int on) argument
323 return fasync_helper(fd, file, on, &list->fasync);
/drivers/input/misc/
H A Dhp_sdc_rtc.c76 static int hp_sdc_rtc_fasync (int fd, struct file *filp, int on);
426 static int hp_sdc_rtc_fasync (int fd, struct file *filp, int on) argument
428 return fasync_helper (fd, filp, on, &hp_sdc_rtc_async_queue);
/drivers/input/serio/
H A Dserio_raw.c58 static int serio_raw_fasync(int fd, struct file *file, int on) argument
62 return fasync_helper(fd, file, on, &client->fasync);
/drivers/media/platform/exynos4-is/
H A Dfimc-is-param.c142 __hw_param_copy(&par->fd.control, &cfg->fd.control);
146 __hw_param_copy(&par->fd.otf_input, &cfg->fd.otf_input);
150 __hw_param_copy(&par->fd.dma_input, &cfg->fd.dma_input);
154 __hw_param_copy(&par->fd.config, &cfg->fd.config);
224 struct fd_param *fd; local
228 fd
475 struct fd_param *fd; local
490 struct fd_param *fd; local
510 struct fd_param *fd; local
530 struct fd_param *fd; local
550 struct fd_param *fd; local
570 struct fd_param *fd; local
590 struct fd_param *fd; local
610 struct fd_param *fd; local
630 struct fd_param *fd; local
650 struct fd_param *fd; local
672 struct fd_param *fd; local
[all...]
/drivers/net/ethernet/ibm/emac/
H A Dphy.c168 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 Drtc-dev.c417 static int rtc_dev_fasync(int fd, struct file *file, int on) argument
420 return fasync_helper(fd, file, on, &rtc->async_queue);
/drivers/staging/android/ion/
H A Dion_test.c167 int fd = arg; local
169 if (fd >= 0) {
/drivers/staging/android/
H A Dsw_sync.c167 int fd = get_unused_fd_flags(O_CLOEXEC); local
173 if (fd < 0)
174 return fd;
195 data.fence = fd;
202 sync_fence_install(fence, fd);
207 put_unused_fd(fd);
/drivers/staging/lustre/lustre/llite/
H A Dllite_mmap.c150 struct ll_file_data *fd = LUSTRE_FPRIVATE(file); local
157 cio->cui_fd = fd;
/drivers/gpu/drm/ttm/
H A Dttm_object.c609 * ttm_prime_fd_to_handle - Get a base object handle from a prime fd
612 * @fd: The prime / dmabuf fd.
620 int fd, u32 *handle)
628 dma_buf = dma_buf_get(fd);
647 * ttm_prime_handle_to_fd - Return a dma_buf fd from a ttm prime object
619 ttm_prime_fd_to_handle(struct ttm_object_file *tfile, int fd, u32 *handle) argument
/drivers/hid/usbhid/
H A Dhiddev.c226 static int hiddev_fasync(int fd, struct file *file, int on) argument
230 return fasync_helper(fd, file, on, &list->fasync);
/drivers/iio/
H A Dindustrialio-event.c172 int fd; local
182 fd = anon_inode_getfd("iio:event", &iio_event_chrdev_fileops,
184 if (fd < 0) {
191 return fd;
/drivers/misc/genwqe/
H A Dcard_dev.c333 * @fd: file descriptor
346 static int genwqe_fasync(int fd, struct file *filp, int mode) argument
350 return fasync_helper(fd, filp, mode, &cdev->async_queue);

Completed in 1729 milliseconds

1234