Home
last modified time | relevance | path

Searched defs:attr (Results 226 – 250 of 2622) sorted by relevance

12345678910>>...105

/openbmc/linux/mm/damon/
H A Dsysfs-common.c34 static ssize_t min_show(struct kobject *kobj, struct kobj_attribute *attr, in min_show()
43 static ssize_t min_store(struct kobject *kobj, struct kobj_attribute *attr, in min_store()
59 static ssize_t max_show(struct kobject *kobj, struct kobj_attribute *attr, in max_show()
68 static ssize_t max_store(struct kobject *kobj, struct kobj_attribute *attr, in max_store()
H A Dsysfs.c156 struct kobj_attribute *attr, char *buf) in nr_regions_show()
165 struct kobj_attribute *attr, const char *buf, size_t count) in nr_regions_store()
246 struct kobj_attribute *attr, char *buf) in pid_target_show()
360 struct kobj_attribute *attr, char *buf) in nr_targets_show()
440 struct kobj_attribute *attr, char *buf) in sample_us_show()
488 struct kobj_attribute *attr, char *buf) in update_us_show()
746 struct kobj_attribute *attr, char *buf) in avail_operations_show()
761 struct kobj_attribute *attr, char *buf) in operations_show()
883 struct kobj_attribute *attr, char *buf) in nr_contexts_show()
1556 struct kobj_attribute *attr, char *buf) in pid_show()
[all …]
/openbmc/linux/samples/kobject/
H A Dkobject-example.c28 static ssize_t foo_show(struct kobject *kobj, struct kobj_attribute *attr, in foo_show()
34 static ssize_t foo_store(struct kobject *kobj, struct kobj_attribute *attr, in foo_store()
54 static ssize_t b_show(struct kobject *kobj, struct kobj_attribute *attr, in b_show()
66 static ssize_t b_store(struct kobject *kobj, struct kobj_attribute *attr, in b_store()
/openbmc/linux/drivers/leds/trigger/
H A Dledtrig-timer.c19 struct device_attribute *attr, char *buf) in led_delay_on_show()
27 struct device_attribute *attr, const char *buf, size_t size) in led_delay_on_store()
44 struct device_attribute *attr, char *buf) in led_delay_off_show()
52 struct device_attribute *attr, const char *buf, size_t size) in led_delay_off_store()
/openbmc/linux/drivers/hwmon/
H A Dmax6639.c160 struct sensor_device_attribute *attr = to_sensor_dev_attr(dev_attr); in temp_input_show() local
173 struct sensor_device_attribute *attr = to_sensor_dev_attr(dev_attr); in temp_fault_show() local
184 struct sensor_device_attribute *attr = to_sensor_dev_attr(dev_attr); in temp_max_show() local
194 struct sensor_device_attribute *attr = to_sensor_dev_attr(dev_attr); in temp_max_store() local
216 struct sensor_device_attribute *attr = to_sensor_dev_attr(dev_attr); in temp_crit_show() local
226 struct sensor_device_attribute *attr = to_sensor_dev_attr(dev_attr); in temp_crit_store() local
249 struct sensor_device_attribute *attr = to_sensor_dev_attr(dev_attr); in temp_emergency_show() local
259 struct sensor_device_attribute *attr = to_sensor_dev_attr(dev_attr); in temp_emergency_store() local
281 struct sensor_device_attribute *attr = to_sensor_dev_attr(dev_attr); in pwm_show() local
291 struct sensor_device_attribute *attr = to_sensor_dev_attr(dev_attr); in pwm_store() local
[all …]
H A Dnct7904.c220 static int nct7904_read_fan(struct device *dev, u32 attr, int channel, in nct7904_read_fan()
299 static int nct7904_read_in(struct device *dev, u32 attr, int channel, in nct7904_read_in()
387 static int nct7904_read_temp(struct device *dev, u32 attr, int channel, in nct7904_read_temp()
539 static int nct7904_read_pwm(struct device *dev, u32 attr, int channel, in nct7904_read_pwm()
564 static int nct7904_write_temp(struct device *dev, u32 attr, int channel, in nct7904_write_temp()
609 static int nct7904_write_fan(struct device *dev, u32 attr, int channel, in nct7904_write_fan()
636 static int nct7904_write_in(struct device *dev, u32 attr, int channel, in nct7904_write_in()
695 static int nct7904_write_pwm(struct device *dev, u32 attr, int channel, in nct7904_write_pwm()
732 u32 attr, int channel, long *val) in nct7904_read()
749 u32 attr, int channel, long val) in nct7904_write()
[all …]
H A Dcorsair-psu.c351 static umode_t corsairpsu_hwmon_temp_is_visible(const struct corsairpsu_data *priv, u32 attr, in corsairpsu_hwmon_temp_is_visible()
370 static umode_t corsairpsu_hwmon_fan_is_visible(const struct corsairpsu_data *priv, u32 attr, in corsairpsu_hwmon_fan_is_visible()
382 static umode_t corsairpsu_hwmon_pwm_is_visible(const struct corsairpsu_data *priv, u32 attr, in corsairpsu_hwmon_pwm_is_visible()
394 static umode_t corsairpsu_hwmon_power_is_visible(const struct corsairpsu_data *priv, u32 attr, in corsairpsu_hwmon_power_is_visible()
406 static umode_t corsairpsu_hwmon_in_is_visible(const struct corsairpsu_data *priv, u32 attr, in corsairpsu_hwmon_in_is_visible()
429 static umode_t corsairpsu_hwmon_curr_is_visible(const struct corsairpsu_data *priv, u32 attr, in corsairpsu_hwmon_curr_is_visible()
452 u32 attr, int channel) in corsairpsu_hwmon_ops_is_visible()
474 static int corsairpsu_hwmon_temp_read(struct corsairpsu_data *priv, u32 attr, int channel, in corsairpsu_hwmon_temp_read()
508 static int corsairpsu_hwmon_power_read(struct corsairpsu_data *priv, u32 attr, int channel, in corsairpsu_hwmon_power_read()
553 static int corsairpsu_hwmon_curr_read(struct corsairpsu_data *priv, u32 attr, int channel, in corsairpsu_hwmon_curr_read()
[all …]
H A Dmax31790.c165 static int max31790_read_fan(struct device *dev, u32 attr, int channel, in max31790_read_fan()
213 static int max31790_write_fan(struct device *dev, u32 attr, int channel, in max31790_write_fan()
276 static umode_t max31790_fan_is_visible(const void *_data, u32 attr, int channel) in max31790_fan_is_visible()
302 static int max31790_read_pwm(struct device *dev, u32 attr, int channel, in max31790_read_pwm()
330 static int max31790_write_pwm(struct device *dev, u32 attr, int channel, in max31790_write_pwm()
392 static umode_t max31790_pwm_is_visible(const void *_data, u32 attr, int channel) in max31790_pwm_is_visible()
409 u32 attr, int channel, long *val) in max31790_read()
422 u32 attr, int channel, long val) in max31790_write()
436 u32 attr, int channel) in max31790_is_visible()
H A Dapplesmc.c742 struct device_attribute *attr, char *buf) in applesmc_name_show()
748 struct device_attribute *attr, char *buf) in applesmc_position_show()
771 struct device_attribute *attr, char *sysfsbuf) in applesmc_light_show()
839 struct device_attribute *attr, char *sysfsbuf) in applesmc_show_fan_speed()
858 struct device_attribute *attr, in applesmc_store_fan_speed()
883 struct device_attribute *attr, char *sysfsbuf) in applesmc_show_fan_manual()
898 struct device_attribute *attr, in applesmc_store_fan_manual()
933 struct device_attribute *attr, char *sysfsbuf) in applesmc_show_fan_position()
951 struct device_attribute *attr, char *sysfsbuf) in applesmc_calibrate_show()
983 struct device_attribute *attr, char *sysfsbuf) in applesmc_key_count_show()
[all …]
H A Dlm92.c140 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in temp_show() local
150 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in temp_store() local
171 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in temp_hyst_show() local
179 struct device_attribute *attr, char *buf) in temp1_min_hyst_show()
191 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in temp_hyst_store() local
211 static ssize_t alarms_show(struct device *dev, struct device_attribute *attr, in alarms_show()
219 static ssize_t alarm_show(struct device *dev, struct device_attribute *attr, in alarm_show()
/openbmc/linux/arch/s390/kernel/
H A Dtime.c725 struct device_attribute *attr, in ctn_id_show()
741 struct device_attribute *attr, in ctn_type_show()
771 struct device_attribute *attr, in leap_seconds_show()
786 struct device_attribute *attr, in leap_seconds_scheduled_show()
814 struct device_attribute *attr, in stratum_show()
829 struct device_attribute *attr, in time_offset_show()
844 struct device_attribute *attr, in time_zone_offset_show()
859 struct device_attribute *attr, in timing_mode_show()
874 struct device_attribute *attr, in timing_state_show()
889 struct device_attribute *attr, in online_show()
[all …]
/openbmc/linux/drivers/hid/
H A Dhid-roccat-kone.c264 struct bin_attribute *attr, char *buf, in kone_sysfs_read_settings()
288 struct bin_attribute *attr, char *buf, in kone_sysfs_write_settings()
334 struct kobject *kobj, struct bin_attribute *attr, in kone_sysfs_read_profilex()
354 struct kobject *kobj, struct bin_attribute *attr, in kone_sysfs_write_profilex()
399 struct device_attribute *attr, char *buf) in kone_sysfs_show_actual_profile()
408 struct device_attribute *attr, char *buf) in kone_sysfs_show_actual_dpi()
418 struct device_attribute *attr, char *buf) in kone_sysfs_show_weight()
440 struct device_attribute *attr, char *buf) in kone_sysfs_show_firmware_version()
450 struct device_attribute *attr, char *buf) in kone_sysfs_show_tcu()
470 struct device_attribute *attr, char const *buf, size_t size) in kone_sysfs_set_tcu()
[all …]
/openbmc/linux/drivers/staging/iio/resolver/
H A Dad2s1210.c201 struct device_attribute *attr, in ad2s1210_show_fclkin()
210 struct device_attribute *attr, in ad2s1210_store_fclkin()
240 struct device_attribute *attr, in ad2s1210_show_fexcit()
249 struct device_attribute *attr, in ad2s1210_store_fexcit()
277 struct device_attribute *attr, in ad2s1210_show_control()
290 struct device_attribute *attr, in ad2s1210_store_control()
332 struct device_attribute *attr, in ad2s1210_show_resolution()
341 struct device_attribute *attr, in ad2s1210_store_resolution()
400 struct device_attribute *attr, in ad2s1210_clear_fault()
424 struct device_attribute *attr, in ad2s1210_show_reg()
[all …]
/openbmc/linux/drivers/platform/x86/
H A Dlg-laptop.c262 struct device_attribute *attr, in fan_mode_store()
294 struct device_attribute *attr, char *buffer) in fan_mode_show()
315 struct device_attribute *attr, in usb_charge_store()
357 struct device_attribute *attr, in reader_mode_store()
377 struct device_attribute *attr, char *buffer) in reader_mode_show()
399 struct device_attribute *attr, in fn_lock_store()
419 struct device_attribute *attr, char *buffer) in fn_lock_show()
440 struct device_attribute *attr, in charge_control_end_threshold_store()
468 struct device_attribute *attr, in charge_control_end_threshold_show()
505 struct device_attribute *attr, in battery_care_limit_show()
[all …]
/openbmc/linux/arch/alpha/kernel/
H A Dbugs.c20 struct device_attribute *attr, char *buf) in cpu_show_meltdown()
29 struct device_attribute *attr, char *buf) in cpu_show_spectre_v1()
38 struct device_attribute *attr, char *buf) in cpu_show_spectre_v2()
/openbmc/linux/drivers/pci/hotplug/
H A Drpadlpar_sysfs.c27 static ssize_t add_slot_store(struct kobject *kobj, struct kobj_attribute *attr, in add_slot_store()
51 struct kobj_attribute *attr, char *buf) in add_slot_show()
57 struct kobj_attribute *attr, in remove_slot_store()
81 struct kobj_attribute *attr, char *buf) in remove_slot_show()
/openbmc/linux/drivers/block/zram/
H A Dzram_drv.c219 struct device_attribute *attr, char *buf) in initstate_show()
232 struct device_attribute *attr, char *buf) in disksize_show()
366 struct device_attribute *attr, char *buf) in writeback_limit_enable_show()
401 struct device_attribute *attr, char *buf) in writeback_limit_show()
1021 struct device_attribute *attr, in comp_algorithm_show()
1030 struct device_attribute *attr, in comp_algorithm_store()
1043 struct device_attribute *attr, in recomp_algorithm_show()
1062 struct device_attribute *attr, in recomp_algorithm_store()
1710 struct device_attribute *attr, in recompress_store()
2331 const struct class_attribute *attr, in hot_add_show()
[all …]
/openbmc/linux/drivers/nvdimm/
H A Dpfn_devs.c40 struct device_attribute *attr, char *buf) in mode_show()
55 struct device_attribute *attr, const char *buf, size_t len) in mode_store()
89 struct device_attribute *attr, char *buf) in align_show()
122 struct device_attribute *attr, const char *buf, size_t len) in align_store()
142 struct device_attribute *attr, char *buf) in uuid_show()
152 struct device_attribute *attr, const char *buf, size_t len) in uuid_store()
168 struct device_attribute *attr, char *buf) in namespace_show()
181 struct device_attribute *attr, const char *buf, size_t len) in namespace_store()
199 struct device_attribute *attr, char *buf) in resource_show()
225 struct device_attribute *attr, char *buf) in size_show()
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/
H A Dct.c12 struct mlx5_flow_attr *attr) in tc_act_parse_ct()
33 struct mlx5_flow_attr *attr) in tc_act_post_parse_ct()
44 struct mlx5_flow_attr *attr) in tc_act_is_multi_table_act_ct()
H A Dtun.c12 struct mlx5_flow_attr *attr) in tc_act_can_offload_tun_encap()
27 struct mlx5_flow_attr *attr) in tc_act_parse_tun_encap()
39 struct mlx5_flow_attr *attr) in tc_act_parse_tun_decap()
/openbmc/linux/drivers/platform/chrome/
H A Dcros_ec_sysfs.c26 struct device_attribute *attr, char *buf) in reboot_show()
37 struct device_attribute *attr, in reboot_store()
111 struct device_attribute *attr, char *buf) in version_show()
200 struct device_attribute *attr, char *buf) in flashinfo_show()
234 struct device_attribute *attr, char *buf) in kb_wake_angle_show()
266 struct device_attribute *attr, in kb_wake_angle_store()
/openbmc/linux/drivers/leds/
H A Dled-class-flash.c38 struct device_attribute *attr, const char *buf, size_t size) in flash_brightness_store()
67 struct device_attribute *attr, char *buf) in flash_brightness_show()
80 struct device_attribute *attr, char *buf) in max_flash_brightness_show()
90 struct device_attribute *attr, const char *buf, size_t size) in flash_strobe_store()
121 struct device_attribute *attr, char *buf) in flash_strobe_show()
138 struct device_attribute *attr, const char *buf, size_t size) in flash_timeout_store()
167 struct device_attribute *attr, char *buf) in flash_timeout_show()
177 struct device_attribute *attr, char *buf) in max_flash_timeout_show()
187 struct device_attribute *attr, char *buf) in flash_fault_show()
/openbmc/linux/drivers/block/rnbd/
H A Drnbd-srv-sysfs.c85 static ssize_t read_only_show(struct kobject *kobj, struct kobj_attribute *attr, in read_only_show()
99 struct kobj_attribute *attr, in access_mode_show()
114 struct kobj_attribute *attr, char *page) in mapping_path_show()
127 struct kobj_attribute *attr, char *page) in rnbd_srv_dev_session_force_close_show()
134 struct kobj_attribute *attr, in rnbd_srv_dev_session_force_close_store()
/openbmc/linux/drivers/scsi/fnic/
H A Dfnic_attrs.c12 struct device_attribute *attr, char *buf) in fnic_show_state()
21 struct device_attribute *attr, char *buf) in fnic_show_drv_version()
27 struct device_attribute *attr, char *buf) in fnic_show_link_state()
/openbmc/linux/lib/kunit/
H A Dattributes.c51 static const char *attr_enum_to_string(void *attr, const char * const str_list[], bool *to_free) in attr_enum_to_string()
61 static const char *attr_speed_to_string(void *attr, bool *to_free) in attr_speed_to_string()
66 static const char *attr_string_to_string(void *attr, bool *to_free) in attr_string_to_string()
104 static int attr_enum_filter(void *attr, const char *input, int *err, in attr_enum_filter()
138 static int attr_speed_filter(void *attr, const char *input, int *err) in attr_speed_filter()
147 static int attr_string_filter(void *attr, const char *input, int *err) in attr_string_filter()
229 void *attr; in kunit_print_attr() local

12345678910>>...105