Home
last modified time | relevance | path

Searched refs:file (Results 1 – 25 of 1506) sorted by relevance

12345678910>>...61

/drivers/media/test-drivers/vivid/
Dvivid-vid-cap.h20 int vivid_g_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f);
21 int vivid_try_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f);
22 int vivid_s_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f);
23 int vidioc_g_fmt_vid_cap_mplane(struct file *file, void *priv, struct v4l2_format *f);
24 int vidioc_try_fmt_vid_cap_mplane(struct file *file, void *priv, struct v4l2_format *f);
25 int vidioc_s_fmt_vid_cap_mplane(struct file *file, void *priv, struct v4l2_format *f);
26 int vidioc_g_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f);
27 int vidioc_try_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f);
28 int vidioc_s_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f);
29 int vivid_vid_cap_g_selection(struct file *file, void *priv, struct v4l2_selection *sel);
[all …]
Dvivid-vid-out.h15 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 …]
Dvivid-sdr-cap.h11 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);
Dvivid-vid-common.h11 typedef int (*fmtfunc)(struct file *file, void *priv, struct v4l2_format *f);
18 int fmt_sp2mp_func(struct file *file, void *priv,
30 int vivid_enum_fmt_vid(struct file *file, void *priv, struct v4l2_fmtdesc *f);
31 int vidioc_g_std(struct file *file, void *priv, v4l2_std_id *id);
32 int vidioc_g_dv_timings(struct file *file, void *_fh, struct v4l2_dv_timings *timings);
33 int vidioc_enum_dv_timings(struct file *file, void *_fh, struct v4l2_enum_dv_timings *timings);
34 int vidioc_dv_timings_cap(struct file *file, void *_fh, struct v4l2_dv_timings_cap *cap);
35 int vidioc_g_edid(struct file *file, void *_fh, struct v4l2_edid *edid);
/drivers/gpu/drm/i915/gt/
Dshmem_utils.c14 struct file *shmem_create_from_data(const char *name, void *data, size_t len) in shmem_create_from_data()
16 struct file *file; in shmem_create_from_data() local
19 file = shmem_file_setup(name, PAGE_ALIGN(len), VM_NORESERVE); in shmem_create_from_data()
20 if (IS_ERR(file)) in shmem_create_from_data()
21 return file; in shmem_create_from_data()
23 err = shmem_write(file, 0, data, len); in shmem_create_from_data()
25 fput(file); in shmem_create_from_data()
29 return file; in shmem_create_from_data()
32 struct file *shmem_create_from_object(struct drm_i915_gem_object *obj) in shmem_create_from_object()
34 struct file *file; in shmem_create_from_object() local
[all …]
/drivers/infiniband/core/
Duser_mad.c171 static int hdr_size(struct ib_umad_file *file) in hdr_size() argument
173 return file->use_pkey_index ? sizeof(struct ib_user_mad_hdr) : in hdr_size()
178 static struct ib_mad_agent *__get_agent(struct ib_umad_file *file, int id) in __get_agent() argument
180 return file->agents_dead ? NULL : file->agent[id]; in __get_agent()
183 static int queue_packet(struct ib_umad_file *file, in queue_packet() argument
189 mutex_lock(&file->mutex); in queue_packet()
194 if (agent == __get_agent(file, packet->mad.hdr.id)) { in queue_packet()
195 list_add_tail(&packet->list, &file->recv_list); in queue_packet()
196 wake_up_interruptible(&file->recv_wait); in queue_packet()
201 mutex_unlock(&file->mutex); in queue_packet()
[all …]
/drivers/net/wireless/mediatek/mt76/
Dmt76x02_debugfs.c10 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/gpu/drm/
Ddrm_file.c157 struct drm_file *file; in drm_file_alloc() local
160 file = kzalloc(sizeof(*file), GFP_KERNEL); in drm_file_alloc()
161 if (!file) in drm_file_alloc()
164 file->pid = get_pid(task_pid(current)); in drm_file_alloc()
165 file->minor = minor; in drm_file_alloc()
168 file->authenticated = capable(CAP_SYS_ADMIN); in drm_file_alloc()
170 INIT_LIST_HEAD(&file->lhead); in drm_file_alloc()
171 INIT_LIST_HEAD(&file->fbs); in drm_file_alloc()
172 mutex_init(&file->fbs_lock); in drm_file_alloc()
173 INIT_LIST_HEAD(&file->blobs); in drm_file_alloc()
[all …]
Ddrm_ioc32.c91 static int compat_drm_version(struct file *file, unsigned int cmd, in compat_drm_version() argument
111 err = drm_ioctl_kernel(file, drm_version, &v, in compat_drm_version()
132 static int compat_drm_getunique(struct file *file, unsigned int cmd, in compat_drm_getunique() argument
149 err = drm_ioctl_kernel(file, drm_getunique, &uq, 0); in compat_drm_getunique()
159 static int compat_drm_setunique(struct file *file, unsigned int cmd, in compat_drm_setunique() argument
176 static int compat_drm_getmap(struct file *file, unsigned int cmd, in compat_drm_getmap() argument
188 err = drm_ioctl_kernel(file, drm_legacy_getmap_ioctl, &map, 0); in compat_drm_getmap()
204 static int compat_drm_addmap(struct file *file, unsigned int cmd, in compat_drm_addmap() argument
220 err = drm_ioctl_kernel(file, drm_legacy_addmap_ioctl, &map, in compat_drm_addmap()
238 static int compat_drm_rmmap(struct file *file, unsigned int cmd, in compat_drm_rmmap() argument
[all …]
/drivers/net/wireless/marvell/libertas/
Ddebugfs.c25 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/gpu/drm/i915/gem/
Di915_gem_ioctls.h14 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/media/usb/pvrusb2/
Dpvrusb2-v4l2.c43 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/net/wireless/ath/ath9k/
Ddebug.c71 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()
132 static ssize_t read_file_ani(struct file *file, char __user *user_buf, in read_file_ani() argument
135 struct ath_softc *sc = file->private_data; in read_file_ani()
[all …]
/drivers/usb/gadget/function/
Duvc_v4l2.c203 uvc_v4l2_querycap(struct file *file, void *fh, struct v4l2_capability *cap) in uvc_v4l2_querycap() argument
205 struct video_device *vdev = video_devdata(file); in uvc_v4l2_querycap()
217 uvc_v4l2_get_format(struct file *file, void *fh, struct v4l2_format *fmt) in uvc_v4l2_get_format() argument
219 struct video_device *vdev = video_devdata(file); in uvc_v4l2_get_format()
236 uvc_v4l2_try_format(struct file *file, void *fh, struct v4l2_format *fmt) in uvc_v4l2_try_format() argument
238 struct video_device *vdev = video_devdata(file); in uvc_v4l2_try_format()
276 uvc_v4l2_set_format(struct file *file, void *fh, struct v4l2_format *fmt) in uvc_v4l2_set_format() argument
278 struct video_device *vdev = video_devdata(file); in uvc_v4l2_set_format()
283 ret = uvc_v4l2_try_format(file, fh, fmt); in uvc_v4l2_set_format()
297 uvc_v4l2_enum_frameintervals(struct file *file, void *fh, in uvc_v4l2_enum_frameintervals() argument
[all …]
/drivers/char/
Dmem.c111 static ssize_t read_mem(struct file *file, char __user *buf, in read_mem() argument
198 static ssize_t write_mem(struct file *file, const char __user *buf, in write_mem() argument
271 int __weak phys_mem_access_prot_allowed(struct file *file, in phys_mem_access_prot_allowed() argument
285 static int uncached_access(struct file *file, phys_addr_t addr) in uncached_access() argument
299 if (file->f_flags & O_DSYNC) in uncached_access()
306 static pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn, in phys_mem_access_prot() argument
312 if (uncached_access(file, offset)) in phys_mem_access_prot()
320 static unsigned long get_unmapped_area_mem(struct file *file, in get_unmapped_area_mem() argument
332 static unsigned memory_mmap_capabilities(struct file *file) in memory_mmap_capabilities() argument
338 static unsigned zero_mmap_capabilities(struct file *file) in zero_mmap_capabilities() argument
[all …]
/drivers/media/v4l2-core/
Dv4l2-ioctl.c920 static int check_fmt(struct file *file, enum v4l2_buf_type type) in check_fmt() argument
929 struct video_device *vfd = video_devdata(file); in check_fmt()
1045 struct file *file, void *fh, void *arg) in v4l_querycap() argument
1048 struct video_device *vfd = video_devdata(file); in v4l_querycap()
1055 ret = ops->vidioc_querycap(file, fh, cap); in v4l_querycap()
1076 struct file *file, void *fh, void *arg) in v4l_g_input() argument
1078 struct video_device *vfd = video_devdata(file); in v4l_g_input()
1085 return ops->vidioc_g_input(file, fh, arg); in v4l_g_input()
1089 struct file *file, void *fh, void *arg) in v4l_g_output() argument
1091 struct video_device *vfd = video_devdata(file); in v4l_g_output()
[all …]
/drivers/net/wireless/ti/wlcore/
Ddebugfs.c80 static ssize_t tx_queue_len_read(struct file *file, char __user *userbuf, in tx_queue_len_read() argument
83 struct wl1271 *wl = file->private_data; in tx_queue_len_read()
128 static ssize_t param##_read(struct file *file, \
132 struct wl1271 *wl = file->private_data; \
138 static ssize_t param##_write(struct file *file, \
142 struct wl1271 *wl = file->private_data; \
180 static ssize_t gpio_power_read(struct file *file, char __user *user_buf, in gpio_power_read() argument
183 struct wl1271 *wl = file->private_data; in gpio_power_read()
194 static ssize_t gpio_power_write(struct file *file, in gpio_power_write() argument
198 struct wl1271 *wl = file->private_data; in gpio_power_write()
[all …]
/drivers/net/wireless/mediatek/mt7601u/
Ddebugfs.c33 mt7601u_ampdu_stat_show(struct seq_file *file, void *data) in mt7601u_ampdu_stat_show() argument
35 struct mt7601u_dev *dev = file->private; in mt7601u_ampdu_stat_show()
39 seq_printf(file, #name ":\t%llu\n", dev->stats.grp[off]) in mt7601u_ampdu_stat_show()
62 seq_puts(file, "Aggregations stats:\n"); in mt7601u_ampdu_stat_show()
65 seq_printf(file, "%08llx ", in mt7601u_ampdu_stat_show()
67 seq_putc(file, '\n'); in mt7601u_ampdu_stat_show()
70 seq_printf(file, "recent average AMPDU len: %d\n", in mt7601u_ampdu_stat_show()
79 mt7601u_eeprom_param_show(struct seq_file *file, void *data) in mt7601u_eeprom_param_show() argument
81 struct mt7601u_dev *dev = file->private; in mt7601u_eeprom_param_show()
86 seq_printf(file, "RF freq offset: %hhx\n", dev->ee->rf_freq_off); in mt7601u_eeprom_param_show()
[all …]
/drivers/net/ethernet/netronome/nfp/
Dnfp_net_debugfs.c11 static int nfp_rx_q_show(struct seq_file *file, void *data) in nfp_rx_q_show() argument
13 struct nfp_net_r_vector *r_vec = file->private; in nfp_rx_q_show()
35 seq_printf(file, "RX[%02d,%02d]: cnt=%u dma=%pad host=%p H_RD=%u H_WR=%u FL_RD=%u FL_WR=%u\n", in nfp_rx_q_show()
42 seq_printf(file, "%04d: 0x%08x 0x%08x", i, in nfp_rx_q_show()
47 seq_printf(file, " frag=%p", frag); in nfp_rx_q_show()
50 seq_printf(file, " dma_addr=%pad", in nfp_rx_q_show()
54 seq_puts(file, " H_RD "); in nfp_rx_q_show()
56 seq_puts(file, " H_WR "); in nfp_rx_q_show()
58 seq_puts(file, " FL_RD"); in nfp_rx_q_show()
60 seq_puts(file, " FL_WR"); in nfp_rx_q_show()
[all …]
/drivers/media/radio/wl128x/
Dfmdrv_v4l2.c32 static ssize_t fm_v4l2_fops_read(struct file *file, char __user * buf, in fm_v4l2_fops_read() argument
39 fmdev = video_drvdata(file); in fm_v4l2_fops_read()
65 ret = fmc_transfer_rds_from_internal_buff(fmdev, file, buf, count); in fm_v4l2_fops_read()
72 static ssize_t fm_v4l2_fops_write(struct file *file, const char __user * buf, in fm_v4l2_fops_write() argument
86 fmdev = video_drvdata(file); in fm_v4l2_fops_write()
96 static __poll_t fm_v4l2_fops_poll(struct file *file, struct poll_table_struct *pts) in fm_v4l2_fops_poll() argument
101 fmdev = video_drvdata(file); in fm_v4l2_fops_poll()
103 ret = fmc_is_rds_data_available(fmdev, file, pts); in fm_v4l2_fops_poll()
115 static int fm_v4l2_fops_open(struct file *file) in fm_v4l2_fops_open() argument
126 fmdev = video_drvdata(file); in fm_v4l2_fops_open()
[all …]
/drivers/infiniband/hw/hfi1/
Ddebugfs.c27 ssize_t hfi1_seq_read(struct file *file, char __user *buf, size_t size, in hfi1_seq_read() argument
30 struct dentry *d = file->f_path.dentry; in hfi1_seq_read()
36 r = seq_read(file, buf, size, ppos); in hfi1_seq_read()
41 loff_t hfi1_seq_lseek(struct file *file, loff_t offset, int whence) in hfi1_seq_lseek() argument
43 struct dentry *d = file->f_path.dentry; in hfi1_seq_lseek()
49 r = seq_lseek(file, offset, whence); in hfi1_seq_lseek()
54 #define private2dd(file) (file_inode(file)->i_private) argument
55 #define private2ppd(file) (file_inode(file)->i_private) argument
418 static ssize_t dev_counters_read(struct file *file, char __user *buf, in dev_counters_read() argument
426 dd = private2dd(file); in dev_counters_read()
[all …]
/drivers/xen/xenfs/
Dxenstored.c12 static ssize_t xsd_read(struct file *file, char __user *buf, in xsd_read() argument
15 const char *str = (const char *)file->private_data; in xsd_read()
19 static int xsd_release(struct inode *inode, struct file *file) in xsd_release() argument
21 kfree(file->private_data); in xsd_release()
25 static int xsd_kva_open(struct inode *inode, struct file *file) in xsd_kva_open() argument
27 file->private_data = (void *)kasprintf(GFP_KERNEL, "0x%p", in xsd_kva_open()
29 if (!file->private_data) in xsd_kva_open()
34 static int xsd_kva_mmap(struct file *file, struct vm_area_struct *vma) in xsd_kva_mmap() argument
56 static int xsd_port_open(struct inode *inode, struct file *file) in xsd_port_open() argument
58 file->private_data = (void *)kasprintf(GFP_KERNEL, "%d", in xsd_port_open()
[all …]
/drivers/media/platform/rcar-vin/
Drcar-v4l2.c303 static int rvin_querycap(struct file *file, void *priv, in rvin_querycap() argument
306 struct rvin_dev *vin = video_drvdata(file); in rvin_querycap()
315 static int rvin_try_fmt_vid_cap(struct file *file, void *priv, in rvin_try_fmt_vid_cap() argument
318 struct rvin_dev *vin = video_drvdata(file); in rvin_try_fmt_vid_cap()
323 static int rvin_s_fmt_vid_cap(struct file *file, void *priv, in rvin_s_fmt_vid_cap() argument
326 struct rvin_dev *vin = video_drvdata(file); in rvin_s_fmt_vid_cap()
352 static int rvin_g_fmt_vid_cap(struct file *file, void *priv, in rvin_g_fmt_vid_cap() argument
355 struct rvin_dev *vin = video_drvdata(file); in rvin_g_fmt_vid_cap()
362 static int rvin_enum_fmt_vid_cap(struct file *file, void *priv, in rvin_enum_fmt_vid_cap() argument
365 struct rvin_dev *vin = video_drvdata(file); in rvin_enum_fmt_vid_cap()
[all …]
/drivers/media/pci/cx18/
Dcx18-ioctl.c134 static int cx18_g_fmt_vid_cap(struct file *file, void *fh, in cx18_g_fmt_vid_cap() argument
158 static int cx18_g_fmt_vbi_cap(struct file *file, void *fh, in cx18_g_fmt_vbi_cap() argument
177 static int cx18_g_fmt_sliced_vbi_cap(struct file *file, void *fh, in cx18_g_fmt_sliced_vbi_cap() argument
202 static int cx18_try_fmt_vid_cap(struct file *file, void *fh, in cx18_try_fmt_vid_cap() argument
226 static int cx18_try_fmt_vbi_cap(struct file *file, void *fh, in cx18_try_fmt_vbi_cap() argument
229 return cx18_g_fmt_vbi_cap(file, fh, fmt); in cx18_try_fmt_vbi_cap()
232 static int cx18_try_fmt_sliced_vbi_cap(struct file *file, void *fh, in cx18_try_fmt_sliced_vbi_cap() argument
251 static int cx18_s_fmt_vid_cap(struct file *file, void *fh, in cx18_s_fmt_vid_cap() argument
263 ret = cx18_try_fmt_vid_cap(file, fh, fmt); in cx18_s_fmt_vid_cap()
291 return cx18_g_fmt_vid_cap(file, fh, fmt); in cx18_s_fmt_vid_cap()
[all …]
/drivers/scsi/bfa/
Dbfad_debugfs.c43 bfad_debugfs_open_drvtrc(struct inode *inode, struct file *file) in bfad_debugfs_open_drvtrc() argument
56 file->private_data = debug; in bfad_debugfs_open_drvtrc()
62 bfad_debugfs_open_fwtrc(struct inode *inode, struct file *file) in bfad_debugfs_open_fwtrc() argument
98 file->private_data = fw_debug; in bfad_debugfs_open_fwtrc()
104 bfad_debugfs_open_fwsave(struct inode *inode, struct file *file) in bfad_debugfs_open_fwsave() argument
140 file->private_data = fw_debug; in bfad_debugfs_open_fwsave()
146 bfad_debugfs_open_reg(struct inode *inode, struct file *file) in bfad_debugfs_open_reg() argument
156 file->private_data = reg_debug; in bfad_debugfs_open_reg()
163 bfad_debugfs_lseek(struct file *file, loff_t offset, int orig) in bfad_debugfs_lseek() argument
165 struct bfad_debug_info *debug = file->private_data; in bfad_debugfs_lseek()
[all …]

12345678910>>...61