Lines Matching refs:result
174 int result; in get_lcd_level() local
176 result = ec_transaction(MSI_EC_COMMAND_LCD_LEVEL, &wdata, 1, in get_lcd_level()
178 if (result < 0) in get_lcd_level()
179 return result; in get_lcd_level()
187 int result; in get_auto_brightness() local
189 result = ec_transaction(MSI_EC_COMMAND_LCD_LEVEL, &wdata, 1, in get_auto_brightness()
191 if (result < 0) in get_auto_brightness()
192 return result; in get_auto_brightness()
200 int result; in set_auto_brightness() local
204 result = ec_transaction(MSI_EC_COMMAND_LCD_LEVEL, wdata, 1, in set_auto_brightness()
206 if (result < 0) in set_auto_brightness()
207 return result; in set_auto_brightness()
220 int result; in set_device_state() local
229 result = ec_read(MSI_STANDARD_EC_COMMAND_ADDRESS, &rdata); in set_device_state()
230 if (result < 0) in set_device_state()
231 return result; in set_device_state()
240 result = ec_write(MSI_STANDARD_EC_COMMAND_ADDRESS, wdata); in set_device_state()
241 if (result < 0) in set_device_state()
242 return result; in set_device_state()
251 int result; in get_wireless_state() local
253 result = ec_transaction(MSI_EC_COMMAND_WIRELESS, &wdata, 1, &rdata, 1); in get_wireless_state()
254 if (result < 0) in get_wireless_state()
255 return result; in get_wireless_state()
269 int result; in get_wireless_state_ec_standard() local
271 result = ec_read(MSI_STANDARD_EC_COMMAND_ADDRESS, &rdata); in get_wireless_state_ec_standard()
272 if (result < 0) in get_wireless_state_ec_standard()
273 return result; in get_wireless_state_ec_standard()
287 int result; in get_threeg_exists() local
289 result = ec_read(MSI_STANDARD_EC_DEVICES_EXISTS_ADDRESS, &rdata); in get_threeg_exists()
290 if (result < 0) in get_threeg_exists()
291 return result; in get_threeg_exists()
455 int result; in show_touchpad() local
457 result = ec_read(MSI_STANDARD_EC_FUNCTIONS_ADDRESS, &rdata); in show_touchpad()
458 if (result < 0) in show_touchpad()
459 return result; in show_touchpad()
469 int result; in show_turbo() local
471 result = ec_read(MSI_STANDARD_EC_FUNCTIONS_ADDRESS, &rdata); in show_turbo()
472 if (result < 0) in show_turbo()
473 return result; in show_turbo()
483 int result; in show_eco() local
485 result = ec_read(MSI_STANDARD_EC_FUNCTIONS_ADDRESS, &rdata); in show_eco()
486 if (result < 0) in show_eco()
487 return result; in show_eco()
497 int result; in show_turbo_cooldown() local
499 result = ec_read(MSI_STANDARD_EC_FUNCTIONS_ADDRESS, &rdata); in show_turbo_cooldown()
500 if (result < 0) in show_turbo_cooldown()
501 return result; in show_turbo_cooldown()
512 int result; in show_auto_fan() local
514 result = ec_read(MSI_STANDARD_EC_FAN_ADDRESS, &rdata); in show_auto_fan()
515 if (result < 0) in show_auto_fan()
516 return result; in show_auto_fan()
525 int enable, result; in store_auto_fan() local
530 result = ec_write(MSI_STANDARD_EC_FAN_ADDRESS, enable); in store_auto_fan()
531 if (result < 0) in store_auto_fan()
532 return result; in store_auto_fan()
729 int result = set_device_state(blocked ? "0" : "1", 0, in rfkill_bluetooth_set() local
732 return min(result, 0); in rfkill_bluetooth_set()
737 int result = set_device_state(blocked ? "0" : "1", 0, in rfkill_wlan_set() local
740 return min(result, 0); in rfkill_wlan_set()
745 int result = set_device_state(blocked ? "0" : "1", 0, in rfkill_threeg_set() local
748 return min(result, 0); in rfkill_threeg_set()
806 int result; in msi_send_touchpad_key() local
808 result = ec_read(MSI_STANDARD_EC_FUNCTIONS_ADDRESS, &rdata); in msi_send_touchpad_key()
809 if (result < 0) in msi_send_touchpad_key()
941 int result; in msi_laptop_resume() local
947 result = ec_read(MSI_STANDARD_EC_SCM_LOAD_ADDRESS, &data); in msi_laptop_resume()
948 if (result < 0) in msi_laptop_resume()
949 return result; in msi_laptop_resume()
951 result = ec_write(MSI_STANDARD_EC_SCM_LOAD_ADDRESS, in msi_laptop_resume()
953 if (result < 0) in msi_laptop_resume()
954 return result; in msi_laptop_resume()
991 int result; in load_scm_model_init() local
1004 result = ec_read(MSI_STANDARD_EC_SCM_LOAD_ADDRESS, &data); in load_scm_model_init()
1005 if (result < 0) in load_scm_model_init()
1006 return result; in load_scm_model_init()
1008 result = ec_write(MSI_STANDARD_EC_SCM_LOAD_ADDRESS, in load_scm_model_init()
1010 if (result < 0) in load_scm_model_init()
1011 return result; in load_scm_model_init()
1014 result = rfkill_init(sdev); in load_scm_model_init()
1015 if (result < 0) in load_scm_model_init()
1019 result = msi_laptop_input_setup(); in load_scm_model_init()
1020 if (result) in load_scm_model_init()
1023 result = i8042_install_filter(msi_laptop_i8042_filter); in load_scm_model_init()
1024 if (result) { in load_scm_model_init()
1039 return result; in load_scm_model_init()