Home
last modified time | relevance | path

Searched refs:strncmp (Results 1 – 25 of 903) sorted by relevance

12345678910>>...37

/Linux-v4.19/arch/x86/kernel/
Dpci-dma.c104 if (!strncmp(p, "off", 3)) in iommu_setup()
107 if (!strncmp(p, "force", 5)) in iommu_setup()
109 if (!strncmp(p, "noforce", 7)) { in iommu_setup()
114 if (!strncmp(p, "biomerge", 8)) { in iommu_setup()
118 if (!strncmp(p, "panic", 5)) in iommu_setup()
120 if (!strncmp(p, "nopanic", 7)) in iommu_setup()
122 if (!strncmp(p, "merge", 5)) { in iommu_setup()
126 if (!strncmp(p, "nomerge", 7)) in iommu_setup()
128 if (!strncmp(p, "forcesac", 8)) in iommu_setup()
130 if (!strncmp(p, "allowdac", 8)) in iommu_setup()
[all …]
Dearly_printk.c162 if (!strncmp(s, "0x", 2)) { in early_serial_init()
167 if (!strncmp(s, "ttyS", 4)) in early_serial_init()
349 if (!strncmp(buf, "serial", 6)) { in setup_early_printk()
353 if (!strncmp(buf, ",ttyS", 5)) in setup_early_printk()
356 if (!strncmp(buf, "ttyS", 4)) { in setup_early_printk()
361 if (!strncmp(buf, "pciserial", 9)) { in setup_early_printk()
367 if (!strncmp(buf, "vga", 3) && in setup_early_printk()
375 if (!strncmp(buf, "dbgp", 4) && !early_dbgp_init(buf + 4)) in setup_early_printk()
379 if (!strncmp(buf, "xen", 3)) in setup_early_printk()
383 if (!strncmp(buf, "efi", 3)) in setup_early_printk()
[all …]
/Linux-v4.19/tools/perf/util/
Ddemangle-rust.c108 if (strncmp(str, hash_prefix, hash_prefix_len)) in is_prefixed_hash()
137 if (!strncmp(str, "$C$", 3)) in looks_like_rust()
139 else if (!strncmp(str, "$SP$", 4) in looks_like_rust()
140 || !strncmp(str, "$BP$", 4) in looks_like_rust()
141 || !strncmp(str, "$RF$", 4) in looks_like_rust()
142 || !strncmp(str, "$LT$", 4) in looks_like_rust()
143 || !strncmp(str, "$GT$", 4) in looks_like_rust()
144 || !strncmp(str, "$LP$", 4) in looks_like_rust()
145 || !strncmp(str, "$RP$", 4)) in looks_like_rust()
147 else if (!strncmp(str, "$u20$", 5) in looks_like_rust()
[all …]
Denv.c144 if (!strcmp(arch, "sun4u") || !strncmp(arch, "sparc", 5)) in normalize_arch()
148 if (!strncmp(arch, "arm", 3) || !strcmp(arch, "sa110")) in normalize_arch()
150 if (!strncmp(arch, "s390", 4)) in normalize_arch()
152 if (!strncmp(arch, "parisc", 6)) in normalize_arch()
154 if (!strncmp(arch, "powerpc", 7) || !strncmp(arch, "ppc", 3)) in normalize_arch()
156 if (!strncmp(arch, "mips", 4)) in normalize_arch()
158 if (!strncmp(arch, "sh", 2) && isdigit(arch[2])) in normalize_arch()
/Linux-v4.19/arch/x86/kernel/acpi/
Dsleep.c125 if (strncmp(str, "s3_bios", 7) == 0) in acpi_sleep_setup()
127 if (strncmp(str, "s3_mode", 7) == 0) in acpi_sleep_setup()
129 if (strncmp(str, "s3_beep", 7) == 0) in acpi_sleep_setup()
132 if (strncmp(str, "s4_nohwsig", 10) == 0) in acpi_sleep_setup()
135 if (strncmp(str, "nonvs", 5) == 0) in acpi_sleep_setup()
137 if (strncmp(str, "nonvs_s3", 8) == 0) in acpi_sleep_setup()
139 if (strncmp(str, "old_ordering", 12) == 0) in acpi_sleep_setup()
141 if (strncmp(str, "nobl", 4) == 0) in acpi_sleep_setup()
/Linux-v4.19/arch/powerpc/include/asm/
Dftrace.h80 (!strncmp(sym, ".__se_sys", 9) && !strcmp(sym + 6, name)) || in arch_syscall_match_sym_name()
81 (!strncmp(sym, ".ppc_", 5) && !strcmp(sym + 5, name + 4)) || in arch_syscall_match_sym_name()
82 (!strncmp(sym, ".ppc32_", 7) && !strcmp(sym + 7, name + 4)) || in arch_syscall_match_sym_name()
83 (!strncmp(sym, ".ppc64_", 7) && !strcmp(sym + 7, name + 4)); in arch_syscall_match_sym_name()
89 (!strncmp(sym, "__se_sys", 8) && !strcmp(sym + 5, name)) || in arch_syscall_match_sym_name()
90 (!strncmp(sym, "ppc_", 4) && !strcmp(sym + 4, name + 4)) || in arch_syscall_match_sym_name()
91 (!strncmp(sym, "ppc32_", 6) && !strcmp(sym + 6, name + 4)) || in arch_syscall_match_sym_name()
92 (!strncmp(sym, "ppc64_", 6) && !strcmp(sym + 6, name + 4)); in arch_syscall_match_sym_name()
/Linux-v4.19/arch/x86/xen/
Dplatform-pci-unplug.c198 if (!strncmp(p, "all", l)) in parse_xen_emul_unplug()
200 else if (!strncmp(p, "ide-disks", l)) in parse_xen_emul_unplug()
202 else if (!strncmp(p, "aux-ide-disks", l)) in parse_xen_emul_unplug()
204 else if (!strncmp(p, "nics", l)) in parse_xen_emul_unplug()
206 else if (!strncmp(p, "unnecessary", l)) in parse_xen_emul_unplug()
208 else if (!strncmp(p, "never", l)) in parse_xen_emul_unplug()
/Linux-v4.19/drivers/isdn/i4l/
Disdn_ttyfax.c329 if (!strncmp(p[0], cmd[c.parm.aux.cmd], 2)) in isdn_tty_cmd_FCLASS1()
424 if (!strncmp(p[0], "AA", 2)) { /* TODO */ in isdn_tty_cmd_FCLASS2()
444 if (!strncmp(p[0], "BADLIN", 6)) { in isdn_tty_cmd_FCLASS2()
474 if (!strncmp(p[0], "BADMUL", 6)) { in isdn_tty_cmd_FCLASS2()
504 if (!strncmp(p[0], "BOR", 3)) { in isdn_tty_cmd_FCLASS2()
534 if (!strncmp(p[0], "NBC", 3)) { in isdn_tty_cmd_FCLASS2()
564 if (!strncmp(p[0], "BUF?", 4)) { in isdn_tty_cmd_FCLASS2()
575 if (!strncmp(p[0], "CIG", 3)) { in isdn_tty_cmd_FCLASS2()
613 if (!strncmp(p[0], "CQ", 2)) { in isdn_tty_cmd_FCLASS2()
643 if (!strncmp(p[0], "CR", 2)) { in isdn_tty_cmd_FCLASS2()
[all …]
/Linux-v4.19/tools/perf/arch/s390/util/
Dheader.c62 if (!strncmp(line, SYSINFO_MANU, strlen(SYSINFO_MANU))) { in get_cpuid()
71 if (!strncmp(line, SYSINFO_TYPE, strlen(SYSINFO_TYPE))) { in get_cpuid()
80 if (!strncmp(line, SYSINFO_MODEL, strlen(SYSINFO_MODEL))) { in get_cpuid()
105 if (strncmp(line, SRVLVL_CPUMF, strlen(SRVLVL_CPUMF))) in get_cpuid()
110 if (!strncmp(cp, SRVLVL_VERSION, in get_cpuid()
117 if (!strncmp(cp, SRVLVL_AUTHORIZATION, in get_cpuid()
/Linux-v4.19/drivers/iommu/
Dirq_remapping.c61 if (!strncmp(str, "on", 2)) { in setup_irqremap()
64 } else if (!strncmp(str, "off", 3)) { in setup_irqremap()
67 } else if (!strncmp(str, "nosid", 5)) in setup_irqremap()
69 else if (!strncmp(str, "no_x2apic_optout", 16)) in setup_irqremap()
71 else if (!strncmp(str, "nopost", 6)) in setup_irqremap()
/Linux-v4.19/drivers/video/fbdev/core/
Dfb_cmdline.c41 if (name_len && ofonly && strncmp(name, "offb", 4)) in fb_get_options()
51 if (!strncmp(name, opt, name_len) && in fb_get_options()
59 if (options && !strncmp(options, "off", 3)) in fb_get_options()
89 if (!global && !strncmp(options, "ofonly", 6)) { in video_setup()
/Linux-v4.19/arch/x86/boot/
Dearly_serial_console.c56 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-v4.19/tools/power/cpupower/utils/helpers/
Dcpuid.c71 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-v4.19/tools/power/cpupower/utils/idle_monitor/
Dcpuidle_sysfs.c84 if (!strncmp(tmp, "NHM-", 4)) { in fix_up_intel_idle_driver_name()
96 } else if (!strncmp(tmp, "SNB-", 4)) { in fix_up_intel_idle_driver_name()
111 } else if (!strncmp(tmp, "ATM-", 4)) { in fix_up_intel_idle_driver_name()
132 if (!strncmp(tmp, "stop0_lite", CSTATE_NAME_LEN)) in map_power_idle_state_name()
134 else if (!strncmp(tmp, "stop1_lite", CSTATE_NAME_LEN)) in map_power_idle_state_name()
136 else if (!strncmp(tmp, "stop2_lite", CSTATE_NAME_LEN)) in map_power_idle_state_name()
/Linux-v4.19/drivers/firmware/
Dedd.c150 if (!strncmp(info->params.host_bus_type, "ISA", 3)) { in edd_show_host_bus()
153 } else if (!strncmp(info->params.host_bus_type, "PCIX", 4) || in edd_show_host_bus()
154 !strncmp(info->params.host_bus_type, "PCI", 3) || in edd_show_host_bus()
155 !strncmp(info->params.host_bus_type, "XPRS", 4)) { in edd_show_host_bus()
162 } else if (!strncmp(info->params.host_bus_type, "IBND", 4) || in edd_show_host_bus()
163 !strncmp(info->params.host_bus_type, "HTPT", 4)) { in edd_show_host_bus()
195 if (!strncmp(info->params.interface_type, "ATAPI", 5)) { in edd_show_interface()
199 } else if (!strncmp(info->params.interface_type, "ATA", 3)) { in edd_show_interface()
202 } else if (!strncmp(info->params.interface_type, "SCSI", 4)) { in edd_show_interface()
206 } else if (!strncmp(info->params.interface_type, "USB", 3)) { in edd_show_interface()
[all …]
/Linux-v4.19/arch/sparc/lib/
Dstrncmp_64.S13 ENTRY(strncmp)
32 ENDPROC(strncmp)
33 EXPORT_SYMBOL(strncmp)
/Linux-v4.19/drivers/scsi/
Dsr_vendor.c84 } else if (!strncmp(vendor, "NEC", 3)) { in sr_vendor_init()
86 if (!strncmp(model, "CD-ROM DRIVE:25", 15) || in sr_vendor_init()
87 !strncmp(model, "CD-ROM DRIVE:36", 15) || in sr_vendor_init()
88 !strncmp(model, "CD-ROM DRIVE:83", 15) || in sr_vendor_init()
89 !strncmp(model, "CD-ROM DRIVE:84 ", 16) in sr_vendor_init()
93 || !strncmp(model, "CD-ROM DRIVE:500", 16) in sr_vendor_init()
99 } else if (!strncmp(vendor, "TOSHIBA", 7)) { in sr_vendor_init()
/Linux-v4.19/drivers/net/ethernet/intel/i40e/
Di40e_debugfs.c733 if (strncmp(cmd_buf, "add vsi", 7) == 0) { in i40e_dbg_command_write()
760 } else if (strncmp(cmd_buf, "del vsi", 7) == 0) { in i40e_dbg_command_write()
778 } else if (strncmp(cmd_buf, "add relay", 9) == 0) { in i40e_dbg_command_write()
820 } else if (strncmp(cmd_buf, "del relay", 9) == 0) { in i40e_dbg_command_write()
846 } else if (strncmp(cmd_buf, "add pvid", 8) == 0) { in i40e_dbg_command_write()
876 } else if (strncmp(cmd_buf, "del pvid", 8) == 0) { in i40e_dbg_command_write()
897 } else if (strncmp(cmd_buf, "dump", 4) == 0) { in i40e_dbg_command_write()
898 if (strncmp(&cmd_buf[5], "switch", 6) == 0) { in i40e_dbg_command_write()
900 } else if (strncmp(&cmd_buf[5], "vsi", 3) == 0) { in i40e_dbg_command_write()
906 } else if (strncmp(&cmd_buf[5], "veb", 3) == 0) { in i40e_dbg_command_write()
[all …]
/Linux-v4.19/samples/bpf/
Dbpf_load.c60 bool is_socket = strncmp(event, "socket", 6) == 0; in load_and_attach()
61 bool is_kprobe = strncmp(event, "kprobe/", 7) == 0; in load_and_attach()
62 bool is_kretprobe = strncmp(event, "kretprobe/", 10) == 0; in load_and_attach()
63 bool is_tracepoint = strncmp(event, "tracepoint/", 11) == 0; in load_and_attach()
64 bool is_raw_tracepoint = strncmp(event, "raw_tracepoint/", 15) == 0; in load_and_attach()
65 bool is_xdp = strncmp(event, "xdp", 3) == 0; in load_and_attach()
66 bool is_perf_event = strncmp(event, "perf_event", 10) == 0; in load_and_attach()
67 bool is_cgroup_skb = strncmp(event, "cgroup/skb", 10) == 0; in load_and_attach()
68 bool is_cgroup_sk = strncmp(event, "cgroup/sock", 11) == 0; in load_and_attach()
69 bool is_sockops = strncmp(event, "sockops", 7) == 0; in load_and_attach()
[all …]
/Linux-v4.19/drivers/spi/
Dspi-sprd-adi.c319 else if (!strncmp(cmd, "recovery", 8)) in sprd_adi_restart_handler()
321 else if (!strncmp(cmd, "alarm", 5)) in sprd_adi_restart_handler()
323 else if (!strncmp(cmd, "fastsleep", 9)) in sprd_adi_restart_handler()
325 else if (!strncmp(cmd, "bootloader", 10)) in sprd_adi_restart_handler()
327 else if (!strncmp(cmd, "panic", 5)) in sprd_adi_restart_handler()
329 else if (!strncmp(cmd, "special", 7)) in sprd_adi_restart_handler()
331 else if (!strncmp(cmd, "cftreboot", 9)) in sprd_adi_restart_handler()
333 else if (!strncmp(cmd, "autodloader", 11)) in sprd_adi_restart_handler()
335 else if (!strncmp(cmd, "iqmode", 6)) in sprd_adi_restart_handler()
337 else if (!strncmp(cmd, "sprdisk", 7)) in sprd_adi_restart_handler()
/Linux-v4.19/tools/perf/arch/powerpc/annotate/
Dinstructions.c14 !strncmp(name, "bcd", 3) || in powerpc__associate_instruction_ops()
15 !strncmp(name, "brinc", 5) || in powerpc__associate_instruction_ops()
16 !strncmp(name, "bper", 4)) in powerpc__associate_instruction_ops()
/Linux-v4.19/drivers/net/wireless/ath/ath5k/
Ddebug.c254 if (strncmp(buf, "disable", 7) == 0) { in write_file_beacon()
257 } else if (strncmp(buf, "enable", 6) == 0) { in write_file_beacon()
357 if (strncmp(buf, dbg_info[i].name, in write_file_debug()
461 if (strncmp(buf, "diversity", 9) == 0) { in write_file_antenna()
464 } else if (strncmp(buf, "fixed-a", 7) == 0) { in write_file_antenna()
467 } else if (strncmp(buf, "fixed-b", 7) == 0) { in write_file_antenna()
470 } else if (strncmp(buf, "clear", 5) == 0) { in write_file_antenna()
634 if (strncmp(buf, "clear", 5) == 0) { in write_file_frameerrors()
783 if (strncmp(buf, "sens-low", 8) == 0) { in write_file_ani()
785 } else if (strncmp(buf, "sens-high", 9) == 0) { in write_file_ani()
[all …]
/Linux-v4.19/drivers/pcmcia/
Dvrc4171_card.c640 if (strncmp(options, "irq:", 4) == 0) { in vrc4171_card_setup()
652 if (strncmp(options, "slota:", 6) == 0) { in vrc4171_card_setup()
655 if (strncmp(options, "memnoprobe", 10) == 0) { in vrc4171_card_setup()
658 } else if (strncmp(options, "ionoprobe", 9) == 0) { in vrc4171_card_setup()
661 } else if ( strncmp(options, "noprobe", 7) == 0) { in vrc4171_card_setup()
674 if (strncmp(options, "slotb:", 6) == 0) { in vrc4171_card_setup()
677 if (strncmp(options, "pccard", 6) == 0) { in vrc4171_card_setup()
680 } else if (strncmp(options, "cf", 2) == 0) { in vrc4171_card_setup()
683 } else if (strncmp(options, "flashrom", 8) == 0) { in vrc4171_card_setup()
686 } else if (strncmp(options, "none", 4) == 0) { in vrc4171_card_setup()
[all …]
/Linux-v4.19/drivers/usb/dwc3/
Ddebugfs.c325 if (!strncmp(buf, "host", 4)) in dwc3_mode_write()
328 if (!strncmp(buf, "device", 6)) in dwc3_mode_write()
331 if (!strncmp(buf, "otg", 3)) in dwc3_mode_write()
402 if (!strncmp(buf, "test_j", 6)) in dwc3_testmode_write()
404 else if (!strncmp(buf, "test_k", 6)) in dwc3_testmode_write()
406 else if (!strncmp(buf, "test_se0_nak", 12)) in dwc3_testmode_write()
408 else if (!strncmp(buf, "test_packet", 11)) in dwc3_testmode_write()
410 else if (!strncmp(buf, "test_force_enable", 17)) in dwc3_testmode_write()
464 if (!strncmp(buf, "SS.Disabled", 11)) in dwc3_link_state_write()
466 else if (!strncmp(buf, "Rx.Detect", 9)) in dwc3_link_state_write()
[all …]
/Linux-v4.19/arch/powerpc/platforms/chrp/
Dpci.c226 is_longtrail = strncmp(machine, "IBM,LongTrail", 13) == 0; in chrp_find_bridges()
227 is_mot = strncmp(machine, "MOT", 3) == 0; in chrp_find_bridges()
228 if (strncmp(machine, "Pegasos2", 8) == 0) in chrp_find_bridges()
230 else if (strncmp(machine, "Pegasos", 7) == 0) in chrp_find_bridges()
271 if (strncmp(model, "IBM, Python", 11) == 0) { in chrp_find_bridges()
274 || strncmp(model, "Motorola, Grackle", 17) == 0) { in chrp_find_bridges()
285 } else if (!strncmp(model, "IBM,CPC710", 10)) { in chrp_find_bridges()

12345678910>>...37