/drivers/net/wimax/i2400m/ |
H A D | debugfs.c | 243 struct dentry *fd; local 262 fd = debugfs_create_size_t("tx_in", 0400, dentry, 264 result = PTR_ERR(fd); 265 if (IS_ERR(fd) && result != -ENODEV) { 271 fd = debugfs_create_size_t("tx_out", 0400, dentry, 273 result = PTR_ERR(fd); 274 if (IS_ERR(fd) && result != -ENODEV) { 280 fd = debugfs_create_u32("state", 0600, dentry, 282 result = PTR_ERR(fd); 283 if (IS_ERR(fd) [all...] |
H A D | usb.c | 398 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/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/staging/mei/ |
H A D | mei-amt-version.c | 98 int fd; member in struct:mei 103 if (cl->fd != -1) 104 close(cl->fd); 105 cl->fd = -1; 122 me->fd = open("/dev/mei", O_RDWR); 123 if (me->fd == -1) { 132 result = ioctl(me->fd, IOCTL_MEI_CONNECT_CLIENT, &data); 163 rc = read(me->fd, buffer, len); 187 written = write(me->fd, buffer, len); 196 FD_SET(me->fd, [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 | 179 int fd, event_fd; local 203 fd = open(chrdev_name, 0); 204 if (fd == -1) { 210 ret = ioctl(fd, IIO_GET_EVENT_FD_IOCTL, &event_fd); 212 close(fd); 215 fprintf(stdout, "Failed to retrieve event fd\n");
|
/drivers/net/ethernet/toshiba/ |
H A D | tc35815.c | 364 struct FDesc fd; member in struct:TxFD 370 struct FDesc fd; member in struct:RxFD 375 struct FDesc fd; member in struct:FrFD 947 lp->rfd_base[i].fd.FDCtl = cpu_to_le32(FD_CownsFD); 955 lp->tfd_base[i].fd.FDNext = cpu_to_le32(fd_virt_to_bus(lp, &lp->tfd_base[i+1])); 956 lp->tfd_base[i].fd.FDSystem = cpu_to_le32(0xffffffff); 957 lp->tfd_base[i].fd.FDCtl = cpu_to_le32(0); 959 lp->tfd_base[TX_FD_NUM-1].fd.FDNext = cpu_to_le32(fd_virt_to_bus(lp, &lp->tfd_base[0])); 965 lp->fbl_ptr->fd.FDNext = cpu_to_le32(fd_virt_to_bus(lp, lp->fbl_ptr)); 966 lp->fbl_ptr->fd 1084 dump_txfd(struct TxFD *fd) argument 1099 dump_rxfd(struct RxFD *fd) argument 1122 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/base/ |
H A D | dma-buf.c | 130 * @dmabuf: [in] pointer to dma_buf for which fd is required. 131 * @flags: [in] flags to give to fd 133 * On success, returns an associated 'fd'. Else, returns error. 137 int error, fd; local 145 fd = error; 147 fd_install(fd, dmabuf->file); 149 return fd; 154 * dma_buf_get - returns the dma_buf structure related to an fd 155 * @fd: [in] fd associate 161 dma_buf_get(int fd) argument [all...] |
H A D | sw_sync.c | 166 int fd = get_unused_fd(); local 172 if (fd < 0) 173 return fd; 194 data.fence = fd; 201 sync_fence_install(fence, fd); 206 put_unused_fd(fd);
|
H A D | sync.c | 391 struct sync_fence *sync_fence_fdget(int fd) argument 393 struct file *file = fget(fd); 415 void sync_fence_install(struct sync_fence *fence, int fd) argument 417 fd_install(fd, fence->file); 649 int fd = get_unused_fd(); local 654 if (fd < 0) 655 return fd; 675 data.fence = fd; 681 sync_fence_install(fence3, fd); 692 put_unused_fd(fd); [all...] |
/drivers/usb/gadget/ |
H A D | inode.c | 94 /* 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) 459 ep_release (struct inode *inode, struct file *fd) argument 461 struct ep_data *data = fd->private_data; 480 static long ep_ioctl(struct file *fd, unsigne argument 757 ep_config(struct file *fd, const char __user *buf, size_t len, loff_t *ptr) argument 867 ep_open(struct inode *inode, struct file *fd) argument 973 ep0_read(struct file *fd, char __user *buf, size_t len, loff_t *ptr) argument 1173 ep0_write(struct file *fd, const char __user *buf, size_t len, loff_t *ptr) argument 1230 ep0_fasync(int f, struct file *fd, int on) argument 1241 dev_release(struct inode *inode, struct file *fd) argument 1266 ep0_poll(struct file *fd, poll_table *wait) argument 1294 dev_ioctl(struct file *fd, unsigned code, unsigned long value) argument 1841 dev_config(struct file *fd, const char __user *buf, size_t len, loff_t *ptr) argument 1931 dev_open(struct inode *inode, struct file *fd) argument [all...] |
H A D | printer.c | 463 printer_open(struct inode *inode, struct file *fd) argument 476 fd->private_data = dev; 490 printer_close(struct inode *inode, struct file *fd) argument 492 struct printer_dev *dev = fd->private_data; 497 fd->private_data = NULL; 541 printer_read(struct file *fd, char __user *buf, size_t len, loff_t *ptr) argument 543 struct printer_dev *dev = fd->private_data; 593 if (fd->f_flags & (O_NONBLOCK|O_NDELAY)) { 677 printer_write(struct file *fd, const char __user *buf, size_t len, loff_t *ptr) argument 679 struct printer_dev *dev = fd 787 printer_fsync(struct file *fd, loff_t start, loff_t end, int datasync) argument 810 printer_poll(struct file *fd, poll_table *wait) argument 839 printer_ioctl(struct file *fd, unsigned int code, unsigned long arg) argument [all...] |
/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/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/staging/ste_rmi4/ |
H A D | synaptics_i2c_rmi4.c | 516 * @fd: pointer to synaptics_rmi4_fn_desc structure 523 struct synaptics_rmi4_fn_desc *fd, 541 rfi->fn_desc.query_base_addr = fd->query_base_addr; 542 rfi->fn_desc.data_base_addr = fd->data_base_addr; 543 rfi->fn_desc.intr_src_count = fd->intr_src_count; 544 rfi->fn_desc.fn_number = fd->fn_number; 545 rfi->fn_number = fd->fn_number; 546 rfi->num_of_data_sources = fd->intr_src_count; 547 rfi->fn_desc.ctrl_base_addr = fd->ctrl_base_addr; 548 rfi->fn_desc.cmd_base_addr = fd 521 synpatics_rmi4_touchpad_detect(struct synaptics_rmi4_data *pdata, struct synaptics_rmi4_fn *rfi, struct synaptics_rmi4_fn_desc *fd, unsigned int interruptcount) argument [all...] |
/drivers/vhost/ |
H A D | net.c | 608 static struct socket *get_raw_socket(int fd) argument 615 struct socket *sock = sockfd_lookup(fd, &r); 641 static struct socket *get_tap_socket(int fd) argument 643 struct file *file = fget(fd); 657 static struct socket *get_socket(int fd) argument 662 if (fd == -1) 664 sock = get_raw_socket(fd); 667 sock = get_tap_socket(fd); 673 static long vhost_net_set_backend(struct vhost_net *n, unsigned index, int fd) argument 697 sock = get_socket(fd); [all...] |
/drivers/staging/crystalhd/ |
H A D | crystalhd_lnx.c | 264 static long chd_dec_ioctl(struct file *fd, unsigned int cmd, unsigned long ua) argument 271 if (!adp || !fd) { 276 uc = fd->private_data; 295 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 335 uc = fd->private_data;
|
/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...] |
/drivers/gpu/ion/ |
H A D | ion.c | 260 * The taskcomm and pid can provide a debug hint as to where this fd 959 int fd; local 976 fd = dma_buf_fd(dmabuf, O_CLOEXEC); 977 if (fd < 0) 980 return fd; 984 struct ion_handle *ion_import_dma_buf(struct ion_client *client, int fd) argument 990 dmabuf = dma_buf_get(fd); 1021 static int ion_sync_for_device(struct ion_client *client, int fd) argument 1026 dmabuf = dma_buf_get(fd); 1090 data.fd [all...] |
/drivers/staging/iio/ |
H A D | industrialio-event.c | 149 int fd; local 160 fd = anon_inode_getfd("iio:event", 162 if (fd < 0) { 167 return fd;
|
/drivers/gpu/drm/ |
H A D | drm_prime.c | 54 * then it will get a fd->handle request for a GEM object that it created. 180 args->handle, flags, &args->fd); 195 args->fd, &args->handle);
|
/drivers/infiniband/hw/qib/ |
H A D | qib_file_ops.c | 1529 struct qib_filedata *fd = fp->private_data; local 1530 const struct qib_ctxtdata *rcd = fd->rcd; 1535 fd->pq = qib_user_sdma_queue_create(&dd->pcidev->dev, 1538 fd->subctxt); 1539 if (!fd->pq) 1558 fd->rec_cpu_num = cpu; 1720 struct qib_filedata *fd; local 1729 fd = fp->private_data; 1731 rcd = fd->rcd; 1743 if (fd 1814 struct qib_filedata *fd; local [all...] |
/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/staging/android/ |
H A D | binder.c | 372 int fd, error; local 385 fd = find_next_zero_bit(fdt->open_fds, fdt->max_fds, files->next_fd); 396 if (fd >= rlim_cur) 399 /* Do we need to expand the fd array or fd set? */ 400 error = expand_files(files, fd); 413 __set_open_fd(fd, fdt); 415 __set_close_on_exec(fd, fdt); 417 __clear_close_on_exec(fd, fdt); 418 files->next_fd = fd 436 task_fd_install( struct binder_proc *proc, unsigned int fd, struct file *file) argument 455 __put_unused_fd(struct files_struct *files, unsigned int fd) argument 466 task_close_fd(struct binder_proc *proc, unsigned int fd) argument [all...] |