/drivers/xen/ |
H A D | mcelog.c | 17 * 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 D | wakeup.c | 6 * 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 D | regcache-rbtree.c | 181 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 D | core.c | 168 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 D | apm-emulation.c | 107 * 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 D | applicom.c | 109 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 D | ds1620.c | 213 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 D | nvram.c | 14 * 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 D | pc8736x_gpio.c | 220 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 D | ppdev.c | 107 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 D | xilinx_hwicap.c | 352 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 D | altera_edac.c | 141 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 D | efi-stub-helper.c | 8 * 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 D | bochs_mm.c | 127 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 D | exynos_drm_drv.c | 211 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 D | exynos_drm_ipp.h | 64 * @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 D | i915_gem_userptr.c | 770 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 D | mdp5_crtc.c | 139 /* 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 D | msm_gem.c | 159 * 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 D | nouveau_drm.c | 796 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 D | omap_drv.c | 544 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 D | omap_fb.c | 386 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 D | rcar_du_crtc.c | 439 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 D | shmob_drm_crtc.c | 441 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 D | tilcdc_crtc.c | 630 void tilcdc_crtc_cancel_page_flip(struct drm_crtc *crtc, struct drm_file *file) argument 642 if (event && event->base.file_priv == file) {
|