/foundation/ability/ability_base/interfaces/kits/native/extractortool/src/ |
H A D | file_path_utils.cpp | 28 char* realpath(const char* path, char* resolvedPath) in realpath() argument 30 if (_access(path, 0) < 0) { in realpath() 33 if (strcpy_s(resolvedPath, PATH_MAX, path) != 0) { in realpath() 117 void FixExtName(std::string& path) in FixExtName() argument 119 if (path.empty()) { in FixExtName() 123 if (StringEndWith(path, EXT_NAME_ABC, sizeof(EXT_NAME_ABC) - 1)) { in FixExtName() 127 if (StringEndWith(path, EXT_NAME_ETS, sizeof(EXT_NAME_ETS) - 1)) { in FixExtName() 128 path.erase(path.length() - (sizeof(EXT_NAME_ETS) - 1), sizeof(EXT_NAME_ETS) - 1); in FixExtName() 129 } else if (StringEndWith(path, EXT_NAME_T in FixExtName() 205 char path[PATH_MAX]; MakeNewJsModulePath() local 216 char path[PATH_MAX]; FindNpmPackageInPath() local 262 std::string path = moduleInstallPath + NPM_PATH_SEGMENT + '/' + std::to_string(level) + '/' + npmPackage; FindNpmPackageInTopLevel() local 298 std::string path = FindNpmPackage() local [all...] |
/kernel/linux/linux-6.6/fs/btrfs/ |
H A D | dir-item.c | 24 struct btrfs_path *path, in insert_with_overflow() 35 ret = btrfs_insert_empty_item(trans, root, path, cpu_key, data_size); in insert_with_overflow() 38 di = btrfs_match_dir_item_name(fs_info, path, name, name_len); in insert_with_overflow() 41 btrfs_extend_item(trans, path, data_size); in insert_with_overflow() 45 leaf = path->nodes[0]; in insert_with_overflow() 46 ptr = btrfs_item_ptr(leaf, path->slots[0], char); in insert_with_overflow() 47 ASSERT(data_size <= btrfs_item_size(leaf, path->slots[0])); in insert_with_overflow() 48 ptr += btrfs_item_size(leaf, path->slots[0]) - data_size; in insert_with_overflow() 58 struct btrfs_path *path, u64 objectid, in btrfs_insert_xattr_item() 78 dir_item = insert_with_overflow(trans, root, path, in btrfs_insert_xattr_item() 21 insert_with_overflow(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, struct btrfs_key *cpu_key, u32 data_size, const char *name, int name_len) insert_with_overflow() argument 56 btrfs_insert_xattr_item(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, u64 objectid, const char *name, u16 name_len, const void *data, u16 data_len) btrfs_insert_xattr_item() argument 116 struct btrfs_path *path; btrfs_insert_dir_item() local 177 btrfs_lookup_match_dir( struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, struct btrfs_key *key, const char *name, int name_len, int mod) btrfs_lookup_match_dir() argument 212 btrfs_lookup_dir_item(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, u64 dir, const struct fscrypt_str *name, int mod) btrfs_lookup_dir_item() argument 242 struct btrfs_path *path; btrfs_check_dir_item_collision() local 308 btrfs_lookup_dir_index_item(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, u64 dir, u64 index, const struct fscrypt_str *name, int mod) btrfs_lookup_dir_index_item() argument 329 btrfs_search_dir_index_item(struct btrfs_root *root, struct btrfs_path *path, u64 dirid, const struct fscrypt_str *name) btrfs_search_dir_index_item() argument 356 btrfs_lookup_xattr(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, u64 dir, const char *name, u16 name_len, int mod) btrfs_lookup_xattr() argument 381 btrfs_match_dir_item_name(struct btrfs_fs_info *fs_info, struct btrfs_path *path, const char *name, int name_len) btrfs_match_dir_item_name() argument 417 btrfs_delete_one_dir_name(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, struct btrfs_dir_item *di) btrfs_delete_one_dir_name() argument [all...] |
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing/test_case/ |
H A D | draw_path_test.cpp | 25 Drawing::Path path; in OnTestFunctionCpu() local 26 path.MoveTo(0, 0); // from (0, 0) in OnTestFunctionCpu() 27 path.LineTo(300, 300); // to (300, 300) in OnTestFunctionCpu() 28 canvas->DrawPath(path); in OnTestFunctionCpu() 33 Drawing::Path path; in OnTestFunctionGpuUpScreen() local 34 path.MoveTo(200, 200); // from (200, 200) in OnTestFunctionGpuUpScreen() 35 path.LineTo(500, 500); // to (500, 500) in OnTestFunctionGpuUpScreen() 36 canvas->DrawPath(path); in OnTestFunctionGpuUpScreen() 44 Drawing::Path path; in OnTestPerformance() local 45 path in OnTestPerformance() [all...] |
/test/xts/hats/kernel/syscalls/ns/setns/ |
H A D | SetnsApiTest.cpp | 66 char path[PATH_MAX_SIZE] = { 0 }; in HWTEST_F() local 70 int ret = sprintf_s(path, PATH_MAX_SIZE - 1, "/proc/%d/ns/ipc", pid); in HWTEST_F() 72 int fd = open(path, O_RDONLY); in HWTEST_F() 80 memset_s(path, PATH_MAX_SIZE, 0, sizeof(path)); in HWTEST_F() 81 ret = sprintf_s(path, PATH_MAX_SIZE - 1, "/proc/%d/ns/net", pid); in HWTEST_F() 83 fd = open(path, O_RDONLY); in HWTEST_F() 91 memset_s(path, PATH_MAX_SIZE, 0, sizeof(path)); in HWTEST_F() 92 ret = sprintf_s(path, PATH_MAX_SIZ in HWTEST_F() [all...] |
/test/xts/tools/lite/build/ |
H A D | utils.py | 104 if not os.path.exists(input_file): 113 file_dir = os.path.dirname(os.path.abspath(output_file)) 114 if not os.path.exists(file_dir): 139 _parent_output = os.path.dirname(_output) 141 if to_dir and not os.path.exists(_output): 143 if not to_dir and not os.path.exists(_parent_output): 146 if not os.path.isdir(_output): 163 if os.path.isfile(source_file) and os.path [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/ohos/overdraw/ |
H A D | rs_cpu_overdraw_canvas_listener.cpp | 60 Drawing::Path path; in DrawLine() local 61 path.MoveTo(startPt.GetX(), startPt.GetY()); in DrawLine() 62 path.LineTo(endPt.GetX(), endPt.GetY()); in DrawLine() 63 AppendRegion(path); in DrawLine() 68 Drawing::Path path; in DrawRect() local 69 path.AddRect(rect); in DrawRect() 70 AppendRegion(path); in DrawRect() 75 Drawing::Path path; in DrawRoundRect() local 76 path.AddRoundRect(roundRect); in DrawRoundRect() 77 AppendRegion(path); in DrawRoundRect() 82 Drawing::Path path; DrawNestedRoundRect() local 91 Drawing::Path path; DrawArc() local 99 Drawing::Path path; DrawPie() local 106 Drawing::Path path; DrawOval() local 113 Drawing::Path path; DrawCircle() local 118 DrawPath(const Drawing::Path& path) DrawPath() argument 129 DrawShadow(const Drawing::Path& path, const Drawing::Point3& planeParams, const Drawing::Point3& devLightPos, Drawing::scalar lightRadius, Drawing::Color ambientColor, Drawing::Color spotColor, Drawing::ShadowFlags flag) DrawShadow() argument 136 DrawShadowStyle(const Drawing::Path& path, const Drawing::Point3& planeParams, const Drawing::Point3& devLightPos, Drawing::scalar lightRadius, Drawing::Color ambientColor, Drawing::Color spotColor, Drawing::ShadowFlags flag, bool isLimitElevation) DrawShadowStyle() argument 194 AppendRegion(Drawing::Path& path) AppendRegion() argument [all...] |
/kernel/linux/linux-5.10/fs/ |
H A D | d_path.c | 27 * With RCU path tracing, it may race with d_move(). Use READ_ONCE() to 59 * prepend_path - Prepend path string to a buffer 60 * @path: the dentry/vfsmount to report 75 static int prepend_path(const struct path *path, in prepend_path() argument 76 const struct path *root, in prepend_path() 96 dentry = path->dentry; in prepend_path() 97 vfsmnt = path->mnt; in prepend_path() 165 * __d_path - return the path of a dentry 166 * @path 180 __d_path(const struct path *path, const struct path *root, char *buf, int buflen) __d_path() argument 197 d_absolute_path(const struct path *path, char *buf, int buflen) d_absolute_path() argument 217 path_with_deleted(const struct path *path, const struct path *root, char **buf, int *buflen) path_with_deleted() argument 262 d_path(const struct path *path, char *buf, int buflen) d_path() argument [all...] |
/kernel/linux/linux-5.10/scripts/clang-tools/ |
H A D | gen_compile_commands.py | 44 output_help = ('path to the output command database (defaults to ' + 65 os.path.abspath(args.directory), 80 The path to a .cmd file. 88 yield os.path.join(dirpath, filename) 91 def to_cmdfile(path): 92 """Return the path of .cmd file used for the given build artifact 95 Path: file path 98 The path to .cmd file 100 dir, base = os.path.split(path) [all...] |
/kernel/linux/linux-5.10/net/iucv/ |
H A D | iucv.c | 117 * The work element to deliver path pending interrupts. 649 * @pathid: path identification number. 652 * Sever an iucv path to free up the pathid. Used internally. 680 * Function called after a path has been severed to find all remaining 689 * When a path is severed, the pathid can be reused immediately in iucv_cleanup_queue() 806 * @path: address of iucv path structure 809 * @private: private data passed to interrupt handlers for this path 812 * external interrupt and now wishes to complete the IUCV communication path. 816 int iucv_path_accept(struct iucv_path *path, struc argument 863 iucv_path_connect(struct iucv_path *path, struct iucv_handler *handler, u8 *userid, u8 *system, u8 *userdata, void *private) iucv_path_connect() argument 926 iucv_path_quiesce(struct iucv_path *path, u8 *userdata) iucv_path_quiesce() argument 958 iucv_path_resume(struct iucv_path *path, u8 *userdata) iucv_path_resume() argument 988 iucv_path_sever(struct iucv_path *path, u8 *userdata) iucv_path_sever() argument 1020 iucv_message_purge(struct iucv_path *path, struct iucv_message *msg, u32 srccls) iucv_message_purge() argument 1060 iucv_message_receive_iprmdata(struct iucv_path *path, struct iucv_message *msg, u8 flags, void *buffer, size_t size, size_t *residual) iucv_message_receive_iprmdata() argument 1110 __iucv_message_receive(struct iucv_path *path, struct iucv_message *msg, u8 flags, void *buffer, size_t size, size_t *residual) __iucv_message_receive() argument 1158 iucv_message_receive(struct iucv_path *path, struct iucv_message *msg, u8 flags, void *buffer, size_t size, size_t *residual) iucv_message_receive() argument 1184 iucv_message_reject(struct iucv_path *path, struct iucv_message *msg) iucv_message_reject() argument 1222 iucv_message_reply(struct iucv_path *path, struct iucv_message *msg, u8 flags, void *reply, size_t size) iucv_message_reply() argument 1273 __iucv_message_send(struct iucv_path *path, struct iucv_message *msg, u8 flags, u32 srccls, void *buffer, size_t size) __iucv_message_send() argument 1327 iucv_message_send(struct iucv_path *path, struct iucv_message *msg, u8 flags, u32 srccls, void *buffer, size_t size) iucv_message_send() argument 1358 iucv_message_send2way(struct iucv_path *path, struct iucv_message *msg, u8 flags, u32 srccls, void *buffer, size_t size, void *answer, size_t asize, size_t *residual) iucv_message_send2way() argument 1425 struct iucv_path *path; iucv_path_pending() local 1485 struct iucv_path *path = iucv_path_table[ipc->ippathid]; iucv_path_complete() local 1515 struct iucv_path *path = iucv_path_table[ips->ippathid]; iucv_path_severed() local 1551 struct iucv_path *path = iucv_path_table[ipq->ippathid]; iucv_path_quiesced() local 1579 struct iucv_path *path = iucv_path_table[ipr->ippathid]; iucv_path_resumed() local 1610 struct iucv_path *path = iucv_path_table[imc->ippathid]; iucv_message_complete() local 1655 struct iucv_path *path = iucv_path_table[imp->ippathid]; iucv_message_pending() local [all...] |
/kernel/linux/linux-6.6/net/iucv/ |
H A D | iucv.c | 117 * The work element to deliver path pending interrupts. 651 * @pathid: path identification number. 654 * Sever an iucv path to free up the pathid. Used internally. 682 * Function called after a path has been severed to find all remaining 691 * When a path is severed, the pathid can be reused immediately in iucv_cleanup_queue() 808 * @path: address of iucv path structure 811 * @private: private data passed to interrupt handlers for this path 814 * external interrupt and now wishes to complete the IUCV communication path. 818 int iucv_path_accept(struct iucv_path *path, struc argument 865 iucv_path_connect(struct iucv_path *path, struct iucv_handler *handler, u8 *userid, u8 *system, u8 *userdata, void *private) iucv_path_connect() argument 928 iucv_path_quiesce(struct iucv_path *path, u8 *userdata) iucv_path_quiesce() argument 960 iucv_path_resume(struct iucv_path *path, u8 *userdata) iucv_path_resume() argument 990 iucv_path_sever(struct iucv_path *path, u8 *userdata) iucv_path_sever() argument 1022 iucv_message_purge(struct iucv_path *path, struct iucv_message *msg, u32 srccls) iucv_message_purge() argument 1062 iucv_message_receive_iprmdata(struct iucv_path *path, struct iucv_message *msg, u8 flags, void *buffer, size_t size, size_t *residual) iucv_message_receive_iprmdata() argument 1112 __iucv_message_receive(struct iucv_path *path, struct iucv_message *msg, u8 flags, void *buffer, size_t size, size_t *residual) __iucv_message_receive() argument 1160 iucv_message_receive(struct iucv_path *path, struct iucv_message *msg, u8 flags, void *buffer, size_t size, size_t *residual) iucv_message_receive() argument 1186 iucv_message_reject(struct iucv_path *path, struct iucv_message *msg) iucv_message_reject() argument 1224 iucv_message_reply(struct iucv_path *path, struct iucv_message *msg, u8 flags, void *reply, size_t size) iucv_message_reply() argument 1275 __iucv_message_send(struct iucv_path *path, struct iucv_message *msg, u8 flags, u32 srccls, void *buffer, size_t size) __iucv_message_send() argument 1329 iucv_message_send(struct iucv_path *path, struct iucv_message *msg, u8 flags, u32 srccls, void *buffer, size_t size) iucv_message_send() argument 1361 iucv_message_send2way(struct iucv_path *path, struct iucv_message *msg, u8 flags, u32 srccls, void *buffer, size_t size, void *answer, size_t asize, size_t *residual) iucv_message_send2way() argument 1428 struct iucv_path *path; iucv_path_pending() local 1488 struct iucv_path *path = iucv_path_table[ipc->ippathid]; iucv_path_complete() local 1518 struct iucv_path *path = iucv_path_table[ips->ippathid]; iucv_path_severed() local 1554 struct iucv_path *path = iucv_path_table[ipq->ippathid]; iucv_path_quiesced() local 1582 struct iucv_path *path = iucv_path_table[ipr->ippathid]; iucv_path_resumed() local 1613 struct iucv_path *path = iucv_path_table[imc->ippathid]; iucv_message_complete() local 1660 struct iucv_path *path = iucv_path_table[imp->ippathid]; iucv_message_pending() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/triangle/ |
H A D | rosen_render_triangle.cpp | 44 SkPath path; in Paint() local 48 path.moveTo(arc1.GetStartPoint().GetX(), arc1.GetStartPoint().GetY()); in Paint() 49 path.arcTo({ arc1.GetLeft(), arc1.GetTop(), arc1.GetRight(), arc1.GetBottom() }, in Paint() 51 path.lineTo(arc2.GetStartPoint().GetX(), arc2.GetStartPoint().GetY()); in Paint() 52 path.arcTo({ arc2.GetLeft(), arc2.GetTop(), arc2.GetRight(), arc2.GetBottom() }, in Paint() 54 path.lineTo(arc3.GetStartPoint().GetX(), arc3.GetStartPoint().GetY()); in Paint() 55 path.arcTo({ arc3.GetLeft(), arc3.GetTop(), arc3.GetRight(), arc3.GetBottom() }, in Paint() 57 path.close(); in Paint() 62 canvas->drawPath(path, paint); in Paint() 64 RSRecordingPath path; in Paint() local [all...] |
/foundation/multimodalinput/input/tools/event_inject/test/ |
H A D | processing_game_pad_device_test.cpp | 32 static void CheckGamePadJson(const std::string path) in CheckGamePadJson() argument 41 std::string jsonBuf = ReadJsonFile(path); in CheckGamePadJson() 43 ASSERT_TRUE(false) << "Read file failed" << path; in CheckGamePadJson() 65 const std::string path = "/data/json/Test_TransformGamePadJsonDataToInputData.json"; in HWTEST_F() local 74 std::string jsonBuf = ReadJsonFile(path); in HWTEST_F() 76 ASSERT_TRUE(false) << "Read file failed" << path; in HWTEST_F() 97 const std::string path = "/data/json/Test_TransformGamePadJsonDataToInputDataNotFindEvents.json"; in HWTEST_F() local 98 CheckGamePadJson(path); in HWTEST_F() 109 const std::string path = "/data/json/Test_TransformGamePadJsonDataToInputDataEventsIsEmpty.json"; in HWTEST_F() local 110 CheckGamePadJson(path); in HWTEST_F() 121 const std::string path = "/data/json/Test_TransformGamePadJsonDataToInputDataNotFindKeyValueInPress.json"; HWTEST_F() local 133 const std::string path = "/data/json/Test_TransformGamePadJsonDataToInputDataNotFindEventInRocker.json"; HWTEST_F() local 145 const std::string path = "/data/json/Test_TransformGamePadJsonDataToInputDataNotFindDirectionInRocker.json"; HWTEST_F() local 158 const std::string path = HWTEST_F() local [all...] |
/test/testfwk/developer_test/local_coverage/code_coverage/ |
H A D | multiprocess_code_coverage.py | 46 sys.localcoverage_path = os.path.join(current_path, "..") 47 sys.path.insert(0, sys.localcoverage_path) 67 coverage_log_path = os.path.join( 80 subsystem_config_filepath = os.path.join(CODEPATH, SYSTEM_JSON) 81 if os.path.exists(subsystem_config_filepath): 92 subsystem_path = value.get('path') 95 for path in subsystem_path: 96 subsystem_rootpath.append(os.path.join(CODEPATH, path)) 110 if os.path [all...] |
/kernel/linux/linux-5.10/include/video/ |
H A D | mmp_disp.h | 66 /* parameters used by path/overlay */ 93 /* path related para: mode */ 143 /* overlay describes a z-order indexed slot in each path. */ 147 struct mmp_path *path; member 175 /* path name used to connect to proper path configed */ 189 int (*check_status)(struct mmp_path *path); 190 struct mmp_overlay *(*get_overlay)(struct mmp_path *path, 192 int (*get_modelist)(struct mmp_path *path, 196 void (*set_mode)(struct mmp_path *path, struc 238 mmp_path_set_mode(struct mmp_path *path, struct mmp_mode *mode) mmp_path_set_mode() argument 244 mmp_path_set_onoff(struct mmp_path *path, int status) mmp_path_set_onoff() argument 249 mmp_path_get_modelist(struct mmp_path *path, struct mmp_mode **modelist) mmp_path_get_modelist() argument 256 mmp_path_get_overlay( struct mmp_path *path, int overlay_id) mmp_path_get_overlay() argument [all...] |
/kernel/linux/linux-5.10/drivers/staging/blackbox/ |
H A D | blackbox_common.c | 24 void change_own(char *path, int uid, int gid) in change_own() argument 29 if (unlikely(!path || uid == -1 || gid == -1)) { in change_own() 30 bbox_print_err("path or uid or gid error.\n"); in change_own() 36 ret = ksys_chown(path, uid, gid); in change_own() 38 bbox_print_err("ksys_chown [%s] failed, ret: %d\n", path, ret); in change_own() 84 struct path path; in file_exists() local 87 ret = kern_path(name, LOOKUP_FOLLOW, &path); in file_exists() 91 ret = inode_permission(d_inode(path.dentry), MAY_ACCESS); in file_exists() 92 path_put(&path); in file_exists() 99 struct path path; create_new_dir() local 123 create_log_dir(const char *path) create_log_dir() argument 254 char *buf = NULL, *path = NULL; getfullpath() local [all...] |
/kernel/linux/linux-6.6/include/video/ |
H A D | mmp_disp.h | 66 /* parameters used by path/overlay */ 93 /* path related para: mode */ 143 /* overlay describes a z-order indexed slot in each path. */ 147 struct mmp_path *path; member 175 /* path name used to connect to proper path configed */ 189 int (*check_status)(struct mmp_path *path); 190 struct mmp_overlay *(*get_overlay)(struct mmp_path *path, 192 int (*get_modelist)(struct mmp_path *path, 196 void (*set_mode)(struct mmp_path *path, struc 238 mmp_path_set_mode(struct mmp_path *path, struct mmp_mode *mode) mmp_path_set_mode() argument 244 mmp_path_set_onoff(struct mmp_path *path, int status) mmp_path_set_onoff() argument 249 mmp_path_get_modelist(struct mmp_path *path, struct mmp_mode **modelist) mmp_path_get_modelist() argument 256 mmp_path_get_overlay( struct mmp_path *path, int overlay_id) mmp_path_get_overlay() argument [all...] |
/test/xts/device_attest/services/core/utils/ |
H A D | attest_utils_file.c | 48 int32_t GetFileSize(const char* path, const char* fileName, uint32_t* result) in GetFileSize() argument 50 if (path == NULL || fileName == NULL || result == NULL) { in GetFileSize() 55 char* filePath = GenFilePath(path, fileName); in GetFileSize() 57 ATTEST_LOG_ERROR("[GetFileSize] Generate file path failed"); in GetFileSize() 64 ATTEST_LOG_ERROR("[GetFileSize] Invalid path of %s/%s", path, fileName); in GetFileSize() 86 int32_t WriteFile(const char* path, const char* fileName, const char* data, uint32_t dataLen) in WriteFile() argument 88 if (path == NULL || fileName == NULL || data == NULL || dataLen == 0) { in WriteFile() 93 char* filePath = GenFilePath(path, fileName); in WriteFile() 95 ATTEST_LOG_ERROR("[WriteFile] Generate file path faile in WriteFile() 134 ReadFile(const char* path, const char* fileName, char* buffer, uint32_t bufferLen) ReadFile() argument 219 CreateFile(const char* path, const char* fileName) CreateFile() argument 238 IsFileExist(const char* path, const char* fileName) IsFileExist() argument 265 ReadFileBuffer(const char* path, const char* fileName, char** outStr) ReadFileBuffer() argument [all...] |
/test/xts/device_attest_lite/services/core/small/utils/ |
H A D | attest_utils_file_detail.c | 31 int32_t GetFileSize(const char* path, const char* fileName, uint32_t* result) in GetFileSize() argument 33 if (path == NULL || fileName == NULL || result == NULL) { in GetFileSize() 38 char* filePath = GenFilePath(path, fileName); in GetFileSize() 40 ATTEST_LOG_ERROR("[GetFileSize] Generate file path failed"); in GetFileSize() 47 ATTEST_LOG_ERROR("[GetFileSize] Invalid path of %s/%s", path, fileName); in GetFileSize() 69 int32_t WriteFile(const char* path, const char* fileName, const char* data, uint32_t dataLen) in WriteFile() argument 71 if (path == NULL || fileName == NULL || data == NULL || dataLen == 0) { in WriteFile() 75 char* filePath = GenFilePath(path, fileName); in WriteFile() 77 ATTEST_LOG_ERROR("[WriteFile] Generate file path faile in WriteFile() 121 ReadFile(const char* path, const char* fileName, char* buffer, uint32_t bufferLen) ReadFile() argument 164 CreateFile(const char* path, const char* fileName) CreateFile() argument 213 IsFileExist(const char* path, const char* fileName) IsFileExist() argument 240 DeleteFile(const char* path, const char* fileName) DeleteFile() argument [all...] |
/test/xts/tools/build/ |
H A D | utils.py | 74 if not os.path.exists(input_file): 83 file_dir = os.path.dirname(os.path.abspath(output_file)) 84 if not os.path.exists(file_dir): 109 _parent_output = os.path.dirname(_output) 111 if to_dir and not os.path.exists(_output): 113 if not to_dir and not os.path.exists(_parent_output): 116 if not os.path.isdir(_output): 130 if os.path.isfile(source_file): 137 if os.path [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | path.h | 8 struct path { struct 13 extern void path_get(const struct path *); 14 extern void path_put(const struct path *); 16 static inline int path_equal(const struct path *path1, const struct path *path2) in path_equal() 21 static inline void path_put_init(struct path *path) in path_put_init() argument 23 path_put(path); in path_put_init() 24 *path = (struct path) { }; in path_put_init() [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | path.h | 8 struct path { struct 13 extern void path_get(const struct path *); 14 extern void path_put(const struct path *); 16 static inline int path_equal(const struct path *path1, const struct path *path2) in path_equal() 21 static inline void path_put_init(struct path *path) in path_put_init() argument 23 path_put(path); in path_put_init() 24 *path = (struct path) { }; in path_put_init() [all...] |
/kernel/linux/linux-6.6/drivers/thunderbolt/ |
H A D | test.c | 846 struct tb_path *path; in tb_test_path_not_connected() local 856 path = tb_path_alloc(NULL, down, 8, up, 8, 0, "PCIe Down"); in tb_test_path_not_connected() 857 KUNIT_ASSERT_NULL(test, path); in tb_test_path_not_connected() 858 path = tb_path_alloc(NULL, down, 8, up, 8, 1, "PCIe Down"); in tb_test_path_not_connected() 859 KUNIT_ASSERT_NULL(test, path); in tb_test_path_not_connected() 873 * PCIe path from host to device using lane 0. in tb_test_path_not_bonded_lane0() 898 struct tb_path *path; in tb_test_path_not_bonded_lane0() local 907 path = tb_path_alloc(NULL, down, 8, up, 8, 0, "PCIe Down"); in tb_test_path_not_bonded_lane0() 908 KUNIT_ASSERT_NOT_NULL(test, path); in tb_test_path_not_bonded_lane0() 909 KUNIT_ASSERT_EQ(test, path in tb_test_path_not_bonded_lane0() 960 struct tb_path *path; tb_test_path_not_bonded_lane1() local 1038 struct tb_path *path; tb_test_path_not_bonded_lane1_chain() local 1118 struct tb_path *path; tb_test_path_not_bonded_lane1_chain_reverse() local 1209 struct tb_path *path; tb_test_path_mixed_chain() local 1301 struct tb_path *path; tb_test_path_mixed_chain_reverse() local 2028 struct tb_path *path; tb_test_credit_alloc_legacy_not_bonded() local 2061 struct tb_path *path; tb_test_credit_alloc_legacy_bonded() local 2094 struct tb_path *path; tb_test_credit_alloc_pcie() local 2127 struct tb_path *path; tb_test_credit_alloc_without_dp() local 2177 struct tb_path *path; tb_test_credit_alloc_dp() local 2221 struct tb_path *path; tb_test_credit_alloc_usb3() local 2254 struct tb_path *path; tb_test_credit_alloc_dma() local 2290 struct tb_path *path; tb_test_credit_alloc_dma_multiple() local 2387 struct tb_path *path; TB_TEST_PCIE_TUNNEL() local 2417 struct tb_path *path; TB_TEST_DP_TUNNEL1() local 2454 struct tb_path *path; TB_TEST_DP_TUNNEL2() local 2491 struct tb_path *path; TB_TEST_USB3_TUNNEL() local 2521 struct tb_path *path; TB_TEST_DMA_TUNNEL1() local 2551 struct tb_path *path; TB_TEST_DMA_TUNNEL2() local [all...] |
/foundation/arkui/ui_lite/frameworks/imgdecode/ |
H A D | cache_manager.cpp | 56 UIFree(const_cast<char*>(dsc_.path)); in ClearSrc() 58 dsc_.path = nullptr; in ClearSrc() 61 RetCode CacheEntry::SetSrc(const char* path) in SetSrc() argument 65 size_t strLen = strlen(path); in SetSrc() 73 if (memcpy_s(newStr, strLen + 1, path, strLen) != EOK) { in SetSrc() 79 dsc_.path = newStr; in SetSrc() 81 dsc_.path = path; in SetSrc() 119 RetCode CacheManager::Open(const char* path, const Style& style, CacheEntry& entry) in Open() argument 121 if ((path in Open() 152 Close(const char* path) Close() argument 178 GetImageHeader(const char* path, ImageHeader& header) GetImageHeader() argument 229 GetIndex(const char* path, uint16_t& hittedIndex) GetIndex() argument 269 TryDecode(const char* path, const Style& style, CacheEntry& entry) TryDecode() argument [all...] |
/kernel/linux/linux-5.10/fs/btrfs/ |
H A D | ctree.c | 19 *root, struct btrfs_path *path, int level); 21 const struct btrfs_key *ins_key, struct btrfs_path *path, 29 static void del_ptr(struct btrfs_root *root, struct btrfs_path *path, 81 /* this also releases the path */ 91 * path release drops references on the extent buffers in the path 92 * and it drops any locks held by this path 1268 tree_mod_log_rewind(struct btrfs_fs_info *fs_info, struct btrfs_path *path, in tree_mod_log_rewind() argument 1284 btrfs_set_path_blocking(path); in tree_mod_log_rewind() 1846 struct btrfs_path *path, in in balance_level() 1844 balance_level(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, int level) balance_level() argument 2075 push_nodes_for_insert(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, int level) push_nodes_for_insert() argument 2217 reada_for_search(struct btrfs_fs_info *fs_info, struct btrfs_path *path, int level, int slot, u64 objectid) reada_for_search() argument 2280 reada_for_balance(struct btrfs_fs_info *fs_info, struct btrfs_path *path, int level) reada_for_balance() argument 2340 unlock_up(struct btrfs_path *path, int level, int lowest_unlock, int min_write_lock_level, int *write_lock_level) unlock_up() argument 2551 btrfs_find_item(struct btrfs_root *fs_root, struct btrfs_path *path, u64 iobjectid, u64 ioff, u8 key_type, struct btrfs_key *found_key) btrfs_find_item() argument 3145 fixup_low_keys(struct btrfs_path *path, struct btrfs_disk_key *key, int level) fixup_low_keys() argument 3174 btrfs_set_item_key_safe(struct btrfs_fs_info *fs_info, struct btrfs_path *path, const struct btrfs_key *new_key) btrfs_set_item_key_safe() argument 3430 insert_new_root(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, int level) insert_new_root() argument 3492 insert_ptr(struct btrfs_trans_handle *trans, struct btrfs_path *path, struct btrfs_disk_key *key, u64 bytenr, int slot, int level) insert_ptr() argument 3540 split_node(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, int level) split_node() argument 3675 __push_leaf_right(struct btrfs_path *path, int data_size, int empty, struct extent_buffer *right, int free_space, u32 left_nritems, u32 min_slot) __push_leaf_right() argument 3823 push_leaf_right(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, int min_data_size, int data_size, int empty, u32 min_slot) push_leaf_right() argument 3911 __push_leaf_left(struct btrfs_path *path, int data_size, int empty, struct extent_buffer *left, int free_space, u32 right_nritems, u32 max_slot) __push_leaf_left() argument 4063 push_leaf_left(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, int min_data_size, int data_size, int empty, u32 max_slot) push_leaf_left() argument 4138 copy_for_split(struct btrfs_trans_handle *trans, struct btrfs_path *path, struct extent_buffer *l, struct extent_buffer *right, int slot, int mid, int nritems) copy_for_split() argument 4207 push_for_double_split(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, int data_size) push_for_double_split() argument 4267 split_leaf(struct btrfs_trans_handle *trans, struct btrfs_root *root, const struct btrfs_key *ins_key, struct btrfs_path *path, int data_size, int extend) split_leaf() argument 4437 setup_leaf_for_split(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, int ins_len) setup_leaf_for_split() argument 4504 split_item(struct btrfs_path *path, const struct btrfs_key *new_key, unsigned long split_offset) split_item() argument 4588 btrfs_split_item(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, const struct btrfs_key *new_key, unsigned long split_offset) btrfs_split_item() argument 4612 btrfs_duplicate_item(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, const struct btrfs_key *new_key) btrfs_duplicate_item() argument 4644 btrfs_truncate_item(struct btrfs_path *path, u32 new_size, int from_end) btrfs_truncate_item() argument 4740 btrfs_extend_item(struct btrfs_path *path, u32 data_size) btrfs_extend_item() argument 4813 setup_items_for_insert(struct btrfs_root *root, struct btrfs_path *path, const struct btrfs_key *cpu_key, u32 *data_size, int nr) setup_items_for_insert() argument 4910 btrfs_insert_empty_items(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, const struct btrfs_key *cpu_key, u32 *data_size, int nr) btrfs_insert_empty_items() argument 4948 struct btrfs_path *path; btrfs_insert_item() local 4972 del_ptr(struct btrfs_root *root, struct btrfs_path *path, int level, int slot) del_ptr() argument 5022 btrfs_del_leaf(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, struct extent_buffer *leaf) btrfs_del_leaf() argument 5046 btrfs_del_items(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, int slot, int nr) btrfs_del_items() argument 5164 btrfs_prev_leaf(struct btrfs_root *root, struct btrfs_path *path) btrfs_prev_leaf() argument 5255 btrfs_search_forward(struct btrfs_root *root, struct btrfs_key *min_key, struct btrfs_path *path, u64 min_trans) btrfs_search_forward() argument 5372 btrfs_find_next_key(struct btrfs_root *root, struct btrfs_path *path, struct btrfs_key *key, int level, u64 min_trans) btrfs_find_next_key() argument 5442 btrfs_next_leaf(struct btrfs_root *root, struct btrfs_path *path) btrfs_next_leaf() argument 5447 btrfs_next_old_leaf(struct btrfs_root *root, struct btrfs_path *path, u64 time_seq) btrfs_next_old_leaf() argument 5626 btrfs_previous_item(struct btrfs_root *root, struct btrfs_path *path, u64 min_objectid, int type) btrfs_previous_item() argument 5669 btrfs_previous_extent_item(struct btrfs_root *root, struct btrfs_path *path, u64 min_objectid) btrfs_previous_extent_item() argument [all...] |
/kernel/linux/linux-5.10/fs/btrfs/tests/ |
H A D | qgroup-tests.c | 21 struct btrfs_path *path; in insert_normal_tree_ref() local 33 path = btrfs_alloc_path(); in insert_normal_tree_ref() 34 if (!path) { in insert_normal_tree_ref() 39 path->leave_spinning = 1; in insert_normal_tree_ref() 40 ret = btrfs_insert_empty_item(&trans, root, path, &ins, size); in insert_normal_tree_ref() 43 btrfs_free_path(path); in insert_normal_tree_ref() 47 leaf = path->nodes[0]; in insert_normal_tree_ref() 48 item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_extent_item); in insert_normal_tree_ref() 63 btrfs_free_path(path); in insert_normal_tree_ref() 72 struct btrfs_path *path; in add_tree_ref() local 124 struct btrfs_path *path; remove_extent_item() local 156 struct btrfs_path *path; remove_extent_ref() local [all...] |