Home
last modified time | relevance | path

Searched refs:attr2 (Results 1 – 4 of 4) sorted by relevance

/drivers/hwmon/
Dmax16065.c178 struct sensor_device_attribute_2 *attr2 = to_sensor_dev_attr_2(da); in max16065_alarm_show() local
180 int val = data->fault[attr2->nr]; in max16065_alarm_show()
185 val &= (1 << attr2->index); in max16065_alarm_show()
188 MAX16065_FAULT(attr2->nr), val); in max16065_alarm_show()
223 struct sensor_device_attribute_2 *attr2 = to_sensor_dev_attr_2(da); in max16065_limit_store() local
233 limit = MV_TO_LIMIT(val, data->range[attr2->index]); in max16065_limit_store()
236 data->limit[attr2->nr][attr2->index] in max16065_limit_store()
237 = LIMIT_TO_MV(limit, data->range[attr2->index]); in max16065_limit_store()
239 MAX16065_LIMIT(attr2->nr, attr2->index), in max16065_limit_store()
249 struct sensor_device_attribute_2 *attr2 = to_sensor_dev_attr_2(da); in max16065_limit_show() local
[all …]
Dmax6642.c209 struct sensor_device_attribute_2 *attr2 = to_sensor_dev_attr_2(attr); in temp_max_show() local
212 return sprintf(buf, "%d\n", temp_from_reg(data->temp_high[attr2->nr])); in temp_max_show()
219 struct sensor_device_attribute_2 *attr2 = to_sensor_dev_attr_2(attr); in temp_max_store() local
229 data->temp_high[attr2->nr] = clamp_val(temp_to_reg(val), 0, 255); in temp_max_store()
230 i2c_smbus_write_byte_data(data->client, attr2->index, in temp_max_store()
231 data->temp_high[attr2->nr]); in temp_max_store()
Dadt7411.c167 struct sensor_device_attribute_2 *attr2 = to_sensor_dev_attr_2(attr); in adt7411_show_bit() local
170 int ret = i2c_smbus_read_byte_data(client, attr2->index); in adt7411_show_bit()
172 return ret < 0 ? ret : sprintf(buf, "%u\n", !!(ret & attr2->nr)); in adt7411_show_bit()
/drivers/ps3/
Dps3-lpm.c749 u64 signal_select, u64 attr1, u64 attr2, u64 attr3) in __ps3_set_signal() argument
754 signal_select, attr1, attr2, attr3); in __ps3_set_signal()
759 signal_select, attr1, attr2, attr3); in __ps3_set_signal()
771 u64 attr1, attr2, attr3; in ps3_set_signal() local
807 attr2 = sub_unit; in ps3_set_signal()
809 attr2 = lpm_priv->pu_id; in ps3_set_signal()
817 attr1, attr2, attr3); in ps3_set_signal()