Home
last modified time | relevance | path

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

12345678910>>...120

/linux-3.4.99/include/media/
Dv4l2-ioctl.h24 int (*vidioc_querycap)(struct file *file, void *fh, struct v4l2_capability *cap);
27 int (*vidioc_g_priority) (struct file *file, void *fh,
29 int (*vidioc_s_priority) (struct file *file, void *fh,
33 int (*vidioc_enum_fmt_vid_cap) (struct file *file, void *fh,
35 int (*vidioc_enum_fmt_vid_overlay) (struct file *file, void *fh,
37 int (*vidioc_enum_fmt_vid_out) (struct file *file, void *fh,
39 int (*vidioc_enum_fmt_vid_cap_mplane)(struct file *file, void *fh,
41 int (*vidioc_enum_fmt_vid_out_mplane)(struct file *file, void *fh,
43 int (*vidioc_enum_fmt_type_private)(struct file *file, void *fh,
47 int (*vidioc_g_fmt_vid_cap) (struct file *file, void *fh,
[all …]
/linux-3.4.99/fs/
Dfile_table.c47 struct file *f = container_of(head, struct file, f_u.fu_rcuhead); in file_free_rcu()
53 static inline void file_free(struct file *f) in file_free()
105 struct file *get_empty_filp(void) in get_empty_filp()
109 struct file * f; in get_empty_filp()
169 struct file *alloc_file(struct path *path, fmode_t mode, in alloc_file()
172 struct file *file; in alloc_file() local
174 file = get_empty_filp(); in alloc_file()
175 if (!file) in alloc_file()
178 file->f_path = *path; in alloc_file()
179 file->f_mapping = path->dentry->d_inode->i_mapping; in alloc_file()
[all …]
Dread_write.c33 static inline int unsigned_offsets(struct file *file) in unsigned_offsets() argument
35 return file->f_mode & FMODE_UNSIGNED_OFFSET; in unsigned_offsets()
38 static loff_t lseek_execute(struct file *file, struct inode *inode, in lseek_execute() argument
41 if (offset < 0 && !unsigned_offsets(file)) in lseek_execute()
46 if (offset != file->f_pos) { in lseek_execute()
47 file->f_pos = offset; in lseek_execute()
48 file->f_version = 0; in lseek_execute()
69 generic_file_llseek_size(struct file *file, loff_t offset, int origin, in generic_file_llseek_size() argument
72 struct inode *inode = file->f_mapping->host; in generic_file_llseek_size()
86 return file->f_pos; in generic_file_llseek_size()
[all …]
Deventfd.c110 static int eventfd_release(struct inode *inode, struct file *file) in eventfd_release() argument
112 struct eventfd_ctx *ctx = file->private_data; in eventfd_release()
119 static unsigned int eventfd_poll(struct file *file, poll_table *wait) in eventfd_poll() argument
121 struct eventfd_ctx *ctx = file->private_data; in eventfd_poll()
125 poll_wait(file, &ctx->wqh, wait); in eventfd_poll()
228 static ssize_t eventfd_read(struct file *file, char __user *buf, size_t count, in eventfd_read() argument
231 struct eventfd_ctx *ctx = file->private_data; in eventfd_read()
237 res = eventfd_ctx_read(ctx, file->f_flags & O_NONBLOCK, &cnt); in eventfd_read()
244 static ssize_t eventfd_write(struct file *file, const char __user *buf, size_t count, in eventfd_write() argument
247 struct eventfd_ctx *ctx = file->private_data; in eventfd_write()
[all …]
Dsync.c136 struct file *file; in SYSCALL_DEFINE1() local
141 file = fget_light(fd, &fput_needed); in SYSCALL_DEFINE1()
142 if (!file) in SYSCALL_DEFINE1()
144 sb = file->f_dentry->d_sb; in SYSCALL_DEFINE1()
150 fput_light(file, fput_needed); in SYSCALL_DEFINE1()
165 int vfs_fsync_range(struct file *file, loff_t start, loff_t end, int datasync) in vfs_fsync_range() argument
167 if (!file->f_op || !file->f_op->fsync) in vfs_fsync_range()
169 return file->f_op->fsync(file, start, end, datasync); in vfs_fsync_range()
181 int vfs_fsync(struct file *file, int datasync) in vfs_fsync() argument
183 return vfs_fsync_range(file, 0, LLONG_MAX, datasync); in vfs_fsync()
[all …]
/linux-3.4.99/drivers/media/video/cx25821/
Dcx25821-video.h126 extern int cx25821_video_mmap(struct file *file, struct vm_area_struct *vma);
127 extern int cx25821_vidioc_try_fmt_vid_cap(struct file *file, void *priv,
129 extern int cx25821_vidioc_querycap(struct file *file, void *priv,
131 extern int cx25821_vidioc_enum_fmt_vid_cap(struct file *file, void *priv,
133 extern int cx25821_vidioc_reqbufs(struct file *file, void *priv,
135 extern int cx25821_vidioc_querybuf(struct file *file, void *priv,
137 extern int cx25821_vidioc_qbuf(struct file *file, void *priv,
139 extern int cx25821_vidioc_s_std(struct file *file, void *priv,
142 extern int cx25821_vidioc_enum_input(struct file *file, void *priv,
144 extern int cx25821_vidioc_g_input(struct file *file, void *priv,
[all …]
/linux-3.4.99/fs/lockd/
Dsvcsubs.c46 static inline void nlm_debug_print_file(char *msg, struct nlm_file *file) in nlm_debug_print_file() argument
48 struct inode *inode = file->f_file->f_path.dentry->d_inode; in nlm_debug_print_file()
59 static inline void nlm_debug_print_file(char *msg, struct nlm_file *file) in nlm_debug_print_file() argument
88 struct nlm_file *file; in nlm_lookup_file() local
99 hlist_for_each_entry(file, pos, &nlm_files[hash], f_list) in nlm_lookup_file()
100 if (!nfs_compare_fh(&file->f_handle, f)) in nlm_lookup_file()
106 file = kzalloc(sizeof(*file), GFP_KERNEL); in nlm_lookup_file()
107 if (!file) in nlm_lookup_file()
110 memcpy(&file->f_handle, f, sizeof(struct nfs_fh)); in nlm_lookup_file()
111 mutex_init(&file->f_mutex); in nlm_lookup_file()
[all …]
/linux-3.4.99/sound/oss/
Dsound_calls.h23 unsigned int DMAbuf_poll(struct file *file, int dev, poll_table *wait);
32 int audio_read (int dev, struct file *file, char __user *buf, int count);
33 int audio_write (int dev, struct file *file, const char __user *buf, int count);
34 int audio_open (int dev, struct file *file);
35 void audio_release (int dev, struct file *file);
36 int audio_ioctl (int dev, struct file *file,
45 int sequencer_read (int dev, struct file *file, char __user *buf, int count);
46 int sequencer_write (int dev, struct file *file, const char __user *buf, int count);
47 int sequencer_open (int dev, struct file *file);
48 void sequencer_release (int dev, struct file *file);
[all …]
/linux-3.4.99/drivers/media/video/saa7134/
Dsaa7134-empress.c85 static int ts_open(struct file *file) in ts_open() argument
87 struct video_device *vdev = video_devdata(file); in ts_open()
88 struct saa7134_dev *dev = video_drvdata(file); in ts_open()
103 file->private_data = dev; in ts_open()
111 static int ts_release(struct file *file) in ts_release() argument
113 struct saa7134_dev *dev = file->private_data; in ts_release()
131 ts_read(struct file *file, char __user *data, size_t count, loff_t *ppos) in ts_read() argument
133 struct saa7134_dev *dev = file->private_data; in ts_read()
140 file->f_flags & O_NONBLOCK); in ts_read()
144 ts_poll(struct file *file, struct poll_table_struct *wait) in ts_poll() argument
[all …]
/linux-3.4.99/fs/ecryptfs/
Dfile.c52 struct file *file = iocb->ki_filp; in ecryptfs_read_update_atime() local
62 lower.dentry = ecryptfs_dentry_to_lower(file->f_path.dentry); in ecryptfs_read_update_atime()
63 lower.mnt = ecryptfs_dentry_to_lower_mnt(file->f_path.dentry); in ecryptfs_read_update_atime()
112 static int ecryptfs_readdir(struct file *file, void *dirent, filldir_t filldir) in ecryptfs_readdir() argument
115 struct file *lower_file; in ecryptfs_readdir()
119 lower_file = ecryptfs_file_to_lower(file); in ecryptfs_readdir()
120 lower_file->f_pos = file->f_pos; in ecryptfs_readdir()
121 inode = file->f_path.dentry->d_inode; in ecryptfs_readdir()
124 buf.dentry = file->f_path.dentry; in ecryptfs_readdir()
129 file->f_pos = lower_file->f_pos; in ecryptfs_readdir()
[all …]
/linux-3.4.99/fs/sysfs/
Dbin.c44 struct file *file; member
49 fill_read(struct file *file, char *buffer, loff_t off, size_t count) in fill_read() argument
51 struct sysfs_dirent *attr_sd = file->f_path.dentry->d_fsdata; in fill_read()
62 rc = attr->read(file, kobj, attr, buffer, off, count); in fill_read()
70 read(struct file *file, char __user *userbuf, size_t bytes, loff_t *off) in read() argument
72 struct bin_buffer *bb = file->private_data; in read()
73 int size = file->f_path.dentry->d_inode->i_size; in read()
94 count = fill_read(file, bb->buffer, offs, count); in read()
119 flush_write(struct file *file, char *buffer, loff_t offset, size_t count) in flush_write() argument
121 struct sysfs_dirent *attr_sd = file->f_path.dentry->d_fsdata; in flush_write()
[all …]
/linux-3.4.99/scripts/kconfig/
Dutil.c14 struct file *file_lookup(const char *name) in file_lookup()
16 struct file *file; in file_lookup() local
19 for (file = file_list; file; file = file->next) { in file_lookup()
20 if (!strcmp(name, file->name)) { in file_lookup()
22 return file; in file_lookup()
26 file = malloc(sizeof(*file)); in file_lookup()
27 memset(file, 0, sizeof(*file)); in file_lookup()
28 file->name = file_name; in file_lookup()
29 file->next = file_list; in file_lookup()
30 file_list = file; in file_lookup()
[all …]
/linux-3.4.99/drivers/media/radio/
Dradio-si4713.c69 static int radio_si4713_enumaudout(struct file *file, void *priv, in radio_si4713_enumaudout() argument
75 static int radio_si4713_g_audout(struct file *file, void *priv, in radio_si4713_g_audout() argument
85 static int radio_si4713_s_audout(struct file *file, void *priv, in radio_si4713_s_audout() argument
92 static int radio_si4713_querycap(struct file *file, void *priv, in radio_si4713_querycap() argument
104 static int radio_si4713_queryctrl(struct file *file, void *priv, in radio_si4713_queryctrl() argument
145 rsdev = video_get_drvdata(video_devdata(file)); in radio_si4713_queryctrl()
162 static inline struct v4l2_device *get_v4l2_dev(struct file *file) in get_v4l2_dev() argument
164 return &((struct radio_si4713_device *)video_drvdata(file))->v4l2_dev; in get_v4l2_dev()
167 static int radio_si4713_g_ext_ctrls(struct file *file, void *p, in radio_si4713_g_ext_ctrls() argument
170 return v4l2_device_call_until_err(get_v4l2_dev(file), 0, core, in radio_si4713_g_ext_ctrls()
[all …]
Dradio-timb.c41 static int timbradio_vidioc_querycap(struct file *file, void *priv, in timbradio_vidioc_querycap() argument
51 static int timbradio_vidioc_g_tuner(struct file *file, void *priv, in timbradio_vidioc_g_tuner() argument
54 struct timbradio *tr = video_drvdata(file); in timbradio_vidioc_g_tuner()
58 static int timbradio_vidioc_s_tuner(struct file *file, void *priv, in timbradio_vidioc_s_tuner() argument
61 struct timbradio *tr = video_drvdata(file); in timbradio_vidioc_s_tuner()
65 static int timbradio_vidioc_g_input(struct file *filp, void *priv, in timbradio_vidioc_g_input()
72 static int timbradio_vidioc_s_input(struct file *filp, void *priv, in timbradio_vidioc_s_input()
78 static int timbradio_vidioc_g_audio(struct file *file, void *priv, in timbradio_vidioc_g_audio() argument
87 static int timbradio_vidioc_s_audio(struct file *file, void *priv, in timbradio_vidioc_s_audio() argument
93 static int timbradio_vidioc_s_frequency(struct file *file, void *priv, in timbradio_vidioc_s_frequency() argument
[all …]
/linux-3.4.99/drivers/infiniband/core/
Duverbs_main.c80 static ssize_t (*uverbs_cmd_table[])(struct ib_uverbs_file *file,
130 struct ib_uverbs_event_file *file = in ib_uverbs_release_event_file() local
133 kfree(file); in ib_uverbs_release_event_file()
136 void ib_uverbs_release_ucq(struct ib_uverbs_file *file, in ib_uverbs_release_ucq() argument
153 spin_lock_irq(&file->async_file->lock); in ib_uverbs_release_ucq()
158 spin_unlock_irq(&file->async_file->lock); in ib_uverbs_release_ucq()
161 void ib_uverbs_release_uevent(struct ib_uverbs_file *file, in ib_uverbs_release_uevent() argument
166 spin_lock_irq(&file->async_file->lock); in ib_uverbs_release_uevent()
171 spin_unlock_irq(&file->async_file->lock); in ib_uverbs_release_uevent()
186 static int ib_uverbs_cleanup_ucontext(struct ib_uverbs_file *file, in ib_uverbs_cleanup_ucontext() argument
[all …]
Duser_mad.c149 static int hdr_size(struct ib_umad_file *file) in hdr_size() argument
151 return file->use_pkey_index ? sizeof (struct ib_user_mad_hdr) : in hdr_size()
156 static struct ib_mad_agent *__get_agent(struct ib_umad_file *file, int id) in __get_agent() argument
158 return file->agents_dead ? NULL : file->agent[id]; in __get_agent()
161 static int queue_packet(struct ib_umad_file *file, in queue_packet() argument
167 mutex_lock(&file->mutex); in queue_packet()
172 if (agent == __get_agent(file, packet->mad.hdr.id)) { in queue_packet()
173 list_add_tail(&packet->list, &file->recv_list); in queue_packet()
174 wake_up_interruptible(&file->recv_wait); in queue_packet()
179 mutex_unlock(&file->mutex); in queue_packet()
[all …]
/linux-3.4.99/security/integrity/ima/
Dima_main.c50 static void ima_rdwr_violation_check(struct file *file) in ima_rdwr_violation_check() argument
52 struct dentry *dentry = file->f_path.dentry; in ima_rdwr_violation_check()
54 fmode_t mode = file->f_mode; in ima_rdwr_violation_check()
88 struct file *file) in ima_check_last_writer() argument
90 fmode_t mode = file->f_mode; in ima_check_last_writer()
106 void ima_file_free(struct file *file) in ima_file_free() argument
108 struct inode *inode = file->f_dentry->d_inode; in ima_file_free()
118 ima_check_last_writer(iint, inode, file); in ima_file_free()
121 static int process_measurement(struct file *file, const unsigned char *filename, in process_measurement() argument
124 struct inode *inode = file->f_dentry->d_inode; in process_measurement()
[all …]
/linux-3.4.99/include/linux/
Deventpoll.h55 struct file;
61 static inline void eventpoll_init_file(struct file *file) in eventpoll_init_file() argument
63 INIT_LIST_HEAD(&file->f_ep_links); in eventpoll_init_file()
64 INIT_LIST_HEAD(&file->f_tfile_llink); in eventpoll_init_file()
69 void eventpoll_release_file(struct file *file);
77 static inline void eventpoll_release(struct file *file) in eventpoll_release() argument
88 if (likely(list_empty(&file->f_ep_links))) in eventpoll_release()
96 eventpoll_release_file(file); in eventpoll_release()
101 static inline void eventpoll_init_file(struct file *file) {} in eventpoll_init_file() argument
102 static inline void eventpoll_release(struct file *file) {} in eventpoll_release() argument
/linux-3.4.99/fs/ocfs2/
Dlocks.c38 static int ocfs2_do_flock(struct file *file, struct inode *inode, in ocfs2_do_flock() argument
42 struct ocfs2_file_private *fp = file->private_data; in ocfs2_do_flock()
69 flock_lock_file_wait(file, in ocfs2_do_flock()
72 ocfs2_file_unlock(file); in ocfs2_do_flock()
75 ret = ocfs2_file_lock(file, level, trylock); in ocfs2_do_flock()
84 ret = flock_lock_file_wait(file, fl); in ocfs2_do_flock()
92 static int ocfs2_do_funlock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_do_funlock() argument
95 struct ocfs2_file_private *fp = file->private_data; in ocfs2_do_funlock()
98 ocfs2_file_unlock(file); in ocfs2_do_funlock()
99 ret = flock_lock_file_wait(file, fl); in ocfs2_do_funlock()
[all …]
/linux-3.4.99/fs/nfsd/
Dnfsctl.c56 static ssize_t write_filehandle(struct file *file, char *buf, size_t size);
57 static ssize_t write_unlock_ip(struct file *file, char *buf, size_t size);
58 static ssize_t write_unlock_fs(struct file *file, char *buf, size_t size);
59 static ssize_t write_threads(struct file *file, char *buf, size_t size);
60 static ssize_t write_pool_threads(struct file *file, char *buf, size_t size);
61 static ssize_t write_versions(struct file *file, char *buf, size_t size);
62 static ssize_t write_ports(struct file *file, char *buf, size_t size);
63 static ssize_t write_maxblksize(struct file *file, char *buf, size_t size);
65 static ssize_t write_leasetime(struct file *file, char *buf, size_t size);
66 static ssize_t write_gracetime(struct file *file, char *buf, size_t size);
[all …]
/linux-3.4.99/sound/core/seq/oss/
Dseq_oss.c62 static int odev_open(struct inode *inode, struct file *file);
63 static int odev_release(struct inode *inode, struct file *file);
64 static ssize_t odev_read(struct file *file, char __user *buf, size_t count, loff_t *offset);
65 static ssize_t odev_write(struct file *file, const char __user *buf, size_t count, loff_t *offset);
66 static long odev_ioctl(struct file *file, unsigned int cmd, unsigned long arg);
67 static unsigned int odev_poll(struct file *file, poll_table * wait);
129 odev_open(struct inode *inode, struct file *file) in odev_open() argument
139 rc = snd_seq_oss_open(file, level); in odev_open()
146 odev_release(struct inode *inode, struct file *file) in odev_release() argument
150 if ((dp = file->private_data) == NULL) in odev_release()
[all …]
/linux-3.4.99/drivers/isdn/hardware/eicon/
Ddivasi.c73 static ssize_t um_idi_read(struct file *file, char __user *buf, size_t count,
75 static ssize_t um_idi_write(struct file *file, const char __user *buf,
77 static unsigned int um_idi_poll(struct file *file, poll_table *wait);
78 static int um_idi_open(struct inode *inode, struct file *file);
79 static int um_idi_release(struct inode *inode, struct file *file);
104 static int um_idi_proc_open(struct inode *inode, struct file *file) in um_idi_proc_open() argument
106 return single_open(file, um_idi_proc_show, NULL); in um_idi_proc_open()
231 um_idi_read(struct file *file, char __user *buf, size_t count, loff_t *offset) in um_idi_read() argument
237 if (!file->private_data) { in um_idi_read()
243 (diva_um_idi_os_context_t *) diva_um_id_get_os_context(file-> in um_idi_read()
[all …]
/linux-3.4.99/net/batman-adv/
Dbat_debugfs.c92 static int log_open(struct inode *inode, struct file *file) in log_open() argument
94 nonseekable_open(inode, file); in log_open()
95 file->private_data = inode->i_private; in log_open()
100 static int log_release(struct inode *inode, struct file *file) in log_release() argument
106 static ssize_t log_read(struct file *file, char __user *buf, in log_read() argument
109 struct bat_priv *bat_priv = file->private_data; in log_read()
114 if ((file->f_flags & O_NONBLOCK) && in log_read()
160 static unsigned int log_poll(struct file *file, poll_table *wait) in log_poll() argument
162 struct bat_priv *bat_priv = file->private_data; in log_poll()
165 poll_wait(file, &debug_log->queue_wait, wait); in log_poll()
[all …]
/linux-3.4.99/drivers/xen/xenfs/
Dxenstored.c11 static ssize_t xsd_read(struct file *file, char __user *buf, in xsd_read() argument
14 const char *str = (const char *)file->private_data; in xsd_read()
18 static int xsd_release(struct inode *inode, struct file *file) in xsd_release() argument
20 kfree(file->private_data); in xsd_release()
24 static int xsd_kva_open(struct inode *inode, struct file *file) in xsd_kva_open() argument
26 file->private_data = (void *)kasprintf(GFP_KERNEL, "0x%p", in xsd_kva_open()
28 if (!file->private_data) in xsd_kva_open()
33 static int xsd_kva_mmap(struct file *file, struct vm_area_struct *vma) in xsd_kva_mmap() argument
55 static int xsd_port_open(struct inode *inode, struct file *file) in xsd_port_open() argument
57 file->private_data = (void *)kasprintf(GFP_KERNEL, "%d", in xsd_port_open()
[all …]
/linux-3.4.99/fs/afs/
Dproc.c23 static int afs_proc_cells_open(struct inode *inode, struct file *file);
28 static ssize_t afs_proc_cells_write(struct file *file, const char __user *buf,
47 static int afs_proc_rootcell_open(struct inode *inode, struct file *file);
48 static int afs_proc_rootcell_release(struct inode *inode, struct file *file);
49 static ssize_t afs_proc_rootcell_read(struct file *file, char __user *buf,
51 static ssize_t afs_proc_rootcell_write(struct file *file,
64 static int afs_proc_cell_volumes_open(struct inode *inode, struct file *file);
66 struct file *file);
89 struct file *file);
91 struct file *file);
[all …]

12345678910>>...120