| /kernel/linux/linux-6.6/arch/sparc/kernel/ |
| H A D | mdesc.c | 1252 static int mdesc_open(struct inode *inode, struct file *file) in mdesc_open() argument 1259 file->private_data = hp; in mdesc_open() 1264 static ssize_t mdesc_read(struct file *file, char __user *buf, in mdesc_read() argument 1267 struct mdesc_handle *hp = file->private_data; in mdesc_read() 1288 static loff_t mdesc_llseek(struct file *file, loff_t offset, int whence) in mdesc_llseek() argument 1290 struct mdesc_handle *hp = file->private_data; in mdesc_llseek() 1292 return no_seek_end_llseek_size(file, offse in mdesc_llseek() 1298 mdesc_close(struct inode *inode, struct file *file) mdesc_close() argument [all...] |
| /kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtw88/ |
| H A D | debug.c | 19 ssize_t (*cb_write)(struct file *filp, const char __user *buffer, 47 static ssize_t rtw_debugfs_common_write(struct file *filp, in rtw_debugfs_common_write() 56 static ssize_t rtw_debugfs_single_write(struct file *filp, in rtw_debugfs_single_write() 66 static int rtw_debugfs_single_open_rw(struct inode *inode, struct file *filp) in rtw_debugfs_single_open_rw() 71 static int rtw_debugfs_close(struct inode *inode, struct file *filp) in rtw_debugfs_close() 165 static ssize_t rtw_debugfs_set_read_reg(struct file *filp, in rtw_debugfs_set_read_reg() 256 static ssize_t rtw_debugfs_set_rsvd_page(struct file *filp, in rtw_debugfs_set_rsvd_page() 282 static ssize_t rtw_debugfs_set_single_input(struct file *filp, in rtw_debugfs_set_single_input() 307 static ssize_t rtw_debugfs_set_write_reg(struct file *filp, in rtw_debugfs_set_write_reg() 350 static ssize_t rtw_debugfs_set_h2c(struct file *fil [all...] |
| /kernel/linux/linux-5.10/drivers/pci/ |
| H A D | pci-sysfs.c | 656 static ssize_t pci_read_config(struct file *filp, struct kobject *kobj, in pci_read_config() 733 static ssize_t pci_write_config(struct file *filp, struct kobject *kobj, in pci_write_config() 802 * @filp: open sysfs file 803 * @kobj: kobject corresponding to file to read from 804 * @bin_attr: struct bin_attribute for this file 812 static ssize_t pci_read_legacy_io(struct file *filp, struct kobject *kobj, in pci_read_legacy_io() 827 * @filp: open sysfs file 828 * @kobj: kobject corresponding to file to read from 829 * @bin_attr: struct bin_attribute for this file 837 static ssize_t pci_write_legacy_io(struct file *fil [all...] |
| /kernel/linux/linux-6.6/fs/zonefs/ |
| H A D | super.c | 3 * Simple file system for zoned block devices exposing zones as files. 203 * zone wpoffset as is, which leads to an empty file in zonefs_check_zone_condition() 285 * of the file. This can happen in the case of a large direct IO in zonefs_handle_io_error() 334 * close of the zone when the inode file is closed. in zonefs_handle_io_error() 360 * When an file IO error occurs, check the file zone to see if there is a change 363 * eventually correct the file size and zonefs inode write pointer offset 651 /* Get the file number from the file name */ in zonefs_get_file_inode() 766 static int zonefs_readdir_root(struct file *fil argument 801 zonefs_readdir_zgroup(struct file *file, struct dir_context *ctx) zonefs_readdir_zgroup() argument 843 zonefs_readdir(struct file *file, struct dir_context *ctx) zonefs_readdir() argument [all...] |
| /kernel/linux/linux-6.6/drivers/char/ |
| H A D | sonypi.c | 873 static int sonypi_misc_fasync(int fd, struct file *filp, int on) in sonypi_misc_fasync() 878 static int sonypi_misc_release(struct inode *inode, struct file *file) in sonypi_misc_release() argument 886 static int sonypi_misc_open(struct inode *inode, struct file *file) in sonypi_misc_open() argument 898 static ssize_t sonypi_misc_read(struct file *file, char __user *buf, in sonypi_misc_read() argument 905 (file->f_flags & O_NONBLOCK)) in sonypi_misc_read() 922 struct inode *inode = file_inode(file); in sonypi_misc_read() 929 static __poll_t sonypi_misc_poll(struct file *fil argument [all...] |
| /kernel/linux/linux-6.6/drivers/crypto/hisilicon/sec2/ |
| H A D | sec_main.c | 716 static ssize_t sec_debug_read(struct file *filp, char __user *buf, in sec_debug_read() 719 struct sec_debug_file *file = filp->private_data; in sec_debug_read() local 721 struct hisi_qm *qm = file->qm; in sec_debug_read() 729 spin_lock_irq(&file->lock); in sec_debug_read() 731 switch (file->index) { in sec_debug_read() 739 spin_unlock_irq(&file->lock); in sec_debug_read() 746 spin_unlock_irq(&file->lock); in sec_debug_read() 751 static ssize_t sec_debug_write(struct file *filp, const char __user *buf, in sec_debug_write() 754 struct sec_debug_file *file = filp->private_data; in sec_debug_write() local 756 struct hisi_qm *qm = file in sec_debug_write() [all...] |
| /kernel/linux/linux-6.6/drivers/pci/ |
| H A D | pci-sysfs.c | 666 static ssize_t pci_read_config(struct file *filp, struct kobject *kobj, in pci_read_config() 741 static ssize_t pci_write_config(struct file *filp, struct kobject *kobj, in pci_write_config() 837 * @filp: open sysfs file 838 * @kobj: kobject corresponding to file to read from 839 * @bin_attr: struct bin_attribute for this file 847 static ssize_t pci_read_legacy_io(struct file *filp, struct kobject *kobj, in pci_read_legacy_io() 862 * @filp: open sysfs file 863 * @kobj: kobject corresponding to file to read from 864 * @bin_attr: struct bin_attribute for this file 872 static ssize_t pci_write_legacy_io(struct file *fil [all...] |
| /kernel/linux/linux-6.6/tools/tracing/latency/ |
| H A D | latency-collector.c | 95 static const char * const DEBUG_NOFILE = "[file not found]"; 572 static char *read_file(const char *file, enum errhandling h) in read_file() argument 576 static const char *emsg = "Failed to read the %s file"; in read_file() 578 r = tracefs_instance_file_read(NULL, file, &psize); in read_file() 581 warn(emsg, file); in read_file() 585 errx(EXIT_FAILURE, emsg, file); in read_file() 593 static void restore_file(const char *file, char **saved, const char *cur) in restore_file() argument 596 if (tracefs_instance_file_write(NULL, file, *saved) < 0) in restore_file() 597 warnx("Failed to restore %s to %s!", file, *saved); in restore_file() 599 printf("Restored %s to %s\n", file, *save in restore_file() 1340 write_file(const char *file, const char *cur, const char *new, enum errhandling h) write_file() argument [all...] |
| /kernel/linux/linux-6.6/kernel/trace/ |
| H A D | trace_fprobe.c | 209 __fentry_trace_func(tf, entry_ip, regs, link->file); in fentry_trace_func() 253 __fexit_trace_func(tf, entry_ip, ret_ip, regs, link->file); in fexit_trace_func() 437 * if the file is NULL, enable "perf" handler, or enable "trace" handler. 440 struct trace_event_file *file) in enable_trace_fprobe() 453 if (file) { in enable_trace_fprobe() 454 ret = trace_probe_add_file(tp, file); in enable_trace_fprobe() 472 * if the file is NULL, disable "perf" handler, or disable "trace" handler. 475 struct trace_event_file *file) in disable_trace_fprobe() 483 if (file) { in disable_trace_fprobe() 484 if (!trace_probe_get_file_link(tp, file)) in disable_trace_fprobe() 439 enable_trace_fprobe(struct trace_event_call *call, struct trace_event_file *file) enable_trace_fprobe() argument 474 disable_trace_fprobe(struct trace_event_call *call, struct trace_event_file *file) disable_trace_fprobe() argument 1188 struct trace_event_file *file = data; fprobe_register() local [all...] |
| /third_party/googletest/googletest/include/gtest/internal/ |
| H A D | gtest-port.h | 37 // This file is fundamental to Google Test. All other Google Test source 87 // file system is/isn't available. 483 // Most platforms support a file system. 605 // a file system, stream redirection is not supported. 624 // Death tests require a file system to work properly. 961 // Formats a source file path and a line number as they would appear 963 GTEST_API_ ::std::string FormatFileLocation(const char* file, int line); 965 // Formats a file location for compiler-independent XML output. 968 GTEST_API_ ::std::string FormatCompilerIndependentFileLocation(const char* file, 984 GTestLog(GTestLogSeverity severity, const char* file, in 1988 FileNo(FILE* file) FileNo() argument 1992 FileNo(FILE* file) FileNo() argument [all...] |
| /third_party/icu/tools/release/java/src/main/java/com/ibm/icu/dev/tools/docs/ |
| H A D | StableAPI.java | 57 (generate 'Doxygen' file on Windows platform with Cygwin's help) 58 Edit the generated 'Doxygen' file under ICU4C source directory 62 Doxygen file to ICU 3.4 Doxygen file.) 66 Build this file with the library 67 3. Edit the api-report-config.xml file & Change the file according your real configuration 86 private static final String ICU_VERSION_XPATHA = "/doxygen/compounddef[@id='uvernum_8h'][@kind='file']/sectiondef[@kind='define']"; 88 private static final String ICU_VERSION_XPATHB = "/doxygen/compounddef[@id='uversion_8h'][@kind='file']/sectiondef[@kind='define']"; 222 System.out.println("Loaded file " in loadStream() 488 public String file; global() field in StableAPI.Function 1019 getDocument(File file) getDocument() argument [all...] |
| /third_party/node/deps/googletest/include/gtest/internal/ |
| H A D | gtest-port.h | 37 // This file is fundamental to Google Test. All other Google Test source 87 // file system is/isn't available. 530 // Most platforms support a file system. 659 // a file system, stream redirection is not supported. 682 // Death tests require a file system to work properly. 1032 // Formats a source file path and a line number as they would appear 1034 GTEST_API_ ::std::string FormatFileLocation(const char* file, int line); 1036 // Formats a file location for compiler-independent XML output. 1039 GTEST_API_ ::std::string FormatCompilerIndependentFileLocation(const char* file, 1055 GTestLog(GTestLogSeverity severity, const char* file, in 2014 FileNo(FILE* file) FileNo() argument 2018 FileNo(FILE* file) FileNo() argument [all...] |
| /kernel/linux/linux-5.10/drivers/platform/x86/ |
| H A D | toshiba_acpi.c | 1369 static int lcd_proc_open(struct inode *inode, struct file *file) in lcd_proc_open() argument 1371 return single_open(file, lcd_proc_show, PDE_DATA(inode)); in lcd_proc_open() 1404 static ssize_t lcd_proc_write(struct file *file, const char __user *buf, in lcd_proc_write() argument 1407 struct toshiba_acpi_dev *dev = PDE_DATA(file_inode(file)); in lcd_proc_write() 1470 static int video_proc_open(struct inode *inode, struct file *file) in video_proc_open() argument 1472 return single_open(file, video_proc_show, PDE_DATA(inode)); in video_proc_open() 1475 static ssize_t video_proc_write(struct file *fil argument 1581 fan_proc_open(struct inode *inode, struct file *file) fan_proc_open() argument 1586 fan_proc_write(struct file *file, const char __user *buf, size_t count, loff_t *pos) fan_proc_write() argument 1629 keys_proc_open(struct inode *inode, struct file *file) keys_proc_open() argument 1634 keys_proc_write(struct file *file, const char __user *buf, size_t count, loff_t *pos) keys_proc_write() argument [all...] |
| /kernel/linux/linux-6.6/drivers/platform/x86/ |
| H A D | toshiba_acpi.c | 1442 static int lcd_proc_open(struct inode *inode, struct file *file) in lcd_proc_open() argument 1444 return single_open(file, lcd_proc_show, pde_data(inode)); in lcd_proc_open() 1477 static ssize_t lcd_proc_write(struct file *file, const char __user *buf, in lcd_proc_write() argument 1480 struct toshiba_acpi_dev *dev = pde_data(file_inode(file)); in lcd_proc_write() 1543 static int video_proc_open(struct inode *inode, struct file *file) in video_proc_open() argument 1545 return single_open(file, video_proc_show, pde_data(inode)); in video_proc_open() 1548 static ssize_t video_proc_write(struct file *fil argument 1654 fan_proc_open(struct inode *inode, struct file *file) fan_proc_open() argument 1659 fan_proc_write(struct file *file, const char __user *buf, size_t count, loff_t *pos) fan_proc_write() argument 1725 keys_proc_open(struct inode *inode, struct file *file) keys_proc_open() argument 1730 keys_proc_write(struct file *file, const char __user *buf, size_t count, loff_t *pos) keys_proc_write() argument [all...] |
| /kernel/linux/linux-6.6/drivers/net/wireless/intel/iwlwifi/pcie/ |
| H A D | trans.c | 2569 /* file operation */ 2668 static int iwl_dbgfs_tx_queue_open(struct inode *inode, struct file *filp) in iwl_dbgfs_tx_queue_open() 2682 static ssize_t iwl_dbgfs_rx_queue_read(struct file *file, in iwl_dbgfs_rx_queue_read() argument 2686 struct iwl_trans *trans = file->private_data; in iwl_dbgfs_rx_queue_read() 2733 static ssize_t iwl_dbgfs_interrupt_read(struct file *file, in iwl_dbgfs_interrupt_read() argument 2737 struct iwl_trans *trans = file->private_data; in iwl_dbgfs_interrupt_read() 2791 static ssize_t iwl_dbgfs_interrupt_write(struct file *file, in iwl_dbgfs_interrupt_write() argument 2810 iwl_dbgfs_csr_write(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) iwl_dbgfs_csr_write() argument 2821 iwl_dbgfs_fh_reg_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) iwl_dbgfs_fh_reg_read() argument 2839 iwl_dbgfs_rfkill_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) iwl_dbgfs_rfkill_read() argument 2856 iwl_dbgfs_rfkill_write(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) iwl_dbgfs_rfkill_write() argument 2878 iwl_dbgfs_monitor_data_open(struct inode *inode, struct file *file) iwl_dbgfs_monitor_data_open() argument 2897 iwl_dbgfs_monitor_data_release(struct inode *inode, struct file *file) iwl_dbgfs_monitor_data_release() argument 2926 iwl_dbgfs_monitor_data_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) iwl_dbgfs_monitor_data_read() argument 3009 iwl_dbgfs_rf_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) iwl_dbgfs_rf_read() argument [all...] |
| /kernel/linux/linux-6.6/fs/ext4/ |
| H A D | ioctl.c | 16 #include <linux/file.h> 34 * Superblock modification callback function for changing file system 46 * Superblock modification callback function for changing file system 519 * immutable on an immutable file. 587 /* Is it quota file? Do not allow user to mess with it */ in ext4_ioctl_setflags() 628 * for this file. The flush marks all the pages readonly, so any in ext4_ioctl_setflags() 629 * subsequent attempt to write to the file (particularly mmap pages) in ext4_ioctl_setflags() 730 /* Is it quota file? Do not allow user to mess with it */ in ext4_ioctl_setproject() 892 * ext4 doesn't report file extents at all, so the only valid in ext4_ioc_getfsmap() 893 * file offset in ext4_ioc_getfsmap() 934 ext4_ioctl_group_add(struct file *file, struct ext4_new_group_data *input) ext4_ioctl_group_add() argument 1622 ext4_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) ext4_compat_ioctl() argument [all...] |
| /kernel/linux/linux-6.6/drivers/media/pci/intel/ipu3/ |
| H A D | ipu3-cio2.c | 1053 static int cio2_v4l2_querycap(struct file *file, void *fh, in cio2_v4l2_querycap() argument 1062 static int cio2_v4l2_enum_fmt(struct file *file, void *fh, in cio2_v4l2_enum_fmt() argument 1074 static int cio2_v4l2_g_fmt(struct file *file, void *fh, struct v4l2_format *f) in cio2_v4l2_g_fmt() argument 1076 struct cio2_queue *q = file_to_cio2_queue(file); in cio2_v4l2_g_fmt() 1083 static int cio2_v4l2_try_fmt(struct file *file, void *fh, struct v4l2_format *f) in cio2_v4l2_try_fmt() argument 1114 static int cio2_v4l2_s_fmt(struct file *fil argument 1125 cio2_video_enum_input(struct file *file, void *fh, struct v4l2_input *input) cio2_video_enum_input() argument 1137 cio2_video_g_input(struct file *file, void *fh, unsigned int *input) cio2_video_g_input() argument 1145 cio2_video_s_input(struct file *file, void *fh, unsigned int input) cio2_video_s_input() argument [all...] |
| /kernel/liteos_a/syscall/ |
| H A D | fs_syscall.c | 37 #include "fs/file.h" 114 struct file *file = NULL; in GetFullpathNull() local 118 ret = fs_getfilep(fd, &file); in GetFullpathNull() 122 fullPath = strdup(file->f_path); in GetFullpathNull() 652 struct file *file = NULL; in SysFchdir() local 659 ret = fs_getfilep(sysFd, &file); in SysFchdir() 664 ret = chdir(file->f_path); in SysFchdir() 1417 struct file *file in SysFstat() 2417 struct file *file = NULL; SysFchmod() local 2476 struct file *file = NULL; SysFchown() local [all...] |
| /third_party/python/Lib/xml/etree/ |
| H A D | ElementTree.py | 532 *file* is an optional file handle or file name of an XML file whose 536 def __init__(self, element=None, file=None): 539 if file: 540 self.parse(file) 559 *source* is a file name or file object, *parser* is an optional parser 699 """Write element tree to a file a [all...] |
| /base/startup/init/services/utils/ |
| H A D | init_utils.c | 4 * you may not use this file except in compliance with the License.
144 INIT_LOGE("Failed to allocate memory for config file, err = %d", errno);
in ReadFileToBuf() 189 INIT_ERROR_CHECK(fd >= 0, return NULL, "Failed to read file %s errno:%d", fileName, errno);
in ReadFileData() 396 INIT_CHECK_ONLY_ELOG(duration < maxDuration, "wait for file:%s failed after %d second.", source, maxSecond);
in WaitForFile() 494 int CheckAndCreatFile(const char *file, mode_t mode)
in CheckAndCreatFile() argument 496 if (access(file, F_OK) == 0) {
in CheckAndCreatFile() 497 BEGET_LOGW("File \' %s \' already exist", file);
in CheckAndCreatFile() 501 CheckAndCreateDir(file);
in CheckAndCreatFile() 502 int fd = open(file, O_CREAT, mode);
in CheckAndCreatFile() 504 BEGET_LOGE("Failed create %s, err=%d", file, errn in CheckAndCreatFile() [all...] |
| /base/theme/wallpaper_mgr/frameworks/native/src/ |
| H A D | wallpaper_manager.cpp | 4 * you may not use this file except in compliance with the License. 206 HILOG_ERROR("get real path file failed, len = %{public}zu.", uri.size()); in SetWallpaper() 219 HILOG_ERROR("open file failed, errno %{public}d!", errno); in SetWallpaper() 279 HILOG_ERROR("Open file failed, errno %{public}d!", errno); in SetVideo() 313 HILOG_ERROR("Open file failed, errno %{public}d!", errno); in SetCustomWallpaper() 344 if (fdInfo.size == 0 && fdInfo.fd == -1) { // 0: empty file size; -1: invalid file description in GetPixelMap() 600 HILOG_ERROR("Open file: %{public}s failed!", fileName.c_str()); in CheckVideoFormat() 648 HILOG_ERROR("File is not exist, file: %{public}s.", fileName.c_str()); in OpenFile() 670 HILOG_ERROR("Check live wallpaper file faile in CheckWallpaperFormat() 674 FILE *file = std::fopen(realPath.c_str(), "rb"); CheckWallpaperFormat() local [all...] |
| /kernel/linux/linux-5.10/arch/sh/mm/ |
| H A D | pmb.c | 9 * This file is subject to the terms and conditions of the GNU General Public 10 * License. See the file "COPYING" in the main directory of this archive 815 static int pmb_seq_show(struct seq_file *file, void *iter) in pmb_seq_show() argument 819 seq_printf(file, "V: Valid, C: Cacheable, WT: Write-Through\n" in pmb_seq_show() 821 seq_printf(file, "ety vpn ppn size flags\n"); in pmb_seq_show() 838 seq_printf(file, "%02d: %c 0x%02lx 0x%02lx %s %c %s %s\n", in pmb_seq_show() 849 static int pmb_debugfs_open(struct inode *inode, struct file *file) in pmb_debugfs_open() argument 851 return single_open(file, pmb_seq_show, NULL); in pmb_debugfs_open()
|
| /kernel/linux/linux-5.10/drivers/hid/ |
| H A D | hid-roccat-pyra.c | 86 static ssize_t pyra_sysfs_read(struct file *fp, struct kobject *kobj, in pyra_sysfs_read() 111 static ssize_t pyra_sysfs_write(struct file *fp, struct kobject *kobj, in pyra_sysfs_write() 134 static ssize_t pyra_sysfs_write_ ## thingy(struct file *fp, \ 143 static ssize_t pyra_sysfs_read_ ## thingy(struct file *fp, \ 185 static ssize_t pyra_sysfs_read_profilex_settings(struct file *fp, in pyra_sysfs_read_profilex_settings() 203 static ssize_t pyra_sysfs_read_profilex_buttons(struct file *fp, in pyra_sysfs_read_profilex_buttons() 240 static ssize_t pyra_sysfs_write_settings(struct file *fp, in pyra_sysfs_write_settings()
|
| /kernel/linux/linux-5.10/drivers/infiniband/core/ |
| H A D | rdma_core.c | 6 * General Public License (GPL) Version 2, available from the file 33 #include <linux/file.h> 344 struct file *f; in lookup_get_fd_uobject() 465 struct file *filp; in alloc_begin_fd_uobject() 572 struct file *filp = uobj->object; in alloc_abort_fd_uobject() 615 struct file *filp = uobj->object; in alloc_commit_fd_uobject() 620 /* This shouldn't be used anymore. Use the file object instead */ in alloc_commit_fd_uobject() 624 * NOTE: Once we install the file we loose ownership of our kref on in alloc_commit_fd_uobject() 695 struct file *filp = uobj->object; in lookup_put_fd_uobject() 771 int uverbs_uobject_fd_release(struct inode *inode, struct file *fil [all...] |
| /kernel/linux/linux-5.10/scripts/dtc/ |
| H A D | dt_to_config | 54 "one or more kernel config file options is not set", 55 "one or more kernel config file options is set to 'm'", 56 "one or more kernel config file options is set to 'y'", 57 "one of more kernel config file options fails to have correct value" 63 %driver_config = (); # driver config array, indexed by driver source file 66 %existing_config = (); # existing config symbols present in given config file 172 --config-format config file friendly output format 187 tree file and the kernel config options that enable the driver source 198 be appended to the existing kernel config file. Each entry consists of 200 value, driver file matchin [all...] |