Home
last modified time | relevance | path

Searched refs:s_attr (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.4/drivers/hwmon/
Di5k_amb.c89 struct sensor_device_attribute s_attr; member
285 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 …]
Dlm93.c1445 struct sensor_device_attribute_2 *s_attr = to_sensor_dev_attr_2(attr); in temp_auto_offset_show() local
1446 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() local
1460 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() local
1613 int nr = s_attr->index; in fan_input_show()
/Linux-v5.4/drivers/memstick/core/
Dmspro_block.c290 struct mspro_sys_attr *s_attr = container_of(attr, in mspro_block_attr_show_default() local
296 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() local
398 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() local
1033 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 …]