/drivers/acpi/ |
H A D | ac.c | 46 #define ACPI_AC_FILE_STATE "state" 100 unsigned long long state; member in struct:acpi_ac 128 &ac->state); 131 "Error reading AC Adapter state")); 132 ac->state = ACPI_AC_STATUS_UNKNOWN; 156 val->intval = ac->state; 184 seq_puts(seq, "ERROR: Unable to read AC Adapter state\n"); 188 seq_puts(seq, "state: "); 189 switch (ac->state) { 222 /* 'state' [ [all...] |
H A D | acpi_memhotplug.c | 83 unsigned int state; /* State of the memory device */ member in struct:acpi_memory_device 262 mem_device->state = MEMORY_INVALID_STATE; 333 /* Set the device state */ 334 mem_device->state = MEMORY_POWER_ON_STATE;
|
H A D | battery.c | 147 int state; member in struct:acpi_battery 179 if (battery->state != 0) 213 if (battery->state & ACPI_BATTERY_STATE_DISCHARGING) 215 else if (battery->state & ACPI_BATTERY_STATE_CHARGING) 279 if (battery->state & ACPI_BATTERY_STATE_CRITICAL) 357 {offsetof(struct acpi_battery, state), 0}, 755 if ((battery->state & ACPI_BATTERY_STATE_CRITICAL) || 857 seq_printf(seq, "capacity state: %s\n", 858 (battery->state & 0x04) ? "critical" : "ok"); 859 if ((battery->state 972 DECLARE_FILE_FUNCTIONS(state); variable [all...] |
H A D | button.c | 41 #define ACPI_BUTTON_FILE_STATE "state" 124 unsigned long long state; local 126 status = acpi_evaluate_integer(device->handle, "_LID", NULL, &state); 127 seq_printf(seq, "state: %s\n", 129 (state ? "open" : "closed")); 180 /* create /proc/acpi/button/lid/LID/state */ 239 unsigned long long state; local 245 &state); 249 return !!state; 256 unsigned long long state; local [all...] |
H A D | device_pm.c | 37 * acpi_power_state_string - String representation of ACPI device power state. 38 * @state: ACPI device power state to return the string representation of. 40 const char *acpi_power_state_string(int state) argument 42 switch (state) { 59 * acpi_device_get_power - Get power state of an ACPI device. 60 * @device: Device to get the power state of. 61 * @state: Place to store the power state of the device. 63 * This function does not update the device's power.state fiel 67 acpi_device_get_power(struct acpi_device *device, int *state) argument 133 acpi_dev_pm_explicit_set(struct acpi_device *adev, int state) argument 154 acpi_device_set_power(struct acpi_device *device, int state) argument 237 acpi_bus_set_power(acpi_handle handle, int state) argument 252 int state; local 309 int state; local 757 int ret, state; local 924 int ret, state; local [all...] |
H A D | ec.c | 277 static int ec_check_sci_sync(struct acpi_ec *ec, u8 state) argument 279 if (state & ACPI_EC_FLAG_SCI) { 672 static int ec_check_sci(struct acpi_ec *ec, u8 state) argument 674 if (state & ACPI_EC_FLAG_SCI) {
|
H A D | fan.c | 99 *state) 105 *state = fan->fps_count - 1; 107 *state = 1; 111 static int fan_get_state_acpi4(struct acpi_device *device, unsigned long *state) argument 121 dev_err(&device->dev, "Get fan state failed\n"); 145 *state = i; 152 static int fan_get_state(struct acpi_device *device, unsigned long *state) argument 161 *state = (acpi_state == ACPI_STATE_D3_COLD ? 0 : 167 *state) 173 return fan_get_state_acpi4(device, state); 98 fan_get_max_state(struct thermal_cooling_device *cdev, unsigned long *state) argument 166 fan_get_cur_state(struct thermal_cooling_device *cdev, unsigned long *state) argument 178 fan_set_state(struct acpi_device *device, unsigned long state) argument 187 fan_set_state_acpi4(struct acpi_device *device, unsigned long state) argument 206 fan_set_cur_state(struct thermal_cooling_device *cdev, unsigned long state) argument [all...] |
H A D | power.c | 54 #define ACPI_POWER_FILE_STATUS "state" 168 static int acpi_power_get_state(acpi_handle handle, int *state) argument 176 if (!handle || !state) 183 *state = (sta & 0x01)?ACPI_POWER_RESOURCE_STATE_ON: 190 *state ? "on" : "off")); 195 static int acpi_power_get_list_state(struct list_head *list, int *state) argument 200 if (!list || !state) 203 /* The state of the list is 'on' IFF all resources are 'on'. */ 222 *state = cur_state; 439 int state; local 463 int state; local 658 acpi_power_get_inferred_state(struct acpi_device *device, int *state) argument 691 acpi_power_on_resources(struct acpi_device *device, int state) argument 699 acpi_power_transition(struct acpi_device *device, int state) argument 771 int state, result = -ENODEV; local 833 int result, state; local [all...] |
H A D | processor_idle.c | 2 * processor_idle - idle state submodule to the ACPI processor driver 129 * Some BIOS implementations switch to C3 in the published C2 state. 134 static void lapic_timer_check_state(int state, struct acpi_processor *pr, argument 150 if (pwr->timer_broadcast_on_state < state) 154 pr->power.timer_broadcast_on_state = state; 179 int state = cx - pr->power.states; local 181 if (state >= pr->power.timer_broadcast_on_state) { 192 static void lapic_timer_check_state(int state, struct acpi_processor *pr, argument 240 static void tsc_check_state(int state) argument 255 if (state > ACPI_STATE_C 260 tsc_check_state(int state) argument 955 struct cpuidle_state *state; local [all...] |
H A D | processor_perflib.c | 128 * _PPC indicates the maximum state currently supported by the platform 154 * 0: success. OSPM is now using the performance state specificed. 307 * Bit 63: PstateEn. Read-write. If set, the P-state is valid. 330 struct acpi_buffer state = { 0, NULL }; local 365 state.length = sizeof(struct acpi_processor_px); 366 state.pointer = px; 368 ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Extracting state %d\n", i)); 371 &format, &state); 539 struct acpi_buffer state = {0, NULL}; local 563 state [all...] |
H A D | processor_thermal.c | 64 * Note we can lose a CPU on cpu hotunplug, in this case we forget the state 126 static int cpufreq_set_cur_state(unsigned int cpu, int state) argument 133 reduction_pctg(cpu) = state; 179 static int cpufreq_set_cur_state(unsigned int cpu, int state) argument 203 unsigned long *state) 215 *state = acpi_processor_max_state(pr); 235 *cur_state += pr->throttling.state; 241 unsigned long state) 257 if (state > acpi_processor_max_state(pr)) 260 if (state < 202 processor_get_max_state(struct thermal_cooling_device *cdev, unsigned long *state) argument 240 processor_set_cur_state(struct thermal_cooling_device *cdev, unsigned long state) argument [all...] |
H A D | processor_throttling.c | 56 int target_state; /* target T-state */ 70 int state, bool force); 86 * Now that we have _TSD data from all CPUs, lets setup T-state 212 * Update the T-state coordination after the _TSD 219 "Assume no T-state coordination\n")); 250 * Prechange event is used to choose one proper t-state, 262 "Exceed the limit of T-state \n"); 267 "target T-state of CPU %d is T%d\n", 273 * T-state flag of acpi_processor_throttling. 275 p_throttling->state 517 struct acpi_buffer state = { 0, NULL }; local 592 struct acpi_buffer state = { 0, NULL }; local 672 int state = 0; local 852 acpi_get_throttling_value(struct acpi_processor *pr, int state, u64 *value) argument 869 int state = 0; local 965 acpi_processor_set_throttling_fadt(struct acpi_processor *pr, int state, bool force) argument 1038 acpi_processor_set_throttling_ptc(struct acpi_processor *pr, int state, bool force) argument 1078 acpi_processor_set_throttling(struct acpi_processor *pr, int state, bool force) argument [all...] |
H A D | sbs.c | 49 #define ACPI_SBS_FILE_STATE "state" 96 u16 state; member in struct:acpi_battery 338 {0x16, SMBUS_READ_WORD, offsetof(struct acpi_battery, state)}, 487 u16 state; local 491 ACPI_SBS_MANAGER, 0x01, (u8 *)&state); 493 battery->present = state & (1 << battery->id); 494 state &= 0x0fff; 495 state |= 1 << (battery->id + 12); 497 ACPI_SBS_MANAGER, 0x01, (u8 *)&state, 2);
|
H A D | scan.c | 577 int state; local 580 ret = acpi_device_get_power(adev, &state); 584 return sprintf(buf, "%s\n", acpi_power_state_string(state)); 594 return sprintf(buf, "%s\n", acpi_power_state_string(adev->power.state)); 1465 acpi_handle_warn(handle, "Overriding _PRW sleep state " 1544 static void acpi_bus_init_power_state(struct acpi_device *device, int state) argument 1546 struct acpi_device_power_state *ps = &device->power.states[state]; 1547 char pathname[5] = { '_', 'P', 'R', '0' + state, '\0' }; 1579 || (ps->flags.explicit_set && state < ACPI_STATE_D3_HOT)) {
|
H A D | thermal.c | 188 struct acpi_thermal_state state; member in struct:acpi_thermal 415 ACPI_THERMAL_TRIPS_EXCEPTION(flag, "state"); 478 ACPI_THERMAL_TRIPS_EXCEPTION(flag, "state"); 1168 tz->state.active |= tz->trips.active[i].flags.enabled;
|
H A D | video.c | 291 long *state) 296 *state = video->brightness->count - 3; 301 long *state) 312 *state = video->brightness->count - offset - 1; 320 video_set_cur_state(struct thermal_cooling_device *cooling_dev, unsigned long state) argument 326 if (state >= video->brightness->count - 2) 329 state = video->brightness->count - state; 330 level = video->brightness->levels[state - 1]; 381 int state; local 290 video_get_max_state(struct thermal_cooling_device *cooling_dev, unsigned long *state) argument 300 video_get_cur_state(struct thermal_cooling_device *cooling_dev, unsigned long *state) argument [all...] |
/drivers/acpi/acpica/ |
H A D | dswstate.c | 63 * walk_state - Current Walk state 76 union acpi_generic_state *state; local 81 state = walk_state->results; 83 /* Incorrect state of result stack */ 85 if (state && !walk_state->result_count) { 90 if (!state && walk_state->result_count) { 91 ACPI_ERROR((AE_INFO, "No result state for result stack")); 97 if (!state) { 108 *object = state->results.obj_desc[index]; 116 state 149 union acpi_generic_state *state; local 219 union acpi_generic_state *state; local 264 union acpi_generic_state *state; local 706 union acpi_generic_state *state; local [all...] |
H A D | utcopy.c | 61 union acpi_generic_state *state, 83 union acpi_generic_state *state, 248 union acpi_generic_state *state, 259 this_index = state->pkg.index; 261 &((union acpi_object *)(state->pkg.dest_object))->package. 290 state->pkg.this_target_obj = target_object; 828 union acpi_generic_state *state, 838 this_index = state->pkg.index; 840 &state->pkg.dest_object->package.elements[this_index]; 888 state 246 acpi_ut_copy_ielement_to_eelement(u8 object_type, union acpi_operand_object *source_object, union acpi_generic_state *state, void *context) argument 826 acpi_ut_copy_ielement_to_ielement(u8 object_type, union acpi_operand_object *source_object, union acpi_generic_state *state, void *context) argument [all...] |
H A D | utdelete.c | 499 union acpi_generic_state *state; local 655 state = acpi_ut_pop_generic_state(&state_list); 656 object = state->update.object; 657 acpi_ut_delete_generic_state(state); 671 state = acpi_ut_pop_generic_state(&state_list); 672 acpi_ut_delete_generic_state(state);
|
H A D | utmisc.c | 179 * PARAMETERS: object - Object to be added to the new state 181 * state_list - List the state will be added to 185 * DESCRIPTION: Create a new state and push it 194 union acpi_generic_state *state; local 204 state = acpi_ut_create_update_state(object, action); 205 if (!state) { 209 acpi_ut_push_generic_state(state_list, state); 235 union acpi_generic_state *state; local 241 state = acpi_ut_create_pkg_state(source_object, target_object, 0); 242 if (!state) { [all...] |
H A D | utobject.c | 63 union acpi_generic_state *state, void *context); 582 union acpi_generic_state *state, void *context) 609 state->pkg.this_target_obj = NULL; 580 acpi_ut_get_element_length(u8 object_type, union acpi_operand_object *source_object, union acpi_generic_state *state, void *context) argument
|
H A D | utstate.c | 3 * Module Name: utstate - state object support procedures 54 * PARAMETERS: object - Object to be added to the new state 56 * state_list - List the state will be added to 60 * DESCRIPTION: Create a new state and push it 69 union acpi_generic_state *state; local 73 state = 75 if (!state) { 79 acpi_ut_push_generic_state(state_list, state); 87 * PARAMETERS: list_head - Head of the state stack 88 * state 97 acpi_ut_push_generic_state(union acpi_generic_state **list_head, union acpi_generic_state *state) argument 124 union acpi_generic_state *state; local 156 union acpi_generic_state *state; local 185 union acpi_generic_state *state; local 229 union acpi_generic_state *state; local 265 union acpi_generic_state *state; local 301 union acpi_generic_state *state; local 332 acpi_ut_delete_generic_state(union acpi_generic_state *state) argument [all...] |
/drivers/ata/ |
H A D | libahci.c | 64 static ssize_t ahci_transmit_led_message(struct ata_port *ap, u32 state, 712 /* wait 10ms to be sure we've come out of LPM state */ 912 * toggle state of LED and reset timer. If not, 913 * turn LED to desired idle state. 918 /* get the current LED state */ 926 /* clear old state */ 929 /* toggle state */ 972 static ssize_t ahci_transmit_led_message(struct ata_port *ap, u32 state, argument 985 pmp = (state & EM_MSG_LED_PMP_SLOT) >> 8; 1011 message[1] = ((state 1047 unsigned int state; local [all...] |
H A D | libata-acpi.c | 881 * for ZPODD in zero power ready state 891 static void sata_acpi_set_state(struct ata_port *ap, pm_message_t state) argument 893 bool runtime = PMSG_IS_AUTO(state); 903 if (!(state.event & PM_EVENT_RESUME)) { 920 static void pata_acpi_set_state(struct ata_port *ap, pm_message_t state) argument 931 if (state.event & PM_EVENT_RESUME) 939 acpi_bus_set_power(dev_handle, state.event & PM_EVENT_RESUME ? 943 if (!(state.event & PM_EVENT_RESUME)) 948 * ata_acpi_set_state - set the port power state 950 * @state 955 ata_acpi_set_state(struct ata_port *ap, pm_message_t state) argument [all...] |
H A D | libata.h | 120 extern void ata_acpi_set_state(struct ata_port *ap, pm_message_t state); 131 pm_message_t state) { } 130 ata_acpi_set_state(struct ata_port *ap, pm_message_t state) argument
|