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