Lines Matching full:sda
38 struct sensor_device_attribute *sda = to_sensor_dev_attr(attr); in temp_show() local
43 retval = regmap_read(data->regmap, sda->index, &val); in temp_show()
52 struct sensor_device_attribute_2 *sda = to_sensor_dev_attr_2(attr); in bit_show() local
57 retval = regmap_read(data->regmap, sda->nr, &val); in bit_show()
60 return sprintf(buf, "%d\n", !!(val & sda->index)); in bit_show()
66 struct sensor_device_attribute *sda = to_sensor_dev_attr(attr); in temp_store() local
73 retval = regmap_write(data->regmap, sda->index, in temp_store()
83 struct sensor_device_attribute_2 *sda = to_sensor_dev_attr_2(attr); in bit_store() local
91 retval = regmap_update_bits(data->regmap, sda->nr, sda->index, in bit_store()
92 val ? sda->index : 0); in bit_store()
102 struct sensor_device_attribute *sda = to_sensor_dev_attr(attr); in show_hyst_common() local
109 retval = regmap_read(regmap, sda->index, &limit); in show_hyst_common()
135 struct sensor_device_attribute *sda = to_sensor_dev_attr(attr); in hyst_store() local
147 retval = regmap_read(regmap, sda->index, &limit); in hyst_store()