Lines Matching refs:rdata
172 u8 wdata = 0, rdata; in get_lcd_level() local
176 &rdata, 1); in get_lcd_level()
180 return (int) rdata / 31; in get_lcd_level()
185 u8 wdata = 4, rdata; in get_auto_brightness() local
189 &rdata, 1); in get_auto_brightness()
193 return !!(rdata & 8); in get_auto_brightness()
198 u8 wdata[2], rdata; in set_auto_brightness() local
204 &rdata, 1); in set_auto_brightness()
209 wdata[1] = (rdata & 0xF7) | (enable ? 8 : 0); in set_auto_brightness()
218 u8 wdata = 0, rdata; in set_device_state() local
228 result = ec_read(MSI_STANDARD_EC_COMMAND_ADDRESS, &rdata); in set_device_state()
232 if (!!(rdata & mask) != status) { in set_device_state()
234 if (rdata & mask) in set_device_state()
235 wdata = rdata & ~mask; in set_device_state()
237 wdata = rdata | mask; in set_device_state()
249 u8 wdata = 0, rdata; in get_wireless_state() local
252 result = ec_transaction(MSI_EC_COMMAND_WIRELESS, &wdata, 1, &rdata, 1); in get_wireless_state()
257 *wlan = !!(rdata & 8); in get_wireless_state()
260 *bluetooth = !!(rdata & 128); in get_wireless_state()
267 u8 rdata; in get_wireless_state_ec_standard() local
270 result = ec_read(MSI_STANDARD_EC_COMMAND_ADDRESS, &rdata); in get_wireless_state_ec_standard()
274 wlan_s = !!(rdata & MSI_STANDARD_EC_WLAN_MASK); in get_wireless_state_ec_standard()
276 bluetooth_s = !!(rdata & MSI_STANDARD_EC_BLUETOOTH_MASK); in get_wireless_state_ec_standard()
278 threeg_s = !!(rdata & MSI_STANDARD_EC_3G_MASK); in get_wireless_state_ec_standard()
285 u8 rdata; in get_threeg_exists() local
288 result = ec_read(MSI_STANDARD_EC_DEVICES_EXISTS_ADDRESS, &rdata); in get_threeg_exists()
292 threeg_exists = !!(rdata & MSI_STANDARD_EC_3G_MASK); in get_threeg_exists()
453 u8 rdata; in show_touchpad() local
456 result = ec_read(MSI_STANDARD_EC_FUNCTIONS_ADDRESS, &rdata); in show_touchpad()
460 return sprintf(buf, "%i\n", !!(rdata & MSI_STANDARD_EC_TOUCHPAD_MASK)); in show_touchpad()
467 u8 rdata; in show_turbo() local
470 result = ec_read(MSI_STANDARD_EC_FUNCTIONS_ADDRESS, &rdata); in show_turbo()
474 return sprintf(buf, "%i\n", !!(rdata & MSI_STANDARD_EC_TURBO_MASK)); in show_turbo()
481 u8 rdata; in show_eco() local
484 result = ec_read(MSI_STANDARD_EC_FUNCTIONS_ADDRESS, &rdata); in show_eco()
488 return sprintf(buf, "%i\n", !!(rdata & MSI_STANDARD_EC_ECO_MASK)); in show_eco()
495 u8 rdata; in show_turbo_cooldown() local
498 result = ec_read(MSI_STANDARD_EC_FUNCTIONS_ADDRESS, &rdata); in show_turbo_cooldown()
502 return sprintf(buf, "%i\n", (!!(rdata & MSI_STANDARD_EC_TURBO_MASK)) | in show_turbo_cooldown()
503 (!!(rdata & MSI_STANDARD_EC_TURBO_COOLDOWN_MASK) << 1)); in show_turbo_cooldown()
510 u8 rdata; in show_auto_fan() local
513 result = ec_read(MSI_STANDARD_EC_FAN_ADDRESS, &rdata); in show_auto_fan()
517 return sprintf(buf, "%i\n", !!(rdata & MSI_STANDARD_EC_AUTOFAN_MASK)); in show_auto_fan()
804 u8 rdata; in msi_send_touchpad_key() local
807 result = ec_read(MSI_STANDARD_EC_FUNCTIONS_ADDRESS, &rdata); in msi_send_touchpad_key()
812 (rdata & MSI_STANDARD_EC_TOUCHPAD_MASK) ? in msi_send_touchpad_key()