Lines Matching full:result

161 	int result;  in get_lcd_level()  local
163 result = ec_transaction(MSI_EC_COMMAND_LCD_LEVEL, &wdata, 1, in get_lcd_level()
165 if (result < 0) in get_lcd_level()
166 return result; in get_lcd_level()
174 int result; in get_auto_brightness() local
176 result = ec_transaction(MSI_EC_COMMAND_LCD_LEVEL, &wdata, 1, in get_auto_brightness()
178 if (result < 0) in get_auto_brightness()
179 return result; in get_auto_brightness()
187 int result; in set_auto_brightness() local
191 result = ec_transaction(MSI_EC_COMMAND_LCD_LEVEL, wdata, 1, in set_auto_brightness()
193 if (result < 0) in set_auto_brightness()
194 return result; in set_auto_brightness()
207 int result; in set_device_state() local
216 result = ec_read(MSI_STANDARD_EC_COMMAND_ADDRESS, &rdata); in set_device_state()
217 if (result < 0) in set_device_state()
218 return result; in set_device_state()
227 result = ec_write(MSI_STANDARD_EC_COMMAND_ADDRESS, wdata); in set_device_state()
228 if (result < 0) in set_device_state()
229 return result; in set_device_state()
238 int result; in get_wireless_state() local
240 result = ec_transaction(MSI_EC_COMMAND_WIRELESS, &wdata, 1, &rdata, 1); in get_wireless_state()
241 if (result < 0) in get_wireless_state()
242 return result; in get_wireless_state()
256 int result; in get_wireless_state_ec_standard() local
258 result = ec_read(MSI_STANDARD_EC_COMMAND_ADDRESS, &rdata); in get_wireless_state_ec_standard()
259 if (result < 0) in get_wireless_state_ec_standard()
260 return result; in get_wireless_state_ec_standard()
274 int result; in get_threeg_exists() local
276 result = ec_read(MSI_STANDARD_EC_DEVICES_EXISTS_ADDRESS, &rdata); in get_threeg_exists()
277 if (result < 0) in get_threeg_exists()
278 return result; in get_threeg_exists()
442 int result; in show_touchpad() local
444 result = ec_read(MSI_STANDARD_EC_FUNCTIONS_ADDRESS, &rdata); in show_touchpad()
445 if (result < 0) in show_touchpad()
446 return result; in show_touchpad()
456 int result; in show_turbo() local
458 result = ec_read(MSI_STANDARD_EC_FUNCTIONS_ADDRESS, &rdata); in show_turbo()
459 if (result < 0) in show_turbo()
460 return result; in show_turbo()
470 int result; in show_eco() local
472 result = ec_read(MSI_STANDARD_EC_FUNCTIONS_ADDRESS, &rdata); in show_eco()
473 if (result < 0) in show_eco()
474 return result; in show_eco()
484 int result; in show_turbo_cooldown() local
486 result = ec_read(MSI_STANDARD_EC_FUNCTIONS_ADDRESS, &rdata); in show_turbo_cooldown()
487 if (result < 0) in show_turbo_cooldown()
488 return result; in show_turbo_cooldown()
499 int result; in show_auto_fan() local
501 result = ec_read(MSI_STANDARD_EC_FAN_ADDRESS, &rdata); in show_auto_fan()
502 if (result < 0) in show_auto_fan()
503 return result; in show_auto_fan()
512 int enable, result; in store_auto_fan() local
517 result = ec_write(MSI_STANDARD_EC_FAN_ADDRESS, enable); in store_auto_fan()
518 if (result < 0) in store_auto_fan()
519 return result; in store_auto_fan()
716 int result = set_device_state(blocked ? "0" : "1", 0, in rfkill_bluetooth_set() local
719 return min(result, 0); in rfkill_bluetooth_set()
724 int result = set_device_state(blocked ? "0" : "1", 0, in rfkill_wlan_set() local
727 return min(result, 0); in rfkill_wlan_set()
732 int result = set_device_state(blocked ? "0" : "1", 0, in rfkill_threeg_set() local
735 return min(result, 0); in rfkill_threeg_set()
793 int result; in msi_send_touchpad_key() local
795 result = ec_read(MSI_STANDARD_EC_FUNCTIONS_ADDRESS, &rdata); in msi_send_touchpad_key()
796 if (result < 0) in msi_send_touchpad_key()
928 int result; in msi_laptop_resume() local
934 result = ec_read(MSI_STANDARD_EC_SCM_LOAD_ADDRESS, &data); in msi_laptop_resume()
935 if (result < 0) in msi_laptop_resume()
936 return result; in msi_laptop_resume()
938 result = ec_write(MSI_STANDARD_EC_SCM_LOAD_ADDRESS, in msi_laptop_resume()
940 if (result < 0) in msi_laptop_resume()
941 return result; in msi_laptop_resume()
978 int result; in load_scm_model_init() local
991 result = ec_read(MSI_STANDARD_EC_SCM_LOAD_ADDRESS, &data); in load_scm_model_init()
992 if (result < 0) in load_scm_model_init()
993 return result; in load_scm_model_init()
995 result = ec_write(MSI_STANDARD_EC_SCM_LOAD_ADDRESS, in load_scm_model_init()
997 if (result < 0) in load_scm_model_init()
998 return result; in load_scm_model_init()
1001 result = rfkill_init(sdev); in load_scm_model_init()
1002 if (result < 0) in load_scm_model_init()
1006 result = msi_laptop_input_setup(); in load_scm_model_init()
1007 if (result) in load_scm_model_init()
1010 result = i8042_install_filter(msi_laptop_i8042_filter); in load_scm_model_init()
1011 if (result) { in load_scm_model_init()
1026 return result; in load_scm_model_init()