Home
last modified time | relevance | path

Searched refs:sysfs_streq (Results 1 – 34 of 34) sorted by relevance

/linux-4.1.27/drivers/s390/net/
Dqeth_core_sys.c255 if (sysfs_streq(buf, "prio_queueing_prec")) { in qeth_dev_prioqing_store()
258 } else if (sysfs_streq(buf, "prio_queueing_skb")) { in qeth_dev_prioqing_store()
261 } else if (sysfs_streq(buf, "prio_queueing_tos")) { in qeth_dev_prioqing_store()
264 } else if (sysfs_streq(buf, "prio_queueing_vlan")) { in qeth_dev_prioqing_store()
271 } else if (sysfs_streq(buf, "no_prio_queueing:0")) { in qeth_dev_prioqing_store()
274 } else if (sysfs_streq(buf, "no_prio_queueing:1")) { in qeth_dev_prioqing_store()
277 } else if (sysfs_streq(buf, "no_prio_queueing:2")) { in qeth_dev_prioqing_store()
280 } else if (sysfs_streq(buf, "no_prio_queueing:3")) { in qeth_dev_prioqing_store()
283 } else if (sysfs_streq(buf, "no_prio_queueing")) { in qeth_dev_prioqing_store()
514 if (sysfs_streq(buf, ATTR_QETH_ISOLATION_NONE)) { in qeth_dev_isolation_store()
[all …]
Dqeth_l2_sys.c82 if (sysfs_streq(buf, "primary")) in qeth_bridge_port_role_store()
84 else if (sysfs_streq(buf, "secondary")) in qeth_bridge_port_role_store()
86 else if (sysfs_streq(buf, "none")) in qeth_bridge_port_role_store()
145 if (sysfs_streq(buf, "0")) in qeth_bridgeport_hostnotification_store()
147 else if (sysfs_streq(buf, "1")) in qeth_bridgeport_hostnotification_store()
Dqeth_l3_sys.c63 if (sysfs_streq(buf, "no_router")) { in qeth_l3_dev_route_store()
65 } else if (sysfs_streq(buf, "primary_connector")) { in qeth_l3_dev_route_store()
67 } else if (sysfs_streq(buf, "secondary_connector")) { in qeth_l3_dev_route_store()
69 } else if (sysfs_streq(buf, "primary_router")) { in qeth_l3_dev_route_store()
71 } else if (sysfs_streq(buf, "secondary_router")) { in qeth_l3_dev_route_store()
73 } else if (sysfs_streq(buf, "multicast_router")) { in qeth_l3_dev_route_store()
383 if (sysfs_streq(buf, "toggle")) { in qeth_l3_dev_ipato_enable_store()
385 } else if (sysfs_streq(buf, "1")) { in qeth_l3_dev_ipato_enable_store()
394 } else if (sysfs_streq(buf, "0")) { in qeth_l3_dev_ipato_enable_store()
435 if (sysfs_streq(buf, "toggle")) in qeth_l3_dev_ipato_invert4_store()
[all …]
/linux-4.1.27/drivers/regulator/
Duserspace-consumer.c67 if (sysfs_streq(buf, "enabled\n") || sysfs_streq(buf, "1")) in reg_set_state()
69 else if (sysfs_streq(buf, "disabled\n") || sysfs_streq(buf, "0")) in reg_set_state()
Dvirtual.c245 if (sysfs_streq(buf, "fast\n")) in set_mode()
247 else if (sysfs_streq(buf, "normal\n")) in set_mode()
249 else if (sysfs_streq(buf, "idle\n")) in set_mode()
251 else if (sysfs_streq(buf, "standby\n")) in set_mode()
/linux-4.1.27/drivers/misc/mic/host/
Dmic_sysfs.c141 if (sysfs_streq(buf, "boot")) { in state_store()
151 if (sysfs_streq(buf, "reset")) { in state_store()
156 if (sysfs_streq(buf, "shutdown")) { in state_store()
161 if (sysfs_streq(buf, "suspend")) { in state_store()
347 if (!sysfs_streq(buf, "linux") && !sysfs_streq(buf, "elf")) in bootmode_store()
/linux-4.1.27/drivers/gpu/drm/
Ddrm_sysfs.c184 if (sysfs_streq(buf, "detect")) { in status_store()
187 } else if (sysfs_streq(buf, "on")) { in status_store()
189 } else if (sysfs_streq(buf, "on-digital")) { in status_store()
191 } else if (sysfs_streq(buf, "off")) { in status_store()
/linux-4.1.27/drivers/staging/iio/frequency/
Dad9834.c159 if (sysfs_streq(buf, "sine")) { in ad9834_store_wavetype()
163 } else if (sysfs_streq(buf, "triangle")) { in ad9834_store_wavetype()
172 } else if (is_ad9833_7 && sysfs_streq(buf, "square")) { in ad9834_store_wavetype()
181 if (sysfs_streq(buf, "square") && in ad9834_store_wavetype()
/linux-4.1.27/drivers/gpio/
Dgpiolib-sysfs.c72 else if (sysfs_streq(buf, "high")) in gpio_direction_store()
74 else if (sysfs_streq(buf, "out") || sysfs_streq(buf, "low")) in gpio_direction_store()
76 else if (sysfs_streq(buf, "in")) in gpio_direction_store()
267 if (sysfs_streq(trigger_types[i].name, buf)) in gpio_edge_store()
/linux-4.1.27/drivers/base/
Dmemory.c320 if (sysfs_streq(buf, "online_kernel")) in store_mem_state()
322 else if (sysfs_streq(buf, "online_movable")) in store_mem_state()
324 else if (sysfs_streq(buf, "online")) in store_mem_state()
326 else if (sysfs_streq(buf, "offline")) in store_mem_state()
Dbus.c358 return sysfs_streq(name, dev_name(dev)); in match_name()
/linux-4.1.27/drivers/misc/
Dspear13xx_pcie_gadget.c241 if (sysfs_streq(buf, "UP")) in pcie_gadget_store_link()
244 else if (sysfs_streq(buf, "DOWN")) in pcie_gadget_store_link()
267 if (sysfs_streq(buf, "INTA")) in pcie_gadget_store_int_type()
270 else if (sysfs_streq(buf, "MSI")) { in pcie_gadget_store_int_type()
Dapds990x.c860 if (sysfs_streq(buf, reporting_modes[0])) in apds990x_prox_reporting_mode_store()
862 else if (sysfs_streq(buf, reporting_modes[1])) in apds990x_prox_reporting_mode_store()
/linux-4.1.27/drivers/block/zram/
Dzcomp.c58 if (sysfs_streq(compress, backends[i]->name)) in find_backend()
277 if (sysfs_streq(comp, backends[i]->name)) in zcomp_available_show()
/linux-4.1.27/drivers/pwm/
Dsysfs.c148 if (sysfs_streq(buf, "normal")) in pwm_polarity_store()
150 else if (sysfs_streq(buf, "inversed")) in pwm_polarity_store()
/linux-4.1.27/drivers/usb/gadget/udc/
Dudc-core.c512 if (sysfs_streq(buf, "1")) in usb_udc_srp_store()
529 if (sysfs_streq(buf, "connect")) { in usb_udc_softconn_store()
532 } else if (sysfs_streq(buf, "disconnect")) { in usb_udc_softconn_store()
/linux-4.1.27/include/linux/
Dstring.h125 extern bool sysfs_streq(const char *s1, const char *s2);
/linux-4.1.27/lib/
Dstring.c527 bool sysfs_streq(const char *s1, const char *s2) in sysfs_streq() function
542 EXPORT_SYMBOL(sysfs_streq);
/linux-4.1.27/drivers/leds/
Dleds-lp5562.c447 if (sysfs_streq(buf, "RGB")) { in lp5562_store_engine_mux()
450 } else if (sysfs_streq(buf, "W")) { in lp5562_store_engine_mux()
Dleds-lm3530.c150 if (sysfs_streq(str, mode_map[i].mode)) in lm3530_get_mode_from_str()
/linux-4.1.27/drivers/video/fbdev/omap2/dss/
Dmanager-sysfs.c51 return sysfs_streq(dssdev->name, str); in manager_display_match()
191 if (sysfs_streq(buf, trans_key_type_str[key_type])) in manager_trans_key_type_store()
Doverlay-sysfs.c60 if (sysfs_streq(buf, mgr->name)) in overlay_manager_store()
/linux-4.1.27/drivers/staging/iio/impedance-analyzer/
Dad5933.c424 if (sysfs_streq(buf, "1")) { in ad5933_store()
426 } else if (sysfs_streq(buf, "0.2")) { in ad5933_store()
/linux-4.1.27/drivers/s390/block/
Ddasd_devmap.c1371 if (sysfs_streq("ignore", buf)) in dasd_reservation_policy_store()
1373 else if (sysfs_streq("fail", buf)) in dasd_reservation_policy_store()
1420 if (sysfs_streq("reset", buf)) in dasd_reservation_state_store()
/linux-4.1.27/drivers/iio/adc/
Dad7791.c285 if (sysfs_streq(ad7791_sample_freq_avail[i], buf)) { in ad7791_write_frequency()
/linux-4.1.27/drivers/usb/misc/
Dusbsevseg.c310 if (sysfs_streq(display_textmodes[i], buf)) { in set_attr_textmode()
/linux-4.1.27/drivers/iio/
Dindustrialio-trigger.c108 if (sysfs_streq(iter->name, name)) { in iio_trigger_find_by_name()
Dindustrialio-core.c381 if (sysfs_streq(buf, e->items[i])) in iio_enum_write()
/linux-4.1.27/drivers/input/mouse/
Dcyapa.c721 if (sysfs_streq(buf, BTN_ONLY_MODE_NAME)) { in cyapa_update_suspend_scanrate()
723 } else if (sysfs_streq(buf, OFF_MODE_NAME)) { in cyapa_update_suspend_scanrate()
/linux-4.1.27/drivers/scsi/
Dscsi_sysfs.c252 if (sysfs_streq(str, "adapter")) in check_reset_type()
254 else if (sysfs_streq(str, "firmware")) in check_reset_type()
/linux-4.1.27/drivers/usb/musb/
Dmusb_core.c1717 if (sysfs_streq(buf, "host")) in musb_mode_store()
1719 else if (sysfs_streq(buf, "peripheral")) in musb_mode_store()
1721 else if (sysfs_streq(buf, "otg")) in musb_mode_store()
/linux-4.1.27/drivers/block/
Dvirtio_blk.c515 if (sysfs_streq(buf, virtblk_cache_types[i])) in virtblk_cache_type_store()
/linux-4.1.27/sound/soc/omap/
Dmcbsp.c833 if (sysfs_streq(buf, *s)) in dma_op_mode_store()
/linux-4.1.27/arch/s390/kernel/
Dipl.c1641 if (sysfs_streq(buf, shutdown_actions_list[i]->name)) { in set_trigger()