/linux-master/drivers/cpuidle/ |
H A D | dt_idle_genpd.c | 26 struct genpd_power_state *states, int state_count) 32 ret = parse_state(to_of_node(states[i].fwnode), &state); 42 states[i].data = state_buf; 50 kfree(states[i].data); 56 struct genpd_power_state **states, 61 /* Parse the domain idle states. */ 62 ret = of_genpd_parse_idle_states(np, states, state_count); 67 ret = pd_parse_state_nodes(parse_state, *states, *state_count); 69 kfree(*states); 74 static void pd_free_states(struct genpd_power_state *states, argument 24 pd_parse_state_nodes( int (*parse_state)(struct device_node *, u32 *), struct genpd_power_state *states, int state_count) argument 54 pd_parse_states(struct device_node *np, int (*parse_state)(struct device_node *, u32 *), struct genpd_power_state **states, int *state_count) argument 95 struct genpd_power_state *states = NULL; local [all...] |
H A D | cpuidle-mvebu-v7.c | 36 if (drv->states[index].flags & MVEBU_V7_FLAG_DEEP_IDLE) 53 .states[0] = ARM_CPUIDLE_WFI_STATE, 54 .states[1] = { 63 .states[2] = { 77 .states[0] = ARM_CPUIDLE_WFI_STATE, 78 .states[1] = { 92 .states[0] = ARM_CPUIDLE_WFI_STATE, 93 .states[1] = {
|
H A D | cpuidle-riscv-sbi.c | 32 u32 *states; member in struct:sbi_cpuidle_data 79 u32 *states = __this_cpu_read(sbi_cpuidle_data.states); local 80 u32 state = states[idx]; 94 u32 *states = data->states; local 114 state = states[idx]; 220 * of a shared state for the domain, assumes the domain states are all 221 * deeper states. 223 drv->states[state_coun 240 u32 *states; local [all...] |
H A D | cpuidle-at91.c | 8 * to implement two idle states - 25 /* Actual code that puts the SoC in different idle states */ 37 .states[0] = ARM_CPUIDLE_WFI_STATE, 38 .states[1] = { 48 /* Initialize CPU idle by registering the idle states */
|
H A D | cpuidle-zynq.c | 10 * to implement two idle states - 24 /* Actual code that puts the SoC in different idle states */ 37 .states = { 51 /* Initialize CPU idle by registering the idle states */
|
H A D | cpuidle-big_little.c | 31 * index 1 states have to define exit_latency and target_residency for 35 * There is no notion of cluster states in the menu governor, so CPUs 36 * have to define CPU states where possibly the cluster will be shutdown 37 * depending on the state of other CPUs. idle states entry and exit happen 42 * To make this driver 100% generic the number of states and the exit_latency 62 .states[0] = ARM_CPUIDLE_WFI_STATE, 63 .states[1] = { 84 .states[0] = ARM_CPUIDLE_WFI_STATE, 85 .states[1] = {
|
H A D | cpuidle-psci.c | 56 u32 *states = data->psci_states; local 73 state = states[idx]; 233 * of a shared state for the domain, assumes the domain states are all 234 * deeper states. 236 drv->states[state_count - 1].flags |= CPUIDLE_FLAG_RCU_IDLE; 237 drv->states[state_count - 1].enter = psci_enter_domain_idle_state; 238 drv->states[state_count - 1].enter_s2idle = psci_enter_s2idle_domain_idle_state; 281 /* Idle states parsed correctly, store them in the per-cpu struct. */ 294 * idle states must not be enabled, so bail out 350 * PSCI idle states relie [all...] |
/linux-master/drivers/cpuidle/governors/ |
H A D | ladder.c | 40 struct ladder_device_state states[CPUIDLE_STATE_MAX]; member in struct:ladder_device 55 ldev->states[old_idx].stats.promotion_count = 0; 56 ldev->states[old_idx].stats.demotion_count = 0; 72 int first_idx = drv->states[0].flags & CPUIDLE_FLAG_POLLING ? 1 : 0; 82 last_state = &ldev->states[last_idx]; 84 last_residency = dev->last_residency_ns - drv->states[last_idx].exit_latency_ns; 90 drv->states[last_idx + 1].exit_latency_ns <= latency_req) { 102 drv->states[last_idx].exit_latency_ns > latency_req)) { 106 if (drv->states[i].exit_latency_ns <= latency_req) 136 int first_idx = drv->states[ [all...] |
H A D | teo.c | 20 * wakeups from idle states. Moreover, information about what happened in the 25 * states to choose instead of it. 40 * idle states provided by the %CPUIdle driver in the ascending order. That is, 75 * and all of the deeper idle states (it represents the cases in which the 79 * - The sum of the "intercepts" metrics for all of the idle states shallower 84 * - The sum of the numbers of recent intercepts for all of the idle states 91 * - Traverse the idle states shallower than the candidate one in the 95 * of the numbers of recent intercepts over all of the idle states between 243 u64 lat_ns = drv->states[dev->last_state_idx].exit_latency_ns; 280 target_residency_ns = drv->states[ [all...] |
H A D | menu.c | 82 * C states, especially those with large exit latencies, can have a real 88 * The busier the system, the less impact of C states is acceptable 315 ((data->next_timer_ns < drv->states[1].target_residency_ns || 316 latency_req < drv->states[1].exit_latency_ns) && 323 *stop_tick = !(drv->states[0].flags & CPUIDLE_FLAG_POLLING); 355 struct cpuidle_state *s = &drv->states[i]; 368 if ((drv->states[idx].flags & CPUIDLE_FLAG_POLLING) && 385 predicted_ns = drv->states[idx].target_residency_ns; 395 if (drv->states[idx].target_residency_ns < TICK_NSEC && 408 idx = 0; /* No states enable [all...] |
/linux-master/tools/verification/dot2/ |
H A D | automata.py | 26 self.states, self.initial_state, self.final_states = self.__get_state_variables() 80 states = [] 96 states.append(state) 107 states = sorted(set(states)) 108 states.remove(initial_state) 110 # Insert the initial state at the bein og the states 111 states.insert(0, initial_state) 116 return states, initial_state, final_states 145 states [all...] |
H A D | dot2c.py | 20 enum_states_def = "states" 41 for state in self.states: 89 if self.states.__len__() > 255: 92 if self.states.__len__() > 65535: 95 if self.states.__len__() > 1000000: 96 raise Exception("Too many states: %d" % self.states.__len__()) 134 return self.__get_string_vector_per_line_content(self.states) 152 max_state_name = max(self.states, key = len).__len__() 160 nr_states = self.states [all...] |
/linux-master/include/linux/regulator/ |
H A D | gpio-regulator.h | 29 * @gpios: bitfield of gpio target-states for the value 52 * states 54 * @states: Array of gpio_regulator_state entries describing 56 * @nr_states: Number of states available 74 struct gpio_regulator_state *states; member in struct:gpio_regulator_config
|
/linux-master/arch/arm/mach-imx/ |
H A D | cpuidle-imx5.c | 21 .states[0] = {
|
H A D | cpuidle-imx6sl.c | 33 .states = {
|
H A D | cpuidle-imx7ulp.c | 33 .states = {
|
/linux-master/arch/s390/mm/ |
H A D | page-states.c | 11 #include <asm/page-states.h>
|
H A D | Makefile | 7 obj-y += page-states.o pageattr.o pgtable.o pgalloc.o extable.o
|
/linux-master/arch/sh/kernel/cpu/shmobile/ |
H A D | cpuidle.c | 54 .states = { 89 cpuidle_driver.states[1].flags = CPUIDLE_FLAG_NONE; 92 cpuidle_driver.states[2].flags = CPUIDLE_FLAG_NONE;
|
/linux-master/drivers/regulator/ |
H A D | gpio-regulator.c | 39 struct gpio_regulator_state *states; member in struct:gpio_regulator_data 51 if (data->states[ptr].gpios == data->state) 52 return data->states[ptr].value; 65 if (data->states[ptr].value < best_val && 66 data->states[ptr].value >= min_uV && 67 data->states[ptr].value <= max_uV) { 68 target = data->states[ptr].gpios; 69 best_val = data->states[ptr].value; 94 return data->states[selector].value; 104 if (data->states[pt [all...] |
H A D | irq_helpers.c | 107 stat = &rid->states[i]; 132 stat = &rid->states[i]; 214 rdev = rid->states[i].rdev; 240 stat = &rid->states[i]; 286 h->rdata.states = devm_kzalloc(dev, sizeof(*h->rdata.states) * 288 if (!h->rdata.states) 295 h->rdata.states[i].possible_errs = common_err; 297 h->rdata.states[i].possible_errs |= *rdev_err++; 298 h->rdata.states[ [all...] |
/linux-master/drivers/i2c/muxes/ |
H A D | i2c-mux-pinctrl.c | 19 struct pinctrl_state *states[]; member in struct:i2c_mux_pinctrl 26 return pinctrl_select_state(mux->pinctrl, mux->states[chan]); 96 struct_size(mux, states, num_names), 121 mux->states[i] = pinctrl_lookup_state(mux->pinctrl, name); 122 if (IS_ERR(mux->states[i])) { 123 ret = PTR_ERR(mux->states[i]); 144 if (root != i2c_mux_pinctrl_root_adapter(mux->states[i])) {
|
/linux-master/arch/x86/kernel/acpi/ |
H A D | cstate.c | 5 * - Added _PDC for SMP C-states on Intel CPUs 114 } states[ACPI_PROCESSOR_MAX_POWER]; member in struct:cstate_entry 140 /* If the HW does not support any sub-states in this C-state */ 182 percpu_entry->states[cx->index].eax = 0; 183 percpu_entry->states[cx->index].ecx = 0; 191 percpu_entry->states[cx->index].eax = cx->address; 192 percpu_entry->states[cx->index].ecx = MWAIT_ECX_INTERRUPT_BREAK; 213 mwait_idle_with_hints(percpu_entry->states[cx->index].eax, 214 percpu_entry->states[cx->index].ecx);
|
/linux-master/drivers/gpu/drm/ |
H A D | drm_blend.c | 448 struct drm_plane_state **states; local 456 states = kmalloc_array(total_planes, sizeof(*states), GFP_KERNEL); 457 if (!states) 461 * Normalization process might create new states for planes which 471 states[n++] = plane_state; 476 sort(states, n, sizeof(*states), drm_atomic_state_zpos_cmp, NULL); 479 plane = states[i]->plane; 481 states[ [all...] |
/linux-master/sound/usb/misc/ |
H A D | ua101.c | 65 /* bits in struct ua101::states */ 90 unsigned long states; member in struct:ua101 158 if (test_and_clear_bit(USB_CAPTURE_RUNNING, &ua->states)) { 166 if (test_and_clear_bit(USB_PLAYBACK_RUNNING, &ua->states)) 185 if (test_bit(USB_PLAYBACK_RUNNING, &ua->states)) { 205 set_bit(PLAYBACK_URB_COMPLETED, &ua->states); 258 if (unlikely(!test_bit(USB_PLAYBACK_RUNNING, &ua->states))) 288 if (test_bit(ALSA_PLAYBACK_RUNNING, &ua->states)) 369 if (frames > 0 && test_bit(ALSA_CAPTURE_RUNNING, &ua->states)) 374 if (test_bit(USB_CAPTURE_RUNNING, &ua->states)) { [all...] |