Home
last modified time | relevance | path

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

123

/linux-6.6.21/tools/perf/arch/x86/annotate/
Dinstructions.c126 if (arch->family >= 0x15 && (strstarts(ins1, "test") || in amd__ins_is_fused()
127 (strstarts(ins1, "cmp") && !strstr(ins1, "xchg")))) { in amd__ins_is_fused()
132 if (arch->family >= 0x19 && (strstarts(ins1, "add") || in amd__ins_is_fused()
133 strstarts(ins1, "sub") || strstarts(ins1, "and") || in amd__ins_is_fused()
134 strstarts(ins1, "inc") || strstarts(ins1, "dec") || in amd__ins_is_fused()
135 strstarts(ins1, "or") || strstarts(ins1, "xor"))) { in amd__ins_is_fused()
182 arch->ins_is_fused = strstarts(cpuid, "AuthenticAMD") ? in x86__cpuid_parse()
/linux-6.6.21/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.6.21/tools/perf/arch/arm/util/
Dpmu.c26 } else if (strstarts(pmu->name, ARM_SPE_PMU_NAME)) { in perf_pmu__get_default_config()
28 } else if (strstarts(pmu->name, HISI_PTT_PMU_NAME)) { in perf_pmu__get_default_config()
/linux-6.6.21/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()
472 if (strstarts(cmd, "perf-")) { in main()
483 if (strstarts(cmd, "trace")) { in main()
505 if (strstarts(argv[0], "--")) in main()
Dbuiltin-help.c101 if (!strstarts(buffer.buf, "emacsclient")) { in check_emacsclient_version()
294 if (strstarts(var, "man.")) in perf_help_config()
324 else if (strstarts(perf_cmd, "perf")) in cmd_to_page()
Dbuiltin-mem.c513 if (strlen(argv[0]) > 2 && strstarts("record", argv[0])) in cmd_mem()
515 else if (strlen(argv[0]) > 2 && strstarts("report", argv[0])) in cmd_mem()
Dbuiltin-kvm.c2040 if (strlen(argv[1]) > 2 && strstarts("record", argv[1])) in kvm_cmd_stat()
2043 if (strlen(argv[1]) > 2 && strstarts("report", argv[1])) in kvm_cmd_stat()
2173 if (strlen(argv[0]) > 2 && strstarts("record", argv[0])) in cmd_kvm()
2175 else if (strlen(argv[0]) > 2 && strstarts("report", argv[0])) in cmd_kvm()
2177 else if (strlen(argv[0]) > 2 && strstarts("diff", argv[0])) in cmd_kvm()
2181 else if (strlen(argv[0]) > 2 && strstarts("buildid-list", argv[0])) in cmd_kvm()
2184 else if (strlen(argv[0]) > 2 && strstarts("stat", argv[0])) in cmd_kvm()
Dbuiltin-config.c82 if (!strstarts(var, section->name)) in show_spec_config()
/linux-6.6.21/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.6.21/scripts/mod/
Dmodpost.c368 #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.6.21/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.6.21/tools/perf/util/
Dconfig.c476 if (strstarts(var, "core.")) in perf_default_config()
479 if (strstarts(var, "hist.")) in perf_default_config()
482 if (strstarts(var, "ui.")) in perf_default_config()
485 if (strstarts(var, "call-graph.")) in perf_default_config()
488 if (strstarts(var, "buildid.")) in perf_default_config()
491 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.6.21/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.6.21/tools/perf/arch/x86/util/
Denv.c15 is_amd = env.cpuid && strstarts(env.cpuid, "AuthenticAMD") ? 1 : -1; in x86__is_amd_cpu()
/linux-6.6.21/drivers/platform/x86/
Dacerhdf.c606 if (strstarts(vendor, bt->vendor) && in acerhdf_check_hardware()
607 strstarts(product, bt->product) && in acerhdf_check_hardware()
608 strstarts(version, bt->version)) { in acerhdf_check_hardware()
Dthinkpad_acpi.c1324 if (strstarts(cmd, "enable")) in tpacpi_rfk_procfs_write()
1326 else if (strstarts(cmd, "disable")) in tpacpi_rfk_procfs_write()
4196 if (strstarts(cmd, "enable")) { in hotkey_write()
4198 } else if (strstarts(cmd, "disable")) { in hotkey_write()
4201 } else if (strstarts(cmd, "reset")) { in hotkey_write()
5112 if (strstarts(cmd, "lcd_enable")) { in video_write()
5114 } else if (strstarts(cmd, "lcd_disable")) { in video_write()
5116 } else if (strstarts(cmd, "crt_enable")) { in video_write()
5118 } else if (strstarts(cmd, "crt_disable")) { in video_write()
5121 strstarts(cmd, "dvi_enable")) { in video_write()
[all …]
/linux-6.6.21/tools/include/linux/
Dstring.h40 static inline bool strstarts(const char *str, const char *prefix) in strstarts() function
/linux-6.6.21/arch/mips/bcm47xx/
Dboard.c254 if (strstarts(buf1, e1->value1)) in bcm47xx_board_get_nvram()
262 if (!strstarts(buf1, e2->value1) && in bcm47xx_board_get_nvram()
/linux-6.6.21/drivers/platform/x86/hp/hp-bioscfg/
Dspmobj-attributes.c54 if (!strstarts(authentication, BEAM_PREFIX)) in hp_calculate_security_buffer()
75 if (strstarts(authentication, BEAM_PREFIX)) { in hp_populate_security_buffer()
/linux-6.6.21/tools/perf/ui/browsers/
Dscripts.c66 if (!strstarts(var, "scripts.")) in scripts_config()
/linux-6.6.21/drivers/gpu/drm/omapdrm/dss/
Dbase.c277 if (!strstarts(comp->compat, "omapdss,")) in omapdss_component_is_loaded()
/linux-6.6.21/drivers/memory/tegra/
Dtegra20.c411 if (strstarts(node->name, "display") || in tegra20_mc_of_icc_xlate_extended()
412 strstarts(node->name, "vi")) in tegra20_mc_of_icc_xlate_extended()

123