Lines Matching +full:0 +full:x2f
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,
678 .address = 0xd7,
679 .offset_start = 0x8a,
680 .offset_end = 0x80,
681 .range_min = 0x8a,
682 .range_max = 0xe4,
685 .address = 0x2e,
690 .address = 0xe8,
694 .address = 0x98,
698 .address = 0xd2,
700 { SM_ECO_NAME, 0xc2 },
701 { SM_COMFORT_NAME, 0xc1 },
702 { SM_SPORT_NAME, 0xc0 },
707 .address = 0xeb,
708 .mask = 0x0f,
711 .address = 0xd4,
713 { FM_AUTO_NAME, 0x0d },
714 { FM_SILENT_NAME, 0x1d },
715 { FM_BASIC_NAME, 0x4d },
720 .rt_temp_address = 0x68,
721 .rt_fan_speed_address = 0x71,
722 .rt_fan_speed_base_min = 0x19,
723 .rt_fan_speed_base_max = 0x37,
725 .bs_fan_speed_base_min = 0x00,
726 .bs_fan_speed_base_max = 0x0f,
734 .mute_led_address = 0x2d,
739 .bl_modes = { 0x00, 0x08 }, // ?
742 .state_base_value = 0x80,
755 .address = 0xef,
756 .offset_start = 0x8a,
757 .offset_end = 0x80,
758 .range_min = 0x8a,
759 .range_max = 0xe4,
762 .address = 0x2e,
763 .block_address = 0x2f,
767 .address = 0xbf,
771 .address = 0x98,
775 .address = 0xf2,
777 { SM_ECO_NAME, 0xc2 },
778 { SM_COMFORT_NAME, 0xc1 },
779 { SM_SPORT_NAME, 0xc0 },
785 .mask = 0x0f,
788 .address = 0xf4,
790 { FM_AUTO_NAME, 0x0d },
791 { FM_SILENT_NAME, 0x1d },
792 { FM_ADVANCED_NAME, 0x8d },
797 .rt_temp_address = 0x68,
798 .rt_fan_speed_address = 0x71,
799 .rt_fan_speed_base_min = 0x00,
800 .rt_fan_speed_base_max = 0x96,
802 .bs_fan_speed_base_min = 0x00,
803 .bs_fan_speed_base_max = 0x0f,
810 .micmute_led_address = 0x2b,
811 .mute_led_address = 0x2c,
816 .bl_modes = { 0x00, 0x08 },
818 .bl_state_address = 0xf3,
819 .state_base_value = 0x80,
832 .address = 0xd7,
833 .offset_start = 0x8a,
834 .offset_end = 0x80,
835 .range_min = 0x8a,
836 .range_max = 0xe4,
839 .address = 0x2e,
840 .block_address = 0x2f,
848 .address = 0x98,
852 .address = 0xd2,
854 { SM_ECO_NAME, 0xc2 },
855 { SM_COMFORT_NAME, 0xc1 },
856 { SM_SPORT_NAME, 0xc0 },
857 { SM_TURBO_NAME, 0xc4 },
862 .address = 0xe5,
863 .mask = 0x0f,
866 .address = 0xd4,
868 { FM_AUTO_NAME, 0x0d },
869 { FM_SILENT_NAME, 0x1d },
870 { FM_ADVANCED_NAME, 0x8d },
875 .rt_temp_address = 0x68,
876 .rt_fan_speed_address = 0x71, // ?
877 .rt_fan_speed_base_min = 0x19,
878 .rt_fan_speed_base_max = 0x37,
880 .bs_fan_speed_base_min = 0x00,
881 .bs_fan_speed_base_max = 0x0f,
884 .rt_temp_address = 0x80,
885 .rt_fan_speed_address = 0x89,
888 .micmute_led_address = 0x2c,
889 .mute_led_address = 0x2d,
893 .bl_mode_address = 0x2c,
894 .bl_modes = { 0x00, 0x08 },
896 .bl_state_address = 0xd3,
897 .state_base_value = 0x80,
911 .address = 0xd7,
912 .offset_start = 0x8a,
913 .offset_end = 0x80,
914 .range_min = 0x8a,
915 .range_max = 0xe4,
918 .address = 0x2e,
923 .address = 0xe8,
927 .address = 0x98,
931 .address = 0xd2,
933 { SM_ECO_NAME, 0xc2 },
934 { SM_COMFORT_NAME, 0xc1 },
935 { SM_SPORT_NAME, 0xc0 },
940 .address = 0xeb,
941 .mask = 0x0f,
944 .address = 0xd4,
946 { FM_AUTO_NAME, 0x0d },
947 { FM_SILENT_NAME, 0x1d },
948 { FM_ADVANCED_NAME, 0x4d },
953 .rt_temp_address = 0x68,
962 .micmute_led_address = 0x2c,
963 .mute_led_address = 0x2d,
970 .bl_state_address = 0xd3,
971 .state_base_value = 0x80,
984 .address = 0xd7,
985 .offset_start = 0x8a,
986 .offset_end = 0x80,
987 .range_min = 0x8a,
988 .range_max = 0xe4,
991 .address = 0x2e,
992 .block_address = 0x2f,
996 .address = 0xe8,
1000 .address = 0x98,
1004 .address = 0xd2,
1006 { SM_ECO_NAME, 0xc2 },
1007 { SM_COMFORT_NAME, 0xc1 },
1008 { SM_SPORT_NAME, 0xc0 },
1009 { SM_TURBO_NAME, 0xc4 },
1014 .address = MSI_EC_ADDR_UNSUPP, // 0xeb
1015 .mask = 0x0f, // 00, 0f
1018 .address = 0xd4,
1020 { FM_AUTO_NAME, 0x0d },
1021 { FM_SILENT_NAME, 0x1d },
1022 { FM_ADVANCED_NAME, 0x8d },
1027 .rt_temp_address = 0x68,
1028 .rt_fan_speed_address = 0x71,
1029 .rt_fan_speed_base_min = 0x19,
1030 .rt_fan_speed_base_max = 0x37,
1032 .bs_fan_speed_base_min = 0x00,
1033 .bs_fan_speed_base_max = 0x0f,
1037 .rt_fan_speed_address = 0x89,
1041 .mute_led_address = 0x2d,
1046 .bl_modes = { 0x00, 0x08 },
1048 .bl_state_address = 0xd3,
1049 .state_base_value = 0x80,
1062 .address = 0xd7,
1063 .offset_start = 0x8a,
1064 .offset_end = 0x80,
1065 .range_min = 0x8a,
1066 .range_max = 0xe4,
1069 .address = 0x2e,
1070 .block_address = 0x2f,
1074 .address = 0xe8,
1075 .bit = 4, // 0x00-0x10
1078 .address = 0x98,
1082 .address = 0xd2,
1084 { SM_ECO_NAME, 0xc2 }, // super battery
1085 { SM_COMFORT_NAME, 0xc1 }, // balanced
1086 { SM_TURBO_NAME, 0xc4 }, // extreme
1092 .mask = 0x0f, // 00, 0f
1095 .address = 0xd4,
1097 { FM_AUTO_NAME, 0x0d },
1098 { FM_SILENT_NAME, 0x1d },
1099 { FM_ADVANCED_NAME, 0x8d },
1104 .rt_temp_address = 0x68,
1105 .rt_fan_speed_address = 0x71, // 0x0-0x96
1106 .rt_fan_speed_base_min = 0x00,
1107 .rt_fan_speed_base_max = 0x96,
1109 .bs_fan_speed_base_min = 0x00,
1110 .bs_fan_speed_base_max = 0x0f,
1113 .rt_temp_address = 0x80,
1114 .rt_fan_speed_address = 0x89,
1117 .micmute_led_address = 0x2c,
1118 .mute_led_address = 0x2d,
1122 .bl_mode_address = 0x2c, // KB auto turn off
1123 .bl_modes = { 0x00, 0x08 }, // always on; off after 10 sec
1125 .bl_state_address = 0xd3,
1126 .state_base_value = 0x80,
1159 for (u8 i = 0; i < len; i++) { in ec_read_seq()
1161 if (result < 0) in ec_read_seq()
1165 return 0; in ec_read_seq()
1172 memset(buf, 0, MSI_EC_FW_VERSION_LENGTH + 1); in ec_get_firmware_version()
1176 if (result < 0) in ec_get_firmware_version()
1195 if (result < 0) in charge_control_threshold_show()
1210 if (result < 0) in charge_control_threshold_store()
1219 if (result < 0) in charge_control_threshold_store()
1278 return 0; in msi_battery_remove()
1314 if (result < 0) in load_configuration()
1318 for (int i = 0; CONFIGS[i]; i++) { in load_configuration()
1322 return 0; in load_configuration()
1328 for (int i = 0; i < MSI_EC_FW_VERSION_LENGTH; i++) { in load_configuration()
1344 if (result < 0) in msi_ec_init()
1348 return 0; in msi_ec_init()