Lines Matching refs:result
173 int result; in get_lcd_level() local
175 result = ec_transaction(MSI_EC_COMMAND_LCD_LEVEL, &wdata, 1, in get_lcd_level()
177 if (result < 0) in get_lcd_level()
178 return result; in get_lcd_level()
186 int result; in get_auto_brightness() local
188 result = ec_transaction(MSI_EC_COMMAND_LCD_LEVEL, &wdata, 1, in get_auto_brightness()
190 if (result < 0) in get_auto_brightness()
191 return result; in get_auto_brightness()
199 int result; in set_auto_brightness() local
203 result = ec_transaction(MSI_EC_COMMAND_LCD_LEVEL, wdata, 1, in set_auto_brightness()
205 if (result < 0) in set_auto_brightness()
206 return result; in set_auto_brightness()
219 int result; in set_device_state() local
228 result = ec_read(MSI_STANDARD_EC_COMMAND_ADDRESS, &rdata); in set_device_state()
229 if (result < 0) in set_device_state()
230 return result; in set_device_state()
239 result = ec_write(MSI_STANDARD_EC_COMMAND_ADDRESS, wdata); in set_device_state()
240 if (result < 0) in set_device_state()
241 return result; in set_device_state()
250 int result; in get_wireless_state() local
252 result = ec_transaction(MSI_EC_COMMAND_WIRELESS, &wdata, 1, &rdata, 1); in get_wireless_state()
253 if (result < 0) in get_wireless_state()
254 return result; in get_wireless_state()
268 int result; in get_wireless_state_ec_standard() local
270 result = ec_read(MSI_STANDARD_EC_COMMAND_ADDRESS, &rdata); in get_wireless_state_ec_standard()
271 if (result < 0) in get_wireless_state_ec_standard()
272 return result; in get_wireless_state_ec_standard()
286 int result; in get_threeg_exists() local
288 result = ec_read(MSI_STANDARD_EC_DEVICES_EXISTS_ADDRESS, &rdata); in get_threeg_exists()
289 if (result < 0) in get_threeg_exists()
290 return result; in get_threeg_exists()
454 int result; in show_touchpad() local
456 result = ec_read(MSI_STANDARD_EC_FUNCTIONS_ADDRESS, &rdata); in show_touchpad()
457 if (result < 0) in show_touchpad()
458 return result; in show_touchpad()
468 int result; in show_turbo() local
470 result = ec_read(MSI_STANDARD_EC_FUNCTIONS_ADDRESS, &rdata); in show_turbo()
471 if (result < 0) in show_turbo()
472 return result; in show_turbo()
482 int result; in show_eco() local
484 result = ec_read(MSI_STANDARD_EC_FUNCTIONS_ADDRESS, &rdata); in show_eco()
485 if (result < 0) in show_eco()
486 return result; in show_eco()
496 int result; in show_turbo_cooldown() local
498 result = ec_read(MSI_STANDARD_EC_FUNCTIONS_ADDRESS, &rdata); in show_turbo_cooldown()
499 if (result < 0) in show_turbo_cooldown()
500 return result; in show_turbo_cooldown()
511 int result; in show_auto_fan() local
513 result = ec_read(MSI_STANDARD_EC_FAN_ADDRESS, &rdata); in show_auto_fan()
514 if (result < 0) in show_auto_fan()
515 return result; in show_auto_fan()
524 int enable, result; in store_auto_fan() local
529 result = ec_write(MSI_STANDARD_EC_FAN_ADDRESS, enable); in store_auto_fan()
530 if (result < 0) in store_auto_fan()
531 return result; in store_auto_fan()
728 int result = set_device_state(blocked ? "0" : "1", 0, in rfkill_bluetooth_set() local
731 return min(result, 0); in rfkill_bluetooth_set()
736 int result = set_device_state(blocked ? "0" : "1", 0, in rfkill_wlan_set() local
739 return min(result, 0); in rfkill_wlan_set()
744 int result = set_device_state(blocked ? "0" : "1", 0, in rfkill_threeg_set() local
747 return min(result, 0); in rfkill_threeg_set()
805 int result; in msi_send_touchpad_key() local
807 result = ec_read(MSI_STANDARD_EC_FUNCTIONS_ADDRESS, &rdata); in msi_send_touchpad_key()
808 if (result < 0) in msi_send_touchpad_key()
940 int result; in msi_laptop_resume() local
946 result = ec_read(MSI_STANDARD_EC_SCM_LOAD_ADDRESS, &data); in msi_laptop_resume()
947 if (result < 0) in msi_laptop_resume()
948 return result; in msi_laptop_resume()
950 result = ec_write(MSI_STANDARD_EC_SCM_LOAD_ADDRESS, in msi_laptop_resume()
952 if (result < 0) in msi_laptop_resume()
953 return result; in msi_laptop_resume()
998 int result; in load_scm_model_init() local
1011 result = ec_read(MSI_STANDARD_EC_SCM_LOAD_ADDRESS, &data); in load_scm_model_init()
1012 if (result < 0) in load_scm_model_init()
1013 return result; in load_scm_model_init()
1015 result = ec_write(MSI_STANDARD_EC_SCM_LOAD_ADDRESS, in load_scm_model_init()
1017 if (result < 0) in load_scm_model_init()
1018 return result; in load_scm_model_init()
1021 result = rfkill_init(sdev); in load_scm_model_init()
1022 if (result < 0) in load_scm_model_init()
1026 result = msi_laptop_input_setup(); in load_scm_model_init()
1027 if (result) in load_scm_model_init()
1030 result = i8042_install_filter(msi_laptop_i8042_filter); in load_scm_model_init()
1031 if (result) { in load_scm_model_init()
1046 return result; in load_scm_model_init()