Lines Matching refs:sda
49 struct sensor_device_attribute *sda = to_sensor_dev_attr(attr); in show_temp() local
54 retval = regmap_read(data->regmap, sda->index, &val); in show_temp()
63 struct sensor_device_attribute_2 *sda = to_sensor_dev_attr_2(attr); in show_bit() local
68 retval = regmap_read(data->regmap, sda->nr, &val); in show_bit()
71 return sprintf(buf, "%d\n", !!(val & sda->index)); in show_bit()
77 struct sensor_device_attribute *sda = to_sensor_dev_attr(attr); in store_temp() local
84 retval = regmap_write(data->regmap, sda->index, in store_temp()
94 struct sensor_device_attribute_2 *sda = to_sensor_dev_attr_2(attr); in store_bit() local
102 retval = regmap_update_bits(data->regmap, sda->nr, sda->index, in store_bit()
103 val ? sda->index : 0); in store_bit()
113 struct sensor_device_attribute *sda = to_sensor_dev_attr(attr); in show_hyst_common() local
120 retval = regmap_read(regmap, sda->index, &limit); in show_hyst_common()
146 struct sensor_device_attribute *sda = to_sensor_dev_attr(attr); in store_hyst() local
158 retval = regmap_read(regmap, sda->index, &limit); in store_hyst()