/kernel/linux/linux-5.10/fs/xfs/scrub/ |
H A D | dabtree.c | 54 ds->state->path.blk[level].blkno), in xchk_da_process_error() 76 ds->state->path.blk[level].blkno), in xchk_da_set_corrupt() 85 struct xfs_da_state_blk *blk = &ds->state->path.blk[level]; in xchk_da_btree_node_entry() 222 struct xfs_da_state_path *path = &ds->state->path; in xchk_da_btree_block_check_sibling() local 228 memcpy(altpath, path, sizeof(ds->state->altpath)); in xchk_da_btree_block_check_sibling() 260 /* Free all buffers in the altpath that aren't referenced from path. */ in xchk_da_btree_block_check_sibling() 263 (plevel < path->active && in xchk_da_btree_block_check_sibling() 264 altpath->blk[plevel].bp == path->blk[plevel].bp)) in xchk_da_btree_block_check_sibling() 327 blk = &ds->state->path in xchk_da_btree_block() [all...] |
/kernel/linux/linux-6.6/fs/exportfs/ |
H A D | expfs.c | 24 static int get_name(const struct path *path, char *name, struct dentry *child); 31 struct path path = {.mnt = mnt, .dentry = dir}; in exportfs_get_name() local 36 return get_name(&path, name, child); in exportfs_get_name() 269 * @path: the directory in which to find a name 276 static int get_name(const struct path *path, char *name, struct dentry *child) in get_name() argument 279 struct inode *dir = path->dentry->d_inode; in get_name() 283 struct path child_pat in get_name() [all...] |
/kernel/linux/linux-6.6/fs/xfs/scrub/ |
H A D | dabtree.c | 55 ds->state->path.blk[level].blkno), in xchk_da_process_error() 77 ds->state->path.blk[level].blkno), in xchk_da_set_corrupt() 86 struct xfs_da_state_blk *blk = &ds->state->path.blk[level]; in xchk_da_btree_node_entry() 223 struct xfs_da_state_path *path = &ds->state->path; in xchk_da_btree_block_check_sibling() local 229 memcpy(altpath, path, sizeof(ds->state->altpath)); in xchk_da_btree_block_check_sibling() 261 /* Free all buffers in the altpath that aren't referenced from path. */ in xchk_da_btree_block_check_sibling() 264 (plevel < path->active && in xchk_da_btree_block_check_sibling() 265 altpath->blk[plevel].bp == path->blk[plevel].bp)) in xchk_da_btree_block_check_sibling() 328 blk = &ds->state->path in xchk_da_btree_block() [all...] |
/kernel/linux/linux-6.6/tools/perf/tests/ |
H A D | dlfilter-test.c | 225 char path[PATH_MAX]; in get_dlfilters_path() local 231 snprintf(path, sizeof(path), "%s/dlfilters/%s", perf_path, name); in get_dlfilters_path() 232 if (access(path, R_OK)) { in get_dlfilters_path() 236 snprintf(path, sizeof(path), "%s/dlfilters/%s", exec_path, name); in get_dlfilters_path() 238 if (access(path, R_OK)) in get_dlfilters_path() 241 strlcpy(buf, dirname(path), sz); in get_dlfilters_path() 337 pr_debug("dlfilters path: %s\n", td->dlfilters); in test__dlfilter_test() 389 static void unlink_path(const char *path) in unlink_path() argument [all...] |
H A D | attr.py | 40 return '\'%s\' - %s' % (self.test.path, self.msg) 47 return '[%s] \'%s\'' % (self.arch, self.test.path) 53 return '\'%s\'' % self.test.path 154 def __init__(self, path, options): 156 parser.read(path) 158 log.warning("running '%s'" % path) 160 self.path = path 185 self.load_events(path, self.expect) 249 def load_events(self, path, event [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/net/forwarding/ |
H A D | devlink_lib.sh | 59 local path="" 62 if [ "$path" == "" ]; then 63 path="$resource" 65 path="${path}/$resource" 69 echo "$path" 102 local path 105 path=$(devlink_resource_names_to_path "$@") 106 devlink resource set "$DEVLINK_DEV" path "$path" siz [all...] |
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | cgroup.c | 33 char path[PATH_MAX + 1]; in open_cgroup() local 41 scnprintf(path, PATH_MAX, "%s/%s", mnt, name); in open_cgroup() 43 fd = open(path, O_RDONLY); in open_cgroup() 45 fprintf(stderr, "no access to cgroup %s\n", path); in open_cgroup() 53 char path[PATH_MAX + 1]; in read_cgroup_id() local 64 scnprintf(path, PATH_MAX, "%s/%s", mnt, cgrp->name); in read_cgroup_id() 67 if (name_to_handle_at(AT_FDCWD, path, &handle.fh, &mount_id, 0) < 0) in read_cgroup_id() 304 /* cgroup_name will have a full path, skip the root directory */ in match_cgroups() 456 /* cgroup_name might have a full path, skip the prefix */ in evlist__expand_cgroup() 512 bool create, const char *path) in __cgroup__findnew() 511 __cgroup__findnew(struct rb_root *root, uint64_t id, bool create, const char *path) __cgroup__findnew() argument 554 cgroup__findnew(struct perf_env *env, uint64_t id, const char *path) cgroup__findnew() argument [all...] |
H A D | thread_map.c | 79 char path[NAME_MAX + 1 + 6]; in __thread_map__new_all_cpus() local 101 snprintf(path, sizeof(path), "/proc/%s", dirent->d_name); in __thread_map__new_all_cpus() 106 if (stat(path, &st) != 0 || st.st_uid != uid) in __thread_map__new_all_cpus() 110 snprintf(path, sizeof(path), "/proc/%d/task", pid); in __thread_map__new_all_cpus() 111 items = scandir(path, &namelist, filter, NULL); in __thread_map__new_all_cpus() 321 char *path; in get_comm() local 325 if (asprintf(&path, "%s/%d/comm", procfs__mountpoint(), pid) == -1) in get_comm() 328 err = filename__read_str(path, com in get_comm() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/mm/ |
H A D | tlbie_test.c | 263 char path[LOGDIR_NAME_SIZE + 30]; in start_verification_log() local 269 strcpy(path, logdir); in start_verification_log() 270 strcat(path, separator); in start_verification_log() 271 strcat(path, logfile); in start_verification_log() 272 f = fopen(path, "w"); in start_verification_log() 311 char path[LOGDIR_NAME_SIZE + 30]; in end_verification_log() local 317 remove(path); in end_verification_log() 322 strcpy(path, logdir); in end_verification_log() 323 strcat(path, separator); in end_verification_log() 324 strcat(path, logfil in end_verification_log() [all...] |
/kernel/linux/linux-6.6/tools/thermal/tmon/ |
H A D | sysfs.c | 33 int sysfs_set_ulong(char *path, char *filename, unsigned long val) in sysfs_set_ulong() argument 39 snprintf(filepath, sizeof(filepath), "%s/%s", path, filename); in sysfs_set_ulong() 57 static int sysfs_get_ulong(char *path, char *filename, unsigned long *p_ulong) in sysfs_get_ulong() argument 63 snprintf(filepath, sizeof(filepath), "%s/%s", path, filename); in sysfs_get_ulong() 76 static int sysfs_get_string(char *path, char *filename, char *str) in sysfs_get_string() argument 82 snprintf(filepath, sizeof(filepath), "%s/%s", path, filename); in sysfs_get_string() 96 static int probe_cdev(struct cdev_info *cdi, char *path) in probe_cdev() argument 98 sysfs_get_string(path, "type", cdi->type); in probe_cdev() 99 sysfs_get_ulong(path, "max_state", &cdi->max_state); in probe_cdev() 100 sysfs_get_ulong(path, "cur_stat in probe_cdev() [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | utils.c | 294 int av_get_frame_filename2(char *buf, int buf_size, const char *path, int number, int flags) in av_get_frame_filename2() argument 301 p = path; in av_get_frame_filename2() 352 int av_get_frame_filename(char *buf, int buf_size, const char *path, int number) in av_get_frame_filename() argument 354 return av_get_frame_filename2(buf, buf_size, path, number, 0); in av_get_frame_filename() 360 int *port_ptr, char *path, int path_size, const char *url) in av_url_split() 373 path[0] = 0; in av_url_split() 385 av_strlcpy(path, url, path_size); in av_url_split() 389 /* separate path from hostname */ in av_url_split() 391 av_strlcpy(path, ls, path_size); in av_url_split() 420 int ff_mkdir_p(const char *path) in ff_mkdir_p() argument 357 av_url_split(char *proto, int proto_size, char *authorization, int authorization_size, char *hostname, int hostname_size, int *port_ptr, char *path, int path_size, const char *url) av_url_split() argument [all...] |
/third_party/curl/src/ |
H A D | tool_doswin.c | 67 static SANITIZEcode truncate_dryrun(const char *path, 80 Sanitize a file or path name. 97 SANITIZE_ALLOW_PATH: Allow path separators and colons. 98 Without this flag path separators and colons are sanitized. 102 in a UNC prefixed path. 105 Without this flag if the sanitized filename or path will be too long an error 106 occurs. With this flag the filename --and not any other parts of the path-- may 132 /* UNC prefixed path \\ (eg \\?\C:\foo) */ in sanitize_file_name() 141 does not discount the path information therefore we shouldn't use it. */ in sanitize_file_name() 162 /* Skip the literal path prefi in sanitize_file_name() 263 truncate_dryrun(const char *path, const size_t truncate_pos) truncate_dryrun() argument 675 char *path; /* points to stack allocated buffer */ GetLoadedModulePaths() local [all...] |
/third_party/libuv/src/win/ |
H A D | fs-event.c | 158 const char* path, in uv_fs_event_start() 173 handle->path = uv__strdup(path); in uv_fs_event_start() 174 if (!handle->path) { in uv_fs_event_start() 180 last_error = uv__convert_utf8_to_utf16(path, &pathw); in uv_fs_event_start() 184 /* Determine whether path is a file or a directory. */ in uv_fs_event_start() 194 /* path is a directory, so that's the directory that we will watch. */ in uv_fs_event_start() 196 /* Convert to long path. */ in uv_fs_event_start() 222 * path is a file. So we split path int in uv_fs_event_start() 156 uv_fs_event_start(uv_fs_event_t* handle, uv_fs_event_cb cb, const char* path, unsigned int flags) uv_fs_event_start() argument [all...] |
/third_party/libuv/src/unix/ |
H A D | internal.h | 291 int uv__open_cloexec(const char* path, int flags); 330 FILE* uv__open_file(const char* path); 338 int uv__random_readpath(const char* path, void* buf, size_t buflen); 396 UV_UNUSED(static char* uv__basename_r(const char* path)) { in UV_UNUSED() argument 399 s = strrchr(path, '/'); in UV_UNUSED() 401 return (char*) path; in UV_UNUSED() 416 UV_UNUSED(static int uv__lstat(const char* path, struct stat* s)) { in UV_UNUSED() argument 419 rc = lstat(path, s); in UV_UNUSED() 426 UV_UNUSED(static int uv__stat(const char* path, struct stat* s)) { in UV_UNUSED() argument 429 rc = stat(path, in UV_UNUSED() [all...] |
/third_party/lzma/CPP/Windows/ |
H A D | FileName.cpp | 278 int FindAltStreamColon(CFSTR path) throw()
in FindAltStreamColon() argument 281 if (IsDrivePath2(path))
in FindAltStreamColon() 286 FChar c = path[i];
in FindAltStreamColon() 304 // Network path: we look "server\path\" as root prefix
in GetRootPrefixSize_Of_NetworkPath() 353 // Network path: we look "server\path\" as root prefix
in GetRootPrefixSize_Of_NetworkPath() 420 static bool GetCurDir(UString &path)
in GetCurDir() argument 422 path.Empty();
in GetCurDir() 426 path in GetCurDir() 755 GetSuperPath(CFSTR path, UString &superPath, bool onlyIfNew) GetSuperPath() argument 889 GetFullPath(CFSTR path, FString &fullPath) GetFullPath() argument [all...] |
/third_party/nghttp2/src/ |
H A D | shrpx_api_downstream_connection.cc | 168 const APIEndpoint *lookup_api(const StringRef &path) { in lookup_api() argument 169 switch (path.size()) { in lookup_api() 171 switch (path[25]) { in lookup_api() 173 if (util::streq_l("/api/v1beta1/backendconfi", std::begin(path), 25)) { in lookup_api() 180 switch (path[26]) { in lookup_api() 182 if (util::streq_l("/api/v1beta1/configrevisio", std::begin(path), 26)) { in lookup_api() 196 auto path = in push_request_headers() local 197 StringRef{std::begin(req.path), in push_request_headers() 198 std::find(std::begin(req.path), std::end(req.path), ' in push_request_headers() [all...] |
/third_party/ninja/src/ |
H A D | dyndep_parser_test.cc | 231 EXPECT_EQ("input:2: expected path\n" in TEST_F() 394 EXPECT_EQ("impin", i->second.implicit_inputs_[0]->path()); in TEST_F() 408 EXPECT_EQ("impin1", i->second.implicit_inputs_[0]->path()); in TEST_F() 409 EXPECT_EQ("impin2", i->second.implicit_inputs_[1]->path()); in TEST_F() 422 EXPECT_EQ("impout", i->second.implicit_outputs_[0]->path()); in TEST_F() 436 EXPECT_EQ("impout1", i->second.implicit_outputs_[0]->path()); in TEST_F() 437 EXPECT_EQ("impout2", i->second.implicit_outputs_[1]->path()); in TEST_F() 451 EXPECT_EQ("impout1", i->second.implicit_outputs_[0]->path()); in TEST_F() 452 EXPECT_EQ("impout2", i->second.implicit_outputs_[1]->path()); in TEST_F() 454 EXPECT_EQ("impin1", i->second.implicit_inputs_[0]->path()); in TEST_F() [all...] |
/third_party/node/deps/openssl/openssl/apps/ |
H A D | rehash.c | 55 # define lstat(path, buf) stat(path, buf) 326 static int ends_with_dirsep(const char *path) in ends_with_dirsep() argument 328 if (*path != '\0') in ends_with_dirsep() 329 path += strlen(path) - 1; in ends_with_dirsep() 331 if (*path == ']' || *path == '>' || *path == ':') in ends_with_dirsep() 334 if (*path in ends_with_dirsep() [all...] |
/third_party/openssl/apps/ |
H A D | rehash.c | 58 # define lstat(path, buf) stat(path, buf) 329 static int ends_with_dirsep(const char *path) in ends_with_dirsep() argument 331 if (*path != '\0') in ends_with_dirsep() 332 path += strlen(path) - 1; in ends_with_dirsep() 334 if (*path == ']' || *path == '>' || *path == ':') in ends_with_dirsep() 337 if (*path in ends_with_dirsep() [all...] |
/third_party/skia/src/core/ |
H A D | SkEdgeBuilder.cpp | 221 int SkEdgeBuilder::buildPoly(const SkPath& path, const SkIRect* iclip, bool canCullToTheRight) { in buildPoly() argument 222 size_t maxEdgeCount = path.countPoints(); in buildPoly() 241 SkPathEdgeIter iter(path); in buildPoly() 289 int SkEdgeBuilder::build(const SkPath& path, const SkIRect* iclip, bool canCullToTheRight) { in build() argument 294 SkPathEdgeIter iter(path); in build() 302 SkEdgeClipper::ClipPath(path, clip, canCullToTheRight, in build() 363 int SkEdgeBuilder::buildEdges(const SkPath& path, in buildEdges() argument 366 const bool canCullToTheRight = !path.isConvex(); in buildEdges() 370 const int count = SkPath::kLine_SegmentMask == path.getSegmentMasks() in buildEdges() 371 ? this->buildPoly(path, shiftedCli in buildEdges() [all...] |
/third_party/skia/experimental/sorttoy/ |
H A D | sorttoy.cpp | 95 SkString path = SkOSPath::Join(dir, s == Shape::kRect ? "rect-expected" : "oval-expected"); in save_files() local 96 path.appendU32(testID); in save_files() 97 path.append(".png"); in save_files() 100 exitf("failed to create directory for png \"%s\"", path.c_str()); in save_files() 102 if (!ToolUtils::EncodeImageToFile(path.c_str(), expected, SkEncodedImageFormat::kPNG, 100)) { in save_files() 103 exitf("failed to save png to \"%s\"", path.c_str()); in save_files() 106 path = SkOSPath::Join(dir, s == Shape::kRect ? "rect-actual" : "oval-actual"); in save_files() 107 path.appendU32(testID); in save_files() 108 path.append(".png"); in save_files() 110 if (!ToolUtils::EncodeImageToFile(path in save_files() [all...] |
/kernel/linux/linux-5.10/net/unix/ |
H A D | af_unix.c | 56 * accept() returns a path name even if the connecting socket has closed 57 * in the meantime (BSD loses the path and gives up). 58 * accept() returns 0 length path for an unbound connector. BSD returns 16 59 * and a null first byte in the path (but not for gethost/peername - BSD bug ??) 240 * subtle. 108 is the longest valid AF_UNIX path for a binding. in unix_mkname() 320 struct dentry *dentry = unix_sk(s)->path.dentry; in unix_find_socket_byinode() 522 struct path path; in unix_release_sock() local 533 path = u->path; in unix_release_sock() 953 struct path path; unix_find_other() local 1006 struct path path; unix_mknod() local 1043 struct path path = { }; unix_bind() local 2644 struct path path; unix_open_file() local [all...] |
/third_party/libdrm/ |
H A D | xf86drm.c | 724 * \param path to file. 736 static int chown_check_return(const char *path, uid_t owner, gid_t group) in chown_check_return() argument 741 rv = chown(path, owner, group); in chown_check_return() 748 path, errno, strerror(errno)); in chown_check_return() 3263 char path[64]; in drmNodeIsDRM() local 3266 snprintf(path, sizeof(path), "/sys/dev/char/%d:%d/device/drm", in drmNodeIsDRM() 3268 return stat(path, &sbuf) == 0; in drmNodeIsDRM() 3474 sysfs_uevent_get(const char *path, const char *fmt, ...) in sysfs_uevent_get() argument 3487 snprintf(filename, sizeof(filename), "%s/uevent", path); in sysfs_uevent_get() 3522 char path[PATH_MAX + 1] = ""; get_subsystem_type() local 3559 char path[PATH_MAX + 1] = ""; drmParseSubsystemType() local 3589 char path[PATH_MAX + 1], *term; get_pci_path() local 3786 char path[PATH_MAX + 1], pci_path[PATH_MAX + 1]; parse_separate_sysfs_files() local 3820 char path[PATH_MAX + 1], pci_path[PATH_MAX + 1]; parse_config_sysfs_file() local 4077 drm_usb_dev_path(int maj, int min, char *path, size_t len) drm_usb_dev_path() argument 4124 char path[PATH_MAX + 1], *value; drmParseUsbBusInfo() local 4165 char path[PATH_MAX + 1], *value; drmParseUsbDeviceInfo() local 4235 char path[PATH_MAX + 1], *name, *tmp_name; drmParseOFBusInfo() local 4270 char path[PATH_MAX + 1], *value, *tmp_name; drmParseOFDeviceInfo() local 4766 char path[PATH_MAX + 1], *value; drmGetDeviceNameFromFd2() local [all...] |
/kernel/linux/linux-5.10/drivers/video/fbdev/mmp/hw/ |
H A D | mmp_ctrl.h | 150 #define LCD_SCLK(path) ((PATH_PN == path->id) ? LCD_CFG_SCLK_DIV :\ 151 ((PATH_TV == path->id) ? LCD_TCLK_DIV : LCD_PN2_SCLK_DIV)) 913 #define timing_master_config(path, dsi_id, lcd_id) \ 914 (MASTER_ENH(path) | MASTER_ENV(path) | \ 915 (((lcd_id) + ((dsi_id) << 1)) << DSI_START_SEL_SHIFT(path))) 1378 * mmp path describes part of mmp path related info: 1385 struct mmp_path *path; member 1417 path_to_path_plat(struct mmp_path *path) path_to_path_plat() argument 1422 path_to_ctrl(struct mmp_path *path) path_to_ctrl() argument 1432 ctrl_regs(struct mmp_path *path) ctrl_regs() argument 1438 path_regs(struct mmp_path *path) path_regs() argument [all...] |
/kernel/linux/linux-6.6/drivers/video/fbdev/mmp/hw/ |
H A D | mmp_ctrl.h | 150 #define LCD_SCLK(path) ((PATH_PN == path->id) ? LCD_CFG_SCLK_DIV :\ 151 ((PATH_TV == path->id) ? LCD_TCLK_DIV : LCD_PN2_SCLK_DIV)) 913 #define timing_master_config(path, dsi_id, lcd_id) \ 914 (MASTER_ENH(path) | MASTER_ENV(path) | \ 915 (((lcd_id) + ((dsi_id) << 1)) << DSI_START_SEL_SHIFT(path))) 1378 * mmp path describes part of mmp path related info: 1385 struct mmp_path *path; member 1417 path_to_path_plat(struct mmp_path *path) path_to_path_plat() argument 1422 path_to_ctrl(struct mmp_path *path) path_to_ctrl() argument 1432 ctrl_regs(struct mmp_path *path) ctrl_regs() argument 1438 path_regs(struct mmp_path *path) path_regs() argument [all...] |