Lines Matching +full:0 +full:xc2
50 .address = 0xef,
51 .offset_start = 0x8a,
52 .offset_end = 0x80,
53 .range_min = 0x8a,
54 .range_max = 0xe4,
57 .address = 0x2e,
58 .block_address = 0x2f,
62 .address = 0xbf,
66 .address = 0x98,
70 .address = 0xf2,
72 { SM_ECO_NAME, 0xc2 },
73 { SM_COMFORT_NAME, 0xc1 },
74 { SM_SPORT_NAME, 0xc0 },
79 .address = MSI_EC_ADDR_UNKNOWN, // 0xd5 needs testing
82 .address = 0xf4,
84 { FM_AUTO_NAME, 0x0d },
85 { FM_SILENT_NAME, 0x1d },
86 { FM_BASIC_NAME, 0x4d },
87 { FM_ADVANCED_NAME, 0x8d },
92 .rt_temp_address = 0x68,
93 .rt_fan_speed_address = 0x71,
94 .rt_fan_speed_base_min = 0x19,
95 .rt_fan_speed_base_max = 0x37,
96 .bs_fan_speed_address = 0x89,
97 .bs_fan_speed_base_min = 0x00,
98 .bs_fan_speed_base_max = 0x0f,
101 .rt_temp_address = 0x80,
102 .rt_fan_speed_address = 0x89,
105 .micmute_led_address = 0x2b,
106 .mute_led_address = 0x2c,
110 .bl_mode_address = 0x2c, // ?
111 .bl_modes = { 0x00, 0x08 }, // ?
113 .bl_state_address = 0xf3,
114 .state_base_value = 0x80,
130 .address = 0xef,
131 .offset_start = 0x8a,
132 .offset_end = 0x80,
133 .range_min = 0x8a,
134 .range_max = 0xe4,
137 .address = 0x2e,
138 .block_address = 0x2f,
142 .address = 0xbf,
146 .address = 0x98,
150 .address = 0xf2,
152 { SM_ECO_NAME, 0xc2 },
153 { SM_COMFORT_NAME, 0xc1 },
154 { SM_SPORT_NAME, 0xc0 },
155 { SM_TURBO_NAME, 0xc4 },
163 .address = 0xf4,
165 { FM_AUTO_NAME, 0x0d },
166 { FM_BASIC_NAME, 0x4d },
167 { FM_ADVANCED_NAME, 0x8d },
172 .rt_temp_address = 0x68,
173 .rt_fan_speed_address = 0x71,
174 .rt_fan_speed_base_min = 0x19,
175 .rt_fan_speed_base_max = 0x37,
176 .bs_fan_speed_address = 0x89,
177 .bs_fan_speed_base_min = 0x00,
178 .bs_fan_speed_base_max = 0x0f,
181 .rt_temp_address = 0x80,
182 .rt_fan_speed_address = 0x89,
185 .micmute_led_address = 0x2b,
186 .mute_led_address = 0x2c,
190 .bl_mode_address = 0x2c, // ?
191 .bl_modes = { 0x00, 0x08 }, // ?
193 .bl_state_address = 0xf3,
194 .state_base_value = 0x80,
207 .address = 0xd7,
208 .offset_start = 0x8a,
209 .offset_end = 0x80,
210 .range_min = 0x8a,
211 .range_max = 0xe4,
214 .address = 0x2e,
215 .block_address = 0x2f,
219 .address = 0xe8,
223 .address = 0x98,
227 .address = 0xf2,
229 { SM_ECO_NAME, 0xc2 },
230 { SM_COMFORT_NAME, 0xc1 },
231 { SM_SPORT_NAME, 0xc0 },
236 .address = 0xeb,
237 .mask = 0x0f,
240 .address = 0xd4,
242 { FM_AUTO_NAME, 0x0d },
243 { FM_SILENT_NAME, 0x1d },
244 { FM_BASIC_NAME, 0x4d },
245 { FM_ADVANCED_NAME, 0x8d },
250 .rt_temp_address = 0x68,
251 .rt_fan_speed_address = 0x71,
252 .rt_fan_speed_base_min = 0x19,
253 .rt_fan_speed_base_max = 0x37,
254 .bs_fan_speed_address = 0x89,
255 .bs_fan_speed_base_min = 0x00,
256 .bs_fan_speed_base_max = 0x0f,
259 .rt_temp_address = 0x80,
260 .rt_fan_speed_address = 0x89,
263 .micmute_led_address = 0x2c,
264 .mute_led_address = 0x2d,
268 .bl_mode_address = 0x2c, // ?
269 .bl_modes = { 0x00, 0x08 }, // ?
271 .bl_state_address = 0xd3,
272 .state_base_value = 0x80,
285 .address = 0xd7,
286 .offset_start = 0x8a,
287 .offset_end = 0x80,
288 .range_min = 0x8a,
289 .range_max = 0xe4,
292 .address = 0x2e,
293 .block_address = 0x2f,
297 .address = 0xe8,
301 .address = 0x98,
305 .address = 0xd2,
307 { SM_ECO_NAME, 0xc2 },
308 { SM_COMFORT_NAME, 0xc1 },
309 { SM_SPORT_NAME, 0xc0 },
314 .address = 0xeb,
315 .mask = 0x0f,
318 .address = 0xd4,
320 { FM_AUTO_NAME, 0x0d },
321 { FM_SILENT_NAME, 0x1d },
322 { FM_BASIC_NAME, 0x4d },
323 { FM_ADVANCED_NAME, 0x8d },
328 .rt_temp_address = 0x68,
329 .rt_fan_speed_address = 0xc9,
330 .rt_fan_speed_base_min = 0x19,
331 .rt_fan_speed_base_max = 0x37,
332 .bs_fan_speed_address = 0x89, // ?
333 .bs_fan_speed_base_min = 0x00,
334 .bs_fan_speed_base_max = 0x0f,
337 .rt_temp_address = 0x80,
338 .rt_fan_speed_address = 0x89,
341 .micmute_led_address = 0x2b,
342 .mute_led_address = 0x2c,
346 .bl_mode_address = 0x2c, // ?
347 .bl_modes = { 0x00, 0x08 }, // ?
349 .bl_state_address = 0xd3,
350 .state_base_value = 0x80,
363 .address = 0xd7,
364 .offset_start = 0x8a,
365 .offset_end = 0x80,
366 .range_min = 0x8a,
367 .range_max = 0xe4,
370 .address = 0x2e,
371 .block_address = 0x2f,
379 .address = 0x98,
383 .address = 0xd2,
385 { SM_ECO_NAME, 0xc2 },
386 { SM_COMFORT_NAME, 0xc1 },
387 { SM_SPORT_NAME, 0xc0 },
393 .mask = 0x0f,
396 .address = 0xd4,
398 { FM_AUTO_NAME, 0x0d },
399 { FM_SILENT_NAME, 0x1d },
400 { FM_ADVANCED_NAME, 0x8d },
405 .rt_temp_address = 0x68, // needs testing
406 .rt_fan_speed_address = 0x71, // needs testing
407 .rt_fan_speed_base_min = 0x19,
408 .rt_fan_speed_base_max = 0x37,
410 .bs_fan_speed_base_min = 0x00,
411 .bs_fan_speed_base_max = 0x0f,
414 .rt_temp_address = 0x80,
424 .bl_modes = { 0x00, 0x08 }, // ?
426 .bl_state_address = MSI_EC_ADDR_UNSUPP, // 0xd3, not functional
427 .state_base_value = 0x80,
442 .address = 0xef,
443 .offset_start = 0x8a,
444 .offset_end = 0x80,
445 .range_min = 0x8a,
446 .range_max = 0xe4,
449 .address = 0x2e,
450 .block_address = 0x2f,
454 .address = 0xbf,
458 .address = 0x98,
462 .address = 0xf2,
464 { SM_ECO_NAME, 0xc2 },
465 { SM_COMFORT_NAME, 0xc1 },
466 { SM_TURBO_NAME, 0xc4 },
472 .mask = 0x0f,
475 .address = 0xf4,
477 { FM_AUTO_NAME, 0x0d },
478 { FM_SILENT_NAME, 0x1d },
479 { FM_ADVANCED_NAME, 0x8d },
484 .rt_temp_address = 0x68, // needs testing
485 .rt_fan_speed_address = 0x71, // needs testing
486 .rt_fan_speed_base_min = 0x19,
487 .rt_fan_speed_base_max = 0x37,
489 .bs_fan_speed_base_min = 0x00,
490 .bs_fan_speed_base_max = 0x0f,
497 .micmute_led_address = 0x2b,
498 .mute_led_address = 0x2c,
503 .bl_modes = { 0x00, 0x08 }, // ?
505 .bl_state_address = MSI_EC_ADDR_UNSUPP, // 0xf3, not functional
506 .state_base_value = 0x80,
520 .address = 0xef,
521 .offset_start = 0x8a,
522 .offset_end = 0x80,
523 .range_min = 0x8a,
524 .range_max = 0xe4,
527 .address = 0x2e,
532 .address = 0xbf, // todo: reverse
536 .address = 0x98,
540 .address = 0xf2,
542 { SM_ECO_NAME, 0xc2 },
543 { SM_COMFORT_NAME, 0xc1 },
544 { SM_SPORT_NAME, 0xc0 },
545 { SM_TURBO_NAME, 0xc4 },
550 .address = 0xd5,
551 .mask = 0x0f,
554 .address = 0xf4,
556 { FM_AUTO_NAME, 0x0d },
557 { FM_SILENT_NAME, 0x1d },
558 { FM_ADVANCED_NAME, 0x8d },
563 .rt_temp_address = 0x68,
564 .rt_fan_speed_address = 0xc9,
565 .rt_fan_speed_base_min = 0x19,
566 .rt_fan_speed_base_max = 0x37,
568 .bs_fan_speed_base_min = 0x00,
569 .bs_fan_speed_base_max = 0x0f,
572 .rt_temp_address = 0x80,
582 .bl_modes = { 0x00, 0x08 }, // ?
584 .bl_state_address = MSI_EC_ADDR_UNSUPP, // 0xf3, not functional
585 .state_base_value = 0x80,
600 .address = 0xef,
601 .offset_start = 0x8a,
602 .offset_end = 0x80,
603 .range_min = 0x8a,
604 .range_max = 0xe4,
607 .address = 0x2e,
612 .address = 0xbf, // needs testing
616 .address = 0x98,
620 .address = 0xf2,
622 { SM_ECO_NAME, 0xc2 },
623 { SM_COMFORT_NAME, 0xc1 },
624 { SM_SPORT_NAME, 0xc0 },
625 { SM_TURBO_NAME, 0xc4 },
630 .address = MSI_EC_ADDR_UNKNOWN, // 0xd5 but has its own wet of modes
631 .mask = 0x0f,
634 .address = 0xf4,
636 { FM_AUTO_NAME, 0x0d }, // d may not be relevant
637 { FM_SILENT_NAME, 0x1d },
638 { FM_ADVANCED_NAME, 0x8d },
643 .rt_temp_address = 0x68,
644 .rt_fan_speed_address = 0xc9, // needs testing
645 .rt_fan_speed_base_min = 0x19,
646 .rt_fan_speed_base_max = 0x37,
648 .bs_fan_speed_base_min = 0x00,
649 .bs_fan_speed_base_max = 0x0f,
657 .mute_led_address = 0x2c,
662 .bl_modes = { 0x00, 0x08 }, // ?
664 .bl_state_address = 0xf3,
665 .state_base_value = 0x80,
692 for (u8 i = 0; i < len; i++) { in ec_read_seq()
694 if (result < 0) in ec_read_seq()
698 return 0; in ec_read_seq()
705 memset(buf, 0, MSI_EC_FW_VERSION_LENGTH + 1); in ec_get_firmware_version()
709 if (result < 0) in ec_get_firmware_version()
728 if (result < 0) in charge_control_threshold_show()
743 if (result < 0) in charge_control_threshold_store()
752 if (result < 0) in charge_control_threshold_store()
811 return 0; in msi_battery_remove()
847 if (result < 0) in load_configuration()
851 for (int i = 0; CONFIGS[i]; i++) { in load_configuration()
855 return 0; in load_configuration()
861 for (int i = 0; i < MSI_EC_FW_VERSION_LENGTH; i++) { in load_configuration()
877 if (result < 0) in msi_ec_init()
881 return 0; in msi_ec_init()