/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/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/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/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 948 lp->rfd_base[i].fd.FDCtl = cpu_to_le32(FD_CownsFD); 956 lp->tfd_base[i].fd.FDNext = cpu_to_le32(fd_virt_to_bus(lp, &lp->tfd_base[i+1])); 957 lp->tfd_base[i].fd.FDSystem = cpu_to_le32(0xffffffff); 958 lp->tfd_base[i].fd.FDCtl = cpu_to_le32(0); 960 lp->tfd_base[TX_FD_NUM-1].fd.FDNext = cpu_to_le32(fd_virt_to_bus(lp, &lp->tfd_base[0])); 966 lp->fbl_ptr->fd.FDNext = cpu_to_le32(fd_virt_to_bus(lp, lp->fbl_ptr)); 967 lp->fbl_ptr->fd 1085 dump_txfd(struct TxFD *fd) argument 1100 dump_rxfd(struct RxFD *fd) argument 1123 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);
|
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/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/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 1171 ep0_write(struct file *fd, const char __user *buf, size_t len, loff_t *ptr) argument 1228 ep0_fasync(int f, struct file *fd, int on) argument 1239 dev_release(struct inode *inode, struct file *fd) argument 1264 ep0_poll(struct file *fd, poll_table *wait) argument 1292 dev_ioctl(struct file *fd, unsigned code, unsigned long value) argument 1843 dev_config(struct file *fd, const char __user *buf, size_t len, loff_t *ptr) argument 1933 dev_open(struct inode *inode, struct file *fd) argument [all...] |
H A D | printer.c | 464 printer_open(struct inode *inode, struct file *fd) argument 477 fd->private_data = dev; 491 printer_close(struct inode *inode, struct file *fd) argument 493 struct printer_dev *dev = fd->private_data; 498 fd->private_data = NULL; 542 printer_read(struct file *fd, char __user *buf, size_t len, loff_t *ptr) argument 544 struct printer_dev *dev = fd->private_data; 594 if (fd->f_flags & (O_NONBLOCK|O_NDELAY)) { 678 printer_write(struct file *fd, const char __user *buf, size_t len, loff_t *ptr) argument 680 struct printer_dev *dev = fd 788 printer_fsync(struct file *fd, loff_t start, loff_t end, int datasync) argument 811 printer_poll(struct file *fd, poll_table *wait) argument 840 printer_ioctl(struct file *fd, unsigned int code, unsigned long arg) argument [all...] |
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/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 | 603 static struct socket *get_raw_socket(int fd) argument 610 struct socket *sock = sockfd_lookup(fd, &r); 636 static struct socket *get_tap_socket(int fd) argument 638 struct file *file = fget(fd); 652 static struct socket *get_socket(int fd) argument 657 if (fd == -1) 659 sock = get_raw_socket(fd); 662 sock = get_tap_socket(fd); 668 static long vhost_net_set_backend(struct vhost_net *n, unsigned index, int fd) argument 692 sock = get_socket(fd); [all...] |
/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/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/staging/iio/ |
H A D | industrialio-core.c | 260 int fd; local 271 fd = anon_inode_getfd("iio:event", 273 if (fd < 0) { 278 return fd; 1112 int fd; local 1115 fd = iio_event_getfd(indio_dev); 1116 if (copy_to_user(ip, &fd, sizeof(fd)))
|
/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 | 370 int fd, error; local 383 fd = find_next_zero_bit(fdt->open_fds->fds_bits, fdt->max_fds, 395 if (fd >= rlim_cur) 398 /* Do we need to expand the fd array or fd set? */ 399 error = expand_files(files, fd); 412 FD_SET(fd, fdt->open_fds); 414 FD_SET(fd, fdt->close_on_exec); 416 FD_CLR(fd, fdt->close_on_exec); 417 files->next_fd = fd 435 task_fd_install( struct binder_proc *proc, unsigned int fd, struct file *file) argument 454 __put_unused_fd(struct files_struct *files, unsigned int fd) argument 465 task_close_fd(struct binder_proc *proc, unsigned int fd) argument [all...] |
/drivers/gpu/ion/ |
H A D | ion.c | 559 struct ion_handle *ion_import_fd(struct ion_client *client, int fd) argument 561 struct file *file = fget(fd); 565 pr_err("%s: imported fd not found in file table.\n", __func__); 847 have gone away but the map/share fd still to be around, take 917 int fd = get_unused_fd(); local 920 if (fd < 0) 928 fd_install(fd, file); 930 return fd; 933 put_unused_fd(fd); 984 data.fd [all...] |
/drivers/net/ethernet/sfc/ |
H A D | net_driver.h | 458 * @fd: Link is full-duplex 464 bool fd; member in struct:efx_link_state 472 return left->up == right->up && left->fd == right->fd &&
|
/drivers/infiniband/core/ |
H A D | uverbs.h | 163 struct ib_uverbs_event_file *ib_uverbs_lookup_comp_file(int fd);
|
/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);
|