Home
last modified time | relevance | path

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

1234

/linux-6.3-rc2/drivers/remoteproc/
A Dremoteproc_sysfs.c51 if (sysfs_streq(buf, "enabled")) { in recovery_store()
55 } else if (sysfs_streq(buf, "disabled")) { in recovery_store()
57 } else if (sysfs_streq(buf, "recover")) { in recovery_store()
115 if (sysfs_streq(buf, "disabled")) { in coredump_store()
117 } else if (sysfs_streq(buf, "enabled")) { in coredump_store()
119 } else if (sysfs_streq(buf, "inline")) { in coredump_store()
196 if (sysfs_streq(buf, "start")) { in state_store()
200 } else if (sysfs_streq(buf, "stop")) { in state_store()
202 } else if (sysfs_streq(buf, "detach")) { in state_store()
/linux-6.3-rc2/drivers/s390/net/
A Dqeth_l2_sys.c81 if (sysfs_streq(buf, "primary")) in qeth_bridge_port_role_store()
83 else if (sysfs_streq(buf, "secondary")) in qeth_bridge_port_role_store()
85 else if (sysfs_streq(buf, "none")) in qeth_bridge_port_role_store()
203 if (sysfs_streq(buf, "none")) { in qeth_bridgeport_reflect_store()
206 } else if (sysfs_streq(buf, "primary")) { in qeth_bridgeport_reflect_store()
209 } else if (sysfs_streq(buf, "secondary")) { in qeth_bridgeport_reflect_store()
255 if (sysfs_streq(attr_name, "flooding")) in qeth_l2_vnicc_sysfs_attr_to_char()
257 else if (sysfs_streq(attr_name, "mcast_flooding")) in qeth_l2_vnicc_sysfs_attr_to_char()
259 else if (sysfs_streq(attr_name, "learning")) in qeth_l2_vnicc_sysfs_attr_to_char()
261 else if (sysfs_streq(attr_name, "takeover_setvmac")) in qeth_l2_vnicc_sysfs_attr_to_char()
[all …]
A Dqeth_core_sys.c199 if (sysfs_streq(buf, "prio_queueing_prec")) { in qeth_dev_prioqing_store()
202 } else if (sysfs_streq(buf, "prio_queueing_skb")) { in qeth_dev_prioqing_store()
205 } else if (sysfs_streq(buf, "prio_queueing_tos")) { in qeth_dev_prioqing_store()
208 } else if (sysfs_streq(buf, "prio_queueing_vlan")) { in qeth_dev_prioqing_store()
215 } else if (sysfs_streq(buf, "no_prio_queueing:0")) { in qeth_dev_prioqing_store()
218 } else if (sysfs_streq(buf, "no_prio_queueing:1")) { in qeth_dev_prioqing_store()
221 } else if (sysfs_streq(buf, "no_prio_queueing:2")) { in qeth_dev_prioqing_store()
224 } else if (sysfs_streq(buf, "no_prio_queueing:3")) { in qeth_dev_prioqing_store()
227 } else if (sysfs_streq(buf, "no_prio_queueing")) { in qeth_dev_prioqing_store()
439 if (sysfs_streq(buf, ATTR_QETH_ISOLATION_NONE)) { in qeth_dev_isolation_store()
[all …]
A Dqeth_l3_sys.c74 if (sysfs_streq(buf, "no_router")) { in qeth_l3_dev_route_store()
76 } else if (sysfs_streq(buf, "primary_connector")) { in qeth_l3_dev_route_store()
78 } else if (sysfs_streq(buf, "secondary_connector")) { in qeth_l3_dev_route_store()
80 } else if (sysfs_streq(buf, "primary_router")) { in qeth_l3_dev_route_store()
82 } else if (sysfs_streq(buf, "secondary_router")) { in qeth_l3_dev_route_store()
84 } else if (sysfs_streq(buf, "multicast_router")) { in qeth_l3_dev_route_store()
305 if (sysfs_streq(buf, "toggle")) { in qeth_l3_dev_ipato_enable_store()
345 if (sysfs_streq(buf, "toggle")) { in qeth_l3_dev_ipato_invert4_store()
501 if (sysfs_streq(buf, "toggle")) { in qeth_l3_dev_ipato_invert6_store()
/linux-6.3-rc2/drivers/regulator/
A Duserspace-consumer.c64 if (sysfs_streq(buf, "enabled\n") || sysfs_streq(buf, "1")) in state_store()
66 else if (sysfs_streq(buf, "disabled\n") || sysfs_streq(buf, "0")) in state_store()
A Dvirtual.c242 if (sysfs_streq(buf, "fast\n")) in set_mode()
244 else if (sysfs_streq(buf, "normal\n")) in set_mode()
246 else if (sysfs_streq(buf, "idle\n")) in set_mode()
248 else if (sysfs_streq(buf, "standby\n")) in set_mode()
/linux-6.3-rc2/arch/powerpc/platforms/pseries/
A 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-6.3-rc2/drivers/base/power/
A Dsysfs.c112 if (sysfs_streq(buf, ctrl_auto)) in control_store()
114 else if (sysfs_streq(buf, ctrl_on)) in control_store()
242 } else if (sysfs_streq(buf, "n/a")) { in pm_qos_resume_latency_us_store()
281 if (sysfs_streq(buf, "auto")) in pm_qos_latency_tolerance_us_store()
283 else if (sysfs_streq(buf, "any")) in pm_qos_latency_tolerance_us_store()
338 if (sysfs_streq(buf, _enabled)) in wakeup_store()
340 else if (sysfs_streq(buf, _disabled)) in wakeup_store()
599 if (sysfs_streq(buf, _enabled)) in async_store()
601 else if (sysfs_streq(buf, _disabled)) in async_store()
/linux-6.3-rc2/drivers/most/
A Dconfigfs.c170 if (!sysfs_streq(page, "dir_rx") && !sysfs_streq(page, "rx") && in mdev_link_direction_store()
171 !sysfs_streq(page, "dir_tx") && !sysfs_streq(page, "tx")) in mdev_link_direction_store()
188 if (!sysfs_streq(page, "control") && !sysfs_streq(page, "async") && in mdev_link_datatype_store()
189 !sysfs_streq(page, "sync") && !sysfs_streq(page, "isoc") && in mdev_link_datatype_store()
190 !sysfs_streq(page, "isoc_avp")) in mdev_link_datatype_store()
A Dmost_usb.c813 if (sysfs_streq(name, regs[i].name)) { in get_stat_reg_addr()
833 if (sysfs_streq(name, "arb_address")) in value_show()
836 if (sysfs_streq(name, "arb_value")) in value_show()
863 if (sysfs_streq(name, "arb_address")) { in value_store()
868 if (sysfs_streq(name, "arb_value")) in value_store()
870 else if (sysfs_streq(name, "sync_ep")) in value_store()
/linux-6.3-rc2/drivers/staging/greybus/
A 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()
A Darche-platform.c314 if (sysfs_streq(buf, "off")) { in state_store()
323 } else if (sysfs_streq(buf, "active")) { in state_store()
338 } else if (sysfs_streq(buf, "standby")) { in state_store()
343 } else if (sysfs_streq(buf, "fw_flashing")) { in state_store()
/linux-6.3-rc2/drivers/gpu/drm/
A Ddrm_sysfs.c170 if (sysfs_streq(buf, "detect")) in status_store()
172 else if (sysfs_streq(buf, "on")) in status_store()
174 else if (sysfs_streq(buf, "on-digital")) in status_store()
176 else if (sysfs_streq(buf, "off")) in status_store()
A Ddrm_debugfs.c397 if (sysfs_streq(buf, "on")) in connector_write()
399 else if (sysfs_streq(buf, "digital")) in connector_write()
401 else if (sysfs_streq(buf, "off")) in connector_write()
403 else if (sysfs_streq(buf, "unspecified")) in connector_write()
/linux-6.3-rc2/drivers/i2c/
A Di2c-core-of.c129 if (sysfs_streq(client->name, matches->compatible)) in i2c_of_match_device_sysfs()
138 if (sysfs_streq(client->name, name)) in i2c_of_match_device_sysfs()
/linux-6.3-rc2/drivers/hwmon/pmbus/
A 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-6.3-rc2/drivers/staging/iio/frequency/
A Dad9834.c234 if (sysfs_streq(buf, "sine")) { in ad9834_store_wavetype()
238 } else if (sysfs_streq(buf, "triangle")) { in ad9834_store_wavetype()
247 } else if (is_ad9833_7 && sysfs_streq(buf, "square")) { in ad9834_store_wavetype()
256 if (sysfs_streq(buf, "square") && in ad9834_store_wavetype()
/linux-6.3-rc2/arch/arm64/kernel/
A Dmte.c570 if (sysfs_streq(buf, "async")) in mte_tcf_preferred_store()
572 else if (sysfs_streq(buf, "sync")) in mte_tcf_preferred_store()
574 else if (cpus_have_cap(ARM64_MTE_ASYMM) && sysfs_streq(buf, "asymm")) in mte_tcf_preferred_store()
/linux-6.3-rc2/drivers/bus/
A Dbt1-axi.c221 if (sysfs_streq(data, "bus")) in inject_error_store()
223 else if (sysfs_streq(data, "unaligned")) in inject_error_store()
A Dbt1-apb.c326 if (sysfs_streq(data, "nodev")) in inject_error_store()
328 else if (sysfs_streq(data, "irq")) in inject_error_store()
/linux-6.3-rc2/fs/ksmbd/
A Dserver.c444 if (!sysfs_streq(buf, "hard")) in kill_server_store()
485 if (sysfs_streq(buf, "all")) { in debug_store()
493 if (sysfs_streq(buf, debug_type_strings[i])) { in debug_store()
/linux-6.3-rc2/drivers/gpio/
A 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()
/linux-6.3-rc2/drivers/infiniband/ulp/rtrs/
A Drtrs-clt-sysfs.c227 if (!sysfs_streq(buf, "1")) { in rtrs_clt_reconnect_store()
256 if (!sysfs_streq(buf, "1")) { in rtrs_clt_disconnect_store()
284 if (!sysfs_streq(buf, "1")) { in rtrs_clt_remove_path_store()
A Drtrs-pri.h381 if (sysfs_streq(buf, "1")) \
383 else if (sysfs_streq(buf, "0")) \
/linux-6.3-rc2/lib/
A Dstring_helpers.c895 bool sysfs_streq(const char *s1, const char *s2) in sysfs_streq() function
910 EXPORT_SYMBOL(sysfs_streq);
972 if (sysfs_streq(item, str)) in __sysfs_match_string()

Completed in 66 milliseconds

1234