Home
last modified time | relevance | path

Searched refs:file (Results 3376 - 3400 of 14508) sorted by relevance

1...<<131132133134135136137138139140>>...581

/kernel/linux/linux-5.10/drivers/tty/
H A Dn_r3964.c131 static ssize_t r3964_read(struct tty_struct *tty, struct file *file,
133 static ssize_t r3964_write(struct tty_struct *tty, struct file *file,
135 static int r3964_ioctl(struct tty_struct *tty, struct file *file,
138 static int r3964_compat_ioctl(struct tty_struct *tty, struct file *file,
142 static __poll_t r3964_poll(struct tty_struct *tty, struct file *file,
1060 r3964_read(struct tty_struct *tty, struct file *file, unsigned char *kbuf, size_t nr, void **cookie, unsigned long offset) r3964_read() argument
1124 r3964_write(struct tty_struct *tty, struct file *file, const unsigned char *data, size_t count) r3964_write() argument
1189 r3964_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg) r3964_ioctl() argument
1218 r3964_compat_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg) r3964_compat_ioctl() argument
1238 r3964_poll(struct tty_struct *tty, struct file *file, struct poll_table_struct *wait) r3964_poll() argument
[all...]
/kernel/linux/linux-5.10/fs/configfs/
H A Ddir.c433 * attribute file
1587 static int configfs_dir_open(struct inode *inode, struct file *file) in configfs_dir_open() argument
1589 struct dentry * dentry = file->f_path.dentry; in configfs_dir_open()
1600 file->private_data = configfs_new_dirent(parent_sd, NULL, 0, NULL); in configfs_dir_open()
1601 if (IS_ERR(file->private_data)) in configfs_dir_open()
1602 err = PTR_ERR(file->private_data); in configfs_dir_open()
1611 static int configfs_dir_close(struct inode *inode, struct file *file) in configfs_dir_close() argument
1613 struct dentry * dentry = file in configfs_dir_close()
1633 configfs_readdir(struct file *file, struct dir_context *ctx) configfs_readdir() argument
1694 configfs_dir_lseek(struct file *file, loff_t offset, int whence) configfs_dir_lseek() argument
[all...]
/kernel/linux/linux-5.10/kernel/trace/
H A Dtrace_uprobe.c780 static int probes_open(struct inode *inode, struct file *file) in probes_open() argument
788 if ((file->f_mode & FMODE_WRITE) && (file->f_flags & O_TRUNC)) { in probes_open()
794 return seq_open(file, &probes_seq_op); in probes_open()
797 static ssize_t probes_write(struct file *file, const char __user *buffer, in probes_write() argument
800 return trace_parse_run_command(file, buffer, count, ppos, in probes_write()
835 static int profile_open(struct inode *inode, struct file *file) in profile_open() argument
1094 probe_event_enable(struct trace_event_call *call, struct trace_event_file *file, filter_func_t filter) probe_event_enable() argument
1155 probe_event_disable(struct trace_event_call *call, struct trace_event_file *file) probe_event_disable() argument
1451 struct trace_event_file *file = data; trace_uprobe_register() local
[all...]
/kernel/linux/linux-6.6/fs/configfs/
H A Ddir.c1562 static int configfs_dir_open(struct inode *inode, struct file *file) in configfs_dir_open() argument
1564 struct dentry * dentry = file->f_path.dentry; in configfs_dir_open()
1575 file->private_data = configfs_new_dirent(parent_sd, NULL, 0, NULL); in configfs_dir_open()
1576 if (IS_ERR(file->private_data)) in configfs_dir_open()
1577 err = PTR_ERR(file->private_data); in configfs_dir_open()
1586 static int configfs_dir_close(struct inode *inode, struct file *file) in configfs_dir_close() argument
1588 struct dentry * dentry = file->f_path.dentry; in configfs_dir_close()
1589 struct configfs_dirent * cursor = file in configfs_dir_close()
1602 configfs_readdir(struct file *file, struct dir_context *ctx) configfs_readdir() argument
1664 configfs_dir_lseek(struct file *file, loff_t offset, int whence) configfs_dir_lseek() argument
[all...]
/kernel/linux/linux-6.6/drivers/platform/surface/
H A Dsurface_dtx.c378 static long surface_dtx_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in surface_dtx_ioctl() argument
380 struct sdtx_client *client = file->private_data; in surface_dtx_ioctl()
400 static int surface_dtx_open(struct inode *inode, struct file *file) in surface_dtx_open() argument
402 struct sdtx_device *ddev = container_of(file->private_data, struct sdtx_device, mdev); in surface_dtx_open()
417 file->private_data = client; in surface_dtx_open()
439 stream_open(inode, file); in surface_dtx_open()
443 static int surface_dtx_release(struct inode *inode, struct file *file) in surface_dtx_release() argument
460 surface_dtx_read(struct file *file, char __user *buf, size_t count, loff_t *offs) surface_dtx_read() argument
526 surface_dtx_poll(struct file *file, struct poll_table_struct *pt) surface_dtx_poll() argument
542 surface_dtx_fasync(int fd, struct file *file, int on) surface_dtx_fasync() argument
[all...]
/kernel/linux/linux-6.6/drivers/usb/class/
H A Dusblp.c407 static int usblp_open(struct inode *inode, struct file *file) in usblp_open() argument
441 file->private_data = usblp; in usblp_open()
450 file->private_data = NULL; in usblp_open()
474 static int usblp_release(struct inode *inode, struct file *file) in usblp_release() argument
476 struct usblp *usblp = file->private_data; in usblp_release()
495 static __poll_t usblp_poll(struct file *file, struct poll_table_struct *wait) in usblp_poll() argument
497 struct usblp *usblp = file in usblp_poll()
519 usblp_ioctl(struct file *file, unsigned int cmd, unsigned long arg) usblp_ioctl() argument
742 usblp_write(struct file *file, const char __user *buffer, size_t count, loff_t *ppos) usblp_write() argument
841 usblp_read(struct file *file, char __user *buffer, size_t len, loff_t *ppos) usblp_read() argument
[all...]
/kernel/linux/linux-6.6/drivers/usb/gadget/function/
H A Df_hid.c292 static ssize_t f_hidg_intout_read(struct file *file, char __user *buffer, in f_hidg_intout_read() argument
295 struct f_hidg *hidg = file->private_data; in f_hidg_intout_read()
311 if (file->f_flags & O_NONBLOCK) in f_hidg_intout_read()
366 static ssize_t f_hidg_ssreport_read(struct file *file, char __user *buffer, in f_hidg_ssreport_read() argument
369 struct f_hidg *hidg = file->private_data; in f_hidg_ssreport_read()
380 if (file->f_flags & O_NONBLOCK) in f_hidg_ssreport_read()
407 static ssize_t f_hidg_read(struct file *file, cha argument
434 f_hidg_write(struct file *file, const char __user *buffer, size_t count, loff_t *offp) f_hidg_write() argument
527 f_hidg_poll(struct file *file, poll_table *wait) f_hidg_poll() argument
[all...]
/kernel/linux/linux-6.6/drivers/media/platform/renesas/vsp1/
H A Dvsp1_video.c951 vsp1_video_querycap(struct file *file, void *fh, struct v4l2_capability *cap) in vsp1_video_querycap() argument
953 struct v4l2_fh *vfh = file->private_data; in vsp1_video_querycap()
968 vsp1_video_get_format(struct file *file, void *fh, struct v4l2_format *format) in vsp1_video_get_format() argument
970 struct v4l2_fh *vfh = file->private_data; in vsp1_video_get_format()
984 vsp1_video_try_format(struct file *file, void *fh, struct v4l2_format *format) in vsp1_video_try_format() argument
986 struct v4l2_fh *vfh = file->private_data; in vsp1_video_try_format()
996 vsp1_video_set_format(struct file *fil argument
1026 vsp1_video_streamon(struct file *file, void *fh, enum v4l2_buf_type type) vsp1_video_streamon() argument
1103 vsp1_video_open(struct file *file) vsp1_video_open() argument
1128 vsp1_video_release(struct file *file) vsp1_video_release() argument
[all...]
/kernel/linux/linux-6.6/drivers/macintosh/
H A Dsmu.c1083 static int smu_open(struct inode *inode, struct file *file) in smu_open() argument
1099 file->private_data = pp; in smu_open()
1114 static ssize_t smu_write(struct file *file, const char __user *buf, in smu_write() argument
1117 struct smu_private *pp = file->private_data; in smu_write()
1172 static ssize_t smu_read_command(struct file *file, struct smu_private *pp, in smu_read_command() argument
1186 if (file->f_flags & O_NONBLOCK) { in smu_read_command()
1228 static ssize_t smu_read_events(struct file *fil argument
1237 smu_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) smu_read() argument
1250 smu_fpoll(struct file *file, poll_table *wait) smu_fpoll() argument
1273 smu_release(struct inode *inode, struct file *file) smu_release() argument
[all...]
/kernel/linux/linux-6.6/kernel/trace/
H A Dtrace_uprobe.c780 static int probes_open(struct inode *inode, struct file *file) in probes_open() argument
788 if ((file->f_mode & FMODE_WRITE) && (file->f_flags & O_TRUNC)) { in probes_open()
794 return seq_open(file, &probes_seq_op); in probes_open()
797 static ssize_t probes_write(struct file *file, const char __user *buffer, in probes_write() argument
800 return trace_parse_run_command(file, buffer, count, ppos, in probes_write()
835 static int profile_open(struct inode *inode, struct file *file) in profile_open() argument
1089 probe_event_enable(struct trace_event_call *call, struct trace_event_file *file, filter_func_t filter) probe_event_enable() argument
1149 probe_event_disable(struct trace_event_call *call, struct trace_event_file *file) probe_event_disable() argument
1443 struct trace_event_file *file = data; trace_uprobe_register() local
[all...]
/third_party/elfutils/libdwfl/
H A Ddwfl_module_getdwarf.c3 This file is part of elfutils.
5 This file is free software; you can redistribute it and/or modify
50 /* If there was a pre-primed file name left that the callback left in open_elf_file()
51 behind, try to open that file name. */ in open_elf_file()
69 /* Elf file already open and looks fine. */ in open_elf_file()
76 open_elf (Dwfl_Module *mod, struct dwfl_file *file) in open_elf() argument
78 Dwfl_Error error = open_elf_file (&file->elf, &file->fd, &file->name); in open_elf()
82 GElf_Ehdr ehdr_mem, *ehdr = gelf_getehdr (file in open_elf()
273 find_prelink_address_sync(Dwfl_Module *mod, struct dwfl_file *file) find_prelink_address_sync() argument
603 load_symtab(struct dwfl_file *file, struct dwfl_file **symfile, Elf_Scn **symscn, Elf_Scn **xndxscn, size_t *syments, int *first_global, GElf_Word *strshndx) load_symtab() argument
[all...]
/kernel/linux/linux-5.10/drivers/media/platform/mtk-jpeg/
H A Dmtk_jpeg_core.c134 static int mtk_jpeg_querycap(struct file *file, void *priv, in mtk_jpeg_querycap() argument
137 struct mtk_jpeg_dev *jpeg = video_drvdata(file); in mtk_jpeg_querycap()
215 static int mtk_jpeg_enum_fmt_vid_cap(struct file *file, void *priv, in mtk_jpeg_enum_fmt_vid_cap() argument
226 static int mtk_jpeg_enum_fmt_vid_out(struct file *file, void *priv, in mtk_jpeg_enum_fmt_vid_out() argument
305 static int mtk_jpeg_g_fmt_vid_mplane(struct file *file, void *priv, in mtk_jpeg_g_fmt_vid_mplane() argument
354 static int mtk_jpeg_try_fmt_vid_cap_mplane(struct file *fil argument
383 mtk_jpeg_try_fmt_vid_out_mplane(struct file *file, void *priv, struct v4l2_format *f) mtk_jpeg_try_fmt_vid_out_mplane() argument
467 mtk_jpeg_s_fmt_vid_out_mplane(struct file *file, void *priv, struct v4l2_format *f) mtk_jpeg_s_fmt_vid_out_mplane() argument
480 mtk_jpeg_s_fmt_vid_cap_mplane(struct file *file, void *priv, struct v4l2_format *f) mtk_jpeg_s_fmt_vid_cap_mplane() argument
515 mtk_jpeg_enc_g_selection(struct file *file, void *priv, struct v4l2_selection *s) mtk_jpeg_enc_g_selection() argument
540 mtk_jpeg_dec_g_selection(struct file *file, void *priv, struct v4l2_selection *s) mtk_jpeg_dec_g_selection() argument
569 mtk_jpeg_enc_s_selection(struct file *file, void *priv, struct v4l2_selection *s) mtk_jpeg_enc_s_selection() argument
1204 mtk_jpeg_open(struct file *file) mtk_jpeg_open() argument
1254 mtk_jpeg_release(struct file *file) mtk_jpeg_release() argument
[all...]
/kernel/linux/linux-5.10/drivers/net/wan/
H A Dcosa.c282 static ssize_t cosa_read(struct file *file,
284 static ssize_t cosa_write(struct file *file,
286 static unsigned int cosa_poll(struct file *file, poll_table *poll);
287 static int cosa_open(struct inode *inode, struct file *file);
288 static int cosa_release(struct inode *inode, struct file *file);
769 cosa_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) cosa_read() argument
844 cosa_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) cosa_write() argument
915 cosa_poll(struct file *file, poll_table *poll) cosa_poll() argument
921 cosa_open(struct inode *inode, struct file *file) cosa_open() argument
965 cosa_release(struct inode *inode, struct file *file) cosa_release() argument
983 cosa_fasync(struct inode *inode, struct file *file, int on) cosa_fasync() argument
1186 cosa_chardev_ioctl(struct file *file, unsigned int cmd, unsigned long arg) cosa_chardev_ioctl() argument
[all...]
/kernel/linux/linux-5.10/sound/core/
H A Drawmidi.c86 static inline unsigned short snd_rawmidi_file_flags(struct file *file) in snd_rawmidi_file_flags() argument
88 switch (file->f_mode & (FMODE_READ | FMODE_WRITE)) { in snd_rawmidi_file_flags()
400 static int snd_rawmidi_open(struct inode *inode, struct file *file) in snd_rawmidi_open() argument
411 if ((file->f_flags & O_APPEND) && !(file->f_flags & O_NONBLOCK)) in snd_rawmidi_open()
414 err = stream_open(inode, file); in snd_rawmidi_open()
439 err = snd_card_file_add(card, file); in snd_rawmidi_open()
442 fflags = snd_rawmidi_file_flags(file); in snd_rawmidi_open()
569 snd_rawmidi_release(struct inode *inode, struct file *file) snd_rawmidi_release() argument
830 snd_rawmidi_ioctl(struct file *file, unsigned int cmd, unsigned long arg) snd_rawmidi_ioctl() argument
1093 snd_rawmidi_read(struct file *file, char __user *buf, size_t count, loff_t *offset) snd_rawmidi_read() argument
1424 snd_rawmidi_write(struct file *file, const char __user *buf, size_t count, loff_t *offset) snd_rawmidi_write() argument
1498 snd_rawmidi_poll(struct file *file, poll_table *wait) snd_rawmidi_poll() argument
[all...]
/kernel/linux/linux-6.6/io_uring/
H A Dnet.c4 #include <linux/file.h>
22 struct file *file; member
27 struct file *file; member
36 struct file *file; member
46 struct file *file; member
54 struct file *fil member
1386 struct file *file; io_accept() local
1464 struct file *file; io_socket() local
[all...]
/kernel/linux/linux-6.6/sound/core/
H A Drawmidi.c89 static inline unsigned short snd_rawmidi_file_flags(struct file *file) in snd_rawmidi_file_flags() argument
91 switch (file->f_mode & (FMODE_READ | FMODE_WRITE)) { in snd_rawmidi_file_flags()
445 static int snd_rawmidi_open(struct inode *inode, struct file *file) in snd_rawmidi_open() argument
456 if ((file->f_flags & O_APPEND) && !(file->f_flags & O_NONBLOCK)) in snd_rawmidi_open()
459 err = stream_open(inode, file); in snd_rawmidi_open()
484 err = snd_card_file_add(card, file); in snd_rawmidi_open()
487 fflags = snd_rawmidi_file_flags(file); in snd_rawmidi_open()
618 snd_rawmidi_release(struct inode *inode, struct file *file) snd_rawmidi_release() argument
912 snd_rawmidi_ioctl(struct file *file, unsigned int cmd, unsigned long arg) snd_rawmidi_ioctl() argument
1301 snd_rawmidi_read(struct file *file, char __user *buf, size_t count, loff_t *offset) snd_rawmidi_read() argument
1645 snd_rawmidi_write(struct file *file, const char __user *buf, size_t count, loff_t *offset) snd_rawmidi_write() argument
1719 snd_rawmidi_poll(struct file *file, poll_table *wait) snd_rawmidi_poll() argument
[all...]
/kernel/liteos_a/kernel/common/
H A Dconsole.c82 INT32 GetFilepOps(const struct file *filep, struct file **privFilep, const struct file_operations_vfs **filepOps) in GetFilepOps()
93 *privFilep = (struct file *)drv->priv; in GetFilepOps()
113 struct file *filep = NULL; in ConsoleTcGetAttr()
132 struct file *filep = NULL; in ConsoleTcSetAttr()
324 INT32 FilepOpen(struct file *filep, const struct file_operations_vfs *fops) in FilepOpen()
339 STATIC INLINE VOID UserEndOfRead(CONSOLE_CB *consoleCB, struct file *filep, in UserEndOfRead()
403 STATIC VOID EchoToTerminal(CONSOLE_CB *consoleCB, struct file *filep, const struct file_operations_vfs *fops, char ch) in EchoToTerminal()
443 STATIC INT32 UserFilepRead(CONSOLE_CB *consoleCB, struct file *filep, const struct file_operations_vfs *fops, in UserFilepRead()
499 INT32 FilepRead(struct file *file
[all...]
/third_party/libuv/test/
H A Dtest-spawn.c169 options.file = exepath; in init_process_options()
191 options.file = options.args[0] = "program-that-had-better-not-exist"; in TEST_IMPL()
211 options.file = options.args[0] = "program-that-had-better-not-exist"; in TEST_IMPL()
318 uv_file file; in TEST_IMPL() local
333 file = r; in TEST_IMPL()
338 options.stdio[1].data.fd = file; in TEST_IMPL()
351 r = uv_fs_read(NULL, &fs_req, file, &buf, 1, 0, NULL); in TEST_IMPL()
355 r = uv_fs_close(NULL, &fs_req, file, NULL); in TEST_IMPL()
372 uv_file file; in TEST_IMPL() local
387 file in TEST_IMPL()
429 uv_file file; TEST_IMPL() local
1427 char file[64]; TEST_IMPL() local
1816 char file[64]; TEST_IMPL() local
[all...]
/base/sensors/sensor/test/unittest/common/src/
H A Dsystem_info.cpp4 * you may not use this file except in compliance with the License.
103 std::ifstream file(procPath); in GetProcOccupy()
104 if (!file.is_open()) { in GetProcOccupy()
110 if (!std::getline(file, strLine)) { in GetProcOccupy()
112 file.close(); in GetProcOccupy()
117 file.close(); in GetProcOccupy()
120 file.close(); in GetProcOccupy()
151 SEN_HILOGE("Failed to open config file"); in GetSystemCpuStatInfo()
/base/startup/appspawn/modules/common/
H A Dappspawn_namespace.c4 * you may not use this file except in compliance with the License.
121 FILE *file = fopen(path, "r"); in GetPidByName() local
122 if (file == NULL) { in GetPidByName()
126 if (fgets(buffer, sizeof(buffer), file) == NULL) { in GetPidByName()
127 (void)fclose(file); in GetPidByName()
132 (void)fclose(file); in GetPidByName()
138 (void)fclose(file); in GetPidByName()
/base/startup/init/services/etc/passwd_appender/
H A Dpasswd_appender.py5 # you may not use this file except in compliance with the License.
31 parser.add_option('--output', help='the final install file name')
32 parser.add_option('--source-file', help='source passwd files')
33 parser.add_option('--append-file', action="append", type="string", dest="files", help='appended files')
159 raise Exception("Exception in reading passwd, file name:", file_name)
164 # Read source file
168 for i, file in enumerate(file_list):
170 print("error: %s is error", file)
172 if not load_file(file, range_list[i]):
173 # check gid/uid Exception log: raise Exception("Exception, check passwd file erro
[all...]
/kernel/linux/linux-5.10/arch/powerpc/kvm/
H A Dtiming.c161 static ssize_t kvmppc_exit_timing_write(struct file *file, in kvmppc_exit_timing_write() argument
178 struct seq_file *seqf = file->private_data; in kvmppc_exit_timing_write()
193 static int kvmppc_exit_timing_open(struct inode *inode, struct file *file) in kvmppc_exit_timing_open() argument
195 return single_open(file, kvmppc_exit_timing_show, inode->i_private); in kvmppc_exit_timing_open()
/kernel/linux/linux-5.10/tools/testing/selftests/wireguard/qemu/
H A Dinit.c135 FILE *file; in kmod_selftests() local
139 file = fopen("/proc/kmsg", "r"); in kmod_selftests()
140 if (!file) in kmod_selftests()
142 if (fcntl(fileno(file), F_SETFL, O_NONBLOCK) < 0) in kmod_selftests()
144 while (fgets(line, sizeof(line), file)) { in kmod_selftests()
159 fclose(file); in kmod_selftests()
/kernel/linux/linux-6.6/arch/powerpc/kvm/
H A Dtiming.c161 static ssize_t kvmppc_exit_timing_write(struct file *file, in kvmppc_exit_timing_write() argument
178 struct seq_file *seqf = file->private_data; in kvmppc_exit_timing_write()
193 static int kvmppc_exit_timing_open(struct inode *inode, struct file *file) in kvmppc_exit_timing_open() argument
195 return single_open(file, kvmppc_exit_timing_show, inode->i_private); in kvmppc_exit_timing_open()
/kernel/linux/linux-5.10/tools/testing/selftests/ia64/
H A Daliasing-test.c62 static int scan_tree(char *path, char *file, off_t offset, size_t length, int touch) in scan_tree() argument
88 if (fnmatch(file, name, 0) == 0) { in scan_tree()
101 rc = scan_tree(path2, file, offset, length, touch); in scan_tree()
147 static int scan_rom(char *path, char *file) in scan_rom() argument
173 if (fnmatch(file, name, 0) == 0) { in scan_rom()
190 rc = scan_rom(path2, file); in scan_rom()

Completed in 34 milliseconds

1...<<131132133134135136137138139140>>...581