Searched defs:file (Results 326 - 350 of 874) sorted by relevance

<<11121314151617181920>>

/drivers/xen/
H A Dmcelog.c17 * of this source file (the "Software"), to deal in the Software without
74 static int xen_mce_chrdev_open(struct inode *inode, struct file *file) argument
79 (xen_mce_chrdev_open_count && (file->f_flags & O_EXCL))) {
85 if (file->f_flags & O_EXCL)
91 return nonseekable_open(inode, file);
94 static int xen_mce_chrdev_release(struct inode *inode, struct file *file) argument
106 static ssize_t xen_mce_chrdev_read(struct file *filp, char __user *ubuf,
142 static unsigned int xen_mce_chrdev_poll(struct file *fil argument
[all...]
/drivers/base/power/
H A Dwakeup.c6 * This file is released under the GPLv2.
933 static int wakeup_sources_stats_open(struct inode *inode, struct file *file) argument
935 return single_open(file, wakeup_sources_stats_show, NULL);
/drivers/base/regmap/
H A Dregcache-rbtree.c181 static int rbtree_open(struct inode *inode, struct file *file) argument
183 return single_open(file, rbtree_show, inode->i_private);
/drivers/block/rsxx/
H A Dcore.c168 static int rsxx_attr_stats_open(struct inode *inode, struct file *file) argument
170 return single_open(file, rsxx_attr_stats_show, inode->i_private);
173 static int rsxx_attr_pci_regs_open(struct inode *inode, struct file *file) argument
175 return single_open(file, rsxx_attr_pci_regs_show, inode->i_private);
178 static ssize_t rsxx_cram_read(struct file *fp, char __user *ubuf,
199 static ssize_t rsxx_cram_write(struct file *fp, const char __user *ubuf,
/drivers/char/
H A Dapm-emulation.c107 * The per-file APM data
209 static ssize_t apm_read(struct file *fp, char __user *buf, size_t count, loff_t *ppos)
246 static unsigned int apm_poll(struct file *fp, poll_table * wait)
265 apm_ioctl(struct file *filp, u_int cmd, u_long arg)
333 static int apm_release(struct inode * inode, struct file * filp)
359 static int apm_open(struct inode * inode, struct file * filp)
472 static int proc_apm_open(struct inode *inode, struct file *file) argument
474 return single_open(file, proc_apm_show, NULL);
H A Dapplicom.c109 static ssize_t ac_read (struct file *, char __user *, size_t, loff_t *);
110 static ssize_t ac_write (struct file *, const char __user *, size_t, loff_t *);
111 static long ac_ioctl(struct file *, unsigned int, unsigned long);
355 static ssize_t ac_write(struct file *file, const char __user *buf, size_t count, loff_t * ppos) argument
533 static ssize_t ac_read (struct file *filp, char __user *buf, size_t count, loff_t *ptr)
693 static long ac_ioctl(struct file *file, unsigned int cmd, unsigned long arg) argument
H A Dds1620.c213 static int ds1620_open(struct inode *inode, struct file *file) argument
215 return nonseekable_open(inode, file);
219 ds1620_read(struct file *file, char __user *buf, size_t count, loff_t *ptr) argument
236 ds1620_ioctl(struct file *file, unsigned int cmd, unsigned long arg) argument
321 ds1620_unlocked_ioctl(struct file *file, unsigned int cmd, unsigned long arg) argument
326 ret = ds1620_ioctl(file, cm
349 ds1620_proc_therm_open(struct inode *inode, struct file *file) argument
[all...]
H A Dnvram.c14 * size of this file is dependent on the controller. The usual size is 114,
24 * This file also provides some functions for other parts of the kernel that
211 * The are the file operation function for user access to /dev/nvram
214 static loff_t nvram_llseek(struct file *file, loff_t offset, int origin) argument
221 offset += file->f_pos;
230 return (offset >= 0) ? (file->f_pos = offset) : -EINVAL;
233 static ssize_t nvram_read(struct file *file, char __user *buf, argument
262 static ssize_t nvram_write(struct file *fil argument
301 nvram_ioctl(struct file *file, unsigned int cmd, unsigned long arg) argument
342 nvram_open(struct inode *inode, struct file *file) argument
364 nvram_release(struct inode *inode, struct file *file) argument
404 nvram_proc_open(struct inode *inode, struct file *file) argument
[all...]
H A Dpc8736x_gpio.c220 static int pc8736x_gpio_open(struct inode *inode, struct file *file) argument
223 file->private_data = &pc8736x_gpio_ops;
229 return nonseekable_open(inode, file);
H A Dppdev.c107 static ssize_t pp_read (struct file * file, char __user * buf, size_t count, argument
110 unsigned int minor = iminor(file_inode(file));
111 struct pp_struct *pp = file->private_data;
135 (file->f_flags & O_NONBLOCK) ?
166 if (file->f_flags & O_NONBLOCK) {
189 static ssize_t pp_write (struct file * file, const char __user * buf, argument
192 unsigned int minor = iminor(file_inode(file));
193 struct pp_struct *pp = file
325 pp_do_ioctl(struct file *file, unsigned int cmd, unsigned long arg) argument
629 pp_ioctl(struct file *file, unsigned int cmd, unsigned long arg) argument
638 pp_open(struct inode * inode, struct file * file) argument
667 pp_release(struct inode * inode, struct file * file) argument
726 pp_poll(struct file * file, poll_table * wait) argument
[all...]
/drivers/char/xilinx_hwicap/
H A Dxilinx_hwicap.c352 hwicap_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
354 struct hwicap_drvdata *drvdata = file->private_data;
437 hwicap_write(struct file *file, const char __user *buf, argument
440 struct hwicap_drvdata *drvdata = file->private_data;
525 static int hwicap_open(struct inode *inode, struct file *file) argument
544 dev_err(drvdata->dev, "Failed to open file");
548 file
560 hwicap_release(struct inode *inode, struct file *file) argument
[all...]
/drivers/edac/
H A Daltera_edac.c141 static ssize_t altr_sdr_mc_err_inject_write(struct file *file, argument
145 struct mem_ctl_info *mci = file->private_data;
/drivers/firmware/efi/libstub/
H A Defi-stub-helper.c8 * This file is part of the Linux kernel, and is made available
353 * Check the cmdline for a LILO-style file= arguments.
355 * We only support loading a file from the same filesystem as
411 pr_efi_err(sys_table_arg, "Failed to alloc mem for file handle list\n");
417 struct file_info *file; local
427 file = &files[i];
457 (void **)&file->handle, &file->size);
461 file_size_total += file->size;
502 pr_efi_err(sys_table_arg, "Failed to read file\
[all...]
/drivers/gpu/drm/bochs/
H A Dbochs_mm.c127 struct file *filp)
336 int bochs_mmap(struct file *filp, struct vm_area_struct *vma)
410 int bochs_dumb_create(struct drm_file *file, struct drm_device *dev, argument
425 ret = drm_gem_handle_create(file, gobj, &handle);
453 int bochs_dumb_mmap_offset(struct drm_file *file, struct drm_device *dev, argument
461 obj = drm_gem_object_lookup(dev, file, handle);
/drivers/gpu/drm/exynos/
H A Dexynos_drm_drv.c211 static int exynos_drm_open(struct drm_device *dev, struct drm_file *file) argument
220 file->driver_priv = file_priv;
222 ret = exynos_drm_subdrv_open(dev, file);
230 file->driver_priv = NULL;
235 struct drm_file *file)
237 exynos_drm_subdrv_close(dev, file);
240 static void exynos_drm_postclose(struct drm_device *dev, struct drm_file *file) argument
247 if (!file->driver_priv)
254 if (v->base.file_priv == file) {
262 list_for_each_entry_safe(e, et, &file
234 exynos_drm_preclose(struct drm_device *dev, struct drm_file *file) argument
[all...]
H A Dexynos_drm_ipp.h64 * @filp: associated file pointer.
183 struct drm_file *file);
185 struct drm_file *file);
187 struct drm_file *file);
189 struct drm_file *file);
223 struct drm_file *file)
230 struct drm_file *file)
221 exynos_drm_ipp_queue_buf(struct drm_device *drm_dev, void *data, struct drm_file *file) argument
228 exynos_drm_ipp_cmd_ctrl(struct drm_device *drm_dev, void *data, struct drm_file *file) argument
/drivers/gpu/drm/i915/
H A Di915_gem_userptr.c770 i915_gem_userptr_ioctl(struct drm_device *dev, void *data, struct drm_file *file) argument
820 ret = drm_gem_handle_create(file, &obj->base, &handle);
/drivers/gpu/drm/msm/mdp/mdp5/
H A Dmdp5_crtc.c139 /* if file!=NULL, this is preclose potential cancel-flip path */
140 static void complete_flip(struct drm_crtc *crtc, struct drm_file *file) argument
150 /* if regular vblank case (!file) or if cancel-flip from
151 * preclose on file that requested flip, then send the
154 if (!file || (event->base.file_priv == file)) {
441 void mdp5_crtc_cancel_pending_flip(struct drm_crtc *crtc, struct drm_file *file) argument
443 DBG("cancel: %p", file);
444 complete_flip(crtc, file);
/drivers/gpu/drm/msm/
H A Dmsm_gem.c159 * Shunt off cached objs to shmem file so they have their own
174 int msm_gem_mmap(struct file *filp, struct vm_area_struct *vma)
341 int msm_gem_dumb_create(struct drm_file *file, struct drm_device *dev, argument
346 return msm_gem_new_handle(dev, file, args->size,
350 int msm_gem_dumb_map_offset(struct drm_file *file, struct drm_device *dev, argument
357 obj = drm_gem_object_lookup(dev, file, handle);
560 int msm_gem_new_handle(struct drm_device *dev, struct drm_file *file, argument
577 ret = drm_gem_handle_create(file, obj, handle);
/drivers/gpu/drm/nouveau/
H A Dnouveau_drm.c796 nouveau_drm_ioctl(struct file *file, unsigned int cmd, unsigned long arg) argument
798 struct drm_file *filp = file->private_data;
811 ret = drm_ioctl(file, cmd, arg);
/drivers/gpu/drm/omapdrm/
H A Domap_drv.c544 static int dev_open(struct drm_device *dev, struct drm_file *file) argument
546 file->driver_priv = NULL;
548 DBG("open: dev=%p, file=%p", dev, file);
596 static void dev_preclose(struct drm_device *dev, struct drm_file *file) argument
601 static void dev_postclose(struct drm_device *dev, struct drm_file *file) argument
603 DBG("postclose: dev=%p, file=%p", dev, file);
H A Domap_fb.c386 struct drm_file *file, struct drm_mode_fb_cmd2 *mode_cmd)
392 ret = objects_lookup(dev, file, mode_cmd->pixel_format,
385 omap_framebuffer_create(struct drm_device *dev, struct drm_file *file, struct drm_mode_fb_cmd2 *mode_cmd) argument
/drivers/gpu/drm/rcar-du/
H A Drcar_du_crtc.c439 struct drm_file *file)
450 if (event && event->base.file_priv == file) {
438 rcar_du_crtc_cancel_page_flip(struct rcar_du_crtc *rcrtc, struct drm_file *file) argument
/drivers/gpu/drm/shmobile/
H A Dshmob_drm_crtc.c441 struct drm_file *file)
452 if (event && event->base.file_priv == file) {
440 shmob_drm_crtc_cancel_page_flip(struct shmob_drm_crtc *scrtc, struct drm_file *file) argument
/drivers/gpu/drm/tilcdc/
H A Dtilcdc_crtc.c630 void tilcdc_crtc_cancel_page_flip(struct drm_crtc *crtc, struct drm_file *file) argument
642 if (event && event->base.file_priv == file) {

Completed in 329 milliseconds

<<11121314151617181920>>