Home
last modified time | relevance | path

Searched refs:filp (Results 1 – 25 of 437) sorted by relevance

12345678910>>...18

/drivers/net/ethernet/amd/xgbe/
Dxgbe-debugfs.c174 static ssize_t xgmac_reg_addr_read(struct file *filp, char __user *buffer, in xgmac_reg_addr_read() argument
177 struct xgbe_prv_data *pdata = filp->private_data; in xgmac_reg_addr_read()
182 static ssize_t xgmac_reg_addr_write(struct file *filp, in xgmac_reg_addr_write() argument
186 struct xgbe_prv_data *pdata = filp->private_data; in xgmac_reg_addr_write()
192 static ssize_t xgmac_reg_value_read(struct file *filp, char __user *buffer, in xgmac_reg_value_read() argument
195 struct xgbe_prv_data *pdata = filp->private_data; in xgmac_reg_value_read()
203 static ssize_t xgmac_reg_value_write(struct file *filp, in xgmac_reg_value_write() argument
207 struct xgbe_prv_data *pdata = filp->private_data; in xgmac_reg_value_write()
234 static ssize_t xpcs_mmd_read(struct file *filp, char __user *buffer, in xpcs_mmd_read() argument
237 struct xgbe_prv_data *pdata = filp->private_data; in xpcs_mmd_read()
[all …]
/drivers/media/mc/
Dmc-devnode.c70 static ssize_t media_read(struct file *filp, char __user *buf, in media_read() argument
73 struct media_devnode *devnode = media_devnode_data(filp); in media_read()
79 return devnode->fops->read(filp, buf, sz, off); in media_read()
82 static ssize_t media_write(struct file *filp, const char __user *buf, in media_write() argument
85 struct media_devnode *devnode = media_devnode_data(filp); in media_write()
91 return devnode->fops->write(filp, buf, sz, off); in media_write()
94 static __poll_t media_poll(struct file *filp, in media_poll() argument
97 struct media_devnode *devnode = media_devnode_data(filp); in media_poll()
103 return devnode->fops->poll(filp, poll); in media_poll()
107 __media_ioctl(struct file *filp, unsigned int cmd, unsigned long arg, in __media_ioctl() argument
[all …]
/drivers/net/ethernet/marvell/octeontx2/af/
Drvu_debugfs.c140 static void print_nix_qsize(struct seq_file *filp, struct rvu_pfvf *pfvf);
210 static ssize_t rvu_dbg_rsrc_attach_status(struct file *filp, in rvu_dbg_rsrc_attach_status() argument
215 struct rvu *rvu = filp->private_data; in rvu_dbg_rsrc_attach_status()
377 static int rvu_dbg_qsize_display(struct seq_file *filp, void *unsused, in rvu_dbg_qsize_display() argument
380 void (*print_qsize)(struct seq_file *filp, in rvu_dbg_qsize_display()
387 rvu = filp->private; in rvu_dbg_qsize_display()
407 print_qsize(filp, pfvf); in rvu_dbg_qsize_display()
412 static ssize_t rvu_dbg_qsize_write(struct file *filp, in rvu_dbg_qsize_write() argument
417 struct seq_file *seqfile = filp->private_data; in rvu_dbg_qsize_write()
460 static ssize_t rvu_dbg_npa_qsize_write(struct file *filp, in rvu_dbg_npa_qsize_write() argument
[all …]
/drivers/usb/gadget/function/
Du_uac1_legacy.c211 snd->filp = filp_open(fn_cntl, O_RDWR, 0); in gaudio_open_snd_dev()
212 if (IS_ERR(snd->filp)) { in gaudio_open_snd_dev()
213 int ret = PTR_ERR(snd->filp); in gaudio_open_snd_dev()
216 snd->filp = NULL; in gaudio_open_snd_dev()
223 snd->filp = filp_open(fn_play, O_WRONLY, 0); in gaudio_open_snd_dev()
224 if (IS_ERR(snd->filp)) { in gaudio_open_snd_dev()
225 int ret = PTR_ERR(snd->filp); in gaudio_open_snd_dev()
228 snd->filp = NULL; in gaudio_open_snd_dev()
231 pcm_file = snd->filp->private_data; in gaudio_open_snd_dev()
238 snd->filp = filp_open(fn_cap, O_RDONLY, 0); in gaudio_open_snd_dev()
[all …]
Dstorage_common.c170 if (curlun->filp) { in fsg_lun_close()
172 fput(curlun->filp); in fsg_lun_close()
173 curlun->filp = NULL; in fsg_lun_close()
181 struct file *filp = NULL; in fsg_lun_open() local
193 filp = filp_open(filename, O_RDWR | O_LARGEFILE, 0); in fsg_lun_open()
194 if (PTR_ERR(filp) == -EROFS || PTR_ERR(filp) == -EACCES) in fsg_lun_open()
198 filp = filp_open(filename, O_RDONLY | O_LARGEFILE, 0); in fsg_lun_open()
199 if (IS_ERR(filp)) { in fsg_lun_open()
201 return PTR_ERR(filp); in fsg_lun_open()
204 if (!(filp->f_mode & FMODE_WRITE)) in fsg_lun_open()
[all …]
/drivers/rapidio/devices/
Drio_mport_cdev.c109 struct file *filp; member
131 struct file *filp; member
359 rio_mport_create_outbound_mapping(struct mport_dev *md, struct file *filp, in rio_mport_create_outbound_mapping() argument
382 map->filp = filp; in rio_mport_create_outbound_mapping()
393 rio_mport_get_outbound_mapping(struct mport_dev *md, struct file *filp, in rio_mport_get_outbound_mapping() argument
419 err = rio_mport_create_outbound_mapping(md, filp, rioid, raddr, in rio_mport_get_outbound_mapping()
425 static int rio_mport_obw_map(struct file *filp, void __user *arg) in rio_mport_obw_map() argument
427 struct mport_cdev_priv *priv = filp->private_data; in rio_mport_obw_map()
439 ret = rio_mport_get_outbound_mapping(data, filp, map.rioid, in rio_mport_obw_map()
459 static int rio_mport_obw_free(struct file *filp, void __user *arg) in rio_mport_obw_free() argument
[all …]
/drivers/gpu/drm/amd/amdgpu/
Damdgpu_gem.h56 int amdgpu_mode_dumb_mmap(struct drm_file *filp,
61 struct drm_file *filp);
63 struct drm_file *filp);
65 struct drm_file *filp);
67 struct drm_file *filp);
69 struct drm_file *filp);
72 struct drm_file *filp);
74 struct drm_file *filp);
77 struct drm_file *filp);
/drivers/dax/
Ddevice.c198 struct file *filp = vmf->vma->vm_file; in dev_dax_huge_fault() local
203 struct dev_dax *dev_dax = filp->private_data; in dev_dax_huge_fault()
245 page->mapping = filp->f_mapping; in dev_dax_huge_fault()
261 struct file *filp = vma->vm_file; in dev_dax_split() local
262 struct dev_dax *dev_dax = filp->private_data; in dev_dax_split()
271 struct file *filp = vma->vm_file; in dev_dax_pagesize() local
272 struct dev_dax *dev_dax = filp->private_data; in dev_dax_pagesize()
284 static int dax_mmap(struct file *filp, struct vm_area_struct *vma) in dax_mmap() argument
286 struct dev_dax *dev_dax = filp->private_data; in dax_mmap()
307 static unsigned long dax_get_unmapped_area(struct file *filp, in dax_get_unmapped_area() argument
[all …]
/drivers/s390/char/
Dtape_char.c129 tapechar_read(struct file *filp, char __user *data, size_t count, loff_t *ppos) in tapechar_read() argument
137 device = (struct tape_device *) filp->private_data; in tapechar_read()
187 tapechar_write(struct file *filp, const char __user *data, size_t count, loff_t *ppos) in tapechar_write() argument
197 device = (struct tape_device *) filp->private_data; in tapechar_write()
271 tapechar_open (struct inode *inode, struct file *filp) in tapechar_open() argument
277 imajor(file_inode(filp)), in tapechar_open()
278 iminor(file_inode(filp))); in tapechar_open()
280 if (imajor(file_inode(filp)) != tapechar_major) in tapechar_open()
283 minor = iminor(file_inode(filp)); in tapechar_open()
292 filp->private_data = device; in tapechar_open()
[all …]
/drivers/gpu/drm/
Ddrm_file.c267 drm_legacy_lock_release(dev, file->filp); in drm_file_free()
301 static void drm_close_helper(struct file *filp) in drm_close_helper() argument
303 struct drm_file *file_priv = filp->private_data; in drm_close_helper()
336 static int drm_open_helper(struct file *filp, struct drm_minor *minor) in drm_open_helper() argument
342 if (filp->f_flags & O_EXCL) in drm_open_helper()
365 filp->private_data = priv; in drm_open_helper()
366 filp->f_mode |= FMODE_UNSIGNED_OFFSET; in drm_open_helper()
367 priv->filp = filp; in drm_open_helper()
410 int drm_open(struct inode *inode, struct file *filp) in drm_open() argument
429 filp->f_mapping = dev->anon_inode->i_mapping; in drm_open()
[all …]
Ddrm_gem.c126 struct file *filp; in drm_gem_object_init() local
130 filp = shmem_file_setup("drm mm object", size, VM_NORESERVE); in drm_gem_object_init()
131 if (IS_ERR(filp)) in drm_gem_object_init()
132 return PTR_ERR(filp); in drm_gem_object_init()
134 obj->filp = filp; in drm_gem_object_init()
156 obj->filp = NULL; in drm_gem_private_object_init()
260 drm_gem_handle_delete(struct drm_file *filp, u32 handle) in drm_gem_handle_delete() argument
264 spin_lock(&filp->table_lock); in drm_gem_handle_delete()
267 obj = idr_replace(&filp->object_idr, NULL, handle); in drm_gem_handle_delete()
268 spin_unlock(&filp->table_lock); in drm_gem_handle_delete()
[all …]
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_debugfs.c13 static ssize_t ixgbe_dbg_common_ops_read(struct file *filp, char __user *buffer, in ixgbe_dbg_common_ops_read() argument
17 struct ixgbe_adapter *adapter = filp->private_data; in ixgbe_dbg_common_ops_read()
48 static ssize_t ixgbe_dbg_reg_ops_read(struct file *filp, char __user *buffer, in ixgbe_dbg_reg_ops_read() argument
51 return ixgbe_dbg_common_ops_read(filp, buffer, count, ppos, in ixgbe_dbg_reg_ops_read()
62 static ssize_t ixgbe_dbg_reg_ops_write(struct file *filp, in ixgbe_dbg_reg_ops_write() argument
66 struct ixgbe_adapter *adapter = filp->private_data; in ixgbe_dbg_reg_ops_write()
131 static ssize_t ixgbe_dbg_netdev_ops_read(struct file *filp, char __user *buffer, in ixgbe_dbg_netdev_ops_read() argument
134 return ixgbe_dbg_common_ops_read(filp, buffer, count, ppos, in ixgbe_dbg_netdev_ops_read()
145 static ssize_t ixgbe_dbg_netdev_ops_write(struct file *filp, in ixgbe_dbg_netdev_ops_write() argument
149 struct ixgbe_adapter *adapter = filp->private_data; in ixgbe_dbg_netdev_ops_write()
/drivers/gpu/drm/radeon/
Dradeon_gem.c223 struct drm_file *filp) in radeon_gem_info_ioctl() argument
241 struct drm_file *filp) in radeon_gem_pread_ioctl() argument
249 struct drm_file *filp) in radeon_gem_pwrite_ioctl() argument
257 struct drm_file *filp) in radeon_gem_create_ioctl() argument
276 r = drm_gem_handle_create(filp, gobj, &handle); in radeon_gem_create_ioctl()
290 struct drm_file *filp) in radeon_gem_userptr_ioctl() argument
360 r = drm_gem_handle_create(filp, gobj, &handle); in radeon_gem_userptr_ioctl()
381 struct drm_file *filp) in radeon_gem_set_domain_ioctl() argument
395 gobj = drm_gem_object_lookup(filp, args->handle); in radeon_gem_set_domain_ioctl()
409 int radeon_mode_dumb_mmap(struct drm_file *filp, in radeon_mode_dumb_mmap() argument
[all …]
/drivers/char/
Draw.c56 static int raw_open(struct inode *inode, struct file *filp) in raw_open() argument
63 filp->f_op = &raw_ctl_fops; in raw_open()
81 filp->f_mode | FMODE_EXCL, raw_open); in raw_open()
89 filp->f_flags |= O_DIRECT; in raw_open()
90 filp->f_mapping = bdev->bd_inode->i_mapping; in raw_open()
92 file_inode(filp)->i_mapping = in raw_open()
94 filp->private_data = bdev; in raw_open()
100 blkdev_put(bdev, filp->f_mode | FMODE_EXCL); in raw_open()
110 static int raw_release(struct inode *inode, struct file *filp) in raw_release() argument
122 blkdev_put(bdev, filp->f_mode | FMODE_EXCL); in raw_release()
[all …]
/drivers/media/pci/ivtv/
Divtv-fileops.h13 int ivtv_v4l2_open(struct file *filp);
14 ssize_t ivtv_v4l2_read(struct file *filp, char __user *buf, size_t count,
16 ssize_t ivtv_v4l2_write(struct file *filp, const char __user *buf, size_t count,
18 int ivtv_v4l2_close(struct file *filp);
19 __poll_t ivtv_v4l2_enc_poll(struct file *filp, poll_table * wait);
20 __poll_t ivtv_v4l2_dec_poll(struct file *filp, poll_table * wait);
/drivers/char/ipmi/
Dkcs_bmc.c238 static inline struct kcs_bmc *to_kcs_bmc(struct file *filp) in to_kcs_bmc() argument
240 return container_of(filp->private_data, struct kcs_bmc, miscdev); in to_kcs_bmc()
243 static int kcs_bmc_open(struct inode *inode, struct file *filp) in kcs_bmc_open() argument
245 struct kcs_bmc *kcs_bmc = to_kcs_bmc(filp); in kcs_bmc_open()
258 static __poll_t kcs_bmc_poll(struct file *filp, poll_table *wait) in kcs_bmc_poll() argument
260 struct kcs_bmc *kcs_bmc = to_kcs_bmc(filp); in kcs_bmc_poll()
263 poll_wait(filp, &kcs_bmc->queue, wait); in kcs_bmc_poll()
273 static ssize_t kcs_bmc_read(struct file *filp, char __user *buf, in kcs_bmc_read() argument
276 struct kcs_bmc *kcs_bmc = to_kcs_bmc(filp); in kcs_bmc_read()
281 if (!(filp->f_flags & O_NONBLOCK)) in kcs_bmc_read()
[all …]
/drivers/gpu/drm/i915/gem/
Di915_gem_shmem.c76 mapping = obj->base.filp->f_mapping; in shmem_get_pages()
231 shmem_truncate_range(file_inode(obj->base.filp), 0, (loff_t)-1); in shmem_truncate()
255 mapping = obj->base.filp->f_mapping; in shmem_writeback()
313 mapping_clear_unevictable(file_inode(obj->base.filp)->i_mapping); in shmem_put_pages()
338 struct address_space *mapping = obj->base.filp->f_mapping; in shmem_pwrite()
393 err = pagecache_write_begin(obj->base.filp, mapping, in shmem_pwrite()
405 err = pagecache_write_end(obj->base.filp, mapping, in shmem_pwrite()
428 fput(obj->base.filp); in shmem_release()
451 struct file *filp; in __create_shmem() local
456 filp = shmem_file_setup_with_mnt(i915->mm.gemfs, "i915", size, in __create_shmem()
[all …]
/drivers/gpu/drm/nouveau/
Dnouveau_usif.c54 usif_notify_find(struct drm_file *filp, u32 handle) in usif_notify_find() argument
56 struct nouveau_cli *cli = nouveau_cli(filp); in usif_notify_find()
80 struct drm_file *filp; in usif_notify() local
93 filp = ntfy->p->base.file_priv; in usif_notify()
94 dev = filp->minor->dev; in usif_notify()
111 if (!WARN_ON(filp->event_space < ntfy->p->e.base.length)) { in usif_notify()
112 list_add_tail(&ntfy->p->base.link, &filp->event_list); in usif_notify()
113 filp->event_space -= ntfy->p->e.base.length; in usif_notify()
115 wake_up_interruptible(&filp->event_wait); in usif_notify()
294 usif_ioctl(struct drm_file *filp, void __user *user, u32 argc) in usif_ioctl() argument
[all …]
/drivers/platform/chrome/
Dcros_ec_chardev.c160 static int cros_ec_chardev_open(struct inode *inode, struct file *filp) in cros_ec_chardev_open() argument
162 struct miscdevice *mdev = filp->private_data; in cros_ec_chardev_open()
172 filp->private_data = priv; in cros_ec_chardev_open()
175 nonseekable_open(inode, filp); in cros_ec_chardev_open()
188 static __poll_t cros_ec_chardev_poll(struct file *filp, poll_table *wait) in cros_ec_chardev_poll() argument
190 struct chardev_priv *priv = filp->private_data; in cros_ec_chardev_poll()
192 poll_wait(filp, &priv->wait_event, wait); in cros_ec_chardev_poll()
200 static ssize_t cros_ec_chardev_read(struct file *filp, char __user *buffer, in cros_ec_chardev_read() argument
205 struct chardev_priv *priv = filp->private_data; in cros_ec_chardev_read()
214 !(filp->f_flags & O_NONBLOCK)); in cros_ec_chardev_read()
[all …]
/drivers/remoteproc/
Dremoteproc_debugfs.c42 static ssize_t rproc_coredump_read(struct file *filp, char __user *userbuf, in rproc_coredump_read() argument
45 struct rproc *rproc = filp->private_data; in rproc_coredump_read()
71 static ssize_t rproc_coredump_write(struct file *filp, in rproc_coredump_write() argument
75 struct rproc *rproc = filp->private_data; in rproc_coredump_write()
126 static ssize_t rproc_trace_read(struct file *filp, char __user *userbuf, in rproc_trace_read() argument
129 struct rproc_debug_trace *data = filp->private_data; in rproc_trace_read()
155 static ssize_t rproc_name_read(struct file *filp, char __user *userbuf, in rproc_name_read() argument
158 struct rproc *rproc = filp->private_data; in rproc_name_read()
175 static ssize_t rproc_recovery_read(struct file *filp, char __user *userbuf, in rproc_recovery_read() argument
178 struct rproc *rproc = filp->private_data; in rproc_recovery_read()
[all …]
/drivers/char/xillybus/
Dxillybus_core.c666 static ssize_t xillybus_read(struct file *filp, char __user *userbuf, in xillybus_read() argument
674 struct xilly_channel *channel = filp->private_data; in xillybus_read()
812 if (!no_time_left && (filp->f_flags & O_NONBLOCK)) { in xillybus_read()
914 if (filp->f_flags & O_NONBLOCK) in xillybus_read()
1156 static int xillybus_flush(struct file *filp, fl_owner_t id) in xillybus_flush() argument
1158 if (!(filp->f_mode & FMODE_WRITE)) in xillybus_flush()
1161 return xillybus_myflush(filp->private_data, HZ); /* 1 second timeout */ in xillybus_flush()
1181 static ssize_t xillybus_write(struct file *filp, const char __user *userbuf, in xillybus_write() argument
1187 struct xilly_channel *channel = filp->private_data; in xillybus_write()
1367 if (filp->f_flags & O_NONBLOCK) { in xillybus_write()
[all …]
/drivers/misc/
Dopen-dice.c38 static inline struct open_dice_drvdata *to_open_dice_drvdata(struct file *filp) in to_open_dice_drvdata() argument
40 return container_of(filp->private_data, struct open_dice_drvdata, misc); in to_open_dice_drvdata()
64 static ssize_t open_dice_read(struct file *filp, char __user *ptr, size_t len, in open_dice_read() argument
67 unsigned long val = to_open_dice_drvdata(filp)->rmem->size; in open_dice_read()
76 static ssize_t open_dice_write(struct file *filp, const char __user *ptr, in open_dice_write() argument
79 if (open_dice_wipe(to_open_dice_drvdata(filp))) in open_dice_write()
89 static int open_dice_mmap(struct file *filp, struct vm_area_struct *vma) in open_dice_mmap() argument
91 struct open_dice_drvdata *drvdata = to_open_dice_drvdata(filp); in open_dice_mmap()
/drivers/media/pci/cx18/
Dcx18-fileops.h11 int cx18_v4l2_open(struct file *filp);
12 ssize_t cx18_v4l2_read(struct file *filp, char __user *buf, size_t count,
14 ssize_t cx18_v4l2_write(struct file *filp, const char __user *buf, size_t count,
16 int cx18_v4l2_close(struct file *filp);
17 __poll_t cx18_v4l2_enc_poll(struct file *filp, poll_table *wait);
/drivers/rpmsg/
Drpmsg_char.c123 static int rpmsg_eptdev_open(struct inode *inode, struct file *filp) in rpmsg_eptdev_open() argument
140 filp->private_data = eptdev; in rpmsg_eptdev_open()
145 static int rpmsg_eptdev_release(struct inode *inode, struct file *filp) in rpmsg_eptdev_release() argument
168 struct file *filp = iocb->ki_filp; in rpmsg_eptdev_read_iter() local
169 struct rpmsg_eptdev *eptdev = filp->private_data; in rpmsg_eptdev_read_iter()
183 if (filp->f_flags & O_NONBLOCK) in rpmsg_eptdev_read_iter()
216 struct file *filp = iocb->ki_filp; in rpmsg_eptdev_write_iter() local
217 struct rpmsg_eptdev *eptdev = filp->private_data; in rpmsg_eptdev_write_iter()
241 if (filp->f_flags & O_NONBLOCK) in rpmsg_eptdev_write_iter()
254 static __poll_t rpmsg_eptdev_poll(struct file *filp, poll_table *wait) in rpmsg_eptdev_poll() argument
[all …]
/drivers/media/platform/
Dvia-camera.c687 static int viacam_open(struct file *filp) in viacam_open() argument
689 struct via_camera *cam = video_drvdata(filp); in viacam_open()
697 ret = v4l2_fh_open(filp); in viacam_open()
700 if (v4l2_fh_is_singular_file(filp)) { in viacam_open()
704 v4l2_fh_release(filp); in viacam_open()
715 static int viacam_release(struct file *filp) in viacam_release() argument
717 struct via_camera *cam = video_drvdata(filp); in viacam_release()
721 last_open = v4l2_fh_is_singular_file(filp); in viacam_release()
722 _vb2_fop_release(filp, NULL); in viacam_release()
752 static int viacam_enum_input(struct file *filp, void *priv, in viacam_enum_input() argument
[all …]

12345678910>>...18