Lines Matching +full:0 +full:x7e

27 			0x07, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x08 };
29 0x57, 0x09, 0x52, 0x53, 0x54, 0x55, 0x56, 0 };
31 0x17, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x18 };
33 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27 };
35 #define MAX6697_REG_MIN 0x30
42 #define MAX6697_LOCAL_MASK_DT BIT(0)
43 #define MAX6697_EXTERNAL_MASK_CHIP GENMASK(6, 0)
47 #define MAX6697_ALERT_MAP_BITS(reg) ((((reg) & 0x7e) >> 1) | \
48 (((reg) & 0x01) << 6) | ((reg) & 0x80))
55 #define MAX6697_REG_STAT_ALARM 0x44
56 #define MAX6697_REG_STAT_CRIT 0x45
57 #define MAX6697_REG_STAT_FAULT 0x46
58 #define MAX6697_REG_STAT_MIN_ALARM 0x47
60 #define MAX6697_REG_CONFIG 0x41
65 #define MAX6697_REG_ALERT_MASK 0x42
66 #define MAX6697_REG_OVERT_MASK 0x43
68 #define MAX6581_REG_RESISTANCE 0x4a
69 #define MAX6581_REG_IDEALITY 0x4b
70 #define MAX6581_REG_IDEALITY_SELECT 0x4c
71 #define MAX6581_REG_OFFSET 0x4d
72 #define MAX6581_REG_OFFSET_SELECT 0x4e
96 #define MAX6697_TEMP_INPUT 0
106 .have_crit = 0xff,
107 .have_ext = 0x7f,
108 .have_fault = 0xfe,
113 .have_crit = 0x12,
114 .have_ext = 0x02,
115 .have_fault = 0x1e,
120 .have_crit = 0x12,
121 .have_ext = 0x02,
122 .have_fault = 0x1e,
127 .have_crit = 0x72,
128 .have_ext = 0x02,
129 .have_fault = 0x7e,
134 .have_crit = 0x72,
135 .have_ext = 0x02,
136 .have_fault = 0x7e,
141 .have_crit = 0x72,
142 .have_ext = 0x02,
143 .have_fault = 0x7e,
149 .have_crit = 0x12,
150 .have_ext = 0x02,
151 .have_fault = 0x1e,
157 .have_crit = 0x72,
158 .have_ext = 0x02,
159 .have_fault = 0x7e,
164 .have_crit = 0x72,
165 .have_ext = 0x02,
166 .have_fault = 0x0e,
171 .have_crit = 0x12,
172 .have_ext = 0x02,
173 .have_fault = 0x1e,
181 case 0: in max6697_alarm_channel_map()
208 *val = (((regdata[0] - data->temp_offset) << 3) | (regdata[1] >> 5)) * 125; in max6697_read()
233 if (!(regdata[0] & BIT(channel - 1))) in max6697_read()
234 regdata[1] = 0; in max6697_read()
252 * In the MAX6581 datasheet revision 0 to 3, the local channel in max6697_read()
253 * overtemperature status is reported in bit 6 of register 0x45, in max6697_read()
278 return 0; in max6697_read()
292 val = clamp_val(val, 0, data->type == max6581 ? 255 : 127); in max6697_write()
297 val = clamp_val(val, 0, data->type == max6581 ? 255 : 127); in max6697_write()
302 val = clamp_val(val, 0, 255); in max6697_write()
334 return 0; in max6697_is_visible()
369 return 0; in max6697_is_visible()
372 /* Return 0 if detection is successful, -ENODEV otherwise */
427 confreg = 0; in max6697_config_of()
443 vals[0] = 0; in max6697_config_of()
445 MAX6697_ALERT_MAP_BITS(vals[0])); in max6697_config_of()
450 vals[0] = 0; in max6697_config_of()
452 MAX6697_OVERT_MAP_BITS(vals[0])); in max6697_config_of()
462 if (of_property_read_u32(node, "resistance-cancellation", &vals[0])) { in max6697_config_of()
464 vals[0] = 0xfe; in max6697_config_of()
466 vals[0] = 0; in max6697_config_of()
469 vals[0] &= 0xfe; in max6697_config_of()
470 ret = regmap_write(regmap, MAX6581_REG_RESISTANCE, vals[0] >> 1); in max6697_config_of()
471 if (ret < 0) in max6697_config_of()
475 vals[0] = 0; in max6697_config_of()
476 vals[1] = 0; in max6697_config_of()
480 if (ret < 0) in max6697_config_of()
483 (vals[0] & 0xfe) >> 1); in max6697_config_of()
484 if (ret < 0) in max6697_config_of()
503 if (ret < 0) in max6697_init_chip()
520 case 0x00 ... 0x09: /* temperature high bytes */ in max6697_volatile_reg()
521 case 0x44 ... 0x47: /* status */ in max6697_volatile_reg()
522 case 0x51 ... 0x58: /* temperature low bytes */ in max6697_volatile_reg()
531 return reg != 0x0a && reg != 0x0f && !max6697_volatile_reg(dev, reg); in max6697_writeable_reg()
537 .max_register = 0x58,