Home
last modified time | relevance | path

Searched refs:strstarts (Results 1 – 25 of 55) sorted by relevance

123

/linux-6.1.9/drivers/usb/musb/
Dmusb_debugfs.c184 if (strstarts(buf, "force host full-speed")) in musb_test_mode_write()
187 else if (strstarts(buf, "force host high-speed")) in musb_test_mode_write()
190 else if (strstarts(buf, "force host")) in musb_test_mode_write()
193 else if (strstarts(buf, "fifo access")) in musb_test_mode_write()
196 else if (strstarts(buf, "force full-speed")) in musb_test_mode_write()
199 else if (strstarts(buf, "force high-speed")) in musb_test_mode_write()
202 else if (strstarts(buf, "test packet")) { in musb_test_mode_write()
207 else if (strstarts(buf, "test K")) in musb_test_mode_write()
210 else if (strstarts(buf, "test J")) in musb_test_mode_write()
213 else if (strstarts(buf, "test SE0 NAK")) in musb_test_mode_write()
/linux-6.1.9/tools/perf/arch/x86/annotate/
Dinstructions.c154 if (arch->family >= 0x15 && (strstarts(ins1, "test") || in amd__ins_is_fused()
155 (strstarts(ins1, "cmp") && !strstr(ins1, "xchg")))) { in amd__ins_is_fused()
160 if (arch->family >= 0x19 && (strstarts(ins1, "add") || in amd__ins_is_fused()
161 strstarts(ins1, "sub") || strstarts(ins1, "and") || in amd__ins_is_fused()
162 strstarts(ins1, "inc") || strstarts(ins1, "dec") || in amd__ins_is_fused()
163 strstarts(ins1, "or") || strstarts(ins1, "xor"))) { in amd__ins_is_fused()
210 arch->ins_is_fused = strstarts(cpuid, "AuthenticAMD") ? in x86__cpuid_parse()
/linux-6.1.9/tools/perf/arch/arm/util/
Dpmu.c24 } else if (strstarts(pmu->name, ARM_SPE_PMU_NAME)) { in perf_pmu__get_default_config()
26 } else if (strstarts(pmu->name, HISI_PTT_PMU_NAME)) { in perf_pmu__get_default_config()
/linux-6.1.9/tools/perf/
Dperf.c105 return (strstarts(var, header) && !strcmp(var + strlen(header), c->cmd)); in same_cmd_with_prefix()
220 if (strstarts(cmd, CMD_EXEC_PATH)) { in handle_options()
257 } else if (strstarts(cmd, CMD_DEBUGFS_DIR)) { in handle_options()
491 if (strstarts(cmd, "perf-")) { in main()
502 if (strstarts(cmd, "trace")) { in main()
520 if (strstarts(argv[0], "--")) in main()
Dbuiltin-help.c99 if (!strstarts(buffer.buf, "emacsclient")) { in check_emacsclient_version()
292 if (strstarts(var, "man.")) in perf_help_config()
322 else if (strstarts(perf_cmd, "perf")) in cmd_to_page()
Dbuiltin-kvm.c1504 if (strlen(argv[1]) > 2 && strstarts("record", argv[1])) in kvm_cmd_stat()
1507 if (strlen(argv[1]) > 2 && strstarts("report", argv[1])) in kvm_cmd_stat()
1637 if (strlen(argv[0]) > 2 && strstarts("record", argv[0])) in cmd_kvm()
1639 else if (strlen(argv[0]) > 2 && strstarts("report", argv[0])) in cmd_kvm()
1641 else if (strlen(argv[0]) > 2 && strstarts("diff", argv[0])) in cmd_kvm()
1645 else if (strlen(argv[0]) > 2 && strstarts("buildid-list", argv[0])) in cmd_kvm()
1648 else if (strlen(argv[0]) > 2 && strstarts("stat", argv[0])) in cmd_kvm()
Dbuiltin-mem.c509 if (strlen(argv[0]) > 2 && strstarts("record", argv[0])) in cmd_mem()
511 else if (strlen(argv[0]) > 2 && strstarts("report", argv[0])) in cmd_mem()
Dbuiltin-config.c81 if (!strstarts(var, section->name)) in show_spec_config()
/linux-6.1.9/arch/arm/kernel/
Dmodule.c59 return strstarts(name, ".init") || in module_init_section()
60 strstarts(name, ".ARM.extab.init") || in module_init_section()
61 strstarts(name, ".ARM.exidx.init"); in module_init_section()
66 return strstarts(name, ".exit") || in module_exit_section()
67 strstarts(name, ".ARM.extab.exit") || in module_exit_section()
68 strstarts(name, ".ARM.exidx.exit"); in module_exit_section()
/linux-6.1.9/scripts/mod/
Dmodpost.c352 #define strstarts(str, prefix) (strncmp(str, prefix, strlen(prefix)) == 0) macro
598 if (strstarts(symname, "_restgpr_") || in ignore_undef_symbol()
599 strstarts(symname, "_savegpr_") || in ignore_undef_symbol()
600 strstarts(symname, "_rest32gpr_") || in ignore_undef_symbol()
601 strstarts(symname, "_save32gpr_") || in ignore_undef_symbol()
602 strstarts(symname, "_restvr_") || in ignore_undef_symbol()
603 strstarts(symname, "_savevr_")) in ignore_undef_symbol()
607 if (strstarts(symname, "_restgpr0_") || in ignore_undef_symbol()
608 strstarts(symname, "_savegpr0_") || in ignore_undef_symbol()
609 strstarts(symname, "_restvr_") || in ignore_undef_symbol()
[all …]
/linux-6.1.9/tools/perf/util/
Dconfig.c474 if (strstarts(var, "core.")) in perf_default_config()
477 if (strstarts(var, "hist.")) in perf_default_config()
480 if (strstarts(var, "ui.")) in perf_default_config()
483 if (strstarts(var, "call-graph.")) in perf_default_config()
486 if (strstarts(var, "llvm.")) in perf_default_config()
489 if (strstarts(var, "buildid.")) in perf_default_config()
492 if (strstarts(var, "stat.")) in perf_default_config()
Dsample-raw.c22 cpuid && strstarts(cpuid, "AuthenticAMD") && in evlist__init_trace_event_sample_raw()
Dmap.c21 return strstarts(filename, "/data/app-lib/") || in is_android_lib()
22 strstarts(filename, "/system/lib/"); in is_android_lib()
42 if (strstarts(filename, "/data/app-lib/")) { in replace_android_lib()
66 if (strstarts(filename, "/system/lib/")) { in replace_android_lib()
Damd-sample-raw.c323 if (strstarts(name, "ibs_op")) in evlist__has_amd_ibs()
325 else if (strstarts(name, "ibs_fetch")) in evlist__has_amd_ibs()
/linux-6.1.9/tools/perf/arch/x86/util/
Devsel.c33 if (env.cpuid && strstarts(env.cpuid, "AuthenticAMD")) in arch_evsel__fixup_new_cycles()
110 !strstarts(env->cpuid, "AuthenticAMD")) { in arch__post_evsel_config()
Dmem-events.c34 if (env.cpuid && strstarts(env.cpuid, "AuthenticAMD")) in perf_mem_is_amd_cpu()
/linux-6.1.9/tools/lib/subcmd/
Dparse-options.c393 if (strstarts(options->long_name, "no-")) { in parse_long_opt()
406 if (strstarts(options->long_name + 3, arg)) { in parse_long_opt()
431 if (strstarts("no-", arg)) { in parse_long_opt()
441 if (!rest && strstarts(options->long_name, arg + 3)) in parse_long_opt()
481 if (strstarts(arg, "no-")) { in check_typos()
489 if (strstarts(options->long_name, arg)) { in check_typos()
970 if (strstarts(opts->long_name, optstr)) in parse_options_usage()
972 if (strstarts("no-", optstr) && in parse_options_usage()
973 strstarts(opts->long_name, optstr + 3)) in parse_options_usage()
/linux-6.1.9/drivers/firmware/efi/libstub/
Dgop.c42 if (!strstarts(option, "mode=")) in parse_modenum()
68 if (strstarts(option, "rgb")) { in parse_res()
71 } else if (strstarts(option, "bgr")) { in parse_res()
93 if (!strstarts(option, "auto")) in parse_auto()
106 if (!strstarts(option, "list")) in parse_list()
/linux-6.1.9/tools/include/linux/
Dstring.h40 static inline bool strstarts(const char *str, const char *prefix) in strstarts() function
/linux-6.1.9/drivers/platform/x86/
Dacerhdf.c639 if (strstarts(vendor, bt->vendor) && in acerhdf_check_hardware()
640 strstarts(product, bt->product) && in acerhdf_check_hardware()
641 strstarts(version, bt->version)) { in acerhdf_check_hardware()
/linux-6.1.9/arch/mips/bcm47xx/
Dboard.c252 if (strstarts(buf1, e1->value1)) in bcm47xx_board_get_nvram()
260 if (!strstarts(buf1, e2->value1) && in bcm47xx_board_get_nvram()
/linux-6.1.9/tools/perf/ui/browsers/
Dscripts.c66 if (!strstarts(var, "scripts.")) in scripts_config()
/linux-6.1.9/drivers/gpu/drm/omapdrm/dss/
Dbase.c277 if (!strstarts(comp->compat, "omapdss,")) in omapdss_component_is_loaded()
/linux-6.1.9/drivers/memory/tegra/
Dtegra20.c410 if (strstarts(node->name, "display") || in tegra20_mc_of_icc_xlate_extended()
411 strstarts(node->name, "vi")) in tegra20_mc_of_icc_xlate_extended()
/linux-6.1.9/include/linux/
Dstring.h214 static inline bool strstarts(const char *str, const char *prefix) in strstarts() function

123