Home
last modified time | relevance | path

Searched refs:states (Results 1 – 25 of 27) sorted by relevance

12

/drivers/acpi/
Dprocessor_idle.c241 int state = cx - pr->power.states; in acpi_state_timer_broadcast()
312 pr->power.states[ACPI_STATE_C2].type = ACPI_STATE_C2; in acpi_processor_get_power_info_fadt()
313 pr->power.states[ACPI_STATE_C3].type = ACPI_STATE_C3; in acpi_processor_get_power_info_fadt()
326 pr->power.states[ACPI_STATE_C2].address = pr->pblk + 4; in acpi_processor_get_power_info_fadt()
327 pr->power.states[ACPI_STATE_C3].address = pr->pblk + 5; in acpi_processor_get_power_info_fadt()
330 pr->power.states[ACPI_STATE_C2].latency = acpi_gbl_FADT.C2latency; in acpi_processor_get_power_info_fadt()
331 pr->power.states[ACPI_STATE_C3].latency = acpi_gbl_FADT.C3latency; in acpi_processor_get_power_info_fadt()
335 pr->power.states[ACPI_STATE_C2].address, in acpi_processor_get_power_info_fadt()
336 pr->power.states[ACPI_STATE_C3].address)); in acpi_processor_get_power_info_fadt()
343 if (!pr->power.states[ACPI_STATE_C1].valid) { in acpi_processor_get_power_info_default()
[all …]
Dprocessor_perflib.c109 pr->performance->states[ppc]. in acpi_processor_ppc_notifier()
277 pr->performance->states = in acpi_processor_get_performance_states()
280 if (!pr->performance->states) { in acpi_processor_get_performance_states()
287 struct acpi_processor_px *px = &(pr->performance->states[i]); in acpi_processor_get_performance_states()
299 kfree(pr->performance->states); in acpi_processor_get_performance_states()
316 kfree(pr->performance->states); in acpi_processor_get_performance_states()
705 kfree(pr->performance->states); in acpi_processor_unregister_performance()
Dprocessor_throttling.c637 state, pr->throttling.states[state].performance)); in acpi_processor_get_throttling_fadt()
888 pr->throttling.states[i].performance = 1000 - step * i; in acpi_processor_get_fadt_info()
889 pr->throttling.states[i].power = 1000 - step * i; in acpi_processor_get_fadt_info()
961 (pr->throttling.states[state].performance ? pr-> in acpi_processor_set_throttling_fadt()
962 throttling.states[state].performance / 10 : 0))); in acpi_processor_set_throttling_fadt()
1231 (pr->throttling.states[i].performance ? pr-> in acpi_processor_throttling_seq_show()
1232 throttling.states[i].performance / 10 : 0)); in acpi_processor_throttling_seq_show()
Dsleep.c565 suspend_state_t states[] = { in acpi_suspend() local
571 if (acpi_state < 6 && states[acpi_state]) in acpi_suspend()
572 return pm_suspend(states[acpi_state]); in acpi_suspend()
Dbus.c262 if (!device->power.states[state].flags.valid) { in acpi_bus_set_power()
286 if (device->power.states[state].flags.explicit_set) { in acpi_bus_set_power()
295 if (device->power.states[state].flags.explicit_set) { in acpi_bus_set_power()
Dpower.c486 list = &device->power.states[i].resources; in acpi_power_get_inferred_state()
520 cl = &device->power.states[device->power.state].resources; in acpi_power_transition()
521 tl = &device->power.states[state].resources; in acpi_power_transition()
Dscan.c780 struct acpi_device_power_state *ps = &device->power.states[i]; in acpi_bus_get_power_flags()
808 device->power.states[ACPI_STATE_D0].flags.valid = 1; in acpi_bus_get_power_flags()
809 device->power.states[ACPI_STATE_D0].power = 100; in acpi_bus_get_power_flags()
810 device->power.states[ACPI_STATE_D3].flags.valid = 1; in acpi_bus_get_power_flags()
811 device->power.states[ACPI_STATE_D3].power = 0; in acpi_bus_get_power_flags()
DKconfig173 ACPI C2 and C3 processor states to save power, on systems that
/drivers/cpuidle/governors/
Dladder.c41 struct ladder_device_state states[CPUIDLE_STATE_MAX]; member
56 ldev->states[old_idx].stats.promotion_count = 0; in ladder_do_selection()
57 ldev->states[old_idx].stats.demotion_count = 0; in ladder_do_selection()
81 last_state = &ldev->states[last_idx]; in ladder_select_state()
83 if (dev->states[last_idx].flags & CPUIDLE_FLAG_TIME_VALID) in ladder_select_state()
84 last_residency = cpuidle_get_last_residency(dev) - dev->states[last_idx].exit_latency; in ladder_select_state()
91 dev->states[last_idx + 1].exit_latency <= latency_req) { in ladder_select_state()
102 dev->states[last_idx].exit_latency > latency_req) { in ladder_select_state()
106 if (dev->states[i].exit_latency <= latency_req) in ladder_select_state()
141 state = &dev->states[i]; in ladder_enable_device()
[all …]
Dmenu.c60 struct cpuidle_state *s = &dev->states[i]; in menu_select()
86 struct cpuidle_state *target = &dev->states[last_idx]; in menu_reflect()
/drivers/net/mlx4/
Dqp.c357 enum mlx4_qp_state states[] = { in mlx4_qp_to_ready() enum
364 for (i = 0; i < ARRAY_SIZE(states) - 1; i++) { in mlx4_qp_to_ready()
366 context->flags |= cpu_to_be32(states[i + 1] << 28); in mlx4_qp_to_ready()
367 err = mlx4_qp_modify(dev, mtt, states[i], states[i + 1], in mlx4_qp_to_ready()
372 states[i + 1], err); in mlx4_qp_to_ready()
376 *qp_state = states[i + 1]; in mlx4_qp_to_ready()
/drivers/input/
Dff-memless.c61 struct ml_effect_state states[FF_MEMLESS_EFFECTS]; member
136 state = &ml->states[i]; in ml_schedule_timer()
305 state = &ml->states[i]; in ml_get_combo_effect()
389 __clear_bit(FF_EFFECT_PLAYING, &ml->states[i].flags); in ml_ff_set_gain()
399 struct ml_effect_state *state = &ml->states[effect_id]; in ml_ff_playback()
437 struct ml_effect_state *state = &ml->states[effect->id]; in ml_ff_upload()
512 ml->states[i].effect = &ff->effects[i]; in input_ff_create_memless()
/drivers/cpuidle/
Dcpuidle.c80 target_state = &dev->states[next_state]; in cpuidle_idle_call()
173 dev->states[i].usage = 0; in cpuidle_enable_device()
174 dev->states[i].time = 0; in cpuidle_enable_device()
242 struct cpuidle_state *state = &dev->states[0]; in poll_idle_init()
Dsysfs.c319 kobj->state = &device->states[i]; in cpuidle_add_state_sysfs()
/drivers/block/
Dpktcdvd.c1578 static void pkt_count_states(struct pktcdvd_device *pd, int *states) in pkt_count_states() argument
1584 states[i] = 0; in pkt_count_states()
1588 states[pkt->state]++; in pkt_count_states()
1632 int states[PACKET_NUM_STATES]; in kcdrwd() local
1633 pkt_count_states(pd, states); in kcdrwd()
1635 states[0], states[1], states[2], states[3], in kcdrwd()
1636 states[4], states[5]); in kcdrwd()
2671 int states[PACKET_NUM_STATES]; in pkt_seq_show() local
2718 pkt_count_states(pd, states); in pkt_seq_show()
2720 states[0], states[1], states[2], states[3], states[4], states[5]); in pkt_seq_show()
/drivers/scsi/
Daha152x.c659 } states[] = { variable
2531 …es, LEAD "start %s %s(%s)\n", CMDINFO(CURRENT_SC), states[STATE].name, states[PREVSTATE].name, sta… in is_complete()
2537 if(PREVSTATE!=STATE && states[PREVSTATE].end) in is_complete()
2538 states[PREVSTATE].end(shpnt); in is_complete()
2545 if(states[PREVSTATE].spio && !states[STATE].spio) { in is_complete()
2567 if(!states[PREVSTATE].spio && states[STATE].spio) { in is_complete()
2578 if(PREVSTATE!=STATE && states[STATE].init) in is_complete()
2579 states[STATE].init(shpnt); in is_complete()
2585 if(states[STATE].run) in is_complete()
2586 states[STATE].run(shpnt); in is_complete()
[all …]
Draid_class.c183 #define raid_attr_ro_states(attr, states, code) \ argument
187 name = raid_##states##_name(rd->attr); \
/drivers/mtd/nand/
Dnandsim.c365 uint32_t states[NS_OPER_STATES]; /* operation's states */ member
1216 if (!(ops[i].states[ns->npstates] & STATE_ADDR_MASK)) in find_operation()
1219 if (NS_STATE(ns->state) != NS_STATE(ops[i].states[ns->npstates])) in find_operation()
1224 if (NS_STATE(ops[i].states[j]) != NS_STATE(ns->pstates[j]) in find_operation()
1238 ns->op = &ops[idx].states[0]; in find_operation()
/drivers/infiniband/hw/cxgb3/
Diwch_cm.c50 static char *states[] = { variable
233 PDBG("%s - %s -> %s\n", __func__, states[epc->state], states[new]); in state_set()
257 PDBG("%s ep %p state %s\n", __func__, epc, states[state_read(epc)]); in __free_ep()
2034 states[ep->com.state], abrupt); in iwch_ep_disconnect()
/drivers/isdn/hardware/mISDN/
Dhfcpci.c97 unsigned char states; member
186 hc->hw.states = 1; /* G1 */ in hfcpci_setmode()
190 hc->hw.states = 2; /* F2 */ in hfcpci_setmode()
193 Write_hfc(hc, HFCPCI_STATES, HFCPCI_LOAD_STATE | hc->hw.states); in hfcpci_setmode()
195 Write_hfc(hc, HFCPCI_STATES, hc->hw.states | 0x40); /* Deactivate */ in hfcpci_setmode()
/drivers/usb/core/
DKconfig101 could wake the system from states like suspend-to-RAM.
/drivers/scsi/qla2xxx/
Dqla_mbx.c1235 qla2x00_get_firmware_state(scsi_qla_host_t *vha, uint16_t *states) in qla2x00_get_firmware_state() argument
1252 states[0] = mcp->mb[1]; in qla2x00_get_firmware_state()
1253 states[1] = mcp->mb[2]; in qla2x00_get_firmware_state()
1254 states[2] = mcp->mb[3]; in qla2x00_get_firmware_state()
/drivers/scsi/lpfc/
Dlpfc_hbadisc.c1768 static char *states[] = { in lpfc_nlp_state_name() local
1779 if (state < NLP_STE_MAX_STATE && states[state]) in lpfc_nlp_state_name()
1780 strlcpy(buffer, states[state], size); in lpfc_nlp_state_name()
/drivers/rtc/
DKconfig52 sleep states. Do not specify an RTC here unless it stays powered
53 during all this system's supported sleep states.
/drivers/media/video/
DKconfig2 # Generic video config states

12