Home
last modified time | relevance | path

Searched refs:nr_states (Results 1 – 10 of 10) sorted by relevance

/Linux-v5.4/kernel/power/
Denergy_model.c81 static struct em_perf_domain *em_create_pd(cpumask_t *span, int nr_states, in em_create_pd() argument
98 table = kcalloc(nr_states, sizeof(*table), GFP_KERNEL); in em_create_pd()
103 for (i = 0, freq = 0; i < nr_states; i++, freq++) { in em_create_pd()
150 fmax = (u64) table[nr_states - 1].frequency; in em_create_pd()
151 for (i = 0; i < nr_states; i++) { in em_create_pd()
157 pd->nr_cap_states = nr_states; in em_create_pd()
199 int em_register_perf_domain(cpumask_t *span, unsigned int nr_states, in em_register_perf_domain() argument
206 if (!span || !nr_states || !cb) in em_register_perf_domain()
237 pd = em_create_pd(span, nr_states, cb); in em_register_perf_domain()
/Linux-v5.4/drivers/s390/net/
Dfsm.c17 init_fsm(char *name, const char **state_names, const char **event_names, int nr_states, in init_fsm() argument
42 f->nr_states = nr_states; in init_fsm()
47 m = kcalloc(nr_states*nr_events, sizeof(fsm_function_t), order); in init_fsm()
57 if ((tmpl[i].cond_state >= nr_states) || in init_fsm()
61 name, i, (long)tmpl[i].cond_state, (long)f->nr_states, in init_fsm()
66 m[nr_states * tmpl[i].cond_event + tmpl[i].cond_state] = in init_fsm()
127 if (st >= fi->f->nr_states) in fsm_getstate_str()
Dfsm.h46 int nr_states; member
112 int nr_states, int nr_events, const fsm_node *tmpl,
149 if ((state >= fi->f->nr_states) || in fsm_event()
152 fi->name, (long)state,(long)fi->f->nr_states, event, in fsm_event()
159 r = fi->f->jumpmatrix[fi->f->nr_states * event + state]; in fsm_event()
/Linux-v5.4/drivers/regulator/
Dgpio-regulator.c40 int nr_states; member
50 for (ptr = 0; ptr < data->nr_states; ptr++) in gpio_regulator_get_value()
64 for (ptr = 0; ptr < data->nr_states; ptr++) in gpio_regulator_set_voltage()
91 if (selector >= data->nr_states) in gpio_regulator_list_voltage()
103 for (ptr = 0; ptr < data->nr_states; ptr++) in gpio_regulator_set_current_limit()
202 config->nr_states = i; in of_get_gpio_regulator_config()
271 config->nr_states * in gpio_regulator_probe()
278 drvdata->nr_states = config->nr_states; in gpio_regulator_probe()
288 drvdata->desc.n_voltages = config->nr_states; in gpio_regulator_probe()
/Linux-v5.4/include/linux/
Denergy_model.h67 int em_register_perf_domain(cpumask_t *span, unsigned int nr_states,
168 unsigned int nr_states, struct em_data_callback *cb) in em_register_perf_domain() argument
/Linux-v5.4/include/linux/regulator/
Dgpio-regulator.h73 int nr_states; member
/Linux-v5.4/Documentation/power/
Denergy-model.rst73 int em_register_perf_domain(cpumask_t *span, unsigned int nr_states,
/Linux-v5.4/arch/arm/mach-pxa/
Dhx4700.c718 .nr_states = ARRAY_SIZE(bq24022_states),
Dmagician.c661 .nr_states = ARRAY_SIZE(bq24022_states),
/Linux-v5.4/include/uapi/drm/
Dradeon_drm.h647 int nr_states; member