Lines Matching refs:result
159 int result;
161 result = ec_transaction(MSI_EC_COMMAND_LCD_LEVEL, &wdata, 1,
163 if (result < 0)
164 return result;
172 int result;
174 result = ec_transaction(MSI_EC_COMMAND_LCD_LEVEL, &wdata, 1,
176 if (result < 0)
177 return result;
185 int result;
189 result = ec_transaction(MSI_EC_COMMAND_LCD_LEVEL, wdata, 1,
191 if (result < 0)
192 return result;
205 int result;
214 result = ec_read(MSI_STANDARD_EC_COMMAND_ADDRESS, &rdata);
215 if (result < 0)
216 return result;
225 result = ec_write(MSI_STANDARD_EC_COMMAND_ADDRESS, wdata);
226 if (result < 0)
227 return result;
236 int result;
238 result = ec_transaction(MSI_EC_COMMAND_WIRELESS, &wdata, 1, &rdata, 1);
239 if (result < 0)
240 return result;
254 int result;
256 result = ec_read(MSI_STANDARD_EC_COMMAND_ADDRESS, &rdata);
257 if (result < 0)
258 return result;
272 int result;
274 result = ec_read(MSI_STANDARD_EC_DEVICES_EXISTS_ADDRESS, &rdata);
275 if (result < 0)
276 return result;
440 int result;
442 result = ec_read(MSI_STANDARD_EC_FUNCTIONS_ADDRESS, &rdata);
443 if (result < 0)
444 return result;
454 int result;
456 result = ec_read(MSI_STANDARD_EC_FUNCTIONS_ADDRESS, &rdata);
457 if (result < 0)
458 return result;
468 int result;
470 result = ec_read(MSI_STANDARD_EC_FUNCTIONS_ADDRESS, &rdata);
471 if (result < 0)
472 return result;
482 int result;
484 result = ec_read(MSI_STANDARD_EC_FUNCTIONS_ADDRESS, &rdata);
485 if (result < 0)
486 return result;
497 int result;
499 result = ec_read(MSI_STANDARD_EC_FAN_ADDRESS, &rdata);
500 if (result < 0)
501 return result;
510 int enable, result;
515 result = ec_write(MSI_STANDARD_EC_FAN_ADDRESS, enable);
516 if (result < 0)
517 return result;
721 int result = set_device_state(blocked ? "0" : "1", 0,
724 return min(result, 0);
729 int result = set_device_state(blocked ? "0" : "1", 0,
732 return min(result, 0);
737 int result = set_device_state(blocked ? "0" : "1", 0,
740 return min(result, 0);
797 int result;
799 result = ec_read(MSI_STANDARD_EC_FUNCTIONS_ADDRESS, &rdata);
800 if (result < 0)
917 int result;
923 result = ec_read(MSI_STANDARD_EC_SCM_LOAD_ADDRESS, &data);
924 if (result < 0)
925 return result;
927 result = ec_write(MSI_STANDARD_EC_SCM_LOAD_ADDRESS,
929 if (result < 0)
930 return result;
972 int result;
985 result = msi_scm_disable_hw_fn_handling();
986 if (result < 0)
987 return result;
990 result = rfkill_init(sdev);
991 if (result < 0)
995 result = msi_laptop_input_setup();
996 if (result)
999 result = i8042_install_filter(msi_laptop_i8042_filter);
1000 if (result) {
1014 return result;