Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/s390/net/
Dqeth_l2_sys.c78 if (sysfs_streq(buf, "primary")) in qeth_bridge_port_role_store()
80 else if (sysfs_streq(buf, "secondary")) in qeth_bridge_port_role_store()
82 else if (sysfs_streq(buf, "none")) in qeth_bridge_port_role_store()
139 if (sysfs_streq(buf, "0")) in qeth_bridgeport_hostnotification_store()
141 else if (sysfs_streq(buf, "1")) in qeth_bridgeport_hostnotification_store()
194 if (sysfs_streq(buf, "none")) { in qeth_bridgeport_reflect_store()
197 } else if (sysfs_streq(buf, "primary")) { in qeth_bridgeport_reflect_store()
200 } else if (sysfs_streq(buf, "secondary")) { in qeth_bridgeport_reflect_store()
Dqeth_core_sys.c220 if (sysfs_streq(buf, "prio_queueing_prec")) { in qeth_dev_prioqing_store()
223 } else if (sysfs_streq(buf, "prio_queueing_skb")) { in qeth_dev_prioqing_store()
226 } else if (sysfs_streq(buf, "prio_queueing_tos")) { in qeth_dev_prioqing_store()
229 } else if (sysfs_streq(buf, "prio_queueing_vlan")) { in qeth_dev_prioqing_store()
236 } else if (sysfs_streq(buf, "no_prio_queueing:0")) { in qeth_dev_prioqing_store()
239 } else if (sysfs_streq(buf, "no_prio_queueing:1")) { in qeth_dev_prioqing_store()
242 } else if (sysfs_streq(buf, "no_prio_queueing:2")) { in qeth_dev_prioqing_store()
245 } else if (sysfs_streq(buf, "no_prio_queueing:3")) { in qeth_dev_prioqing_store()
248 } else if (sysfs_streq(buf, "no_prio_queueing")) { in qeth_dev_prioqing_store()
479 if (sysfs_streq(buf, ATTR_QETH_ISOLATION_NONE)) { in qeth_dev_isolation_store()
[all …]
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.4.14/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.4.14/drivers/misc/mic/cosm/
Dcosm_sysfs.c112 if (sysfs_streq(buf, "boot")) { in state_store()
116 if (sysfs_streq(buf, "reset")) { in state_store()
121 if (sysfs_streq(buf, "shutdown")) { in state_store()
348 if (!sysfs_streq(buf, "linux") && !sysfs_streq(buf, "flash")) in bootmode_store()
/linux-4.4.14/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.4.14/drivers/gpu/drm/
Ddrm_sysfs.c179 if (sysfs_streq(buf, "detect")) { in status_store()
182 } else if (sysfs_streq(buf, "on")) { in status_store()
184 } else if (sysfs_streq(buf, "on-digital")) { in status_store()
186 } else if (sysfs_streq(buf, "off")) { in status_store()
/linux-4.4.14/drivers/gpio/
Dgpiolib-sysfs.c84 if (sysfs_streq(buf, "high")) in direction_store()
86 else if (sysfs_streq(buf, "out") || sysfs_streq(buf, "low")) in direction_store()
88 else if (sysfs_streq(buf, "in")) in direction_store()
259 if (sysfs_streq(trigger_types[i].name, buf)) in edge_store()
/linux-4.4.14/drivers/base/
Dmemory.c324 if (sysfs_streq(buf, "online_kernel")) in store_mem_state()
326 else if (sysfs_streq(buf, "online_movable")) in store_mem_state()
328 else if (sysfs_streq(buf, "online")) in store_mem_state()
330 else if (sysfs_streq(buf, "offline")) in store_mem_state()
Dbus.c359 return sysfs_streq(name, dev_name(dev)); in match_name()
/linux-4.4.14/drivers/pwm/
Dsysfs.c158 if (sysfs_streq(buf, "normal")) in polarity_store()
160 else if (sysfs_streq(buf, "inversed")) in polarity_store()
/linux-4.4.14/drivers/misc/
Dspear13xx_pcie_gadget.c246 if (sysfs_streq(buf, "UP")) in pcie_gadget_link_store()
249 else if (sysfs_streq(buf, "DOWN")) in pcie_gadget_link_store()
270 if (sysfs_streq(buf, "INTA")) in pcie_gadget_int_type_store()
273 else if (sysfs_streq(buf, "MSI")) { in pcie_gadget_int_type_store()
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.4.14/drivers/usb/gadget/udc/
Dudc-core.c604 if (sysfs_streq(buf, "1")) in usb_udc_srp_store()
621 if (sysfs_streq(buf, "connect")) { in usb_udc_softconn_store()
624 } else if (sysfs_streq(buf, "disconnect")) { in usb_udc_softconn_store()
/linux-4.4.14/include/linux/
Dstring.h129 extern bool sysfs_streq(const char *s1, const char *s2);
/linux-4.4.14/lib/
Dstring.c616 bool sysfs_streq(const char *s1, const char *s2) in sysfs_streq() function
631 EXPORT_SYMBOL(sysfs_streq);
/linux-4.4.14/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.4.14/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.4.14/drivers/power/
Dtwl4030_charger.c758 if (sysfs_streq(buf, modes[0])) in twl4030_bci_mode_store()
760 else if (sysfs_streq(buf, modes[1])) in twl4030_bci_mode_store()
762 else if (sysfs_streq(buf, modes[2])) in twl4030_bci_mode_store()
/linux-4.4.14/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.4.14/drivers/block/zram/
Dzcomp.c58 if (sysfs_streq(compress, backends[i]->name)) in find_backend()
/linux-4.4.14/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.4.14/drivers/iio/adc/
Dad7791.c285 if (sysfs_streq(ad7791_sample_freq_avail[i], buf)) { in ad7791_write_frequency()
/linux-4.4.14/drivers/char/hw_random/
Dcore.c326 if (sysfs_streq(rng->name, buf)) { in hwrng_attr_current_store()
/linux-4.4.14/drivers/usb/misc/
Dusbsevseg.c310 if (sysfs_streq(display_textmodes[i], buf)) { in set_attr_textmode()
/linux-4.4.14/drivers/iio/
Dindustrialio-trigger.c115 if (sysfs_streq(iter->name, name)) { in iio_trigger_find_by_name()
Dindustrialio-core.c399 if (sysfs_streq(buf, e->items[i])) in iio_enum_write()
/linux-4.4.14/drivers/input/mouse/
Dcyapa.c787 if (sysfs_streq(buf, BTN_ONLY_MODE_NAME)) { in cyapa_update_suspend_scanrate()
789 } else if (sysfs_streq(buf, OFF_MODE_NAME)) { in cyapa_update_suspend_scanrate()
/linux-4.4.14/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.4.14/drivers/usb/musb/
Dmusb_core.c1733 if (sysfs_streq(buf, "host")) in musb_mode_store()
1735 else if (sysfs_streq(buf, "peripheral")) in musb_mode_store()
1737 else if (sysfs_streq(buf, "otg")) in musb_mode_store()
/linux-4.4.14/drivers/hwtracing/stm/
Dcore.c87 return sysfs_streq(name, dev_name(dev)); in stm_dev_match()
/linux-4.4.14/Documentation/filesystems/
Dsysfs.txt196 functions like sysfs_streq() safe to use.
/linux-4.4.14/drivers/block/
Dvirtio_blk.c514 if (sysfs_streq(buf, virtblk_cache_types[i])) in virtblk_cache_type_store()
/linux-4.4.14/sound/soc/omap/
Dmcbsp.c833 if (sysfs_streq(buf, *s)) in dma_op_mode_store()
/linux-4.4.14/arch/s390/kernel/
Dipl.c1666 if (sysfs_streq(buf, shutdown_actions_list[i]->name)) { in set_trigger()