Home
last modified time | relevance | path

Searched refs:strncmp (Results 1 – 200 of 820) sorted by relevance

12345

/linux-4.4.14/arch/x86/kernel/
Dpci-dma.c159 if (!strncmp(p, "off", 3)) in iommu_setup()
162 if (!strncmp(p, "force", 5)) in iommu_setup()
164 if (!strncmp(p, "noforce", 7)) { in iommu_setup()
169 if (!strncmp(p, "biomerge", 8)) { in iommu_setup()
173 if (!strncmp(p, "panic", 5)) in iommu_setup()
175 if (!strncmp(p, "nopanic", 7)) in iommu_setup()
177 if (!strncmp(p, "merge", 5)) { in iommu_setup()
181 if (!strncmp(p, "nomerge", 7)) in iommu_setup()
183 if (!strncmp(p, "forcesac", 8)) in iommu_setup()
185 if (!strncmp(p, "allowdac", 8)) in iommu_setup()
[all …]
Dearly_printk.c160 if (!strncmp(s, "0x", 2)) { in early_serial_init()
165 if (!strncmp(s, "ttyS", 4)) in early_serial_init()
347 if (!strncmp(buf, "serial", 6)) { in setup_early_printk()
351 if (!strncmp(buf, ",ttyS", 5)) in setup_early_printk()
354 if (!strncmp(buf, "ttyS", 4)) { in setup_early_printk()
359 if (!strncmp(buf, "pciserial", 9)) { in setup_early_printk()
365 if (!strncmp(buf, "vga", 3) && in setup_early_printk()
373 if (!strncmp(buf, "dbgp", 4) && !early_dbgp_init(buf + 4)) in setup_early_printk()
377 if (!strncmp(buf, "xen", 3)) in setup_early_printk()
381 if (!strncmp(buf, "efi", 3)) in setup_early_printk()
Dapm_32.c1871 if (strncmp(str, "off", 3) == 0) in apm_setup()
1873 if (strncmp(str, "on", 2) == 0) in apm_setup()
1875 if ((strncmp(str, "bounce-interval=", 16) == 0) || in apm_setup()
1876 (strncmp(str, "bounce_interval=", 16) == 0)) in apm_setup()
1878 if ((strncmp(str, "idle-threshold=", 15) == 0) || in apm_setup()
1879 (strncmp(str, "idle_threshold=", 15) == 0)) in apm_setup()
1881 if ((strncmp(str, "idle-period=", 12) == 0) || in apm_setup()
1882 (strncmp(str, "idle_period=", 12) == 0)) in apm_setup()
1884 invert = (strncmp(str, "no-", 3) == 0) || in apm_setup()
1885 (strncmp(str, "no_", 3) == 0); in apm_setup()
[all …]
Damd_gart_64.c864 if (!strncmp(p, "leak", 4)) { in gart_parse_options()
875 if (!strncmp(p, "fullflush", 9)) in gart_parse_options()
877 if (!strncmp(p, "nofullflush", 11)) in gart_parse_options()
879 if (!strncmp(p, "noagp", 5)) in gart_parse_options()
881 if (!strncmp(p, "noaperture", 10)) in gart_parse_options()
884 if (!strncmp(p, "force", 5)) in gart_parse_options()
886 if (!strncmp(p, "allowed", 7)) in gart_parse_options()
888 if (!strncmp(p, "memaper", 7)) { in gart_parse_options()
Dpci-calgary_64.c1493 if (!strncmp(p, "64k", 3)) in calgary_parse_options()
1495 else if (!strncmp(p, "128k", 4)) in calgary_parse_options()
1497 else if (!strncmp(p, "256k", 4)) in calgary_parse_options()
1499 else if (!strncmp(p, "512k", 4)) in calgary_parse_options()
1501 else if (!strncmp(p, "1M", 2)) in calgary_parse_options()
1503 else if (!strncmp(p, "2M", 2)) in calgary_parse_options()
1505 else if (!strncmp(p, "4M", 2)) in calgary_parse_options()
1507 else if (!strncmp(p, "8M", 2)) in calgary_parse_options()
1511 if (!strncmp(p, "translate_empty_slots", len)) in calgary_parse_options()
1515 if (!strncmp(p, "disable", len)) { in calgary_parse_options()
/linux-4.4.14/arch/x86/kernel/acpi/
Dsleep.c124 if (strncmp(str, "s3_bios", 7) == 0) in acpi_sleep_setup()
126 if (strncmp(str, "s3_mode", 7) == 0) in acpi_sleep_setup()
128 if (strncmp(str, "s3_beep", 7) == 0) in acpi_sleep_setup()
131 if (strncmp(str, "s4_nohwsig", 10) == 0) in acpi_sleep_setup()
134 if (strncmp(str, "nonvs", 5) == 0) in acpi_sleep_setup()
136 if (strncmp(str, "nonvs_s3", 8) == 0) in acpi_sleep_setup()
138 if (strncmp(str, "old_ordering", 12) == 0) in acpi_sleep_setup()
/linux-4.4.14/arch/microblaze/kernel/
Dprom.c67 if ((strncmp(p, "xlnx,xps-uart16550", 18) == 0) || in early_init_dt_scan_chosen_serial()
68 (strncmp(p, "xlnx,axi-uart16550", 18) == 0)) { in early_init_dt_scan_chosen_serial()
79 if ((strncmp(p, "xlnx,xps-uartlite", 17) == 0) || in early_init_dt_scan_chosen_serial()
80 (strncmp(p, "xlnx,opb-uartlite", 17) == 0) || in early_init_dt_scan_chosen_serial()
81 (strncmp(p, "xlnx,axi-uartlite", 17) == 0) || in early_init_dt_scan_chosen_serial()
82 (strncmp(p, "xlnx,mdm", 8) == 0)) { in early_init_dt_scan_chosen_serial()
/linux-4.4.14/tools/perf/arch/
Dcommon.c111 if (!strcmp(arch, "sun4u") || !strncmp(arch, "sparc", 5)) in normalize_arch()
115 if (!strncmp(arch, "arm", 3) || !strcmp(arch, "sa110")) in normalize_arch()
117 if (!strncmp(arch, "s390", 4)) in normalize_arch()
119 if (!strncmp(arch, "parisc", 6)) in normalize_arch()
121 if (!strncmp(arch, "powerpc", 7) || !strncmp(arch, "ppc", 3)) in normalize_arch()
123 if (!strncmp(arch, "mips", 4)) in normalize_arch()
125 if (!strncmp(arch, "sh", 2) && isdigit(arch[2])) in normalize_arch()
/linux-4.4.14/fs/cifs/
Dxattr.c74 } else if (strncmp(ea_name, XATTR_USER_PREFIX, XATTR_USER_PREFIX_LEN) in cifs_removexattr()
75 && (strncmp(ea_name, XATTR_OS2_PREFIX, XATTR_OS2_PREFIX_LEN))) { in cifs_removexattr()
147 } else if (strncmp(ea_name, XATTR_USER_PREFIX, XATTR_USER_PREFIX_LEN) in cifs_setxattr()
151 if (strncmp(ea_name, CIFS_XATTR_DOS_ATTRIB, 14) == 0) in cifs_setxattr()
159 } else if (strncmp(ea_name, XATTR_OS2_PREFIX, XATTR_OS2_PREFIX_LEN) in cifs_setxattr()
169 } else if (strncmp(ea_name, CIFS_XATTR_CIFS_ACL, in cifs_setxattr()
193 temp = strncmp(ea_name, POSIX_ACL_XATTR_ACCESS, in cifs_setxattr()
206 } else if (strncmp(ea_name, POSIX_ACL_XATTR_DEFAULT, in cifs_setxattr()
272 } else if (strncmp(ea_name, XATTR_USER_PREFIX, XATTR_USER_PREFIX_LEN) in cifs_getxattr()
277 if (strncmp(ea_name, CIFS_XATTR_DOS_ATTRIB, 14) == 0) { in cifs_getxattr()
[all …]
/linux-4.4.14/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-4.4.14/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-4.4.14/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-4.4.14/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-4.4.14/drivers/power/
Dgpio-charger.c105 if (!strncmp("unknown", chargetype, 7)) in gpio_charger_parse_dt()
107 else if (!strncmp("battery", chargetype, 7)) in gpio_charger_parse_dt()
109 else if (!strncmp("ups", chargetype, 3)) in gpio_charger_parse_dt()
111 else if (!strncmp("mains", chargetype, 5)) in gpio_charger_parse_dt()
113 else if (!strncmp("usb-sdp", chargetype, 7)) in gpio_charger_parse_dt()
115 else if (!strncmp("usb-dcp", chargetype, 7)) in gpio_charger_parse_dt()
117 else if (!strncmp("usb-cdp", chargetype, 7)) in gpio_charger_parse_dt()
119 else if (!strncmp("usb-aca", chargetype, 7)) in gpio_charger_parse_dt()
Dbq2415x_charger.c1134 if (strncmp(buf, "auto", 4) == 0) in bq2415x_sysfs_set_timer()
1136 else if (strncmp(buf, "off", 3) == 0) in bq2415x_sysfs_set_timer()
1180 if (strncmp(buf, "auto", 4) == 0) { in bq2415x_sysfs_set_mode()
1185 } else if (strncmp(buf, "off", 3) == 0) { in bq2415x_sysfs_set_mode()
1189 } else if (strncmp(buf, "none", 4) == 0) { in bq2415x_sysfs_set_mode()
1193 } else if (strncmp(buf, "host", 4) == 0) { in bq2415x_sysfs_set_mode()
1197 } else if (strncmp(buf, "dedicated", 9) == 0) { in bq2415x_sysfs_set_mode()
1201 } else if (strncmp(buf, "boost", 5) == 0) { in bq2415x_sysfs_set_mode()
1205 } else if (strncmp(buf, "reset", 5) == 0) { in bq2415x_sysfs_set_mode()
/linux-4.4.14/tools/power/cpupower/utils/helpers/
Dcpuid.c70 if (!strncmp(value, "processor\t: ", 12)) in get_cpu_info()
77 if (!strncmp(value, "vendor_id", 9)) { in get_cpu_info()
83 } else if (!strncmp(value, "cpu family\t: ", 13)) { in get_cpu_info()
86 } else if (!strncmp(value, "model\t\t: ", 9)) { in get_cpu_info()
89 } else if (!strncmp(value, "stepping\t: ", 10)) { in get_cpu_info()
/linux-4.4.14/arch/x86/boot/
Dearly_serial_console.c51 if (!strncmp(arg, "serial", 6)) { in parse_earlyprintk()
65 if (pos == 7 && !strncmp(arg + pos, "0x", 2)) { in parse_earlyprintk()
71 } else if (!strncmp(arg + pos, "ttyS", 4)) { in parse_earlyprintk()
127 if (!strncmp(options, "uart8250,io,", 12)) in parse_console_uart8250()
129 else if (!strncmp(options, "uart,io,", 8)) in parse_console_uart8250()
/linux-4.4.14/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-4.4.14/drivers/staging/lustre/lustre/obdclass/
Dobd_mount.c620 if (strncmp(dash, "MDT", 3) == 0) in server_name2index()
622 else if (strncmp(dash, "OST", 3) == 0) in server_name2index()
629 if (strncmp(dash, "all", 3) == 0) { in server_name2index()
640 if (endptr != NULL && strncmp(LUSTRE_MDC_NAME, *endptr + 1, in server_name2index()
916 if (strncmp(s1, "abort_recov", 11) == 0) { in lmd_parse()
919 } else if (strncmp(s1, "recovery_time_soft=", 19) == 0) { in lmd_parse()
923 } else if (strncmp(s1, "recovery_time_hard=", 19) == 0) { in lmd_parse()
927 } else if (strncmp(s1, "noir", 4) == 0) { in lmd_parse()
930 } else if (strncmp(s1, "nosvc", 5) == 0) { in lmd_parse()
933 } else if (strncmp(s1, "nomgs", 5) == 0) { in lmd_parse()
[all …]
/linux-4.4.14/drivers/scsi/
Dsr_vendor.c83 } else if (!strncmp(vendor, "NEC", 3)) { in sr_vendor_init()
85 if (!strncmp(model, "CD-ROM DRIVE:25", 15) || in sr_vendor_init()
86 !strncmp(model, "CD-ROM DRIVE:36", 15) || in sr_vendor_init()
87 !strncmp(model, "CD-ROM DRIVE:83", 15) || in sr_vendor_init()
88 !strncmp(model, "CD-ROM DRIVE:84 ", 16) in sr_vendor_init()
92 || !strncmp(model, "CD-ROM DRIVE:500", 16) in sr_vendor_init()
98 } else if (!strncmp(vendor, "TOSHIBA", 7)) { in sr_vendor_init()
Dscsi_dh.c84 if (!strncmp(sdev->vendor, b->vendor, strlen(b->vendor)) && in scsi_dh_find_driver()
85 !strncmp(sdev->model, b->model, strlen(b->model))) { in scsi_dh_find_driver()
99 if (!strncmp(tmp->name, name, strlen(tmp->name))) { in __scsi_dh_lookup()
180 if (!strncmp(buf, "detach", 6)) { in store_dh_state()
188 } else if (!strncmp(buf, "activate", 8)) { in store_dh_state()
DNCR_D700.c135 if(!strncmp(pos, "slot:", 5)) in param_setup()
137 else if(!strncmp(pos, "siop:", 5)) in param_setup()
139 else if(!strncmp(pos, "id:", 3)) { in param_setup()
Dsim710.c72 if(!strncmp(pos, "slot:", 5)) in param_setup()
74 else if(!strncmp(pos, "id:", 3)) { in param_setup()
Dgdth_proc.c16 if (strncmp(buffer,"gdth",4) == 0) { in gdth_set_info()
45 if (length >= 5 && strncmp(buffer,"flush",5)==0) { in gdth_set_asc_info()
84 if (length >= 7 && strncmp(buffer,"wbp_off",7)==0) { in gdth_set_asc_info()
89 } else if (length >= 6 && strncmp(buffer,"wbp_on",6)==0) { in gdth_set_asc_info()
94 } else if (length >= 6 && strncmp(buffer,"wb_off",6)==0) { in gdth_set_asc_info()
105 } else if (length >= 5 && strncmp(buffer,"wb_on",5)==0) { in gdth_set_asc_info()
Dwd33c93.c1821 if (!strncmp(setup_args[x], key, strlen(key))) in check_setup_args()
1823 if (!strncmp(setup_args[x], "next", strlen("next"))) in check_setup_args()
2085 if (!strncmp(bp, "debug:", 6)) { in wd33c93_write_info()
2087 } else if (!strncmp(bp, "disconnect:", 11)) { in wd33c93_write_info()
2092 } else if (!strncmp(bp, "period:", 7)) { in wd33c93_write_info()
2097 } else if (!strncmp(bp, "resync:", 7)) { in wd33c93_write_info()
2099 } else if (!strncmp(bp, "proc:", 5)) { in wd33c93_write_info()
2101 } else if (!strncmp(bp, "nodma:", 6)) { in wd33c93_write_info()
2103 } else if (!strncmp(bp, "level2:", 7)) { in wd33c93_write_info()
2105 } else if (!strncmp(bp, "burst:", 6)) { in wd33c93_write_info()
[all …]
/linux-4.4.14/drivers/usb/dwc3/
Ddebugfs.c404 if (!strncmp(buf, "host", 4)) in dwc3_mode_write()
407 if (!strncmp(buf, "device", 6)) in dwc3_mode_write()
410 if (!strncmp(buf, "otg", 3)) in dwc3_mode_write()
484 if (!strncmp(buf, "test_j", 6)) in dwc3_testmode_write()
486 else if (!strncmp(buf, "test_k", 6)) in dwc3_testmode_write()
488 else if (!strncmp(buf, "test_se0_nak", 12)) in dwc3_testmode_write()
490 else if (!strncmp(buf, "test_packet", 11)) in dwc3_testmode_write()
492 else if (!strncmp(buf, "test_force_enable", 17)) in dwc3_testmode_write()
591 if (!strncmp(buf, "SS.Disabled", 11)) in dwc3_link_state_write()
593 else if (!strncmp(buf, "Rx.Detect", 9)) in dwc3_link_state_write()
[all …]
/linux-4.4.14/sound/oss/
Dsb_card.c180 if(!strncmp("CTL",scc->card_id,3)) { in sb_dev2cfg()
188 if(!strncmp("tBA",scc->card_id,3)) { in sb_dev2cfg()
195 if(!strncmp("ESS",scc->card_id,3)) { in sb_dev2cfg()
203 if(!strncmp("CMI",scc->card_id,3)) { in sb_dev2cfg()
210 if(!strncmp("RWB",scc->card_id,3)) { in sb_dev2cfg()
216 if(!strncmp("ALS",scc->card_id,3)) { in sb_dev2cfg()
217 if(!strncmp("ALS0007",scc->card_id,7)) { in sb_dev2cfg()
229 if(!strncmp("RTL",scc->card_id,3)) { in sb_dev2cfg()
/linux-4.4.14/drivers/net/ethernet/intel/i40e/
Di40e_debugfs.c998 if (strncmp(cmd_buf, "add vsi", 7) == 0) { in i40e_dbg_command_write()
1026 } else if (strncmp(cmd_buf, "del vsi", 7) == 0) { in i40e_dbg_command_write()
1044 } else if (strncmp(cmd_buf, "add relay", 9) == 0) { in i40e_dbg_command_write()
1086 } else if (strncmp(cmd_buf, "del relay", 9) == 0) { in i40e_dbg_command_write()
1113 } else if (strncmp(cmd_buf, "add macaddr", 11) == 0) { in i40e_dbg_command_write()
1153 } else if (strncmp(cmd_buf, "del macaddr", 11) == 0) { in i40e_dbg_command_write()
1192 } else if (strncmp(cmd_buf, "add pvid", 8) == 0) { in i40e_dbg_command_write()
1222 } else if (strncmp(cmd_buf, "del pvid", 8) == 0) { in i40e_dbg_command_write()
1243 } else if (strncmp(cmd_buf, "dump", 4) == 0) { in i40e_dbg_command_write()
1244 if (strncmp(&cmd_buf[5], "switch", 6) == 0) { in i40e_dbg_command_write()
[all …]
/linux-4.4.14/fs/btrfs/
Dxattr.c377 if (!strncmp(name, XATTR_SECURITY_PREFIX, in btrfs_is_valid_xattr()
380 else if (!strncmp(name, XATTR_SYSTEM_PREFIX, XATTR_SYSTEM_PREFIX_LEN)) in btrfs_is_valid_xattr()
382 else if (!strncmp(name, XATTR_TRUSTED_PREFIX, XATTR_TRUSTED_PREFIX_LEN)) in btrfs_is_valid_xattr()
384 else if (!strncmp(name, XATTR_USER_PREFIX, XATTR_USER_PREFIX_LEN)) in btrfs_is_valid_xattr()
386 else if (!strncmp(name, XATTR_BTRFS_PREFIX, XATTR_BTRFS_PREFIX_LEN)) in btrfs_is_valid_xattr()
410 if (!strncmp(name, XATTR_SYSTEM_PREFIX, XATTR_SYSTEM_PREFIX_LEN)) in btrfs_getxattr()
437 if (!strncmp(name, XATTR_SYSTEM_PREFIX, XATTR_SYSTEM_PREFIX_LEN)) in btrfs_setxattr()
444 if (!strncmp(name, XATTR_BTRFS_PREFIX, XATTR_BTRFS_PREFIX_LEN)) in btrfs_setxattr()
472 if (!strncmp(name, XATTR_SYSTEM_PREFIX, XATTR_SYSTEM_PREFIX_LEN)) in btrfs_removexattr()
479 if (!strncmp(name, XATTR_BTRFS_PREFIX, XATTR_BTRFS_PREFIX_LEN)) in btrfs_removexattr()
Dprops.c380 if (!strncmp("lzo", value, len)) in prop_compression_validate()
382 else if (!strncmp("zlib", value, len)) in prop_compression_validate()
402 if (!strncmp("lzo", value, len)) in prop_compression_apply()
404 else if (!strncmp("zlib", value, len)) in prop_compression_apply()
/linux-4.4.14/drivers/edac/
Dedac_stub.c39 if (!strncmp(str, "on", 2)) in edac_report_setup()
41 else if (!strncmp(str, "off", 3)) in edac_report_setup()
43 else if (!strncmp(str, "force", 5)) in edac_report_setup()
/linux-4.4.14/drivers/net/wireless/ath/ath5k/
Ddebug.c255 if (strncmp(buf, "disable", 7) == 0) { in write_file_beacon()
258 } else if (strncmp(buf, "enable", 6) == 0) { in write_file_beacon()
358 if (strncmp(buf, dbg_info[i].name, in write_file_debug()
462 if (strncmp(buf, "diversity", 9) == 0) { in write_file_antenna()
465 } else if (strncmp(buf, "fixed-a", 7) == 0) { in write_file_antenna()
468 } else if (strncmp(buf, "fixed-b", 7) == 0) { in write_file_antenna()
471 } else if (strncmp(buf, "clear", 5) == 0) { in write_file_antenna()
635 if (strncmp(buf, "clear", 5) == 0) { in write_file_frameerrors()
784 if (strncmp(buf, "sens-low", 8) == 0) { in write_file_ani()
786 } else if (strncmp(buf, "sens-high", 9) == 0) { in write_file_ani()
[all …]
/linux-4.4.14/arch/nios2/kernel/
Dprom.c76 if (strncmp(uname, "serial", 6) != 0) in early_init_dt_scan_serial()
88 if (strncmp(p, "altr,juart", 10) == 0) in early_init_dt_scan_serial()
96 if (strncmp(p, "altr,uart", 9) == 0) in early_init_dt_scan_serial()
/linux-4.4.14/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 …]
Dsocket_sysfs.c117 if (!strncmp(buf, "off", 3)) in pccard_store_card_pm_state()
120 if (!strncmp(buf, "on", 2)) in pccard_store_card_pm_state()
Dvrc4173_cardu.c541 if (strncmp(options, "cardu1:", 7) == 0) { in vrc4173_cardu_setup()
544 if (strncmp(options, "noprobe", 7) == 0) { in vrc4173_cardu_setup()
555 if (strncmp(options, "cardu2:", 7) == 0) { in vrc4173_cardu_setup()
557 if ((*options != '\0') && (strncmp(options, "noprobe", 7) == 0)) in vrc4173_cardu_setup()
/linux-4.4.14/scripts/
Dunifdef.c673 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-4.4.14/arch/powerpc/platforms/chrp/
Dpci.c225 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()
Dsetup.c109 if (model && !strncmp(model, "IBM,LongTrail", 13)) { in chrp_show_cpuinfo()
204 if (model && !strncmp(model, "IBM,LongTrail", 13)) { in sio_init()
311 if (machine && strncmp(machine, "Pegasos", 7) == 0) { in chrp_setup_arch()
313 } else if (machine && strncmp(machine, "IBM", 3) == 0) { in chrp_setup_arch()
315 } else if (machine && strncmp(machine, "MOT", 3) == 0) { in chrp_setup_arch()
317 } else if (machine && strncmp(machine, "TotalImpact,BRIQ-1", 18) == 0) { in chrp_setup_arch()
/linux-4.4.14/security/integrity/evm/
Devm_posix_acl.c21 && (strncmp(XATTR_NAME_POSIX_ACL_ACCESS, xattr, xattr_len) == 0)) in posix_xattr_acl()
24 && (strncmp(XATTR_NAME_POSIX_ACL_DEFAULT, xattr, xattr_len) == 0)) in posix_xattr_acl()
Devm_main.c60 if (strncmp(str, "fix", 3) == 0) in evm_set_fixmode()
200 && (strncmp(req_xattr_name, *xattrname, namelen) == 0)) { in evm_protected_xattr()
204 if (strncmp(req_xattr_name, in evm_protected_xattr()
/linux-4.4.14/fs/jfs/
Dxattr.c91 if (strncmp(name, XATTR_SYSTEM_PREFIX, XATTR_SYSTEM_PREFIX_LEN) && in is_known_namespace()
92 strncmp(name, XATTR_USER_PREFIX, XATTR_USER_PREFIX_LEN) && in is_known_namespace()
93 strncmp(name, XATTR_SECURITY_PREFIX, XATTR_SECURITY_PREFIX_LEN) && in is_known_namespace()
94 strncmp(name, XATTR_TRUSTED_PREFIX, XATTR_TRUSTED_PREFIX_LEN)) in is_known_namespace()
675 if (!strncmp(name, XATTR_OS2_PREFIX, XATTR_OS2_PREFIX_LEN)) { in can_set_xattr()
689 if (strncmp(name, XATTR_TRUSTED_PREFIX, XATTR_TRUSTED_PREFIX_LEN) && in can_set_xattr()
690 strncmp(name, XATTR_SECURITY_PREFIX, XATTR_SECURITY_PREFIX_LEN) && in can_set_xattr()
691 strncmp(name, XATTR_USER_PREFIX, XATTR_USER_PREFIX_LEN)) in can_set_xattr()
712 if (strncmp(name, XATTR_OS2_PREFIX, XATTR_OS2_PREFIX_LEN) == 0) { in __jfs_setxattr()
862 if (!strncmp(name, XATTR_SYSTEM_PREFIX, XATTR_SYSTEM_PREFIX_LEN)) in jfs_setxattr()
[all …]
/linux-4.4.14/arch/m68k/sun3/prom/
Dconsole.c94 if(strncmp(propb, "serial", sizeof("serial")))
141 strncmp("display", propb, sizeof("display")) == 0)
146 if(strncmp("serial", propb, sizeof("serial")))
/linux-4.4.14/arch/x86/mm/
Dsetup_nx.c22 if (!strncmp(str, "on", 2)) { in noexec_setup()
24 } else if (!strncmp(str, "off", 3)) { in noexec_setup()
/linux-4.4.14/init/
Ddo_mounts_md.c159 if (strncmp(devname, "/dev/", 5) == 0) in md_setup_drive()
267 if (!strncmp(str, "noautodetect", wlen)) in raid_setup()
269 if (!strncmp(str, "autodetect", wlen)) in raid_setup()
271 if (strncmp(str, "partitionable", wlen)==0) in raid_setup()
273 if (strncmp(str, "part", wlen)==0) in raid_setup()
Ddo_mounts.c218 if (strncmp(name, "PARTUUID=", 9) == 0) { in name_to_dev_t()
227 if (strncmp(name, "/dev/", 5) != 0) { in name_to_dev_t()
572 if (!strncmp(root_device_name, "mtd", 3) || in prepare_namespace()
573 !strncmp(root_device_name, "ubi", 3)) { in prepare_namespace()
578 if (strncmp(root_device_name, "/dev/", 5) == 0) in prepare_namespace()
/linux-4.4.14/drivers/nvdimm/
Dpfn_devs.c84 if (strncmp(buf, "pmem\n", n) == 0 in mode_store()
85 || strncmp(buf, "pmem", n) == 0) { in mode_store()
88 } else if (strncmp(buf, "ram\n", n) == 0 in mode_store()
89 || strncmp(buf, "ram", n) == 0) in mode_store()
91 else if (strncmp(buf, "none\n", n) == 0 in mode_store()
92 || strncmp(buf, "none", n) == 0) in mode_store()
De820.c58 if (strncmp(p->name, "Persistent Memory (legacy)", 26) != 0) in e820_pmem_probe()
/linux-4.4.14/arch/sparc/lib/
Dstrncmp_64.S11 ENTRY(strncmp)
30 ENDPROC(strncmp)
Dstrncmp_32.S9 ENTRY(strncmp)
118 ENDPROC(strncmp)
/linux-4.4.14/arch/arm/mach-omap2/
Dpm-debug.c83 strncmp(clkdm->name, "dpll", 4) == 0) in clkdm_dbg_show_counter()
99 strncmp(pwrdm->name, "dpll", 4) == 0) in pwrdm_dbg_show_counter()
129 strncmp(pwrdm->name, "dpll", 4) == 0) in pwrdm_dbg_show_timer()
216 if (strncmp(pwrdm->name, "dpll", 4) == 0) in pwrdms_setup()
Dopp.c71 if (!strncmp(opp_def->hwmod_name, "mpu", 3)) { in omap_init_opp_table()
/linux-4.4.14/net/batman-adv/
Dsysfs.c251 if ((strncmp(buff, "1", 2) == 0) || in batadv_store_bool_attr()
252 (strncmp(buff, "enable", 7) == 0) || in batadv_store_bool_attr()
253 (strncmp(buff, "enabled", 8) == 0)) in batadv_store_bool_attr()
256 if ((strncmp(buff, "0", 2) == 0) || in batadv_store_bool_attr()
257 (strncmp(buff, "disable", 8) == 0) || in batadv_store_bool_attr()
258 (strncmp(buff, "disabled", 9) == 0)) in batadv_store_bool_attr()
400 if (strncmp(buff, BATADV_GW_MODE_OFF_NAME, in batadv_store_gw_mode()
404 if (strncmp(buff, BATADV_GW_MODE_CLIENT_NAME, in batadv_store_gw_mode()
408 if (strncmp(buff, BATADV_GW_MODE_SERVER_NAME, in batadv_store_gw_mode()
794 if (strncmp(buff, "none", 4) == 0) in batadv_store_mesh_iface()
[all …]
/linux-4.4.14/drivers/net/wireless/iwlwifi/mvm/
Ddebugfs-vif.c139 if (!strncmp("keep_alive=", buf, 11)) { in iwl_dbgfs_pm_params_write()
143 } else if (!strncmp("skip_over_dtim=", buf, 15)) { in iwl_dbgfs_pm_params_write()
147 } else if (!strncmp("skip_dtim_periods=", buf, 18)) { in iwl_dbgfs_pm_params_write()
151 } else if (!strncmp("rx_data_timeout=", buf, 16)) { in iwl_dbgfs_pm_params_write()
155 } else if (!strncmp("tx_data_timeout=", buf, 16)) { in iwl_dbgfs_pm_params_write()
159 } else if (!strncmp("lprx=", buf, 5)) { in iwl_dbgfs_pm_params_write()
163 } else if (!strncmp("lprx_rssi_threshold=", buf, 20)) { in iwl_dbgfs_pm_params_write()
170 } else if (!strncmp("snooze_enable=", buf, 14)) { in iwl_dbgfs_pm_params_write()
174 } else if (!strncmp("uapsd_misbehaving=", buf, 18)) { in iwl_dbgfs_pm_params_write()
178 } else if (!strncmp("use_ps_poll=", buf, 12)) { in iwl_dbgfs_pm_params_write()
[all …]
/linux-4.4.14/drivers/misc/cxl/
Dsysfs.c98 if (!strncmp(buf, "none", 4)) in load_image_on_perst_store()
100 else if (!strncmp(buf, "user", 4)) { in load_image_on_perst_store()
103 } else if (!strncmp(buf, "factory", 7)) { in load_image_on_perst_store()
299 if (!strncmp(buf, "work_element_descriptor", 23)) in prefault_mode_store()
301 if (!strncmp(buf, "all", 3)) in prefault_mode_store()
303 if (!strncmp(buf, "none", 4)) in prefault_mode_store()
338 if (!strncmp(buf, "dedicated_process", 17)) in mode_store()
340 if (!strncmp(buf, "afu_directed", 12)) in mode_store()
342 if (!strncmp(buf, "none", 4)) in mode_store()
/linux-4.4.14/tools/perf/arch/powerpc/util/
Dsym-handling.c41 if (strlen(sym) >= 3 && !strncmp(sym, "SyS", 3)) in arch__choose_best_symbol()
43 if (strlen(sym) >= 10 && !strncmp(sym, "compat_SyS", 10)) in arch__choose_best_symbol()
/linux-4.4.14/drivers/staging/lustre/lustre/llite/
Dxattr.c69 if (!strncmp(name, XATTR_USER_PREFIX, in get_xattr_type()
73 if (!strncmp(name, XATTR_TRUSTED_PREFIX, in get_xattr_type()
77 if (!strncmp(name, XATTR_SECURITY_PREFIX, in get_xattr_type()
81 if (!strncmp(name, XATTR_LUSTRE_PREFIX, in get_xattr_type()
225 if ((strncmp(name, XATTR_TRUSTED_PREFIX, in ll_setxattr()
228 (strncmp(name, XATTR_LUSTRE_PREFIX, in ll_setxattr()
465 if ((strncmp(name, XATTR_TRUSTED_PREFIX, in ll_getxattr()
468 (strncmp(name, XATTR_LUSTRE_PREFIX, in ll_getxattr()
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmfmac/
Dfirmware.c122 if (strncmp(&nvp->data[nvp->entry], "RAW1", 4) == 0) in brcmf_nvram_handle_key()
126 if (strncmp(&nvp->data[nvp->entry], "devpath", 7) == 0) in brcmf_nvram_handle_key()
128 if (strncmp(&nvp->data[nvp->entry], "pcie/", 5) == 0) in brcmf_nvram_handle_key()
269 if (strncmp(&nvp->nvram[i], "devpath", 7) == 0 && in brcmf_fw_strip_multi_v1()
270 (!strncmp(&nvp->nvram[i + 8], pci_path, pci_len) || in brcmf_fw_strip_multi_v1()
271 !strncmp(&nvp->nvram[i + 8], pcie_path, pcie_len))) { in brcmf_fw_strip_multi_v1()
338 if (strncmp(&nvp->nvram[i], prefix, len) == 0) { in brcmf_fw_strip_multi_v2()
/linux-4.4.14/arch/x86/kernel/apic/
Dapic_numachip.c214 if ((strncmp(oem_id, "NUMASC", 6) != 0) || in numachip1_acpi_madt_oem_check()
215 (strncmp(oem_table_id, "NCONNECT", 8) != 0)) in numachip1_acpi_madt_oem_check()
225 if ((strncmp(oem_id, "NUMASC", 6) != 0) || in numachip2_acpi_madt_oem_check()
226 (strncmp(oem_table_id, "NCONECT2", 8) != 0)) in numachip2_acpi_madt_oem_check()
Dapic_flat_64.c224 if (!strncmp(oem_id, "IBM", 3) && !strncmp(oem_table_id, "EXA", 3)) { in physflat_acpi_madt_oem_check()
/linux-4.4.14/drivers/sfi/
Dsfi_core.c203 if (strncmp(th->sig, key->sig, SFI_SIGNATURE_SIZE) in sfi_table_check_key()
204 || (key->oem_id && strncmp(th->oem_id, in sfi_table_check_key()
206 || (key->oem_table_id && strncmp(th->oem_table_id, in sfi_table_check_key()
354 if (strncmp(syst_hdr->sig, SFI_SIG_SYST, in sfi_find_syst()
403 if (strncmp(SFI_SIG_SYST, tbl_attr->name, SFI_SIGNATURE_SIZE)) { in sfi_table_show()
/linux-4.4.14/arch/mips/fw/arc/
Dcmdline.c46 if (!strncmp(prom_argv(actr), used_arc[i][0], len)) { in move_firmware_args()
85 if (!strncmp(prom_argv(actr), ignored[i], len)) in prom_init_cmdline()
/linux-4.4.14/drivers/rtc/
Drtc-test.c91 if (strncmp(buf, "tick", 4) == 0 && rtc->pie_enabled) in test_irq_store()
93 else if (strncmp(buf, "alarm", 5) == 0) { in test_irq_store()
100 } else if (strncmp(buf, "update", 6) == 0 && rtc->uie_rtctimer.enabled) in test_irq_store()
/linux-4.4.14/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()
/linux-4.4.14/drivers/macintosh/
Dvia-pmu-led.c99 if (strncmp(model, "PowerBook", strlen("PowerBook")) != 0 && in via_pmu_led_init()
100 strncmp(model, "iBook", strlen("iBook")) != 0 && in via_pmu_led_init()
Dmacio_asic.c438 if (strncmp(np->name, "battery", 7) == 0) in macio_skip_device()
440 if (strncmp(np->name, "escc-legacy", 11) == 0) in macio_skip_device()
489 else if (strncmp(np->name, "media-bay", 9) == 0) in macio_pci_add_devices()
491 else if (strncmp(np->name, "escc", 4) == 0) in macio_pci_add_devices()
Dwindfarm_ad7417_sensor.c251 if (!strncmp(loc, "CPU A", 5)) in wf_ad7417_probe()
253 else if (!strncmp(loc, "CPU B", 5)) in wf_ad7417_probe()
/linux-4.4.14/drivers/gpu/vga/
Dvga_switcheroo.c605 if (strncmp(usercmd, "OFF", 3) == 0) { in vga_switcheroo_debugfs_write()
618 if (strncmp(usercmd, "ON", 2) == 0) { in vga_switcheroo_debugfs_write()
632 if (strncmp(usercmd, "DIGD", 4) == 0) { in vga_switcheroo_debugfs_write()
637 if (strncmp(usercmd, "DDIS", 4) == 0) { in vga_switcheroo_debugfs_write()
642 if (strncmp(usercmd, "IGD", 3) == 0) in vga_switcheroo_debugfs_write()
645 if (strncmp(usercmd, "DIS", 3) == 0) in vga_switcheroo_debugfs_write()
648 if (strncmp(usercmd, "MIGD", 4) == 0) { in vga_switcheroo_debugfs_write()
652 if (strncmp(usercmd, "MDIS", 4) == 0) { in vga_switcheroo_debugfs_write()
Dvgaarb.c100 if (strncmp(buf, "none", 4) == 0) { in vga_str_to_iostate()
106 if (strncmp(buf, "io+mem", 6) == 0) in vga_str_to_iostate()
108 else if (strncmp(buf, "io", 2) == 0) in vga_str_to_iostate()
110 else if (strncmp(buf, "mem", 3) == 0) in vga_str_to_iostate()
937 if (strncmp(curr_pos, "lock ", 5) == 0) { in vga_arb_write()
973 } else if (strncmp(curr_pos, "unlock ", 7) == 0) { in vga_arb_write()
979 if (strncmp(curr_pos, "all", 3) == 0) in vga_arb_write()
1029 } else if (strncmp(curr_pos, "trylock ", 8) == 0) { in vga_arb_write()
1070 } else if (strncmp(curr_pos, "target ", 7) == 0) { in vga_arb_write()
1078 if (!strncmp(curr_pos, "default", 7)) in vga_arb_write()
[all …]
/linux-4.4.14/drivers/video/fbdev/via/
Dviafbdev.c1077 if (!strncmp(opt_str, "DVP0", 4)) in parse_port()
1079 else if (!strncmp(opt_str, "DVP1", 4)) in parse_port()
1081 else if (!strncmp(opt_str, "DFP_HIGHLOW", 11)) in parse_port()
1083 else if (!strncmp(opt_str, "DFP_HIGH", 8)) in parse_port()
1085 else if (!strncmp(opt_str, "DFP_LOW", 7)) in parse_port()
1979 if (!strncmp(this_opt, "viafb_mode1=", 12)) { in viafb_setup()
1981 } else if (!strncmp(this_opt, "viafb_mode=", 11)) { in viafb_setup()
1983 } else if (!strncmp(this_opt, "viafb_bpp1=", 11)) { in viafb_setup()
1986 } else if (!strncmp(this_opt, "viafb_bpp=", 10)) { in viafb_setup()
1989 } else if (!strncmp(this_opt, "viafb_refresh1=", 15)) { in viafb_setup()
[all …]
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/
Dixgbe_debugfs.c102 if (strncmp(ixgbe_dbg_reg_ops_buf, "write", 5) == 0) { in ixgbe_dbg_reg_ops_write()
113 } else if (strncmp(ixgbe_dbg_reg_ops_buf, "read", 4) == 0) { in ixgbe_dbg_reg_ops_write()
207 if (strncmp(ixgbe_dbg_netdev_ops_buf, "tx_timeout", 10) == 0) { in ixgbe_dbg_netdev_ops_write()
/linux-4.4.14/drivers/remoteproc/
Dremoteproc_debugfs.c170 if (!strncmp(buf, "enabled", count)) { in rproc_recovery_write()
175 } else if (!strncmp(buf, "disabled", count)) { in rproc_recovery_write()
177 } else if (!strncmp(buf, "recover", count)) { in rproc_recovery_write()
/linux-4.4.14/tools/perf/util/
Dcallchain.c35 if (!strncmp(value, "graph", strlen(value))) { in parse_callchain_mode()
39 if (!strncmp(value, "flat", strlen(value))) { in parse_callchain_mode()
43 if (!strncmp(value, "fractal", strlen(value))) { in parse_callchain_mode()
52 if (!strncmp(value, "caller", strlen(value))) { in parse_callchain_order()
57 if (!strncmp(value, "callee", strlen(value))) { in parse_callchain_order()
67 if (!strncmp(value, "function", strlen(value))) { in parse_callchain_sort_key()
71 if (!strncmp(value, "address", strlen(value))) { in parse_callchain_sort_key()
75 if (!strncmp(value, "branch", strlen(value))) { in parse_callchain_sort_key()
97 if (!strncmp(tok, "none", strlen(tok))) { in __parse_callchain_report_opt()
Dmap.c35 return !strncmp(filename, "[stack", 6) || in is_no_dso_memory()
36 !strncmp(filename, "/SYSV",5) || in is_no_dso_memory()
42 return !strncmp(filename, "/data/app-lib", 13) || in is_android_lib()
43 !strncmp(filename, "/system/lib", 11); in is_android_lib()
63 if (!strncmp(filename, "/data/app-lib", 13)) { in replace_android_lib()
87 if (!strncmp(filename, "/system/lib/", 11)) { in replace_android_lib()
105 arch = !strncmp(app_abi, "arm", 3) ? "arm" : in replace_android_lib()
106 !strncmp(app_abi, "mips", 4) ? "mips" : in replace_android_lib()
107 !strncmp(app_abi, "x86", 3) ? "x86" : NULL; in replace_android_lib()
Dfind-vdso-map.c23 if (!strncmp(&line[m], VDSO__MAP_NAME, in find_vdso_map()
Dutil.c495 if (!strncmp(name, "fp", sizeof("fp"))) { in parse_callchain_record()
506 } else if (!strncmp(name, "dwarf", sizeof("dwarf"))) { in parse_callchain_record()
521 } else if (!strncmp(name, "lbr", sizeof("lbr"))) { in parse_callchain_record()
662 ret = strncmp(name, data, len); in find_process()
/linux-4.4.14/drivers/leds/
Dleds-max8997.c212 if (!strncmp(buf, "FLASH_PIN_CONTROL", 17)) in max8997_led_store_mode()
214 else if (!strncmp(buf, "MOVIE_PIN_CONTROL", 17)) in max8997_led_store_mode()
216 else if (!strncmp(buf, "FLASH", 5)) in max8997_led_store_mode()
218 else if (!strncmp(buf, "MOVIE", 5)) in max8997_led_store_mode()
Dleds-lp5521.c411 if (!strncmp(buf, "run", 3)) { in store_engine_mode()
414 } else if (!strncmp(buf, "load", 4)) { in store_engine_mode()
418 } else if (!strncmp(buf, "disabled", 8)) { in store_engine_mode()
/linux-4.4.14/drivers/tty/serial/
Dkgdboc.c100 if (strncmp(*cptr, "kbd", 3) == 0 || in kgdboc_register_kbd()
101 strncmp(*cptr, "kdb", 3) == 0) { in kgdboc_register_kbd()
173 if (strncmp(cptr, "kms,", 4) == 0) { in configure_kgdboc()
/linux-4.4.14/drivers/s390/block/
Ddasd_devmap.c137 if (strncmp(DASD_IPLDEV, *str, strlen(DASD_IPLDEV)) == 0) { in dasd_busid()
206 if (len == 2 && !strncmp(str, "ro", 2)) in dasd_feature_list()
208 else if (len == 4 && !strncmp(str, "diag", 4)) in dasd_feature_list()
210 else if (len == 3 && !strncmp(str, "raw", 3)) in dasd_feature_list()
212 else if (len == 6 && !strncmp(str, "erplog", 6)) in dasd_feature_list()
214 else if (len == 8 && !strncmp(str, "failfast", 8)) in dasd_feature_list()
258 if (strncmp("autodetect", parsestring, length) == 0) { in dasd_parse_keyword()
263 if (strncmp("probeonly", parsestring, length) == 0) { in dasd_parse_keyword()
268 if (strncmp("nopav", parsestring, length) == 0) { in dasd_parse_keyword()
277 if (strncmp("nofcx", parsestring, length) == 0) { in dasd_parse_keyword()
[all …]
/linux-4.4.14/drivers/video/fbdev/
Defifb.c103 if (!strncmp(this_opt, "base:", 5)) in efifb_setup()
105 else if (!strncmp(this_opt, "stride:", 7)) in efifb_setup()
107 else if (!strncmp(this_opt, "height:", 7)) in efifb_setup()
109 else if (!strncmp(this_opt, "width:", 6)) in efifb_setup()
Dpxafb.c1922 if (!strncmp(this_opt, "vmem:", 5)) { in parse_opt()
1924 } else if (!strncmp(this_opt, "mode:", 5)) { in parse_opt()
1926 } else if (!strncmp(this_opt, "pixclock:", 9)) { in parse_opt()
1929 } else if (!strncmp(this_opt, "left:", 5)) { in parse_opt()
1932 } else if (!strncmp(this_opt, "right:", 6)) { in parse_opt()
1935 } else if (!strncmp(this_opt, "upper:", 6)) { in parse_opt()
1938 } else if (!strncmp(this_opt, "lower:", 6)) { in parse_opt()
1941 } else if (!strncmp(this_opt, "hsynclen:", 9)) { in parse_opt()
1944 } else if (!strncmp(this_opt, "vsynclen:", 9)) { in parse_opt()
1947 } else if (!strncmp(this_opt, "hsync:", 6)) { in parse_opt()
[all …]
Doffb.c328 if (dp && !strncmp(name, "ATY,Rage128", 11)) { in offb_init_palette_hacks()
332 } else if (dp && (!strncmp(name, "ATY,RageM3pA", 12) in offb_init_palette_hacks()
333 || !strncmp(name, "ATY,RageM3p12A", 14))) { in offb_init_palette_hacks()
337 } else if (dp && !strncmp(name, "ATY,RageM3pB", 12)) { in offb_init_palette_hacks()
341 } else if (dp && !strncmp(name, "ATY,Rage6", 9)) { in offb_init_palette_hacks()
345 } else if (!strncmp(name, "ATY,", 4)) { in offb_init_palette_hacks()
356 } else if (dp && !strncmp(name, "vga,Display-", 12)) { in offb_init_palette_hacks()
Dfm2fb.c304 if (!strncmp(this_opt, "pal", 3)) in fm2fb_setup()
306 else if (!strncmp(this_opt, "ntsc", 4)) in fm2fb_setup()
Dacornfb.c816 if (strncmp(opt, "tv", 2) == 0) { in acornfb_parse_montype()
819 } else if (strncmp(opt, "multi", 5) == 0) { in acornfb_parse_montype()
822 } else if (strncmp(opt, "hires", 5) == 0) { in acornfb_parse_montype()
825 } else if (strncmp(opt, "vga", 3) == 0) { in acornfb_parse_montype()
828 } else if (strncmp(opt, "svga", 4) == 0) { in acornfb_parse_montype()
831 } else if (strncmp(opt, "auto", 4) == 0) { in acornfb_parse_montype()
904 if (strncmp(opt, optp->name, optlen) == 0 && in acornfb_setup()
Dvesafb.c223 else if (! strncmp(this_opt, "mtrr:", 5)) in vesafb_setup()
227 else if (! strncmp(this_opt, "vtotal:", 7)) in vesafb_setup()
229 else if (! strncmp(this_opt, "vremap:", 7)) in vesafb_setup()
Dgrvga.c369 if (!strncmp(this_opt, "custom", 6)) { in grvga_probe()
375 } else if (!strncmp(this_opt, "addr", 4)) in grvga_probe()
377 else if (!strncmp(this_opt, "size", 4)) in grvga_probe()
/linux-4.4.14/drivers/misc/
Dkgdbts.c411 if (!strncmp(put_str+1, arg, 2)) { in got_break()
412 if (!strncmp(arg, "T0", 2)) in got_break()
435 if (strncmp(put_str, "$OK", 3)) in emul_reset()
500 if (strncmp(put_str, "$OK", 3)) { in emul_sstep_put()
506 if (strncmp(put_str, "$T0", 3)) { in emul_sstep_put()
515 if (strncmp(put_str, "$OK", 3)) { in emul_sstep_put()
533 if (strncmp(put_str+1, arg, 2)) in final_ack_set()
Dfsa9480.c157 if (!strncmp(buf, "VAUDIO", 6)) { in fsa9480_set_switch()
160 } else if (!strncmp(buf, "UART", 4)) { in fsa9480_set_switch()
163 } else if (!strncmp(buf, "AUDIO", 5)) { in fsa9480_set_switch()
166 } else if (!strncmp(buf, "DHOST", 5)) { in fsa9480_set_switch()
169 } else if (!strncmp(buf, "AUTO", 4)) { in fsa9480_set_switch()
/linux-4.4.14/drivers/video/fbdev/matrox/
Dmatroxfb_base.c2330 if (!strncmp(this_opt, "dev:", 4)) in matroxfb_setup()
2332 else if (!strncmp(this_opt, "depth:", 6)) { in matroxfb_setup()
2344 } else if (!strncmp(this_opt, "xres:", 5)) in matroxfb_setup()
2346 else if (!strncmp(this_opt, "yres:", 5)) in matroxfb_setup()
2348 else if (!strncmp(this_opt, "vslen:", 6)) in matroxfb_setup()
2350 else if (!strncmp(this_opt, "hslen:", 6)) in matroxfb_setup()
2352 else if (!strncmp(this_opt, "left:", 5)) in matroxfb_setup()
2354 else if (!strncmp(this_opt, "right:", 6)) in matroxfb_setup()
2356 else if (!strncmp(this_opt, "upper:", 6)) in matroxfb_setup()
2358 else if (!strncmp(this_opt, "lower:", 6)) in matroxfb_setup()
[all …]
/linux-4.4.14/block/
Dcmdline-parser.c61 if (!strncmp(partdef, "ro", 2)) { in parse_subpart()
66 if (!strncmp(partdef, "lk", 2)) { in parse_subpart()
214 while (parts && strncmp(bdev, parts->name, sizeof(parts->name))) in cmdline_parts_find()
/linux-4.4.14/scripts/mod/
Dmodpost.c266 #define strstarts(str, prefix) (strncmp(str, prefix, strlen(prefix)) == 0)
585 if (strncmp(symname, "_restgpr_", sizeof("_restgpr_") - 1) == 0 || in ignore_undef_symbol()
586 strncmp(symname, "_savegpr_", sizeof("_savegpr_") - 1) == 0 || in ignore_undef_symbol()
587 strncmp(symname, "_rest32gpr_", sizeof("_rest32gpr_") - 1) == 0 || in ignore_undef_symbol()
588 strncmp(symname, "_save32gpr_", sizeof("_save32gpr_") - 1) == 0 || in ignore_undef_symbol()
589 strncmp(symname, "_restvr_", sizeof("_restvr_") - 1) == 0 || in ignore_undef_symbol()
590 strncmp(symname, "_savevr_", sizeof("_savevr_") - 1) == 0) in ignore_undef_symbol()
594 if (strncmp(symname, "_restgpr0_", sizeof("_restgpr0_") - 1) == 0 || in ignore_undef_symbol()
595 strncmp(symname, "_savegpr0_", sizeof("_savegpr0_") - 1) == 0 || in ignore_undef_symbol()
596 strncmp(symname, "_restvr_", sizeof("_restvr_") - 1) == 0 || in ignore_undef_symbol()
[all …]
/linux-4.4.14/arch/x86/lib/
Dstring_32.c117 int strncmp(const char *cs, const char *ct, size_t count) in strncmp() function
138 EXPORT_SYMBOL(strncmp);
/linux-4.4.14/drivers/hid/
Dhid-sensor-custom.c306 if (!strncmp(name, "value", strlen("value"))) { in show_value()
362 } else if (!strncmp(name, "units", strlen("units"))) in show_value()
364 else if (!strncmp(name, "unit-expo", strlen("unit-expo"))) in show_value()
366 else if (!strncmp(name, "size", strlen("size"))) in show_value()
368 else if (!strncmp(name, "minimum", strlen("minimum"))) in show_value()
371 else if (!strncmp(name, "maximum", strlen("maximum"))) in show_value()
374 else if (!strncmp(name, "name", strlen("name"))) { in show_value()
407 if (!strncmp(name, "value", strlen("value"))) { in store_value()
/linux-4.4.14/fs/ceph/
Dxattr.c33 return !strncmp(name, XATTR_CEPH_PREFIX, XATTR_CEPH_PREFIX_LEN) || in ceph_is_valid_xattr()
34 !strncmp(name, XATTR_SECURITY_PREFIX, in ceph_is_valid_xattr()
36 !strncmp(name, XATTR_SYSTEM_PREFIX, XATTR_SYSTEM_PREFIX_LEN) || in ceph_is_valid_xattr()
37 !strncmp(name, XATTR_TRUSTED_PREFIX, XATTR_TRUSTED_PREFIX_LEN) || in ceph_is_valid_xattr()
38 !strncmp(name, XATTR_USER_PREFIX, XATTR_USER_PREFIX_LEN); in ceph_is_valid_xattr()
354 c = strncmp(name, xattr->name, min(name_len, xattr->name_len)); in __set_xattr()
447 c = strncmp(name, xattr->name, xattr->name_len); in __get_xattr()
776 if (!strncmp(name, XATTR_SYSTEM_PREFIX, XATTR_SYSTEM_PREFIX_LEN)) in ceph_getxattr()
935 if (!strncmp(name, XATTR_CEPH_PREFIX, XATTR_CEPH_PREFIX_LEN)) in __ceph_setxattr()
1033 if (!strncmp(name, XATTR_SYSTEM_PREFIX, XATTR_SYSTEM_PREFIX_LEN)) in ceph_setxattr()
[all …]
/linux-4.4.14/tools/usb/usbip/src/
Dusbip_bind.c101 if (!strncmp(bDevClass, "09", strlen(bDevClass))) { in unbind_other()
113 if (!strncmp(USBIP_HOST_DRV_NAME, driver, in unbind_other()
/linux-4.4.14/drivers/usb/usbip/
Dstub_main.c62 if (!strncmp(busid_table[i].name, busid, BUSID_SIZE)) { in get_busid_idx()
166 if (!strncmp(buf, "add ", 4)) { in store_match_busid()
174 if (!strncmp(buf, "del ", 4)) { in store_match_busid()
/linux-4.4.14/drivers/pci/pcie/
Dportdrv_pci.c45 if (!strncmp(str, "compat", 6)) { in pcie_port_setup()
47 } else if (!strncmp(str, "native", 6)) { in pcie_port_setup()
50 } else if (!strncmp(str, "auto", 4)) { in pcie_port_setup()
/linux-4.4.14/drivers/staging/sm750fb/
Dsm750.c955 if (!strncmp(opt, "swap", strlen("swap"))) in sm750fb_setup()
957 else if (!strncmp(opt, "nocrt", strlen("nocrt"))) in sm750fb_setup()
959 else if (!strncmp(opt, "36bit", strlen("36bit"))) in sm750fb_setup()
961 else if (!strncmp(opt, "18bit", strlen("18bit"))) in sm750fb_setup()
963 else if (!strncmp(opt, "24bit", strlen("24bit"))) in sm750fb_setup()
965 else if (!strncmp(opt, "nohwc0", strlen("nohwc0"))) in sm750fb_setup()
967 else if (!strncmp(opt, "nohwc1", strlen("nohwc1"))) in sm750fb_setup()
969 else if (!strncmp(opt, "nohwc", strlen("nohwc"))) in sm750fb_setup()
1200 if (!strncmp(opt, "noaccel", strlen("noaccel"))) in lynxfb_setup()
1202 else if (!strncmp(opt, "nomtrr", strlen("nomtrr"))) in lynxfb_setup()
[all …]
/linux-4.4.14/arch/s390/kernel/
Dsetup.c147 if (strncmp(str, "hwc", 4) == 0 || strncmp(str, "sclp", 5) == 0) in conmode_setup()
151 if (strncmp(str, "3215", 5) == 0) in conmode_setup()
155 if (strncmp(str, "3270", 5) == 0) in conmode_setup()
190 if (strncmp(ptr + 8, "3270", 4) == 0) { in conmode_default()
198 } else if (strncmp(ptr + 8, "3215", 4) == 0) { in conmode_default()
Dvdso.c59 if (strncmp(s, "on", 3) == 0) in vdso_setup()
61 else if (strncmp(s, "off", 4) == 0) in vdso_setup()
/linux-4.4.14/arch/powerpc/platforms/pseries/
Ddlpar.c565 if (!strncmp(arg, "memory", 6)) { in dlpar_store()
574 if (!strncmp(arg, "add", 3)) { in dlpar_store()
577 } else if (!strncmp(arg, "remove", 6)) { in dlpar_store()
586 if (!strncmp(arg, "index", 5)) { in dlpar_store()
598 } else if (!strncmp(arg, "count", 5)) { in dlpar_store()
Dfirmware.c90 if (strncmp(name, s, size - 1)) in fw_hypertas_feature_init()
/linux-4.4.14/include/linux/
Dstring.h44 extern int strncmp(const char *,const char *,__kernel_size_t);
148 return strncmp(str, prefix, strlen(prefix)) == 0; in strstarts()
/linux-4.4.14/arch/mips/sni/
Dsetup.c68 if (strncmp(cdev, "tty", 3) == 0) { in sni_console_setup()
83 if (strncmp(cdev, "tty552", 6) == 0) in sni_console_setup()
/linux-4.4.14/arch/blackfin/kernel/
Dearly_printk.c127 if (!strncmp(buf, "serial,uart", 11)) { in setup_early_printk()
135 if (!strncmp(buf, "jtag", 4)) { in setup_early_printk()
Dbfin_ksyms.c46 EXPORT_SYMBOL(strncmp);
/linux-4.4.14/drivers/pnp/pnpbios/
Dcore.c415 if (strncmp(str, "off", 3) == 0) in pnpbios_setup()
417 if (strncmp(str, "on", 2) == 0) in pnpbios_setup()
419 invert = (strncmp(str, "no-", 3) == 0); in pnpbios_setup()
422 if (strncmp(str, "curr", 4) == 0) in pnpbios_setup()
/linux-4.4.14/drivers/xen/xenbus/
Dxenbus_probe_frontend.c62 if (!strncmp(type, "console", 7) && !strncmp(name, "0", 1)) { in xenbus_probe_frontend()
206 if ((strncmp(xendev->nodename, "device/vkbd", 11) == 0)) in is_device_connecting()
209 if ((strncmp(xendev->nodename, "device/vfb", 10) == 0)) in is_device_connecting()
/linux-4.4.14/fs/ocfs2/
Dstack_user.c203 !strncmp(c->oc_conn->cc_name, name, len)) in ocfs2_connection_find()
275 if (strncmp(kbuf, OCFS2_CONTROL_PROTO, OCFS2_CONTROL_PROTO_LEN)) in ocfs2_control_validate_protocol()
379 if (strncmp(msg->tag, OCFS2_CONTROL_MESSAGE_SETNODE_OP, in ocfs2_control_do_setnode_msg()
412 if (strncmp(msg->tag, OCFS2_CONTROL_MESSAGE_SETVERSION_OP, in ocfs2_control_do_setversion_msg()
459 if (strncmp(msg->tag, OCFS2_CONTROL_MESSAGE_DOWN_OP, in ocfs2_control_do_down_msg()
498 !strncmp(msg.tag, OCFS2_CONTROL_MESSAGE_SETNODE_OP, in ocfs2_control_message()
502 !strncmp(msg.tag, OCFS2_CONTROL_MESSAGE_SETVERSION_OP, in ocfs2_control_message()
506 !strncmp(msg.tag, OCFS2_CONTROL_MESSAGE_DOWN_OP, in ocfs2_control_message()
/linux-4.4.14/drivers/ide/
Dide-sysfs.c98 if (strncmp(buf, "1", n)) in store_delete_devices()
114 if (strncmp(buf, "1", n)) in store_scan()
Dide-pio-blacklist.c91 if (strncmp(p->name, model, strlen(p->name)) == 0) in ide_scan_pio_blacklist()
/linux-4.4.14/drivers/base/power/
Dsysfs.c118 if (len == sizeof ctrl_auto - 1 && strncmp(buf, ctrl_auto, len) == 0) in control_store()
120 else if (len == sizeof ctrl_on - 1 && strncmp(buf, ctrl_on, len) == 0) in control_store()
359 && strncmp(buf, _enabled, sizeof _enabled - 1) == 0) in wake_store()
362 && strncmp(buf, _disabled, sizeof _disabled - 1) == 0) in wake_store()
579 if (len == sizeof _enabled - 1 && strncmp(buf, _enabled, len) == 0) in async_store()
582 strncmp(buf, _disabled, len) == 0) in async_store()
/linux-4.4.14/drivers/target/iscsi/
Discsi_target_nego.c283 if (!strncmp(param->name, SESSIONTYPE, 11)) { in iscsi_target_check_first_request()
291 if (!strncmp(param->value, DISCOVERY, 9)) in iscsi_target_check_first_request()
295 if (!strncmp(param->name, INITIATORNAME, 13)) { in iscsi_target_check_first_request()
827 !strncmp(param->value, NONE, 4)) { in iscsi_target_handle_csg_zero()
840 if (strncmp(param->value, NONE, 4) && !login->auth_complete) in iscsi_target_handle_csg_zero()
1052 if (!strncmp(key, "InitiatorName", 13)) in iscsi_target_locate_portal()
1054 else if (!strncmp(key, "SessionType", 11)) in iscsi_target_locate_portal()
1056 else if (!strncmp(key, "TargetName", 10)) in iscsi_target_locate_portal()
1094 sessiontype = strncmp(s_buf, DISCOVERY, 9); in iscsi_target_locate_portal()
/linux-4.4.14/tools/perf/
Dbuiltin-mem.c305 if (!argc || !(strncmp(argv[0], "rec", 3) || mem.operation)) in cmd_mem()
315 if (!strncmp(argv[0], "rec", 3)) in cmd_mem()
317 else if (!strncmp(argv[0], "rep", 3)) in cmd_mem()
Dbuiltin-kvm.c1452 if (!strncmp(argv[1], "rec", 3)) in kvm_cmd_stat()
1455 if (!strncmp(argv[1], "rep", 3)) in kvm_cmd_stat()
1459 if (!strncmp(argv[1], "live", 4)) in kvm_cmd_stat()
1573 if (!strncmp(argv[0], "rec", 3)) in cmd_kvm()
1575 else if (!strncmp(argv[0], "rep", 3)) in cmd_kvm()
1577 else if (!strncmp(argv[0], "diff", 4)) in cmd_kvm()
1579 else if (!strncmp(argv[0], "top", 3)) in cmd_kvm()
1581 else if (!strncmp(argv[0], "buildid-list", 12)) in cmd_kvm()
1584 else if (!strncmp(argv[0], "stat", 4)) in cmd_kvm()
/linux-4.4.14/arch/x86/kernel/cpu/mtrr/
Dif.c126 if (!strncmp(line, "disable=", 8)) { in mtrr_write()
134 if (strncmp(line, "base=", 5)) in mtrr_write()
140 if (strncmp(ptr, "size=", 5)) in mtrr_write()
148 if (strncmp(ptr, "type=", 5)) in mtrr_write()
/linux-4.4.14/arch/alpha/kernel/
Dsetup.c542 alpha_using_srm = strncmp((const char *)hwrpb->ssn, "MILO", 4) != 0; in setup_arch()
574 if (strncmp(p, "alpha_mv=", 9) == 0) { in setup_arch()
578 if (strncmp(p, "cycle=", 6) == 0) { in setup_arch()
582 if (strncmp(p, "mem=", 4) == 0) { in setup_arch()
586 if (strncmp(p, "srmcons", 7) == 0) { in setup_arch()
590 if (strncmp(p, "console=srm", 11) == 0) { in setup_arch()
594 if (strncmp(p, "gartsize=", 9) == 0) { in setup_arch()
600 if (strncmp(p, "verbose_mcheck=", 15) == 0) { in setup_arch()
/linux-4.4.14/drivers/video/fbdev/i810/
Di810_main.c1968 if (!strncmp(this_opt, "mtrr", 4)) in i810fb_setup()
1970 else if (!strncmp(this_opt, "accel", 5)) in i810fb_setup()
1972 else if (!strncmp(this_opt, "extvga", 6)) in i810fb_setup()
1974 else if (!strncmp(this_opt, "sync", 4)) in i810fb_setup()
1976 else if (!strncmp(this_opt, "vram:", 5)) in i810fb_setup()
1978 else if (!strncmp(this_opt, "voffset:", 8)) in i810fb_setup()
1980 else if (!strncmp(this_opt, "xres:", 5)) in i810fb_setup()
1982 else if (!strncmp(this_opt, "yres:", 5)) in i810fb_setup()
1984 else if (!strncmp(this_opt, "vyres:", 6)) in i810fb_setup()
1986 else if (!strncmp(this_opt, "bpp:", 4)) in i810fb_setup()
[all …]
/linux-4.4.14/tools/net/
Dbpf_asm.c35 if (!strncmp("-c", argv[i], 2)) { in main()
/linux-4.4.14/drivers/sn/
Dioc3.c298 if(!strncmp(part, "060-0035-", 9)) in read_nic()
300 if(!strncmp(part, "060-0038-", 9)) in read_nic()
585 if(!strncmp(idd->nic_part, "030-0891-", 9)) in ioc3_class()
587 if(!strncmp(idd->nic_part, "030-1155-", 9)) in ioc3_class()
589 if(!strncmp(idd->nic_part, "030-1657-", 9)) in ioc3_class()
591 if(!strncmp(idd->nic_part, "030-1664-", 9)) in ioc3_class()
/linux-4.4.14/arch/powerpc/include/asm/
Dstring.h22 extern int strncmp(const char *, const char *, __kernel_size_t);
/linux-4.4.14/arch/x86/platform/intel-mid/
Dsfi.c223 if (!strncmp(name, pentry->pin_name, SFI_NAME_LEN)) in get_gpio_by_name()
421 !strncmp(dev->name, name, SFI_NAME_LEN)) { in get_device_id()
452 if (!strncmp(pentry->name, "r69001-ts-i2c", 13)) in sfi_parse_devs()
455 else if (!strncmp(pentry->name, in sfi_parse_devs()
/linux-4.4.14/drivers/video/fbdev/nvidia/
Dnvidia.c1458 if (!strncmp(this_opt, "forceCRTC", 9)) { in nvidiafb_setup()
1467 } else if (!strncmp(this_opt, "flatpanel", 9)) { in nvidiafb_setup()
1469 } else if (!strncmp(this_opt, "hwcur", 5)) { in nvidiafb_setup()
1471 } else if (!strncmp(this_opt, "noaccel", 6)) { in nvidiafb_setup()
1473 } else if (!strncmp(this_opt, "noscale", 7)) { in nvidiafb_setup()
1475 } else if (!strncmp(this_opt, "reverse_i2c", 11)) { in nvidiafb_setup()
1477 } else if (!strncmp(this_opt, "paneltweak:", 11)) { in nvidiafb_setup()
1479 } else if (!strncmp(this_opt, "vram:", 5)) { in nvidiafb_setup()
1481 } else if (!strncmp(this_opt, "backlight:", 10)) { in nvidiafb_setup()
1483 } else if (!strncmp(this_opt, "nomtrr", 6)) { in nvidiafb_setup()
[all …]
/linux-4.4.14/fs/hfsplus/
Dxattr.c32 return strncmp(name, HFSPLUS_XATTR_FINDER_INFO_NAME, in strcmp_xattr_finder_info()
41 return strncmp(name, HFSPLUS_XATTR_ACL_NAME, in strcmp_xattr_acl()
49 if (strncmp(name, XATTR_SYSTEM_PREFIX, XATTR_SYSTEM_PREFIX_LEN) && in is_known_namespace()
50 strncmp(name, XATTR_USER_PREFIX, XATTR_USER_PREFIX_LEN) && in is_known_namespace()
51 strncmp(name, XATTR_SECURITY_PREFIX, XATTR_SECURITY_PREFIX_LEN) && in is_known_namespace()
52 strncmp(name, XATTR_TRUSTED_PREFIX, XATTR_TRUSTED_PREFIX_LEN)) in is_known_namespace()
614 return strncmp(xattr_name, XATTR_TRUSTED_PREFIX, in can_list()
/linux-4.4.14/drivers/input/serio/
Dserio.c408 if (!strncmp(buf, "none", count)) { in drvctl_store()
410 } else if (!strncmp(buf, "reconnect", count)) { in drvctl_store()
412 } else if (!strncmp(buf, "rescan", count)) { in drvctl_store()
441 if (!strncmp(buf, "manual", count)) { in serio_set_bind_mode()
443 } else if (!strncmp(buf, "auto", count)) { in serio_set_bind_mode()
770 if (!strncmp(buf, "manual", count)) { in bind_mode_store()
772 } else if (!strncmp(buf, "auto", count)) { in bind_mode_store()
/linux-4.4.14/fs/
Dxattr.c47 if (!strncmp(name, XATTR_SECURITY_PREFIX, XATTR_SECURITY_PREFIX_LEN) || in xattr_permission()
48 !strncmp(name, XATTR_SYSTEM_PREFIX, XATTR_SYSTEM_PREFIX_LEN)) in xattr_permission()
54 if (!strncmp(name, XATTR_TRUSTED_PREFIX, XATTR_TRUSTED_PREFIX_LEN)) { in xattr_permission()
65 if (!strncmp(name, XATTR_USER_PREFIX, XATTR_USER_PREFIX_LEN)) { in xattr_permission()
97 int issec = !strncmp(name, XATTR_SECURITY_PREFIX, in __vfs_setxattr_noperm()
244 if (!strncmp(name, XATTR_SECURITY_PREFIX, in vfs_getxattr()
949 return !strncmp(name, XATTR_TRUSTED_PREFIX, XATTR_TRUSTED_PREFIX_LEN); in xattr_is_trusted()
/linux-4.4.14/samples/bpf/
Dbpf_load.c49 bool is_socket = strncmp(event, "socket", 6) == 0; in load_and_attach()
50 bool is_kprobe = strncmp(event, "kprobe/", 7) == 0; in load_and_attach()
51 bool is_kretprobe = strncmp(event, "kretprobe/", 10) == 0; in load_and_attach()
/linux-4.4.14/drivers/acpi/
Dblacklist.c85 if (strncmp(acpi_blacklist[i].oem_id, table_header.oem_id, 6)) { in acpi_blacklisted()
90 if (strncmp in acpi_blacklisted()
/linux-4.4.14/arch/blackfin/lib/
DMakefile9 strcmp.o strcpy.o strncmp.o strncpy.o \
/linux-4.4.14/drivers/firmware/efi/libstub/
Dstring.c42 int strncmp(const char *cs, const char *ct, size_t count) in strncmp() function
/linux-4.4.14/arch/powerpc/lib/
Dppc_ksyms.c17 EXPORT_SYMBOL(strncmp);
/linux-4.4.14/arch/mips/pnx833x/common/
Dprom.c54 if (strncmp(envname, *env, i) == 0 && *(*env+i) == '=') in prom_getenv()
/linux-4.4.14/security/integrity/ima/
Dima_appraise.c24 if (strncmp(str, "off", 3) == 0) in default_appraise_setup()
26 else if (strncmp(str, "log", 3) == 0) in default_appraise_setup()
28 else if (strncmp(str, "fix", 3) == 0) in default_appraise_setup()
Dima_main.c51 if (strncmp(str, "sha1", 4) == 0) in hash_setup()
53 else if (strncmp(str, "md5", 3) == 0) in hash_setup()
/linux-4.4.14/block/partitions/
Dibm.c326 if (!strncmp(type, "VOL1", 4)) { in ibm_partition()
329 } else if (!strncmp(type, "LNX1", 4)) { in ibm_partition()
333 } else if (!strncmp(type, "CMS1", 4)) { in ibm_partition()
/linux-4.4.14/arch/unicore32/include/mach/
Dmemory.h46 (strncmp(dev->bus->name, "pci", 3) == 0))
/linux-4.4.14/arch/blackfin/include/asm/
Dstring.h24 extern int strncmp(const char *cs, const char *ct, size_t count);
/linux-4.4.14/arch/ia64/kernel/
Dacpi.c97 if (strncmp(rsdp->signature, ACPI_SIG_RSDP, sizeof(ACPI_SIG_RSDP) - 1)) { in acpi_get_sysname()
105 if (strncmp(hdr->signature, ACPI_SIG_XSDT, sizeof(ACPI_SIG_XSDT) - 1)) { in acpi_get_sysname()
126 if (strncmp(hdr->signature, ACPI_SIG_DMAR, in acpi_get_sysname()
368 if (!strncmp(oem_id, "IBM", 3) && (!strncmp(oem_table_id, "SERMOW", 6))) { in acpi_madt_oem_check()
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/
Damdgpu_pm.c71 if (strncmp("battery", buf, strlen("battery")) == 0) in amdgpu_set_dpm_state()
73 else if (strncmp("balanced", buf, strlen("balanced")) == 0) in amdgpu_set_dpm_state()
75 else if (strncmp("performance", buf, strlen("performance")) == 0) in amdgpu_set_dpm_state()
116 if (strncmp("low", buf, strlen("low")) == 0) { in amdgpu_set_dpm_forced_performance_level()
118 } else if (strncmp("high", buf, strlen("high")) == 0) { in amdgpu_set_dpm_forced_performance_level()
120 } else if (strncmp("auto", buf, strlen("auto")) == 0) { in amdgpu_set_dpm_forced_performance_level()
/linux-4.4.14/mm/
Dkmemleak.c1710 if (strncmp(buf, "clear", 5) == 0) { in kmemleak_write()
1723 if (strncmp(buf, "off", 3) == 0) in kmemleak_write()
1725 else if (strncmp(buf, "stack=on", 8) == 0) in kmemleak_write()
1727 else if (strncmp(buf, "stack=off", 9) == 0) in kmemleak_write()
1729 else if (strncmp(buf, "scan=on", 7) == 0) in kmemleak_write()
1731 else if (strncmp(buf, "scan=off", 8) == 0) in kmemleak_write()
1733 else if (strncmp(buf, "scan=", 5) == 0) { in kmemleak_write()
1744 } else if (strncmp(buf, "scan", 4) == 0) in kmemleak_write()
1746 else if (strncmp(buf, "dump=", 5) == 0) in kmemleak_write()
/linux-4.4.14/arch/mips/bcm47xx/
Dtime.c63 if (len >= 0 && !strncmp(buf, "200", 4)) in plat_time_init()
/linux-4.4.14/arch/powerpc/boot/
Dstring.h10 extern int strncmp(const char *s1, const char *s2, size_t n);
Dplanetcore.c46 if (!strncmp(table, key, keylen) && table[keylen] == '=') in planetcore_get_key()
/linux-4.4.14/arch/arm64/kernel/
Darm64ksyms.c48 EXPORT_SYMBOL(strncmp);
/linux-4.4.14/drivers/mtd/
Dbcm63xxpart.c59 if (strncmp("cfe-v", buf, 5) == 0) in bcm63xx_detect_cfe()
67 return strncmp("CFE1CFE1", buf, 8); in bcm63xx_detect_cfe()
Dcmdlinepart.c157 if (strncmp(s, "ro", 2) == 0) { in newpart()
163 if (strncmp(s, "lk", 2) == 0) { in newpart()
/linux-4.4.14/drivers/s390/net/
Dsmsgiucv.c62 if (strncmp(ipvmid, "*MSG ", 8) != 0) in smsg_path_pending()
95 if (strncmp(buffer + 8, cb->prefix, cb->len) == 0) { in smsg_message_pending()
/linux-4.4.14/arch/sparc/include/asm/
Dstring_64.h56 int strncmp(const char *, const char *, __kernel_size_t);
Dstring_32.h64 int strncmp(const char *, const char *, __kernel_size_t);
Dprom.h30 #define of_compat_cmp(s1, s2, l) strncmp((s1), (s2), (l))
/linux-4.4.14/arch/arm64/include/asm/
Dstring.h29 extern int strncmp(const char *, const char *, __kernel_size_t);
/linux-4.4.14/net/netfilter/
Dnfnetlink_acct.c67 if (strncmp(nfacct->name, acct_name, NFACCT_NAME_MAX) != 0) in nfnl_acct_new()
290 if (strncmp(cur->name, acct_name, NFACCT_NAME_MAX)!= 0) in nfnl_acct_get()
354 if (strncmp(cur->name, acct_name, NFACCT_NAME_MAX) != 0) in nfnl_acct_del()
405 if (strncmp(cur->name, acct_name, NFACCT_NAME_MAX)!= 0) in nfnl_acct_find_get()
Dnfnetlink_cttimeout.c94 if (strncmp(timeout->name, name, CTNL_TIMEOUT_NAME_MAX) != 0) in cttimeout_new_timeout()
266 if (strncmp(cur->name, name, CTNL_TIMEOUT_NAME_MAX) != 0) in cttimeout_get_timeout()
360 if (strncmp(cur->name, name, CTNL_TIMEOUT_NAME_MAX) != 0) in cttimeout_del_timeout()
520 if (strncmp(timeout->name, name, CTNL_TIMEOUT_NAME_MAX) != 0) in ctnl_timeout_find_get()
Dxt_helper.c52 ret ^= !strncmp(helper->name, info->name, in helper_mt()
/linux-4.4.14/drivers/net/wireless/ath/ath10k/
Dspectral.c321 if (strncmp("trigger", buf, 7) == 0) { in write_file_spec_scan_ctl()
341 } else if (strncmp("background", buf, 9) == 0) { in write_file_spec_scan_ctl()
343 } else if (strncmp("manual", buf, 6) == 0) { in write_file_spec_scan_ctl()
345 } else if (strncmp("disable", buf, 7) == 0) { in write_file_spec_scan_ctl()
/linux-4.4.14/kernel/
Dwatchdog.c133 if (!strncmp(str, "panic", 5)) in hardlockup_panic_setup()
135 else if (!strncmp(str, "nopanic", 7)) in hardlockup_panic_setup()
137 else if (!strncmp(str, "0", 1)) in hardlockup_panic_setup()
139 else if (!strncmp(str, "1", 1)) in hardlockup_panic_setup()
Dprofile.c60 if (!strncmp(str, sleepstr, strlen(sleepstr))) { in profile_setup()
72 } else if (!strncmp(str, schedstr, strlen(schedstr))) { in profile_setup()
80 } else if (!strncmp(str, kvmstr, strlen(kvmstr))) { in profile_setup()
/linux-4.4.14/net/mac80211/
Ddebugfs_sta.c168 if (strncmp(buf, "tx ", 3) == 0) { in sta_agg_status_write()
171 } else if (strncmp(buf, "rx ", 3) == 0) { in sta_agg_status_write()
177 if (strncmp(buf, "start ", 6) == 0) { in sta_agg_status_write()
182 } else if (strncmp(buf, "stop ", 5) == 0) { in sta_agg_status_write()
/linux-4.4.14/kernel/debug/kdb/
Dkdb_io.c534 if (!strncmp(searched, searchfor, len2)) in kdb_search_string()
537 if (!strncmp(searched+len1-len2, searchfor, len2)) in kdb_search_string()
543 if (!strncmp(cp, searchfor, len2)) in kdb_search_string()
636 if (!strncmp(cp2, kdb_prompt_str, len)) { in vkdb_printf()
/linux-4.4.14/arch/s390/mm/
Dcmm.c371 if (strncmp(msg, "SHRINK", 6) == 0) { in cmm_smsg_target()
378 } else if (strncmp(msg, "RELEASE", 7) == 0) { in cmm_smsg_target()
385 } else if (strncmp(msg, "REUSE", 5) == 0) { in cmm_smsg_target()
/linux-4.4.14/arch/arm/mach-omap1/include/mach/
Dmemory.h28 #define is_lbus_device(dev) (cpu_is_omap15xx() && dev && (strncmp(dev_name(dev), "ohci", 4) == 0))
/linux-4.4.14/tools/perf/arch/x86/util/
Dauxtrace.c79 if (!strncmp(buffer, "GenuineIntel,", 13)) in auxtrace_record__init()
/linux-4.4.14/arch/sparc/kernel/
Dsetup_32.c165 if (!strncmp(commands, "mem=", 4)) { in boot_flags_init()
291 if (!strncmp(&cputypval[0], "leon" , 4)) in sparc32_start_kernel()
/linux-4.4.14/drivers/staging/xgifb/
DXGI_main_26.c1614 if (!strncmp(this_opt, "mode:", 5)) { in XGIfb_setup()
1616 } else if (!strncmp(this_opt, "vesa:", 5)) { in XGIfb_setup()
1618 } else if (!strncmp(this_opt, "vrate:", 6)) { in XGIfb_setup()
1620 } else if (!strncmp(this_opt, "rate:", 5)) { in XGIfb_setup()
1622 } else if (!strncmp(this_opt, "crt1off", 7)) { in XGIfb_setup()
1624 } else if (!strncmp(this_opt, "filter:", 7)) { in XGIfb_setup()
1626 } else if (!strncmp(this_opt, "forcecrt2type:", 14)) { in XGIfb_setup()
1628 } else if (!strncmp(this_opt, "forcecrt1:", 10)) { in XGIfb_setup()
1630 } else if (!strncmp(this_opt, "tvmode:", 7)) { in XGIfb_setup()
1632 } else if (!strncmp(this_opt, "tvstandard:", 11)) { in XGIfb_setup()
[all …]
/linux-4.4.14/security/apparmor/
Dlib.c49 if (strncmp(split, "//", 2) == 0) in aa_split_fqname()
/linux-4.4.14/arch/sh/drivers/pci/
Dpci-dreamcast.c69 if (strncmp(idbuf, "GAPSPCI_BRIDGE_2", 16)) in gapspci_init()
/linux-4.4.14/security/apparmor/include/
Dapparmor.h96 return !strncmp(str, sub, len) && !str[len]; in aa_strneq()
/linux-4.4.14/arch/mips/loongson32/common/
Dprom.c30 if (strncmp(envname, *env, i) == 0 && *(*env + i) == '=') in prom_getenv()
/linux-4.4.14/arch/xtensa/include/asm/
Dstring.h85 static inline int strncmp(const char *__cs, const char *__ct, size_t __n) in strncmp() function
/linux-4.4.14/arch/arm/mach-iop13xx/include/mach/
Dmemory.h32 (dev && strncmp(dev->bus->name, "platform", 8) == 0)
/linux-4.4.14/arch/arm64/lib/
DMakefile4 memcmp.o strcmp.o strncmp.o strlen.o strnlen.o \
/linux-4.4.14/drivers/gpu/drm/tilcdc/
Dtilcdc_slave_compat.c240 if (!strncmp("i2c", (char *)prop->value, prop->length)) in tilcdc_convert_slave_node()
243 if (!strncmp("lcdc", (char *)prop->value, prop->length)) in tilcdc_convert_slave_node()
/linux-4.4.14/tools/perf/tests/
Dperf-record.c245 found_libc_mmap = !strncmp(bname + 1, "libc", 4); in test__PERF_RECORD()
247 found_ld_mmap = !strncmp(bname + 1, "ld", 2); in test__PERF_RECORD()
/linux-4.4.14/fs/openpromfs/
Dinode.c205 !strncmp(child->path_component_name, name, len)) { in openpromfs_lookup()
218 if (len == n && !strncmp(prop->name, name, len)) { in openpromfs_lookup()
249 !strncmp (name, "security-password", 17)) in openpromfs_lookup()
/linux-4.4.14/drivers/isdn/hardware/eicon/
Dmaintidi.c861 if (!strncmp("State\\B Event", path, pVar->path_length)) { in process_idi_event()
877 if (!strncmp("State\\FAX Event", path, pVar->path_length)) { in process_idi_event()
893 if (!strncmp("State\\Modem Event", path, pVar->path_length)) { in process_idi_event()
942 if (!strncmp("Events Down", path, pVar->path_length)) { in process_idi_event()
951 if (!strncmp("State\\Layer1", path, pVar->path_length)) { in process_idi_event()
960 if (!strncmp("State\\Layer2 No1", path, pVar->path_length)) { in process_idi_event()
1020 if (!strncmp("Statistics\\Incoming Calls\\Calls", path, pVar->path_length) || in process_idi_event()
1021 !strncmp("Statistics\\Incoming Calls\\Connected", path, pVar->path_length)) { in process_idi_event()
1025 if (!strncmp("Statistics\\Outgoing Calls\\Calls", path, pVar->path_length) || in process_idi_event()
1026 !strncmp("Statistics\\Outgoing Calls\\Connected", path, pVar->path_length)) { in process_idi_event()
[all …]
/linux-4.4.14/drivers/gpu/drm/radeon/
Dradeon_pm.c371 if (strncmp("default", buf, strlen("default")) == 0) in radeon_set_pm_profile()
373 else if (strncmp("auto", buf, strlen("auto")) == 0) in radeon_set_pm_profile()
375 else if (strncmp("low", buf, strlen("low")) == 0) in radeon_set_pm_profile()
377 else if (strncmp("mid", buf, strlen("mid")) == 0) in radeon_set_pm_profile()
379 else if (strncmp("high", buf, strlen("high")) == 0) in radeon_set_pm_profile()
430 if (strncmp("dynpm", buf, strlen("dynpm")) == 0) { in radeon_set_pm_method()
436 } else if (strncmp("profile", buf, strlen("profile")) == 0) { in radeon_set_pm_method()
475 if (strncmp("battery", buf, strlen("battery")) == 0) in radeon_set_dpm_state()
477 else if (strncmp("balanced", buf, strlen("balanced")) == 0) in radeon_set_dpm_state()
479 else if (strncmp("performance", buf, strlen("performance")) == 0) in radeon_set_dpm_state()
[all …]
/linux-4.4.14/drivers/pci/pcie/aer/
Decrc.c124 if (!strncmp(str, ecrc_policy_str[i], in pcie_ecrc_get_policy()
/linux-4.4.14/arch/mips/fw/lib/
Dcmdline.c66 if (strncmp(envname, fw_envp(index), i) == 0) { in fw_getenv()
/linux-4.4.14/arch/mips/include/asm/
Dstring.h104 strncmp(__const__ char *__cs, __const__ char *__ct, size_t __count) in strncmp() function
/linux-4.4.14/arch/sh/include/asm/
Dstring_32.h83 static inline int strncmp(const char *__cs, const char *__ct, size_t __n) in strncmp() function
/linux-4.4.14/arch/metag/tbx/
Dtbistring.c74 if (!strncmp(str, (const char *)search->String, in __TBIFindStr()
/linux-4.4.14/arch/mips/alchemy/common/
Dprom.c72 } else if (strncmp(envname, *env, i) == 0 && (*env)[i] == '=') in prom_getenv()
/linux-4.4.14/kernel/power/
Dhibernate.c961 && !strncmp(buf, hibernation_modes[i], len)) { in disk_store()
1118 if (!strncmp(str, "noresume", 8)) in hibernate_setup()
1120 else if (!strncmp(str, "nocompress", 10)) in hibernate_setup()
1122 else if (!strncmp(str, "no", 2)) { in hibernate_setup()
Dmain.c123 if (*s && len == strlen(*s) && !strncmp(buf, *s, len)) { in pm_test_store()
339 if (len == 4 && !strncmp(buf, "disk", len)) in decode_state()
346 if (label && len == strlen(label) && !strncmp(buf, label, len)) in decode_state()
/linux-4.4.14/drivers/usb/dwc2/
Ddebugfs.c46 if (!strncmp(buf, "test_j", 6)) in testmode_write()
48 else if (!strncmp(buf, "test_k", 6)) in testmode_write()
50 else if (!strncmp(buf, "test_se0_nak", 12)) in testmode_write()
52 else if (!strncmp(buf, "test_packet", 11)) in testmode_write()
54 else if (!strncmp(buf, "test_force_enable", 17)) in testmode_write()
/linux-4.4.14/net/sctp/
Dsysctl.c339 if (!strncmp(tmp, "md5", 3)) { in proc_sctp_do_hmac_alg()
345 if (!strncmp(tmp, "sha1", 4)) { in proc_sctp_do_hmac_alg()
350 if (!strncmp(tmp, "none", 4)) { in proc_sctp_do_hmac_alg()
/linux-4.4.14/drivers/video/fbdev/geode/
Dgx1fb_core.c416 if (!strncmp(this_opt, "mode:", 5)) in gx1fb_setup()
418 else if (!strncmp(this_opt, "crt:", 4)) in gx1fb_setup()
420 else if (!strncmp(this_opt, "panel:", 6)) in gx1fb_setup()
/linux-4.4.14/arch/x86/pci/
Dcommon.c555 } else if (!strncmp(str, "pirqaddr=", 9)) { in pcibios_setup()
591 } else if (!strncmp(str, "irqmask=", 8)) { in pcibios_setup()
594 } else if (!strncmp(str, "lastbus=", 8)) { in pcibios_setup()
/linux-4.4.14/lib/
Dcmdline.c177 if (!strncmp(str, option, strlen(option))) { in parse_option_str()
/linux-4.4.14/drivers/mmc/core/
Dquirks.c69 !strncmp(f->name, card->cid.prod_name, in mmc_fixup_device()
/linux-4.4.14/kernel/locking/
Dlocktorture.c826 if (strncmp(torture_type, "mutex", 5) == 0) in lock_torture_init()
830 if (strncmp(torture_type, "rtmutex", 7) == 0) in lock_torture_init()
834 if ((strncmp(torture_type, "spin", 4) == 0) || in lock_torture_init()
835 (strncmp(torture_type, "rw_lock", 7) == 0)) in lock_torture_init()
/linux-4.4.14/sound/core/
Dctljack.c60 need_cat = strncmp(&src_name[count - 5], " Jack", 5) ? true : false; in jack_kctl_name_gen()
/linux-4.4.14/drivers/usb/musb/
Dmusb_debugfs.c287 if (!strncmp(buf, "0", 1)) { in musb_softconnect_write()
298 } else if (!strncmp(buf, "1", 1)) { in musb_softconnect_write()
/linux-4.4.14/arch/x86/boot/tools/
Dbuild.c162 if (strncmp((char*)section, section_name, 8) == 0) { in update_pecoff_section_header_fields()
298 if (!strncmp(p, "#define ZO_" #sym " ", 11+sizeof(#sym))) \
/linux-4.4.14/drivers/crypto/nx/
Dnx-842-pseries.c566 if (!strncmp(status, "okay", (size_t)prop->length)) in nx842_OF_upd_status()
568 if (!strncmp(status, "disabled", (size_t)prop->length)) in nx842_OF_upd_status()
770 if (new_prop && (strncmp(new_prop->name, "status", new_prop->length) || in nx842_OF_upd()
771 strncmp(new_prop->name, "ibm,max-sg-len", new_prop->length) || in nx842_OF_upd()
772 strncmp(new_prop->name, "ibm,max-sync-cop", new_prop->length))) in nx842_OF_upd()
/linux-4.4.14/tools/lib/traceevent/
Dplugin_mac80211.c43 if (!strncmp(f->type, "__data_loc", 10)) { in print_string()
/linux-4.4.14/arch/sh/kernel/
Dsh_bios.c158 if (!strncmp(buf, "bios", 4)) in setup_early_printk()
/linux-4.4.14/drivers/thermal/int340x_thermal/
Dint3400_thermal.c89 !(strncmp(buf, int3400_thermal_uuids[i], in current_uuid_store()
147 if (!strncmp(uuid, objb->buffer.pointer, 16)) { in int3400_thermal_get_uuids()
/linux-4.4.14/arch/mips/rb532/
Dprom.c59 return strncmp(arg, tag, strlen(tag)) == 0; in match_tag()

12345