Lines Matching refs:rdata

160 	u8 wdata = 0, rdata;  in get_lcd_level()  local
164 &rdata, 1); in get_lcd_level()
168 return (int) rdata / 31; in get_lcd_level()
173 u8 wdata = 4, rdata; in get_auto_brightness() local
177 &rdata, 1); in get_auto_brightness()
181 return !!(rdata & 8); in get_auto_brightness()
186 u8 wdata[2], rdata; in set_auto_brightness() local
192 &rdata, 1); in set_auto_brightness()
197 wdata[1] = (rdata & 0xF7) | (enable ? 8 : 0); in set_auto_brightness()
206 u8 wdata = 0, rdata; in set_device_state() local
216 result = ec_read(MSI_STANDARD_EC_COMMAND_ADDRESS, &rdata); in set_device_state()
220 if (!!(rdata & mask) != status) { in set_device_state()
222 if (rdata & mask) in set_device_state()
223 wdata = rdata & ~mask; in set_device_state()
225 wdata = rdata | mask; in set_device_state()
237 u8 wdata = 0, rdata; in get_wireless_state() local
240 result = ec_transaction(MSI_EC_COMMAND_WIRELESS, &wdata, 1, &rdata, 1); in get_wireless_state()
245 *wlan = !!(rdata & 8); in get_wireless_state()
248 *bluetooth = !!(rdata & 128); in get_wireless_state()
255 u8 rdata; in get_wireless_state_ec_standard() local
258 result = ec_read(MSI_STANDARD_EC_COMMAND_ADDRESS, &rdata); in get_wireless_state_ec_standard()
262 wlan_s = !!(rdata & MSI_STANDARD_EC_WLAN_MASK); in get_wireless_state_ec_standard()
264 bluetooth_s = !!(rdata & MSI_STANDARD_EC_BLUETOOTH_MASK); in get_wireless_state_ec_standard()
266 threeg_s = !!(rdata & MSI_STANDARD_EC_3G_MASK); in get_wireless_state_ec_standard()
273 u8 rdata; in get_threeg_exists() local
276 result = ec_read(MSI_STANDARD_EC_DEVICES_EXISTS_ADDRESS, &rdata); in get_threeg_exists()
280 threeg_exists = !!(rdata & MSI_STANDARD_EC_3G_MASK); in get_threeg_exists()
441 u8 rdata; in show_touchpad() local
444 result = ec_read(MSI_STANDARD_EC_FUNCTIONS_ADDRESS, &rdata); in show_touchpad()
448 return sprintf(buf, "%i\n", !!(rdata & MSI_STANDARD_EC_TOUCHPAD_MASK)); in show_touchpad()
455 u8 rdata; in show_turbo() local
458 result = ec_read(MSI_STANDARD_EC_FUNCTIONS_ADDRESS, &rdata); in show_turbo()
462 return sprintf(buf, "%i\n", !!(rdata & MSI_STANDARD_EC_TURBO_MASK)); in show_turbo()
469 u8 rdata; in show_eco() local
472 result = ec_read(MSI_STANDARD_EC_FUNCTIONS_ADDRESS, &rdata); in show_eco()
476 return sprintf(buf, "%i\n", !!(rdata & MSI_STANDARD_EC_ECO_MASK)); in show_eco()
483 u8 rdata; in show_turbo_cooldown() local
486 result = ec_read(MSI_STANDARD_EC_FUNCTIONS_ADDRESS, &rdata); in show_turbo_cooldown()
490 return sprintf(buf, "%i\n", (!!(rdata & MSI_STANDARD_EC_TURBO_MASK)) | in show_turbo_cooldown()
491 (!!(rdata & MSI_STANDARD_EC_TURBO_COOLDOWN_MASK) << 1)); in show_turbo_cooldown()
498 u8 rdata; in show_auto_fan() local
501 result = ec_read(MSI_STANDARD_EC_FAN_ADDRESS, &rdata); in show_auto_fan()
505 return sprintf(buf, "%i\n", !!(rdata & MSI_STANDARD_EC_AUTOFAN_MASK)); in show_auto_fan()
792 u8 rdata; in msi_send_touchpad_key() local
795 result = ec_read(MSI_STANDARD_EC_FUNCTIONS_ADDRESS, &rdata); in msi_send_touchpad_key()
800 (rdata & MSI_STANDARD_EC_TOUCHPAD_MASK) ? in msi_send_touchpad_key()