Searched refs:file (Results 251 - 275 of 3464) sorted by relevance

<<11121314151617181920>>

/linux-master/arch/um/os-Linux/
H A Dumid.c86 char file[256]; local
101 if (len > sizeof(file)) {
106 sprintf(file, "%s/%s", dir, ent->d_name);
107 if (unlink(file) < 0 && errno != ENOENT) {
138 char pid[sizeof("nnnnnnnnn")], *end, *file; local
142 file = malloc(filelen);
143 if (!file)
146 snprintf(file, filelen, "%s/pid", dir);
148 fd = open(file, O_RDONLY);
153 "file '
212 char pid[sizeof("nnnnnnnnn")], *file; local
[all...]
/linux-master/drivers/net/wireless/ath/ath9k/
H A Ddebug.c71 static ssize_t ath9k_debugfs_read_buf(struct file *file, char __user *user_buf, argument
74 u8 *buf = file->private_data;
78 static int ath9k_debugfs_release_buf(struct inode *inode, struct file *file) argument
80 vfree(file->private_data);
86 static ssize_t read_file_debug(struct file *file, char __user *user_buf, argument
89 struct ath_softc *sc = file->private_data;
98 static ssize_t write_file_debug(struct file *fil argument
127 read_file_ani(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument
182 write_file_ani(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument
220 read_file_bt_ant_diversity(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument
233 write_file_bt_ant_diversity(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument
284 read_file_antenna_diversity(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument
389 read_file_dma(struct seq_file *file, void *data) argument
512 read_file_interrupt(struct seq_file *file, void *data) argument
576 read_file_xmit(struct seq_file *file, void *data) argument
608 print_queue(struct ath_softc *sc, struct ath_txq *txq, struct seq_file *file) argument
621 read_file_queues(struct seq_file *file, void *data) argument
643 read_file_misc(struct seq_file *file, void *data) argument
735 read_file_reset(struct seq_file *file, void *data) argument
772 write_file_reset(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument
853 read_file_regidx(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument
864 write_file_regidx(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument
887 read_file_regval(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument
903 write_file_regval(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument
931 open_file_regdump(struct inode *inode, struct file *file) argument
983 read_file_dump_nfcal(struct seq_file *file, void *data) argument
1013 read_file_btcoex(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument
1048 read_file_ackto(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument
1072 read_file_wow(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument
1096 write_file_wow(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument
1128 read_file_tpc(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument
1153 write_file_tpc(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument
1190 read_file_nf_override(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument
1207 write_file_nf_override(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument
[all...]
/linux-master/drivers/media/platform/sunxi/sun4i-csi/
H A Dsun4i_v4l2.c53 static int sun4i_csi_querycap(struct file *file, void *priv, argument
62 static int sun4i_csi_enum_input(struct file *file, void *priv, argument
74 static int sun4i_csi_g_input(struct file *file, void *fh, argument
82 static int sun4i_csi_s_input(struct file *file, void *fh, argument
131 static int sun4i_csi_try_fmt_vid_cap(struct file *file, voi argument
141 sun4i_csi_s_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f) argument
152 sun4i_csi_g_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f) argument
162 sun4i_csi_enum_fmt_vid_cap(struct file *file, void *priv, struct v4l2_fmtdesc *f) argument
196 sun4i_csi_open(struct file *file) argument
233 sun4i_csi_release(struct file *file) argument
[all...]
/linux-master/include/linux/
H A Dseq_file.h28 const struct file *file; member in struct:seq_file
109 int seq_open(struct file *, const struct seq_operations *);
110 ssize_t seq_read(struct file *, char __user *, size_t, loff_t *);
112 loff_t seq_lseek(struct file *, loff_t, int);
113 int seq_release(struct inode *, struct file *);
171 int seq_file_path(struct seq_file *, struct file *, const char *);
177 int single_open(struct file *, int (*)(struct seq_file *, void *), void *);
178 int single_open_size(struct file *, int (*)(struct seq_file *, void *), void *, size_t);
179 int single_release(struct inode *, struct file *);
[all...]
/linux-master/drivers/accel/ivpu/
H A Divpu_debugfs.c122 dvfs_mode_fops_write(struct file *file, const char __user *user_buf, size_t size, loff_t *pos) argument
124 struct ivpu_device *vdev = file->private_data;
157 static int fw_log_fops_open(struct inode *inode, struct file *file) argument
159 return single_open(file, fw_log_show, inode->i_private);
163 fw_log_fops_write(struct file *file, const char __user *user_buf, size_t size, loff_t *pos) argument
165 struct seq_file *s = file->private_data;
185 fw_profiling_freq_fops_write(struct file *fil argument
212 fw_trace_destination_mask_fops_write(struct file *file, const char __user *user_buf, size_t size, loff_t *pos) argument
239 fw_trace_hw_comp_mask_fops_write(struct file *file, const char __user *user_buf, size_t size, loff_t *pos) argument
266 fw_trace_level_fops_write(struct file *file, const char __user *user_buf, size_t size, loff_t *pos) argument
292 ivpu_force_recovery_fn(struct file *file, const char __user *user_buf, size_t size, loff_t *pos) argument
317 ivpu_reset_engine_fn(struct file *file, const char __user *user_buf, size_t size, loff_t *pos) argument
[all...]
/linux-master/fs/
H A Dbacking-file.c5 * Forked from fs/overlayfs/file.c.
12 #include <linux/backing-file.h>
19 * backing_file_open - open a backing file for kernel internal use
22 * @real_path: path of the backing file
25 * Open a backing file for a stackable filesystem (e.g., overlayfs).
29 * returned file into a container structure that also stores the stacked
30 * file's path, which can be retrieved using backing_file_user_path().
32 struct file *backing_file_open(const struct path *user_path, int flags,
36 struct file *f;
55 struct file *backing_tmpfile_ope
161 backing_file_read_iter(struct file *file, struct iov_iter *iter, struct kiocb *iocb, int flags, struct backing_file_ctx *ctx) argument
209 backing_file_write_iter(struct file *file, struct iov_iter *iter, struct kiocb *iocb, int flags, struct backing_file_ctx *ctx) argument
323 backing_file_mmap(struct file *file, struct vm_area_struct *vma, struct backing_file_ctx *ctx) argument
[all...]
/linux-master/include/trace/events/
H A Dfilemap.h85 TP_PROTO(struct file *file, errseq_t old),
87 TP_ARGS(file, old),
90 __field(struct file *, file)
98 __entry->file = file;
99 __entry->i_ino = file->f_mapping->host->i_ino;
100 if (file->f_mapping->host->i_sb)
102 file
[all...]
/linux-master/arch/x86/kernel/cpu/sgx/
H A Ddriver.c17 static int sgx_open(struct inode *inode, struct file *file) argument
39 file->private_data = encl;
44 static int sgx_release(struct inode *inode, struct file *file) argument
46 struct sgx_encl *encl = file->private_data;
51 * entries for processes, which have closed the enclave file but have
84 static int sgx_mmap(struct file *file, struct vm_area_struct *vma) argument
86 struct sgx_encl *encl = file
104 sgx_get_unmapped_area(struct file *file, unsigned long addr, unsigned long len, unsigned long pgoff, unsigned long flags) argument
[all...]
/linux-master/drivers/char/
H A Dmem.c100 static ssize_t read_mem(struct file *file, char __user *buf, argument
187 static ssize_t write_mem(struct file *file, const char __user *buf, argument
260 int __weak phys_mem_access_prot_allowed(struct file *file, argument
274 static int uncached_access(struct file *file, phys_addr_t addr) argument
278 * file pointer
281 if (file
287 phys_mem_access_prot(struct file *file, unsigned long pfn, unsigned long size, pgprot_t vma_prot) argument
301 get_unmapped_area_mem(struct file *file, unsigned long addr, unsigned long len, unsigned long pgoff, unsigned long flags) argument
313 memory_mmap_capabilities(struct file *file) argument
319 zero_mmap_capabilities(struct file *file) argument
343 mmap_mem(struct file *file, struct vm_area_struct *vma) argument
387 read_port(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
405 write_port(struct file *file, const char __user *buf, size_t count, loff_t *ppos) argument
430 read_null(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
436 write_null(struct file *file, const char __user *buf, size_t count, loff_t *ppos) argument
495 read_zero(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
522 mmap_zero(struct file *file, struct vm_area_struct *vma) argument
533 get_unmapped_area_zero(struct file *file, unsigned long addr, unsigned long len, unsigned long pgoff, unsigned long flags) argument
555 write_full(struct file *file, const char __user *buf, size_t count, loff_t *ppos) argument
566 null_lseek(struct file *file, loff_t offset, int orig) argument
579 memory_lseek(struct file *file, loff_t offset, int orig) argument
[all...]
/linux-master/drivers/media/v4l2-core/
H A Dv4l2-mem2mem.c531 * request file descriptor.
534 * to avoid signalling the request file descriptor
575 int v4l2_m2m_reqbufs(struct file *file, struct v4l2_m2m_ctx *m2m_ctx, argument
586 vq->owner = reqbufs->count ? file->private_data : NULL;
609 int v4l2_m2m_querybuf(struct file *file, struct v4l2_m2m_ctx *m2m_ctx, argument
761 int v4l2_m2m_qbuf(struct file *file, struct v4l2_m2m_ctx *m2m_ctx, argument
764 struct video_device *vdev = video_devdata(file);
800 v4l2_m2m_dqbuf(struct file *file, struct v4l2_m2m_ctx *m2m_ctx, struct v4l2_buffer *buf) argument
818 v4l2_m2m_prepare_buf(struct file *file, struct v4l2_m2m_ctx *m2m_ctx, struct v4l2_buffer *buf) argument
837 v4l2_m2m_create_bufs(struct file *file, struct v4l2_m2m_ctx *m2m_ctx, struct v4l2_create_buffers *create) argument
847 v4l2_m2m_expbuf(struct file *file, struct v4l2_m2m_ctx *m2m_ctx, struct v4l2_exportbuffer *eb) argument
857 v4l2_m2m_streamon(struct file *file, struct v4l2_m2m_ctx *m2m_ctx, enum v4l2_buf_type type) argument
872 v4l2_m2m_streamoff(struct file *file, struct v4l2_m2m_ctx *m2m_ctx, enum v4l2_buf_type type) argument
912 v4l2_m2m_poll_for_data(struct file *file, struct v4l2_m2m_ctx *m2m_ctx, struct poll_table_struct *wait) argument
951 v4l2_m2m_poll(struct file *file, struct v4l2_m2m_ctx *m2m_ctx, struct poll_table_struct *wait) argument
985 v4l2_m2m_mmap(struct file *file, struct v4l2_m2m_ctx *m2m_ctx, struct vm_area_struct *vma) argument
1003 v4l2_m2m_get_unmapped_area(struct file *file, unsigned long addr, unsigned long len, unsigned long pgoff, unsigned long flags) argument
1371 v4l2_m2m_ioctl_reqbufs(struct file *file, void *priv, struct v4l2_requestbuffers *rb) argument
1380 v4l2_m2m_ioctl_create_bufs(struct file *file, void *priv, struct v4l2_create_buffers *create) argument
1389 v4l2_m2m_ioctl_remove_bufs(struct file *file, void *priv, struct v4l2_remove_buffers *remove) argument
1404 v4l2_m2m_ioctl_querybuf(struct file *file, void *priv, struct v4l2_buffer *buf) argument
1413 v4l2_m2m_ioctl_qbuf(struct file *file, void *priv, struct v4l2_buffer *buf) argument
1422 v4l2_m2m_ioctl_dqbuf(struct file *file, void *priv, struct v4l2_buffer *buf) argument
1431 v4l2_m2m_ioctl_prepare_buf(struct file *file, void *priv, struct v4l2_buffer *buf) argument
1440 v4l2_m2m_ioctl_expbuf(struct file *file, void *priv, struct v4l2_exportbuffer *eb) argument
1449 v4l2_m2m_ioctl_streamon(struct file *file, void *priv, enum v4l2_buf_type type) argument
1458 v4l2_m2m_ioctl_streamoff(struct file *file, void *priv, enum v4l2_buf_type type) argument
1467 v4l2_m2m_ioctl_try_encoder_cmd(struct file *file, void *fh, struct v4l2_encoder_cmd *ec) argument
1478 v4l2_m2m_ioctl_try_decoder_cmd(struct file *file, void *fh, struct v4l2_decoder_cmd *dc) argument
1500 v4l2_m2m_encoder_cmd(struct file *file, struct v4l2_m2m_ctx *m2m_ctx, struct v4l2_encoder_cmd *ec) argument
1523 v4l2_m2m_decoder_cmd(struct file *file, struct v4l2_m2m_ctx *m2m_ctx, struct v4l2_decoder_cmd *dc) argument
1542 v4l2_m2m_ioctl_encoder_cmd(struct file *file, void *priv, struct v4l2_encoder_cmd *ec) argument
1551 v4l2_m2m_ioctl_decoder_cmd(struct file *file, void *priv, struct v4l2_decoder_cmd *dc) argument
1560 v4l2_m2m_ioctl_stateless_try_decoder_cmd(struct file *file, void *fh, struct v4l2_decoder_cmd *dc) argument
1572 v4l2_m2m_ioctl_stateless_decoder_cmd(struct file *file, void *priv, struct v4l2_decoder_cmd *dc) argument
1618 v4l2_m2m_fop_mmap(struct file *file, struct vm_area_struct *vma) argument
1626 v4l2_m2m_fop_poll(struct file *file, poll_table *wait) argument
[all...]
/linux-master/fs/lockd/
H A Dsvcshare.c28 nlmsvc_share_file(struct nlm_host *host, struct nlm_file *file, argument
35 for (share = file->f_shares; share; share = share->s_next) {
52 share->s_file = file;
56 share->s_next = file->f_shares;
57 file->f_shares = share;
69 nlmsvc_unshare_file(struct nlm_host *host, struct nlm_file *file, argument
75 for (shpp = &file->f_shares; (share = *shpp) != NULL;
90 * Traverse all shares for a given file, and delete
93 void nlmsvc_traverse_shares(struct nlm_host *host, struct nlm_file *file, argument
98 shpp = &file
[all...]
H A Dprocfs.c21 nlm_end_grace_write(struct file *file, const char __user *buf, size_t size, argument
31 data = simple_transaction_get(file, buf, size);
49 nlm_end_grace_read(struct file *file, char __user *buf, size_t size, argument
/linux-master/drivers/net/wireless/ti/wlcore/
H A Ddebugfs.h3 * This file is part of wl1271
26 static ssize_t name## _read(struct file *file, char __user *userbuf, \
29 struct wl1271 *wl = file->private_data; \
54 static ssize_t sub## _ ##name## _read(struct file *file, \
58 struct wl1271 *wl = file->private_data; \
74 static ssize_t sub## _ ##name## _read(struct file *file, \
78 struct wl1271 *wl = file
[all...]
/linux-master/drivers/scsi/fnic/
H A Dfnic_debugfs.c35 * 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,
114 pr_err("fnic: Cannot read to any debugfs file\n");
122 * fc_trace_clear debugfs file
123 * @filp: The file pointe
194 fnic_trace_debugfs_open(struct inode *inode, struct file *file) argument
245 fnic_trace_debugfs_lseek(struct file *file, loff_t offset, int howto) argument
270 fnic_trace_debugfs_read(struct file *file, char __user *ubuf, size_t nbytes, loff_t *pos) argument
296 fnic_trace_debugfs_release(struct inode *inode, struct file *file) argument
432 fnic_reset_stats_open(struct inode *inode, struct file *file) argument
462 fnic_reset_stats_read(struct file *file, char __user *ubuf, size_t cnt, loff_t *ppos) argument
490 fnic_reset_stats_write(struct file *file, const char __user *ubuf, size_t cnt, loff_t *ppos) argument
554 fnic_reset_stats_release(struct inode *inode, struct file *file) argument
575 fnic_stats_debugfs_open(struct inode *inode, struct file *file) argument
618 fnic_stats_debugfs_read(struct file *file, char __user *ubuf, size_t nbytes, loff_t *pos) argument
644 fnic_stats_debugfs_release(struct inode *inode, struct file *file) argument
[all...]
/linux-master/kernel/
H A Dacct.c12 * This file implements BSD-style process accounting. Whenever any
14 * written to the file specified with the acct() system call. It is
21 * the file happened to be read-only. 2) If the accounting was suspended
44 * a struct file opened for write. Fixed. 2/6/2000, AV.
51 #include <linux/file.h>
108 struct file *file; member in struct:bsd_acct_struct
127 if (vfs_statfs(&acct->file->f_path, &sbuf))
204 struct file *file local
213 struct file *file; local
496 struct file *file = acct->file; local
[all...]
/linux-master/fs/jfs/
H A Djfs_debug.c26 static int jfs_loglevel_proc_open(struct inode *inode, struct file *file) argument
28 return single_open(file, jfs_loglevel_proc_show, NULL);
31 static ssize_t jfs_loglevel_proc_write(struct file *file, argument
/linux-master/arch/um/kernel/
H A Dexitcode.c34 static int exitcode_proc_open(struct inode *inode, struct file *file) argument
36 return single_open(file, exitcode_proc_show, NULL);
39 static ssize_t exitcode_proc_write(struct file *file, argument
/linux-master/sound/core/
H A Dhwdep_compat.c7 /* This file is included from hwdep.c */
39 static long snd_hwdep_ioctl_compat(struct file * file, unsigned int cmd, argument
42 struct snd_hwdep *hw = file->private_data;
48 return snd_hwdep_ioctl(file, cmd, (unsigned long)argp);
53 return hw->ops.ioctl_compat(hw, file, cmd, arg);
/linux-master/drivers/gpu/drm/tegra/
H A Dgem.h64 struct tegra_bo *tegra_bo_create_with_handle(struct drm_file *file,
70 int tegra_bo_dumb_create(struct drm_file *file, struct drm_device *drm,
76 int tegra_drm_mmap(struct file *file, struct vm_area_struct *vma);
83 struct host1x_bo *tegra_gem_lookup(struct drm_file *file, u32 handle);
/linux-master/include/drm/
H A Ddrm_gem_framebuffer_helper.h21 int drm_gem_fb_create_handle(struct drm_framebuffer *fb, struct drm_file *file,
26 struct drm_file *file,
30 drm_gem_fb_create_with_funcs(struct drm_device *dev, struct drm_file *file,
34 drm_gem_fb_create(struct drm_device *dev, struct drm_file *file,
37 drm_gem_fb_create_with_dirty(struct drm_device *dev, struct drm_file *file,
H A Ddrm_ioctl.h42 struct file;
48 * @file_priv: DRM file this ioctl was made on
59 * @filp: file pointer
61 * @arg: DRM file this ioctl was made on
67 typedef int drm_ioctl_compat_t(struct file *filp, unsigned int cmd,
85 * file descriptor is either for a render node, or if it's a
104 * Anything that could potentially wreak a master file descriptor needs
159 long drm_ioctl(struct file *filp, unsigned int cmd, unsigned long arg);
160 long drm_ioctl_kernel(struct file *, drm_ioctl_t, void *, u32);
162 long drm_compat_ioctl(struct file *fil
[all...]
/linux-master/tools/testing/selftests/cgroup/
H A Dwait_inotify.c3 * Wait until an inotify event on the given cgroup file.
20 static char *file; variable
25 fprintf(stderr, msg, file);
48 file = argv[1];
49 fd = open(file, O_RDONLY);
51 fail_message("Cgroup file %s not found!\n");
57 if (inotify_add_watch(fd, file, IN_MODIFY) < 0)
/linux-master/drivers/media/radio/si4713/
H A Dradio-platform-si4713.c45 /* radio_si4713_fops - file operations interface */
58 static int radio_si4713_querycap(struct file *file, void *priv, argument
73 static inline struct v4l2_device *get_v4l2_dev(struct file *file) argument
75 return &((struct radio_si4713_device *)video_drvdata(file))->v4l2_dev;
78 static int radio_si4713_g_modulator(struct file *file, void *p, argument
81 return v4l2_device_call_until_err(get_v4l2_dev(file), 0, tuner,
85 static int radio_si4713_s_modulator(struct file *fil argument
92 radio_si4713_g_frequency(struct file *file, void *p, struct v4l2_frequency *vf) argument
99 radio_si4713_s_frequency(struct file *file, void *p, const struct v4l2_frequency *vf) argument
106 radio_si4713_default(struct file *file, void *p, bool valid_prio, unsigned int cmd, void *arg) argument
[all...]
/linux-master/drivers/infiniband/hw/hfi1/
H A Ddebugfs.h20 static int _##name##_open(struct inode *inode, struct file *s) \
42 ssize_t hfi1_seq_read(struct file *file, char __user *buf, size_t size,
44 loff_t hfi1_seq_lseek(struct file *file, loff_t offset, int whence);
/linux-master/fs/afs/
H A Ddir_silly.c19 afs_check_dir_conflict(op, &op->file[0]);
20 afs_vnode_commit_status(op, &op->file[0]);
25 struct afs_vnode_param *dvp = &op->file[0];
74 op->file[0].dv_delta = 1;
75 op->file[1].dv_delta = 1;
76 op->file[0].modification = true;
77 op->file[1].modification = true;
78 op->file[0].update_ctime = true;
79 op->file[1].update_ctime = true;
93 * file ope
[all...]

Completed in 171 milliseconds

<<11121314151617181920>>