| /drivers/media/test-drivers/vivid/ |
| D | vivid-vid-cap.h | 22 int vivid_g_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f); 23 int vivid_try_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f); 24 int vivid_s_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f); 25 int vidioc_g_fmt_vid_cap_mplane(struct file *file, void *priv, struct v4l2_format *f); 26 int vidioc_try_fmt_vid_cap_mplane(struct file *file, void *priv, struct v4l2_format *f); 27 int vidioc_s_fmt_vid_cap_mplane(struct file *file, void *priv, struct v4l2_format *f); 28 int vidioc_g_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f); 29 int vidioc_try_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f); 30 int vidioc_s_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f); 31 int vivid_vid_cap_g_selection(struct file *file, void *priv, struct v4l2_selection *sel); [all …]
|
| D | vivid-vid-out.h | 15 int vivid_g_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f); 16 int vivid_try_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f); 17 int vivid_s_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f); 18 int vidioc_g_fmt_vid_out_mplane(struct file *file, void *priv, struct v4l2_format *f); 19 int vidioc_try_fmt_vid_out_mplane(struct file *file, void *priv, struct v4l2_format *f); 20 int vidioc_s_fmt_vid_out_mplane(struct file *file, void *priv, struct v4l2_format *f); 21 int vidioc_g_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f); 22 int vidioc_try_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f); 23 int vidioc_s_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f); 24 int vivid_vid_out_g_selection(struct file *file, void *priv, struct v4l2_selection *sel); [all …]
|
| D | vivid-sdr-cap.h | 11 int vivid_sdr_enum_freq_bands(struct file *file, void *fh, struct v4l2_frequency_band *band); 12 int vivid_sdr_g_frequency(struct file *file, void *fh, struct v4l2_frequency *vf); 13 int vivid_sdr_s_frequency(struct file *file, void *fh, const struct v4l2_frequency *vf); 14 int vivid_sdr_g_tuner(struct file *file, void *fh, struct v4l2_tuner *vt); 15 int vivid_sdr_s_tuner(struct file *file, void *fh, const struct v4l2_tuner *vt); 16 int vidioc_enum_fmt_sdr_cap(struct file *file, void *fh, struct v4l2_fmtdesc *f); 17 int vidioc_g_fmt_sdr_cap(struct file *file, void *fh, struct v4l2_format *f); 18 int vidioc_s_fmt_sdr_cap(struct file *file, void *fh, struct v4l2_format *f); 19 int vidioc_try_fmt_sdr_cap(struct file *file, void *fh, struct v4l2_format *f);
|
| /drivers/scsi/fnic/ |
| D | fnic_debugfs.c | 35 * file system. If not already created, this routine will create the 65 * When Debugfs is configured this routine removes debugfs file system 82 * or fc_trace_clear debugfs file 83 * @filp: The file pointer to read from. 86 * @ppos: The position in the file to start reading from. 92 * It will start reading file at @ppos and 98 static ssize_t fnic_trace_ctrl_read(struct file *filp, in fnic_trace_ctrl_read() 114 pr_err("fnic: Cannot read to any debugfs file\n"); in fnic_trace_ctrl_read() 122 * fc_trace_clear debugfs file 123 * @filp: The file pointer to write from. [all …]
|
| /drivers/infiniband/core/ |
| D | user_mad.c | 9 * General Public License (GPL) Version 2, available from the file 81 * device special file is opened, we take a reference on the 174 static int hdr_size(struct ib_umad_file *file) in hdr_size() argument 176 return file->use_pkey_index ? sizeof(struct ib_user_mad_hdr) : in hdr_size() 180 /* caller must hold file->mutex */ 181 static struct ib_mad_agent *__get_agent(struct ib_umad_file *file, int id) in __get_agent() argument 183 return file->agents_dead ? NULL : file->agent[id]; in __get_agent() 186 static int queue_packet(struct ib_umad_file *file, struct ib_mad_agent *agent, in queue_packet() argument 191 mutex_lock(&file->mutex); in queue_packet() 194 atomic_read(&file->recv_list_size) > MAX_UMAD_RECV_LIST_SIZE) in queue_packet() [all …]
|
| /drivers/gpu/drm/i915/gt/ |
| D | shmem_utils.c | 17 struct file *shmem_create_from_data(const char *name, void *data, size_t len) in shmem_create_from_data() 19 struct file *file; in shmem_create_from_data() local 22 file = shmem_file_setup(name, PAGE_ALIGN(len), VM_NORESERVE); in shmem_create_from_data() 23 if (IS_ERR(file)) in shmem_create_from_data() 24 return file; in shmem_create_from_data() 26 err = shmem_write(file, 0, data, len); in shmem_create_from_data() 28 fput(file); in shmem_create_from_data() 32 return file; in shmem_create_from_data() 35 struct file *shmem_create_from_object(struct drm_i915_gem_object *obj) in shmem_create_from_object() 38 struct file *file; in shmem_create_from_object() local [all …]
|
| /drivers/gpu/drm/ |
| D | drm_file.c | 36 #include <linux/file.h> 74 * DOC: file operations 76 * Drivers must define the file operations structure that forms the DRM 89 * userspace through the file descriptor. They are used to send vblank event and 99 * No other file operations are supported by the DRM userspace API. Overall the 124 * drm_file_alloc - allocate file context 127 * This allocates a new DRM file context. It is not linked into any context and 138 struct drm_file *file; in drm_file_alloc() local 141 file = kzalloc(sizeof(*file), GFP_KERNEL); in drm_file_alloc() 142 if (!file) in drm_file_alloc() [all …]
|
| /drivers/staging/android/ |
| D | ashmem_rust.rs | 8 //! behavior and sporting a simpler file-based API. 23 fs::{File, LocalFile}, 131 /// Represents an open ashmem file. 143 file: Option<ShmemFile>, field 151 fn open(_: &File, _: &MiscDeviceRegistration<Ashmem>) -> Result<Pin<KBox<Self>>> { in open() argument 159 file: None, in open() 168 fn mmap(me: Pin<&Ashmem>, _file: &File, vma: &VmaNew) -> Result<()> { in mmap() argument 191 let file = match asma.file.as_ref() { in mmap() localVariable 192 Some(file) => file, in mmap() 196 asma.file in mmap() [all …]
|
| D | shmem.rs | 5 //! Safe rust abstraction around a shmem file for use by ashmem. 11 fs::file::{File, LocalFile}, 26 /// Caller must ensure that access to the file position is properly synchronized. 27 pub(crate) unsafe fn file_get_fpos(file: &LocalFile) -> loff_t { in file_get_fpos() 29 unsafe { (*file.as_ptr()).f_pos } in file_get_fpos() 34 /// Caller must ensure that access to the file position is properly synchronized. 35 pub(crate) unsafe fn file_set_fpos(file: &LocalFile, pos: loff_t) { in file_set_fpos() 37 unsafe { (*file.as_ptr()).f_pos = pos }; in file_set_fpos() 46 /// Wrapper around a file that is known to be a shmem file. 49 inner: ARef<File>, [all …]
|
| /drivers/net/wireless/marvell/libertas/ |
| D | debugfs.c | 25 static ssize_t write_file_dummy(struct file *file, const char __user *buf, in write_file_dummy() argument 33 static ssize_t lbs_dev_info(struct file *file, char __user *userbuf, in lbs_dev_info() argument 36 struct lbs_private *priv = file->private_data; in lbs_dev_info() 55 static ssize_t lbs_sleepparams_write(struct file *file, in lbs_sleepparams_write() argument 59 struct lbs_private *priv = file->private_data; in lbs_sleepparams_write() 92 static ssize_t lbs_sleepparams_read(struct file *file, char __user *userbuf, in lbs_sleepparams_read() argument 95 struct lbs_private *priv = file->private_data; in lbs_sleepparams_read() 120 static ssize_t lbs_host_sleep_write(struct file *file, in lbs_host_sleep_write() argument 124 struct lbs_private *priv = file->private_data; in lbs_host_sleep_write() 162 static ssize_t lbs_host_sleep_read(struct file *file, char __user *userbuf, in lbs_host_sleep_read() argument [all …]
|
| /drivers/misc/ |
| D | ntsync.c | 9 #include <linux/file.h> 26 * struct ntsync_obj, and each primitive is backed by a file. 29 * backed by a file. 31 * Both rely on struct file for reference counting. Individual 40 struct file *file; member 53 struct file *file; member 100 static int ntsync_obj_release(struct inode *inode, struct file *file) in ntsync_obj_release() argument 102 struct ntsync_obj *obj = file->private_data; in ntsync_obj_release() 104 fput(obj->dev->file); in ntsync_obj_release() 110 static long ntsync_obj_ioctl(struct file *file, unsigned int cmd, in ntsync_obj_ioctl() argument [all …]
|
| /drivers/net/wireless/ath/ath9k/ |
| D | debug.c | 71 static ssize_t ath9k_debugfs_read_buf(struct file *file, char __user *user_buf, in ath9k_debugfs_read_buf() argument 74 u8 *buf = file->private_data; in ath9k_debugfs_read_buf() 78 static int ath9k_debugfs_release_buf(struct inode *inode, struct file *file) in ath9k_debugfs_release_buf() argument 80 vfree(file->private_data); in ath9k_debugfs_release_buf() 86 static ssize_t read_file_debug(struct file *file, char __user *user_buf, in read_file_debug() argument 89 struct ath_softc *sc = file->private_data; in read_file_debug() 98 static ssize_t write_file_debug(struct file *file, const char __user *user_buf, in write_file_debug() argument 101 struct ath_softc *sc = file->private_data; in write_file_debug() 127 static ssize_t read_file_ani(struct file *file, char __user *user_buf, in read_file_ani() argument 130 struct ath_softc *sc = file->private_data; in read_file_ani() [all …]
|
| /drivers/net/wireless/mediatek/mt76/ |
| D | mt76x02_debugfs.c | 10 mt76x02_ampdu_stat_show(struct seq_file *file, void *data) in mt76x02_ampdu_stat_show() argument 12 struct mt76x02_dev *dev = file->private; in mt76x02_ampdu_stat_show() 16 seq_puts(file, "Length: "); in mt76x02_ampdu_stat_show() 18 seq_printf(file, "%8d | ", i * 8 + j + 1); in mt76x02_ampdu_stat_show() 19 seq_puts(file, "\n"); in mt76x02_ampdu_stat_show() 20 seq_puts(file, "Count: "); in mt76x02_ampdu_stat_show() 22 seq_printf(file, "%8d | ", in mt76x02_ampdu_stat_show() 24 seq_puts(file, "\n"); in mt76x02_ampdu_stat_show() 25 seq_puts(file, "--------"); in mt76x02_ampdu_stat_show() 27 seq_puts(file, "-----------"); in mt76x02_ampdu_stat_show() [all …]
|
| /drivers/net/wireless/ti/wlcore/ |
| D | debugfs.c | 3 * This file is part of wl1271 78 static ssize_t tx_queue_len_read(struct file *file, char __user *userbuf, in tx_queue_len_read() argument 81 struct wl1271 *wl = file->private_data; in tx_queue_len_read() 123 static ssize_t param##_read(struct file *file, \ 127 struct wl1271 *wl = file->private_data; \ 133 static ssize_t param##_write(struct file *file, \ 137 struct wl1271 *wl = file->private_data; \ 175 static ssize_t gpio_power_read(struct file *file, char __user *user_buf, in gpio_power_read() argument 178 struct wl1271 *wl = file->private_data; in gpio_power_read() 189 static ssize_t gpio_power_write(struct file *file, in gpio_power_write() argument [all …]
|
| /drivers/net/wireless/marvell/mwifiex/ |
| D | debugfs.c | 31 * Proc info file read handler. 33 * This function is called when the 'info' file is opened for reading. 62 mwifiex_info_read(struct file *file, char __user *ubuf, in mwifiex_info_read() argument 66 (struct mwifiex_private *) file->private_data; in mwifiex_info_read() 145 * Proc getlog file read handler. 147 * This function is called when the 'getlog' file is opened for reading 166 mwifiex_getlog_read(struct file *file, char __user *ubuf, in mwifiex_getlog_read() argument 170 (struct mwifiex_private *) file->private_data; in mwifiex_getlog_read() 231 /* Sysfs histogram file read handler. 233 * This function is called when the 'histogram' file is opened for reading [all …]
|
| /drivers/media/usb/pvrusb2/ |
| D | pvrusb2-v4l2.c | 43 struct file *file; member 109 static int pvr2_querycap(struct file *file, void *priv, struct v4l2_capability *cap) in pvr2_querycap() argument 111 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_querycap() 124 static int pvr2_g_std(struct file *file, void *priv, v4l2_std_id *std) in pvr2_g_std() argument 126 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_g_std() 137 static int pvr2_s_std(struct file *file, void *priv, v4l2_std_id std) in pvr2_s_std() argument 139 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_s_std() 149 static int pvr2_querystd(struct file *file, void *priv, v4l2_std_id *std) in pvr2_querystd() argument 151 struct pvr2_v4l2_fh *fh = file->private_data; in pvr2_querystd() 162 static int pvr2_enum_input(struct file *file, void *priv, struct v4l2_input *vi) in pvr2_enum_input() argument [all …]
|
| /drivers/misc/mei/ |
| D | main.c | 43 * @file: pointer to file structure 47 static int mei_open(struct inode *inode, struct file *file) in mei_open() argument 71 cl->fp = file; in mei_open() 72 file->private_data = cl; in mei_open() 76 return nonseekable_open(inode, file); in mei_open() 87 * @fp: pointer to file structure 91 const struct file *fp) in mei_cl_vtag_remove_by_fp() 108 * @file: pointer to file structure 112 static int mei_release(struct inode *inode, struct file *file) in mei_release() argument 114 struct mei_cl *cl = file->private_data; in mei_release() [all …]
|
| /drivers/net/ethernet/mellanox/mlx5/core/steering/ |
| D | dr_dbg.c | 115 mlx5dr_dbg_dump_data_print(struct seq_file *file, char *str, u32 size) in mlx5dr_dbg_dump_data_print() argument 117 struct mlx5dr_domain *dmn = file->private; in mlx5dr_dbg_dump_data_print() 208 dr_dump_rule_action_mem(struct seq_file *file, char *buff, const u64 rule_id, in dr_dump_rule_action_mem() argument 226 ret = mlx5dr_dbg_dump_data_print(file, buff, ret); in dr_dump_rule_action_mem() 247 ret = mlx5dr_dbg_dump_data_print(file, buff, ret); in dr_dump_rule_action_mem() 259 ret = mlx5dr_dbg_dump_data_print(file, buff, ret); in dr_dump_rule_action_mem() 271 ret = mlx5dr_dbg_dump_data_print(file, buff, ret); in dr_dump_rule_action_mem() 296 ret = mlx5dr_dbg_dump_data_print(file, buff, ret); in dr_dump_rule_action_mem() 308 ret = mlx5dr_dbg_dump_data_print(file, buff, ret); in dr_dump_rule_action_mem() 317 ret = mlx5dr_dbg_dump_data_print(file, buff, ret); in dr_dump_rule_action_mem() [all …]
|
| /drivers/infiniband/hw/hfi1/ |
| D | debugfs.c | 25 /* wrappers to enforce srcu in seq file */ 26 ssize_t hfi1_seq_read(struct file *file, char __user *buf, size_t size, in hfi1_seq_read() argument 29 struct dentry *d = file->f_path.dentry; in hfi1_seq_read() 35 r = seq_read(file, buf, size, ppos); in hfi1_seq_read() 40 loff_t hfi1_seq_lseek(struct file *file, loff_t offset, int whence) in hfi1_seq_lseek() argument 42 struct dentry *d = file->f_path.dentry; in hfi1_seq_lseek() 48 r = seq_lseek(file, offset, whence); in hfi1_seq_lseek() 53 #define private2dd(file) (file_inode(file)->i_private) argument 54 #define private2ppd(file) (file_inode(file)->i_private) argument 417 static ssize_t dev_counters_read(struct file *file, char __user *buf, in dev_counters_read() argument [all …]
|
| /drivers/usb/gadget/function/ |
| D | uvc_v4l2.c | 206 uvc_v4l2_querycap(struct file *file, void *fh, struct v4l2_capability *cap) in uvc_v4l2_querycap() argument 208 struct video_device *vdev = video_devdata(file); in uvc_v4l2_querycap() 220 uvc_v4l2_get_format(struct file *file, void *fh, struct v4l2_format *fmt) in uvc_v4l2_get_format() argument 222 struct video_device *vdev = video_devdata(file); in uvc_v4l2_get_format() 239 uvc_v4l2_try_format(struct file *file, void *fh, struct v4l2_format *fmt) in uvc_v4l2_try_format() argument 241 struct video_device *vdev = video_devdata(file); in uvc_v4l2_try_format() 297 uvc_v4l2_set_format(struct file *file, void *fh, struct v4l2_format *fmt) in uvc_v4l2_set_format() argument 299 struct video_device *vdev = video_devdata(file); in uvc_v4l2_set_format() 304 ret = uvc_v4l2_try_format(file, fh, fmt); in uvc_v4l2_set_format() 318 uvc_v4l2_enum_frameintervals(struct file *file, void *fh, in uvc_v4l2_enum_frameintervals() argument [all …]
|
| /drivers/virt/gunyah/ |
| D | vm_mgr_cma_mem.c | 9 #include <linux/file.h> 18 struct file *file; member 48 max_size = i_size_read(file_inode(cma->file)); in gunyah_cma_alloc() 68 static int gunyah_cma_release(struct inode *inode, struct file *file) in gunyah_cma_release() argument 70 struct gunyah_cma *cma = file->private_data; in gunyah_cma_release() 82 static int gunyah_cma_mmap(struct file *file, struct vm_area_struct *vma) in gunyah_cma_mmap() argument 84 struct gunyah_cma *cma = file->private_data; in gunyah_cma_mmap() 90 file_accessed(file); in gunyah_cma_mmap() 146 fput(b->cma.file); in gunyah_cma_reclaim_parcel() 156 struct file *file; in gunyah_cma_share_parcel() local [all …]
|
| /drivers/media/platform/renesas/rcar-vin/ |
| D | rcar-v4l2.c | 310 static int rvin_querycap(struct file *file, void *priv, in rvin_querycap() argument 318 static int rvin_try_fmt_vid_cap(struct file *file, void *priv, in rvin_try_fmt_vid_cap() argument 321 struct rvin_dev *vin = video_drvdata(file); in rvin_try_fmt_vid_cap() 326 static int rvin_s_fmt_vid_cap(struct file *file, void *priv, in rvin_s_fmt_vid_cap() argument 329 struct rvin_dev *vin = video_drvdata(file); in rvin_s_fmt_vid_cap() 354 static int rvin_g_fmt_vid_cap(struct file *file, void *priv, in rvin_g_fmt_vid_cap() argument 357 struct rvin_dev *vin = video_drvdata(file); in rvin_g_fmt_vid_cap() 364 static int rvin_enum_fmt_vid_cap(struct file *file, void *priv, in rvin_enum_fmt_vid_cap() argument 367 struct rvin_dev *vin = video_drvdata(file); in rvin_enum_fmt_vid_cap() 474 static int rvin_g_selection(struct file *file, void *fh, in rvin_g_selection() argument [all …]
|
| /drivers/gpu/drm/i915/gem/ |
| D | i915_gem_ioctls.h | 14 struct drm_file *file); 16 struct drm_file *file); 18 struct drm_file *file); 20 struct drm_file *file); 22 struct drm_file *file); 24 struct drm_file *file); 26 struct drm_file *file); 28 struct drm_file *file); 30 struct drm_file *file); 32 struct drm_file *file); [all …]
|
| /drivers/android/binder/ |
| D | deferred_close.rs | 7 //! This file could make sense to have in `kernel::fs`, but it was rejected for being too 17 /// Helper used for closing file descriptors in a way that is safe even if the file is currently 33 /// If the `file` pointer is non-null, then it points at a `struct file` and owns a refcount to 34 /// that file. 38 file: *mut bindings::file, field 45 // INVARIANT: The `file` pointer is null, so the type invariant does not apply. in new() 49 file: core::ptr::null_mut(), in new() 56 /// Schedule a task work that closes the file descriptor when this task returns to userspace. 63 // In this method, we schedule the task work before closing the file. This is because in close_fd() 65 // attempt to close the file. in close_fd() [all …]
|
| /drivers/misc/ibmasm/ |
| D | ibmasmfs.c | 17 * The IBMASM file virtual filesystem. It creates the following hierarchy 211 /* struct to save state between command file operations */ 217 /* struct to save state between event file operations */ 224 /* struct to save state between reverse heartbeat file operations */ 231 static int command_file_open(struct inode *inode, struct file *file) in command_file_open() argument 244 file->private_data = command_data; in command_file_open() 248 static int command_file_close(struct inode *inode, struct file *file) in command_file_close() argument 250 struct ibmasmfs_command_data *command_data = file->private_data; in command_file_close() 259 static ssize_t command_file_read(struct file *file, char __user *buf, size_t count, loff_t *offset) in command_file_read() argument 261 struct ibmasmfs_command_data *command_data = file->private_data; in command_file_read() [all …]
|