/device/google/marlin/power/ |
D | metadata-parser.c | 73 if (strlen(attribute) == strlen("hint_id") && in parse_cam_preview_metadata() 74 (strncmp(attribute, "hint_id", strlen("hint_id")) == 0)) { in parse_cam_preview_metadata() 75 if (strlen(value) > 0) { in parse_cam_preview_metadata() 80 if (strlen(attribute) == strlen("state") && in parse_cam_preview_metadata() 81 (strncmp(attribute, "state", strlen("state")) == 0)) { in parse_cam_preview_metadata() 82 if (strlen(value) > 0) { in parse_cam_preview_metadata() 105 if (strlen(attribute) == strlen("hint_id") && in parse_video_encode_metadata() 106 (strncmp(attribute, "hint_id", strlen("hint_id")) == 0)) { in parse_video_encode_metadata() 107 if (strlen(value) > 0) { in parse_video_encode_metadata() 112 if (strlen(attribute) == strlen("state") && in parse_video_encode_metadata() [all …]
|
D | power-8996.c | 84 if ((strncmp(governor, INTERACTIVE_GOVERNOR, strlen(INTERACTIVE_GOVERNOR)) == 0) && in process_cam_preview_hint() 85 (strlen(governor) == strlen(INTERACTIVE_GOVERNOR))) { in process_cam_preview_hint() 107 } else if ((strncmp(governor, SCHED_GOVERNOR, strlen(SCHED_GOVERNOR)) == 0) && in process_cam_preview_hint() 108 (strlen(governor) == strlen(SCHED_GOVERNOR))) { in process_cam_preview_hint() 123 if (((strncmp(governor, INTERACTIVE_GOVERNOR, strlen(INTERACTIVE_GOVERNOR)) == 0) && in process_cam_preview_hint() 124 (strlen(governor) == strlen(INTERACTIVE_GOVERNOR))) || in process_cam_preview_hint() 125 ((strncmp(governor, SCHED_GOVERNOR, strlen(SCHED_GOVERNOR)) == 0) && in process_cam_preview_hint() 126 (strlen(governor) == strlen(SCHED_GOVERNOR)))) { in process_cam_preview_hint() 153 if (strncmp(governor, SCHED_GOVERNOR, strlen(SCHED_GOVERNOR)) == 0) { in process_boost() 157 strlen(INTERACTIVE_GOVERNOR)) == 0) { /*HMP boost*/ in process_boost() [all …]
|
D | power-helper.c | 336 if (true || strncmp(governor, SCHED_GOVERNOR, strlen(SCHED_GOVERNOR)) == 0) { in power_hint() 378 if ((strncmp(governor, ONDEMAND_GOVERNOR, strlen(ONDEMAND_GOVERNOR)) == 0) && in power_set_interactive() 379 (strlen(governor) == strlen(ONDEMAND_GOVERNOR))) { in power_set_interactive() 387 } else if ((strncmp(governor, INTERACTIVE_GOVERNOR, strlen(INTERACTIVE_GOVERNOR)) == 0) && in power_set_interactive() 388 (strlen(governor) == strlen(INTERACTIVE_GOVERNOR))) { in power_set_interactive() 396 } else if ((strncmp(governor, MSMDCVS_GOVERNOR, strlen(MSMDCVS_GOVERNOR)) == 0) && in power_set_interactive() 397 (strlen(governor) == strlen(MSMDCVS_GOVERNOR))) { in power_set_interactive() 494 if ((strncmp(governor, ONDEMAND_GOVERNOR, strlen(ONDEMAND_GOVERNOR)) == 0) && in power_set_interactive() 495 (strlen(governor) == strlen(ONDEMAND_GOVERNOR))) { in power_set_interactive() 498 } else if ((strncmp(governor, INTERACTIVE_GOVERNOR, strlen(INTERACTIVE_GOVERNOR)) == 0) && in power_set_interactive() [all …]
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/GenDepex/ |
D | GenDepex.c | 402 Pend = Ptrx + FileSize - strlen (DEPENDENCY_END); in GenerateDependencyExpression() 408 if (strncmp (Pend, DEPENDENCY_END, strlen (DEPENDENCY_END)) == 0) { in GenerateDependencyExpression() 439 if (strncmp (Ptrx, DEPENDENCY_START, strlen (DEPENDENCY_START)) == 0) { in GenerateDependencyExpression() 440 Ptrx += strlen (DEPENDENCY_START); in GenerateDependencyExpression() 498 } else if (strncmp (Ptrx, OPERATOR_SOR, strlen (OPERATOR_SOR)) == 0) { in GenerateDependencyExpression() 532 Ptrx += strlen (OPERATOR_SOR); in GenerateDependencyExpression() 536 } else if (strncmp (Ptrx, OPERATOR_BEFORE, strlen (OPERATOR_BEFORE)) == 0) { in GenerateDependencyExpression() 566 Ptrx += strlen (OPERATOR_BEFORE); in GenerateDependencyExpression() 569 } else if (strncmp (Ptrx, OPERATOR_AFTER, strlen (OPERATOR_AFTER)) == 0) { in GenerateDependencyExpression() 599 Ptrx += strlen (OPERATOR_AFTER); in GenerateDependencyExpression() [all …]
|
D | DepexParser.c | 491 if (strncmp (*Pindex, OPERATOR_AND, strlen (OPERATOR_AND)) == 0) { in ParseRightFactor() 492 *Pindex += strlen (OPERATOR_AND); in ParseRightFactor() 515 if (strncmp (*Pindex, OPERATOR_OR, strlen (OPERATOR_OR)) == 0) { in ParseRightFactor() 516 *Pindex += strlen (OPERATOR_OR); in ParseRightFactor() 576 if (strncmp (*Pindex, OPERATOR_AND, strlen (OPERATOR_AND)) == 0) { in ParseRightBool() 577 *Pindex += strlen (OPERATOR_AND); in ParseRightBool() 595 if (strncmp (*Pindex, OPERATOR_OR, strlen (OPERATOR_OR)) == 0) { in ParseRightBool() 596 *Pindex += strlen (OPERATOR_OR); in ParseRightBool() 651 if (strncmp (*Pindex, OPERATOR_LEFT_PARENTHESIS, strlen (OPERATOR_LEFT_PARENTHESIS)) == 0) { in ParseFactor() 652 *Pindex += strlen (OPERATOR_LEFT_PARENTHESIS); in ParseFactor() [all …]
|
/device/google/marlin/dataservices/datatop/src/ |
D | datatop_gen_poll.c | 158 int both_len = strlen(dir) + strlen(name) + 1; in dpg_construction() 165 maindir = malloc(strlen(dir) + 1); in dpg_construction() 166 strlcpy(maindir, dir, strlen(dir) + 1); in dpg_construction() 179 dp[i].name = malloc(strlen(name) + 1); in dpg_construction() 180 strlcpy(dp[i].name, name, strlen(name) + 1); in dpg_construction() 186 nn_len = strlen(name) + strlen(add) + 1; in dpg_construction() 190 dpn_len = strlen(newname) + 1; in dpg_construction() 257 int nd_len = strlen(dir) + strlen(entry->d_name) + 2; in dtop_search()
|
D | datatop_cpu_stats_poll.c | 112 char *file = malloc(strlen(name) + 1); in construct_cpu_stat_dpg() 118 strlcpy(file, name, strlen(name) + 1); in construct_cpu_stat_dpg() 158 nf_len = strlen(file) + strlen(add) + strlen(cpu_num) + 2; in cpu_poll_helper()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Efi/ |
D | getpath.c | 114 size_t i = strlen(dir); in reduce() 160 if (strlen(filename) < MAXPATHLEN) { in ismodule() 256 n = strlen(buffer); in joinpath() 259 n = strlen(buffer); in joinpath() 273 k = strlen(stuff); in joinpath() 309 bnlen = strlen(bn); in isxfile() 546 bufsz = strlen(zip_path); /* Replace "00" with version */ in calculate_path() 575 bufsz = strlen(prefix); in calculate_path() 587 bufsz += strlen(rtpypath) + 1; in calculate_path() 589 prefixsz = strlen(prefix) + 1; in calculate_path() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Modules/ |
D | getpath.c | 116 size_t i = strlen(dir); in reduce() 187 n = strlen(buffer); in joinpath() 190 n = strlen(buffer); in joinpath() 204 k = strlen(stuff); in joinpath() 240 bnlen = strlen(bn); in isxfile() 477 bufsz = strlen(zip_path); /* Replace "00" with version */ in calculate_path() 506 bufsz = strlen(prefix); in calculate_path() 518 bufsz += strlen(rtpypath) + 1; in calculate_path() 520 prefixsz = strlen(prefix) + 1; in calculate_path() 532 bufsz += strlen(defpath) + 1; in calculate_path() [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/ |
D | VfrCompiler.cpp | 122 if (strlen (Argv[Index]) > MAX_PATH - 1) { in OptionInitialization() 127 mOptions.OutputDirectory = (CHAR8 *) malloc (strlen (Argv[Index]) + strlen ("\\") + 1); in OptionInitialization() 134 CHAR8 lastChar = mOptions.OutputDirectory[strlen(mOptions.OutputDirectory) - 1]; in OptionInitialization() 189 if (strlen (Argv[Index]) > MAX_PATH) { in OptionInitialization() 193 mOptions.VfrFileName = (CHAR8 *) malloc (strlen (Argv[Index]) + 1); in OptionInitialization() 279 Len = strlen (" -I ") + strlen (PathStr) + 1; in AppendIncludePath() 281 Len += strlen (mOptions.IncludePaths); in AppendIncludePath() 308 Len = strlen (Options) + strlen (" ") + 1; in AppendCPreprocessorOptions() 310 Len += strlen (mOptions.CPreprocessorOptions); in AppendCPreprocessorOptions() 358 if (strlen (pFileName) > MAX_PATH - 1) { in SetBaseFileName() [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/Common/ |
D | OsPath.c | 65 Length = strlen (FilePath); 141 Length = strlen (Path); 184 Length = strlen (Return); 242 Result = (CHAR8 *) malloc (strlen (OldPath) + strlen (Peer) + 1); in OsPathPeerFilePath() 253 for (Offset = strlen (Result); Offset >= 0; Offset--) { in OsPathPeerFilePath()
|
D | StringFuncs.c | 45 NewString = malloc (strlen (String) + 1); in CloneString() 86 memmove (String, Pos, strlen (Pos) + 1); in StripInfDscStringInPlace() 109 for (Pos = String + strlen (String); in StripInfDscStringInPlace() 151 EndOfString = String + strlen (String); in SplitStringByWhitespace() 367 Length += strlen (StringList->Strings[Count]) + 2; in StringListToString()
|
D | ParseInf.c | 245 strlen (Section) == 0 || in FindToken() 247 strlen (Token) == 0 || in FindToken() 334 …while (strlen(Value) > 0 && (*(Value + strlen(Value) - 1) == ' ' || *(Value + strlen(Value) - 1) =… in FindToken() 335 *(Value + strlen(Value) - 1) = 0; in FindToken() 562 for (; Index < strlen (AsciiString); Index++) { in AsciiStringToUint64()
|
D | CommonLib.c | 188 if (InputFileName == NULL || strlen (InputFileName) == 0 || InputFileImage == NULL) { in GetFileImage() 289 if (OutputFileName == NULL || strlen (OutputFileName) == 0 || OutputFileImage == NULL) { in PutFileImage() 629 if (strlen (FileName) > 1 && FileName[0] == '\\' && FileName[1] == '\\') { in LongFilePath() 635 …} else if (strlen (FileName) < 3 || FileName[1] != ':' || (FileName[2] != '\\' && FileName[2] != '… in LongFilePath() 655 if (strlen (mCommonLibFullPath) + strlen (FileName) > MAX_LONG_FILE_PATH - 1) { in LongFilePath() 659 strncat (mCommonLibFullPath, FileName, MAX_LONG_FILE_PATH - strlen (mCommonLibFullPath) - 1); in LongFilePath()
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/MakeDeps/ |
D | MakeDeps.c | 261 for (Cptr = TargetFileName + strlen (TargetFileName) - 1; in main() 401 for (Cptr = SumDepsFile + strlen (SumDepsFile) - 1; in ProcessFile() 500 ListPtr->Str = malloc (strlen (FileNameCopy) + 1); in ProcessFile() 514 Cptr = FileNameCopy + strlen (FileNameCopy) - 1; in ProcessFile() 606 strlen (mMacroConversion[Index].IncludeMacroName) in ProcessFile() 611 Cptr += strlen (mMacroConversion[Index].IncludeMacroName); in ProcessFile() 815 ListPtr->Str = malloc (strlen (IncludeFileName) + 1); in ProcessClOutput() 908 if (_strnicmp (From, Sym->Value, strlen (Sym->Value)) == 0) { in ReplaceSymbols() 914 To += strlen (Sym->Name); in ReplaceSymbols() 915 From += strlen (Sym->Value); in ReplaceSymbols() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/ |
D | getpath.c | 137 size_t i = strlen(dir); in reduce() 163 if (strlen(filename) < MAXPATHLEN) { in ismodule() 214 n = strlen(buffer); in joinpath() 220 k = strlen(stuff); in joinpath() 296 n = strlen(prefix); in search_for_prefix() 349 n = strlen(exec_prefix); in search_for_exec_prefix() 532 bufsz = strlen(zip_path); /* Replace "00" with version */ in calculate_path() 554 bufsz += strlen(rtpypath) + 1; in calculate_path() 556 prefixsz = strlen(prefix) + 1; in calculate_path() 568 bufsz += strlen(defpath) + 1; in calculate_path() [all …]
|
D | getnameinfo.c | 148 if (strlen(numserv) > servlen) 154 if (strlen(sp->s_name) > servlen) 184 if (strlen(numaddr) > hostlen) 200 if (strlen(hp->h_name) > hostlen) { 216 if (strlen(numaddr) > hostlen)
|
/device/linaro/poplar/wifi/wpa_supplicant_8_lib/ |
D | driver_cmd_nl80211.c | 100 os_memcpy(buf, cmd, strlen(cmd) + 1); in wpa_driver_nl80211_driver_cmd() 119 ret = strlen(buf); in wpa_driver_nl80211_driver_cmd() 121 wpa_printf(MSG_DEBUG, "%s %s len = %d, %zu", __func__, buf, ret, strlen(buf)); in wpa_driver_nl80211_driver_cmd() 134 return wpa_driver_nl80211_driver_cmd(priv, buf, buf, strlen(buf)+1); in wpa_driver_set_p2p_noa() 150 return wpa_driver_nl80211_driver_cmd(priv, buf, buf, strlen(buf) + 1); in wpa_driver_set_p2p_ps() 178 buf_len = strlen(_cmd) + 3 + wpabuf_len(ap_wps_p2p_ie); in wpa_driver_set_ap_wps_p2p_ie()
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/support/genmk/ |
D | genmk_old.c | 266 ATOKENBUFFER_O[strlen(ATOKENBUFFER_C)-strlen(CPP_FILE_SUFFIX)] = '\0'; 269 APARSER_O[strlen(APARSER_O)-strlen(CPP_FILE_SUFFIX)] = '\0'; 273 ASTBASE_O[strlen(ASTBASE_C)-strlen(CPP_FILE_SUFFIX)] = '\0'; 277 PCCTSAST_O[strlen(PCCTSAST_C)-strlen(CPP_FILE_SUFFIX)] = '\0'; 281 LIST_O[strlen(LIST_C)-strlen(CPP_FILE_SUFFIX)] = '\0'; 285 DLEXERBASE_O[strlen(DLEXERBASE_C)-strlen(CPP_FILE_SUFFIX)] = '\0'; 658 char *p = &(*files)[strlen(*files)-1];
|
/device/linaro/bootloader/arm-trusted-firmware/plat/qemu/ |
D | dt.c | 15 return fdt_appendprop(fdt, offs, "compatible", str, strlen(str) + 1); in append_psci_compatible() 56 const size_t prefix_len = strlen(prefix); in check_node_compat_prefix() 69 l = strlen(prop) + 1; in check_node_compat_prefix()
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/UefiVfrCompile/ |
D | VfrCompiler.cpp | 162 Len = strlen (" -I ") + strlen (PathStr) + 1; in AppendIncludePath() 164 Len += strlen (mOptions.IncludePaths); in AppendIncludePath() 191 Len = strlen (Options) + strlen (" ") + 1; in AppendCPreprocessorOptions() 193 Len += strlen (mOptions.CPreprocessorOptions); in AppendCPreprocessorOptions() 401 CmdLen = strlen (mPreProcessCmd) + strlen (mPreProcessOpt) + in PreProcess() 402 strlen (mOptions.VfrFileName) + strlen (mOptions.PreprocessorOutputFileName); in PreProcess() 404 CmdLen += strlen (mOptions.CPreprocessorOptions); in PreProcess() 407 CmdLen += strlen (mOptions.IncludePaths); in PreProcess()
|
/device/google/contexthub/firmware/lib/libc/ |
D | strlen.c | 56 strlen (const char* str) in strlen() function 85 strlen (const char* str) in strlen() function
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/Split/ |
D | Split.c | 106 UINT64 len = strlen(SplitValueString); in GetSplitValue() 182 for (;index < strlen(temp); ++index) { in CreateDir() 322 …if ((strlen(argv[0]) >= 2 && argv[0][0] == '-' && (argv[0][1] == 'v' || argv[0][1] == 'V')) || (st… in main() 324 if (strlen(argv[0]) > 2) { in main() 325 Status = CountVerboseLevel (&argv[0][2], strlen(argv[0]) - 2, &VerboseLevel); in main() 367 OutName1 = (CHAR8*)malloc(strlen(InputFileName) + 16); in main() 379 OutName2 = (CHAR8*)malloc(strlen(InputFileName) + 16); in main()
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/HiiPack/ |
D | FindFiles.c | 97 if (FullPath[strlen (FullPath) - 1] != '\\') { in FindFiles() 104 if (FullPath[strlen (FullPath) - 1] == '\\') { in FindFiles() 105 FullPath[strlen (FullPath) - 1] = 0; in FindFiles()
|
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/FdtLib/ |
D | fdt_ro.c | 88 return (strlen(p) == len) && (memcmp(p, s, len) == 0); in _fdt_string_eq() 154 return fdt_subnode_offset_namelen(fdt, parentoffset, name, strlen(name)); in fdt_subnode_offset() 159 const char *end = path + strlen(path); in fdt_path_offset() 211 *len = strlen(nh->name); in fdt_get_name() 290 strlen(name), lenp); in fdt_get_property() 321 return fdt_getprop_namelen(fdt, nodeoffset, name, strlen(name), lenp); in fdt_getprop() 355 return fdt_get_alias_namelen(fdt, name, strlen(name)); in fdt_get_alias() 521 int len = strlen(str); in fdt_stringlist_contains()
|