Home
last modified time | relevance | path

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

123

/Linux-v5.4/drivers/s390/net/
Dqeth_l2_sys.c86 if (sysfs_streq(buf, "primary")) in qeth_bridge_port_role_store()
88 else if (sysfs_streq(buf, "secondary")) in qeth_bridge_port_role_store()
90 else if (sysfs_streq(buf, "none")) in qeth_bridge_port_role_store()
219 if (sysfs_streq(buf, "none")) { in qeth_bridgeport_reflect_store()
222 } else if (sysfs_streq(buf, "primary")) { in qeth_bridgeport_reflect_store()
225 } else if (sysfs_streq(buf, "secondary")) { in qeth_bridgeport_reflect_store()
304 if (sysfs_streq(attr_name, "flooding")) in qeth_l2_vnicc_sysfs_attr_to_char()
306 else if (sysfs_streq(attr_name, "mcast_flooding")) in qeth_l2_vnicc_sysfs_attr_to_char()
308 else if (sysfs_streq(attr_name, "learning")) in qeth_l2_vnicc_sysfs_attr_to_char()
310 else if (sysfs_streq(attr_name, "takeover_setvmac")) in qeth_l2_vnicc_sysfs_attr_to_char()
[all …]
Dqeth_core_sys.c219 if (sysfs_streq(buf, "prio_queueing_prec")) { in qeth_dev_prioqing_store()
222 } else if (sysfs_streq(buf, "prio_queueing_skb")) { in qeth_dev_prioqing_store()
225 } else if (sysfs_streq(buf, "prio_queueing_tos")) { in qeth_dev_prioqing_store()
228 } else if (sysfs_streq(buf, "prio_queueing_vlan")) { in qeth_dev_prioqing_store()
235 } else if (sysfs_streq(buf, "no_prio_queueing:0")) { in qeth_dev_prioqing_store()
238 } else if (sysfs_streq(buf, "no_prio_queueing:1")) { in qeth_dev_prioqing_store()
241 } else if (sysfs_streq(buf, "no_prio_queueing:2")) { in qeth_dev_prioqing_store()
244 } else if (sysfs_streq(buf, "no_prio_queueing:3")) { in qeth_dev_prioqing_store()
247 } else if (sysfs_streq(buf, "no_prio_queueing")) { in qeth_dev_prioqing_store()
490 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()
361 if (sysfs_streq(buf, "toggle")) { in qeth_l3_dev_ipato_enable_store()
406 if (sysfs_streq(buf, "toggle")) { in qeth_l3_dev_ipato_invert4_store()
592 if (sysfs_streq(buf, "toggle")) { in qeth_l3_dev_ipato_invert6_store()
/Linux-v5.4/drivers/regulator/
Duserspace-consumer.c62 if (sysfs_streq(buf, "enabled\n") || sysfs_streq(buf, "1")) in reg_set_state()
64 else if (sysfs_streq(buf, "disabled\n") || sysfs_streq(buf, "0")) in reg_set_state()
Dvirtual.c241 if (sysfs_streq(buf, "fast\n")) in set_mode()
243 else if (sysfs_streq(buf, "normal\n")) in set_mode()
245 else if (sysfs_streq(buf, "idle\n")) in set_mode()
247 else if (sysfs_streq(buf, "standby\n")) in set_mode()
/Linux-v5.4/drivers/base/power/
Dsysfs.c111 if (sysfs_streq(buf, ctrl_auto)) in control_store()
113 else if (sysfs_streq(buf, ctrl_on)) in control_store()
237 } else if (sysfs_streq(buf, "n/a")) { in pm_qos_resume_latency_us_store()
276 if (sysfs_streq(buf, "auto")) in pm_qos_latency_tolerance_us_store()
278 else if (sysfs_streq(buf, "any")) in pm_qos_latency_tolerance_us_store()
333 if (sysfs_streq(buf, _enabled)) in wakeup_store()
335 else if (sysfs_streq(buf, _disabled)) in wakeup_store()
548 if (sysfs_streq(buf, _enabled)) in async_store()
550 else if (sysfs_streq(buf, _disabled)) in async_store()
/Linux-v5.4/arch/powerpc/platforms/pseries/
Ddlpar.c412 if (sysfs_streq(arg, "memory")) { in dlpar_parse_resource()
414 } else if (sysfs_streq(arg, "cpu")) { in dlpar_parse_resource()
432 if (sysfs_streq(arg, "add")) { in dlpar_parse_action()
434 } else if (sysfs_streq(arg, "remove")) { in dlpar_parse_action()
453 if (sysfs_streq(arg, "indexed-count")) { in dlpar_parse_id_type()
479 } else if (sysfs_streq(arg, "index")) { in dlpar_parse_id_type()
493 } else if (sysfs_streq(arg, "count")) { in dlpar_parse_id_type()
/Linux-v5.4/drivers/staging/most/
Dconfigfs.c163 if (!sysfs_streq(page, "dir_rx") && !sysfs_streq(page, "rx") && in mdev_link_direction_store()
164 !sysfs_streq(page, "dir_tx") && !sysfs_streq(page, "tx")) in mdev_link_direction_store()
180 if (!sysfs_streq(page, "control") && !sysfs_streq(page, "async") && in mdev_link_datatype_store()
181 !sysfs_streq(page, "sync") && !sysfs_streq(page, "isoc") && in mdev_link_datatype_store()
182 !sysfs_streq(page, "isoc_avp")) in mdev_link_datatype_store()
/Linux-v5.4/drivers/misc/mic/cosm/
Dcosm_sysfs.c100 if (sysfs_streq(buf, "boot")) { in state_store()
104 if (sysfs_streq(buf, "reset")) { in state_store()
109 if (sysfs_streq(buf, "shutdown")) { in state_store()
336 if (!sysfs_streq(buf, "linux") && !sysfs_streq(buf, "flash")) in bootmode_store()
/Linux-v5.4/drivers/gpu/drm/
Ddrm_sysfs.c125 if (sysfs_streq(buf, "detect")) in status_store()
127 else if (sysfs_streq(buf, "on")) in status_store()
129 else if (sysfs_streq(buf, "on-digital")) in status_store()
131 else if (sysfs_streq(buf, "off")) in status_store()
/Linux-v5.4/drivers/staging/greybus/
Darche-apb-ctrl.c257 if (sysfs_streq(buf, "off")) { in state_store()
262 } else if (sysfs_streq(buf, "active")) { in state_store()
272 } else if (sysfs_streq(buf, "standby")) { in state_store()
277 } else if (sysfs_streq(buf, "fw_flashing")) { in state_store()
Darche-platform.c316 if (sysfs_streq(buf, "off")) { in state_store()
325 } else if (sysfs_streq(buf, "active")) { in state_store()
340 } else if (sysfs_streq(buf, "standby")) { in state_store()
345 } else if (sysfs_streq(buf, "fw_flashing")) { in state_store()
/Linux-v5.4/drivers/base/
Dmemory.c326 if (sysfs_streq(buf, "online_kernel")) in state_store()
328 else if (sysfs_streq(buf, "online_movable")) in state_store()
330 else if (sysfs_streq(buf, "online")) in state_store()
332 else if (sysfs_streq(buf, "offline")) in state_store()
471 if (sysfs_streq(buf, "online")) in auto_online_blocks_store()
473 else if (sysfs_streq(buf, "offline")) in auto_online_blocks_store()
/Linux-v5.4/drivers/remoteproc/
Dremoteproc_sysfs.c96 if (sysfs_streq(buf, "start")) { in state_store()
103 } else if (sysfs_streq(buf, "stop")) { in state_store()
/Linux-v5.4/drivers/nvme/target/
Dconfigfs.c65 if (sysfs_streq(page, "ipv4")) { in nvmet_addr_adrfam_store()
67 } else if (sysfs_streq(page, "ipv6")) { in nvmet_addr_adrfam_store()
69 } else if (sysfs_streq(page, "ib")) { in nvmet_addr_adrfam_store()
71 } 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()
286 if (sysfs_streq(page, nvmet_transport_names[i].name)) in nvmet_addr_trtype_store()
898 if (sysfs_streq(name, NVME_DISC_SUBSYS_NAME)) { in nvmet_subsys_make()
1050 if (sysfs_streq(page, nvmet_ana_state_names[i].name)) in nvmet_ana_group_ana_state_store()
/Linux-v5.4/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-v5.4/drivers/staging/iio/frequency/
Dad9834.c235 if (sysfs_streq(buf, "sine")) { in ad9834_store_wavetype()
239 } else if (sysfs_streq(buf, "triangle")) { in ad9834_store_wavetype()
248 } else if (is_ad9833_7 && sysfs_streq(buf, "square")) { in ad9834_store_wavetype()
257 if (sysfs_streq(buf, "square") && in ad9834_store_wavetype()
/Linux-v5.4/drivers/i2c/
Di2c-core-of.c195 if (sysfs_streq(client->name, matches->compatible)) in i2c_of_match_device_sysfs()
204 if (sysfs_streq(client->name, name)) in i2c_of_match_device_sysfs()
/Linux-v5.4/drivers/hwmon/pmbus/
Dinspur-ipsps.c140 if (sysfs_streq(MODE_STANDBY_STRING, buf)) { in ipsps_mode_store()
146 } else if (sysfs_streq(MODE_ACTIVE_STRING, buf)) { in ipsps_mode_store()
/Linux-v5.4/drivers/iio/
Dindustrialio-core.c1294 if (sysfs_streq(buf, "realtime")) in iio_store_timestamp_clock()
1296 else if (sysfs_streq(buf, "monotonic")) in iio_store_timestamp_clock()
1298 else if (sysfs_streq(buf, "monotonic_raw")) in iio_store_timestamp_clock()
1300 else if (sysfs_streq(buf, "realtime_coarse")) in iio_store_timestamp_clock()
1302 else if (sysfs_streq(buf, "monotonic_coarse")) in iio_store_timestamp_clock()
1304 else if (sysfs_streq(buf, "boottime")) in iio_store_timestamp_clock()
1306 else if (sysfs_streq(buf, "tai")) in iio_store_timestamp_clock()
/Linux-v5.4/lib/
Dstring.c662 bool sysfs_streq(const char *s1, const char *s2) in sysfs_streq() function
677 EXPORT_SYMBOL(sysfs_streq);
723 if (sysfs_streq(item, str)) in __sysfs_match_string()
/Linux-v5.4/drivers/leds/
Dled-triggers.c43 if (sysfs_streq(buf, "none")) { in led_trigger_store()
50 if (sysfs_streq(buf, trig->name)) { in led_trigger_store()
/Linux-v5.4/drivers/soc/xilinx/
Dzynqmp_power.c102 sysfs_streq(suspend_modes[md], buf)) { in suspend_mode_store()
/Linux-v5.4/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-v5.4/drivers/watchdog/
Dwatchdog_pretimeout.c44 if (sysfs_streq(gov_name, priv->gov->name)) in find_governor_by_name()

123