states             60 arch/arm/mach-davinci/cpuidle.c 	.states[0]		= ARM_CPUIDLE_WFI_STATE,
states             61 arch/arm/mach-davinci/cpuidle.c 	.states[1]		= {
states             21 arch/arm/mach-imx/cpuidle-imx5.c 	.states[0] = {
states             40 arch/arm/mach-imx/cpuidle-imx6q.c 	.states = {
states             65 arch/arm/mach-imx/cpuidle-imx6q.c 	imx6q_cpuidle_driver.states[1].disabled = true;
states             71 arch/arm/mach-imx/cpuidle-imx6q.c 	imx6q_cpuidle_driver.states[1].disabled = false;
states             32 arch/arm/mach-imx/cpuidle-imx6sl.c 	.states = {
states             69 arch/arm/mach-imx/cpuidle-imx6sx.c 	.states = {
states             33 arch/arm/mach-imx/cpuidle-imx7ulp.c 	.states = {
states            261 arch/arm/mach-omap2/cpuidle34xx.c 	.states = {
states            324 arch/arm/mach-omap2/cpuidle34xx.c 	.states = {
states            225 arch/arm/mach-omap2/cpuidle44xx.c 	.states = {
states            260 arch/arm/mach-omap2/cpuidle44xx.c 	.states = {
states            717 arch/arm/mach-pxa/hx4700.c 	.states = bq24022_states,
states            660 arch/arm/mach-pxa/magician.c 	.states			= bq24022_states,
states             42 arch/arm/mach-s3c64xx/cpuidle.c 	.states = {
states             66 arch/arm/mach-tegra/cpuidle-tegra114.c 	.states = {
states             47 arch/arm/mach-tegra/cpuidle-tegra20.c 	.states = {
states            206 arch/arm/mach-tegra/cpuidle-tegra20.c 	tegra_idle_driver.states[1].disabled = true;
states             42 arch/arm/mach-tegra/cpuidle-tegra30.c 	.states = {
states             54 arch/sh/kernel/cpu/shmobile/cpuidle.c 	.states = {
states             89 arch/sh/kernel/cpu/shmobile/cpuidle.c 		cpuidle_driver.states[1].disabled = false;
states             92 arch/sh/kernel/cpu/shmobile/cpuidle.c 		cpuidle_driver.states[2].disabled = false;
states           2822 arch/x86/events/intel/core.c 	xl = &excl_cntrs->states[tid];
states           2849 arch/x86/events/intel/core.c 	xl = &excl_cntrs->states[tid];
states           2877 arch/x86/events/intel/core.c 	xl = &excl_cntrs->states[tid];
states           2957 arch/x86/events/intel/core.c 	xlo = &excl_cntrs->states[tid ^ 1];
states           3070 arch/x86/events/intel/core.c 		xl = &excl_cntrs->states[tid];
states            597 arch/x86/events/intel/cstate.c #define X86_CSTATES_MODEL(model, states)				\
states            598 arch/x86/events/intel/cstate.c 	{ X86_VENDOR_INTEL, 6, model, X86_FEATURE_ANY, (unsigned long) &(states) }
states            167 arch/x86/events/perf_event.h 	struct intel_excl_states states[2];
states             91 arch/x86/kernel/acpi/cstate.c 	} states[ACPI_PROCESSOR_MAX_POWER];
states            159 arch/x86/kernel/acpi/cstate.c 	percpu_entry->states[cx->index].eax = 0;
states            160 arch/x86/kernel/acpi/cstate.c 	percpu_entry->states[cx->index].ecx = 0;
states            168 arch/x86/kernel/acpi/cstate.c 		percpu_entry->states[cx->index].eax = cx->address;
states            169 arch/x86/kernel/acpi/cstate.c 		percpu_entry->states[cx->index].ecx = MWAIT_ECX_INTERRUPT_BREAK;
states            190 arch/x86/kernel/acpi/cstate.c 	mwait_idle_with_hints(percpu_entry->states[cx->index].eax,
states            191 arch/x86/kernel/acpi/cstate.c 	                      percpu_entry->states[cx->index].ecx);
states            369 arch/x86/kernel/apm_32.c 	.states = {
states            398 arch/x86/platform/intel-mid/pwr.c static int mid_set_initial_state(struct mid_pwr *pwr, const u32 *states)
states            423 arch/x86/platform/intel-mid/pwr.c 	mid_pwr_set_state(pwr, 0, states[0]);
states            424 arch/x86/platform/intel-mid/pwr.c 	mid_pwr_set_state(pwr, 1, states[1]);
states            425 arch/x86/platform/intel-mid/pwr.c 	mid_pwr_set_state(pwr, 2, states[2]);
states            426 arch/x86/platform/intel-mid/pwr.c 	mid_pwr_set_state(pwr, 3, states[3]);
states            444 arch/x86/platform/intel-mid/pwr.c 	static const u32 states[] = {
states            450 arch/x86/platform/intel-mid/pwr.c 	return mid_set_initial_state(pwr, states);
states            455 arch/x86/platform/intel-mid/pwr.c 	static const u32 states[] = {
states            461 arch/x86/platform/intel-mid/pwr.c 	return mid_set_initial_state(pwr, states);
states            141 drivers/acpi/device_pm.c 	if (adev->power.states[state].flags.explicit_set) {
states            190 drivers/acpi/device_pm.c 		if (!device->power.states[ACPI_STATE_D3_COLD].flags.valid)
states            192 drivers/acpi/device_pm.c 	} else if (!device->power.states[state].flags.valid) {
states            626 drivers/acpi/device_pm.c 		if (!adev->power.states[ret].flags.valid) {
states            662 drivers/acpi/device_pm.c 			if (!adev->power.states[ret].flags.valid)
states            723 drivers/acpi/device_pm.c 			if (adev->power.states[d_max].flags.valid)
states            314 drivers/acpi/power.c 	resources = &adev->power.states[ACPI_STATE_D0].resources;
states            348 drivers/acpi/power.c 	resources = &adev->power.states[ACPI_STATE_D0].resources;
states            593 drivers/acpi/power.c 				       &adev->power.states[state].resources,
states            815 drivers/acpi/power.c 		struct list_head *list = &device->power.states[i].resources;
states            830 drivers/acpi/power.c 	*state = device->power.states[ACPI_STATE_D3_COLD].flags.valid ?
states            840 drivers/acpi/power.c 	return acpi_power_on_list(&device->power.states[state].resources);
states            864 drivers/acpi/power.c 			&device->power.states[state].resources);
states            868 drivers/acpi/power.c 			&device->power.states[device->power.state].resources);
states            168 drivers/acpi/processor_idle.c 	int state = cx - pr->power.states;
states            225 drivers/acpi/processor_idle.c 	pr->power.states[ACPI_STATE_C2].type = ACPI_STATE_C2;
states            226 drivers/acpi/processor_idle.c 	pr->power.states[ACPI_STATE_C3].type = ACPI_STATE_C3;
states            239 drivers/acpi/processor_idle.c 	pr->power.states[ACPI_STATE_C2].address = pr->pblk + 4;
states            240 drivers/acpi/processor_idle.c 	pr->power.states[ACPI_STATE_C3].address = pr->pblk + 5;
states            243 drivers/acpi/processor_idle.c 	pr->power.states[ACPI_STATE_C2].latency = acpi_gbl_FADT.c2_latency;
states            244 drivers/acpi/processor_idle.c 	pr->power.states[ACPI_STATE_C3].latency = acpi_gbl_FADT.c3_latency;
states            254 drivers/acpi/processor_idle.c 		pr->power.states[ACPI_STATE_C2].address = 0;
states            265 drivers/acpi/processor_idle.c 		pr->power.states[ACPI_STATE_C3].address = 0;
states            270 drivers/acpi/processor_idle.c 			  pr->power.states[ACPI_STATE_C2].address,
states            271 drivers/acpi/processor_idle.c 			  pr->power.states[ACPI_STATE_C3].address));
states            273 drivers/acpi/processor_idle.c 	snprintf(pr->power.states[ACPI_STATE_C2].desc,
states            275 drivers/acpi/processor_idle.c 			 pr->power.states[ACPI_STATE_C2].address);
states            276 drivers/acpi/processor_idle.c 	snprintf(pr->power.states[ACPI_STATE_C3].desc,
states            278 drivers/acpi/processor_idle.c 			 pr->power.states[ACPI_STATE_C3].address);
states            285 drivers/acpi/processor_idle.c 	if (!pr->power.states[ACPI_STATE_C1].valid) {
states            288 drivers/acpi/processor_idle.c 		pr->power.states[ACPI_STATE_C1].type = ACPI_STATE_C1;
states            289 drivers/acpi/processor_idle.c 		pr->power.states[ACPI_STATE_C1].valid = 1;
states            290 drivers/acpi/processor_idle.c 		pr->power.states[ACPI_STATE_C1].entry_method = ACPI_CSTATE_HALT;
states            292 drivers/acpi/processor_idle.c 		snprintf(pr->power.states[ACPI_STATE_C1].desc,
states            296 drivers/acpi/processor_idle.c 	pr->power.states[ACPI_STATE_C0].valid = 1;
states            435 drivers/acpi/processor_idle.c 		memcpy(&(pr->power.states[current_count]), &cx, sizeof(cx));
states            551 drivers/acpi/processor_idle.c 		struct acpi_processor_cx *cx = &pr->power.states[i];
states            591 drivers/acpi/processor_idle.c 	memset(pr->power.states, 0, sizeof(pr->power.states));
states            609 drivers/acpi/processor_idle.c 		if (pr->power.states[i].valid) {
states            611 drivers/acpi/processor_idle.c 			if (pr->power.states[i].type >= ACPI_STATE_C2)
states            825 drivers/acpi/processor_idle.c 		cx = &pr->power.states[i];
states            861 drivers/acpi/processor_idle.c 		cx = &pr->power.states[i];
states            866 drivers/acpi/processor_idle.c 		state = &drv->states[count];
states           1272 drivers/acpi/processor_idle.c 		state = &drv->states[i];
states           1304 drivers/acpi/processor_idle.c 		drv->states[i].name[0] = '\0';
states           1305 drivers/acpi/processor_idle.c 		drv->states[i].desc[0] = '\0';
states             88 drivers/acpi/processor_perflib.c 			pr->performance->states[ppc].core_frequency * 1000);
states            148 drivers/acpi/processor_perflib.c 	*limit = pr->performance->states[pr->performance_platform_limit].
states            318 drivers/acpi/processor_perflib.c 	pr->performance->states =
states            322 drivers/acpi/processor_perflib.c 	if (!pr->performance->states) {
states            329 drivers/acpi/processor_perflib.c 		struct acpi_processor_px *px = &(pr->performance->states[i]);
states            341 drivers/acpi/processor_perflib.c 			kfree(pr->performance->states);
states            372 drivers/acpi/processor_perflib.c 				memcpy(&(pr->performance->states[last_invalid]),
states            383 drivers/acpi/processor_perflib.c 		kfree(pr->performance->states);
states            384 drivers/acpi/processor_perflib.c 		pr->performance->states = NULL;
states            776 drivers/acpi/processor_perflib.c 		kfree(pr->performance->states);
states            704 drivers/acpi/processor_throttling.c 			  state, pr->throttling.states[state].performance));
states            948 drivers/acpi/processor_throttling.c 		pr->throttling.states[i].performance = 1000 - step * i;
states            949 drivers/acpi/processor_throttling.c 		pr->throttling.states[i].power = 1000 - step * i;
states           1021 drivers/acpi/processor_throttling.c 			  (pr->throttling.states[state].performance ? pr->
states           1022 drivers/acpi/processor_throttling.c 			   throttling.states[state].performance / 10 : 0)));
states            460 drivers/acpi/scan.c 		struct acpi_device_power_state *ps = &device->power.states[i];
states            908 drivers/acpi/scan.c 	struct acpi_device_power_state *ps = &device->power.states[state];
states            970 drivers/acpi/scan.c 	INIT_LIST_HEAD(&device->power.states[ACPI_STATE_D3_COLD].resources);
states            973 drivers/acpi/scan.c 	device->power.states[ACPI_STATE_D0].flags.valid = 1;
states            974 drivers/acpi/scan.c 	device->power.states[ACPI_STATE_D0].power = 100;
states            975 drivers/acpi/scan.c 	device->power.states[ACPI_STATE_D3_HOT].flags.valid = 1;
states            982 drivers/acpi/scan.c 	if (!list_empty(&device->power.states[ACPI_STATE_D0].resources)) {
states            988 drivers/acpi/scan.c 		if (!list_empty(&device->power.states[ACPI_STATE_D3_HOT].resources))
states            989 drivers/acpi/scan.c 			device->power.states[ACPI_STATE_D3_COLD].flags.valid = 1;
states           1986 drivers/acpi/scan.c 			device->power.states[ACPI_STATE_D0].flags.valid;
states            228 drivers/base/power/domain.c 		genpd->states[state_idx].idle_time =
states            229 drivers/base/power/domain.c 			ktime_add(genpd->states[state_idx].idle_time, delta);
states            430 drivers/base/power/domain.c 	if (elapsed_ns <= genpd->states[state_idx].power_on_latency_ns)
states            433 drivers/base/power/domain.c 	genpd->states[state_idx].power_on_latency_ns = elapsed_ns;
states            460 drivers/base/power/domain.c 	if (elapsed_ns <= genpd->states[state_idx].power_off_latency_ns)
states            463 drivers/base/power/domain.c 	genpd->states[state_idx].power_off_latency_ns = elapsed_ns;
states           1736 drivers/base/power/domain.c static void genpd_free_default_power_state(struct genpd_power_state *states,
states           1739 drivers/base/power/domain.c 	kfree(states);
states           1750 drivers/base/power/domain.c 	genpd->states = state;
states           1879 drivers/base/power/domain.c 		genpd->free_states(genpd->states, genpd->state_count);
states           2609 drivers/base/power/domain.c 				     struct genpd_power_state *states)
states           2625 drivers/base/power/domain.c 		if (states) {
states           2626 drivers/base/power/domain.c 			ret = genpd_parse_state(&states[i], np);
states           2653 drivers/base/power/domain.c 			struct genpd_power_state **states, int *n)
states           2663 drivers/base/power/domain.c 		*states = NULL;
states           2678 drivers/base/power/domain.c 	*states = st;
states           2908 drivers/base/power/domain.c 			ktime_add(genpd->states[i].idle_time, delta));
states           2953 drivers/base/power/domain.c 		total = ktime_add(total, genpd->states[i].idle_time);
states            129 drivers/base/power/domain_governor.c 	off_on_time_ns = genpd->states[state].power_off_latency_ns +
states            130 drivers/base/power/domain_governor.c 		genpd->states[state].power_on_latency_ns;
states            199 drivers/base/power/domain_governor.c 		genpd->states[state].power_on_latency_ns;
states            294 drivers/base/power/domain_governor.c 		if (idle_duration_ns >= (genpd->states[i].residency_ns +
states            295 drivers/base/power/domain_governor.c 		    genpd->states[i].power_off_latency_ns)) {
states           1408 drivers/block/pktcdvd.c static void pkt_count_states(struct pktcdvd_device *pd, int *states)
states           1414 drivers/block/pktcdvd.c 		states[i] = 0;
states           1418 drivers/block/pktcdvd.c 		states[pkt->state]++;
states           1462 drivers/block/pktcdvd.c 				int states[PACKET_NUM_STATES];
states           1463 drivers/block/pktcdvd.c 				pkt_count_states(pd, states);
states           1465 drivers/block/pktcdvd.c 					states[0], states[1], states[2],
states           1466 drivers/block/pktcdvd.c 					states[3], states[4], states[5]);
states           2507 drivers/block/pktcdvd.c 	int states[PACKET_NUM_STATES];
states           2554 drivers/block/pktcdvd.c 	pkt_count_states(pd, states);
states           2556 drivers/block/pktcdvd.c 		   states[0], states[1], states[2], states[3], states[4], states[5]);
states            200 drivers/cpufreq/acpi-cpufreq.c 		if (value == perf->states[i].status)
states            222 drivers/cpufreq/acpi-cpufreq.c 		if (msr == perf->states[pos->driver_data].status)
states            439 drivers/cpufreq/acpi-cpufreq.c 	drv_write(data, mask, perf->states[next_perf_state].control);
states            484 drivers/cpufreq/acpi-cpufreq.c 			     perf->states[next_perf_state].control);
states            499 drivers/cpufreq/acpi-cpufreq.c 		unsigned long freqn = perf->states[0].core_frequency * 1000;
states            503 drivers/cpufreq/acpi-cpufreq.c 			freqn = perf->states[i+1].core_frequency * 1000;
states            514 drivers/cpufreq/acpi-cpufreq.c 		return perf->states[0].core_frequency * 1000;
states            759 drivers/cpufreq/acpi-cpufreq.c 		if ((perf->states[i].transition_latency * 1000) >
states            762 drivers/cpufreq/acpi-cpufreq.c 			    perf->states[i].transition_latency * 1000;
states            774 drivers/cpufreq/acpi-cpufreq.c 		if (i > 0 && perf->states[i].core_frequency >=
states            780 drivers/cpufreq/acpi-cpufreq.c 		    perf->states[i].core_frequency * 1000;
states            811 drivers/cpufreq/acpi-cpufreq.c 			(u32) perf->states[i].core_frequency,
states            812 drivers/cpufreq/acpi-cpufreq.c 			(u32) perf->states[i].power,
states            813 drivers/cpufreq/acpi-cpufreq.c 			(u32) perf->states[i].transition_latency);
states            858 drivers/cpufreq/acpi-cpufreq.c 	if (perf->states[0].core_frequency * 1000 != policy->cpuinfo.max_freq)
states            186 drivers/cpufreq/e_powersaver.c 	int states;
states            320 drivers/cpufreq/e_powersaver.c 		states = max_multiplier - min_multiplier + 1;
states            322 drivers/cpufreq/e_powersaver.c 		states = 2;
states            325 drivers/cpufreq/e_powersaver.c 	centaur = kzalloc(struct_size(centaur, freq_table, states + 1),
states             97 drivers/cpufreq/ia64-acpi-cpufreq.c 		if (value == data->acpi_data.states[i].status)
states             98 drivers/cpufreq/ia64-acpi-cpufreq.c 			return data->acpi_data.states[i].core_frequency;
states            100 drivers/cpufreq/ia64-acpi-cpufreq.c 	return data->acpi_data.states[i-1].core_frequency;
states            159 drivers/cpufreq/ia64-acpi-cpufreq.c 	value = (u32) data->acpi_data.states[state].control;
states            254 drivers/cpufreq/ia64-acpi-cpufreq.c 		if ((data->acpi_data.states[i].transition_latency * 1000) >
states            257 drivers/cpufreq/ia64-acpi-cpufreq.c 			    data->acpi_data.states[i].transition_latency * 1000;
states            266 drivers/cpufreq/ia64-acpi-cpufreq.c 			      data->acpi_data.states[i].core_frequency * 1000;
states            282 drivers/cpufreq/ia64-acpi-cpufreq.c 			(u32) data->acpi_data.states[i].core_frequency,
states            283 drivers/cpufreq/ia64-acpi-cpufreq.c 			(u32) data->acpi_data.states[i].power,
states            284 drivers/cpufreq/ia64-acpi-cpufreq.c 			(u32) data->acpi_data.states[i].transition_latency,
states            285 drivers/cpufreq/ia64-acpi-cpufreq.c 			(u32) data->acpi_data.states[i].bus_master_latency,
states            286 drivers/cpufreq/ia64-acpi-cpufreq.c 			(u32) data->acpi_data.states[i].status,
states            287 drivers/cpufreq/ia64-acpi-cpufreq.c 			(u32) data->acpi_data.states[i].control);
states            440 drivers/cpufreq/intel_pstate.c 			 (u32) cpu->acpi_perf_data.states[i].core_frequency,
states            441 drivers/cpufreq/intel_pstate.c 			 (u32) cpu->acpi_perf_data.states[i].power,
states            442 drivers/cpufreq/intel_pstate.c 			 (u32) cpu->acpi_perf_data.states[i].control);
states            457 drivers/cpufreq/intel_pstate.c 		cpu->acpi_perf_data.states[0].core_frequency =
states            866 drivers/cpufreq/longhaul.c 		cx = &pr->power.states[ACPI_STATE_C3];
states            350 drivers/cpufreq/powernow-k7.c 	pc.val = (unsigned long) acpi_processor_perf->states[0].control;
states            354 drivers/cpufreq/powernow-k7.c 			&acpi_processor_perf->states[i];
states            717 drivers/cpufreq/powernow-k8.c 	control = data->acpi_data.states[index].control;
states            810 drivers/cpufreq/powernow-k8.c 			status =  data->acpi_data.states[i].status;
states            814 drivers/cpufreq/powernow-k8.c 			control =  data->acpi_data.states[i].control;
states            842 drivers/cpufreq/powernow-k8.c 		if (freq != (data->acpi_data.states[i].core_frequency * 1000)) {
states            845 drivers/cpufreq/powernow-k8.c 				(data->acpi_data.states[i].core_frequency
states            866 drivers/cpufreq/powernow-k8.c 		int cur_latency = data->acpi_data.states[i].transition_latency
states            867 drivers/cpufreq/powernow-k8.c 			+ data->acpi_data.states[i].bus_master_latency;
states            176 drivers/cpuidle/coupled.c 	return drv->states[state].flags & CPUIDLE_FLAG_COUPLED;
states             54 drivers/cpuidle/cpuidle-arm.c 	.states[0] = {
states             40 drivers/cpuidle/cpuidle-at91.c 	.states[0]		= ARM_CPUIDLE_WFI_STATE,
states             41 drivers/cpuidle/cpuidle-at91.c 	.states[1]		= {
states             62 drivers/cpuidle/cpuidle-big_little.c 	.states[0] = ARM_CPUIDLE_WFI_STATE,
states             63 drivers/cpuidle/cpuidle-big_little.c 	.states[1] = {
states             83 drivers/cpuidle/cpuidle-big_little.c 	.states[0] = ARM_CPUIDLE_WFI_STATE,
states             84 drivers/cpuidle/cpuidle-big_little.c 	.states[1] = {
states             47 drivers/cpuidle/cpuidle-calxeda.c 	.states = {
states             29 drivers/cpuidle/cpuidle-clps711x.c 	.states[0]	= {
states             72 drivers/cpuidle/cpuidle-cps.c 	.states = {
states            150 drivers/cpuidle/cpuidle-cps.c 			cps_driver.states[i].flags |= CPUIDLE_FLAG_COUPLED;
states             79 drivers/cpuidle/cpuidle-exynos.c 	.states = {
states             96 drivers/cpuidle/cpuidle-exynos.c 	.states = {
states             38 drivers/cpuidle/cpuidle-haltpoll.c 	.states = {
states             44 drivers/cpuidle/cpuidle-kirkwood.c 	.states[0]		= ARM_CPUIDLE_WFI_STATE,
states             45 drivers/cpuidle/cpuidle-kirkwood.c 	.states[1]		= {
states             36 drivers/cpuidle/cpuidle-mvebu-v7.c 	if (drv->states[index].flags & MVEBU_V7_FLAG_DEEP_IDLE)
states             50 drivers/cpuidle/cpuidle-mvebu-v7.c 	.states[0]		= ARM_CPUIDLE_WFI_STATE,
states             51 drivers/cpuidle/cpuidle-mvebu-v7.c 	.states[1]		= {
states             59 drivers/cpuidle/cpuidle-mvebu-v7.c 	.states[2]		= {
states             73 drivers/cpuidle/cpuidle-mvebu-v7.c 	.states[0]		= ARM_CPUIDLE_WFI_STATE,
states             74 drivers/cpuidle/cpuidle-mvebu-v7.c 	.states[1]		= {
states             88 drivers/cpuidle/cpuidle-mvebu-v7.c 	.states[0]		= ARM_CPUIDLE_WFI_STATE,
states             89 drivers/cpuidle/cpuidle-mvebu-v7.c 	.states[1]		= {
states             59 drivers/cpuidle/cpuidle-powernv.c 		struct cpuidle_state *s = &drv->states[i];
states            203 drivers/cpuidle/cpuidle-powernv.c 		drv->states[drv->state_count] =	/* structure copy */
states             43 drivers/cpuidle/cpuidle-psci.c 	.states[0] = {
states            230 drivers/cpuidle/cpuidle-pseries.c 		drv->states[drv->state_count] =	/* structure copy */
states             94 drivers/cpuidle/cpuidle-ux500.c 	.states = {
states             37 drivers/cpuidle/cpuidle-zynq.c 	.states = {
states             70 drivers/cpuidle/cpuidle.c 		if (drv->states[i].enter_dead)
states             71 drivers/cpuidle/cpuidle.c 			return drv->states[i].enter_dead(dev, i);
states             86 drivers/cpuidle/cpuidle.c 		struct cpuidle_state *s = &drv->states[i];
states            150 drivers/cpuidle/cpuidle.c 	drv->states[index].enter_s2idle(dev, drv, index);
states            202 drivers/cpuidle/cpuidle.c 	struct cpuidle_state *target_state = &drv->states[index];
states            218 drivers/cpuidle/cpuidle.c 		target_state = &drv->states[index];
states            250 drivers/cpuidle/cpuidle.c 		s64 diff, delay = drv->states[entered_state].exit_latency;
states            266 drivers/cpuidle/cpuidle.c 		if (diff < drv->states[entered_state].target_residency) {
states            268 drivers/cpuidle/cpuidle.c 				if (drv->states[i].disabled ||
states            278 drivers/cpuidle/cpuidle.c 				if (drv->states[i].disabled ||
states            286 drivers/cpuidle/cpuidle.c 				if (diff - delay >= drv->states[i].target_residency)
states            383 drivers/cpuidle/cpuidle.c 		if (drv->states[i].disabled || dev->states_usage[i].disable)
states            386 drivers/cpuidle/cpuidle.c 		limit_ns = (u64)drv->states[i].target_residency * NSEC_PER_USEC;
states            174 drivers/cpuidle/driver.c 		if (drv->states[i].flags & CPUIDLE_FLAG_TIMER_STOP) {
states            200 drivers/cpuidle/dt_idle_states.c 		idle_state = &drv->states[state_idx++];
states             40 drivers/cpuidle/governors/ladder.c 	struct ladder_device_state states[CPUIDLE_STATE_MAX];
states             55 drivers/cpuidle/governors/ladder.c 	ldev->states[old_idx].stats.promotion_count = 0;
states             56 drivers/cpuidle/governors/ladder.c 	ldev->states[old_idx].stats.demotion_count = 0;
states             72 drivers/cpuidle/governors/ladder.c 	int first_idx = drv->states[0].flags & CPUIDLE_FLAG_POLLING ? 1 : 0;
states             81 drivers/cpuidle/governors/ladder.c 	last_state = &ldev->states[last_idx];
states             83 drivers/cpuidle/governors/ladder.c 	last_residency = dev->last_residency - drv->states[last_idx].exit_latency;
states             87 drivers/cpuidle/governors/ladder.c 	    !drv->states[last_idx + 1].disabled &&
states             90 drivers/cpuidle/governors/ladder.c 	    drv->states[last_idx + 1].exit_latency <= latency_req) {
states            101 drivers/cpuidle/governors/ladder.c 	    (drv->states[last_idx].disabled ||
states            103 drivers/cpuidle/governors/ladder.c 	    drv->states[last_idx].exit_latency > latency_req)) {
states            107 drivers/cpuidle/governors/ladder.c 			if (drv->states[i].exit_latency <= latency_req)
states            137 drivers/cpuidle/governors/ladder.c 	int first_idx = drv->states[0].flags & CPUIDLE_FLAG_POLLING ? 1 : 0;
states            145 drivers/cpuidle/governors/ladder.c 		state = &drv->states[i];
states            146 drivers/cpuidle/governors/ladder.c 		lstate = &ldev->states[i];
states            299 drivers/cpuidle/governors/menu.c 	    ((data->next_timer_us < drv->states[1].target_residency ||
states            300 drivers/cpuidle/governors/menu.c 	      latency_req < drv->states[1].exit_latency) &&
states            301 drivers/cpuidle/governors/menu.c 	     !drv->states[0].disabled && !dev->states_usage[0].disable)) {
states            307 drivers/cpuidle/governors/menu.c 		*stop_tick = !(drv->states[0].flags & CPUIDLE_FLAG_POLLING);
states            351 drivers/cpuidle/governors/menu.c 		struct cpuidle_state *s = &drv->states[i];
states            365 drivers/cpuidle/governors/menu.c 			if ((drv->states[idx].flags & CPUIDLE_FLAG_POLLING) &&
states            382 drivers/cpuidle/governors/menu.c 				predicted_us = drv->states[idx].target_residency;
states            392 drivers/cpuidle/governors/menu.c 			if (drv->states[idx].target_residency < TICK_USEC &&
states            411 drivers/cpuidle/governors/menu.c 	if (((drv->states[idx].flags & CPUIDLE_FLAG_POLLING) ||
states            417 drivers/cpuidle/governors/menu.c 		if (idx > 0 && drv->states[idx].target_residency > delta_next_us) {
states            425 drivers/cpuidle/governors/menu.c 				if (drv->states[i].disabled ||
states            430 drivers/cpuidle/governors/menu.c 				if (drv->states[i].target_residency <= delta_next_us)
states            465 drivers/cpuidle/governors/menu.c 	struct cpuidle_state *target = &drv->states[last_idx];
states            495 drivers/cpuidle/governors/menu.c 	} else if ((drv->states[last_idx].flags & CPUIDLE_FLAG_POLLING) &&
states            105 drivers/cpuidle/governors/teo.c 	struct teo_idle_state states[CPUIDLE_STATE_MAX];
states            134 drivers/cpuidle/governors/teo.c 		lat = drv->states[dev->last_state_idx].exit_latency;
states            154 drivers/cpuidle/governors/teo.c 		unsigned int early_hits = cpu_data->states[i].early_hits;
states            156 drivers/cpuidle/governors/teo.c 		cpu_data->states[i].early_hits -= early_hits >> DECAY_SHIFT;
states            158 drivers/cpuidle/governors/teo.c 		if (drv->states[i].target_residency <= sleep_length_us) {
states            160 drivers/cpuidle/governors/teo.c 			if (drv->states[i].target_residency <= measured_us)
states            174 drivers/cpuidle/governors/teo.c 		unsigned int hits = cpu_data->states[idx_timer].hits;
states            175 drivers/cpuidle/governors/teo.c 		unsigned int misses = cpu_data->states[idx_timer].misses;
states            183 drivers/cpuidle/governors/teo.c 				cpu_data->states[idx_hit].early_hits += PULSE;
states            188 drivers/cpuidle/governors/teo.c 		cpu_data->states[idx_timer].misses = misses;
states            189 drivers/cpuidle/governors/teo.c 		cpu_data->states[idx_timer].hits = hits;
states            215 drivers/cpuidle/governors/teo.c 		if (drv->states[i].disabled || dev->states_usage[i].disable)
states            219 drivers/cpuidle/governors/teo.c 		if (drv->states[i].target_residency <= duration_us)
states            259 drivers/cpuidle/governors/teo.c 		struct cpuidle_state *s = &drv->states[i];
states            278 drivers/cpuidle/governors/teo.c 			hits = cpu_data->states[i].hits;
states            279 drivers/cpuidle/governors/teo.c 			misses = cpu_data->states[i].misses;
states            281 drivers/cpuidle/governors/teo.c 			if (early_hits >= cpu_data->states[i].early_hits ||
states            293 drivers/cpuidle/governors/teo.c 				early_hits = cpu_data->states[i].early_hits;
states            306 drivers/cpuidle/governors/teo.c 			      drv->states[idx].target_residency < TICK_USEC)) {
states            308 drivers/cpuidle/governors/teo.c 				early_hits = cpu_data->states[i].early_hits;
states            317 drivers/cpuidle/governors/teo.c 			hits = cpu_data->states[i].hits;
states            318 drivers/cpuidle/governors/teo.c 			misses = cpu_data->states[i].misses;
states            328 drivers/cpuidle/governors/teo.c 		hits = cpu_data->states[i].hits;
states            329 drivers/cpuidle/governors/teo.c 		misses = cpu_data->states[i].misses;
states            331 drivers/cpuidle/governors/teo.c 		if (early_hits < cpu_data->states[i].early_hits &&
states            333 drivers/cpuidle/governors/teo.c 		      drv->states[i].target_residency < TICK_USEC)) {
states            335 drivers/cpuidle/governors/teo.c 			early_hits = cpu_data->states[i].early_hits;
states            359 drivers/cpuidle/governors/teo.c 			duration_us = drv->states[idx].target_residency;
states            403 drivers/cpuidle/governors/teo.c 				if (drv->states[idx].target_residency > avg_us)
states            414 drivers/cpuidle/governors/teo.c 	if (((drv->states[idx].flags & CPUIDLE_FLAG_POLLING) ||
states            426 drivers/cpuidle/governors/teo.c 		if (idx > 0 && drv->states[idx].target_residency > delta_tick_us)
states             46 drivers/cpuidle/poll_state.c 	struct cpuidle_state *state = &drv->states[0];
states            475 drivers/cpuidle/sysfs.c 		kobj->state = &drv->states[i];
states            361 drivers/crypto/chelsio/chtls/chtls_cm.c static int wait_for_states(struct sock *sk, unsigned int states)
states            382 drivers/crypto/chelsio/chtls/chtls_cm.c 	while (!sk_in_state(sk, states)) {
states            393 drivers/crypto/chelsio/chtls/chtls_cm.c 		if (!sk_in_state(sk, states))
states            113 drivers/crypto/chelsio/chtls/chtls_cm.h 				       unsigned int states)
states            115 drivers/crypto/chelsio/chtls/chtls_cm.h 	return states & (1 << sk->sk_state);
states            234 drivers/firmware/psci/psci_checker.c 	struct cpuidle_state *state = &drv->states[index];
states            304 drivers/firmware/psci/psci_checker.c 			struct cpuidle_state *state = &drv->states[index];
states            489 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c 			ATOM_PPLIB_VCE_State_Table *states =
states            509 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c 			state_entry = &states->entries[0];
states            524 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c 					states->numEntries > AMD_MAX_VCE_LEVELS ?
states            525 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c 					AMD_MAX_VCE_LEVELS : states->numEntries;
states            425 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 				(data.states[i] == POWER_STATE_TYPE_INTERNAL_BOOT) ? "boot" :
states            426 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 				(data.states[i] == POWER_STATE_TYPE_BATTERY) ? "battery" :
states            427 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 				(data.states[i] == POWER_STATE_TYPE_BALANCED) ? "balanced" :
states            428 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 				(data.states[i] == POWER_STATE_TYPE_PERFORMANCE) ? "performance" : "default");
states            456 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 		if (pm == data.states[i])
states            499 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 		if (ret || idx >= ARRAY_SIZE(data.states)) {
states            503 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 		idx = array_index_nospec(idx, ARRAY_SIZE(data.states));
states            506 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 		state = data.states[idx];
states           2740 drivers/gpu/drm/amd/amdgpu/kv_dpm.c 	power_state_offset = (u8 *)state_array->states;
states           7252 drivers/gpu/drm/amd/amdgpu/si_dpm.c 	power_state_offset = (u8 *)state_array->states;
states            165 drivers/gpu/drm/amd/include/kgd_pp_interface.h 	uint32_t states[16];
states            483 drivers/gpu/drm/amd/include/pptable.h     ATOM_PPLIB_STATE_V2 states[1];
states            626 drivers/gpu/drm/amd/powerplay/amd_powerplay.c 			data->states[i] = POWER_STATE_TYPE_BATTERY;
states            629 drivers/gpu/drm/amd/powerplay/amd_powerplay.c 			data->states[i] = POWER_STATE_TYPE_BALANCED;
states            632 drivers/gpu/drm/amd/powerplay/amd_powerplay.c 			data->states[i] = POWER_STATE_TYPE_PERFORMANCE;
states            636 drivers/gpu/drm/amd/powerplay/amd_powerplay.c 				data->states[i] = POWER_STATE_TYPE_INTERNAL_BOOT;
states            638 drivers/gpu/drm/amd/powerplay/amd_powerplay.c 				data->states[i] = POWER_STATE_TYPE_DEFAULT;
states            382 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c 	state_info->states[0] = POWER_STATE_TYPE_DEFAULT;
states             63 drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c 	struct phm_set_power_state_input states;
states             67 drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c 	states.pcurrent_state = pcurrent_state;
states             68 drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c 	states.pnew_state = pnew_power_state;
states             71 drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c 		return hwmgr->hwmgr_func->power_state_set(hwmgr, &states);
states            783 drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c 	pstate = pstate_arrays->states;
states           3594 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c 	const struct phm_set_power_state_input *states =
states           3597 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c 			cast_const_phw_smu7_power_state(states->pnew_state);
states           3674 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c 	const struct phm_set_power_state_input *states =
states           3678 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c 			cast_const_phw_smu7_power_state(states->pnew_state);
states           3680 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c 			cast_const_phw_smu7_power_state(states->pcurrent_state);
states           3852 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c 	const struct phm_set_power_state_input *states =
states           3856 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c 			cast_const_phw_smu7_power_state(states->pnew_state);
states           3913 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c 	const struct phm_set_power_state_input *states =
states           3917 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c 			cast_const_phw_smu7_power_state(states->pnew_state);
states            851 drivers/gpu/drm/amd/powerplay/hwmgr/smu8_hwmgr.c 	const struct phm_set_power_state_input *states = (struct phm_set_power_state_input *)input;
states            852 drivers/gpu/drm/amd/powerplay/hwmgr/smu8_hwmgr.c 	const struct smu8_power_state *pnew_state = cast_const_smu8_power_state(states->pnew_state);
states           3286 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c 	const struct phm_set_power_state_input *states =
states           3289 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c 			cast_const_phw_vega10_power_state(states->pnew_state);
states           3583 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c 	const struct phm_set_power_state_input *states =
states           3586 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c 			cast_const_phw_vega10_power_state(states->pnew_state);
states            132 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_pptable.h 	ATOM_Vega10_State states[1];                             /* Dynamically allocate entries. */
states           1360 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_processpptables.c 		state_entry = &(state_arrays->states[entry_index]);
states            387 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_processpptables.c 		state_entry = &(state_arrays->states[entry_index]);
states            428 drivers/gpu/drm/drm_blend.c 	struct drm_plane_state **states;
states            436 drivers/gpu/drm/drm_blend.c 	states = kmalloc_array(total_planes, sizeof(*states), GFP_KERNEL);
states            437 drivers/gpu/drm/drm_blend.c 	if (!states)
states            451 drivers/gpu/drm/drm_blend.c 		states[n++] = plane_state;
states            457 drivers/gpu/drm/drm_blend.c 	sort(states, n, sizeof(*states), drm_atomic_state_zpos_cmp, NULL);
states            460 drivers/gpu/drm/drm_blend.c 		plane = states[i]->plane;
states            462 drivers/gpu/drm/drm_blend.c 		states[i]->normalized_zpos = i;
states            469 drivers/gpu/drm/drm_blend.c 	kfree(states);
states           3105 drivers/gpu/drm/i915/i915_irq.c 		const struct cpuidle_state *state = &drv->states[i];
states             90 drivers/gpu/drm/nouveau/include/nvkm/subdev/clk.h 	struct list_head states;
states            106 drivers/gpu/drm/nouveau/nvkm/engine/device/ctrl.c 		list_for_each_entry(pstate, &clk->states, head) {
states            273 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c 	list_for_each_entry(pstate, &clk->states, head) {
states            463 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c 	list_add_tail(&pstate->head, &clk->states);
states            481 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c 		list_for_each_entry(pstate, &clk->states, head) {
states            636 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c 	list_for_each_entry_safe(pstate, temp, &clk->states, head) {
states            671 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c 	INIT_LIST_HEAD(&clk->states);
states            689 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c 			list_add_tail(&func->pstates[idx].head, &clk->states);
states           5580 drivers/gpu/drm/radeon/ci_dpm.c 	power_state_offset = (u8 *)state_array->states;
states           2670 drivers/gpu/drm/radeon/kv_dpm.c 	power_state_offset = (u8 *)state_array->states;
states            442 drivers/gpu/drm/radeon/pptable.h     ATOM_PPLIB_STATE_V2 states[1];
states           1082 drivers/gpu/drm/radeon/r600_dpm.c 			ATOM_PPLIB_VCE_State_Table *states =
states           1102 drivers/gpu/drm/radeon/r600_dpm.c 			state_entry = &states->entries[0];
states           1116 drivers/gpu/drm/radeon/r600_dpm.c 			for (i = 0; i < states->numEntries; i++) {
states           2704 drivers/gpu/drm/radeon/radeon_atombios.c 	power_state_offset = (u8 *)state_array->states;
states           6845 drivers/gpu/drm/radeon/si_dpm.c 	power_state_offset = (u8 *)state_array->states;
states           1489 drivers/gpu/drm/radeon/sumo_dpm.c 	power_state_offset = (u8 *)state_array->states;
states           1767 drivers/gpu/drm/radeon/trinity_dpm.c 	power_state_offset = (u8 *)state_array->states;
states            247 drivers/hid/intel-ish-hid/ishtp/hbm.h 	uint32_t states;
states             19 drivers/i2c/muxes/i2c-mux-pinctrl.c 	struct pinctrl_state *states[];
states             26 drivers/i2c/muxes/i2c-mux-pinctrl.c 	return pinctrl_select_state(mux->pinctrl, mux->states[chan]);
states             96 drivers/i2c/muxes/i2c-mux-pinctrl.c 			     struct_size(mux, states, num_names),
states            121 drivers/i2c/muxes/i2c-mux-pinctrl.c 		mux->states[i] = pinctrl_lookup_state(mux->pinctrl, name);
states            122 drivers/i2c/muxes/i2c-mux-pinctrl.c 		if (IS_ERR(mux->states[i])) {
states            123 drivers/i2c/muxes/i2c-mux-pinctrl.c 			ret = PTR_ERR(mux->states[i]);
states            144 drivers/i2c/muxes/i2c-mux-pinctrl.c 		if (root != i2c_mux_pinctrl_root_adapter(mux->states[i])) {
states            901 drivers/idle/intel_idle.c 	struct cpuidle_state *state = &drv->states[index];
states            942 drivers/idle/intel_idle.c 	unsigned long eax = flg2MWAIT(drv->states[index].flags);
states           1370 drivers/idle/intel_idle.c 		drv->states[drv->state_count] =	/* structure copy */
states             51 drivers/infiniband/hw/cxgb3/iwch_cm.c static char *states[] = {
states            258 drivers/infiniband/hw/cxgb3/iwch_cm.c 	pr_debug("%s - %s -> %s\n", __func__, states[epc->state], states[new]);
states            284 drivers/infiniband/hw/cxgb3/iwch_cm.c 		 __func__, ep, states[state_read(&ep->com)]);
states           2067 drivers/infiniband/hw/cxgb3/iwch_cm.c 		 states[ep->com.state], abrupt);
states             56 drivers/infiniband/hw/cxgb4/cm.c static char *states[] = {
states            284 drivers/infiniband/hw/cxgb4/cm.c 	pr_debug("%s -> %s\n", states[epc->state], states[new]);
states            391 drivers/infiniband/hw/cxgb4/cm.c 	pr_debug("ep %p state %s\n", ep, states[ep->com.state]);
states           3647 drivers/infiniband/hw/cxgb4/cm.c 		 states[ep->com.state], abrupt);
states             49 drivers/input/ff-memless.c 	struct ml_effect_state states[FF_MEMLESS_EFFECTS];
states            125 drivers/input/ff-memless.c 		state = &ml->states[i];
states            341 drivers/input/ff-memless.c 		state = &ml->states[i];
states            427 drivers/input/ff-memless.c 		__clear_bit(FF_EFFECT_PLAYING, &ml->states[i].flags);
states            438 drivers/input/ff-memless.c 	struct ml_effect_state *state = &ml->states[effect_id];
states            469 drivers/input/ff-memless.c 	struct ml_effect_state *state = &ml->states[effect->id];
states            552 drivers/input/ff-memless.c 		ml->states[i].effect = &ff->effects[i];
states             58 drivers/iommu/amd_iommu_v2.c 	struct pasid_state **states;
states            161 drivers/iommu/amd_iommu_v2.c 	root  = dev_state->states;
states            347 drivers/iommu/amd_iommu_v2.c 		free_pasid_states_level2(dev_state->states);
states            349 drivers/iommu/amd_iommu_v2.c 		free_pasid_states_level1(dev_state->states);
states            353 drivers/iommu/amd_iommu_v2.c 	free_page((unsigned long)dev_state->states);
states            769 drivers/iommu/amd_iommu_v2.c 	dev_state->states = (void *)get_zeroed_page(GFP_KERNEL);
states            770 drivers/iommu/amd_iommu_v2.c 	if (dev_state->states == NULL)
states            816 drivers/iommu/amd_iommu_v2.c 	free_page((unsigned long)dev_state->states);
states             85 drivers/isdn/hardware/mISDN/hfcpci.c 	unsigned char		states;
states            174 drivers/isdn/hardware/mISDN/hfcpci.c 		hc->hw.states = 1;		/* G1 */
states            178 drivers/isdn/hardware/mISDN/hfcpci.c 		hc->hw.states = 2;		/* F2 */
states            181 drivers/isdn/hardware/mISDN/hfcpci.c 	Write_hfc(hc, HFCPCI_STATES, HFCPCI_LOAD_STATE | hc->hw.states);
states            183 drivers/isdn/hardware/mISDN/hfcpci.c 	Write_hfc(hc, HFCPCI_STATES, hc->hw.states | 0x40); /* Deactivate */
states            167 drivers/md/bcache/sysfs.c 	char const *states[] = { "no cache", "clean", "dirty", "inconsistent" };
states            253 drivers/md/bcache/sysfs.c 	sysfs_print(state,		states[BDEV_STATE(&dc->sb)]);
states             70 drivers/media/cec/cec-pin.c static const struct cec_state states[CEC_PIN_STATES] = {
states           1015 drivers/media/cec/cec-pin.c 		usecs = states[pin->state].usecs;
states           1203 drivers/media/cec/cec-pin.c 	seq_printf(file, "state: %s\n", states[pin->state].name);
states            345 drivers/media/i2c/ad9389b.c 	static const char * const states[] = {
states            385 drivers/media/i2c/ad9389b.c 		  states[ad9389b_rd(sd, 0xc8) & 0xf],
states            585 drivers/media/i2c/adv7511-v4l2.c 	static const char * const states[] = {
states            619 drivers/media/i2c/adv7511-v4l2.c 			  states[adv7511_rd(sd, 0xc8) & 0xf],
states            364 drivers/mtd/nand/raw/nandsim.c 	uint32_t states[NS_OPER_STATES]; /* operation's states */
states           1220 drivers/mtd/nand/raw/nandsim.c 			if (!(ops[i].states[ns->npstates] & STATE_ADDR_MASK))
states           1223 drivers/mtd/nand/raw/nandsim.c 			if (NS_STATE(ns->state) != NS_STATE(ops[i].states[ns->npstates]))
states           1228 drivers/mtd/nand/raw/nandsim.c 			if (NS_STATE(ops[i].states[j]) != NS_STATE(ns->pstates[j])
states           1242 drivers/mtd/nand/raw/nandsim.c 		ns->op = &ops[idx].states[0];
states            101 drivers/mux/adg792a.c 		mux->states = 4;
states             83 drivers/mux/adgs1408.c 		mux->states = 8;
states             85 drivers/mux/adgs1408.c 		mux->states = 4;
states             92 drivers/mux/adgs1408.c 		if (idle_state < mux->states) {
states            289 drivers/mux/core.c 	return mux->states;
states            300 drivers/mux/core.c 	if (WARN_ON(state < 0 || state >= mux->states))
states             74 drivers/mux/gpio.c 	mux_chip->mux->states = 1 << pins;
states             78 drivers/mux/gpio.c 		if (idle_state < 0 || idle_state >= mux_chip->mux->states) {
states             91 drivers/mux/gpio.c 		 mux_chip->mux->states);
states            111 drivers/mux/mmio.c 		mux->states = 1 << bits;
states            116 drivers/mux/mmio.c 			if (idle_state < 0 || idle_state >= mux->states) {
states            920 drivers/net/ethernet/mellanox/mlx4/qp.c 	enum mlx4_qp_state states[] = {
states            927 drivers/net/ethernet/mellanox/mlx4/qp.c 	for (i = 0; i < ARRAY_SIZE(states) - 1; i++) {
states            929 drivers/net/ethernet/mellanox/mlx4/qp.c 		context->flags |= cpu_to_be32(states[i + 1] << 28);
states            930 drivers/net/ethernet/mellanox/mlx4/qp.c 		if (states[i + 1] != MLX4_QP_STATE_RTR)
states            932 drivers/net/ethernet/mellanox/mlx4/qp.c 		err = mlx4_qp_modify(dev, mtt, states[i], states[i + 1],
states            936 drivers/net/ethernet/mellanox/mlx4/qp.c 				 states[i + 1], err);
states            940 drivers/net/ethernet/mellanox/mlx4/qp.c 		*qp_state = states[i + 1];
states            917 drivers/pinctrl/core.c 	list_for_each_entry(state, &p->states, node)
states            936 drivers/pinctrl/core.c 	list_add_tail(&state->node, &p->states);
states           1042 drivers/pinctrl/core.c 	INIT_LIST_HEAD(&p->states);
states           1159 drivers/pinctrl/core.c 	list_for_each_entry_safe(state, n1, &p->states, node) {
states           1813 drivers/pinctrl/core.c 		list_for_each_entry(state, &p->states, node) {
states             80 drivers/pinctrl/core.h 	struct list_head states;
states            124 drivers/power/supply/abx500_chargalg.c static const char *states[] = {
states            337 drivers/power/supply/abx500_chargalg.c 		states[di->charge_state],
states            339 drivers/power/supply/abx500_chargalg.c 		states[state]);
states           1401 drivers/power/supply/abx500_chargalg.c 		states[di->charge_state],
states            103 drivers/pwm/pwm-renesas-tpu.c 	static const char * const states[] = { "inactive", "PWM", "active" };
states            106 drivers/pwm/pwm-renesas-tpu.c 		pwm->channel, states[state]);
states             39 drivers/regulator/gpio-regulator.c 	struct gpio_regulator_state *states;
states             51 drivers/regulator/gpio-regulator.c 		if (data->states[ptr].gpios == data->state)
states             52 drivers/regulator/gpio-regulator.c 			return data->states[ptr].value;
states             65 drivers/regulator/gpio-regulator.c 		if (data->states[ptr].value < best_val &&
states             66 drivers/regulator/gpio-regulator.c 		    data->states[ptr].value >= min_uV &&
states             67 drivers/regulator/gpio-regulator.c 		    data->states[ptr].value <= max_uV) {
states             68 drivers/regulator/gpio-regulator.c 			target = data->states[ptr].gpios;
states             69 drivers/regulator/gpio-regulator.c 			best_val = data->states[ptr].value;
states             94 drivers/regulator/gpio-regulator.c 	return data->states[selector].value;
states            104 drivers/regulator/gpio-regulator.c 		if (data->states[ptr].value > best_val &&
states            105 drivers/regulator/gpio-regulator.c 		    data->states[ptr].value >= min_uA &&
states            106 drivers/regulator/gpio-regulator.c 		    data->states[ptr].value <= max_uA) {
states            107 drivers/regulator/gpio-regulator.c 			target = data->states[ptr].gpios;
states            108 drivers/regulator/gpio-regulator.c 			best_val = data->states[ptr].value;
states            189 drivers/regulator/gpio-regulator.c 	config->states = devm_kcalloc(dev,
states            193 drivers/regulator/gpio-regulator.c 	if (!config->states)
states            198 drivers/regulator/gpio-regulator.c 					   &config->states[i].value);
states            200 drivers/regulator/gpio-regulator.c 					   &config->states[i].gpios);
states            269 drivers/regulator/gpio-regulator.c 	drvdata->states = devm_kmemdup(dev,
states            270 drivers/regulator/gpio-regulator.c 				       config->states,
states            274 drivers/regulator/gpio-regulator.c 	if (drvdata->states == NULL) {
states            601 drivers/scsi/aha152x.c } states[] = {
states           2313 drivers/scsi/aha152x.c 		if(PREVSTATE!=STATE && states[PREVSTATE].end)
states           2314 drivers/scsi/aha152x.c 			states[PREVSTATE].end(shpnt);
states           2321 drivers/scsi/aha152x.c 		if(states[PREVSTATE].spio && !states[STATE].spio) {
states           2343 drivers/scsi/aha152x.c 		if(!states[PREVSTATE].spio && states[STATE].spio) {
states           2354 drivers/scsi/aha152x.c 		if(PREVSTATE!=STATE && states[STATE].init)
states           2355 drivers/scsi/aha152x.c 			states[STATE].init(shpnt);
states           2361 drivers/scsi/aha152x.c 		if(states[STATE].run)
states           2362 drivers/scsi/aha152x.c 			states[STATE].run(shpnt);
states           2518 drivers/scsi/aha152x.c 	seq_printf(m, "\n%s: %s(%s) ", CURRENT_SC ? "on bus" : "waiting", states[STATE].name, states[PREVSTATE].name);
states           2883 drivers/scsi/aha152x.c 			states[i].name,
states           4369 drivers/scsi/lpfc/lpfc_hbadisc.c 	static char *states[] = {
states           4381 drivers/scsi/lpfc/lpfc_hbadisc.c 	if (state < NLP_STE_MAX_STATE && states[state])
states           4382 drivers/scsi/lpfc/lpfc_hbadisc.c 		strlcpy(buffer, states[state], size);
states           2065 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_get_firmware_state(scsi_qla_host_t *vha, uint16_t *states)
states           2086 drivers/scsi/qla2xxx/qla_mbx.c 	states[0] = mcp->mb[1];
states           2088 drivers/scsi/qla2xxx/qla_mbx.c 		states[1] = mcp->mb[2];
states           2089 drivers/scsi/qla2xxx/qla_mbx.c 		states[2] = mcp->mb[3];  /* SFP info */
states           2090 drivers/scsi/qla2xxx/qla_mbx.c 		states[3] = mcp->mb[4];
states           2091 drivers/scsi/qla2xxx/qla_mbx.c 		states[4] = mcp->mb[5];
states           2092 drivers/scsi/qla2xxx/qla_mbx.c 		states[5] = mcp->mb[6];  /* DPORT status */
states            346 drivers/scsi/qla2xxx/qla_mr.c qlafx00_get_firmware_state(scsi_qla_host_t *vha, uint32_t *states)
states            363 drivers/scsi/qla2xxx/qla_mr.c 	states[0] = mcp->mb[1];
states            184 drivers/scsi/raid_class.c #define raid_attr_ro_states(attr, states, code)				\
states            188 drivers/scsi/raid_class.c 	name = raid_##states##_name(rd->attr);				\
states            264 drivers/soc/imx/gpc.c 			.states = &imx6_pm_domain_pu_state,
states            463 drivers/soc/qcom/smsm.c 	u32 *states;
states            519 drivers/soc/qcom/smsm.c 	states = qcom_smem_get(QCOM_SMEM_HOST_ANY, SMEM_SMSM_SHARED_STATE, NULL);
states            520 drivers/soc/qcom/smsm.c 	if (IS_ERR(states)) {
states            522 drivers/soc/qcom/smsm.c 		return PTR_ERR(states);
states            540 drivers/soc/qcom/smsm.c 	smsm->local_state = states + smsm->local_host;
states            565 drivers/soc/qcom/smsm.c 		entry->remote_state = states + id;
states            940 drivers/staging/speakup/kobjects.c 	__ATTR(states, 0644, message_show, message_store);
states           1223 drivers/staging/speakup/main.c 	int i = 0, states, key_data_len;
states           1235 drivers/staging/speakup/main.c 	states = (int)cp[1];
states           1236 drivers/staging/speakup/main.c 	key_data_len = (states + 1) * (num_keys + 1);
states           1251 drivers/staging/speakup/main.c 	for (i = 1; i <= states; i++) {
states           1268 drivers/staging/speakup/main.c 		cp1 += states + 1;
states            828 drivers/thermal/thermal_sysfs.c 	int i, states = stats->max_states;
states            835 drivers/thermal/thermal_sysfs.c 	       states * states * sizeof(*stats->trans_table));
states            910 drivers/thermal/thermal_sysfs.c 	unsigned long states;
states            913 drivers/thermal/thermal_sysfs.c 	if (cdev->ops->get_max_state(cdev, &states))
states            916 drivers/thermal/thermal_sysfs.c 	states++; /* Total number of states is highest state + 1 */
states            919 drivers/thermal/thermal_sysfs.c 	var += sizeof(*stats->time_in_state) * states;
states            920 drivers/thermal/thermal_sysfs.c 	var += sizeof(*stats->trans_table) * states * states;
states            927 drivers/thermal/thermal_sysfs.c 	stats->trans_table = (unsigned int *)(stats->time_in_state + states);
states            930 drivers/thermal/thermal_sysfs.c 	stats->max_states = states;
states             45 drivers/tty/serial/st-asc.c 	struct pinctrl_state *states[2];
states            565 drivers/tty/serial/st-asc.c 					     ascport->states[DEFAULT]);
states            569 drivers/tty/serial/st-asc.c 		if (!ascport->rts && ascport->states[NO_HW_FLOWCTRL]) {
states            571 drivers/tty/serial/st-asc.c 					     ascport->states[NO_HW_FLOWCTRL]);
states            759 drivers/tty/serial/st-asc.c 	ascport->states[DEFAULT] =
states            761 drivers/tty/serial/st-asc.c 	if (IS_ERR(ascport->states[DEFAULT])) {
states            762 drivers/tty/serial/st-asc.c 		ret = PTR_ERR(ascport->states[DEFAULT]);
states            769 drivers/tty/serial/st-asc.c 	ascport->states[NO_HW_FLOWCTRL] =
states            771 drivers/tty/serial/st-asc.c 	if (IS_ERR(ascport->states[NO_HW_FLOWCTRL]))
states            772 drivers/tty/serial/st-asc.c 		ascport->states[NO_HW_FLOWCTRL] = NULL;
states             69 drivers/xen/xen-acpi-processor.c 		cx = &_pr->power.states[i];
states            109 drivers/xen/xen-acpi-processor.c 	set_xen_guest_handle(op.u.set_pminfo.power.states, dst_cx_states);
states            117 drivers/xen/xen-acpi-processor.c 			cx = &_pr->power.states[i];
states            152 drivers/xen/xen-acpi-processor.c 		memcpy(&(dst_states[i]), &(_pr->performance->states[i]),
states            226 drivers/xen/xen-acpi-processor.c 		set_xen_guest_handle(dst_perf->states, dst_states);
states            251 drivers/xen/xen-acpi-processor.c 			(u32) perf->states[i].core_frequency,
states            252 drivers/xen/xen-acpi-processor.c 			(u32) perf->states[i].power,
states            253 drivers/xen/xen-acpi-processor.c 			(u32) perf->states[i].transition_latency);
states            279 drivers/xen/xen-acpi-processor.c 	if (_pr->performance && _pr->performance->states)
states             38 fs/btrfs/extent_io.c static LIST_HEAD(states);
states             68 fs/btrfs/extent_io.c 	while (!list_empty(&states)) {
states             69 fs/btrfs/extent_io.c 		state = list_entry(states.next, struct extent_state, leak_list);
states            307 fs/btrfs/extent_io.c 	btrfs_leak_debug_add(&state->leak_list, &states);
states            856 fs/btrfs/space-info.c 				const enum btrfs_flush_state *states,
states            873 fs/btrfs/space-info.c 		flush_space(fs_info, space_info, to_reclaim, states[flush_state]);
states            277 include/acpi/acpi_bus.h 	struct acpi_device_power_state states[ACPI_D_STATE_COUNT];	/* Power states (D0-D3Cold) */
states            300 include/acpi/acpi_bus.h 	struct acpi_device_perf_state *states;
states            678 include/acpi/acpi_bus.h 	return adev->power.states[ACPI_STATE_D3_COLD].flags.valid ||
states            680 include/acpi/acpi_bus.h 		adev->power.states[ACPI_STATE_D3_HOT].flags.explicit_set);
states             90 include/acpi/processor.h 		struct acpi_processor_cx states[ACPI_PROCESSOR_MAX_POWER];
states            131 include/acpi/processor.h 	struct acpi_processor_px *states;
states            188 include/acpi/processor.h 	struct acpi_processor_tx states[ACPI_PROCESSOR_MAX_THROTTLING];
states            118 include/linux/cpuidle.h 	struct cpuidle_state	states[CPUIDLE_STATE_MAX];
states             48 include/linux/mux/driver.h 	unsigned int states;
states            130 include/linux/pm_domain.h 	struct genpd_power_state *states;
states            131 include/linux/pm_domain.h 	void (*free_states)(struct genpd_power_state *states,
states            289 include/linux/pm_domain.h 			       struct genpd_power_state **states, int *n);
states            326 include/linux/pm_domain.h 			struct genpd_power_state **states, int *n)
states             72 include/linux/regulator/gpio-regulator.h 	struct gpio_regulator_state *states;
states           1807 include/net/xfrm.h static inline void xfrm_states_put(struct xfrm_state **states, int n)
states           1811 include/net/xfrm.h 		xfrm_state_put(*(states + i));
states           1814 include/net/xfrm.h static inline void xfrm_states_delete(struct xfrm_state **states, int n)
states           1818 include/net/xfrm.h 		xfrm_state_delete(*(states + i));
states            381 include/xen/interface/platform.h 	GUEST_HANDLE(xen_processor_cx) states; /* supported c states */
states            418 include/xen/interface/platform.h 	GUEST_HANDLE(xen_processor_px) states;
states           2128 kernel/cpu.c   static DEVICE_ATTR(states, 0444, show_cpuhp_states, NULL);
states             91 sound/usb/misc/ua101.c 	unsigned long states;
states            159 sound/usb/misc/ua101.c 	if (test_and_clear_bit(USB_CAPTURE_RUNNING, &ua->states)) {
states            167 sound/usb/misc/ua101.c 	if (test_and_clear_bit(USB_PLAYBACK_RUNNING, &ua->states))
states            186 sound/usb/misc/ua101.c 	if (test_bit(USB_PLAYBACK_RUNNING, &ua->states)) {
states            206 sound/usb/misc/ua101.c 	set_bit(PLAYBACK_URB_COMPLETED, &ua->states);
states            259 sound/usb/misc/ua101.c 	if (unlikely(!test_bit(USB_PLAYBACK_RUNNING, &ua->states)))
states            289 sound/usb/misc/ua101.c 		if (test_bit(ALSA_PLAYBACK_RUNNING, &ua->states))
states            370 sound/usb/misc/ua101.c 	if (frames > 0 && test_bit(ALSA_CAPTURE_RUNNING, &ua->states))
states            375 sound/usb/misc/ua101.c 	if (test_bit(USB_CAPTURE_RUNNING, &ua->states)) {
states            402 sound/usb/misc/ua101.c 		if (test_bit(USB_PLAYBACK_RUNNING, &ua->states) &&
states            428 sound/usb/misc/ua101.c 	set_bit(CAPTURE_URB_COMPLETED, &ua->states);
states            485 sound/usb/misc/ua101.c 		if (err < 0 && !test_bit(DISCONNECTED, &ua->states))
states            494 sound/usb/misc/ua101.c 	clear_bit(USB_CAPTURE_RUNNING, &ua->states);
states            505 sound/usb/misc/ua101.c 	if (test_bit(DISCONNECTED, &ua->states))
states            508 sound/usb/misc/ua101.c 	if (test_bit(USB_CAPTURE_RUNNING, &ua->states))
states            517 sound/usb/misc/ua101.c 	clear_bit(CAPTURE_URB_COMPLETED, &ua->states);
states            522 sound/usb/misc/ua101.c 	set_bit(USB_CAPTURE_RUNNING, &ua->states);
states            531 sound/usb/misc/ua101.c 	clear_bit(USB_PLAYBACK_RUNNING, &ua->states);
states            546 sound/usb/misc/ua101.c 	if (test_bit(DISCONNECTED, &ua->states))
states            549 sound/usb/misc/ua101.c 	if (test_bit(USB_PLAYBACK_RUNNING, &ua->states))
states            559 sound/usb/misc/ua101.c 	clear_bit(PLAYBACK_URB_COMPLETED, &ua->states);
states            572 sound/usb/misc/ua101.c 		   !test_bit(USB_CAPTURE_RUNNING, &ua->states) ||
states            573 sound/usb/misc/ua101.c 		   test_bit(DISCONNECTED, &ua->states));
states            574 sound/usb/misc/ua101.c 	if (test_bit(DISCONNECTED, &ua->states)) {
states            578 sound/usb/misc/ua101.c 	if (!test_bit(USB_CAPTURE_RUNNING, &ua->states)) {
states            597 sound/usb/misc/ua101.c 	set_bit(USB_PLAYBACK_RUNNING, &ua->states);
states            606 sound/usb/misc/ua101.c 	if (test_bit(ALSA_CAPTURE_RUNNING, &ua->states))
states            612 sound/usb/misc/ua101.c 	if (test_bit(ALSA_PLAYBACK_RUNNING, &ua->states))
states            665 sound/usb/misc/ua101.c 		set_bit(ALSA_CAPTURE_OPEN, &ua->states);
states            689 sound/usb/misc/ua101.c 		if (!test_bit(ALSA_CAPTURE_OPEN, &ua->states))
states            693 sound/usb/misc/ua101.c 	set_bit(ALSA_PLAYBACK_OPEN, &ua->states);
states            704 sound/usb/misc/ua101.c 	clear_bit(ALSA_CAPTURE_OPEN, &ua->states);
states            705 sound/usb/misc/ua101.c 	if (!test_bit(ALSA_PLAYBACK_OPEN, &ua->states))
states            717 sound/usb/misc/ua101.c 	clear_bit(ALSA_PLAYBACK_OPEN, &ua->states);
states            718 sound/usb/misc/ua101.c 	if (!test_bit(ALSA_CAPTURE_OPEN, &ua->states))
states            781 sound/usb/misc/ua101.c 		   test_bit(CAPTURE_URB_COMPLETED, &ua->states) ||
states            782 sound/usb/misc/ua101.c 		   !test_bit(USB_CAPTURE_RUNNING, &ua->states));
states            783 sound/usb/misc/ua101.c 	if (test_bit(DISCONNECTED, &ua->states))
states            785 sound/usb/misc/ua101.c 	if (!test_bit(USB_CAPTURE_RUNNING, &ua->states))
states            808 sound/usb/misc/ua101.c 		   test_bit(PLAYBACK_URB_COMPLETED, &ua->states) ||
states            809 sound/usb/misc/ua101.c 		   !test_bit(USB_PLAYBACK_RUNNING, &ua->states));
states            810 sound/usb/misc/ua101.c 	if (test_bit(DISCONNECTED, &ua->states))
states            812 sound/usb/misc/ua101.c 	if (!test_bit(USB_PLAYBACK_RUNNING, &ua->states))
states            827 sound/usb/misc/ua101.c 		if (!test_bit(USB_CAPTURE_RUNNING, &ua->states))
states            829 sound/usb/misc/ua101.c 		set_bit(ALSA_CAPTURE_RUNNING, &ua->states);
states            832 sound/usb/misc/ua101.c 		clear_bit(ALSA_CAPTURE_RUNNING, &ua->states);
states            845 sound/usb/misc/ua101.c 		if (!test_bit(USB_PLAYBACK_RUNNING, &ua->states))
states            847 sound/usb/misc/ua101.c 		set_bit(ALSA_PLAYBACK_RUNNING, &ua->states);
states            850 sound/usb/misc/ua101.c 		clear_bit(ALSA_PLAYBACK_RUNNING, &ua->states);
states           1332 sound/usb/misc/ua101.c 	set_bit(DISCONNECTED, &ua->states);
states             29 tools/lib/traceevent/plugins/plugin_sched_switch.c 	const char states[] = "SDTtZXxW";
states             33 tools/lib/traceevent/plugins/plugin_sched_switch.c 	for (i = 0; i < (sizeof(states) - 1); i++) {
states             41 tools/lib/traceevent/plugins/plugin_sched_switch.c 		trace_seq_putc(s, states[i]);
states            133 tools/power/cpupower/utils/helpers/amd.c int amd_pci_get_num_boost_states(int *active, int *states)
states            139 tools/power/cpupower/utils/helpers/amd.c 	*active = *states = 0;
states            151 tools/power/cpupower/utils/helpers/amd.c 	*states = (val >> 2) & 7;
states            114 tools/power/cpupower/utils/helpers/helpers.h extern int amd_pci_get_num_boost_states(int *active, int *states);
states            131 tools/power/cpupower/utils/helpers/helpers.h 				     int *active, int * states);
states            162 tools/power/cpupower/utils/helpers/helpers.h 					    int *active, int * states)
states              9 tools/power/cpupower/utils/helpers/misc.c 			int *states)
states             15 tools/power/cpupower/utils/helpers/misc.c 	*support = *active = *states = 0;
states             35 tools/power/cpupower/utils/helpers/misc.c 			ret = amd_pci_get_num_boost_states(active, states);