Searched refs:s_attr (Results 1 – 3 of 3) sorted by relevance
89 struct sensor_device_attribute s_attr; member285 iattr->s_attr.dev_attr.attr.name = iattr->name; in i5k_amb_hwmon_init()286 iattr->s_attr.dev_attr.attr.mode = 0444; in i5k_amb_hwmon_init()287 iattr->s_attr.dev_attr.show = show_label; in i5k_amb_hwmon_init()288 iattr->s_attr.index = k; in i5k_amb_hwmon_init()289 sysfs_attr_init(&iattr->s_attr.dev_attr.attr); in i5k_amb_hwmon_init()291 &iattr->s_attr.dev_attr); in i5k_amb_hwmon_init()300 iattr->s_attr.dev_attr.attr.name = iattr->name; in i5k_amb_hwmon_init()301 iattr->s_attr.dev_attr.attr.mode = 0444; in i5k_amb_hwmon_init()302 iattr->s_attr.dev_attr.show = show_amb_temp; in i5k_amb_hwmon_init()[all …]
1445 struct sensor_device_attribute_2 *s_attr = to_sensor_dev_attr_2(attr); in temp_auto_offset_show() local1446 int nr = s_attr->index; in temp_auto_offset_show()1447 int ofs = s_attr->nr; in temp_auto_offset_show()1459 struct sensor_device_attribute_2 *s_attr = to_sensor_dev_attr_2(attr); in temp_auto_offset_store() local1460 int nr = s_attr->index; in temp_auto_offset_store()1461 int ofs = s_attr->nr; in temp_auto_offset_store()1612 struct sensor_device_attribute *s_attr = to_sensor_dev_attr(attr); in fan_input_show() local1613 int nr = s_attr->index; in fan_input_show()
251 struct mspro_sys_attr *s_attr = container_of(attr, in mspro_block_attr_show_default() local257 for (cnt = 0; cnt < s_attr->size; cnt++) { in mspro_block_attr_show_default()264 ((unsigned char *)s_attr->data)[cnt]); in mspro_block_attr_show_default()355 struct mspro_sys_attr *s_attr = container_of(attr, in mspro_block_attr_show_modelname() local359 return scnprintf(buffer, PAGE_SIZE, "%s", (char *)s_attr->data); in mspro_block_attr_show_modelname()934 struct mspro_sys_attr *s_attr = NULL; in mspro_block_read_attributes() local994 s_attr = kzalloc(sizeof(struct mspro_sys_attr), GFP_KERNEL); in mspro_block_read_attributes()995 if (!s_attr) { in mspro_block_read_attributes()1000 msb->attr_group.attrs[cnt] = &s_attr->dev_attr.attr; in mspro_block_read_attributes()1002 s_attr->size = be32_to_cpu(attr->entries[cnt].size); in mspro_block_read_attributes()[all …]