Home
last modified time | relevance | path

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

/linux-4.19.296/drivers/s390/net/
Dqeth_l2_sys.c84 if (sysfs_streq(buf, "primary")) in qeth_bridge_port_role_store()
86 else if (sysfs_streq(buf, "secondary")) in qeth_bridge_port_role_store()
88 else if (sysfs_streq(buf, "none")) in qeth_bridge_port_role_store()
213 if (sysfs_streq(buf, "none")) { in qeth_bridgeport_reflect_store()
216 } else if (sysfs_streq(buf, "primary")) { in qeth_bridgeport_reflect_store()
219 } else if (sysfs_streq(buf, "secondary")) { in qeth_bridgeport_reflect_store()
292 if (sysfs_streq(attr_name, "flooding")) in qeth_l2_vnicc_sysfs_attr_to_char()
294 else if (sysfs_streq(attr_name, "mcast_flooding")) in qeth_l2_vnicc_sysfs_attr_to_char()
296 else if (sysfs_streq(attr_name, "learning")) in qeth_l2_vnicc_sysfs_attr_to_char()
298 else if (sysfs_streq(attr_name, "takeover_setvmac")) in qeth_l2_vnicc_sysfs_attr_to_char()
[all …]
Dqeth_core_sys.c221 if (sysfs_streq(buf, "prio_queueing_prec")) { in qeth_dev_prioqing_store()
224 } else if (sysfs_streq(buf, "prio_queueing_skb")) { in qeth_dev_prioqing_store()
227 } else if (sysfs_streq(buf, "prio_queueing_tos")) { in qeth_dev_prioqing_store()
230 } else if (sysfs_streq(buf, "prio_queueing_vlan")) { in qeth_dev_prioqing_store()
237 } else if (sysfs_streq(buf, "no_prio_queueing:0")) { in qeth_dev_prioqing_store()
240 } else if (sysfs_streq(buf, "no_prio_queueing:1")) { in qeth_dev_prioqing_store()
243 } else if (sysfs_streq(buf, "no_prio_queueing:2")) { in qeth_dev_prioqing_store()
246 } else if (sysfs_streq(buf, "no_prio_queueing:3")) { in qeth_dev_prioqing_store()
253 } else if (sysfs_streq(buf, "no_prio_queueing")) { in qeth_dev_prioqing_store()
500 if (sysfs_streq(buf, ATTR_QETH_ISOLATION_NONE)) { in qeth_dev_isolation_store()
[all …]
Dqeth_l3_sys.c77 if (sysfs_streq(buf, "no_router")) { in qeth_l3_dev_route_store()
79 } else if (sysfs_streq(buf, "primary_connector")) { in qeth_l3_dev_route_store()
81 } else if (sysfs_streq(buf, "secondary_connector")) { in qeth_l3_dev_route_store()
83 } else if (sysfs_streq(buf, "primary_router")) { in qeth_l3_dev_route_store()
85 } else if (sysfs_streq(buf, "secondary_router")) { in qeth_l3_dev_route_store()
87 } else if (sysfs_streq(buf, "multicast_router")) { in qeth_l3_dev_route_store()
365 if (sysfs_streq(buf, "toggle")) { in qeth_l3_dev_ipato_enable_store()
410 if (sysfs_streq(buf, "toggle")) { in qeth_l3_dev_ipato_invert4_store()
596 if (sysfs_streq(buf, "toggle")) { in qeth_l3_dev_ipato_invert6_store()
/linux-4.19.296/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.19.296/drivers/base/power/
Dsysfs.c112 if (sysfs_streq(buf, ctrl_auto)) in control_store()
114 else if (sysfs_streq(buf, ctrl_on)) in control_store()
241 } else if (sysfs_streq(buf, "n/a")) { in pm_qos_resume_latency_us_store()
280 if (sysfs_streq(buf, "auto")) in pm_qos_latency_tolerance_us_store()
282 else if (sysfs_streq(buf, "any")) in pm_qos_latency_tolerance_us_store()
337 if (sysfs_streq(buf, _enabled)) in wakeup_store()
339 else if (sysfs_streq(buf, _disabled)) in wakeup_store()
552 if (sysfs_streq(buf, _enabled)) in async_store()
554 else if (sysfs_streq(buf, _disabled)) in async_store()
/linux-4.19.296/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.19.296/drivers/base/
Dmemory.c335 if (sysfs_streq(buf, "online_kernel")) in store_mem_state()
337 else if (sysfs_streq(buf, "online_movable")) in store_mem_state()
339 else if (sysfs_streq(buf, "online")) in store_mem_state()
341 else if (sysfs_streq(buf, "offline")) in store_mem_state()
482 if (sysfs_streq(buf, "online")) in store_auto_online_blocks()
484 else if (sysfs_streq(buf, "offline")) in store_auto_online_blocks()
Dbus.c359 return sysfs_streq(name, dev_name(dev)); in match_name()
/linux-4.19.296/drivers/gpio/
Dgpiolib-sysfs.c86 if (sysfs_streq(buf, "high")) in direction_store()
88 else if (sysfs_streq(buf, "out") || sysfs_streq(buf, "low")) in direction_store()
90 else if (sysfs_streq(buf, "in")) in direction_store()
271 if (sysfs_streq(trigger_types[i].name, buf)) in edge_store()
/linux-4.19.296/drivers/i2c/
Di2c-core-of.c203 if (sysfs_streq(client->name, matches->compatible)) in i2c_of_match_device_sysfs()
212 if (sysfs_streq(client->name, name)) in i2c_of_match_device_sysfs()
/linux-4.19.296/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()
Dad525x_dpot.c455 if (sysfs_streq(buf, "enabled")) in sysfs_set_reg()
/linux-4.19.296/drivers/iio/
Dindustrialio-core.c1314 if (sysfs_streq(buf, "realtime")) in iio_store_timestamp_clock()
1316 else if (sysfs_streq(buf, "monotonic")) in iio_store_timestamp_clock()
1318 else if (sysfs_streq(buf, "monotonic_raw")) in iio_store_timestamp_clock()
1320 else if (sysfs_streq(buf, "realtime_coarse")) in iio_store_timestamp_clock()
1322 else if (sysfs_streq(buf, "monotonic_coarse")) in iio_store_timestamp_clock()
1324 else if (sysfs_streq(buf, "boottime")) in iio_store_timestamp_clock()
1326 else if (sysfs_streq(buf, "tai")) in iio_store_timestamp_clock()
Dindustrialio-trigger.c155 if (sysfs_streq(iter->name, name)) { in iio_trigger_acquire_by_name()
/linux-4.19.296/lib/
Dstring.c674 bool sysfs_streq(const char *s1, const char *s2) in sysfs_streq() function
689 EXPORT_SYMBOL(sysfs_streq);
735 if (sysfs_streq(item, str)) in __sysfs_match_string()
/linux-4.19.296/drivers/pwm/
Dsysfs.c195 if (sysfs_streq(buf, "normal")) in polarity_store()
197 else if (sysfs_streq(buf, "inversed")) in polarity_store()
/linux-4.19.296/drivers/char/hw_random/
Dcore.c330 if (sysfs_streq(buf, "")) { in hwrng_attr_current_store()
334 if (sysfs_streq(rng->name, buf)) { in hwrng_attr_current_store()
/linux-4.19.296/drivers/s390/block/
Ddasd_devmap.c1430 if (sysfs_streq("ignore", buf)) in dasd_reservation_policy_store()
1432 else if (sysfs_streq("fail", buf)) in dasd_reservation_policy_store()
1474 if (sysfs_streq("reset", buf)) in dasd_reservation_state_store()
/linux-4.19.296/include/linux/
Dstring.h184 extern bool sysfs_streq(const char *s1, const char *s2);
/linux-4.19.296/drivers/media/rc/
Drc-main.c1515 if (sysfs_streq(buf, "none")) { in store_wakeup_protocols()
1520 sysfs_streq(buf, protocols[i].name)) { in store_wakeup_protocols()