Lines Matching refs:rdata
173 u8 wdata = 0, rdata; in get_lcd_level() local
177 &rdata, 1); in get_lcd_level()
181 return (int) rdata / 31; in get_lcd_level()
186 u8 wdata = 4, rdata; in get_auto_brightness() local
190 &rdata, 1); in get_auto_brightness()
194 return !!(rdata & 8); in get_auto_brightness()
199 u8 wdata[2], rdata; in set_auto_brightness() local
205 &rdata, 1); in set_auto_brightness()
210 wdata[1] = (rdata & 0xF7) | (enable ? 8 : 0); in set_auto_brightness()
219 u8 wdata = 0, rdata; in set_device_state() local
229 result = ec_read(MSI_STANDARD_EC_COMMAND_ADDRESS, &rdata); in set_device_state()
233 if (!!(rdata & mask) != status) { in set_device_state()
235 if (rdata & mask) in set_device_state()
236 wdata = rdata & ~mask; in set_device_state()
238 wdata = rdata | mask; in set_device_state()
250 u8 wdata = 0, rdata; in get_wireless_state() local
253 result = ec_transaction(MSI_EC_COMMAND_WIRELESS, &wdata, 1, &rdata, 1); in get_wireless_state()
258 *wlan = !!(rdata & 8); in get_wireless_state()
261 *bluetooth = !!(rdata & 128); in get_wireless_state()
268 u8 rdata; in get_wireless_state_ec_standard() local
271 result = ec_read(MSI_STANDARD_EC_COMMAND_ADDRESS, &rdata); in get_wireless_state_ec_standard()
275 wlan_s = !!(rdata & MSI_STANDARD_EC_WLAN_MASK); in get_wireless_state_ec_standard()
277 bluetooth_s = !!(rdata & MSI_STANDARD_EC_BLUETOOTH_MASK); in get_wireless_state_ec_standard()
279 threeg_s = !!(rdata & MSI_STANDARD_EC_3G_MASK); in get_wireless_state_ec_standard()
286 u8 rdata; in get_threeg_exists() local
289 result = ec_read(MSI_STANDARD_EC_DEVICES_EXISTS_ADDRESS, &rdata); in get_threeg_exists()
293 threeg_exists = !!(rdata & MSI_STANDARD_EC_3G_MASK); in get_threeg_exists()
454 u8 rdata; in show_touchpad() local
457 result = ec_read(MSI_STANDARD_EC_FUNCTIONS_ADDRESS, &rdata); in show_touchpad()
461 return sprintf(buf, "%i\n", !!(rdata & MSI_STANDARD_EC_TOUCHPAD_MASK)); in show_touchpad()
468 u8 rdata; in show_turbo() local
471 result = ec_read(MSI_STANDARD_EC_FUNCTIONS_ADDRESS, &rdata); in show_turbo()
475 return sprintf(buf, "%i\n", !!(rdata & MSI_STANDARD_EC_TURBO_MASK)); in show_turbo()
482 u8 rdata; in show_eco() local
485 result = ec_read(MSI_STANDARD_EC_FUNCTIONS_ADDRESS, &rdata); in show_eco()
489 return sprintf(buf, "%i\n", !!(rdata & MSI_STANDARD_EC_ECO_MASK)); in show_eco()
496 u8 rdata; in show_turbo_cooldown() local
499 result = ec_read(MSI_STANDARD_EC_FUNCTIONS_ADDRESS, &rdata); in show_turbo_cooldown()
503 return sprintf(buf, "%i\n", (!!(rdata & MSI_STANDARD_EC_TURBO_MASK)) | in show_turbo_cooldown()
504 (!!(rdata & MSI_STANDARD_EC_TURBO_COOLDOWN_MASK) << 1)); in show_turbo_cooldown()
511 u8 rdata; in show_auto_fan() local
514 result = ec_read(MSI_STANDARD_EC_FAN_ADDRESS, &rdata); in show_auto_fan()
518 return sprintf(buf, "%i\n", !!(rdata & MSI_STANDARD_EC_AUTOFAN_MASK)); in show_auto_fan()
805 u8 rdata; in msi_send_touchpad_key() local
808 result = ec_read(MSI_STANDARD_EC_FUNCTIONS_ADDRESS, &rdata); in msi_send_touchpad_key()
813 (rdata & MSI_STANDARD_EC_TOUCHPAD_MASK) ? in msi_send_touchpad_key()