| /linux/tools/perf/util/annotate-arch/ |
| H A D | annotate-mips.c | 12 if (!strncmp(name, "bal", 3) || in mips__associate_ins_ops() 13 !strncmp(name, "bgezal", 6) || in mips__associate_ins_ops() 14 !strncmp(name, "bltzal", 6) || in mips__associate_ins_ops() 15 !strncmp(name, "bgtzal", 6) || in mips__associate_ins_ops() 16 !strncmp(name, "blezal", 6) || in mips__associate_ins_ops() 17 !strncmp(name, "beqzal", 6) || in mips__associate_ins_ops() 18 !strncmp(name, "bnezal", 6) || in mips__associate_ins_ops() 19 !strncmp(name, "bgtzl", 5) || in mips__associate_ins_ops() 20 !strncmp(name, "bltzl", 5) || in mips__associate_ins_ops() 21 !strncmp(name, "bgezl", 5) || in mips__associate_ins_ops() [all …]
|
| H A D | annotate-riscv64.c | 12 if (!strncmp(name, "jal", 3) || in riscv64__associate_ins_ops() 13 !strncmp(name, "jr", 2) || in riscv64__associate_ins_ops() 14 !strncmp(name, "call", 4)) in riscv64__associate_ins_ops() 16 else if (!strncmp(name, "ret", 3)) in riscv64__associate_ins_ops()
|
| H A D | annotate-loongarch.c | 129 !strncmp(name, "beq", 3) || in loongarch__associate_ins_ops() 130 !strncmp(name, "bne", 3) || in loongarch__associate_ins_ops() 131 !strncmp(name, "blt", 3) || in loongarch__associate_ins_ops() 132 !strncmp(name, "bge", 3) || in loongarch__associate_ins_ops() 133 !strncmp(name, "bltu", 4) || in loongarch__associate_ins_ops() 134 !strncmp(name, "bgeu", 4)) in loongarch__associate_ins_ops()
|
| H A D | annotate-x86.c | 282 if (!strncmp(dl->ins.name, "add", 3)) { in update_insn_state_x86() 353 if (!strncmp(dl->ins.name, "sub", 3)) { in update_insn_state_x86() 385 if (!strncmp(dl->ins.name, "lea", 3)) { in update_insn_state_x86() 457 if (!strncmp(dl->ins.name, "imul", 4) || !strncmp(dl->ins.name, "mul", 3) || in update_insn_state_x86() 458 !strncmp(dl->ins.name, "idiv", 4) || !strncmp(dl->ins.name, "div", 3) || in update_insn_state_x86() 459 !strncmp(dl->ins.name, "shl", 3) || !strncmp(dl->ins.name, "shr", 3) || in update_insn_state_x86() 460 !strncmp(d in update_insn_state_x86() [all...] |
| /linux/arch/x86/kernel/ |
| H A D | early_printk.c | 168 if (!strncmp(s, "0x", 2)) { in early_serial_init() 173 if (!strncmp(s, "ttyS", 4)) in early_serial_init() 228 if (!strncmp(s, "0x", 2)) { in early_mmio_serial_init() 241 if (!strncmp(s, "nocfg", 5)) { in early_mmio_serial_init() 279 if (!strncmp(s, "force,", 6)) { in early_pci_serial_init() 401 if (!strncmp(buf, "mmio32", 6)) { in setup_early_printk() 406 if (!strncmp(buf, "serial", 6)) { in setup_early_printk() 410 if (!strncmp(buf, ",ttyS", 5)) in setup_early_printk() 413 if (!strncmp(buf, "ttyS", 4)) { in setup_early_printk() 418 if (!strncmp(buf, "pciserial", 9)) { in setup_early_printk() [all …]
|
| H A D | apm_32.c | 1831 if (strncmp(str, "off", 3) == 0) in apm_setup() 1833 if (strncmp(str, "on", 2) == 0) in apm_setup() 1835 if ((strncmp(str, "bounce-interval=", 16) == 0) || in apm_setup() 1836 (strncmp(str, "bounce_interval=", 16) == 0)) in apm_setup() 1838 if ((strncmp(str, "idle-threshold=", 15) == 0) || in apm_setup() 1839 (strncmp(str, "idle_threshold=", 15) == 0)) in apm_setup() 1841 if ((strncmp(str, "idle-period=", 12) == 0) || in apm_setup() 1842 (strncmp(str, "idle_period=", 12) == 0)) in apm_setup() 1844 invert = (strncmp(str, "no-", 3) == 0) || in apm_setup() 1845 (strncmp(str, "no_", 3) == 0); in apm_setup() [all …]
|
| /linux/drivers/iommu/ |
| H A D | irq_remapping.c | 63 if (!strncmp(str, "on", 2)) { in setup_irqremap() 66 } else if (!strncmp(str, "off", 3)) { in setup_irqremap() 69 } else if (!strncmp(str, "nosid", 5)) in setup_irqremap() 71 else if (!strncmp(str, "no_x2apic_optout", 16)) in setup_irqremap() 73 else if (!strncmp(str, "nopost", 6)) in setup_irqremap() 75 else if (IS_ENABLED(CONFIG_X86_POSTED_MSI) && !strncmp(str, "posted_msi", 10)) in setup_irqremap()
|
| /linux/arch/x86/xen/ |
| H A D | platform-pci-unplug.c | 192 if (!strncmp(p, "all", l)) in parse_xen_emul_unplug() 194 else if (!strncmp(p, "ide-disks", l)) in parse_xen_emul_unplug() 196 else if (!strncmp(p, "aux-ide-disks", l)) in parse_xen_emul_unplug() 198 else if (!strncmp(p, "nics", l)) in parse_xen_emul_unplug() 200 else if (!strncmp(p, "unnecessary", l)) in parse_xen_emul_unplug() 202 else if (!strncmp(p, "never", l)) in parse_xen_emul_unplug()
|
| /linux/drivers/scsi/ |
| H A D | sr_vendor.c | 82 } else if (!strncmp(vendor, "NEC", 3)) { in sr_vendor_init() 84 if (!strncmp(model, "CD-ROM DRIVE:25", 15) || in sr_vendor_init() 85 !strncmp(model, "CD-ROM DRIVE:36", 15) || in sr_vendor_init() 86 !strncmp(model, "CD-ROM DRIVE:83", 15) || in sr_vendor_init() 87 !strncmp(model, "CD-ROM DRIVE:84 ", 16) in sr_vendor_init() 91 || !strncmp(model, "CD-ROM DRIVE:500", 16) in sr_vendor_init() 97 } else if (!strncmp(vendor, "TOSHIBA", 7)) { in sr_vendor_init() 100 } else if (!strncmp(vendor, "Beurer", 6) && in sr_vendor_init() 101 !strncmp(model, "Gluco Memory", 12)) { in sr_vendor_init()
|
| /linux/tools/perf/util/ |
| H A D | env.c | 314 if (!strncmp(arch, "x86_64", 6) || !strncmp(arch, "aarch64", 7) || in perf_env__init_kernel_mode() 315 !strncmp(arch, "arm64", 5) || !strncmp(arch, "mips64", 6) || in perf_env__init_kernel_mode() 316 !strncmp(arch, "parisc64", 8) || !strncmp(arch, "riscv64", 7) || in perf_env__init_kernel_mode() 317 !strncmp(arch, "s390x", 5) || !strncmp(arch, "sparc64", 7)) in perf_env__init_kernel_mode() 601 if (!strcmp(arch, "sun4u") || !strncmp(arch, "sparc", 5)) in normalize_arch() 603 if (!strncmp(arc in normalize_arch() [all...] |
| /linux/drivers/firmware/ |
| H A D | edd.c | 141 if (!strncmp(info->params.host_bus_type, "ISA", 3)) { in edd_show_host_bus() 144 } else if (!strncmp(info->params.host_bus_type, "PCIX", 4) || in edd_show_host_bus() 145 !strncmp(info->params.host_bus_type, "PCI", 3) || in edd_show_host_bus() 146 !strncmp(info->params.host_bus_type, "XPRS", 4)) { in edd_show_host_bus() 153 } else if (!strncmp(info->params.host_bus_type, "IBND", 4) || in edd_show_host_bus() 154 !strncmp(info->params.host_bus_type, "HTPT", 4)) { in edd_show_host_bus() 186 if (!strncmp(info->params.interface_type, "ATAPI", 5)) { in edd_show_interface() 190 } else if (!strncmp(info->params.interface_type, "ATA", 3)) { in edd_show_interface() 193 } else if (!strncmp(info->params.interface_type, "SCSI", 4)) { in edd_show_interface() 197 } else if (!strncmp(info->params.interface_type, "USB", 3)) { in edd_show_interface() [all …]
|
| /linux/lib/kunit/ |
| H A D | attributes.c | 92 if (!strncmp(op, "<=", 2)) in int_filter() 94 else if (!strncmp(op, ">=", 2)) in int_filter() 96 else if (!strncmp(op, "!=", 2)) in int_filter() 98 else if (!strncmp(op, ">", 1)) in int_filter() 100 else if (!strncmp(op, "<", 1)) in int_filter() 102 else if (!strncmp(op, "=", 1)) in int_filter() 161 if (!strncmp(input, "<", 1)) { in attr_string_filter() 165 } else if (!strncmp(input, ">", 1)) { in attr_string_filter() 169 } else if (!strncmp(input, "!=", 2)) { in attr_string_filter() 171 } else if (!strncmp(input, "=", 1)) { in attr_string_filter()
|
| /linux/tools/power/cpupower/utils/idle_monitor/ |
| H A D | cpuidle_sysfs.c | 82 if (!strncmp(tmp, "NHM-", 4)) { in fix_up_intel_idle_driver_name() 94 } else if (!strncmp(tmp, "SNB-", 4)) { in fix_up_intel_idle_driver_name() 109 } else if (!strncmp(tmp, "ATM-", 4)) { in fix_up_intel_idle_driver_name() 130 if (!strncmp(tmp, "stop0_lite", CSTATE_NAME_LEN)) in map_power_idle_state_name() 132 else if (!strncmp(tmp, "stop1_lite", CSTATE_NAME_LEN)) in map_power_idle_state_name() 134 else if (!strncmp(tmp, "stop2_lite", CSTATE_NAME_LEN)) in map_power_idle_state_name()
|
| /linux/arch/x86/boot/ |
| H A D | early_serial_console.c | 56 if (!strncmp(arg, "serial", 6)) { in parse_earlyprintk() 70 if (pos == 7 && !strncmp(arg + pos, "0x", 2)) { in parse_earlyprintk() 76 } else if (!strncmp(arg + pos, "ttyS", 4)) { in parse_earlyprintk() 132 if (!strncmp(options, "uart8250,io,", 12)) in parse_console_uart8250() 134 else if (!strncmp(options, "uart,io,", 8)) in parse_console_uart8250()
|
| /linux/drivers/spi/ |
| H A D | spi-sprd-adi.c | 378 else if (!strncmp(cmd, "recovery", 8)) in sprd_adi_restart() 380 else if (!strncmp(cmd, "alarm", 5)) in sprd_adi_restart() 382 else if (!strncmp(cmd, "fastsleep", 9)) in sprd_adi_restart() 384 else if (!strncmp(cmd, "bootloader", 10)) in sprd_adi_restart() 386 else if (!strncmp(cmd, "panic", 5)) in sprd_adi_restart() 388 else if (!strncmp(cmd, "special", 7)) in sprd_adi_restart() 390 else if (!strncmp(cmd, "cftreboot", 9)) in sprd_adi_restart() 392 else if (!strncmp(cmd, "autodloader", 11)) in sprd_adi_restart() 394 else if (!strncmp(cmd, "iqmode", 6)) in sprd_adi_restart() 396 else if (!strncmp(cmd, "sprdisk", 7)) in sprd_adi_restart() [all …]
|
| /linux/drivers/net/ethernet/intel/i40e/ |
| H A D | i40e_debugfs.c | 744 if (strncmp(cmd_buf, "add vsi", 7) == 0) { in i40e_dbg_command_write() 772 } else if (strncmp(cmd_buf, "del vsi", 7) == 0) { in i40e_dbg_command_write() 790 } else if (strncmp(cmd_buf, "add relay", 9) == 0) { in i40e_dbg_command_write() 837 } else if (strncmp(cmd_buf, "del relay", 9) == 0) { in i40e_dbg_command_write() 866 } else if (strncmp(cmd_buf, "add pvid", 8) == 0) { in i40e_dbg_command_write() 896 } else if (strncmp(cmd_buf, "del pvid", 8) == 0) { in i40e_dbg_command_write() 917 } else if (strncmp(cmd_buf, "dump", 4) == 0) { in i40e_dbg_command_write() 918 if (strncmp(&cmd_buf[5], "switch", 6) == 0) { in i40e_dbg_command_write() 920 } else if (strncmp(&cmd_buf[5], "vsi", 3) == 0) { in i40e_dbg_command_write() 926 } else if (strncmp(&cmd_buf[5], "veb", 3) == 0) { in i40e_dbg_command_write() [all …]
|
| /linux/tools/power/cpupower/utils/helpers/ |
| H A D | cpuid.c | 71 if (!strncmp(value, "processor\t: ", 12)) in get_cpu_info() 78 if (!strncmp(value, "vendor_id", 9)) { in get_cpu_info() 84 } else if (!strncmp(value, "cpu family\t: ", 13)) { in get_cpu_info() 87 } else if (!strncmp(value, "model\t\t: ", 9)) { in get_cpu_info() 90 } else if (!strncmp(value, "stepping\t: ", 10)) { in get_cpu_info()
|
| /linux/drivers/net/wireless/ath/ath5k/ |
| H A D | debug.c | 235 if (strncmp(buf, "disable", 7) == 0) { in write_file_beacon() 238 } else if (strncmp(buf, "enable", 6) == 0) { in write_file_beacon() 338 if (strncmp(buf, dbg_info[i].name, in write_file_debug() 442 if (strncmp(buf, "diversity", 9) == 0) { in write_file_antenna() 445 } else if (strncmp(buf, "fixed-a", 7) == 0) { in write_file_antenna() 448 } else if (strncmp(buf, "fixed-b", 7) == 0) { in write_file_antenna() 451 } else if (strncmp(buf, "clear", 5) == 0) { in write_file_antenna() 615 if (strncmp(buf, "clear", 5) == 0) { in write_file_frameerrors() 764 if (strncmp(buf, "sens-low", 8) == 0) { in write_file_ani() 766 } else if (strncmp(buf, "sens-high", 9) == 0) { in write_file_ani() [all …]
|
| /linux/drivers/accessibility/speakup/ |
| H A D | makemapdata.c | 24 if (strncmp(buffer, "#define", 7)) in get_define() 72 if (strncmp(def_name, "KEY_", 4)) in main() 81 if (strncmp(def_name, "KEY_", 4)) in main() 105 } else if (!strncmp(def_val, "0x", 2)) in main()
|
| /linux/arch/sparc/lib/ |
| H A D | strncmp_64.S | 13 ENTRY(strncmp) 32 ENDPROC(strncmp) 33 EXPORT_SYMBOL(strncmp)
|
| /linux/arch/riscv/lib/ |
| H A D | strncmp.S | 9 SYM_FUNC_START(strncmp) 139 SYM_FUNC_END(strncmp) 140 SYM_FUNC_ALIAS(__pi_strncmp, strncmp) 141 EXPORT_SYMBOL(strncmp)
|
| /linux/scripts/ |
| H A D | unifdef.c | 673 if (strncmp(cp, "\\\r\n", 3) == 0 || in parseline() 674 strncmp(cp, "\\\n", 2) == 0) in parseline() 860 } else if (strncmp(cp, "defined", 7) == 0 && endsym(cp[7])) { in eval_unary() 928 if (strncmp(cp, op->str, strlen(op->str)) == 0) in eval_table() 982 if (strncmp(cp, "\\\r\n", 3) == 0) in skipcomment() 984 else if (strncmp(cp, "\\\n", 2) == 0) in skipcomment() 988 if (strncmp(cp, "/\\\r\n", 4) == 0) { in skipcomment() 991 } else if (strncmp(cp, "/\\\n", 3) == 0) { in skipcomment() 994 } else if (strncmp(cp, "/*", 2) == 0) { in skipcomment() 997 } else if (strncmp(cp, "//", 2) == 0) { in skipcomment() [all …]
|
| /linux/arch/powerpc/platforms/chrp/ |
| H A D | pci.c | 225 is_longtrail = strncmp(machine, "IBM,LongTrail", 13) == 0; in chrp_find_bridges() 226 is_mot = strncmp(machine, "MOT", 3) == 0; in chrp_find_bridges() 227 if (strncmp(machine, "Pegasos2", 8) == 0) in chrp_find_bridges() 229 else if (strncmp(machine, "Pegasos", 7) == 0) in chrp_find_bridges() 270 if (strncmp(model, "IBM, Python", 11) == 0) { in chrp_find_bridges() 273 || strncmp(model, "Motorola, Grackle", 17) == 0) { in chrp_find_bridges() 284 } else if (!strncmp(model, "IBM,CPC710", 10)) { in chrp_find_bridges()
|
| /linux/tools/tracing/rtla/src/ |
| H A D | actions.c | 121 if (strncmp(token, opt, opt_len)) in actions_add_continue()
|
| /linux/arch/powerpc/include/asm/ |
| H A D | ftrace.h | 105 (!strncmp(sym, "__se_sys", 8) && !strcmp(sym + 5, name)) || in arch_syscall_match_sym_name() 106 (!strncmp(sym, "ppc_", 4) && !strcmp(sym + 4, name + 4)) || in arch_syscall_match_sym_name() 107 (!strncmp(sym, "ppc32_", 6) && !strcmp(sym + 6, name + 4)) || in arch_syscall_match_sym_name() 108 (!strncmp(sym, "ppc64_", 6) && !strcmp(sym + 6, name + 4)); in arch_syscall_match_sym_name()
|