arch/arm/mach-imx/cpuidle-imx5.c
21
.states[0] = {
arch/arm/mach-imx/cpuidle-imx6q.c
43
.states = {
arch/arm/mach-imx/cpuidle-imx6sl.c
33
.states = {
arch/arm/mach-imx/cpuidle-imx6sx.c
71
.states = {
arch/arm/mach-imx/cpuidle-imx7ulp.c
33
.states = {
arch/arm/mach-omap2/cpuidle34xx.c
266
.states = {
arch/arm/mach-omap2/cpuidle34xx.c
336
.states = {
arch/arm/mach-omap2/cpuidle44xx.c
237
.states = {
arch/arm/mach-omap2/cpuidle44xx.c
274
.states = {
arch/arm/mach-omap2/pm33xx-core.c
382
struct amx3_idle_state states[CPUIDLE_STATE_MAX];
arch/arm/mach-omap2/pm33xx-core.c
403
states[state_count].wfi_flags = 0;
arch/arm/mach-omap2/pm33xx-core.c
406
states[state_count].wfi_flags |= WFI_FLAG_WAKE_M3 |
arch/arm/mach-omap2/pm33xx-core.c
418
idle_states[i].wfi_flags = states[i].wfi_flags;
arch/arm/mach-s3c/cpuidle-s3c64xx.c
41
.states = {
arch/sh/kernel/cpu/shmobile/cpuidle.c
54
.states = {
arch/sh/kernel/cpu/shmobile/cpuidle.c
89
cpuidle_driver.states[1].flags = CPUIDLE_FLAG_NONE;
arch/sh/kernel/cpu/shmobile/cpuidle.c
92
cpuidle_driver.states[2].flags = CPUIDLE_FLAG_NONE;
arch/x86/events/intel/core.c
4302
xl = &excl_cntrs->states[tid];
arch/x86/events/intel/core.c
4329
xl = &excl_cntrs->states[tid];
arch/x86/events/intel/core.c
4357
xl = &excl_cntrs->states[tid];
arch/x86/events/intel/core.c
4437
xlo = &excl_cntrs->states[tid ^ 1];
arch/x86/events/intel/core.c
4556
xl = &excl_cntrs->states[tid];
arch/x86/events/perf_event.h
243
struct intel_excl_states states[2];
arch/x86/kernel/acpi/cstate.c
116
} states[ACPI_PROCESSOR_MAX_POWER];
arch/x86/kernel/acpi/cstate.c
184
percpu_entry->states[cx->index].eax = 0;
arch/x86/kernel/acpi/cstate.c
185
percpu_entry->states[cx->index].ecx = 0;
arch/x86/kernel/acpi/cstate.c
193
percpu_entry->states[cx->index].eax = cx->address;
arch/x86/kernel/acpi/cstate.c
194
percpu_entry->states[cx->index].ecx = MWAIT_ECX_INTERRUPT_BREAK;
arch/x86/kernel/acpi/cstate.c
215
mwait_play_dead(percpu_entry->states[cx->index].eax);
arch/x86/kernel/acpi/cstate.c
225
mwait_idle_with_hints(percpu_entry->states[cx->index].eax,
arch/x86/kernel/acpi/cstate.c
226
percpu_entry->states[cx->index].ecx);
arch/x86/kernel/apm_32.c
363
.states = {
arch/x86/platform/intel-mid/pwr.c
398
static int mid_set_initial_state(struct mid_pwr *pwr, const u32 *states)
arch/x86/platform/intel-mid/pwr.c
423
mid_pwr_set_state(pwr, 0, states[0]);
arch/x86/platform/intel-mid/pwr.c
424
mid_pwr_set_state(pwr, 1, states[1]);
arch/x86/platform/intel-mid/pwr.c
425
mid_pwr_set_state(pwr, 2, states[2]);
arch/x86/platform/intel-mid/pwr.c
426
mid_pwr_set_state(pwr, 3, states[3]);
arch/x86/platform/intel-mid/pwr.c
444
static const u32 states[] = {
arch/x86/platform/intel-mid/pwr.c
450
return mid_set_initial_state(pwr, states);
arch/x86/platform/intel-mid/pwr.c
455
static const u32 states[] = {
arch/x86/platform/intel-mid/pwr.c
461
return mid_set_initial_state(pwr, states);
drivers/accessibility/speakup/kobjects.c
939
__ATTR(states, 0644, message_show, message_store);
drivers/accessibility/speakup/main.c
1222
int i = 0, states, key_data_len;
drivers/accessibility/speakup/main.c
1234
states = (int)cp[1];
drivers/accessibility/speakup/main.c
1235
key_data_len = (states + 1) * (num_keys + 1);
drivers/accessibility/speakup/main.c
1250
for (i = 1; i <= states; i++) {
drivers/accessibility/speakup/main.c
1267
cp1 += states + 1;
drivers/acpi/acpi_processor.c
983
memcpy(&info->states[++last_index], &cx, sizeof(cx));
drivers/acpi/device_pm.c
143
if (adev->power.states[state].flags.explicit_set) {
drivers/acpi/device_pm.c
188
if (!device->power.states[ACPI_STATE_D3_COLD].flags.valid)
drivers/acpi/device_pm.c
190
} else if (!device->power.states[state].flags.valid) {
drivers/acpi/device_pm.c
708
if (!adev->power.states[ret].flags.valid) {
drivers/acpi/device_pm.c
759
if (!adev->power.states[ret].flags.valid)
drivers/acpi/device_pm.c
820
if (adev->power.states[d_max].flags.valid)
drivers/acpi/power.c
326
resources = &adev->power.states[ACPI_STATE_D0].resources;
drivers/acpi/power.c
360
resources = &adev->power.states[ACPI_STATE_D0].resources;
drivers/acpi/power.c
610
&adev->power.states[state].resources,
drivers/acpi/power.c
822
struct list_head *list = &device->power.states[i].resources;
drivers/acpi/power.c
837
*state = device->power.states[ACPI_STATE_D3_COLD].flags.valid ?
drivers/acpi/power.c
847
return acpi_power_on_list(&device->power.states[state].resources);
drivers/acpi/power.c
871
&device->power.states[state].resources);
drivers/acpi/power.c
875
&device->power.states[device->power.state].resources);
drivers/acpi/processor_idle.c
1190
state = &drv->states[i];
drivers/acpi/processor_idle.c
1221
drv->states[i].name[0] = '\0';
drivers/acpi/processor_idle.c
1222
drv->states[i].desc[0] = '\0';
drivers/acpi/processor_idle.c
175
return cx - pr->power.states >= pr->power.timer_broadcast_on_state;
drivers/acpi/processor_idle.c
225
pr->power.states[ACPI_STATE_C2].type = ACPI_STATE_C2;
drivers/acpi/processor_idle.c
226
pr->power.states[ACPI_STATE_C3].type = ACPI_STATE_C3;
drivers/acpi/processor_idle.c
239
pr->power.states[ACPI_STATE_C2].address = pr->pblk + 4;
drivers/acpi/processor_idle.c
240
pr->power.states[ACPI_STATE_C3].address = pr->pblk + 5;
drivers/acpi/processor_idle.c
243
pr->power.states[ACPI_STATE_C2].latency = acpi_gbl_FADT.c2_latency;
drivers/acpi/processor_idle.c
244
pr->power.states[ACPI_STATE_C3].latency = acpi_gbl_FADT.c3_latency;
drivers/acpi/processor_idle.c
254
pr->power.states[ACPI_STATE_C2].address = 0;
drivers/acpi/processor_idle.c
265
pr->power.states[ACPI_STATE_C3].address = 0;
drivers/acpi/processor_idle.c
269
pr->power.states[ACPI_STATE_C2].address,
drivers/acpi/processor_idle.c
270
pr->power.states[ACPI_STATE_C3].address);
drivers/acpi/processor_idle.c
272
snprintf(pr->power.states[ACPI_STATE_C2].desc,
drivers/acpi/processor_idle.c
274
pr->power.states[ACPI_STATE_C2].address);
drivers/acpi/processor_idle.c
275
snprintf(pr->power.states[ACPI_STATE_C3].desc,
drivers/acpi/processor_idle.c
277
pr->power.states[ACPI_STATE_C3].address);
drivers/acpi/processor_idle.c
279
if (!pr->power.states[ACPI_STATE_C2].address &&
drivers/acpi/processor_idle.c
280
!pr->power.states[ACPI_STATE_C3].address)
drivers/acpi/processor_idle.c
288
if (!pr->power.states[ACPI_STATE_C1].valid) {
drivers/acpi/processor_idle.c
291
pr->power.states[ACPI_STATE_C1].type = ACPI_STATE_C1;
drivers/acpi/processor_idle.c
292
pr->power.states[ACPI_STATE_C1].valid = 1;
drivers/acpi/processor_idle.c
293
pr->power.states[ACPI_STATE_C1].entry_method = ACPI_CSTATE_HALT;
drivers/acpi/processor_idle.c
295
snprintf(pr->power.states[ACPI_STATE_C1].desc,
drivers/acpi/processor_idle.c
299
pr->power.states[ACPI_STATE_C0].valid = 1;
drivers/acpi/processor_idle.c
400
static void acpi_cst_latency_sort(struct acpi_processor_cx *states, size_t length)
drivers/acpi/processor_idle.c
405
if (!states[i].valid)
drivers/acpi/processor_idle.c
409
if (!states[j].valid)
drivers/acpi/processor_idle.c
412
if (states[j].latency > states[k].latency)
drivers/acpi/processor_idle.c
413
swap(states[j].latency, states[k].latency);
drivers/acpi/processor_idle.c
431
struct acpi_processor_cx *cx = &pr->power.states[i];
drivers/acpi/processor_idle.c
462
acpi_cst_latency_sort(&pr->power.states[1], max_cstate);
drivers/acpi/processor_idle.c
478
memset(pr->power.states, 0, sizeof(pr->power.states));
drivers/acpi/processor_idle.c
745
cx = &pr->power.states[i];
drivers/acpi/processor_idle.c
776
cx = &pr->power.states[i];
drivers/acpi/processor_idle.c
781
state = &drv->states[count];
drivers/acpi/processor_perflib.c
160
*limit = pr->performance->states[pr->performance_platform_limit].
drivers/acpi/processor_perflib.c
343
pr->performance->states =
drivers/acpi/processor_perflib.c
345
if (!pr->performance->states) {
drivers/acpi/processor_perflib.c
352
struct acpi_processor_px *px = &(pr->performance->states[i]);
drivers/acpi/processor_perflib.c
365
kfree(pr->performance->states);
drivers/acpi/processor_perflib.c
395
memcpy(&(pr->performance->states[last_invalid]),
drivers/acpi/processor_perflib.c
406
kfree(pr->performance->states);
drivers/acpi/processor_perflib.c
407
pr->performance->states = NULL;
drivers/acpi/processor_perflib.c
789
kfree(pr->performance->states);
drivers/acpi/processor_perflib.c
97
qos_value = pr->performance->states[index].core_frequency * 1000;
drivers/acpi/processor_throttling.c
1006
(pr->throttling.states[state].performance ? pr->
drivers/acpi/processor_throttling.c
1007
throttling.states[state].performance / 10 : 0));
drivers/acpi/processor_throttling.c
693
state, pr->throttling.states[state].performance);
drivers/acpi/processor_throttling.c
933
pr->throttling.states[i].performance = 1000 - step * i;
drivers/acpi/processor_throttling.c
934
pr->throttling.states[i].power = 1000 - step * i;
drivers/acpi/scan.c
1057
struct acpi_device_power_state *ps = &device->power.states[state];
drivers/acpi/scan.c
1123
INIT_LIST_HEAD(&device->power.states[ACPI_STATE_D3_COLD].resources);
drivers/acpi/scan.c
1126
device->power.states[ACPI_STATE_D0].flags.valid = 1;
drivers/acpi/scan.c
1127
device->power.states[ACPI_STATE_D0].power = 100;
drivers/acpi/scan.c
1128
device->power.states[ACPI_STATE_D3_HOT].flags.valid = 1;
drivers/acpi/scan.c
1135
if (!list_empty(&device->power.states[ACPI_STATE_D0].resources)) {
drivers/acpi/scan.c
1141
if (!list_empty(&device->power.states[ACPI_STATE_D3_HOT].resources))
drivers/acpi/scan.c
1142
device->power.states[ACPI_STATE_D3_COLD].flags.valid = 1;
drivers/acpi/scan.c
2365
device->power.states[ACPI_STATE_D0].flags.valid;
drivers/acpi/scan.c
512
struct acpi_device_power_state *ps = &device->power.states[i];
drivers/cpufreq/acpi-cpufreq.c
205
if (value == perf->states[i].status)
drivers/cpufreq/acpi-cpufreq.c
227
if (msr == perf->states[pos->driver_data].status)
drivers/cpufreq/acpi-cpufreq.c
437
drv_write(data, mask, perf->states[next_perf_state].control);
drivers/cpufreq/acpi-cpufreq.c
483
perf->states[next_perf_state].control);
drivers/cpufreq/acpi-cpufreq.c
498
unsigned long freqn = perf->states[0].core_frequency * 1000;
drivers/cpufreq/acpi-cpufreq.c
502
freqn = perf->states[i+1].core_frequency * 1000;
drivers/cpufreq/acpi-cpufreq.c
513
return perf->states[0].core_frequency * 1000;
drivers/cpufreq/acpi-cpufreq.c
833
if ((perf->states[i].transition_latency * 1000) >
drivers/cpufreq/acpi-cpufreq.c
836
perf->states[i].transition_latency * 1000;
drivers/cpufreq/acpi-cpufreq.c
848
if (i > 0 && perf->states[i].core_frequency >=
drivers/cpufreq/acpi-cpufreq.c
854
perf->states[i].core_frequency * 1000;
drivers/cpufreq/acpi-cpufreq.c
905
(u32) perf->states[i].core_frequency,
drivers/cpufreq/acpi-cpufreq.c
906
(u32) perf->states[i].power,
drivers/cpufreq/acpi-cpufreq.c
907
(u32) perf->states[i].transition_latency);
drivers/cpufreq/acpi-cpufreq.c
918
if (perf->states[0].core_frequency * 1000 != freq_table[0].frequency)
drivers/cpufreq/e_powersaver.c
185
int states;
drivers/cpufreq/e_powersaver.c
318
states = max_multiplier - min_multiplier + 1;
drivers/cpufreq/e_powersaver.c
320
states = 2;
drivers/cpufreq/e_powersaver.c
323
centaur = kzalloc_flex(*centaur, freq_table, states + 1);
drivers/cpufreq/intel_pstate.c
483
(u32) cpu->acpi_perf_data.states[i].core_frequency,
drivers/cpufreq/intel_pstate.c
484
(u32) cpu->acpi_perf_data.states[i].power,
drivers/cpufreq/intel_pstate.c
485
(u32) cpu->acpi_perf_data.states[i].control);
drivers/cpufreq/longhaul.c
865
cx = &pr->power.states[ACPI_STATE_C3];
drivers/cpufreq/powernow-k7.c
351
pc.val = (unsigned long) acpi_processor_perf->states[0].control;
drivers/cpufreq/powernow-k7.c
355
&acpi_processor_perf->states[i];
drivers/cpufreq/powernow-k8.c
718
control = data->acpi_data.states[index].control;
drivers/cpufreq/powernow-k8.c
811
status = data->acpi_data.states[i].status;
drivers/cpufreq/powernow-k8.c
815
control = data->acpi_data.states[i].control;
drivers/cpufreq/powernow-k8.c
843
if (freq != (data->acpi_data.states[i].core_frequency * 1000)) {
drivers/cpufreq/powernow-k8.c
846
(data->acpi_data.states[i].core_frequency
drivers/cpufreq/powernow-k8.c
867
int cur_latency = data->acpi_data.states[i].transition_latency
drivers/cpufreq/powernow-k8.c
868
+ data->acpi_data.states[i].bus_master_latency;
drivers/cpuidle/coupled.c
177
return drv->states[state].flags & CPUIDLE_FLAG_COUPLED;
drivers/cpuidle/cpuidle-arm.c
55
.states[0] = {
drivers/cpuidle/cpuidle-at91.c
37
.states[0] = ARM_CPUIDLE_WFI_STATE,
drivers/cpuidle/cpuidle-at91.c
38
.states[1] = {
drivers/cpuidle/cpuidle-big_little.c
62
.states[0] = ARM_CPUIDLE_WFI_STATE,
drivers/cpuidle/cpuidle-big_little.c
63
.states[1] = {
drivers/cpuidle/cpuidle-big_little.c
84
.states[0] = ARM_CPUIDLE_WFI_STATE,
drivers/cpuidle/cpuidle-big_little.c
85
.states[1] = {
drivers/cpuidle/cpuidle-calxeda.c
47
.states = {
drivers/cpuidle/cpuidle-clps711x.c
29
.states[0] = {
drivers/cpuidle/cpuidle-cps.c
150
cps_driver.states[i].flags |= CPUIDLE_FLAG_COUPLED;
drivers/cpuidle/cpuidle-cps.c
72
.states = {
drivers/cpuidle/cpuidle-exynos.c
79
.states = {
drivers/cpuidle/cpuidle-exynos.c
96
.states = {
drivers/cpuidle/cpuidle-haltpoll.c
41
.states = {
drivers/cpuidle/cpuidle-kirkwood.c
41
.states[0] = ARM_CPUIDLE_WFI_STATE,
drivers/cpuidle/cpuidle-kirkwood.c
42
.states[1] = {
drivers/cpuidle/cpuidle-mvebu-v7.c
36
if (drv->states[index].flags & MVEBU_V7_FLAG_DEEP_IDLE)
drivers/cpuidle/cpuidle-mvebu-v7.c
53
.states[0] = ARM_CPUIDLE_WFI_STATE,
drivers/cpuidle/cpuidle-mvebu-v7.c
54
.states[1] = {
drivers/cpuidle/cpuidle-mvebu-v7.c
63
.states[2] = {
drivers/cpuidle/cpuidle-mvebu-v7.c
77
.states[0] = ARM_CPUIDLE_WFI_STATE,
drivers/cpuidle/cpuidle-mvebu-v7.c
78
.states[1] = {
drivers/cpuidle/cpuidle-mvebu-v7.c
92
.states[0] = ARM_CPUIDLE_WFI_STATE,
drivers/cpuidle/cpuidle-mvebu-v7.c
93
.states[1] = {
drivers/cpuidle/cpuidle-powernv.c
206
drv->states[drv->state_count] = /* structure copy */
drivers/cpuidle/cpuidle-powernv.c
62
return drv->states[i].target_residency * tb_ticks_per_usec;
drivers/cpuidle/cpuidle-psci-domain.c
34
struct genpd_power_state *state = &pd->states[pd->state_idx];
drivers/cpuidle/cpuidle-psci-domain.c
79
pd_gov = pd->states ? &pm_domain_cpu_gov : NULL;
drivers/cpuidle/cpuidle-psci.c
269
drv->states[state_count - 1].enter_s2idle = psci_enter_s2idle_domain_idle_state;
drivers/cpuidle/cpuidle-psci.c
271
drv->states[state_count - 1].enter = psci_enter_domain_idle_state;
drivers/cpuidle/cpuidle-psci.c
385
drv->states[0].enter = psci_enter_idle_state;
drivers/cpuidle/cpuidle-psci.c
386
drv->states[0].exit_latency = 1;
drivers/cpuidle/cpuidle-psci.c
387
drv->states[0].target_residency = 1;
drivers/cpuidle/cpuidle-psci.c
388
drv->states[0].power_usage = UINT_MAX;
drivers/cpuidle/cpuidle-psci.c
389
strscpy(drv->states[0].name, "WFI");
drivers/cpuidle/cpuidle-psci.c
390
strscpy(drv->states[0].desc, "ARM WFI");
drivers/cpuidle/cpuidle-psci.c
69
u32 *states = data->psci_states;
drivers/cpuidle/cpuidle-psci.c
72
u32 state = states[idx];
drivers/cpuidle/cpuidle-pseries.c
345
drv->states[drv->state_count] = /* structure copy */
drivers/cpuidle/cpuidle-qcom-spm.c
72
.states[0] = {
drivers/cpuidle/cpuidle-riscv-sbi.c
116
state = states[idx];
drivers/cpuidle/cpuidle-riscv-sbi.c
225
drv->states[state_count - 1].flags |= CPUIDLE_FLAG_RCU_IDLE;
drivers/cpuidle/cpuidle-riscv-sbi.c
226
drv->states[state_count - 1].enter = sbi_enter_domain_idle_state;
drivers/cpuidle/cpuidle-riscv-sbi.c
227
drv->states[state_count - 1].enter_s2idle =
drivers/cpuidle/cpuidle-riscv-sbi.c
241
u32 *states;
drivers/cpuidle/cpuidle-riscv-sbi.c
248
states = devm_kcalloc(dev, state_count, sizeof(*states), GFP_KERNEL);
drivers/cpuidle/cpuidle-riscv-sbi.c
249
if (!states)
drivers/cpuidle/cpuidle-riscv-sbi.c
258
ret = sbi_dt_parse_state_node(state_node, &states[i]);
drivers/cpuidle/cpuidle-riscv-sbi.c
264
pr_debug("sbi-state %#x index %d\n", states[i], i);
drivers/cpuidle/cpuidle-riscv-sbi.c
275
data->states = states;
drivers/cpuidle/cpuidle-riscv-sbi.c
303
drv->states[0].enter = sbi_cpuidle_enter_state;
drivers/cpuidle/cpuidle-riscv-sbi.c
304
drv->states[0].exit_latency = 1;
drivers/cpuidle/cpuidle-riscv-sbi.c
305
drv->states[0].target_residency = 1;
drivers/cpuidle/cpuidle-riscv-sbi.c
306
drv->states[0].power_usage = UINT_MAX;
drivers/cpuidle/cpuidle-riscv-sbi.c
307
strscpy(drv->states[0].name, "WFI");
drivers/cpuidle/cpuidle-riscv-sbi.c
308
strscpy(drv->states[0].desc, "RISC-V WFI");
drivers/cpuidle/cpuidle-riscv-sbi.c
35
u32 *states;
drivers/cpuidle/cpuidle-riscv-sbi.c
352
struct genpd_power_state *state = &pd->states[pd->state_idx];
drivers/cpuidle/cpuidle-riscv-sbi.c
396
pd_gov = pd->states ? &pm_domain_cpu_gov : NULL;
drivers/cpuidle/cpuidle-riscv-sbi.c
81
u32 *states = __this_cpu_read(sbi_cpuidle_data.states);
drivers/cpuidle/cpuidle-riscv-sbi.c
82
u32 state = states[idx];
drivers/cpuidle/cpuidle-riscv-sbi.c
96
u32 *states = data->states;
drivers/cpuidle/cpuidle-tegra.c
233
bool do_rcu = drv->states[index].flags & CPUIDLE_FLAG_RCU_IDLE;
drivers/cpuidle/cpuidle-tegra.c
290
.states = {
drivers/cpuidle/cpuidle-tegra.c
330
struct cpuidle_state *state_cc6 = &tegra_idle_driver.states[TEGRA_CC6];
drivers/cpuidle/cpuidle-tegra.c
343
struct cpuidle_state *s = &tegra_idle_driver.states[TEGRA_C7];
drivers/cpuidle/cpuidle-ux500.c
94
.states = {
drivers/cpuidle/cpuidle-zynq.c
37
.states = {
drivers/cpuidle/cpuidle.c
147
struct cpuidle_state *target_state = &drv->states[index];
drivers/cpuidle/cpuidle.c
223
struct cpuidle_state *target_state = &drv->states[index];
drivers/cpuidle/cpuidle.c
238
target_state = &drv->states[index];
drivers/cpuidle/cpuidle.c
295
s64 diff, delay = drv->states[entered_state].exit_latency_ns;
drivers/cpuidle/cpuidle.c
309
if (diff < drv->states[entered_state].target_residency_ns) {
drivers/cpuidle/cpuidle.c
328
if (diff - delay >= drv->states[i].target_residency_ns) {
drivers/cpuidle/cpuidle.c
450
state_limit = drv->states[i].target_residency_ns;
drivers/cpuidle/cpuidle.c
652
if (drv->states[i].flags & CPUIDLE_FLAG_UNUSABLE)
drivers/cpuidle/cpuidle.c
655
if (drv->states[i].flags & CPUIDLE_FLAG_OFF)
drivers/cpuidle/cpuidle.c
73
if (drv->states[i].enter_dead)
drivers/cpuidle/cpuidle.c
74
drv->states[i].enter_dead(dev, i);
drivers/cpuidle/cpuidle.c
94
struct cpuidle_state *s = &drv->states[i];
drivers/cpuidle/driver.c
170
struct cpuidle_state *s = &drv->states[i];
drivers/cpuidle/driver.c
374
drv->states[idx].flags |= CPUIDLE_FLAG_UNUSABLE;
drivers/cpuidle/dt_idle_genpd.c
110
ret = pd_parse_states(np, parse_state, &states, &state_count);
drivers/cpuidle/dt_idle_genpd.c
116
pd->states = states;
drivers/cpuidle/dt_idle_genpd.c
26
struct genpd_power_state *states, int state_count)
drivers/cpuidle/dt_idle_genpd.c
32
ret = parse_state(to_of_node(states[i].fwnode), &state);
drivers/cpuidle/dt_idle_genpd.c
42
states[i].data = state_buf;
drivers/cpuidle/dt_idle_genpd.c
50
kfree(states[i].data);
drivers/cpuidle/dt_idle_genpd.c
56
struct genpd_power_state **states,
drivers/cpuidle/dt_idle_genpd.c
62
ret = of_genpd_parse_idle_states(np, states, state_count);
drivers/cpuidle/dt_idle_genpd.c
67
ret = pd_parse_state_nodes(parse_state, *states, *state_count);
drivers/cpuidle/dt_idle_genpd.c
69
kfree(*states);
drivers/cpuidle/dt_idle_genpd.c
74
static void pd_free_states(struct genpd_power_state *states,
drivers/cpuidle/dt_idle_genpd.c
80
kfree(states[i].data);
drivers/cpuidle/dt_idle_genpd.c
81
kfree(states);
drivers/cpuidle/dt_idle_genpd.c
86
pd_free_states(pd->states, pd->state_count);
drivers/cpuidle/dt_idle_genpd.c
95
struct genpd_power_state *states = NULL;
drivers/cpuidle/dt_idle_states.c
194
idle_state = &drv->states[state_idx++];
drivers/cpuidle/governors/ladder.c
103
drv->states[last_idx].exit_latency_ns > latency_req)) {
drivers/cpuidle/governors/ladder.c
107
if (drv->states[i].exit_latency_ns <= latency_req)
drivers/cpuidle/governors/ladder.c
137
int first_idx = drv->states[0].flags & CPUIDLE_FLAG_POLLING ? 1 : 0;
drivers/cpuidle/governors/ladder.c
145
state = &drv->states[i];
drivers/cpuidle/governors/ladder.c
146
lstate = &ldev->states[i];
drivers/cpuidle/governors/ladder.c
40
struct ladder_device_state states[CPUIDLE_STATE_MAX];
drivers/cpuidle/governors/ladder.c
56
ldev->states[old_idx].stats.promotion_count = 0;
drivers/cpuidle/governors/ladder.c
57
ldev->states[old_idx].stats.demotion_count = 0;
drivers/cpuidle/governors/ladder.c
73
int first_idx = drv->states[0].flags & CPUIDLE_FLAG_POLLING ? 1 : 0;
drivers/cpuidle/governors/ladder.c
83
last_state = &ldev->states[last_idx];
drivers/cpuidle/governors/ladder.c
85
last_residency = dev->last_residency_ns - drv->states[last_idx].exit_latency_ns;
drivers/cpuidle/governors/ladder.c
91
drv->states[last_idx + 1].exit_latency_ns <= latency_req) {
drivers/cpuidle/governors/menu.c
288
((data->next_timer_ns < drv->states[1].target_residency_ns ||
drivers/cpuidle/governors/menu.c
289
latency_req < drv->states[1].exit_latency_ns) &&
drivers/cpuidle/governors/menu.c
296
*stop_tick = !(drv->states[0].flags & CPUIDLE_FLAG_POLLING);
drivers/cpuidle/governors/menu.c
306
struct cpuidle_state *s = &drv->states[i];
drivers/cpuidle/governors/menu.c
328
if ((drv->states[idx].flags & CPUIDLE_FLAG_POLLING) &&
drivers/cpuidle/governors/menu.c
347
predicted_ns = drv->states[idx].target_residency_ns;
drivers/cpuidle/governors/menu.c
357
if (drv->states[idx].target_residency_ns < TICK_NSEC &&
drivers/cpuidle/governors/menu.c
371
if (((drv->states[idx].flags & CPUIDLE_FLAG_POLLING) ||
drivers/cpuidle/governors/menu.c
375
if (idx > 0 && drv->states[idx].target_residency_ns > delta_tick) {
drivers/cpuidle/governors/menu.c
387
if (drv->states[i].target_residency_ns <= delta_tick)
drivers/cpuidle/governors/menu.c
422
struct cpuidle_state *target = &drv->states[last_idx];
drivers/cpuidle/governors/menu.c
452
} else if ((drv->states[last_idx].flags & CPUIDLE_FLAG_POLLING) &&
drivers/cpuidle/governors/teo.c
174
s64 lat_ns = drv->states[dev->last_state_idx].exit_latency_ns;
drivers/cpuidle/governors/teo.c
220
target_residency_ns = drv->states[i].target_residency_ns;
drivers/cpuidle/governors/teo.c
296
if (drv->states[i].target_residency_ns <= duration_ns)
drivers/cpuidle/governors/teo.c
353
struct cpuidle_state *s = &drv->states[i];
drivers/cpuidle/governors/teo.c
398
duration_ns = drv->states[idx].target_residency_ns;
drivers/cpuidle/governors/teo.c
460
drv->states[idx].target_residency_ns < RESIDENCY_THRESHOLD_NS) &&
drivers/cpuidle/governors/teo.c
474
drv->states[idx].target_residency_ns < TICK_NSEC) {
drivers/cpuidle/governors/teo.c
484
if (drv->states[i].target_residency_ns <= duration_ns) {
drivers/cpuidle/governors/teo.c
499
if (drv->states[idx].target_residency_ns > duration_ns)
drivers/cpuidle/governors/teo.c
507
if (drv->states[idx].target_residency_ns < TICK_NSEC &&
drivers/cpuidle/governors/teo.c
517
if ((!(drv->states[idx].flags & CPUIDLE_FLAG_POLLING) &&
drivers/cpuidle/governors/teo.c
527
drv->states[idx].target_residency_ns > delta_tick)
drivers/cpuidle/poll_state.c
54
struct cpuidle_state *state = &drv->states[0];
drivers/cpuidle/sysfs.c
490
kobj->state = &drv->states[i];
drivers/firmware/arm_scmi/powercap.c
1016
&pinfo->states[domain].last_pcap);
drivers/firmware/arm_scmi/powercap.c
1020
pinfo->states[domain].enabled =
drivers/firmware/arm_scmi/powercap.c
1021
!!pinfo->states[domain].last_pcap;
drivers/firmware/arm_scmi/powercap.c
119
(lower_32_bits((p)->states[(id)].thresholds))
drivers/firmware/arm_scmi/powercap.c
121
(upper_32_bits((p)->states[(id)].thresholds))
drivers/firmware/arm_scmi/powercap.c
128
struct scmi_powercap_state *states;
drivers/firmware/arm_scmi/powercap.c
437
pi->states[domain_id].last_pcap = power_cap;
drivers/firmware/arm_scmi/powercap.c
460
if (!pi->states[domain_id].enabled) {
drivers/firmware/arm_scmi/powercap.c
461
pi->states[domain_id].last_pcap = power_cap;
drivers/firmware/arm_scmi/powercap.c
621
pi->states[domain_id].thresholds =
drivers/firmware/arm_scmi/powercap.c
626
if (pi->states[domain_id].meas_notif_enabled)
drivers/firmware/arm_scmi/powercap.c
647
if (enable == pi->states[domain_id].enabled)
drivers/firmware/arm_scmi/powercap.c
652
if (!pi->states[domain_id].last_pcap)
drivers/firmware/arm_scmi/powercap.c
656
pi->states[domain_id].last_pcap,
drivers/firmware/arm_scmi/powercap.c
672
pi->states[domain_id].enabled = !!power_cap;
drivers/firmware/arm_scmi/powercap.c
700
pi->states[domain_id].enabled = *enable;
drivers/firmware/arm_scmi/powercap.c
873
pi->states[src_id].meas_notif_enabled = enable;
drivers/firmware/arm_scmi/powercap.c
992
pinfo->states = devm_kcalloc(ph->dev, pinfo->num_domains,
drivers/firmware/arm_scmi/powercap.c
993
sizeof(*pinfo->states), GFP_KERNEL);
drivers/firmware/arm_scmi/powercap.c
994
if (!pinfo->states)
drivers/firmware/psci/psci_checker.c
235
struct cpuidle_state *state = &drv->states[index];
drivers/firmware/psci/psci_checker.c
302
struct cpuidle_state *state = &drv->states[index];
drivers/gpu/drm/amd/display/dc/dml2_0/display_mode_core.c
10154
const struct soc_states_st *states,
drivers/gpu/drm/amd/display/dc/dml2_0/display_mode_core.c
10157
dml_print("DML::%s: state_idx=%u (num_states=%u)\n", __func__, state_idx, states->num_states);
drivers/gpu/drm/amd/display/dc/dml2_0/display_mode_core.c
10159
if (state_idx >= (dml_uint_t)states->num_states) {
drivers/gpu/drm/amd/display/dc/dml2_0/display_mode_core.c
10160
dml_print("DML::%s: ERROR: Invalid state_idx=%u! num_states=%u\n", __func__, state_idx, states->num_states);
drivers/gpu/drm/amd/display/dc/dml2_0/display_mode_core.c
10163
return (states->state_array[state_idx]);
drivers/gpu/drm/amd/display/dc/dml2_0/display_mode_core.c
10173
mode_lib->ms.max_state_idx = mode_lib->states.num_states - 1;
drivers/gpu/drm/amd/display/dc/dml2_0/display_mode_core.c
10177
mode_lib->ms.state = dml_get_soc_state_bounding_box(&mode_lib->states, state_idx);
drivers/gpu/drm/amd/display/dc/dml2_0/display_mode_core.c
10178
mode_lib->ms.max_state = dml_get_soc_state_bounding_box(&mode_lib->states, mode_lib->states.num_states - 1);
drivers/gpu/drm/amd/display/dc/dml2_0/display_mode_core.c
10287
if (end_state_idx >= mode_lib->states.num_states) // idx is 0-based
drivers/gpu/drm/amd/display/dc/dml2_0/display_mode_core.c
10310
in_out_params->mode_lib->states.num_states - 1);
drivers/gpu/drm/amd/display/dc/dml2_0/display_mode_core_structs.h
1906
struct soc_states_st states;
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_utils.c
367
context->bw_ctx.bw.dcn.clk.max_supported_dppclk_khz = (int)(in_ctx->v20.dml_core_ctx.states.state_array[in_ctx->v20.scratch.mode_support_params.out_lowest_state_idx].dppclk_mhz
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_utils.c
369
context->bw_ctx.bw.dcn.clk.max_supported_dispclk_khz = (int)(in_ctx->v20.dml_core_ctx.states.state_array[in_ctx->v20.scratch.mode_support_params.out_lowest_state_idx].dispclk_mhz
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_wrapper.c
89
initialize_dml2_soc_states(*dml2, in_dc, &(*dml2)->v20.dml_core_ctx.soc, &(*dml2)->v20.dml_core_ctx.states);
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_wrapper_fpu.c
107
s->mode_support_params.in_start_state_idx = dml2->v20.dml_core_ctx.states.num_states - 1;
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_wrapper_fpu.c
194
for (i = 0; i < dml2->v20.dml_core_ctx.states.num_states; i++) {
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_wrapper_fpu.c
195
s->uclk_change_latencies[i] = dml2->v20.dml_core_ctx.states.state_array[i].dram_clock_change_latency_us;
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_wrapper_fpu.c
199
for (j = 0; j < dml2->v20.dml_core_ctx.states.num_states; j++) {
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_wrapper_fpu.c
200
dml2->v20.dml_core_ctx.states.state_array[j].dram_clock_change_latency_us = s_global->dummy_pstate_table[i].dummy_pstate_latency_us;
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_wrapper_fpu.c
217
while (dml2->v20.dml_core_ctx.states.state_array[result].dram_speed_mts < s_global->dummy_pstate_table[i].dram_speed_mts)
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_wrapper_fpu.c
224
for (i = 0; i < dml2->v20.dml_core_ctx.states.num_states; i++) {
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_wrapper_fpu.c
225
dml2->v20.dml_core_ctx.states.state_array[i].dram_clock_change_latency_us = s->uclk_change_latencies[i];
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_wrapper_fpu.c
416
out_clks.dcfclk_khz = (unsigned int)dml2->v20.dml_core_ctx.states.state_array[lowest_state_idx].dcfclk_mhz * 1000;
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_wrapper_fpu.c
417
out_clks.fclk_khz = (unsigned int)dml2->v20.dml_core_ctx.states.state_array[lowest_state_idx].fabricclk_mhz * 1000;
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_wrapper_fpu.c
418
out_clks.uclk_mts = (unsigned int)dml2->v20.dml_core_ctx.states.state_array[lowest_state_idx].dram_speed_mts;
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_wrapper_fpu.c
419
out_clks.phyclk_khz = (unsigned int)dml2->v20.dml_core_ctx.states.state_array[lowest_state_idx].phyclk_mhz * 1000;
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_wrapper_fpu.c
420
out_clks.socclk_khz = (unsigned int)dml2->v20.dml_core_ctx.states.state_array[lowest_state_idx].socclk_mhz * 1000;
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_wrapper_fpu.c
421
out_clks.ref_dtbclk_khz = (unsigned int)dml2->v20.dml_core_ctx.states.state_array[lowest_state_idx].dtbclk_mhz * 1000;
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_wrapper_fpu.c
469
(lowest_state_idx < dml2->v20.dml_core_ctx.states.num_states - 1)) {
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_wrapper_fpu.c
470
lowest_state_idx = dml2->v20.dml_core_ctx.states.num_states - 1;
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_wrapper_fpu.c
471
out_clks.dispclk_khz = (unsigned int)dml2->v20.dml_core_ctx.states.state_array[lowest_state_idx].dispclk_mhz * 1000;
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_wrapper_fpu.c
474
out_clks.dcfclk_khz = (unsigned int)dml2->v20.dml_core_ctx.states.state_array[lowest_state_idx].dcfclk_mhz * 1000;
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_wrapper_fpu.c
475
out_clks.fclk_khz = (unsigned int)dml2->v20.dml_core_ctx.states.state_array[lowest_state_idx].fabricclk_mhz * 1000;
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_wrapper_fpu.c
476
out_clks.uclk_mts = (unsigned int)dml2->v20.dml_core_ctx.states.state_array[lowest_state_idx].dram_speed_mts;
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_wrapper_fpu.c
477
out_clks.phyclk_khz = (unsigned int)dml2->v20.dml_core_ctx.states.state_array[lowest_state_idx].phyclk_mhz * 1000;
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_wrapper_fpu.c
478
out_clks.socclk_khz = (unsigned int)dml2->v20.dml_core_ctx.states.state_array[lowest_state_idx].socclk_mhz * 1000;
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_wrapper_fpu.c
479
out_clks.ref_dtbclk_khz = (unsigned int)dml2->v20.dml_core_ctx.states.state_array[lowest_state_idx].dtbclk_mhz * 1000;
drivers/gpu/drm/amd/include/kgd_pp_interface.h
229
uint32_t states[16];
drivers/gpu/drm/amd/include/pptable.h
483
ATOM_PPLIB_STATE_V2 states[] /* __counted_by(ucNumEntries) */;
drivers/gpu/drm/amd/pm/amdgpu_dpm.c
1151
struct pp_states_info *states)
drivers/gpu/drm/amd/pm/amdgpu_dpm.c
1161
states);
drivers/gpu/drm/amd/pm/amdgpu_pm.c
1738
enum amdgpu_device_attr_states *states)
drivers/gpu/drm/amd/pm/amdgpu_pm.c
1741
*states = ATTR_STATE_UNSUPPORTED;
drivers/gpu/drm/amd/pm/amdgpu_pm.c
1920
uint32_t mask, enum amdgpu_device_attr_states *states)
drivers/gpu/drm/amd/pm/amdgpu_pm.c
1923
*states = ATTR_STATE_UNSUPPORTED;
drivers/gpu/drm/amd/pm/amdgpu_pm.c
1929
uint32_t mask, enum amdgpu_device_attr_states *states)
drivers/gpu/drm/amd/pm/amdgpu_pm.c
1934
*states = ATTR_STATE_UNSUPPORTED;
drivers/gpu/drm/amd/pm/amdgpu_pm.c
1937
*states = ATTR_STATE_UNSUPPORTED;
drivers/gpu/drm/amd/pm/amdgpu_pm.c
1940
*states = ATTR_STATE_UNSUPPORTED;
drivers/gpu/drm/amd/pm/amdgpu_pm.c
1946
uint32_t mask, enum amdgpu_device_attr_states *states)
drivers/gpu/drm/amd/pm/amdgpu_pm.c
1948
*states = ATTR_STATE_SUPPORTED;
drivers/gpu/drm/amd/pm/amdgpu_pm.c
1951
*states = ATTR_STATE_UNSUPPORTED;
drivers/gpu/drm/amd/pm/amdgpu_pm.c
1958
*states = ATTR_STATE_UNSUPPORTED;
drivers/gpu/drm/amd/pm/amdgpu_pm.c
1963
*states = ATTR_STATE_UNSUPPORTED;
drivers/gpu/drm/amd/pm/amdgpu_pm.c
1969
uint32_t mask, enum amdgpu_device_attr_states *states)
drivers/gpu/drm/amd/pm/amdgpu_pm.c
1974
*states = ATTR_STATE_SUPPORTED;
drivers/gpu/drm/amd/pm/amdgpu_pm.c
1977
*states = ATTR_STATE_UNSUPPORTED;
drivers/gpu/drm/amd/pm/amdgpu_pm.c
1986
*states = ATTR_STATE_UNSUPPORTED;
drivers/gpu/drm/amd/pm/amdgpu_pm.c
2001
uint32_t mask, enum amdgpu_device_attr_states *states)
drivers/gpu/drm/amd/pm/amdgpu_pm.c
2008
*states = ATTR_STATE_SUPPORTED;
drivers/gpu/drm/amd/pm/amdgpu_pm.c
2011
*states = ATTR_STATE_UNSUPPORTED;
drivers/gpu/drm/amd/pm/amdgpu_pm.c
2017
*states = ATTR_STATE_UNSUPPORTED;
drivers/gpu/drm/amd/pm/amdgpu_pm.c
2020
*states = ATTR_STATE_UNSUPPORTED;
drivers/gpu/drm/amd/pm/amdgpu_pm.c
2035
*states = ATTR_STATE_UNSUPPORTED;
drivers/gpu/drm/amd/pm/amdgpu_pm.c
2041
*states = ATTR_STATE_UNSUPPORTED;
drivers/gpu/drm/amd/pm/amdgpu_pm.c
2056
*states = ATTR_STATE_UNSUPPORTED;
drivers/gpu/drm/amd/pm/amdgpu_pm.c
2062
*states = ATTR_STATE_UNSUPPORTED;
drivers/gpu/drm/amd/pm/amdgpu_pm.c
2065
*states = ATTR_STATE_UNSUPPORTED;
drivers/gpu/drm/amd/pm/amdgpu_pm.c
2088
*states = ATTR_STATE_UNSUPPORTED;
drivers/gpu/drm/amd/pm/amdgpu_pm.c
2635
uint32_t mask, enum amdgpu_device_attr_states *states)
drivers/gpu/drm/amd/pm/amdgpu_pm.c
2642
*states = ATTR_STATE_UNSUPPORTED;
drivers/gpu/drm/amd/pm/amdgpu_pm.c
2650
*states = ATTR_STATE_UNSUPPORTED;
drivers/gpu/drm/amd/pm/amdgpu_pm.c
2668
*states = ATTR_STATE_UNSUPPORTED;
drivers/gpu/drm/amd/pm/amdgpu_pm.c
2673
*states = ATTR_STATE_UNSUPPORTED;
drivers/gpu/drm/amd/pm/amdgpu_pm.c
2691
*states = ATTR_STATE_SUPPORTED;
drivers/gpu/drm/amd/pm/amdgpu_pm.c
2694
*states = ATTR_STATE_UNSUPPORTED;
drivers/gpu/drm/amd/pm/amdgpu_pm.c
2700
*states = ATTR_STATE_UNSUPPORTED;
drivers/gpu/drm/amd/pm/amdgpu_pm.c
2708
*states = ATTR_STATE_UNSUPPORTED;
drivers/gpu/drm/amd/pm/amdgpu_pm.c
2711
*states = ATTR_STATE_UNSUPPORTED;
drivers/gpu/drm/amd/pm/amdgpu_pm.c
2714
*states = ATTR_STATE_UNSUPPORTED;
drivers/gpu/drm/amd/pm/amdgpu_pm.c
2717
*states = ATTR_STATE_UNSUPPORTED;
drivers/gpu/drm/amd/pm/amdgpu_pm.c
2720
*states = ATTR_STATE_UNSUPPORTED;
drivers/gpu/drm/amd/pm/amdgpu_pm.c
2726
*states = ATTR_STATE_UNSUPPORTED;
drivers/gpu/drm/amd/pm/amdgpu_pm.c
2733
*states = ATTR_STATE_UNSUPPORTED;
drivers/gpu/drm/amd/pm/amdgpu_pm.c
2735
*states = ATTR_STATE_SUPPORTED;
drivers/gpu/drm/amd/pm/amdgpu_pm.c
2765
uint32_t mask, enum amdgpu_device_attr_states *states) = default_attr_update;
drivers/gpu/drm/amd/pm/amdgpu_pm.c
441
(data.states[i] == POWER_STATE_TYPE_INTERNAL_BOOT) ? "boot" :
drivers/gpu/drm/amd/pm/amdgpu_pm.c
442
(data.states[i] == POWER_STATE_TYPE_BATTERY) ? "battery" :
drivers/gpu/drm/amd/pm/amdgpu_pm.c
443
(data.states[i] == POWER_STATE_TYPE_BALANCED) ? "balanced" :
drivers/gpu/drm/amd/pm/amdgpu_pm.c
444
(data.states[i] == POWER_STATE_TYPE_PERFORMANCE) ? "performance" : "default");
drivers/gpu/drm/amd/pm/amdgpu_pm.c
473
if (pm == data.states[i])
drivers/gpu/drm/amd/pm/amdgpu_pm.c
514
if (ret || idx >= ARRAY_SIZE(data.states))
drivers/gpu/drm/amd/pm/amdgpu_pm.c
517
idx = array_index_nospec(idx, ARRAY_SIZE(data.states));
drivers/gpu/drm/amd/pm/amdgpu_pm.c
527
state = data.states[idx];
drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h
486
struct pp_states_info *states);
drivers/gpu/drm/amd/pm/inc/amdgpu_pm.h
89
uint32_t mask, enum amdgpu_device_attr_states *states);
drivers/gpu/drm/amd/pm/legacy-dpm/kv_dpm.c
2731
power_state_offset = (u8 *)state_array->states;
drivers/gpu/drm/amd/pm/legacy-dpm/legacy_dpm.c
389
ATOM_PPLIB_VCE_State_Table *states =
drivers/gpu/drm/amd/pm/legacy-dpm/legacy_dpm.c
407
state_entry = &states->entries[0];
drivers/gpu/drm/amd/pm/legacy-dpm/legacy_dpm.c
422
states->numEntries > AMD_MAX_VCE_LEVELS ?
drivers/gpu/drm/amd/pm/legacy-dpm/legacy_dpm.c
423
AMD_MAX_VCE_LEVELS : states->numEntries;
drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c
7378
power_state_offset = (u8 *)state_array->states;
drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c
612
data->states[i] = POWER_STATE_TYPE_BATTERY;
drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c
615
data->states[i] = POWER_STATE_TYPE_BALANCED;
drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c
618
data->states[i] = POWER_STATE_TYPE_PERFORMANCE;
drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c
622
data->states[i] = POWER_STATE_TYPE_INTERNAL_BOOT;
drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c
624
data->states[i] = POWER_STATE_TYPE_DEFAULT;
drivers/gpu/drm/amd/pm/powerplay/hwmgr/hardwaremanager.c
63
struct phm_set_power_state_input states;
drivers/gpu/drm/amd/pm/powerplay/hwmgr/hardwaremanager.c
67
states.pcurrent_state = pcurrent_state;
drivers/gpu/drm/amd/pm/powerplay/hwmgr/hardwaremanager.c
68
states.pnew_state = pnew_power_state;
drivers/gpu/drm/amd/pm/powerplay/hwmgr/hardwaremanager.c
71
return hwmgr->hwmgr_func->power_state_set(hwmgr, &states);
drivers/gpu/drm/amd/pm/powerplay/hwmgr/processpptables.c
778
pstate = pstate_arrays->states;
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
4177
const struct phm_set_power_state_input *states =
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
4180
cast_const_phw_smu7_power_state(states->pnew_state);
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
4257
const struct phm_set_power_state_input *states =
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
4261
cast_const_phw_smu7_power_state(states->pnew_state);
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
4263
cast_const_phw_smu7_power_state(states->pcurrent_state);
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
4438
const struct phm_set_power_state_input *states =
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
4442
cast_const_phw_smu7_power_state(states->pnew_state);
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
4502
const struct phm_set_power_state_input *states =
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
4506
cast_const_phw_smu7_power_state(states->pnew_state);
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu8_hwmgr.c
832
const struct phm_set_power_state_input *states = (struct phm_set_power_state_input *)input;
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu8_hwmgr.c
833
const struct smu8_power_state *pnew_state = cast_const_smu8_power_state(states->pnew_state);
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c
3431
const struct phm_set_power_state_input *states =
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c
3434
cast_const_phw_vega10_power_state(states->pnew_state);
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c
3747
const struct phm_set_power_state_input *states =
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c
3750
cast_const_phw_vega10_power_state(states->pnew_state);
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_pptable.h
132
ATOM_Vega10_State states[]; /* Dynamically allocate entries. */
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_processpptables.c
1323
state_entry = &(state_arrays->states[entry_index]);
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_processpptables.c
382
state_entry = &(state_arrays->states[entry_index]);
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
589
state_info->states[0] = POWER_STATE_TYPE_DEFAULT;
drivers/gpu/drm/drm_blend.c
469
struct drm_plane_state **states;
drivers/gpu/drm/drm_blend.c
477
states = kmalloc_objs(*states, total_planes);
drivers/gpu/drm/drm_blend.c
478
if (!states)
drivers/gpu/drm/drm_blend.c
492
states[n++] = plane_state;
drivers/gpu/drm/drm_blend.c
497
sort(states, n, sizeof(*states), drm_atomic_commit_zpos_cmp, NULL);
drivers/gpu/drm/drm_blend.c
500
plane = states[i]->plane;
drivers/gpu/drm/drm_blend.c
502
states[i]->normalized_zpos = i;
drivers/gpu/drm/drm_blend.c
509
kfree(states);
drivers/gpu/drm/i915/display/intel_display_power.c
267
static const u32 states[] = {
drivers/gpu/drm/i915/display/intel_display_power.c
275
for (i = 0; i < ARRAY_SIZE(states) - 1; i++) {
drivers/gpu/drm/i915/display/intel_display_power.c
276
if (target_dc_state != states[i])
drivers/gpu/drm/i915/display/intel_display_power.c
282
target_dc_state = states[i + 1];
drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c
1329
struct drm_plane_state **states;
drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c
1340
states = kzalloc_objs(*states, total_planes);
drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c
1341
if (!states)
drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c
1353
states[plane_state->normalized_zpos] = plane_state;
drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c
1356
ret = dpu_assign_plane_resources(global_state, state, crtc, states, total_planes);
drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c
1359
kfree(states);
drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c
1354
struct drm_plane_state **states,
drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c
1363
struct drm_plane_state *plane_state = states[i];
drivers/gpu/drm/msm/disp/dpu1/dpu_plane.h
75
struct drm_plane_state **states,
drivers/gpu/drm/nouveau/include/nvkm/subdev/clk.h
89
struct list_head states;
drivers/gpu/drm/nouveau/nvkm/engine/device/ctrl.c
106
list_for_each_entry(pstate, &clk->states, head) {
drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c
275
list_for_each_entry(pstate, &clk->states, head) {
drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c
464
list_add_tail(&pstate->head, &clk->states);
drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c
482
list_for_each_entry(pstate, &clk->states, head) {
drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c
633
list_for_each_entry_safe(pstate, temp, &clk->states, head) {
drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c
668
INIT_LIST_HEAD(&clk->states);
drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c
686
list_add_tail(&func->pstates[idx].head, &clk->states);
drivers/gpu/drm/omapdrm/omap_drv.c
146
struct drm_plane_state **states;
drivers/gpu/drm/omapdrm/omap_drv.c
149
states = kmalloc_objs(*states, total_planes);
drivers/gpu/drm/omapdrm/omap_drv.c
150
if (!states)
drivers/gpu/drm/omapdrm/omap_drv.c
173
states[n++] = plane_state;
drivers/gpu/drm/omapdrm/omap_drv.c
176
sort(states, n, sizeof(*states),
drivers/gpu/drm/omapdrm/omap_drv.c
180
plane = states[i]->plane;
drivers/gpu/drm/omapdrm/omap_drv.c
182
states[i]->normalized_zpos = i + inc;
drivers/gpu/drm/omapdrm/omap_drv.c
185
states[i]->normalized_zpos);
drivers/gpu/drm/omapdrm/omap_drv.c
187
if (is_omap_plane_dual_overlay(states[i]))
drivers/gpu/drm/omapdrm/omap_drv.c
194
kfree(states);
drivers/gpu/drm/radeon/ci_dpm.c
5527
power_state_offset = (u8 *)state_array->states;
drivers/gpu/drm/radeon/kv_dpm.c
2464
power_state_offset = (u8 *)state_array->states;
drivers/gpu/drm/radeon/pptable.h
442
ATOM_PPLIB_STATE_V2 states[] /* __counted_by(ucNumEntries) */;
drivers/gpu/drm/radeon/r600_dpm.c
1078
ATOM_PPLIB_VCE_State_Table *states =
drivers/gpu/drm/radeon/r600_dpm.c
1098
state_entry = &states->entries[0];
drivers/gpu/drm/radeon/r600_dpm.c
1112
for (i = 0; i < states->numEntries; i++) {
drivers/gpu/drm/radeon/radeon_atombios.c
2696
power_state_offset = (u8 *)state_array->states;
drivers/gpu/drm/radeon/si_dpm.c
6787
power_state_offset = (u8 *)state_array->states;
drivers/gpu/drm/radeon/sumo_dpm.c
1486
power_state_offset = (u8 *)state_array->states;
drivers/gpu/drm/radeon/trinity_dpm.c
1717
power_state_offset = (u8 *)state_array->states;
drivers/hid/intel-ish-hid/ishtp/hbm.h
248
uint32_t states;
drivers/hv/mshv_root.h
297
union hv_gpa_page_access_state *states);
drivers/hv/mshv_root_hv_call.c
346
union hv_gpa_page_access_state *states)
drivers/hv/mshv_root_hv_call.c
375
states[i].as_uint8 = output_page[i].as_uint8;
drivers/hv/mshv_root_hv_call.c
378
states += completed;
drivers/hv/mshv_root_main.c
1491
union hv_gpa_page_access_state *states;
drivers/hv/mshv_root_main.c
1507
if (check_mul_overflow(args.page_count, sizeof(*states), &states_buf_sz))
drivers/hv/mshv_root_main.c
1540
states = vzalloc(states_buf_sz);
drivers/hv/mshv_root_main.c
1541
if (!states)
drivers/hv/mshv_root_main.c
1546
states);
drivers/hv/mshv_root_main.c
1555
__assign_bit(i, (ulong *)states,
drivers/hv/mshv_root_main.c
1556
states[i].as_uint8 & hv_type_mask);
drivers/hv/mshv_root_main.c
1560
__clear_bit(i, (ulong *)states);
drivers/hv/mshv_root_main.c
1562
if (copy_to_user((void __user *)args.bitmap_ptr, states, bitmap_buf_sz))
drivers/hv/mshv_root_main.c
1566
vfree(states);
drivers/hv/mshv_root_main.c
825
&state_data.xsave.states.as_uint64);
drivers/hv/mshv_root_main.c
838
state_data.xsave.states.legacy_x87 = 1;
drivers/hv/mshv_root_main.c
839
state_data.xsave.states.legacy_sse = 1;
drivers/hwmon/adt7475.c
1640
u32 states[ADT7475_PWM_COUNT];
drivers/hwmon/adt7475.c
1645
"adi,pwm-active-state", states,
drivers/hwmon/adt7475.c
1646
ARRAY_SIZE(states));
drivers/hwmon/adt7475.c
1655
if (states[i])
drivers/i2c/muxes/i2c-mux-pinctrl.c
121
mux->states[i] = pinctrl_lookup_state(mux->pinctrl, name);
drivers/i2c/muxes/i2c-mux-pinctrl.c
122
if (IS_ERR(mux->states[i])) {
drivers/i2c/muxes/i2c-mux-pinctrl.c
123
ret = PTR_ERR(mux->states[i]);
drivers/i2c/muxes/i2c-mux-pinctrl.c
144
if (root != i2c_mux_pinctrl_root_adapter(mux->states[i])) {
drivers/i2c/muxes/i2c-mux-pinctrl.c
19
struct pinctrl_state *states[];
drivers/i2c/muxes/i2c-mux-pinctrl.c
26
return pinctrl_select_state(mux->pinctrl, mux->states[chan]);
drivers/i2c/muxes/i2c-mux-pinctrl.c
96
struct_size(mux, states, num_names),
drivers/idle/intel_idle.c
169
struct cpuidle_state *state = &drv->states[index];
drivers/idle/intel_idle.c
1797
struct acpi_processor_cx *cx = &acpi_state_table.states[cstate];
drivers/idle/intel_idle.c
1855
cx = &acpi_state_table.states[cstate];
drivers/idle/intel_idle.c
1857
state = &drv->states[drv->state_count++];
drivers/idle/intel_idle.c
1911
u32 acpi_hint = acpi_state_table.states[cstate].address;
drivers/idle/intel_idle.c
2141
static void __init drop_pc6_redundant_cstates(struct cpuidle_state *states)
drivers/idle/intel_idle.c
2149
for (count = 0; states[count].enter; count++)
drivers/idle/intel_idle.c
2162
if (!(states[count - 1].flags & CPUIDLE_FLAG_PARTIAL_HINT_MATCH)) {
drivers/idle/intel_idle.c
2175
states[count - 1].name);
drivers/idle/intel_idle.c
2176
states[count - 1].flags |= CPUIDLE_FLAG_UNUSABLE;
drivers/idle/intel_idle.c
2302
drv->states[drv->state_count] = cpuidle_state_table[cstate];
drivers/idle/intel_idle.c
2303
state = &drv->states[drv->state_count];
drivers/idle/intel_idle.c
2330
drv->states[0].flags |= CPUIDLE_FLAG_OFF;
drivers/idle/intel_idle.c
244
struct cpuidle_state *state = &drv->states[index];
drivers/idle/intel_idle.c
259
struct cpuidle_state *state = &drv->states[index];
drivers/idle/intel_idle.c
2597
cmdline_states[i] = drv->states[i];
drivers/idle/intel_idle.c
2627
if (!strcmp(name, drv->states[i].name)) {
drivers/idle/intel_idle.c
2691
drv->states[i] = cmdline_states[i];
drivers/infiniband/hw/cxgb4/cm.c
284
pr_debug("%s -> %s\n", states[epc->state], states[new]);
drivers/infiniband/hw/cxgb4/cm.c
3652
states[ep->com.state], abrupt);
drivers/infiniband/hw/cxgb4/cm.c
391
pr_debug("ep %p state %s\n", ep, states[ep->com.state]);
drivers/infiniband/hw/cxgb4/cm.c
56
static char *states[] = {
drivers/input/ff-memless.c
123
state = &ml->states[i];
drivers/input/ff-memless.c
339
state = &ml->states[i];
drivers/input/ff-memless.c
423
__clear_bit(FF_EFFECT_PLAYING, &ml->states[i].flags);
drivers/input/ff-memless.c
434
struct ml_effect_state *state = &ml->states[effect_id];
drivers/input/ff-memless.c
465
struct ml_effect_state *state = &ml->states[effect->id];
drivers/input/ff-memless.c
47
struct ml_effect_state states[FF_MEMLESS_EFFECTS];
drivers/input/ff-memless.c
557
ml->states[i].effect = &ff->effects[i];
drivers/input/misc/iqs269a.c
1402
state = flags.states[IQS269_ST_OFFS_TOUCH];
drivers/input/misc/iqs269a.c
1417
dir_mask = flags.states[IQS269_ST_OFFS_DIR];
drivers/input/misc/iqs269a.c
1421
state = flags.states[iqs269_events[i].st_offs] & dir_mask;
drivers/input/misc/iqs269a.c
311
u8 states[4];
drivers/input/misc/iqs626a.c
1493
u8 *dir_mask = &flags.states[IQS626_ST_OFFS_DIR];
drivers/input/misc/iqs626a.c
1550
state = flags.states[iqs626_events[j].st_offs];
drivers/input/misc/iqs626a.c
1572
state = flags.states[IQS626_ST_OFFS_TOUCH];
drivers/input/misc/iqs626a.c
277
u8 states[4];
drivers/irqchip/irq-sp7021-intc.c
58
#define ASSIGN_STATE(irq, idx, v) assign_bit(STATE_BIT(irq, idx), sp_intc.states, v)
drivers/irqchip/irq-sp7021-intc.c
59
#define TEST_STATE(irq, idx) test_bit(STATE_BIT(irq, idx), sp_intc.states)
drivers/irqchip/irq-sp7021-intc.c
76
DECLARE_BITMAP(states, (GPIO_INT7_HWIRQ - GPIO_INT0_HWIRQ + 1) * 3);
drivers/md/bcache/sysfs.c
174
char const *states[] = { "no cache", "clean", "dirty", "inconsistent" };
drivers/md/bcache/sysfs.c
263
sysfs_print(state, states[BDEV_STATE(&dc->sb)]);
drivers/md/dm-vdo/data-vio.c
432
if (data_vio->logical.lbn >= vdo->states.vdo.config.logical_blocks) {
drivers/md/dm-vdo/dm-vdo-target.c
1375
&vdo->states);
drivers/md/dm-vdo/dm-vdo-target.c
1379
vdo_set_state(vdo, vdo->states.vdo.state);
drivers/md/dm-vdo/dm-vdo-target.c
1380
vdo->load_state = vdo->states.vdo.state;
drivers/md/dm-vdo/dm-vdo-target.c
1386
if (vdo->states.vdo.config.logical_blocks < config->logical_blocks) {
drivers/md/dm-vdo/dm-vdo-target.c
1389
(unsigned long long) vdo->states.vdo.config.logical_blocks);
drivers/md/dm-vdo/dm-vdo-target.c
1390
vdo->states.vdo.config.logical_blocks = config->logical_blocks;
drivers/md/dm-vdo/dm-vdo-target.c
1393
result = vdo_validate_component_states(&vdo->states, vdo->geometry.nonce,
drivers/md/dm-vdo/dm-vdo-target.c
1399
vdo->layout = vdo->states.layout;
drivers/md/dm-vdo/dm-vdo-target.c
1422
vdo_destroy_component_states(&vdo->states);
drivers/md/dm-vdo/dm-vdo-target.c
1428
vdo_get_recovery_journal_length(vdo->states.vdo.config.recovery_journal_size);
drivers/md/dm-vdo/dm-vdo-target.c
1447
result = vdo_decode_recovery_journal(vdo->states.recovery_journal,
drivers/md/dm-vdo/dm-vdo-target.c
1448
vdo->states.vdo.nonce, vdo, partition,
drivers/md/dm-vdo/dm-vdo-target.c
1449
vdo->states.vdo.complete_recoveries,
drivers/md/dm-vdo/dm-vdo-target.c
1450
vdo->states.vdo.config.recovery_journal_size,
drivers/md/dm-vdo/dm-vdo-target.c
1456
result = vdo_decode_slab_depot(vdo->states.slab_depot, vdo, partition,
drivers/md/dm-vdo/dm-vdo-target.c
1461
result = vdo_decode_block_map(vdo->states.block_map,
drivers/md/dm-vdo/dm-vdo-target.c
1462
vdo->states.vdo.config.logical_blocks, vdo,
drivers/md/dm-vdo/dm-vdo-target.c
1463
vdo->recovery_journal, vdo->states.vdo.nonce,
drivers/md/dm-vdo/dm-vdo-target.c
1522
vdo_uninitialize_layout(&vdo->states.layout);
drivers/md/dm-vdo/dm-vdo-target.c
1852
block_count_t current_physical_blocks = vdo->states.vdo.config.physical_blocks;
drivers/md/dm-vdo/dm-vdo-target.c
1952
block_count_t logical_blocks = vdo->states.vdo.config.logical_blocks;
drivers/md/dm-vdo/dm-vdo-target.c
2578
vdo->states.vdo.config.logical_blocks = vdo->block_map->next_entry_count;
drivers/md/dm-vdo/dm-vdo-target.c
2613
vdo->states.vdo.config.logical_blocks = vdo->block_map->entry_count;
drivers/md/dm-vdo/dm-vdo-target.c
2740
vdo->states.vdo.config.physical_blocks = vdo->layout.size;
drivers/md/dm-vdo/dm-vdo-target.c
2794
block_count_t old_physical_blocks = vdo->states.vdo.config.physical_blocks;
drivers/md/dm-vdo/encodings.c
1348
void vdo_destroy_component_states(struct vdo_component_states *states)
drivers/md/dm-vdo/encodings.c
1350
if (states == NULL)
drivers/md/dm-vdo/encodings.c
1353
vdo_uninitialize_layout(&states->layout);
drivers/md/dm-vdo/encodings.c
1368
struct vdo_component_states *states)
drivers/md/dm-vdo/encodings.c
1372
decode_vdo_component(buffer, offset, &states->vdo);
drivers/md/dm-vdo/encodings.c
1375
states->vdo.config.physical_blocks, &states->layout);
drivers/md/dm-vdo/encodings.c
1380
&states->recovery_journal);
drivers/md/dm-vdo/encodings.c
1384
result = decode_slab_depot_state_2_0(buffer, offset, &states->slab_depot);
drivers/md/dm-vdo/encodings.c
1388
result = decode_block_map_state_2_0(buffer, offset, &states->block_map);
drivers/md/dm-vdo/encodings.c
1406
struct vdo_component_states *states)
drivers/md/dm-vdo/encodings.c
1412
decode_u32_le(buffer, &offset, &states->unused);
drivers/md/dm-vdo/encodings.c
1415
decode_version_number(buffer, &offset, &states->volume_version);
drivers/md/dm-vdo/encodings.c
1416
result = validate_version(VDO_VOLUME_VERSION_67_0, states->volume_version,
drivers/md/dm-vdo/encodings.c
1421
result = decode_components(buffer, &offset, geometry, states);
drivers/md/dm-vdo/encodings.c
1423
vdo_uninitialize_layout(&states->layout);
drivers/md/dm-vdo/encodings.c
1438
int vdo_validate_component_states(struct vdo_component_states *states,
drivers/md/dm-vdo/encodings.c
1442
if (geometry_nonce != states->vdo.nonce) {
drivers/md/dm-vdo/encodings.c
1446
(unsigned long long) states->vdo.nonce);
drivers/md/dm-vdo/encodings.c
1449
return vdo_validate_config(&states->vdo.config, physical_size, logical_size);
drivers/md/dm-vdo/encodings.c
1459
const struct vdo_component_states *states)
drivers/md/dm-vdo/encodings.c
1462
encode_u32_le(buffer, offset, states->unused);
drivers/md/dm-vdo/encodings.c
1463
encode_version_number(buffer, offset, states->volume_version);
drivers/md/dm-vdo/encodings.c
1464
encode_vdo_component(buffer, offset, states->vdo);
drivers/md/dm-vdo/encodings.c
1465
encode_layout(buffer, offset, &states->layout);
drivers/md/dm-vdo/encodings.c
1466
encode_recovery_journal_state_7_0(buffer, offset, states->recovery_journal);
drivers/md/dm-vdo/encodings.c
1467
encode_slab_depot_state_2_0(buffer, offset, states->slab_depot);
drivers/md/dm-vdo/encodings.c
1468
encode_block_map_state_2_0(buffer, offset, states->block_map);
drivers/md/dm-vdo/encodings.c
1479
void vdo_encode_super_block(u8 *buffer, struct vdo_component_states *states)
drivers/md/dm-vdo/encodings.c
1487
vdo_encode_component_states(buffer, &offset, states);
drivers/md/dm-vdo/encodings.c
1553
struct vdo_component_states *states)
drivers/md/dm-vdo/encodings.c
1559
states->vdo.config = *vdo_config;
drivers/md/dm-vdo/encodings.c
1560
states->vdo.nonce = nonce;
drivers/md/dm-vdo/encodings.c
1561
states->volume_version = VDO_VOLUME_VERSION_67_0;
drivers/md/dm-vdo/encodings.c
1563
states->recovery_journal = (struct recovery_journal_state_7_0) {
drivers/md/dm-vdo/encodings.c
1578
&states->layout);
drivers/md/dm-vdo/encodings.c
1586
vdo_uninitialize_layout(&states->layout);
drivers/md/dm-vdo/encodings.c
1590
result = vdo_get_partition(&states->layout, VDO_SLAB_DEPOT_PARTITION,
drivers/md/dm-vdo/encodings.c
1593
vdo_uninitialize_layout(&states->layout);
drivers/md/dm-vdo/encodings.c
1598
&states->slab_depot);
drivers/md/dm-vdo/encodings.c
1600
vdo_uninitialize_layout(&states->layout);
drivers/md/dm-vdo/encodings.c
1604
result = vdo_get_partition(&states->layout, VDO_BLOCK_MAP_PARTITION,
drivers/md/dm-vdo/encodings.c
1607
vdo_uninitialize_layout(&states->layout);
drivers/md/dm-vdo/encodings.c
1611
states->block_map = (struct block_map_state_2_0) {
drivers/md/dm-vdo/encodings.c
1618
states->vdo.state = VDO_NEW;
drivers/md/dm-vdo/encodings.h
1265
void vdo_destroy_component_states(struct vdo_component_states *states);
drivers/md/dm-vdo/encodings.h
1269
struct vdo_component_states *states);
drivers/md/dm-vdo/encodings.h
1271
int __must_check vdo_validate_component_states(struct vdo_component_states *states,
drivers/md/dm-vdo/encodings.h
1276
void vdo_encode_super_block(u8 *buffer, struct vdo_component_states *states);
drivers/md/dm-vdo/encodings.h
1282
struct vdo_component_states *states);
drivers/md/dm-vdo/message-stats.c
463
struct vdo_config *config = &vdo->states.vdo.config;
drivers/md/dm-vdo/repair.c
1709
vdo->states.vdo.read_only_recoveries++;
drivers/md/dm-vdo/repair.c
259
vdo->states.vdo.complete_recoveries++;
drivers/md/dm-vdo/repair.c
262
vdo->states.vdo.complete_recoveries,
drivers/md/dm-vdo/repair.c
754
if ((entry->slot.pbn >= vdo->states.vdo.config.physical_blocks) ||
drivers/md/dm-vdo/slab-depot.c
4073
.nonce = vdo->states.vdo.nonce,
drivers/md/dm-vdo/vdo.c
1078
vdo_encode_super_block(super_block->buffer, &vdo->states);
drivers/md/dm-vdo/vdo.c
1612
return (vdo->states.vdo.config.physical_blocks -
drivers/md/dm-vdo/vdo.c
1652
stats->logical_blocks = vdo->states.vdo.config.logical_blocks;
drivers/md/dm-vdo/vdo.c
1658
stats->physical_blocks = vdo->states.vdo.config.physical_blocks;
drivers/md/dm-vdo/vdo.c
1660
stats->complete_recoveries = vdo->states.vdo.complete_recoveries;
drivers/md/dm-vdo/vdo.c
1661
stats->read_only_recoveries = vdo->states.vdo.read_only_recoveries;
drivers/md/dm-vdo/vdo.c
474
result = vdo_initialize_component_states(&vdo_config, &vdo->geometry, nonce, &vdo->states);
drivers/md/dm-vdo/vdo.c
948
vdo->states.unused = vdo->geometry.unused;
drivers/md/dm-vdo/vdo.c
949
vdo->states.vdo.state = vdo_get_state(vdo);
drivers/md/dm-vdo/vdo.c
950
vdo->states.block_map = vdo_record_block_map(vdo->block_map);
drivers/md/dm-vdo/vdo.c
951
vdo->states.recovery_journal = vdo_record_recovery_journal(vdo->recovery_journal);
drivers/md/dm-vdo/vdo.c
952
vdo->states.slab_depot = vdo_record_slab_depot(vdo->depot);
drivers/md/dm-vdo/vdo.c
953
vdo->states.layout = vdo->layout;
drivers/md/dm-vdo/vdo.c
961
result = vdo_get_partition(&vdo->states.layout, id, &partition);
drivers/md/dm-vdo/vdo.h
183
struct vdo_component_states states;
drivers/media/cec/core/cec-pin.c
1043
usecs = states[pin->state].usecs;
drivers/media/cec/core/cec-pin.c
1249
seq_printf(file, "state: %s\n", states[pin->state].name);
drivers/media/cec/core/cec-pin.c
71
static const struct cec_state states[CEC_PIN_STATES] = {
drivers/media/i2c/adv7511-v4l2.c
564
static const char * const states[] = {
drivers/media/i2c/adv7511-v4l2.c
598
states[adv7511_rd(sd, 0xc8) & 0xf],
drivers/mtd/nand/raw/nandsim.c
1229
if (!(ops[i].states[ns->npstates] & STATE_ADDR_MASK))
drivers/mtd/nand/raw/nandsim.c
1232
if (NS_STATE(ns->state) != NS_STATE(ops[i].states[ns->npstates]))
drivers/mtd/nand/raw/nandsim.c
1237
if (NS_STATE(ops[i].states[j]) != NS_STATE(ns->pstates[j])
drivers/mtd/nand/raw/nandsim.c
1251
ns->op = &ops[idx].states[0];
drivers/mtd/nand/raw/nandsim.c
369
uint32_t states[NS_OPER_STATES]; /* operation's states */
drivers/mux/adg792a.c
101
mux->states = 4;
drivers/mux/adgs1408.c
80
mux->states = 8;
drivers/mux/adgs1408.c
82
mux->states = 4;
drivers/mux/adgs1408.c
89
if (idle_state < mux->states) {
drivers/mux/core.c
314
return mux->states;
drivers/mux/core.c
325
if (WARN_ON(state < 0 || state >= mux->states))
drivers/mux/gpio.c
71
mux_chip->mux->states = BIT(pins);
drivers/mux/gpio.c
75
if (idle_state < 0 || idle_state >= mux_chip->mux->states) {
drivers/mux/gpio.c
92
mux_chip->mux->states);
drivers/mux/mmio.c
151
mux->states = 1 << bits;
drivers/mux/mmio.c
156
if (idle_state < 0 || idle_state >= mux->states) {
drivers/net/ethernet/mellanox/mlx4/qp.c
924
static const enum mlx4_qp_state states[] = {
drivers/net/ethernet/mellanox/mlx4/qp.c
931
for (i = 0; i < ARRAY_SIZE(states) - 1; i++) {
drivers/net/ethernet/mellanox/mlx4/qp.c
933
context->flags |= cpu_to_be32(states[i + 1] << 28);
drivers/net/ethernet/mellanox/mlx4/qp.c
934
if (states[i + 1] != MLX4_QP_STATE_RTR)
drivers/net/ethernet/mellanox/mlx4/qp.c
936
err = mlx4_qp_modify(dev, mtt, states[i], states[i + 1],
drivers/net/ethernet/mellanox/mlx4/qp.c
940
states[i + 1], err);
drivers/net/ethernet/mellanox/mlx4/qp.c
944
*qp_state = states[i + 1];
drivers/pinctrl/core.c
1009
list_add_tail(&state->node, &p->states);
drivers/pinctrl/core.c
1114
INIT_LIST_HEAD(&p->states);
drivers/pinctrl/core.c
1231
list_for_each_entry_safe(state, n1, &p->states, node) {
drivers/pinctrl/core.c
1989
list_for_each_entry(state, &p->states, node) {
drivers/pinctrl/core.c
990
list_for_each_entry(state, &p->states, node)
drivers/pinctrl/core.h
90
struct list_head states;
drivers/pmdomain/core.c
1014
genpd->states[genpd->state_idx].rejected++;
drivers/pmdomain/core.c
1020
genpd->states[genpd->state_idx].usage++;
drivers/pmdomain/core.c
1432
genpd->states[genpd->state_idx].rejected++;
drivers/pmdomain/core.c
1435
genpd->states[genpd->state_idx].usage++;
drivers/pmdomain/core.c
1442
genpd->states[genpd->state_idx].usage_s2idle++;
drivers/pmdomain/core.c
2264
static void genpd_free_default_power_state(struct genpd_power_state *states,
drivers/pmdomain/core.c
2267
kfree(states);
drivers/pmdomain/core.c
2278
genpd->states = state;
drivers/pmdomain/core.c
2339
kfree(genpd->states);
drivers/pmdomain/core.c
2340
genpd->states = NULL;
drivers/pmdomain/core.c
2357
genpd->free_states(genpd->states, genpd->state_count);
drivers/pmdomain/core.c
308
genpd->states[genpd->state_idx].idle_time += delta;
drivers/pmdomain/core.c
327
state = &genpd->states[state_idx];
drivers/pmdomain/core.c
333
next_state = &genpd->states[state_idx + 1];
drivers/pmdomain/core.c
3596
struct genpd_power_state *states)
drivers/pmdomain/core.c
3616
if (states) {
drivers/pmdomain/core.c
3617
ret = genpd_parse_state(&states[i], np);
drivers/pmdomain/core.c
3644
struct genpd_power_state **states, int *n)
drivers/pmdomain/core.c
3654
*states = NULL;
drivers/pmdomain/core.c
3669
*states = st;
drivers/pmdomain/core.c
3958
struct genpd_power_state *state = &genpd->states[i];
drivers/pmdomain/core.c
3995
struct genpd_power_state *state = &genpd->states[i];
drivers/pmdomain/core.c
4052
total += genpd->states[i].idle_time;
drivers/pmdomain/core.c
820
genpd->states[genpd->state_idx].rejected++;
drivers/pmdomain/core.c
821
genpd->states[genpd->state_idx].usage--;
drivers/pmdomain/core.c
844
timed = timed && genpd->gd && !genpd->states[state_idx].fwnode;
drivers/pmdomain/core.c
859
if (elapsed_ns <= genpd->states[state_idx].power_on_latency_ns)
drivers/pmdomain/core.c
862
genpd->states[state_idx].power_on_latency_ns = elapsed_ns;
drivers/pmdomain/core.c
895
timed = timed && genpd->gd && !genpd->states[state_idx].fwnode;
drivers/pmdomain/core.c
910
if (elapsed_ns <= genpd->states[state_idx].power_off_latency_ns)
drivers/pmdomain/core.c
913
genpd->states[state_idx].power_off_latency_ns = elapsed_ns;
drivers/pmdomain/governor.c
169
min_sleep_ns = genpd->states[state].power_off_latency_ns +
drivers/pmdomain/governor.c
170
genpd->states[state].residency_ns;
drivers/pmdomain/governor.c
186
off_on_time_ns = genpd->states[state].power_off_latency_ns +
drivers/pmdomain/governor.c
187
genpd->states[state].power_on_latency_ns;
drivers/pmdomain/governor.c
257
genpd->states[state].power_on_latency_ns;
drivers/pmdomain/governor.c
408
if ((idle_duration_ns >= (genpd->states[i].residency_ns +
drivers/pmdomain/governor.c
409
genpd->states[i].power_off_latency_ns)) &&
drivers/pmdomain/governor.c
410
(global_constraint >= (genpd->states[i].power_on_latency_ns +
drivers/pmdomain/governor.c
411
genpd->states[i].power_off_latency_ns)))
drivers/pmdomain/governor.c
441
s64 latency_ns = genpd->states[state_idx].power_off_latency_ns +
drivers/pmdomain/governor.c
442
genpd->states[state_idx].power_on_latency_ns;
drivers/pmdomain/imx/gpc.c
263
.states = &imx6_pm_domain_pu_state,
drivers/power/supply/ab8500_chargalg.c
117
static const char * const states[] = {
drivers/power/supply/ab8500_chargalg.c
1335
states[di->charge_state],
drivers/power/supply/ab8500_chargalg.c
316
states[di->charge_state],
drivers/power/supply/ab8500_chargalg.c
318
states[state]);
drivers/pwm/pwm-renesas-tpu.c
105
static const char * const states[] = { "inactive", "PWM", "active" };
drivers/pwm/pwm-renesas-tpu.c
108
tpd->channel, states[state]);
drivers/regulator/bd9576-regulator.c
810
stat = &rid->states[i];
drivers/regulator/bd9576-regulator.c
847
stat = &rid->states[i];
drivers/regulator/bd9576-regulator.c
884
stat = &rid->states[i];
drivers/regulator/bd96801-regulator.c
1075
rid->states[i].notifs = REGULATOR_EVENT_FAIL;
drivers/regulator/bd96801-regulator.c
1076
rid->states[i].errors = REGULATOR_ERROR_FAIL;
drivers/regulator/bd96801-regulator.c
343
rdev = rid->states[i].rdev;
drivers/regulator/bd96801-regulator.c
346
rid->states[i].notifs = regulator_err2notif(rdata->ldo_errs);
drivers/regulator/bd96801-regulator.c
347
rid->states[i].errors = rdata->ldo_errs;
drivers/regulator/gpio-regulator.c
104
if (data->states[ptr].value > best_val &&
drivers/regulator/gpio-regulator.c
105
data->states[ptr].value >= min_uA &&
drivers/regulator/gpio-regulator.c
106
data->states[ptr].value <= max_uA) {
drivers/regulator/gpio-regulator.c
107
target = data->states[ptr].gpios;
drivers/regulator/gpio-regulator.c
108
best_val = data->states[ptr].value;
drivers/regulator/gpio-regulator.c
196
config->states = devm_kcalloc(dev,
drivers/regulator/gpio-regulator.c
200
if (!config->states)
drivers/regulator/gpio-regulator.c
205
&config->states[i].value);
drivers/regulator/gpio-regulator.c
207
&config->states[i].gpios);
drivers/regulator/gpio-regulator.c
291
drvdata->states = devm_kmemdup(dev,
drivers/regulator/gpio-regulator.c
292
config->states,
drivers/regulator/gpio-regulator.c
296
if (drvdata->states == NULL) {
drivers/regulator/gpio-regulator.c
39
struct gpio_regulator_state *states;
drivers/regulator/gpio-regulator.c
51
if (data->states[ptr].gpios == data->state)
drivers/regulator/gpio-regulator.c
52
return data->states[ptr].value;
drivers/regulator/gpio-regulator.c
65
if (data->states[ptr].value < best_val &&
drivers/regulator/gpio-regulator.c
66
data->states[ptr].value >= min_uV &&
drivers/regulator/gpio-regulator.c
67
data->states[ptr].value <= max_uV) {
drivers/regulator/gpio-regulator.c
68
target = data->states[ptr].gpios;
drivers/regulator/gpio-regulator.c
69
best_val = data->states[ptr].value;
drivers/regulator/gpio-regulator.c
94
return data->states[selector].value;
drivers/regulator/irq_helpers.c
107
stat = &rid->states[i];
drivers/regulator/irq_helpers.c
132
stat = &rid->states[i];
drivers/regulator/irq_helpers.c
214
rdev = rid->states[i].rdev;
drivers/regulator/irq_helpers.c
240
stat = &rid->states[i];
drivers/regulator/irq_helpers.c
286
h->rdata.states = devm_kzalloc(dev, sizeof(*h->rdata.states) *
drivers/regulator/irq_helpers.c
288
if (!h->rdata.states)
drivers/regulator/irq_helpers.c
295
h->rdata.states[i].possible_errs = common_err;
drivers/regulator/irq_helpers.c
297
h->rdata.states[i].possible_errs |= *rdev_err++;
drivers/regulator/irq_helpers.c
298
h->rdata.states[i].rdev = *rdev++;
drivers/regulator/irq_helpers.c
309
if (h->rdata.states[i].possible_errs)
drivers/regulator/irq_helpers.c
310
h->rdata.states[i].rdev->use_cached_err = true;
drivers/regulator/irq_helpers.c
426
int err = rid->states[0].possible_errs;
drivers/regulator/irq_helpers.c
438
rid->states[0].errors = err;
drivers/regulator/irq_helpers.c
439
rid->states[0].notifs = regulator_err2notif(err);
drivers/regulator/max5970-regulator.c
413
stat = &rid->states[i];
drivers/regulator/max5970-regulator.c
419
stat = &rid->states[i];
drivers/regulator/max5970-regulator.c
437
stat = &rid->states[i];
drivers/regulator/max5970-regulator.c
455
stat = &rid->states[i];
drivers/regulator/max5970-regulator.c
469
stat = &rid->states[i];
drivers/s390/crypto/ap_queue.c
831
static DEVICE_ATTR_RO(states);
drivers/scsi/aha152x.c
2360
if(PREVSTATE!=STATE && states[PREVSTATE].end)
drivers/scsi/aha152x.c
2361
states[PREVSTATE].end(shpnt);
drivers/scsi/aha152x.c
2368
if(states[PREVSTATE].spio && !states[STATE].spio) {
drivers/scsi/aha152x.c
2390
if(!states[PREVSTATE].spio && states[STATE].spio) {
drivers/scsi/aha152x.c
2401
if(PREVSTATE!=STATE && states[STATE].init)
drivers/scsi/aha152x.c
2402
states[STATE].init(shpnt);
drivers/scsi/aha152x.c
2408
if(states[STATE].run)
drivers/scsi/aha152x.c
2409
states[STATE].run(shpnt);
drivers/scsi/aha152x.c
2569
seq_printf(m, "\n%s: %s(%s) ", CURRENT_SC ? "on bus" : "waiting", states[STATE].name, states[PREVSTATE].name);
drivers/scsi/aha152x.c
2934
states[i].name,
drivers/scsi/aha152x.c
619
} states[] = {
drivers/scsi/lpfc/lpfc_hbadisc.c
4819
static char *states[] = {
drivers/scsi/lpfc/lpfc_hbadisc.c
4831
if (state < NLP_STE_MAX_STATE && states[state])
drivers/scsi/lpfc/lpfc_hbadisc.c
4832
strscpy(buffer, states[state], size);
drivers/scsi/qla2xxx/qla_mbx.c
2252
qla2x00_get_firmware_state(scsi_qla_host_t *vha, uint16_t *states)
drivers/scsi/qla2xxx/qla_mbx.c
2283
states[0] = mcp->mb[1];
drivers/scsi/qla2xxx/qla_mbx.c
2285
states[1] = mcp->mb[2];
drivers/scsi/qla2xxx/qla_mbx.c
2286
states[2] = mcp->mb[3]; /* SFP info */
drivers/scsi/qla2xxx/qla_mbx.c
2287
states[3] = mcp->mb[4];
drivers/scsi/qla2xxx/qla_mbx.c
2288
states[4] = mcp->mb[5];
drivers/scsi/qla2xxx/qla_mbx.c
2289
states[5] = mcp->mb[6]; /* DPORT status */
drivers/scsi/qla2xxx/qla_mbx.c
2291
states[11] = mcp->mb[12]; /* MPI state. */
drivers/scsi/qla2xxx/qla_mr.c
344
qlafx00_get_firmware_state(scsi_qla_host_t *vha, uint32_t *states)
drivers/scsi/qla2xxx/qla_mr.c
361
states[0] = mcp->mb[1];
drivers/scsi/raid_class.c
184
#define raid_attr_ro_states(attr, states, code) \
drivers/scsi/raid_class.c
188
name = raid_##states##_name(rd->attr); \
drivers/soc/qcom/smsm.c
518
u32 *states;
drivers/soc/qcom/smsm.c
582
states = qcom_smem_get(QCOM_SMEM_HOST_ANY, SMEM_SMSM_SHARED_STATE, NULL);
drivers/soc/qcom/smsm.c
583
if (IS_ERR(states)) {
drivers/soc/qcom/smsm.c
585
ret = PTR_ERR(states);
drivers/soc/qcom/smsm.c
605
smsm->local_state = states + smsm->local_host;
drivers/soc/qcom/smsm.c
631
entry->remote_state = states + id;
drivers/thermal/thermal_sysfs.c
678
int i, states;
drivers/thermal/thermal_sysfs.c
686
states = cdev->max_state + 1;
drivers/thermal/thermal_sysfs.c
693
states * states * sizeof(*stats->trans_table));
drivers/thermal/thermal_sysfs.c
695
for (i = 0; i < states; i++)
drivers/thermal/thermal_sysfs.c
777
unsigned long states = cdev->max_state + 1;
drivers/thermal/thermal_sysfs.c
781
var += sizeof(*stats->time_in_state) * states;
drivers/thermal/thermal_sysfs.c
782
var += sizeof(*stats->trans_table) * states * states;
drivers/thermal/thermal_sysfs.c
789
stats->trans_table = (unsigned int *)(stats->time_in_state + states);
drivers/tty/serial/st-asc.c
40
struct pinctrl_state *states[2];
drivers/tty/serial/st-asc.c
527
if (!ascport->rts && ascport->states[NO_HW_FLOWCTRL])
drivers/tty/serial/st-asc.c
591
ascport->states[NO_HW_FLOWCTRL]);
drivers/tty/serial/st-asc.c
603
ascport->states[DEFAULT]);
drivers/tty/serial/st-asc.c
728
ascport->states[DEFAULT] =
drivers/tty/serial/st-asc.c
730
if (IS_ERR(ascport->states[DEFAULT])) {
drivers/tty/serial/st-asc.c
731
ret = PTR_ERR(ascport->states[DEFAULT]);
drivers/tty/serial/st-asc.c
738
ascport->states[NO_HW_FLOWCTRL] =
drivers/tty/serial/st-asc.c
740
if (IS_ERR(ascport->states[NO_HW_FLOWCTRL]))
drivers/tty/serial/st-asc.c
741
ascport->states[NO_HW_FLOWCTRL] = NULL;
drivers/xen/xen-acpi-processor.c
109
set_xen_guest_handle(op.u.set_pminfo.power.states, dst_cx_states);
drivers/xen/xen-acpi-processor.c
117
cx = &_pr->power.states[i];
drivers/xen/xen-acpi-processor.c
152
memcpy(&(dst_states[i]), &(_pr->performance->states[i]),
drivers/xen/xen-acpi-processor.c
226
set_xen_guest_handle(dst_perf->states, dst_states);
drivers/xen/xen-acpi-processor.c
251
(u32) perf->states[i].core_frequency,
drivers/xen/xen-acpi-processor.c
252
(u32) perf->states[i].power,
drivers/xen/xen-acpi-processor.c
253
(u32) perf->states[i].transition_latency);
drivers/xen/xen-acpi-processor.c
279
if (_pr->performance && _pr->performance->states)
drivers/xen/xen-acpi-processor.c
69
cx = &_pr->power.states[i];
fs/afs/fs_probe.c
314
int afs_wait_for_fs_probes(struct afs_operation *op, struct afs_server_state *states, bool intr)
fs/afs/fs_probe.c
324
estate = states[i].endpoint_state;
fs/afs/fs_probe.c
329
if (estate->responsive_set & states[i].untried_addrs)
fs/afs/fs_probe.c
336
add_wait_queue(&slist->servers[i].server->probe_wq, &states[i].probe_waiter);
fs/afs/fs_probe.c
343
estate = states[i].endpoint_state;
fs/afs/fs_probe.c
350
if (estate->responsive_set & states[i].untried_addrs) {
fs/afs/fs_probe.c
365
remove_wait_queue(&slist->servers[i].server->probe_wq, &states[i].probe_waiter);
fs/afs/internal.h
1244
int afs_wait_for_fs_probes(struct afs_operation *op, struct afs_server_state *states, bool intr);
fs/btrfs/extent-io-tree.c
19
static LIST_HEAD(states);
fs/btrfs/extent-io-tree.c
27
list_add(&state->leak_list, &states);
fs/btrfs/extent-io-tree.c
44
while (!list_empty(&states)) {
fs/btrfs/extent-io-tree.c
45
state = list_first_entry(&states, struct extent_state, leak_list);
fs/btrfs/space-info.c
1566
const enum btrfs_flush_state *states,
fs/btrfs/space-info.c
1587
flush_space(space_info, to_reclaim, states[flush_state], false);
include/acpi/acpi_bus.h
301
struct acpi_device_power_state states[ACPI_D_STATE_COUNT]; /* Power states (D0-D3Cold) */
include/acpi/acpi_bus.h
334
struct acpi_device_perf_state *states;
include/acpi/acpi_bus.h
871
return adev->power.states[ACPI_STATE_D3_COLD].flags.valid ||
include/acpi/acpi_bus.h
873
adev->power.states[ACPI_STATE_D3_HOT].flags.explicit_set);
include/acpi/processor.h
134
struct acpi_processor_px *states;
include/acpi/processor.h
191
struct acpi_processor_tx states[ACPI_PROCESSOR_MAX_THROTTLING];
include/acpi/processor.h
93
struct acpi_processor_cx states[ACPI_PROCESSOR_MAX_POWER];
include/hyperv/hvhdk.h
700
union hv_x64_xsave_xfem_register states;
include/linux/cpuidle.h
159
struct cpuidle_state states[CPUIDLE_STATE_MAX];
include/linux/livepatch.h
139
struct klp_state *states;
include/linux/mux/driver.h
50
unsigned int states;
include/linux/pm_domain.h
235
struct genpd_power_state *states;
include/linux/pm_domain.h
236
void (*free_states)(struct genpd_power_state *states,
include/linux/pm_domain.h
468
struct genpd_power_state **states, int *n);
include/linux/pm_domain.h
514
struct genpd_power_state **states, int *n)
include/linux/regulator/driver.h
506
struct regulator_err_state *states;
include/linux/regulator/gpio-regulator.h
74
struct gpio_regulator_state *states;
include/linux/rv.h
56
DECLARE_BITMAP(states, RV_MAX_BA_STATES);
include/linux/rv.h
63
for (int i = 0; i < ARRAY_SIZE(mon->states); ++i) {
include/linux/rv.h
64
if (mon->states[i])
include/net/xfrm.h
2103
static inline void xfrm_states_put(struct xfrm_state **states, int n)
include/net/xfrm.h
2107
xfrm_state_put(*(states + i));
include/net/xfrm.h
2110
static inline void xfrm_states_delete(struct xfrm_state **states, int n)
include/net/xfrm.h
2114
xfrm_state_delete(*(states + i));
include/rdma/ib_verbs.h
532
const char * const states[] = {
include/rdma/ib_verbs.h
541
if (state < ARRAY_SIZE(states))
include/rdma/ib_verbs.h
542
return states[state];
include/rv/automata.h
25
static char *model_get_state_name(enum states state)
include/rv/automata.h
47
static inline enum states model_get_initial_state(void)
include/rv/automata.h
58
static inline enum states model_get_next_state(enum states curr_state,
include/rv/automata.h
73
static inline bool model_is_final_state(enum states state)
include/rv/da_monitor.h
685
enum states curr_state, next_state;
include/rv/da_monitor.h
79
static void react(enum states curr_state, enum events event)
include/rv/ha_monitor.h
101
static void ha_react(enum states curr_state, enum events event, char *env) { }
include/rv/ha_monitor.h
163
enum states curr_state,
include/rv/ha_monitor.h
165
enum states next_state,
include/rv/ha_monitor.h
275
enum states curr_state,
include/rv/ha_monitor.h
277
enum states next_state,
include/rv/ha_monitor.h
308
enum states curr_state;
include/rv/ha_monitor.h
33
enum states curr_state,
include/rv/ha_monitor.h
35
enum states next_state,
include/rv/ha_monitor.h
90
static void ha_react(enum states curr_state, enum events event, char *env)
include/rv/ltl_monitor.h
112
char states[32], next[32];
include/rv/ltl_monitor.h
118
snprintf(states, sizeof(states), "%*pbl", RV_MAX_BA_STATES, mon->states);
include/rv/ltl_monitor.h
128
CONCATENATE(trace_event_, MONITOR_NAME)(task, states, atoms.buffer, next);
include/rv/ltl_monitor.h
139
if (test_bit(i, mon->states))
include/rv/ltl_monitor.h
145
memcpy(mon->states, next_states, sizeof(next_states));
include/rv/ltl_monitor.h
36
memset(&mon->states, 0, sizeof(mon->states));
include/xen/interface/platform.h
364
GUEST_HANDLE(xen_processor_cx) states; /* supported c states */
include/xen/interface/platform.h
401
GUEST_HANDLE(xen_processor_px) states;
kernel/cpu.c
2872
static DEVICE_ATTR_RO(states);
kernel/livepatch/state.c
16
for (state = patch->states; state && state->id; state++)
kernel/sched/membarrier.c
569
static const int states[] = {
kernel/sched/membarrier.c
585
BUILD_BUG_ON(ARRAY_SIZE(states) != ARRAY_SIZE(registration_cmds));
kernel/sched/membarrier.c
588
for (i = 0; i < ARRAY_SIZE(states); ++i) {
kernel/sched/membarrier.c
589
if (membarrier_state & states[i]) {
kernel/sched/membarrier.c
591
membarrier_state &= ~states[i];
kernel/trace/rv/monitors/nomiss/nomiss.c
103
enum states curr_state, enum events event,
kernel/trace/rv/monitors/nomiss/nomiss.c
104
enum states next_state, u64 time_ns)
kernel/trace/rv/monitors/nomiss/nomiss.c
119
enum states curr_state, enum events event,
kernel/trace/rv/monitors/nomiss/nomiss.c
120
enum states next_state, u64 time_ns)
kernel/trace/rv/monitors/nomiss/nomiss.c
56
enum states curr_state, enum events event,
kernel/trace/rv/monitors/nomiss/nomiss.c
57
enum states next_state, u64 time_ns)
kernel/trace/rv/monitors/nomiss/nomiss.c
67
enum states curr_state, enum events event,
kernel/trace/rv/monitors/nomiss/nomiss.c
68
enum states next_state, u64 time_ns)
kernel/trace/rv/monitors/nomiss/nomiss.c
79
enum states curr_state, enum events event,
kernel/trace/rv/monitors/nomiss/nomiss.c
80
enum states next_state, u64 time_ns)
kernel/trace/rv/monitors/opid/opid.c
33
enum states curr_state, enum events event,
kernel/trace/rv/monitors/opid/opid.c
34
enum states next_state, u64 time_ns)
kernel/trace/rv/monitors/opid/opid.c
47
enum states curr_state, enum events event,
kernel/trace/rv/monitors/opid/opid.c
48
enum states next_state, u64 time_ns)
kernel/trace/rv/monitors/pagefault/pagefault.h
46
__set_bit(S0, mon->states);
kernel/trace/rv/monitors/pagefault/pagefault_trace.h
10
TP_ARGS(task, states, atoms, next));
kernel/trace/rv/monitors/pagefault/pagefault_trace.h
9
TP_PROTO(struct task_struct *task, char *states, char *atoms, char *next),
kernel/trace/rv/monitors/sleep/sleep.h
119
__set_bit(S0, mon->states);
kernel/trace/rv/monitors/sleep/sleep.h
121
__set_bit(S1, mon->states);
kernel/trace/rv/monitors/sleep/sleep.h
123
__set_bit(S4, mon->states);
kernel/trace/rv/monitors/sleep/sleep.h
125
__set_bit(S5, mon->states);
kernel/trace/rv/monitors/sleep/sleep_trace.h
10
TP_ARGS(task, states, atoms, next));
kernel/trace/rv/monitors/sleep/sleep_trace.h
9
TP_PROTO(struct task_struct *task, char *states, char *atoms, char *next),
kernel/trace/rv/monitors/stall/stall.c
37
enum states curr_state, enum events event,
kernel/trace/rv/monitors/stall/stall.c
38
enum states next_state, u64 time_ns)
kernel/trace/rv/monitors/stall/stall.c
46
enum states curr_state, enum events event,
kernel/trace/rv/monitors/stall/stall.c
47
enum states next_state, u64 time_ns)
kernel/trace/rv/monitors/stall/stall.c
59
enum states curr_state, enum events event,
kernel/trace/rv/monitors/stall/stall.c
60
enum states next_state, u64 time_ns)
kernel/trace/rv/monitors/stall/stall.c
71
enum states curr_state, enum events event,
kernel/trace/rv/monitors/stall/stall.c
72
enum states next_state, u64 time_ns)
kernel/trace/rv/rv_trace.h
200
TP_PROTO(struct task_struct *task, char *states, char *atoms, char *next),
kernel/trace/rv/rv_trace.h
202
TP_ARGS(task, states, atoms, next),
kernel/trace/rv/rv_trace.h
207
__string(states, states)
kernel/trace/rv/rv_trace.h
215
__assign_str(states);
kernel/trace/rv/rv_trace.h
221
__get_str(states), __get_str(atoms), __get_str(next))
sound/soc/soc-pcm.c
65
const enum snd_soc_dpcm_state *states,
sound/soc/soc-pcm.c
80
if (state == states[i]) {
sound/usb/misc/ua101.c
1295
set_bit(DISCONNECTED, &ua->states);
sound/usb/misc/ua101.c
158
if (test_and_clear_bit(USB_CAPTURE_RUNNING, &ua->states)) {
sound/usb/misc/ua101.c
166
if (test_and_clear_bit(USB_PLAYBACK_RUNNING, &ua->states))
sound/usb/misc/ua101.c
184
if (test_bit(USB_PLAYBACK_RUNNING, &ua->states)) {
sound/usb/misc/ua101.c
203
set_bit(PLAYBACK_URB_COMPLETED, &ua->states);
sound/usb/misc/ua101.c
255
if (unlikely(!test_bit(USB_PLAYBACK_RUNNING, &ua->states)))
sound/usb/misc/ua101.c
285
if (test_bit(ALSA_PLAYBACK_RUNNING, &ua->states))
sound/usb/misc/ua101.c
365
if (frames > 0 && test_bit(ALSA_CAPTURE_RUNNING, &ua->states))
sound/usb/misc/ua101.c
370
if (test_bit(USB_CAPTURE_RUNNING, &ua->states)) {
sound/usb/misc/ua101.c
396
if (test_bit(USB_PLAYBACK_RUNNING, &ua->states) &&
sound/usb/misc/ua101.c
421
set_bit(CAPTURE_URB_COMPLETED, &ua->states);
sound/usb/misc/ua101.c
478
if (err < 0 && !test_bit(DISCONNECTED, &ua->states))
sound/usb/misc/ua101.c
487
clear_bit(USB_CAPTURE_RUNNING, &ua->states);
sound/usb/misc/ua101.c
498
if (test_bit(DISCONNECTED, &ua->states))
sound/usb/misc/ua101.c
501
if (test_bit(USB_CAPTURE_RUNNING, &ua->states))
sound/usb/misc/ua101.c
510
clear_bit(CAPTURE_URB_COMPLETED, &ua->states);
sound/usb/misc/ua101.c
515
set_bit(USB_CAPTURE_RUNNING, &ua->states);
sound/usb/misc/ua101.c
524
clear_bit(USB_PLAYBACK_RUNNING, &ua->states);
sound/usb/misc/ua101.c
539
if (test_bit(DISCONNECTED, &ua->states))
sound/usb/misc/ua101.c
542
if (test_bit(USB_PLAYBACK_RUNNING, &ua->states))
sound/usb/misc/ua101.c
552
clear_bit(PLAYBACK_URB_COMPLETED, &ua->states);
sound/usb/misc/ua101.c
565
!test_bit(USB_CAPTURE_RUNNING, &ua->states) ||
sound/usb/misc/ua101.c
566
test_bit(DISCONNECTED, &ua->states));
sound/usb/misc/ua101.c
567
if (test_bit(DISCONNECTED, &ua->states)) {
sound/usb/misc/ua101.c
571
if (!test_bit(USB_CAPTURE_RUNNING, &ua->states)) {
sound/usb/misc/ua101.c
590
set_bit(USB_PLAYBACK_RUNNING, &ua->states);
sound/usb/misc/ua101.c
599
if (test_bit(ALSA_CAPTURE_RUNNING, &ua->states))
sound/usb/misc/ua101.c
605
if (test_bit(ALSA_PLAYBACK_RUNNING, &ua->states))
sound/usb/misc/ua101.c
658
set_bit(ALSA_CAPTURE_OPEN, &ua->states);
sound/usb/misc/ua101.c
681
if (!test_bit(ALSA_CAPTURE_OPEN, &ua->states))
sound/usb/misc/ua101.c
685
set_bit(ALSA_PLAYBACK_OPEN, &ua->states);
sound/usb/misc/ua101.c
694
clear_bit(ALSA_CAPTURE_OPEN, &ua->states);
sound/usb/misc/ua101.c
695
if (!test_bit(ALSA_PLAYBACK_OPEN, &ua->states))
sound/usb/misc/ua101.c
706
clear_bit(ALSA_PLAYBACK_OPEN, &ua->states);
sound/usb/misc/ua101.c
707
if (!test_bit(ALSA_CAPTURE_OPEN, &ua->states))
sound/usb/misc/ua101.c
752
test_bit(CAPTURE_URB_COMPLETED, &ua->states) ||
sound/usb/misc/ua101.c
753
!test_bit(USB_CAPTURE_RUNNING, &ua->states));
sound/usb/misc/ua101.c
754
if (test_bit(DISCONNECTED, &ua->states))
sound/usb/misc/ua101.c
756
if (!test_bit(USB_CAPTURE_RUNNING, &ua->states))
sound/usb/misc/ua101.c
779
test_bit(PLAYBACK_URB_COMPLETED, &ua->states) ||
sound/usb/misc/ua101.c
780
!test_bit(USB_PLAYBACK_RUNNING, &ua->states));
sound/usb/misc/ua101.c
781
if (test_bit(DISCONNECTED, &ua->states))
sound/usb/misc/ua101.c
783
if (!test_bit(USB_PLAYBACK_RUNNING, &ua->states))
sound/usb/misc/ua101.c
798
if (!test_bit(USB_CAPTURE_RUNNING, &ua->states))
sound/usb/misc/ua101.c
800
set_bit(ALSA_CAPTURE_RUNNING, &ua->states);
sound/usb/misc/ua101.c
803
clear_bit(ALSA_CAPTURE_RUNNING, &ua->states);
sound/usb/misc/ua101.c
816
if (!test_bit(USB_PLAYBACK_RUNNING, &ua->states))
sound/usb/misc/ua101.c
818
set_bit(ALSA_PLAYBACK_RUNNING, &ua->states);
sound/usb/misc/ua101.c
821
clear_bit(ALSA_PLAYBACK_RUNNING, &ua->states);
sound/usb/misc/ua101.c
90
unsigned long states;
tools/perf/util/evsel.c
3995
static const char *states;
tools/perf/util/evsel.c
4006
if (!states || field != prev_state_field) {
tools/perf/util/evsel.c
4007
states = parse_task_states(field);
tools/perf/util/evsel.c
4008
if (!states)
tools/perf/util/evsel.c
4022
state = (!bit || bit > strlen(states)) ? 'R' : states[bit-1];
tools/power/cpupower/utils/helpers/amd.c
149
int amd_pci_get_num_boost_states(int *active, int *states)
tools/power/cpupower/utils/helpers/amd.c
155
*active = *states = 0;
tools/power/cpupower/utils/helpers/amd.c
167
*states = (val >> 2) & 7;
tools/power/cpupower/utils/helpers/helpers.h
128
extern int amd_pci_get_num_boost_states(int *active, int *states);
tools/power/cpupower/utils/helpers/helpers.h
145
int *active, int *states);
tools/power/cpupower/utils/helpers/helpers.h
191
int *active, int *states)
tools/power/cpupower/utils/helpers/misc.c
18
int *states)
tools/power/cpupower/utils/helpers/misc.c
26
*support = *active = *states = 0;
tools/power/cpupower/utils/helpers/misc.c
42
ret = amd_pci_get_num_boost_states(active, states);
tools/testing/selftests/livepatch/test_modules/test_klp_state.c
134
static struct klp_state states[] = {
tools/testing/selftests/livepatch/test_modules/test_klp_state.c
144
.states = states,
tools/testing/selftests/livepatch/test_modules/test_klp_state2.c
163
static struct klp_state states[] = {
tools/testing/selftests/livepatch/test_modules/test_klp_state2.c
173
.states = states,
tools/testing/selftests/vDSO/vdso_test_getrandom.c
109
vgrnd.states[vgrnd.len++] = state;
tools/testing/selftests/vDSO/vdso_test_getrandom.c
48
void **states;
tools/testing/selftests/vDSO/vdso_test_getrandom.c
76
new_states = reallocarray(vgrnd.states, new_cap, sizeof(*vgrnd.states));
tools/testing/selftests/vDSO/vdso_test_getrandom.c
80
vgrnd.states = new_states;
tools/testing/selftests/vDSO/vdso_test_getrandom.c
85
vgrnd.states[i] = new_block;
tools/testing/selftests/vDSO/vdso_test_getrandom.c
96
state = vgrnd.states[--vgrnd.len];
tools/verification/rvgen/rvgen/templates/ltl2k/trace.h
10
TP_ARGS(task, states, atoms, next));
tools/verification/rvgen/rvgen/templates/ltl2k/trace.h
9
TP_PROTO(struct task_struct *task, char *states, char *atoms, char *next),