/drivers/clk/ |
H A D | clk-fractional-divider.c | 23 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/usb/gadget/ |
H A D | functions.c | 13 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/staging/lustre/lustre/include/lustre/ |
H A D | libiam.h | 81 * Return file id (fd) if success, else -1. 88 int iam_close(int fd); 93 int iam_insert(int fd, struct iam_uapi_info *ua, 100 int iam_lookup(int fd, struct iam_uapi_info *ua, 109 int iam_delete(int fd, struct iam_uapi_info *ua, 116 int iam_it_start(int fd, struct iam_uapi_info *ua, 125 int iam_it_next(int fd, struct iam_uapi_info *ua, 134 int iam_it_stop(int fd, struct iam_uapi_info *ua,
|
/drivers/media/platform/exynos4-is/ |
H A D | fimc-is-param.c | 142 __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/wimax/i2400m/ |
H A D | debugfs.c | 244 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...] |
/drivers/staging/lustre/lustre/mdc/ |
H A D | lproc_mdc.c | 94 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/vfio/pci/ |
H A D | vfio_pci_intrs.c | 132 void *data, struct virqfd **pvirqfd, int fd) 134 struct fd irqfd; 153 irqfd = fdget(fd); 385 static int vfio_intx_set_signal(struct vfio_pci_device *vdev, int fd) argument 400 if (fd < 0) /* Disable only */ 408 trigger = eventfd_ctx_fdget(fd); 520 int vector, int fd, bool msix) 538 if (fd < 0) 546 trigger = eventfd_ctx_fdget(fd); 588 int fd local 129 virqfd_enable(struct vfio_pci_device *vdev, int (*handler)(struct vfio_pci_device *, void *), void (*thread)(struct vfio_pci_device *, void *), void *data, struct virqfd **pvirqfd, int fd) argument 519 vfio_msi_set_vector_signal(struct vfio_pci_device *vdev, int vector, int fd, bool msix) argument 640 int32_t fd = *(int32_t *)data; local 685 int32_t fd = *(int32_t *)data; local 770 int32_t fd = *(int32_t *)data; local [all...] |
/drivers/video/console/ |
H A D | fbcon.h | 154 #define REFCOUNT(fd) (((int *)(fd))[-1]) 155 #define FNTSIZE(fd) (((int *)(fd))[-2]) 156 #define FNTCHARCNT(fd) (((int *)(fd))[-3]) 157 #define FNTSUM(fd) (((int *)(fd))[-4])
|
/drivers/staging/iio/Documentation/ |
H A D | iio_event_monitor.c | 201 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/net/ethernet/toshiba/ |
H A D | tc35815.c | 363 struct FDesc fd; member in struct:TxFD 369 struct FDesc fd; member in struct:RxFD 374 struct FDesc fd; member in struct:FrFD 943 lp->rfd_base[i].fd.FDCtl = cpu_to_le32(FD_CownsFD); 951 lp->tfd_base[i].fd.FDNext = cpu_to_le32(fd_virt_to_bus(lp, &lp->tfd_base[i+1])); 952 lp->tfd_base[i].fd.FDSystem = cpu_to_le32(0xffffffff); 953 lp->tfd_base[i].fd.FDCtl = cpu_to_le32(0); 955 lp->tfd_base[TX_FD_NUM-1].fd.FDNext = cpu_to_le32(fd_virt_to_bus(lp, &lp->tfd_base[0])); 961 lp->fbl_ptr->fd.FDNext = cpu_to_le32(fd_virt_to_bus(lp, lp->fbl_ptr)); 962 lp->fbl_ptr->fd 1080 dump_txfd(struct TxFD *fd) argument 1095 dump_rxfd(struct RxFD *fd) argument 1118 dump_frfd(struct FrFD *fd) argument [all...] |
/drivers/net/ethernet/ibm/emac/ |
H A D | phy.h | 36 int (*setup_forced) (struct mii_phy * phy, int speed, int fd);
|
/drivers/staging/android/uapi/ |
H A D | ion.h | 95 * 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/gpu/drm/vmwgfx/ |
H A D | vmwgfx_prime.c | 122 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/staging/android/ |
H A D | sw_sync.c | 167 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);
|
H A D | sync.h | 274 * sync_fence_fdget() - get a fence from an fd 275 * @fd: fd referencing a fence 277 * Ensures @fd references a valid fence, increments the refcount of the backing 280 struct sync_fence *sync_fence_fdget(int fd); 294 * @fd: file descriptor in which to install the fence 296 * Installs @fence into @fd. @fd's should be acquired through 299 void sync_fence_install(struct sync_fence *fence, int fd);
|
H A D | sync.c | 214 struct sync_fence *sync_fence_fdget(int fd) argument 216 struct file *file = fget(fd); 238 void sync_fence_install(struct sync_fence *fence, int fd) argument 240 fd_install(fd, fence->file); 572 int fd = get_unused_fd_flags(O_CLOEXEC); local 577 if (fd < 0) 578 return fd; 598 data.fence = fd; 604 sync_fence_install(fence3, fd); 615 put_unused_fd(fd); [all...] |
/drivers/staging/lustre/lustre/llite/ |
H A D | file.c | 65 struct ll_file_data *fd; local 67 OBD_SLAB_ALLOC_PTR_GFP(fd, ll_file_data_slab, GFP_NOFS); 68 if (fd == NULL) 70 fd->fd_write_failed = false; 71 return fd; 74 static void ll_file_data_put(struct ll_file_data *fd) argument 76 if (fd != NULL) 77 OBD_SLAB_FREE_PTR(fd, ll_file_data_slab); 267 struct ll_file_data *fd = LUSTRE_FPRIVATE(file); local 272 if (unlikely(fd 344 struct ll_file_data *fd; local 355 struct ll_file_data *fd = LUSTRE_FPRIVATE(file); local 501 ll_local_open(struct file *file, struct lookup_intent *it, struct ll_file_data *fd, struct obd_client_handle *och) argument 550 struct ll_file_data *fd; local 774 struct ll_file_data *fd = LUSTRE_FPRIVATE(file); local 1121 struct ll_file_data *fd = LUSTRE_FPRIVATE(file); local 1562 struct ll_file_data *fd = LUSTRE_FPRIVATE(file); local 1603 struct ll_file_data *fd = LUSTRE_FPRIVATE(file); local 2208 struct ll_file_data *fd = LUSTRE_FPRIVATE(file); local 2552 struct ll_file_data *fd = LUSTRE_FPRIVATE(file); local 2669 struct ll_file_data *fd = LUSTRE_FPRIVATE(file); local [all...] |
/drivers/usb/gadget/legacy/ |
H A D | inode.c | 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) argument 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) argument 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) argument 458 struct ep_data *data = fd->private_data; 477 static long ep_ioctl(struct file *fd, unsigne argument 771 ep_config(struct file *fd, const char __user *buf, size_t len, loff_t *ptr) argument 879 ep_open(struct inode *inode, struct file *fd) argument 983 ep0_read(struct file *fd, char __user *buf, size_t len, loff_t *ptr) argument 1183 ep0_write(struct file *fd, const char __user *buf, size_t len, loff_t *ptr) argument 1240 ep0_fasync(int f, struct file *fd, int on) argument 1251 dev_release(struct inode *inode, struct file *fd) argument 1277 ep0_poll(struct file *fd, poll_table *wait) argument 1305 dev_ioctl(struct file *fd, unsigned code, unsigned long value) argument 1845 dev_config(struct file *fd, const char __user *buf, size_t len, loff_t *ptr) argument 1940 dev_open(struct inode *inode, struct file *fd) argument [all...] |
H A D | printer.c | 364 printer_open(struct inode *inode, struct file *fd) argument 377 fd->private_data = dev; 391 printer_close(struct inode *inode, struct file *fd) argument 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) argument 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) argument 585 struct printer_dev *dev = fd 693 printer_fsync(struct file *fd, loff_t start, loff_t end, int datasync) argument 716 printer_poll(struct file *fd, poll_table *wait) argument 745 printer_ioctl(struct file *fd, unsigned int code, unsigned long arg) argument [all...] |
/drivers/staging/unisys/include/ |
H A D | timskmod.h | 136 #define FDLOOKSVALID(fd) \ 137 ((fd != NULL) && \ 138 ((fd)->sig1 == sizeof(PRIVATEFILEDATA)) && \ 139 ((fd)->sig2 == fd))
|
/drivers/scsi/arm/ |
H A D | acornscsi-io.S | 44 LOADREGS(fd, sp!, {r4 - r7, pc}) 72 LOADREGS(fd, sp!, {r4 - r7, pc}) 104 LOADREGS(fd, sp!, {r4 - r6, pc}) 137 LOADREGS(fd, sp!, {r4 - r6, pc})
|
/drivers/staging/android/ion/ |
H A D | ion.h | 186 * ion_share_dma_buf_fd() - given an ion client, create a dma-buf fd 193 * ion_import_dma_buf() - given an dma-buf fd from the ion exporter get handle 195 * @fd: the dma-buf fd 197 * Given an dma-buf fd that was allocated through ion via ion_share_dma_buf, 198 * import that fd and return a handle representing it. If a dma-buf from 201 struct ion_handle *ion_import_dma_buf(struct ion_client *client, int 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/media/i2c/m5mols/ |
H A D | m5mols_core.c | 603 struct v4l2_mbus_frame_desc *fd) 607 if (pad != 0 || fd == NULL) 615 fd->entry[0].length = info->cap.buf_size; 616 fd->entry[0].pixelcode = info->ffmt[M5MOLS_RESTYPE_CAPTURE].code; 619 fd->entry[0].flags = V4L2_MBUS_FRAME_DESC_FL_LEN_MAX; 620 fd->num_entries = 1; 626 struct v4l2_mbus_frame_desc *fd) 631 if (pad != 0 || fd == NULL) 634 fd->entry[0].flags = V4L2_MBUS_FRAME_DESC_FL_LEN_MAX; 635 fd 602 m5mols_get_frame_desc(struct v4l2_subdev *sd, unsigned int pad, struct v4l2_mbus_frame_desc *fd) argument 625 m5mols_set_frame_desc(struct v4l2_subdev *sd, unsigned int pad, struct v4l2_mbus_frame_desc *fd) argument [all...] |
/drivers/dma-buf/ |
H A D | dma-buf.c | 349 * @dmabuf: [in] pointer to dma_buf for which fd is required. 350 * @flags: [in] flags to give to fd 352 * On success, returns an associated 'fd'. Else, returns error. 356 int fd; local 361 fd = get_unused_fd_flags(flags); 362 if (fd < 0) 363 return fd; 365 fd_install(fd, dmabuf->file); 367 return fd; 372 * dma_buf_get - returns the dma_buf structure related to an fd 379 dma_buf_get(int fd) argument [all...] |