Home
last modified time | relevance | path

Searched refs:state_count (Results 1 – 25 of 33) sorted by relevance

12

/drivers/isdn/hisax/
Dfsm.c30 kzalloc(sizeof(FSMFNPTR) * fsm->state_count * fsm->event_count, GFP_KERNEL); in FsmNew()
35 if ((fnlist[i].state >= fsm->state_count) || (fnlist[i].event >= fsm->event_count)) { in FsmNew()
37 i, (long)fnlist[i].state, (long)fsm->state_count, in FsmNew()
40 fsm->jumpmatrix[fsm->state_count * fnlist[i].event + in FsmNew()
56 if ((fi->state >= fi->fsm->state_count) || (event >= fi->fsm->event_count)) { in FsmEvent()
58 (long)fi->state, (long)fi->fsm->state_count, event, (long)fi->fsm->event_count); in FsmEvent()
61 r = fi->fsm->jumpmatrix[fi->fsm->state_count * event + fi->state]; in FsmEvent()
Dfsm.h25 int state_count, event_count; member
Disdnl1.c759 l1fsm_s.state_count = L1S_STATE_COUNT; in Isdnl1New()
767 l1fsm_b.state_count = L1B_STATE_COUNT; in Isdnl1New()
777 l1fsm_u.state_count = L1U_STATE_COUNT; in Isdnl1New()
Dst5481_d.c751 l1fsm.state_count = L1_STATE_COUNT; in st5481_d_init()
759 dout_fsm.state_count = DOUT_STATE_COUNT; in st5481_d_init()
/drivers/isdn/mISDN/
Dfsm.c35 fsm->jumpmatrix = kzalloc(sizeof(FSMFNPTR) * fsm->state_count * in mISDN_FsmNew()
39 if ((fnlist[i].state >= fsm->state_count) || in mISDN_FsmNew()
43 i, (long)fnlist[i].state, (long)fsm->state_count, in mISDN_FsmNew()
46 fsm->jumpmatrix[fsm->state_count * fnlist[i].event + in mISDN_FsmNew()
63 if ((fi->state >= fi->fsm->state_count) || in mISDN_FsmEvent()
67 (long)fi->state, (long)fi->fsm->state_count, event, in mISDN_FsmEvent()
71 r = fi->fsm->jumpmatrix[fi->fsm->state_count * event + fi->state]; in mISDN_FsmEvent()
Dfsm.h33 int state_count, event_count; member
Dlayer1.c413 l1fsm_s.state_count = L1S_STATE_COUNT; in l1_init()
Dtei.c1391 teifsmu.state_count = TEI_STATE_COUNT; in TEIInit()
1396 teifsmn.state_count = TEI_STATE_COUNT; in TEIInit()
1401 deactfsm.state_count = DEACT_STATE_COUNT; in TEIInit()
/drivers/acpi/
Dprocessor_throttling.c257 if (target_state >= p_throttling->state_count) { in acpi_processor_throttling_notifier()
260 target_state = p_throttling->state_count - 1; in acpi_processor_throttling_notifier()
331 if (throttling_limit >= pr->throttling.state_count) { in acpi_processor_tstate_has_changed()
393 if (!pr->throttling.state_count) { in acpi_processor_reevaluate_tstate()
536 pr->throttling.state_count = tss->package.count; in acpi_processor_get_throttling_states()
545 for (i = 0; i < pr->throttling.state_count; i++) { in acpi_processor_get_throttling_states()
682 duty_mask = pr->throttling.state_count - 1; in acpi_processor_get_throttling_fadt()
699 state = pr->throttling.state_count - duty_value; in acpi_processor_get_throttling_fadt()
839 for (i = 0; i < pr->throttling.state_count; i++) { in acpi_get_throttling_state()
854 if (state >= 0 && state <= pr->throttling.state_count) { in acpi_get_throttling_value()
[all …]
Dprocessor_perflib.c104 if (ppc >= pr->performance->state_count) in acpi_processor_ppc_notifier()
216 if (!pr || !pr->performance || !pr->performance->state_count) in acpi_processor_get_bios_limit()
390 pr->performance->state_count = pss->package.count; in acpi_processor_get_performance_states()
399 for (i = 0; i < pr->performance->state_count; i++) { in acpi_processor_get_performance_states()
460 pr->performance->state_count = last_invalid; in acpi_processor_get_performance_states()
Dprocessor_thermal.c212 max_state += (pr->throttling.state_count -1); in acpi_processor_max_state()
Dprocessor_idle.c979 dev->state_count = count; in acpi_processor_setup_cpuidle_cx()
1065 drv->state_count = count; in acpi_processor_setup_cpuidle_states()
/drivers/cpufreq/
Dia64-acpi-cpufreq.c92 for (i = 0; i < data->acpi_data.state_count; i++) { in extract_clock()
289 if (data->acpi_data.state_count <= 1) { in acpi_cpufreq_cpu_init()
308 (data->acpi_data.state_count + 1), in acpi_cpufreq_cpu_init()
317 for (i=0; i<data->acpi_data.state_count; i++) { in acpi_cpufreq_cpu_init()
327 for (i = 0; i <= data->acpi_data.state_count; i++) in acpi_cpufreq_cpu_init()
330 if (i < data->acpi_data.state_count) { in acpi_cpufreq_cpu_init()
349 for (i = 0; i < data->acpi_data.state_count; i++) in acpi_cpufreq_cpu_init()
Dacpi-cpufreq.c215 for (i = 0; i < perf->state_count; i++) { in extract_io()
528 for (i = 0; i < (perf->state_count-1); i++) { in acpi_cpufreq_guess_freq()
536 perf->state = perf->state_count-1; in acpi_cpufreq_guess_freq()
743 if (perf->state_count <= 1) { in acpi_cpufreq_cpu_init()
785 (perf->state_count+1), GFP_KERNEL); in acpi_cpufreq_cpu_init()
793 for (i = 0; i < perf->state_count; i++) { in acpi_cpufreq_cpu_init()
809 for (i = 0; i < perf->state_count; i++) { in acpi_cpufreq_cpu_init()
850 for (i = 0; i < perf->state_count; i++) in acpi_cpufreq_cpu_init()
Dpowernow-k8.c756 if (!data->acpi_data.state_count) in powernow_k8_acpi_pst_values()
780 if (data->acpi_data.state_count <= 1) { in powernow_k8_cpu_init_acpi()
797 * (data->acpi_data.state_count + 1)), GFP_KERNEL); in powernow_k8_cpu_init_acpi()
804 data->numps = data->acpi_data.state_count; in powernow_k8_cpu_init_acpi()
811 powernow_table[data->acpi_data.state_count].frequency = in powernow_k8_cpu_init_acpi()
813 powernow_table[data->acpi_data.state_count].index = 0; in powernow_k8_cpu_init_acpi()
839 data->acpi_data.state_count = 0; in powernow_k8_cpu_init_acpi()
849 for (i = 0; i < data->acpi_data.state_count; i++) { in fill_powernow_table_fidvid()
903 if (data->acpi_data.state_count) in powernow_k8_cpu_exit_acpi()
913 for (i = 0; i < data->acpi_data.state_count; i++) { in get_transition_latency()
Dpowernow-k7.c342 number_scales = acpi_processor_perf->state_count; in powernow_acpi_init()
/drivers/cpuidle/
Dcpuidle.c62 for (i = drv->state_count - 1; i >= CPUIDLE_DRIVER_STATE_START; i--) in cpuidle_play_dead()
295 if (!dev->state_count) in cpuidle_enable_device()
296 dev->state_count = drv->state_count; in cpuidle_enable_device()
314 for (i = 0; i < dev->state_count; i++) { in cpuidle_enable_device()
Ddriver.c36 for (i = drv->state_count - 1; i >= 0 ; i--) { in __cpuidle_driver_init()
50 if (!drv || !drv->state_count) in __cpuidle_register_driver()
Dcpuidle-calxeda.c102 .state_count = 2,
Dcpuidle-kirkwood.c54 .state_count = KIRKWOOD_MAX_STATES,
Dsysfs.c377 for (i = 0; i < device->state_count; i++) { in cpuidle_add_state_sysfs()
411 for (i = 0; i < device->state_count; i++) in cpuidle_remove_state_sysfs()
/drivers/cpuidle/governors/
Dladder.c90 if (last_idx < drv->state_count - 1 && in ladder_select_state()
147 for (i = 0; i < drv->state_count; i++) { in ladder_enable_device()
157 if (i < drv->state_count - 1) in ladder_enable_device()
Dmenu.c375 for (i = CPUIDLE_DRIVER_STATE_START; i < drv->state_count; i++) { in menu_select()
/drivers/idle/
Dintel_idle.c566 drv->state_count = 1; in intel_idle_cpuidle_driver_init()
597 drv->states[drv->state_count] = /* structure copy */ in intel_idle_cpuidle_driver_init()
600 drv->state_count += 1; in intel_idle_cpuidle_driver_init()
625 dev->state_count = 1; in intel_idle_cpu_init()
650 dev->state_count += 1; in intel_idle_cpu_init()
/drivers/xen/
Dxen-acpi-processor.c153 dst_states = kcalloc(_pr->performance->state_count, in xen_copy_pss_data()
158 dst_perf->state_count = _pr->performance->state_count; in xen_copy_pss_data()
159 for (i = 0; i < _pr->performance->state_count; i++) { in xen_copy_pss_data()
257 for (i = 0; i < perf->state_count; i++) { in push_pxx_to_hypervisor()

12