Home
last modified time | relevance | path

Searched refs:hattr (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/drivers/hwmon/
Dhwmon.c122 struct hwmon_device_attribute *hattr = to_hwmon_attr(dattr); in hwmon_free_attrs() local
124 kfree(hattr); in hwmon_free_attrs()
426 struct hwmon_device_attribute *hattr = to_hwmon_attr(devattr); in hwmon_attr_show() local
430 ret = hattr->ops->read(dev, hattr->type, hattr->attr, hattr->index, in hwmon_attr_show()
435 trace_hwmon_attr_show(hattr->index + hwmon_attr_base(hattr->type), in hwmon_attr_show()
436 hattr->name, val); in hwmon_attr_show()
445 struct hwmon_device_attribute *hattr = to_hwmon_attr(devattr); in hwmon_attr_show_string() local
446 enum hwmon_sensor_types type = hattr->type; in hwmon_attr_show_string()
450 ret = hattr->ops->read_string(dev, hattr->type, hattr->attr, in hwmon_attr_show_string()
451 hattr->index, &s); in hwmon_attr_show_string()
[all …]
/linux-6.12.1/drivers/platform/x86/amd/
Dhsmp.c633 struct bin_attribute *hattr = &plat_dev.sock[sock_ind].hsmp_attr; in hsmp_init_metric_tbl_bin_attr() local
635 sysfs_bin_attr_init(hattr); in hsmp_init_metric_tbl_bin_attr()
636 hattr->attr.name = HSMP_METRICS_TABLE_NAME; in hsmp_init_metric_tbl_bin_attr()
637 hattr->attr.mode = 0444; in hsmp_init_metric_tbl_bin_attr()
638 hattr->read = hsmp_metric_tbl_read; in hsmp_init_metric_tbl_bin_attr()
639 hattr->size = sizeof(struct hsmp_metric_table); in hsmp_init_metric_tbl_bin_attr()
640 hattr->private = &plat_dev.sock[sock_ind]; in hsmp_init_metric_tbl_bin_attr()
641 hattrs[0] = hattr; in hsmp_init_metric_tbl_bin_attr()