Lines Matching +full:0 +full:x186
27 #define SCH5627_HWMON_ID 0xa5
28 #define SCH5627_COMPANY_ID 0x5c
29 #define SCH5627_PRIMARY_ID 0xa0
31 #define SCH5627_REG_BUILD_CODE 0x39
32 #define SCH5627_REG_BUILD_ID 0x3a
33 #define SCH5627_REG_HWMON_ID 0x3c
34 #define SCH5627_REG_HWMON_REV 0x3d
35 #define SCH5627_REG_COMPANY_ID 0x3e
36 #define SCH5627_REG_PRIMARY_ID 0x3f
37 #define SCH5627_REG_CTRL 0x40
39 #define SCH5627_CTRL_START BIT(0)
48 0x2B, 0x26, 0x27, 0x28, 0x29, 0x2A, 0x180, 0x181 };
50 0xE2, 0xE1, 0xE1, 0xE5, 0xE5, 0xE6, 0x182, 0x182 };
52 0, 0, 1, 1, 0, 0, 0, 1 };
54 0x61, 0x57, 0x59, 0x5B, 0x5D, 0x5F, 0x184, 0x186 };
56 0x9B, 0x96, 0x97, 0x98, 0x99, 0x9A, 0x1A8, 0x1A9 };
59 0x2C, 0x2E, 0x30, 0x32 };
61 0x62, 0x64, 0x66, 0x68 };
64 0xA0, 0xA1, 0xA2, 0xA3 };
67 0x22, 0x23, 0x24, 0x25, 0x189 };
69 0xE4, 0xE4, 0xE3, 0xE3, 0x18A };
71 1, 0, 1, 0, 1 };
84 char temp_valid; /* !=0 if following fields are valid */
96 regmap_reg_range(0x57, 0x57),
97 regmap_reg_range(0x59, 0x59),
98 regmap_reg_range(0x5B, 0x5B),
99 regmap_reg_range(0x5D, 0x5D),
100 regmap_reg_range(0x5F, 0x5F),
101 regmap_reg_range(0x61, 0x69),
102 regmap_reg_range(0x96, 0x9B),
103 regmap_reg_range(0xA0, 0xA3),
104 regmap_reg_range(0x184, 0x184),
105 regmap_reg_range(0x186, 0x186),
106 regmap_reg_range(0x1A8, 0x1A9),
127 int ret = 0; in sch5627_update_temp()
134 for (i = 0; i < SCH5627_NO_TEMPS; i++) { in sch5627_update_temp()
138 if (unlikely(val < 0)) { in sch5627_update_temp()
154 int ret = 0; in sch5627_update_fan()
161 for (i = 0; i < SCH5627_NO_FANS; i++) { in sch5627_update_fan()
163 if (unlikely(val < 0)) { in sch5627_update_fan()
179 int ret = 0; in sch5627_update_in()
193 for (i = 0; i < SCH5627_NO_IN; i++) { in sch5627_update_in()
197 if (unlikely(val < 0)) { in sch5627_update_in()
223 if (reg == 0) in reg_to_rpm()
225 if (reg == 0xffff) in reg_to_rpm()
226 return 0; in reg_to_rpm()
235 return clamp_val(limit, 0, U8_MAX); in sch5627_temp_limit_to_reg()
242 if (value <= 0) in sch5627_rpm_to_reg()
305 if (ret < 0) in sch5627_read()
309 return 0; in sch5627_read()
312 if (ret < 0) in sch5627_read()
316 return 0; in sch5627_read()
319 if (ret < 0) in sch5627_read()
323 return 0; in sch5627_read()
326 if (ret < 0) in sch5627_read()
329 *val = (data->temp[channel] == 0); in sch5627_read()
330 return 0; in sch5627_read()
339 if (ret < 0) in sch5627_read()
343 if (ret < 0) in sch5627_read()
347 return 0; in sch5627_read()
351 if (ret < 0) in sch5627_read()
355 if (ret < 0) in sch5627_read()
359 return 0; in sch5627_read()
362 if (ret < 0) in sch5627_read()
365 *val = (data->fan[channel] == 0xffff); in sch5627_read()
366 return 0; in sch5627_read()
375 if (ret < 0) in sch5627_read()
379 return 0; in sch5627_read()
386 if (ret < 0) in sch5627_read()
392 return 0; in sch5627_read()
412 return 0; in sch5627_read_string()
459 if (val > U8_MAX || val < 0) in sch5627_write()
531 data->addr = platform_get_resource(pdev, IORESOURCE_IO, 0)->start; in sch5627_probe()
536 if (val < 0) in sch5627_probe()
540 pr_err("invalid %s id: 0x%02X (expected 0x%02X)\n", "hwmon", in sch5627_probe()
546 if (val < 0) in sch5627_probe()
550 pr_err("invalid %s id: 0x%02X (expected 0x%02X)\n", "company", in sch5627_probe()
556 if (val < 0) in sch5627_probe()
560 pr_err("invalid %s id: 0x%02X (expected 0x%02X)\n", "primary", in sch5627_probe()
567 if (build_code < 0) in sch5627_probe()
572 if (build_id < 0) in sch5627_probe()
577 if (hwmon_rev < 0) in sch5627_probe()
581 if (val < 0) in sch5627_probe()
601 pr_info("firmware build: code 0x%02X, id 0x%04X, hwmon: rev 0x%02X\n", in sch5627_probe()
614 return 0; in sch5627_probe()
624 return 0; in sch5627_suspend()
634 return regcache_drop_region(data->regmap, 0, U16_MAX); in sch5627_resume()