/kernel/linux/linux-5.10/drivers/staging/comedi/drivers/ni_routing/tools/ |
H A D | convert_csv_to_c.py | 154 """.format(filename=SET_C, extern_h=os.path.join(ITEMS_DIR, EXTERN_H)) 245 sheet_filename = os.path.join(self.ITEMS_DIR,'{}.c'.format(S)) 262 with open(os.path.join(self.OUTPUT_DIR, sheet_filename), 'w') as f: 266 with open(os.path.join(self.OUTPUT_DIR, self.MKFILE_SEGMENTS), 'w') as f: 272 EXTERN_H = os.path.join(self.ITEMS_DIR, self.EXTERN_H) 273 with open(os.path.join(self.OUTPUT_DIR, EXTERN_H), 'w') as f: 282 filename=os.path.join(self.OUTPUT_DIR, self.SET_C) 285 os.makedirs(os.path.join(self.OUTPUT_DIR, self.ITEMS_DIR)) 336 """.format(filename=SET_C, extern_h=os.path.join(ITEMS_DIR, EXTERN_H)) 436 sheet_filename = os.path [all...] |
/kernel/linux/linux-6.6/fs/sharefs/ |
H A D | inode.c | 17 static int sharefs_getattr(struct mnt_idmap *idmap, const struct path *path, struct kstat *stat, in sharefs_getattr() argument 20 struct path lower_path; in sharefs_getattr() 23 sharefs_get_lower_path(path->dentry, &lower_path); in sharefs_getattr() 25 stat->ino = d_inode(path->dentry)->i_ino; in sharefs_getattr() 26 stat->uid = d_inode(path->dentry)->i_uid; in sharefs_getattr() 27 stat->gid = d_inode(path->dentry)->i_gid; in sharefs_getattr() 28 stat->mode = d_inode(path->dentry)->i_mode; in sharefs_getattr() 31 sharefs_put_lower_path(path->dentry, &lower_path); in sharefs_getattr() 40 struct path lower_pat in sharefs_listxattr() [all...] |
/kernel/linux/linux-6.6/drivers/comedi/drivers/ni_routing/tools/ |
H A D | convert_csv_to_c.py | 152 """.format(filename=SET_C, extern_h=os.path.join(ITEMS_DIR, EXTERN_H)) 241 sheet_filename = os.path.join(self.ITEMS_DIR,'{}.c'.format(S)) 258 with open(os.path.join(self.OUTPUT_DIR, sheet_filename), 'w') as f: 262 with open(os.path.join(self.OUTPUT_DIR, self.MKFILE_SEGMENTS), 'w') as f: 268 EXTERN_H = os.path.join(self.ITEMS_DIR, self.EXTERN_H) 269 with open(os.path.join(self.OUTPUT_DIR, EXTERN_H), 'w') as f: 278 filename=os.path.join(self.OUTPUT_DIR, self.SET_C) 281 os.makedirs(os.path.join(self.OUTPUT_DIR, self.ITEMS_DIR)) 331 """.format(filename=SET_C, extern_h=os.path.join(ITEMS_DIR, EXTERN_H)) 429 sheet_filename = os.path [all...] |
/third_party/node/deps/v8/src/torque/ |
H A D | utils.cc | 98 const std::string path = uri.substr(kFileUriPrefixLength); in FileUriDecode() local 101 for (auto iter = path.begin(), end = path.end(); iter != end; ++iter) { in FileUriDecode() 312 std::string UnderlinifyPath(std::string path) { in UnderlinifyPath() argument 313 std::replace(path.begin(), path.end(), '-', '_'); in UnderlinifyPath() 314 std::replace(path.begin(), path.end(), '/', '_'); in UnderlinifyPath() 315 std::replace(path.begin(), path in UnderlinifyPath() [all...] |
/third_party/skia/tests/ |
H A D | PathOpsAsWindingTest.cpp | 13 SkPath path; in build_squircle() local 17 path.addRect(rect, dir); in build_squircle() 21 path.moveTo(rect.centerX(), rect.fTop); in build_squircle() 22 path.quadTo(rect.fRight, rect.fTop, rect.fRight, rect.centerY()); in build_squircle() 23 path.quadTo(rect.fRight, rect.fBottom, rect.centerX(), rect.fBottom); in build_squircle() 24 path.quadTo(rect.fLeft, rect.fBottom, rect.fLeft, rect.centerY()); in build_squircle() 25 path.quadTo(rect.fLeft, rect.fTop, rect.centerX(), rect.fTop); in build_squircle() 28 path.addCircle(rect.centerX(), rect.centerY(), rect.width() / 2, dir); in build_squircle() 36 path.moveTo(rect.centerX(), rect.fTop); in build_squircle() 37 path in build_squircle() [all...] |
H A D | PathOpsConicIntersectionTest.cpp | 99 SkPath path; in writePng() local 100 path.moveTo(conic.fPts[0]); in writePng() 101 path.conicTo(conic.fPts[1], conic.fPts[2], conic.fW); in writePng() 103 canvas.drawPath(path, paint); in writePng() 104 path.reset(); in writePng() 105 path.moveTo(chopped[0].fPts[0]); in writePng() 106 path.conicTo(chopped[0].fPts[1], chopped[0].fPts[2], chopped[0].fW); in writePng() 107 path.moveTo(chopped[1].fPts[0]); in writePng() 108 path.conicTo(chopped[1].fPts[1], chopped[1].fPts[2], chopped[1].fW); in writePng() 110 canvas.drawPath(path, pain in writePng() 137 SkPath path; writeDPng() local 279 SkPath path; writeFrames() local [all...] |
/third_party/vk-gl-cts/modules/gles31/functional/ |
H A D | es31fProgramInterfaceQueryTestCase.cpp | 139 static glu::MatrixOrder getMatrixOrderFromPath (const std::vector<VariablePathComponent>& path) in getMatrixOrderFromPath() argument 144 for (int pathNdx = 0; pathNdx < (int)path.size(); ++pathNdx) in getMatrixOrderFromPath() 148 if (path[pathNdx].isInterfaceBlock()) in getMatrixOrderFromPath() 149 matOrder = path[pathNdx].getInterfaceBlock()->layout.matrixOrder; in getMatrixOrderFromPath() 150 else if (path[pathNdx].isDeclaration()) in getMatrixOrderFromPath() 151 matOrder = path[pathNdx].getDeclaration()->layout.matrixOrder; in getMatrixOrderFromPath() 152 else if (path[pathNdx].isVariableType()) in getMatrixOrderFromPath() 230 virtual void validateSingleVariable (const std::vector<VariablePathComponent>& path, const std::string& resource, glw::GLint propValue, const std::string& implementationName) const = 0; 247 std::vector<VariablePathComponent> path; in validate() local 249 if (findProgramVariablePathByPathName(path, progra in validate() 375 validateSingleVariable(const std::vector<VariablePathComponent>& path, const std::string& resource, glw::GLint propValue, const std::string& implementationName) const validateSingleVariable() argument 448 validateSingleVariable(const std::vector<VariablePathComponent>& path, const std::string& resource, glw::GLint propValue, const std::string& implementationName) const validateSingleVariable() argument 522 validateSingleVariable(const std::vector<VariablePathComponent>& path, const std::string& resource, glw::GLint propValue, const std::string& implementationName) const validateSingleVariable() argument 576 validateSingleVariable(const std::vector<VariablePathComponent>& path, const std::string& resource, glw::GLint propValue, const std::string& implementationName) const validateSingleVariable() argument [all...] |
/third_party/ltp/testcases/kernel/fs/fsstress/ |
H A D | fsstress.c | 109 char *path; member 586 name->path = realloc(name->path, name->len + 1 + len); in append_pathname() 587 strcpy(&name->path[name->len], str); in append_pathname() 600 rval = attr_list(name->path, buffer, buffersize, flags, cursor); in attr_list_path() 619 rval = attr_remove(name->path, attrname, flags); in attr_remove_path() 639 rval = attr_set(name->path, attrname, attrvalue, valuelength, flags); in attr_set_path() 673 rval = creat(name->path, mode); in creat_path() 827 if (name->path) { in free_pathname() 828 free(name->path); in free_pathname() [all...] |
/third_party/mesa3d/src/compiler/nir/ |
H A D | nir_deref.c | 43 nir_deref_path_init(nir_deref_path *path, in nir_deref_path_init() argument 48 /* The length of the short path is at most ARRAY_SIZE - 1 because we need in nir_deref_path_init() 51 static const int max_short_path_len = ARRAY_SIZE(path->_short_path) - 1; in nir_deref_path_init() 55 nir_deref_instr **tail = &path->_short_path[max_short_path_len]; in nir_deref_path_init() 68 /* If we're under max_short_path_len, just use the short path. */ in nir_deref_path_init() 69 path->path = head; in nir_deref_path_init() 75 for (unsigned i = 0; i < ARRAY_SIZE(path->_short_path); i++) in nir_deref_path_init() 76 path->_short_path[i] = (void *)(uintptr_t)0xdeadbeef; in nir_deref_path_init() 79 path in nir_deref_path_init() 95 nir_deref_path_finish(nir_deref_path *path) nir_deref_path_finish() argument 307 nir_deref_path path; nir_deref_instr_get_const_offset() local 341 nir_deref_path path; nir_build_deref_offset() local [all...] |
/third_party/littlefs/scripts/ |
H A D | bench.py | 38 def openio(path, mode='r', buffering=-1): 40 if path == '-': 46 return open(path, mode, buffering) 52 self.path = config.pop('path') 146 def __init__(self, path, args={}): 147 self.path = path 148 self.name = os.path.basename(path) [all...] |
/third_party/node/lib/internal/modules/cjs/ |
H A D | loader.js | 97 const path = require('path'); 181 * Get a path's properties, using an in-memory cache to minimize lookups. 182 * @param {string} filename Absolute path to the file 185 filename = path.toNamespacedPath(filename); 225 * @param {string} filename Absolute path of the module 235 * @param {string} basePath The absolute path that errored 240 process.send({ 'watch:require': ArrayPrototypeMap(extensions, (ext) => path.resolve(`${basePath}${ext}`)) }); 253 this.path = path [all...] |
/kernel/linux/linux-5.10/Documentation/sphinx/ |
H A D | kfigure.py | 49 from os import path namespace 94 if path.isfile(fname): 98 if not path.isdir(folder): 113 return (path.exists(path1) 215 fname, in_ext = path.splitext(path.basename(img_node['uri'])) 217 src_fname = path.join(translator.builder.srcdir, img_node['uri']) 218 if not path.exists(src_fname): 219 src_fname = path.join(translator.builder.outdir, img_node['uri']) 235 dst_fname = path [all...] |
/kernel/linux/linux-5.10/scripts/dtc/libfdt/ |
H A D | fdt_overlay.c | 21 * property) instead of a path (target-path property). 48 * @pathp: pointer which receives the path of the target (or NULL) 52 * done (through a phandle or a path) 62 const char *path = NULL; in overlay_get_target() local 70 /* no phandle, try path */ in overlay_get_target() 72 /* And then a path based lookup */ in overlay_get_target() 73 path = fdt_getprop(fdto, fragment, "target-path", &path_len); in overlay_get_target() 74 if (path) in overlay_get_target() 368 overlay_fixup_one_phandle(void *fdt, void *fdto, int symbols_off, const char *path, uint32_t path_len, const char *name, uint32_t name_len, int poffset, const char *label) overlay_fixup_one_phandle() argument 445 const char *path, *name, *fixup_end; overlay_fixup_phandle() local 700 const char *path; overlay_symbol_update() local [all...] |
/kernel/linux/linux-6.6/scripts/dtc/libfdt/ |
H A D | fdt_overlay.c | 21 * property) instead of a path (target-path property). 47 const char *path = NULL; in fdt_overlay_target_offset() local 55 /* no phandle, try path */ in fdt_overlay_target_offset() 57 /* And then a path based lookup */ in fdt_overlay_target_offset() 58 path = fdt_getprop(fdto, fragment_offset, "target-path", &path_len); in fdt_overlay_target_offset() 59 if (path) in fdt_overlay_target_offset() 60 ret = fdt_path_offset(fdt, path); in fdt_overlay_target_offset() 68 * target-path propert in fdt_overlay_target_offset() 353 overlay_fixup_one_phandle(void *fdt, void *fdto, int symbols_off, const char *path, uint32_t path_len, const char *name, uint32_t name_len, int poffset, const char *label) overlay_fixup_one_phandle() argument 430 const char *path, *name, *fixup_end; overlay_fixup_phandle() local 685 const char *path; overlay_symbol_update() local [all...] |
/kernel/liteos_a/syscall/ |
H A D | los_syscall.h | 202 extern int SysUtime(const char *path, const struct utimbuf *ptimes);
216 extern int do_open(int dirfd, const char *path, int oflags, mode_t mode);
231 extern int SysOpen(const char *path, int oflags, ...);
242 extern int SysChdir(const char *path);
243 extern int SysUtimensat(int fd, const char *path, struct timespec times[2], int flag);
244 extern int SysFchmodat(int fd, const char *path, mode_t mode, int flag);
246 extern int SysChmod(const char *path, mode_t mode);
247 extern int SysFchownat(int fd, const char *path, uid_t owner, gid_t group, int flag);
255 extern int SysAccess(const char *path, int amode);
268 extern int SysTruncate(const char *path, off_ [all...] |
/test/testfwk/developer_test/local_coverage/interface_coverage/ |
H A D | interface_coverage_gcov_lcov.py | 41 sys.localcoverage_path = os.path.join(current_path, "..") 42 sys.path.insert(0, sys.localcoverage_path) 46 if os.path.exists(filepath): 53 subsystem_part_config_filepath = os.path.join( 55 if os.path.exists(subsystem_part_config_filepath): 72 json_file_path = os.path.join(CODEPATH, KIT_MODULES_INFO) 74 if os.path.isfile(json_file_path): 98 def get_file_list_by_postfix(path, postfix, filter_jar=""): 100 for dirs in os.walk(path): 108 file_path = os.path [all...] |
/test/testfwk/xdevice/src/xdevice/_core/config/ |
H A D | config_manager.py | 60 user_path = os.path.join(Variables.exec_dir, "config") 61 top_user_path = os.path.join(Variables.top_dir, "config") 62 config_path = os.path.join(Variables.res_dir, "config") 65 for path in paths: 66 if os.path.exists(os.path.abspath(os.path.join( 67 path, ConfigFileConst.userconfig_filepath))): 68 self.file_path = os.path.abspath(os.path [all...] |
/third_party/libwebsockets/win32port/zlib/ |
H A D | gzlib.c | 87 local gzFile gz_open(path, fd, mode)
in gz_open() 88 const char *path;
in gz_open() 150 /* save the path name for error messages */
151 state->path = malloc(strlen(path) + 1);
152 if (state->path == NULL) {
156 strcpy(state->path, path);
160 open(path,
175 free(state->path);
216 char *path; /* identifier for error messages */ global() local [all...] |
/third_party/vk-gl-cts/executor/ |
H A D | xeTestCase.cpp | 45 static inline int getFirstComponentLength (const char* path) in getFirstComponentLength() argument 48 while (path[compLen] != 0 && path[compLen] != '.') in getFirstComponentLength() 53 static bool compareNameToPathComponent (const char* name, const char* path, int compLen) in compareNameToPathComponent() argument 57 if (name[pos] != path[pos]) in compareNameToPathComponent() 67 static void splitPath (const char* path, std::vector<std::string>& components) in splitPath() argument 69 std::string pathStr (path); in splitPath() 145 const TestNode* TestNode::find (const char* path) const in find() 150 return static_cast<const TestGroup*>(this)->findChildNode(path); in find() 155 int compLen = getFirstComponentLength(path); in find() 172 find(const char* path) find() argument 286 createCase(const char* path, TestCaseType caseType) createCase() argument [all...] |
/third_party/rust/crates/which-rs/tests/ |
H A D | basic.rs | 8 use std::path::{Path, PathBuf}; 25 fn mk_bin(dir: &Path, path: &str, extension: &str) -> io::Result<PathBuf> { in mk_bin() 27 let bin = dir.join(path).with_extension(extension); in mk_bin() 36 fn touch(dir: &Path, path: &str, extension: &str) -> io::Result<PathBuf> { in touch() 37 let b = dir.join(path).with_extension(extension); in touch() 42 fn mk_bin(dir: &Path, path: &str, extension: &str) -> io::Result<PathBuf> { in mk_bin() 43 touch(dir, path, extension) in mk_bin() 63 let p = tempdir.path().join(d); in new() 70 let p = tempdir.path().join("win-bin"); in new() 82 pub fn touch(&self, path [all...] |
/kernel/linux/linux-5.10/fs/reiserfs/ |
H A D | stree.c | 209 * path, starting from the bottom of the path, and going upwards. We must 210 * check the path's validity at each step. If the key is not in the path, 222 "PAP-5010: invalid offset in the path"); in get_lkey() 224 /* While not higher in path than first element. */ in get_lkey() 231 /* Parent at the path is not in the tree now. */ in get_lkey() 242 /* Check whether parent at the path really points to the child. */ in get_lkey() 261 /* Get delimiting key of the buffer at the path and its right neighbor. */ 269 "PAP-5030: invalid offset in the path"); in get_rkey() 930 comp_items(const struct item_head *stored_ih, const struct treepath *path) comp_items() argument 949 prepare_for_direct_item(struct treepath *path, struct item_head *le_ih, struct inode *inode, loff_t new_file_length, int *cut_size) prepare_for_direct_item() argument 990 prepare_for_direntry_item(struct treepath *path, struct item_head *le_ih, struct inode *inode, loff_t new_file_length, int *cut_size) prepare_for_direntry_item() argument 1034 prepare_for_delete_or_cut(struct reiserfs_transaction_handle *th, struct inode *inode, struct treepath *path, const struct cpu_key *item_key, int *removed, int *cut_size, unsigned long long new_file_length ) prepare_for_delete_or_cut() argument 1190 init_tb_struct(struct reiserfs_transaction_handle *th, struct tree_balance *tb, struct super_block *sb, struct treepath *path, int size) init_tb_struct() argument 1251 reiserfs_delete_item(struct reiserfs_transaction_handle *th, struct treepath *path, const struct cpu_key *item_key, struct inode *inode, struct buffer_head *un_bh) reiserfs_delete_item() argument 1557 maybe_indirect_to_direct(struct reiserfs_transaction_handle *th, struct inode *inode, struct page *page, struct treepath *path, const struct cpu_key *item_key, loff_t new_file_size, char *mode) maybe_indirect_to_direct() argument 1597 indirect_to_direct_roll_back(struct reiserfs_transaction_handle *th, struct inode *inode, struct treepath *path) indirect_to_direct_roll_back() argument 1639 reiserfs_cut_from_item(struct reiserfs_transaction_handle *th, struct treepath *path, struct cpu_key *item_key, struct inode *inode, struct page *page, loff_t new_file_size) reiserfs_cut_from_item() argument 2045 check_research_for_paste(struct treepath *path, const struct cpu_key *key) check_research_for_paste() argument 2185 reiserfs_insert_item(struct reiserfs_transaction_handle *th, struct treepath *path, const struct cpu_key *key, struct item_head *ih, struct inode *inode, const char *body) reiserfs_insert_item() argument [all...] |
/kernel/linux/linux-6.6/fs/reiserfs/ |
H A D | stree.c | 209 * path, starting from the bottom of the path, and going upwards. We must 210 * check the path's validity at each step. If the key is not in the path, 222 "PAP-5010: invalid offset in the path"); in get_lkey() 224 /* While not higher in path than first element. */ in get_lkey() 231 /* Parent at the path is not in the tree now. */ in get_lkey() 242 /* Check whether parent at the path really points to the child. */ in get_lkey() 261 /* Get delimiting key of the buffer at the path and its right neighbor. */ 269 "PAP-5030: invalid offset in the path"); in get_rkey() 930 comp_items(const struct item_head *stored_ih, const struct treepath *path) comp_items() argument 949 prepare_for_direct_item(struct treepath *path, struct item_head *le_ih, struct inode *inode, loff_t new_file_length, int *cut_size) prepare_for_direct_item() argument 990 prepare_for_direntry_item(struct treepath *path, struct item_head *le_ih, struct inode *inode, loff_t new_file_length, int *cut_size) prepare_for_direntry_item() argument 1034 prepare_for_delete_or_cut(struct reiserfs_transaction_handle *th, struct inode *inode, struct treepath *path, const struct cpu_key *item_key, int *removed, int *cut_size, unsigned long long new_file_length ) prepare_for_delete_or_cut() argument 1190 init_tb_struct(struct reiserfs_transaction_handle *th, struct tree_balance *tb, struct super_block *sb, struct treepath *path, int size) init_tb_struct() argument 1251 reiserfs_delete_item(struct reiserfs_transaction_handle *th, struct treepath *path, const struct cpu_key *item_key, struct inode *inode, struct buffer_head *un_bh) reiserfs_delete_item() argument 1555 maybe_indirect_to_direct(struct reiserfs_transaction_handle *th, struct inode *inode, struct page *page, struct treepath *path, const struct cpu_key *item_key, loff_t new_file_size, char *mode) maybe_indirect_to_direct() argument 1595 indirect_to_direct_roll_back(struct reiserfs_transaction_handle *th, struct inode *inode, struct treepath *path) indirect_to_direct_roll_back() argument 1637 reiserfs_cut_from_item(struct reiserfs_transaction_handle *th, struct treepath *path, struct cpu_key *item_key, struct inode *inode, struct page *page, loff_t new_file_size) reiserfs_cut_from_item() argument 2043 check_research_for_paste(struct treepath *path, const struct cpu_key *key) check_research_for_paste() argument 2183 reiserfs_insert_item(struct reiserfs_transaction_handle *th, struct treepath *path, const struct cpu_key *key, struct item_head *ih, struct inode *inode, const char *body) reiserfs_insert_item() argument [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/uc/ |
H A D | intel_uc_fw.c | 39 uc_fw->path : intel_uc_fw_status_repr(status)); in intel_uc_fw_change_status() 85 const char *path; in INTEL_UC_FIRMWARE_DEFS() local 89 { .major = major_, .minor = minor_, .path = path_ } 127 uc_fw->path = blob->path; in __uc_fw_auto_select() 150 uc_fw->path = NULL; in __uc_fw_auto_select() 156 uc_fw->path = NULL; in __uc_fw_auto_select() 176 const char *path = NULL; in __uc_fw_user_override() local 180 path = __override_guc_firmware_path(i915); in __uc_fw_user_override() 183 path in __uc_fw_user_override() [all...] |
/kernel/linux/linux-6.6/scripts/ |
H A D | spdxcheck.py | 43 bdir = os.path.dirname(fname) 59 if not os.path.isfile(el.path): 63 for l in open(el.path, encoding="utf-8").readlines(): 241 base = os.path.dirname(fname) 273 return os.path.basename(fpath).startswith('.') 276 return os.path.basename(fpath) == self.pattern 282 if self.match_fn(os.path.dirname(fpath)): 295 if not os.path.isfile(el.path) [all...] |
/third_party/eudev/src/libudev/ |
H A D | libudev-enumerate.c | 170 char *path; in syspath_add() local 188 path = strdup(syspath); in syspath_add() 189 if (path == NULL) in syspath_add() 192 entry->syspath = path; in syspath_add() 193 entry->len = strlen(path); in syspath_add() 235 * before the point where some common path prefix changes. Returns the 659 char path[UTIL_PATH_SIZE]; in scan_dir_and_add_devices() local 665 s = path; in scan_dir_and_add_devices() 666 l = strpcpyl(&s, sizeof(path), "/sys/", basedir, NULL); in scan_dir_and_add_devices() 671 dir = opendir(path); in scan_dir_and_add_devices() 746 char path[UTIL_PATH_SIZE]; scan_dir() local 799 char path[UTIL_PATH_SIZE]; scan_devices_tags() local 835 parent_add_child(struct udev_enumerate *enumerate, const char *path) parent_add_child() argument 861 parent_crawl_children(struct udev_enumerate *enumerate, const char *path, int maxdepth) parent_crawl_children() argument 891 const char *path; scan_devices_children() local [all...] |