Home
last modified time | relevance | path

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

12

/Linux-v4.19/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-v4.19/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-v4.19/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-v4.19/arch/powerpc/platforms/pseries/
Ddlpar.c418 if (sysfs_streq(arg, "memory")) { in dlpar_parse_resource()
420 } else if (sysfs_streq(arg, "cpu")) { in dlpar_parse_resource()
438 if (sysfs_streq(arg, "add")) { in dlpar_parse_action()
440 } else if (sysfs_streq(arg, "remove")) { in dlpar_parse_action()
459 if (sysfs_streq(arg, "indexed-count")) { in dlpar_parse_id_type()
485 } else if (sysfs_streq(arg, "index")) { in dlpar_parse_id_type()
499 } else if (sysfs_streq(arg, "count")) { in dlpar_parse_id_type()
/Linux-v4.19/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-v4.19/drivers/gpu/drm/
Ddrm_sysfs.c116 if (sysfs_streq(buf, "detect")) in status_store()
118 else if (sysfs_streq(buf, "on")) in status_store()
120 else if (sysfs_streq(buf, "on-digital")) in status_store()
122 else if (sysfs_streq(buf, "off")) in status_store()
/Linux-v4.19/drivers/remoteproc/
Dremoteproc_sysfs.c99 if (sysfs_streq(buf, "start")) { in state_store()
106 } else if (sysfs_streq(buf, "stop")) { in state_store()
/Linux-v4.19/drivers/base/
Dmemory.c331 if (sysfs_streq(buf, "online_kernel")) in store_mem_state()
333 else if (sysfs_streq(buf, "online_movable")) in store_mem_state()
335 else if (sysfs_streq(buf, "online")) in store_mem_state()
337 else if (sysfs_streq(buf, "offline")) in store_mem_state()
487 if (sysfs_streq(buf, "online")) in store_auto_online_blocks()
489 else if (sysfs_streq(buf, "offline")) in store_auto_online_blocks()
/Linux-v4.19/drivers/staging/greybus/
Darche-apb-ctrl.c262 if (sysfs_streq(buf, "off")) { in state_store()
267 } else if (sysfs_streq(buf, "active")) { in state_store()
277 } else if (sysfs_streq(buf, "standby")) { in state_store()
282 } else if (sysfs_streq(buf, "fw_flashing")) { in state_store()
Darche-platform.c323 if (sysfs_streq(buf, "off")) { in state_store()
332 } else if (sysfs_streq(buf, "active")) { in state_store()
347 } else if (sysfs_streq(buf, "standby")) { in state_store()
352 } else if (sysfs_streq(buf, "fw_flashing")) { in state_store()
/Linux-v4.19/drivers/nvme/target/
Dconfigfs.c67 if (sysfs_streq(page, "ipv4")) { in nvmet_addr_adrfam_store()
69 } else if (sysfs_streq(page, "ipv6")) { in nvmet_addr_adrfam_store()
71 } else if (sysfs_streq(page, "ib")) { in nvmet_addr_adrfam_store()
73 } else if (sysfs_streq(page, "fc")) { in nvmet_addr_adrfam_store()
174 if (sysfs_streq(page, "not specified")) { in nvmet_addr_treq_store()
176 } else if (sysfs_streq(page, "required")) { in nvmet_addr_treq_store()
178 } else if (sysfs_streq(page, "not required")) { in nvmet_addr_treq_store()
285 if (sysfs_streq(page, nvmet_transport_names[i].name)) in nvmet_addr_trtype_store()
841 if (sysfs_streq(name, NVME_DISC_SUBSYS_NAME)) { in nvmet_subsys_make()
992 if (sysfs_streq(page, nvmet_ana_state_names[i].name)) in nvmet_ana_group_ana_state_store()
/Linux-v4.19/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-v4.19/drivers/staging/iio/frequency/
Dad9834.c232 if (sysfs_streq(buf, "sine")) { in ad9834_store_wavetype()
236 } else if (sysfs_streq(buf, "triangle")) { in ad9834_store_wavetype()
245 } else if (is_ad9833_7 && sysfs_streq(buf, "square")) { in ad9834_store_wavetype()
254 if (sysfs_streq(buf, "square") && in ad9834_store_wavetype()
/Linux-v4.19/drivers/i2c/
Di2c-core-of.c191 if (sysfs_streq(client->name, matches->compatible)) in i2c_of_match_device_sysfs()
200 if (sysfs_streq(client->name, name)) in i2c_of_match_device_sysfs()
/Linux-v4.19/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()
/Linux-v4.19/lib/
Dstring.c617 bool sysfs_streq(const char *s1, const char *s2) in sysfs_streq() function
632 EXPORT_SYMBOL(sysfs_streq);
678 if (sysfs_streq(item, str)) in __sysfs_match_string()
/Linux-v4.19/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()
/Linux-v4.19/drivers/pwm/
Dsysfs.c195 if (sysfs_streq(buf, "normal")) in polarity_store()
197 else if (sysfs_streq(buf, "inversed")) in polarity_store()
/Linux-v4.19/drivers/leds/
Dled-triggers.c47 if (sysfs_streq(buf, "none")) { in led_trigger_store()
54 if (sysfs_streq(buf, trig->name)) { in led_trigger_store()
Dleds-lp5562.c448 if (sysfs_streq(buf, "RGB")) { in lp5562_store_engine_mux()
451 } else if (sysfs_streq(buf, "W")) { in lp5562_store_engine_mux()
/Linux-v4.19/drivers/char/hw_random/
Dcore.c329 if (sysfs_streq(buf, "")) { in hwrng_attr_current_store()
333 if (sysfs_streq(rng->name, buf)) { in hwrng_attr_current_store()
/Linux-v4.19/drivers/watchdog/
Dwatchdog_pretimeout.c49 if (sysfs_streq(gov_name, priv->gov->name)) in find_governor_by_name()

12