• Home
  • Raw
  • Download

Lines Matching refs: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()
714 int result = set_device_state(blocked ? "0" : "1", 0, in rfkill_bluetooth_set() local
717 return min(result, 0); in rfkill_bluetooth_set()
722 int result = set_device_state(blocked ? "0" : "1", 0, in rfkill_wlan_set() local
725 return min(result, 0); in rfkill_wlan_set()
730 int result = set_device_state(blocked ? "0" : "1", 0, in rfkill_threeg_set() local
733 return min(result, 0); in rfkill_threeg_set()
791 int result; in msi_send_touchpad_key() local
793 result = ec_read(MSI_STANDARD_EC_FUNCTIONS_ADDRESS, &rdata); in msi_send_touchpad_key()
794 if (result < 0) in msi_send_touchpad_key()
926 int result; in msi_laptop_resume() local
932 result = ec_read(MSI_STANDARD_EC_SCM_LOAD_ADDRESS, &data); in msi_laptop_resume()
933 if (result < 0) in msi_laptop_resume()
934 return result; in msi_laptop_resume()
936 result = ec_write(MSI_STANDARD_EC_SCM_LOAD_ADDRESS, in msi_laptop_resume()
938 if (result < 0) in msi_laptop_resume()
939 return result; in msi_laptop_resume()
976 int result; in load_scm_model_init() local
989 result = ec_read(MSI_STANDARD_EC_SCM_LOAD_ADDRESS, &data); in load_scm_model_init()
990 if (result < 0) in load_scm_model_init()
991 return result; in load_scm_model_init()
993 result = ec_write(MSI_STANDARD_EC_SCM_LOAD_ADDRESS, in load_scm_model_init()
995 if (result < 0) in load_scm_model_init()
996 return result; in load_scm_model_init()
999 result = rfkill_init(sdev); in load_scm_model_init()
1000 if (result < 0) in load_scm_model_init()
1004 result = msi_laptop_input_setup(); in load_scm_model_init()
1005 if (result) in load_scm_model_init()
1008 result = i8042_install_filter(msi_laptop_i8042_filter); in load_scm_model_init()
1009 if (result) { in load_scm_model_init()
1024 return result; in load_scm_model_init()