Searched refs:nr_states (Results 1 – 3 of 3) sorted by relevance
/drivers/s390/net/ |
D | fsm.c | 17 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()
|
D | fsm.h | 46 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()
|
/drivers/regulator/ |
D | gpio-regulator.c | 40 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()
|