Home
last modified time | relevance | path

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

/linux/drivers/memstick/core/
H A Dmspro_block.c251 struct mspro_sys_attr *s_attr = container_of(attr, in mspro_block_attr_show_default() local
257 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()
337 struct mspro_sys_attr *s_attr = container_of(attr, in mspro_block_attr_show_modelname() local
341 return sysfs_emit(buffer, "%s", (char *)s_attr->data); in mspro_block_attr_show_modelname()
898 struct mspro_sys_attr *s_attr = NULL; in mspro_block_read_attributes() local
958 s_attr = kzalloc(sizeof(struct mspro_sys_attr), GFP_KERNEL); in mspro_block_read_attributes()
959 if (!s_attr) { in mspro_block_read_attributes()
964 msb->attr_group.attrs[cnt] = &s_attr->dev_attr.attr; in mspro_block_read_attributes()
966 s_attr->size = be32_to_cpu(attr->entries[cnt].size); in mspro_block_read_attributes()
[all …]
/linux/drivers/hwmon/
H A 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()