Lines Matching refs:value
716 static acpi_status AMW0_get_u32(u32 *value, u32 cap) in AMW0_get_u32() argument
728 *value = (result >> 7) & 0x1; in AMW0_get_u32()
738 *value = result & 0x1; in AMW0_get_u32()
744 *value = result & 0x1; in AMW0_get_u32()
750 *value = result & 0x1; in AMW0_get_u32()
756 *value = (result >> 2) & 0x1; in AMW0_get_u32()
766 *value = (result >> 4) & 0x1; in AMW0_get_u32()
776 *value = result; in AMW0_get_u32()
786 static acpi_status AMW0_set_u32(u32 value, u32 cap) in AMW0_set_u32() argument
791 args.ebx = value ? (1<<8) : 0; in AMW0_set_u32()
796 if (value > 1) in AMW0_set_u32()
801 if (value > 1) in AMW0_set_u32()
806 if (value > 1) in AMW0_set_u32()
811 if (value > max_brightness) in AMW0_set_u32()
815 return ec_write(0x83, value); in AMW0_set_u32()
987 tmp = (u32) obj->integer.value; in WMI_execute_u32()
999 static acpi_status WMID_get_u32(u32 *value, u32 cap) in WMID_get_u32() argument
1021 *value = tmp & 0x1; in WMID_get_u32()
1031 *value = (u8)result; in WMID_get_u32()
1036 static acpi_status WMID_set_u32(u32 value, u32 cap) in WMID_set_u32() argument
1043 if (value > max_brightness) in WMID_set_u32()
1048 if (value > 1) in WMID_set_u32()
1053 if (value > 1) in WMID_set_u32()
1058 if (value > 1) in WMID_set_u32()
1063 if (value > 1) in WMID_set_u32()
1066 param = value ? 0x92 : 0x93; in WMID_set_u32()
1076 return WMI_execute_u32(method_id, (u32)value, NULL); in WMID_set_u32()
1079 static acpi_status wmid3_get_device_status(u32 *value, u16 device) in wmid3_get_device_status() argument
1122 *value = !!(return_value.devices & device); in wmid3_get_device_status()
1127 static acpi_status wmid_v2_get_u32(u32 *value, u32 cap) in wmid_v2_get_u32() argument
1144 return wmid3_get_device_status(value, device); in wmid_v2_get_u32()
1147 static acpi_status wmid3_set_device_status(u32 value, u16 device) in wmid3_set_device_status() argument
1203 set_params.devices = (value) ? (devices | device) : (devices & ~device); in wmid3_set_device_status()
1234 static acpi_status wmid_v2_set_u32(u32 value, u32 cap) in wmid_v2_set_u32() argument
1251 return wmid3_set_device_status(value, device); in wmid_v2_set_u32()
1299 devices = (u32) obj->integer.value; in WMID_set_capabilities()
1358 tmp = (u64) obj->integer.value; in WMI_gaming_execute_u64()
1370 static acpi_status WMID_gaming_set_u64(u64 value, u32 cap) in WMID_gaming_set_u64() argument
1391 return WMI_gaming_execute_u64(method_id, value, NULL); in WMID_gaming_set_u64()
1394 static acpi_status WMID_gaming_get_u64(u64 *value, u32 cap) in WMID_gaming_get_u64() argument
1414 *value = (u64) result; in WMID_gaming_get_u64()
1444 static acpi_status get_u32(u32 *value, u32 cap) in get_u32() argument
1450 status = AMW0_get_u32(value, cap); in get_u32()
1454 status = AMW0_get_u32(value, cap); in get_u32()
1459 status = WMID_get_u32(value, cap); in get_u32()
1465 status = wmid_v2_get_u32(value, cap); in get_u32()
1467 status = WMID_get_u32(value, cap); in get_u32()
1474 static acpi_status set_u32(u32 value, u32 cap) in set_u32() argument
1481 return AMW0_set_u32(value, cap); in set_u32()
1484 return AMW0_set_u32(value, cap); in set_u32()
1494 status = WMID_set_u32(value, cap); in set_u32()
1498 return AMW0_set_u32(value, cap); in set_u32()
1502 return WMID_set_u32(value, cap); in set_u32()
1507 return wmid_v2_set_u32(value, cap); in set_u32()
1509 return WMID_set_u32(value, cap); in set_u32()
1536 enum led_brightness value) in mail_led_set() argument
1538 set_u32(value, ACER_CAP_MAILLED); in mail_led_set()
1564 u32 value; in read_brightness() local
1565 get_u32(&value, ACER_CAP_BRIGHTNESS); in read_brightness()
1566 return value; in read_brightness()
1657 (s16)out_obj->package.elements[0].integer.value); in acer_gsensor_event()
1659 (s16)out_obj->package.elements[1].integer.value); in acer_gsensor_event()
1661 (s16)out_obj->package.elements[2].integer.value); in acer_gsensor_event()
1928 static void acer_wmi_notify(u32 value, void *context) in acer_wmi_notify() argument
1938 status = wmi_get_event_data(value, &response); in acer_wmi_notify()
2218 devices = (u32) obj->integer.value; in get_wmid_devices()
2274 u32 value; in acer_suspend() local
2281 get_u32(&value, ACER_CAP_MAILLED); in acer_suspend()
2283 data->mailled = value; in acer_suspend()
2287 get_u32(&value, ACER_CAP_BRIGHTNESS); in acer_suspend()
2288 data->brightness = value; in acer_suspend()