Searched defs:file (Results 176 - 200 of 874) sorted by relevance

1234567891011>>

/drivers/gpu/drm/cirrus/
H A Dcirrus_main.c4 * This file is subject to the terms and conditions of the GNU General
5 * Public License version 2. See the file COPYING in the main
233 int cirrus_dumb_create(struct drm_file *file, argument
249 ret = drm_gem_handle_create(file, gobj, &handle);
284 cirrus_dumb_mmap_offset(struct drm_file *file, argument
294 obj = drm_gem_object_lookup(dev, file, handle);
/drivers/gpu/drm/
H A Ddrm_debugfs.c2 * \file drm_debugfs.c
58 static int drm_debugfs_open(struct inode *inode, struct file *file) argument
62 return single_open(file, node->info_ent->show, node);
271 static int connector_open(struct inode *inode, struct file *file) argument
275 return single_open(file, connector_show, dev);
278 static ssize_t connector_write(struct file *file, const char __user *ubuf, argument
281 struct seq_file *m = file
318 edid_open(struct inode *inode, struct file *file) argument
325 edid_write(struct file *file, const char __user *ubuf, size_t len, loff_t *offp) argument
[all...]
H A Ddrm_gem.c33 #include <linux/file.h>
44 /** @file drm_gem.c
46 * This file provides some of the base ioctls and library routines for
58 * struct file. However, file descriptors as handles to a struct file have
67 * ioctls. The objects themselves will still include the struct file so
136 struct file *filp;
243 * drm_gem_handle_delete - deletes the given file-private handle
244 * @filp: drm file
300 drm_gem_dumb_destroy(struct drm_file *file, struct drm_device *dev, uint32_t handle) argument
[all...]
/drivers/gpu/drm/i915/
H A Di915_gem_context.c29 * This file implements HW context support. On gen5+ a HW context consists of an
426 int i915_gem_context_open(struct drm_device *dev, struct drm_file *file) argument
428 struct drm_i915_file_private *file_priv = file->driver_priv;
445 void i915_gem_context_close(struct drm_device *dev, struct drm_file *file) argument
447 struct drm_i915_file_private *file_priv = file->driver_priv;
691 struct drm_file *file)
694 struct drm_i915_file_private *file_priv = file->driver_priv;
717 struct drm_file *file)
720 struct drm_i915_file_private *file_priv = file->driver_priv;
690 i915_gem_context_create_ioctl(struct drm_device *dev, void *data, struct drm_file *file) argument
716 i915_gem_context_destroy_ioctl(struct drm_device *dev, void *data, struct drm_file *file) argument
H A Di915_ioc32.c2 * \file i915_ioc32.c
47 static int compat_i915_batchbuffer(struct file *file, unsigned int cmd, argument
69 return drm_ioctl(file, DRM_IOCTL_I915_BATCHBUFFER,
82 static int compat_i915_cmdbuffer(struct file *file, unsigned int cmd, argument
104 return drm_ioctl(file, DRM_IOCTL_I915_CMDBUFFER,
112 static int compat_i915_irq_emit(struct file *file, unsigned int cmd, argument
127 return drm_ioctl(file, DRM_IOCTL_I915_IRQ_EMI
135 compat_i915_getparam(struct file *file, unsigned int cmd, unsigned long arg) argument
162 compat_i915_alloc(struct file *file, unsigned int cmd, unsigned long arg) argument
[all...]
H A Di915_sysfs.c168 i915_l3_read(struct file *filp, struct kobject *kobj,
204 i915_l3_write(struct file *filp, struct kobject *kobj,
528 static ssize_t error_state_read(struct file *filp, struct kobject *kobj,
564 static ssize_t error_state_write(struct file *file, struct kobject *kobj, argument
/drivers/gpu/drm/mga/
H A Dmga_ioc32.c2 * \file mga_ioc32.c
60 static int compat_mga_init(struct file *file, unsigned int cmd, argument
103 return drm_ioctl(file, DRM_IOCTL_MGA_INIT, (unsigned long)init);
111 static int compat_mga_getparam(struct file *file, unsigned int cmd, argument
127 return drm_ioctl(file, DRM_IOCTL_MGA_GETPARAM, (unsigned long)getparam);
140 static int compat_mga_dma_bootstrap(struct file *file, unsigned int cmd, argument
167 err = drm_ioctl(file, DRM_IOCTL_MGA_DMA_BOOTSTRA
[all...]
/drivers/gpu/drm/mgag200/
H A Dmgag200_main.c5 * This file is subject to the terms and conditions of the GNU General
6 * Public License version 2. See the file COPYING in the main
291 int mgag200_dumb_create(struct drm_file *file, argument
307 ret = drm_gem_handle_create(file, gobj, &handle);
342 mgag200_dumb_mmap_offset(struct drm_file *file, argument
352 obj = drm_gem_object_lookup(dev, file, handle);
/drivers/gpu/drm/msm/
H A Dmsm_gem_submit.c59 struct drm_msm_gem_submit *args, struct drm_file *file)
64 spin_lock(&file->table_lock);
92 obj = idr_find(&file->object_idr, submit_bo.handle);
117 spin_unlock(&file->table_lock);
321 struct drm_file *file)
325 struct msm_file_private *ctx = file->driver_priv;
350 ret = submit_lookup_objects(submit, args, file);
58 submit_lookup_objects(struct msm_gem_submit *submit, struct drm_msm_gem_submit *args, struct drm_file *file) argument
320 msm_ioctl_gem_submit(struct drm_device *dev, void *data, struct drm_file *file) argument
H A Dmsm_rd.c29 * do anything if userspace doesn't have the debugfs file open.
127 static ssize_t rd_read(struct file *file, char __user *buf, argument
130 struct msm_rd_state *rd = file->private_data;
159 static int rd_open(struct inode *inode, struct file *file) argument
176 file->private_data = rd;
192 static int rd_release(struct inode *inode, struct file *file) argument
/drivers/gpu/drm/qxl/
H A Dqxl_ioctl.c312 struct drm_file *file)
328 gobj = drm_gem_object_lookup(dev, file, update_area->handle);
402 struct drm_file *file)
422 ret = qxl_gem_object_create_with_handle(qdev, file,
311 qxl_update_area_ioctl(struct drm_device *dev, void *data, struct drm_file *file) argument
401 qxl_alloc_surf_ioctl(struct drm_device *dev, void *data, struct drm_file *file) argument
/drivers/gpu/drm/r128/
H A Dr128_ioc32.c2 * \file r128_ioc32.c
62 static int compat_r128_init(struct file *file, unsigned int cmd, argument
98 return drm_ioctl(file, DRM_IOCTL_R128_INIT, (unsigned long)init);
110 static int compat_r128_depth(struct file *file, unsigned int cmd, argument
131 return drm_ioctl(file, DRM_IOCTL_R128_DEPTH, (unsigned long)depth);
139 static int compat_r128_stipple(struct file *file, unsigned int cmd, argument
154 return drm_ioctl(file, DRM_IOCTL_R128_STIPPL
162 compat_r128_getparam(struct file *file, unsigned int cmd, unsigned long arg) argument
[all...]
/drivers/gpu/drm/rcar-du/
H A Drcar_du_kms.c114 int rcar_du_dumb_create(struct drm_file *file, struct drm_device *dev, argument
131 return drm_gem_cma_dumb_create(file, dev, args);
/drivers/gpu/drm/tegra/
H A Dfb.c78 struct drm_file *file, unsigned int *handle)
82 return drm_gem_handle_create(file, &fb->planes[0]->gem, handle);
129 struct drm_file *file,
146 gem = drm_gem_object_lookup(drm, file, cmd->handles[i]);
77 tegra_fb_create_handle(struct drm_framebuffer *framebuffer, struct drm_file *file, unsigned int *handle) argument
128 tegra_fb_create(struct drm_device *drm, struct drm_file *file, struct drm_mode_fb_cmd2 *cmd) argument
H A Dgem.c147 struct tegra_bo *tegra_bo_create_with_handle(struct drm_file *file, argument
160 ret = drm_gem_handle_create(file, &bo->gem, handle);
259 int tegra_bo_dumb_create(struct drm_file *file, struct drm_device *drm, argument
273 bo = tegra_bo_create_with_handle(file, drm, args->size, 0,
281 int tegra_bo_dumb_map_offset(struct drm_file *file, struct drm_device *drm, argument
289 gem = drm_gem_object_lookup(drm, file, handle);
312 int tegra_drm_mmap(struct file *file, struct vm_area_struct *vma) argument
318 ret = drm_gem_mmap(file, vma);
/drivers/hid/
H A Dhid-roccat.c76 static ssize_t roccat_read(struct file *file, char __user *buffer, argument
79 struct roccat_reader *reader = file->private_data;
94 if (file->f_flags & O_NONBLOCK) {
140 static unsigned int roccat_poll(struct file *file, poll_table *wait) argument
142 struct roccat_reader *reader = file->private_data;
143 poll_wait(file, &reader->device->wait, wait);
151 static int roccat_open(struct inode *inode, struct file *file) argument
206 roccat_release(struct inode *inode, struct file *file) argument
379 roccat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) argument
[all...]
H A Dhidraw.c46 static ssize_t hidraw_read(struct file *file, char __user *buffer, size_t count, loff_t *ppos) argument
48 struct hidraw_list *list = file->private_data;
68 if (file->f_flags & O_NONBLOCK) {
112 static ssize_t hidraw_send_report(struct file *file, const char __user *buffer, size_t count, unsigned char report_type) argument
114 unsigned int minor = iminor(file_inode(file));
173 static ssize_t hidraw_write(struct file *file, const char __user *buffer, size_t count, loff_t *ppos) argument
177 ret = hidraw_send_report(file, buffe
192 hidraw_get_report(struct file *file, char __user *buffer, size_t count, unsigned char report_type) argument
257 hidraw_poll(struct file *file, poll_table *wait) argument
269 hidraw_open(struct inode *inode, struct file *file) argument
319 hidraw_fasync(int fd, struct file *file, int on) argument
351 hidraw_release(struct inode * inode, struct file * file) argument
370 hidraw_ioctl(struct file *file, unsigned int cmd, unsigned long arg) argument
[all...]
/drivers/hv/
H A Dhv_fcopy.c2 * An implementation of file copy service.
40 * For a class of integration services, including the "file copy service",
171 * by the file copy protocol implemented by the host. Furthermore,
263 static ssize_t fcopy_read(struct file *file, char __user *buf, argument
303 static ssize_t fcopy_write(struct file *file, const char __user *buf, argument
330 static int fcopy_open(struct inode *inode, struct file *f)
347 static int fcopy_release(struct inode *inode, struct file *f)
/drivers/i2c/
H A Di2c-dev.c41 * with a character special file which is accessed by user mode drivers.
120 * After opening an instance of this character special file, a file
129 * To use read()/write() system calls on that file descriptor, or to use
136 static ssize_t i2cdev_read(struct file *file, char __user *buf, size_t count, argument
142 struct i2c_client *client = file->private_data;
152 iminor(file_inode(file)), count);
161 static ssize_t i2cdev_write(struct file *file, cons argument
413 i2cdev_ioctl(struct file *file, unsigned int cmd, unsigned long arg) argument
484 i2cdev_open(struct inode *inode, struct file *file) argument
519 i2cdev_release(struct inode *inode, struct file *file) argument
[all...]
/drivers/infiniband/hw/ipath/
H A Dipath_fs.c7 * General Public License (GPL) Version 2, available from the file
97 static ssize_t atomic_stats_read(struct file *file, char __user *buf, argument
109 static ssize_t atomic_counters_read(struct file *file, char __user *buf, argument
115 dd = file_inode(file)->i_private;
127 static ssize_t flash_read(struct file *file, char __user *buf, argument
156 dd = file_inode(file)->i_private;
178 static ssize_t flash_write(struct file *fil argument
[all...]
/drivers/infiniband/hw/qib/
H A Dqib_fs.c8 * General Public License (GPL) Version 2, available from the file
48 #define private2dd(file) (file_inode(file)->i_private)
104 static ssize_t driver_stats_read(struct file *file, char __user *buf, argument
132 static ssize_t driver_names_read(struct file *file, char __user *buf, argument
145 static ssize_t dev_counters_read(struct file *file, char __user *buf, argument
150 struct qib_devdata *dd = private2dd(file);
157 dev_names_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
179 portnames_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
191 portcntrs_1_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
203 portcntrs_2_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
223 qsfp_1_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
244 qsfp_2_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
270 flash_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
321 flash_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) argument
[all...]
/drivers/infiniband/ulp/ipoib/
H A Dipoib_fs.c6 * General Public License (GPL) Version 2, available from the file
58 static void *ipoib_mcg_seq_start(struct seq_file *file, loff_t *pos) argument
63 iter = ipoib_mcast_iter_init(file->private);
77 static void *ipoib_mcg_seq_next(struct seq_file *file, void *iter_ptr, argument
92 static void ipoib_mcg_seq_stop(struct seq_file *file, void *iter_ptr) argument
97 static int ipoib_mcg_seq_show(struct seq_file *file, void *iter_ptr) argument
113 seq_printf(file,
134 static int ipoib_mcg_open(struct inode *inode, struct file *file) argument
139 ret = seq_open(file,
157 ipoib_path_seq_start(struct seq_file *file, loff_t *pos) argument
176 ipoib_path_seq_next(struct seq_file *file, void *iter_ptr, loff_t *pos) argument
191 ipoib_path_seq_stop(struct seq_file *file, void *iter_ptr) argument
196 ipoib_path_seq_show(struct seq_file *file, void *iter_ptr) argument
239 ipoib_path_open(struct inode *inode, struct file *file) argument
[all...]
/drivers/input/misc/
H A Dhp_sdc_rtc.c67 static ssize_t hp_sdc_rtc_read(struct file *file, char __user *buf,
70 static long hp_sdc_rtc_unlocked_ioctl(struct file *file,
73 static unsigned int hp_sdc_rtc_poll(struct file *file, poll_table *wait);
75 static int hp_sdc_rtc_open(struct inode *inode, struct file *file);
76 static int hp_sdc_rtc_fasync (int fd, struct file *filp, int on);
400 static ssize_t hp_sdc_rtc_read(struct file *fil argument
411 hp_sdc_rtc_poll(struct file *file, poll_table *wait) argument
421 hp_sdc_rtc_open(struct inode *inode, struct file *file) argument
512 hp_sdc_rtc_proc_open(struct inode *inode, struct file *file) argument
524 hp_sdc_rtc_ioctl(struct file *file, unsigned int cmd, unsigned long arg) argument
671 hp_sdc_rtc_unlocked_ioctl(struct file *file, unsigned int cmd, unsigned long arg) argument
[all...]
H A Dkeychord.c195 static ssize_t keychord_read(struct file *file, char __user *buffer, argument
198 struct keychord_device *kdev = file->private_data;
207 if (kdev->head == kdev->tail && (file->f_flags & O_NONBLOCK))
230 static ssize_t keychord_write(struct file *file, const char __user *buffer, argument
233 struct keychord_device *kdev = file->private_data;
317 static unsigned int keychord_poll(struct file *file, poll_table *wait) argument
319 struct keychord_device *kdev = file
329 keychord_open(struct inode *inode, struct file *file) argument
354 keychord_release(struct inode *inode, struct file *file) argument
[all...]
/drivers/input/serio/
H A Dserio_raw.c55 * Interface with userspace (file operations) *
58 static int serio_raw_fasync(int fd, struct file *file, int on) argument
60 struct serio_raw_client *client = file->private_data;
62 return fasync_helper(fd, file, on, &client->fasync);
77 static int serio_raw_open(struct inode *inode, struct file *file) argument
105 file->private_data = client;
127 static int serio_raw_release(struct inode *inode, struct file *file) argument
160 serio_raw_read(struct file *file, char __user *buffer, size_t count, loff_t *ppos) argument
201 serio_raw_write(struct file *file, const char __user *buffer, size_t count, loff_t *ppos) argument
242 serio_raw_poll(struct file *file, poll_table *wait) argument
[all...]

Completed in 3978 milliseconds

1234567891011>>