Lines Matching +full:0 +full:x35

23 #define THERMAL_PID_REG		0xfd
24 #define THERMAL_SMSC_ID_REG 0xfe
25 #define THERMAL_REVISION_REG 0xff
44 if (retval < 0) in temp_show()
58 if (retval < 0) in bit_show()
75 if (retval < 0) in temp_store()
92 val ? sda->index : 0); in bit_store()
93 if (retval < 0) in bit_store()
110 if (retval < 0) in show_hyst_common()
113 retval = regmap_read(regmap, 0x21, &hyst); in show_hyst_common()
114 if (retval < 0) in show_hyst_common()
148 if (retval < 0) in hyst_store()
152 hyst = clamp_val(DIV_ROUND_CLOSEST(hyst, 1000), 0, 255); in hyst_store()
153 retval = regmap_write(regmap, 0x21, hyst); in hyst_store()
154 if (retval == 0) in hyst_store()
165 static SENSOR_DEVICE_ATTR_RW(temp1_min, temp, 0x06);
166 static SENSOR_DEVICE_ATTR_RW(temp1_max, temp, 0x05);
167 static SENSOR_DEVICE_ATTR_RW(temp1_crit, temp, 0x20);
168 static SENSOR_DEVICE_ATTR_RO(temp1_input, temp, 0x00);
169 static SENSOR_DEVICE_ATTR_2_RO(temp1_min_alarm, bit, 0x36, 0x01);
170 static SENSOR_DEVICE_ATTR_2_RO(temp1_max_alarm, bit, 0x35, 0x01);
171 static SENSOR_DEVICE_ATTR_2_RO(temp1_crit_alarm, bit, 0x37, 0x01);
172 static SENSOR_DEVICE_ATTR_RO(temp1_min_hyst, min_hyst, 0x06);
173 static SENSOR_DEVICE_ATTR_RO(temp1_max_hyst, hyst, 0x05);
174 static SENSOR_DEVICE_ATTR_RW(temp1_crit_hyst, hyst, 0x20);
176 static SENSOR_DEVICE_ATTR_RW(temp2_min, temp, 0x08);
177 static SENSOR_DEVICE_ATTR_RW(temp2_max, temp, 0x07);
178 static SENSOR_DEVICE_ATTR_RW(temp2_crit, temp, 0x19);
179 static SENSOR_DEVICE_ATTR_RO(temp2_input, temp, 0x01);
180 static SENSOR_DEVICE_ATTR_2_RO(temp2_fault, bit, 0x1b, 0x02);
181 static SENSOR_DEVICE_ATTR_2_RO(temp2_min_alarm, bit, 0x36, 0x02);
182 static SENSOR_DEVICE_ATTR_2_RO(temp2_max_alarm, bit, 0x35, 0x02);
183 static SENSOR_DEVICE_ATTR_2_RO(temp2_crit_alarm, bit, 0x37, 0x02);
184 static SENSOR_DEVICE_ATTR_RO(temp2_min_hyst, min_hyst, 0x08);
185 static SENSOR_DEVICE_ATTR_RO(temp2_max_hyst, hyst, 0x07);
186 static SENSOR_DEVICE_ATTR_RO(temp2_crit_hyst, hyst, 0x19);
188 static SENSOR_DEVICE_ATTR_RW(temp3_min, temp, 0x16);
189 static SENSOR_DEVICE_ATTR_RW(temp3_max, temp, 0x15);
190 static SENSOR_DEVICE_ATTR_RW(temp3_crit, temp, 0x1A);
191 static SENSOR_DEVICE_ATTR_RO(temp3_input, temp, 0x23);
192 static SENSOR_DEVICE_ATTR_2_RO(temp3_fault, bit, 0x1b, 0x04);
193 static SENSOR_DEVICE_ATTR_2_RO(temp3_min_alarm, bit, 0x36, 0x04);
194 static SENSOR_DEVICE_ATTR_2_RO(temp3_max_alarm, bit, 0x35, 0x04);
195 static SENSOR_DEVICE_ATTR_2_RO(temp3_crit_alarm, bit, 0x37, 0x04);
196 static SENSOR_DEVICE_ATTR_RO(temp3_min_hyst, min_hyst, 0x16);
197 static SENSOR_DEVICE_ATTR_RO(temp3_max_hyst, hyst, 0x15);
198 static SENSOR_DEVICE_ATTR_RO(temp3_crit_hyst, hyst, 0x1A);
200 static SENSOR_DEVICE_ATTR_RW(temp4_min, temp, 0x2D);
201 static SENSOR_DEVICE_ATTR_RW(temp4_max, temp, 0x2C);
202 static SENSOR_DEVICE_ATTR_RW(temp4_crit, temp, 0x30);
203 static SENSOR_DEVICE_ATTR_RO(temp4_input, temp, 0x2A);
204 static SENSOR_DEVICE_ATTR_2_RO(temp4_fault, bit, 0x1b, 0x08);
205 static SENSOR_DEVICE_ATTR_2_RO(temp4_min_alarm, bit, 0x36, 0x08);
206 static SENSOR_DEVICE_ATTR_2_RO(temp4_max_alarm, bit, 0x35, 0x08);
207 static SENSOR_DEVICE_ATTR_2_RO(temp4_crit_alarm, bit, 0x37, 0x08);
208 static SENSOR_DEVICE_ATTR_RO(temp4_min_hyst, min_hyst, 0x2D);
209 static SENSOR_DEVICE_ATTR_RO(temp4_max_hyst, hyst, 0x2C);
210 static SENSOR_DEVICE_ATTR_RO(temp4_crit_hyst, hyst, 0x30);
212 static SENSOR_DEVICE_ATTR_2_RW(power_state, bit, 0x03, 0x40);
294 SENSOR_ATTR_2_RO(temp1_min_alarm, bit, 0x02, 0x20),
295 SENSOR_ATTR_2_RO(temp1_max_alarm, bit, 0x02, 0x40),
296 SENSOR_ATTR_2_RO(temp1_crit_alarm, bit, 0x02, 0x01),
298 SENSOR_ATTR_2_RO(temp2_fault, bit, 0x02, 0x04),
299 SENSOR_ATTR_2_RO(temp2_min_alarm, bit, 0x02, 0x08),
300 SENSOR_ATTR_2_RO(temp2_max_alarm, bit, 0x02, 0x10),
301 SENSOR_ATTR_2_RO(temp2_crit_alarm, bit, 0x02, 0x02),
305 &emc1402_alarms[0].dev_attr.attr,
326 if (id != 0x5d) in emc1403_detect()
331 case 0x20: in emc1403_detect()
334 case 0x21: in emc1403_detect()
337 case 0x22: in emc1403_detect()
340 case 0x23: in emc1403_detect()
343 case 0x25: in emc1403_detect()
346 case 0x27: in emc1403_detect()
354 if (id < 0x01 || id > 0x04) in emc1403_detect()
357 return 0; in emc1403_detect()
363 case 0x00: /* internal diode high byte */ in emc1403_regmap_is_volatile()
364 case 0x01: /* external diode 1 high byte */ in emc1403_regmap_is_volatile()
365 case 0x02: /* status */ in emc1403_regmap_is_volatile()
366 case 0x10: /* external diode 1 low byte */ in emc1403_regmap_is_volatile()
367 case 0x1b: /* external diode fault */ in emc1403_regmap_is_volatile()
368 case 0x23: /* external diode 2 high byte */ in emc1403_regmap_is_volatile()
369 case 0x24: /* external diode 2 low byte */ in emc1403_regmap_is_volatile()
370 case 0x29: /* internal diode low byte */ in emc1403_regmap_is_volatile()
371 case 0x2a: /* externl diode 3 high byte */ in emc1403_regmap_is_volatile()
372 case 0x2b: /* external diode 3 low byte */ in emc1403_regmap_is_volatile()
373 case 0x35: /* high limit status */ in emc1403_regmap_is_volatile()
374 case 0x36: /* low limit status */ in emc1403_regmap_is_volatile()
375 case 0x37: /* therm limit status */ in emc1403_regmap_is_volatile()
416 data->groups[0] = &emc1402_group; in emc1403_probe()
429 return 0; in emc1403_probe()
433 0x18, 0x1c, 0x29, 0x4c, 0x4d, 0x5c, I2C_CLIENT_END