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()
290 struct mspro_sys_attr *s_attr = container_of(attr, in mspro_block_attr_show_default() local296 for (cnt = 0; cnt < s_attr->size; cnt++) { in mspro_block_attr_show_default()303 ((unsigned char *)s_attr->data)[cnt]); in mspro_block_attr_show_default()394 struct mspro_sys_attr *s_attr = container_of(attr, in mspro_block_attr_show_modelname() local398 return scnprintf(buffer, PAGE_SIZE, "%s", (char *)s_attr->data); in mspro_block_attr_show_modelname()973 struct mspro_sys_attr *s_attr = NULL; in mspro_block_read_attributes() local1033 s_attr = kzalloc(sizeof(struct mspro_sys_attr), GFP_KERNEL); in mspro_block_read_attributes()1034 if (!s_attr) { in mspro_block_read_attributes()1039 msb->attr_group.attrs[cnt] = &s_attr->dev_attr.attr; in mspro_block_read_attributes()1041 s_attr->size = be32_to_cpu(attr->entries[cnt].size); in mspro_block_read_attributes()[all …]