Home
last modified time | relevance | path

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

1234

/linux/drivers/s390/net/
H 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 …]
H 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 …]
H 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/arch/powerpc/platforms/pseries/
H A Ddlpar.c606 if (sysfs_streq(arg, "memory")) { in dlpar_parse_resource()
608 } else if (sysfs_streq(arg, "cpu")) { in dlpar_parse_resource()
610 } else if (sysfs_streq(arg, "dt")) { in dlpar_parse_resource()
628 if (sysfs_streq(arg, "add")) { in dlpar_parse_action()
630 } else if (sysfs_streq(arg, "remove")) { in dlpar_parse_action()
649 if (sysfs_streq(arg, "indexed-count")) { in dlpar_parse_id_type()
675 } else if (sysfs_streq(arg, "index")) { in dlpar_parse_id_type()
689 } else if (sysfs_streq(arg, "count")) { in dlpar_parse_id_type()
/linux/drivers/most/
H 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()
H 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/drivers/gpu/drm/
H A Ddrm_sysfs.c200 if (sysfs_streq(buf, "detect")) in status_store()
202 else if (sysfs_streq(buf, "on")) in status_store()
204 else if (sysfs_streq(buf, "on-digital")) in status_store()
206 else if (sysfs_streq(buf, "off")) in status_store()
/linux/drivers/staging/iio/frequency/
H 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/drivers/i2c/
H 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/drivers/hwmon/pmbus/
H 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/drivers/bus/
H A Dbt1-axi.c202 if (sysfs_streq(data, "bus")) in inject_error_store()
204 else if (sysfs_streq(data, "unaligned")) in inject_error_store()
H A Dbt1-apb.c304 if (sysfs_streq(data, "nodev")) in inject_error_store()
306 else if (sysfs_streq(data, "irq")) in inject_error_store()
/linux/drivers/gpio/
H A Dgpiolib-sysfs.c99 if (sysfs_streq(buf, "high")) in direction_store()
101 else if (sysfs_streq(buf, "out") || sysfs_streq(buf, "low")) in direction_store()
103 else if (sysfs_streq(buf, "in")) in direction_store()
H A Dgpio-virtuser.c1206 if (sysfs_streq(page, "push-pull")) { in gpio_virtuser_lookup_entry_config_drive_store()
1208 } else if (sysfs_streq(page, "open-drain")) { in gpio_virtuser_lookup_entry_config_drive_store()
1211 } else if (sysfs_streq(page, "open-source")) { in gpio_virtuser_lookup_entry_config_drive_store()
1254 if (sysfs_streq(page, "pull-up")) { in gpio_virtuser_lookup_entry_config_pull_store()
1257 } else if (sysfs_streq(page, "pull-down")) { in gpio_virtuser_lookup_entry_config_pull_store()
1260 } else if (sysfs_streq(page, "pull-disabled")) { in gpio_virtuser_lookup_entry_config_pull_store()
1263 } else if (sysfs_streq(page, "as-is")) { in gpio_virtuser_lookup_entry_config_pull_store()
/linux/drivers/infiniband/ulp/rtrs/
H 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()
H A Drtrs-pri.h383 if (sysfs_streq(buf, "1")) \
385 else if (sysfs_streq(buf, "0")) \
/linux/fs/smb/server/
H A Dserver.c451 if (!sysfs_streq(buf, "hard")) in kill_server_store()
492 if (sysfs_streq(buf, "all")) { in debug_store()
500 if (sysfs_streq(buf, debug_type_strings[i])) { in debug_store()
/linux/drivers/gpu/drm/loongson/
H A Dlsdc_crtc.c650 if (sysfs_streq(buf, "soft_reset")) in lsdc_crtc_man_op_write()
652 else if (sysfs_streq(buf, "enable")) in lsdc_crtc_man_op_write()
654 else if (sysfs_streq(buf, "disable")) in lsdc_crtc_man_op_write()
656 else if (sysfs_streq(buf, "flip")) in lsdc_crtc_man_op_write()
658 else if (sysfs_streq(buf, "clone")) in lsdc_crtc_man_op_write()
/linux/drivers/hwmon/
H A Dsg2042-mcu.c134 if (sysfs_streq("repower", buf)) in repower_policy_store()
136 else if (sysfs_streq("keep", buf)) in repower_policy_store()
/linux/drivers/leds/
H A Dleds-lp5562.c322 if (sysfs_streq(buf, "RGB")) { in lp5562_store_engine_mux()
325 } else if (sysfs_streq(buf, "W")) { in lp5562_store_engine_mux()
/linux/drivers/block/rnbd/
H A Drnbd-clt-sysfs.c311 if (sysfs_streq(options, "normal")) { in rnbd_clt_unmap_dev_store()
313 } else if (sysfs_streq(options, "force")) { in rnbd_clt_unmap_dev_store()
412 if (!sysfs_streq(options, "1")) { in rnbd_clt_remap_dev_store()
/linux/lib/
H A Dstring_helpers.c886 bool sysfs_streq(const char *s1, const char *s2) in sysfs_streq() function
901 EXPORT_SYMBOL(sysfs_streq);
963 if (sysfs_streq(item, str)) in __sysfs_match_string()
/linux/drivers/nvme/target/
H A Dconfigfs.c90 if (sysfs_streq(page, nvmet_addr_family[i].name)) in nvmet_addr_adrfam_store()
196 if (sysfs_streq(page, nvmet_addr_treq[i].name)) in nvmet_addr_treq_store()
369 if (sysfs_streq(page, nvmet_transport[i].name)) in nvmet_addr_trtype_store()
423 if (sysfs_streq(page, nvmet_addr_tsas_rdma[i].name)) in nvmet_addr_tsas_rdma_store()
434 if (sysfs_streq(page, nvmet_addr_tsas_tcp[i].name)) in nvmet_addr_tsas_tcp_store()
1714 if (sysfs_streq(name, NVME_DISC_SUBSYS_NAME)) { in nvmet_subsys_make()
1719 if (sysfs_streq(name, nvmet_disc_subsys->subsysnqn)) { in nvmet_subsys_make()
1879 if (sysfs_streq(page, nvmet_ana_state[i].name)) in nvmet_ana_group_ana_state_store()
/linux/drivers/nvdimm/
H A Dcore.c434 if (sysfs_streq(buf, "live")) in activate_store()
436 else if (sysfs_streq(buf, "quiesce")) in activate_store()
/linux/drivers/watchdog/
H A Dwatchdog_pretimeout.c45 if (sysfs_streq(gov_name, priv->gov->name)) in find_governor_by_name()

1234