Home
last modified time | relevance | path

Searched refs:file (Results 4201 - 4225 of 14508) sorted by relevance

1...<<161162163164165166167168169170>>...581

/kernel/linux/linux-6.6/io_uring/
H A Dxattr.c5 #include <linux/file.h>
20 struct file *file; member
115 ret = do_getxattr(mnt_idmap(req->file->f_path.mnt), in io_fgetxattr()
116 req->file->f_path.dentry, in io_fgetxattr()
227 ret = __io_setxattr(req, issue_flags, &req->file->f_path); in io_fsetxattr()
H A Dio_uring.h59 struct file *io_file_get_normal(struct io_kiocb *req, int fd);
60 struct file *io_file_get_fixed(struct io_kiocb *req, int fd,
75 int io_ring_add_registered_file(struct io_uring_task *tctx, struct file *file,
205 if (!(req->flags & REQ_F_FIXED_FILE) && req->file) in io_put_file()
206 fput(req->file); in io_put_file()
/kernel/linux/linux-6.6/drivers/media/pci/bt8xx/
H A Dbttvp.h6 bttv's *private* header file -- nobody other than bttv itself
7 should ever include this file.
230 int bttv_try_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *f);
231 int bttv_g_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *f);
232 int bttv_s_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *f);
/kernel/linux/linux-6.6/arch/xtensa/platforms/iss/
H A Dsimdisk.c4 * This file is subject to the terms and conditions of the GNU General Public
5 * License. See the file "COPYING" in the main directory of this archive
208 static ssize_t proc_read_simdisk(struct file *file, char __user *buf, in proc_read_simdisk() argument
211 struct simdisk *dev = pde_data(file_inode(file)); in proc_read_simdisk()
230 static ssize_t proc_write_simdisk(struct file *file, const char __user *buf, in proc_write_simdisk() argument
234 struct simdisk *dev = pde_data(file_inode(file)); in proc_write_simdisk()
/kernel/linux/linux-6.6/drivers/gpu/drm/msm/dp/
H A Ddp_debug.c131 static ssize_t dp_test_active_write(struct file *file, in dp_test_active_write() argument
141 debug = ((struct seq_file *)file->private_data)->private; in dp_test_active_write()
192 struct file *file) in dp_test_active_open()
194 return single_open(file, dp_test_active_show, in dp_test_active_open()
191 dp_test_active_open(struct inode *inode, struct file *file) dp_test_active_open() argument
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/
H A Dnouveau_debugfs.c142 nouveau_debugfs_pstate_set(struct file *file, const char __user *ubuf, in nouveau_debugfs_pstate_set() argument
145 struct seq_file *m = file->private_data; in nouveau_debugfs_pstate_set()
201 nouveau_debugfs_pstate_open(struct inode *inode, struct file *file) in nouveau_debugfs_pstate_open() argument
203 return single_open(file, nouveau_debugfs_pstate_get, inode->i_private); in nouveau_debugfs_pstate_open()
285 * userspace if it wants to seek() but the file has a length of 0 in nouveau_drm_debugfs_init()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/
H A Dcgroup_helpers.c121 static int __write_cgroup_file(const char *cgroup_path, const char *file, in __write_cgroup_file() argument
127 snprintf(file_path, sizeof(file_path), "%s/%s", cgroup_path, file); in __write_cgroup_file()
144 * write_cgroup_file() - Write to a cgroup file
146 * @file: The name of the file in cgroupfs to write to
147 * @buf: Buffer to write to the file
149 * Write to a file in the given cgroup's directory.
153 int write_cgroup_file(const char *relative_path, const char *file, in write_cgroup_file() argument
159 return __write_cgroup_file(cgroup_path, file, buf); in write_cgroup_file()
163 * write_cgroup_file_parent() - Write to a cgroup file i
174 write_cgroup_file_parent(const char *relative_path, const char *file, const char *buf) write_cgroup_file_parent() argument
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A Dpinning.c35 const char *file = "./test_pinning.bpf.o"; in test_pinning() local
53 /* open the valid object file */ in test_pinning()
54 obj = bpf_object__open_file(file, NULL); in test_pinning()
88 obj = bpf_object__open_file(file, NULL); in test_pinning()
167 /* open the valid object file again */ in test_pinning()
168 obj = bpf_object__open_file(file, NULL); in test_pinning()
210 obj = bpf_object__open_file(file, &opts); in test_pinning()
237 obj = bpf_object__open_file(file, NULL); in test_pinning()
/kernel/linux/linux-6.6/tools/usb/usbip/libsrc/
H A Dvhci_driver.c191 FILE *file; in read_record() local
204 file = fopen(path, "r"); in read_record()
205 if (!file) { in read_record()
211 if (fgets(buffer, buffer_len, file) == NULL) { in read_record()
214 fclose(file); in read_record()
217 fclose(file); in read_record()
/kernel/linux/linux-6.6/sound/core/
H A Dsound.c144 static int snd_open(struct inode *inode, struct file *file) in snd_open() argument
166 replace_fops(file, new_fops); in snd_open()
168 if (file->f_op->open) in snd_open()
169 err = file->f_op->open(inode, file); in snd_open()
239 * snd_register_device - Register the ALSA device file for the card
243 * @f_ops: the file operations
247 * Registers an ALSA device file for the given card.
298 * Unregisters the device file alread
[all...]
/kernel/liteos_a/kernel/extended/hidumper/
H A Dlos_hidumper.c50 #include "fs/file.h"
91 STATIC INT32 HiDumperOpen(struct file *filep);
92 STATIC INT32 HiDumperClose(struct file *filep);
93 STATIC INT32 HiDumperIoctl(struct file *filep, INT32 cmd, unsigned long arg);
120 STATIC INT32 HiDumperOpen(struct file *filep) in HiDumperOpen()
126 STATIC INT32 HiDumperClose(struct file *filep) in HiDumperClose()
293 static INT32 HiDumperIoctl(struct file *filep, INT32 cmd, unsigned long arg) in HiDumperIoctl()
/kernel/linux/linux-6.6/sound/soc/intel/skylake/
H A Dskl-debug.c67 static ssize_t module_read(struct file *file, char __user *user_buf, in module_read() argument
70 struct skl_module_cfg *mconfig = file->private_data; in module_read()
173 static ssize_t fw_softreg_read(struct file *file, char __user *user_buf, in fw_softreg_read() argument
176 struct skl_debug *d = file->private_data; in fw_softreg_read()
/third_party/ffmpeg/libavfilter/
H A Dopencl.c2 * This file is part of FFmpeg.
207 FILE *file; in ff_opencl_filter_load_program_from_file() local
213 file = avpriv_fopen_utf8(filename, "r"); in ff_opencl_filter_load_program_from_file()
214 if (!file) { in ff_opencl_filter_load_program_from_file()
216 "source file \"%s\".\n", filename); in ff_opencl_filter_load_program_from_file()
239 rb = fread(src + pos, 1, len - pos - 1, file); in ff_opencl_filter_load_program_from_file()
240 if (rb == 0 && ferror(file)) { in ff_opencl_filter_load_program_from_file()
258 fclose(file); in ff_opencl_filter_load_program_from_file()
/third_party/curl/src/
H A Dtool_cb_wrt.c10 * This software is licensed as described in the file COPYING, which
16 * furnished to do so, under the terms of the COPYING file.
53 /* create/open a local file for writing, return TRUE on success */
58 FILE *file = NULL; in tool_create_output_file() local
71 /* open file for writing */ in tool_create_output_file()
72 file = fopen(fname, "wb"); in tool_create_output_file()
97 while(fd == -1 && /* haven't successfully opened a file */ in tool_create_output_file()
117 file = fdopen(fd, "wb"); in tool_create_output_file()
118 if(!file) in tool_create_output_file()
123 if(!file) { in tool_create_output_file()
[all...]
H A Dvar.c10 * This software is licensed as described in the file COPYING, which
16 * furnished to do so, under the terms of the COPYING file.
425 /* read from file or stdin */ in setvariable()
426 FILE *file; in setvariable() local
431 file = stdin; in setvariable()
433 file = fopen(line, "rb"); in setvariable()
434 if(!file) { in setvariable()
439 err = file2memory(&content, &clen, file); in setvariable()
443 fclose(file); in setvariable()
/third_party/NuttX/fs/nfs/
H A Dnfs_util.c5 * contributor license agreements. See the NOTICE file distributed with
7 * ASF licenses this file to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance with the
130 struct nfsnode *file; in nfs_checkmount() local
139 /* Make sure that this is flagged in every opened file */ in nfs_checkmount()
141 for (file = nmp->nm_head; file; file = file->n_next) in nfs_checkmount()
143 file in nfs_checkmount()
[all...]
/third_party/libsnd/src/
H A Dmat4.c32 ** Information on how to decode and encode this file was obtained in a PDF
33 ** file which I found on http://www.wotsit.org/.
79 if (psf->file.mode == SFM_READ || (psf->file.mode == SFM_RDWR && psf->filelength > 0)) in mat4_open()
89 if (psf->file.mode == SFM_WRITE || psf->file.mode == SFM_RDWR) in mat4_open()
135 if (psf->file.mode == SFM_WRITE || psf->file.mode == SFM_RDWR) in mat4_close()
215 /* MAT4 file must start with a double for the samplerate. */ in mat4_read_header()
H A Dnist.c57 if (psf->file.mode == SFM_READ || (psf->file.mode == SFM_RDWR && psf->filelength > 0)) in nist_open()
62 if (psf->file.mode == SFM_WRITE || psf->file.mode == SFM_RDWR) in nist_open()
127 /* Go to start of file and read in the whole header. */ in nist_read_header()
142 /* Make sure its a NIST file. */ in nist_read_header()
144 { psf_log_printf (psf, "Not a NIST file.\n") ; in nist_read_header()
277 if (psf->file.mode == SFM_WRITE || psf->file.mode == SFM_RDWR) in nist_close()
/third_party/libsnd/
H A Dmake_lite.py185 file = open (filename)
187 line = file.readline ()
195 file.close ()
203 file = open (filename, 'w')
204 file.write (data)
205 file.close ()
209 print "Making dist file."
238 print "Uncompressing .tar.gz file."
467 print "Fixing configure.ac file."
/third_party/mbedtls/tests/src/
H A Dhelpers.c329 * that don't use PSA, but it's harmless (except for leaving a file in mbedtls_test_platform_setup()
665 const char *file, int line) in mbedtls_test_err_add_check()
684 line, file); in mbedtls_test_err_add_check()
690 line, file); in mbedtls_test_err_add_check()
696 line, file); in mbedtls_test_err_add_check()
702 line, file); in mbedtls_test_err_add_check()
705 line, file); in mbedtls_test_err_add_check()
664 mbedtls_test_err_add_check(int high, int low, const char *file, int line) mbedtls_test_err_add_check() argument
/third_party/mesa3d/src/freedreno/afuc/
H A Dasm.c374 char *file, *outfile; in main() local
389 fprintf(stderr, "no file specified!\n"); in main()
393 file = argv[optind]; in main()
402 in = fopen(file, "r"); in main()
404 fprintf(stderr, "could not open \"%s\"\n", file); in main()
412 if (strstr(file, "a5")) { in main()
414 } else if (strstr(file, "a6")) { in main()
/third_party/ltp/testcases/kernel/device-drivers/base/tbase/
H A Dtbase.c49 static int tbase_ioctl(struct inode *, struct file *, unsigned int,
51 static int tbase_open(struct inode *, struct file *);
52 static int tbase_close(struct inode *, struct file *);
78 * correct file descriptor
86 static int tbase_open(struct inode *ino, struct file *f) in tbase_open()
91 static int tbase_close(struct inode *ino, struct file *f) in tbase_close()
235 * through a call to ioctl once the correct file
238 static int tbase_ioctl(struct inode *ino, struct file *f, in tbase_ioctl()
603 * make test call to create sysfs file for the
605 * make a call to remove the file
[all...]
/third_party/ltp/testcases/kernel/device-drivers/usb/tusb/
H A Dtusb.c26 * file descriptor for this module. A usb
63 static int tusb_ioctl(struct inode *, struct file *, unsigned int,
65 static int tusb_open(struct inode *, struct file *);
66 static int tusb_close(struct inode *, struct file *);
86 static int tusb_open(struct inode *ino, struct file *f) in tusb_open()
91 static int tusb_close(struct inode *ino, struct file *f) in tusb_close()
185 static int tusb_ioctl(struct inode *ino, struct file *f, in tusb_ioctl()
/third_party/ltp/testcases/kernel/device-drivers/agp/kernel_space/
H A Dtagp.c24 * appropriate file descriptor for this device.
55 static int tagp_ioctl(struct inode *, struct file *, unsigned int,
57 static int tagp_open(struct inode *, struct file *);
58 static int tagp_close(struct inode *, struct file *);
87 * correct file descriptor
97 * your test modules, need them for the file
100 static int tagp_open(struct inode *ino, struct file *f) in tagp_open()
105 static int tagp_close(struct inode *ino, struct file *f) in tagp_close()
113 * through a call to ioctl once the correct file
116 * in user space the file descripto
[all...]
/third_party/node/deps/v8/third_party/zlib/contrib/minizip/
H A Dioapi.c97 FILE* file = NULL; in fopen_file_func() local
109 file = fopen(filename, mode_fopen); in fopen_file_func()
110 return file; in fopen_file_func()
115 FILE* file = NULL; in fopen64_file_func() local
127 file = FOPEN_FUNC((const char*)filename, mode_fopen); in fopen64_file_func()
128 return file; in fopen64_file_func()

Completed in 20 milliseconds

1...<<161162163164165166167168169170>>...581