Home
last modified time | relevance | path

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

12345678910>>...20

/drivers/scsi/
Dsr_vendor.c82 } 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()
/drivers/net/wireless/intel/iwlwifi/mvm/
Ddebugfs-vif.c135 if (!strncmp("keep_alive=", buf, 11)) { in iwl_dbgfs_pm_params_write()
139 } else if (!strncmp("skip_over_dtim=", buf, 15)) { in iwl_dbgfs_pm_params_write()
143 } else if (!strncmp("skip_dtim_periods=", buf, 18)) { in iwl_dbgfs_pm_params_write()
147 } else if (!strncmp("rx_data_timeout=", buf, 16)) { in iwl_dbgfs_pm_params_write()
151 } else if (!strncmp("tx_data_timeout=", buf, 16)) { in iwl_dbgfs_pm_params_write()
155 } else if (!strncmp("lprx=", buf, 5)) { in iwl_dbgfs_pm_params_write()
159 } else if (!strncmp("lprx_rssi_threshold=", buf, 20)) { in iwl_dbgfs_pm_params_write()
166 } else if (!strncmp("snooze_enable=", buf, 14)) { in iwl_dbgfs_pm_params_write()
170 } else if (!strncmp("uapsd_misbehaving=", buf, 18)) { in iwl_dbgfs_pm_params_write()
174 } else if (!strncmp("use_ps_poll=", buf, 12)) { in iwl_dbgfs_pm_params_write()
[all …]
/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()
/drivers/firmware/
Dedd.c141 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 …]
/drivers/spi/
Dspi-sprd-adi.c341 else if (!strncmp(cmd, "recovery", 8)) in sprd_adi_restart_handler()
343 else if (!strncmp(cmd, "alarm", 5)) in sprd_adi_restart_handler()
345 else if (!strncmp(cmd, "fastsleep", 9)) in sprd_adi_restart_handler()
347 else if (!strncmp(cmd, "bootloader", 10)) in sprd_adi_restart_handler()
349 else if (!strncmp(cmd, "panic", 5)) in sprd_adi_restart_handler()
351 else if (!strncmp(cmd, "special", 7)) in sprd_adi_restart_handler()
353 else if (!strncmp(cmd, "cftreboot", 9)) in sprd_adi_restart_handler()
355 else if (!strncmp(cmd, "autodloader", 11)) in sprd_adi_restart_handler()
357 else if (!strncmp(cmd, "iqmode", 6)) in sprd_adi_restart_handler()
359 else if (!strncmp(cmd, "sprdisk", 7)) in sprd_adi_restart_handler()
[all …]
/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()
84 if (!strncmp(options, "ofonly", 6)) { in video_setup()
/drivers/net/ethernet/intel/i40e/
Di40e_debugfs.c807 if (strncmp(cmd_buf, "add vsi", 7) == 0) { in i40e_dbg_command_write()
834 } else if (strncmp(cmd_buf, "del vsi", 7) == 0) { in i40e_dbg_command_write()
852 } else if (strncmp(cmd_buf, "add relay", 9) == 0) { in i40e_dbg_command_write()
894 } else if (strncmp(cmd_buf, "del relay", 9) == 0) { in i40e_dbg_command_write()
920 } else if (strncmp(cmd_buf, "add pvid", 8) == 0) { in i40e_dbg_command_write()
950 } else if (strncmp(cmd_buf, "del pvid", 8) == 0) { in i40e_dbg_command_write()
971 } else if (strncmp(cmd_buf, "dump", 4) == 0) { in i40e_dbg_command_write()
972 if (strncmp(&cmd_buf[5], "switch", 6) == 0) { in i40e_dbg_command_write()
974 } else if (strncmp(&cmd_buf[5], "vsi", 3) == 0) { in i40e_dbg_command_write()
980 } else if (strncmp(&cmd_buf[5], "veb", 3) == 0) { in i40e_dbg_command_write()
[all …]
/drivers/net/wireless/ath/ath5k/
Ddebug.c235 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 …]
/drivers/pcmcia/
Dvrc4171_card.c627 if (strncmp(options, "irq:", 4) == 0) { in vrc4171_card_setup()
639 if (strncmp(options, "slota:", 6) == 0) { in vrc4171_card_setup()
642 if (strncmp(options, "memnoprobe", 10) == 0) { in vrc4171_card_setup()
645 } else if (strncmp(options, "ionoprobe", 9) == 0) { in vrc4171_card_setup()
648 } else if ( strncmp(options, "noprobe", 7) == 0) { in vrc4171_card_setup()
661 if (strncmp(options, "slotb:", 6) == 0) { in vrc4171_card_setup()
664 if (strncmp(options, "pccard", 6) == 0) { in vrc4171_card_setup()
667 } else if (strncmp(options, "cf", 2) == 0) { in vrc4171_card_setup()
670 } else if (strncmp(options, "flashrom", 8) == 0) { in vrc4171_card_setup()
673 } else if (strncmp(options, "none", 4) == 0) { in vrc4171_card_setup()
[all …]
/drivers/md/
Dmd-autodetect.c152 if (strncmp(devname, "/dev/", 5) == 0) in md_setup_drive()
251 if (!strncmp(str, "noautodetect", wlen)) in raid_setup()
253 if (!strncmp(str, "autodetect", wlen)) in raid_setup()
255 if (strncmp(str, "partitionable", wlen)==0) in raid_setup()
257 if (strncmp(str, "part", wlen)==0) in raid_setup()
/drivers/usb/dwc3/
Ddebugfs.c448 if (!strncmp(buf, "host", 4)) in dwc3_mode_write()
451 if (!strncmp(buf, "device", 6)) in dwc3_mode_write()
454 if (!strncmp(buf, "otg", 3)) in dwc3_mode_write()
533 if (!strncmp(buf, "test_j", 6)) in dwc3_testmode_write()
535 else if (!strncmp(buf, "test_k", 6)) in dwc3_testmode_write()
537 else if (!strncmp(buf, "test_se0_nak", 12)) in dwc3_testmode_write()
539 else if (!strncmp(buf, "test_packet", 11)) in dwc3_testmode_write()
541 else if (!strncmp(buf, "test_force_enable", 17)) in dwc3_testmode_write()
623 if (!strncmp(buf, "SS.Disabled", 11)) in dwc3_link_state_write()
625 else if (!strncmp(buf, "Rx.Detect", 9)) in dwc3_link_state_write()
[all …]
/drivers/staging/vc04_services/interface/vchiq_arm/
Dvchiq_debugfs.c93 if (strncmp("error", kbuf, strlen("error")) == 0) in debugfs_log_write()
95 else if (strncmp("warning", kbuf, strlen("warning")) == 0) in debugfs_log_write()
97 else if (strncmp("info", kbuf, strlen("info")) == 0) in debugfs_log_write()
99 else if (strncmp("trace", kbuf, strlen("trace")) == 0) in debugfs_log_write()
/drivers/tty/serial/8250/
D8250_men_mcb.c37 if (strncmp(mdev->bus->name, "F075", 4) == 0) in men_lookup_uartclk()
39 else if (strncmp(mdev->bus->name, "F216", 4) == 0) in men_lookup_uartclk()
41 else if (strncmp(mdev->bus->name, "G215", 4) == 0) in men_lookup_uartclk()
43 else if (strncmp(mdev->bus->name, "F210", 4) == 0) in men_lookup_uartclk()
/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dfirmware.c114 if (strncmp(&nvp->data[nvp->entry], "RAW1", 4) == 0) in brcmf_nvram_handle_key()
118 if (strncmp(&nvp->data[nvp->entry], "devpath", 7) == 0) in brcmf_nvram_handle_key()
120 if (strncmp(&nvp->data[nvp->entry], "pcie/", 5) == 0) in brcmf_nvram_handle_key()
122 if (strncmp(&nvp->data[nvp->entry], "boardrev", 8) == 0) in brcmf_nvram_handle_key()
265 if (strncmp(&nvp->nvram[i], "devpath", 7) == 0 && in brcmf_fw_strip_multi_v1()
266 (!strncmp(&nvp->nvram[i + 8], pci_path, pci_len) || in brcmf_fw_strip_multi_v1()
267 !strncmp(&nvp->nvram[i + 8], pcie_path, pcie_len))) { in brcmf_fw_strip_multi_v1()
285 if (strncmp(&nvp->nvram[i], "boardrev", 8) == 0) in brcmf_fw_strip_multi_v1()
336 if (strncmp(&nvp->nvram[i], prefix, len) == 0) { in brcmf_fw_strip_multi_v2()
338 if (strncmp(&nvp->nvram[i], "boardrev", 8) == 0) in brcmf_fw_strip_multi_v2()
/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_debugfs.c408 if (!strncmp(cmd_buf, reg_info->reg_type, in hclge_dbg_dump_reg_cmd()
415 if (strncmp(cmd_buf, "mac", strlen("mac")) == 0) { in hclge_dbg_dump_reg_cmd()
420 if (strncmp(cmd_buf, "dcb", 3) == 0) { in hclge_dbg_dump_reg_cmd()
1505 if (strncmp(cmd_buf, "dump fd tcam", 12) == 0) { in hclge_dbg_run_cmd()
1507 } else if (strncmp(cmd_buf, "dump tc", 7) == 0) { in hclge_dbg_run_cmd()
1509 } else if (strncmp(cmd_buf, DUMP_TM_MAP, strlen(DUMP_TM_MAP)) == 0) { in hclge_dbg_run_cmd()
1511 } else if (strncmp(cmd_buf, "dump tm", 7) == 0) { in hclge_dbg_run_cmd()
1513 } else if (strncmp(cmd_buf, "dump qos pause cfg", 18) == 0) { in hclge_dbg_run_cmd()
1515 } else if (strncmp(cmd_buf, "dump qos pri map", 16) == 0) { in hclge_dbg_run_cmd()
1517 } else if (strncmp(cmd_buf, "dump qos buf cfg", 16) == 0) { in hclge_dbg_run_cmd()
[all …]
/drivers/remoteproc/
Dremoteproc_debugfs.c96 if (!strncmp(buf, "disabled", count)) { in rproc_coredump_write()
98 } else if (!strncmp(buf, "enabled", count)) { in rproc_coredump_write()
100 } else if (!strncmp(buf, "inline", count)) { in rproc_coredump_write()
227 if (!strncmp(buf, "enabled", count)) { in rproc_recovery_write()
231 } else if (!strncmp(buf, "disabled", count)) { in rproc_recovery_write()
233 } else if (!strncmp(buf, "recover", count)) { in rproc_recovery_write()
/drivers/video/fbdev/via/
Dviafbdev.c1064 if (!strncmp(opt_str, "DVP0", 4)) in parse_port()
1066 else if (!strncmp(opt_str, "DVP1", 4)) in parse_port()
1068 else if (!strncmp(opt_str, "DFP_HIGHLOW", 11)) in parse_port()
1070 else if (!strncmp(opt_str, "DFP_HIGH", 8)) in parse_port()
1072 else if (!strncmp(opt_str, "DFP_LOW", 7)) in parse_port()
1940 if (!strncmp(this_opt, "viafb_mode1=", 12)) { in viafb_setup()
1942 } else if (!strncmp(this_opt, "viafb_mode=", 11)) { in viafb_setup()
1944 } else if (!strncmp(this_opt, "viafb_bpp1=", 11)) { in viafb_setup()
1947 } else if (!strncmp(this_opt, "viafb_bpp=", 10)) { in viafb_setup()
1950 } else if (!strncmp(this_opt, "viafb_refresh1=", 15)) { in viafb_setup()
[all …]
/drivers/sfi/
Dsfi_core.c204 if (strncmp(th->sig, key->sig, SFI_SIGNATURE_SIZE) in sfi_table_check_key()
205 || (key->oem_id && strncmp(th->oem_id, in sfi_table_check_key()
207 || (key->oem_table_id && strncmp(th->oem_table_id, in sfi_table_check_key()
355 if (strncmp(syst_hdr->sig, SFI_SIG_SYST, in sfi_find_syst()
404 if (strncmp(SFI_SIG_SYST, tbl_attr->name, SFI_SIGNATURE_SIZE)) { in sfi_table_show()
/drivers/gpu/vga/
Dvga_switcheroo.c799 if (strncmp(usercmd, "OFF", 3) == 0) { in vga_switcheroo_debugfs_write()
812 if (strncmp(usercmd, "ON", 2) == 0) { in vga_switcheroo_debugfs_write()
826 if (strncmp(usercmd, "DIGD", 4) == 0) { in vga_switcheroo_debugfs_write()
831 if (strncmp(usercmd, "DDIS", 4) == 0) { in vga_switcheroo_debugfs_write()
836 if (strncmp(usercmd, "IGD", 3) == 0) in vga_switcheroo_debugfs_write()
839 if (strncmp(usercmd, "DIS", 3) == 0) in vga_switcheroo_debugfs_write()
842 if (strncmp(usercmd, "MIGD", 4) == 0) { in vga_switcheroo_debugfs_write()
846 if (strncmp(usercmd, "MDIS", 4) == 0) { in vga_switcheroo_debugfs_write()
Dvgaarb.c106 if (strncmp(buf, "none", 4) == 0) { in vga_str_to_iostate()
112 if (strncmp(buf, "io+mem", 6) == 0) in vga_str_to_iostate()
114 else if (strncmp(buf, "io", 2) == 0) in vga_str_to_iostate()
116 else if (strncmp(buf, "mem", 3) == 0) in vga_str_to_iostate()
1091 if (strncmp(curr_pos, "lock ", 5) == 0) { in vga_arb_write()
1127 } else if (strncmp(curr_pos, "unlock ", 7) == 0) { in vga_arb_write()
1133 if (strncmp(curr_pos, "all", 3) == 0) in vga_arb_write()
1183 } else if (strncmp(curr_pos, "trylock ", 8) == 0) { in vga_arb_write()
1224 } else if (strncmp(curr_pos, "target ", 7) == 0) { in vga_arb_write()
1232 if (!strncmp(curr_pos, "default", 7)) in vga_arb_write()
[all …]
/drivers/misc/cxl/
Dsysfs.c143 if (!strncmp(buf, "none", 4)) in load_image_on_perst_store()
145 else if (!strncmp(buf, "user", 4)) { in load_image_on_perst_store()
148 } else if (!strncmp(buf, "factory", 7)) { in load_image_on_perst_store()
352 if (!strncmp(buf, "none", 4)) in prefault_mode_store()
358 if (!strncmp(buf, "work_element_descriptor", 23)) in prefault_mode_store()
360 if (!strncmp(buf, "all", 3)) in prefault_mode_store()
399 if (!strncmp(buf, "dedicated_process", 17)) in mode_store()
401 if (!strncmp(buf, "afu_directed", 12)) in mode_store()
403 if (!strncmp(buf, "none", 4)) in mode_store()
/drivers/pci/pcie/
Dportdrv_pci.c40 if (!strncmp(str, "compat", 6)) in pcie_port_setup()
42 else if (!strncmp(str, "native", 6)) in pcie_port_setup()
44 else if (!strncmp(str, "dpc-native", 10)) in pcie_port_setup()
/drivers/leds/
Dleds-max8997.c207 if (!strncmp(buf, "FLASH_PIN_CONTROL", 17)) in max8997_led_store_mode()
209 else if (!strncmp(buf, "MOVIE_PIN_CONTROL", 17)) in max8997_led_store_mode()
211 else if (!strncmp(buf, "FLASH", 5)) in max8997_led_store_mode()
213 else if (!strncmp(buf, "MOVIE", 5)) in max8997_led_store_mode()
/drivers/video/fbdev/matrox/
Dmatroxfb_base.c2345 if (!strncmp(this_opt, "dev:", 4)) in matroxfb_setup()
2347 else if (!strncmp(this_opt, "depth:", 6)) { in matroxfb_setup()
2359 } else if (!strncmp(this_opt, "xres:", 5)) in matroxfb_setup()
2361 else if (!strncmp(this_opt, "yres:", 5)) in matroxfb_setup()
2363 else if (!strncmp(this_opt, "vslen:", 6)) in matroxfb_setup()
2365 else if (!strncmp(this_opt, "hslen:", 6)) in matroxfb_setup()
2367 else if (!strncmp(this_opt, "left:", 5)) in matroxfb_setup()
2369 else if (!strncmp(this_opt, "right:", 6)) in matroxfb_setup()
2371 else if (!strncmp(this_opt, "upper:", 6)) in matroxfb_setup()
2373 else if (!strncmp(this_opt, "lower:", 6)) in matroxfb_setup()
[all …]
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_debugfs.c85 if (strncmp(ixgbe_dbg_reg_ops_buf, "write", 5) == 0) { in ixgbe_dbg_reg_ops_write()
96 } else if (strncmp(ixgbe_dbg_reg_ops_buf, "read", 4) == 0) { in ixgbe_dbg_reg_ops_write()
168 if (strncmp(ixgbe_dbg_netdev_ops_buf, "tx_timeout", 10) == 0) { in ixgbe_dbg_netdev_ops_write()

12345678910>>...20