Lines Matching refs:cpusave
91 kaif_master_loop(kaif_cpusave_t *cpusave)
104 kmdb_kdi_stop_slaves(cpusave->krs_cpu_id, 0);
114 if (kmdb_dpi_switch_target == cpusave->krs_cpu_id)
118 cpusave->krs_cpu_state = KAIF_CPU_STATE_SLAVE;
126 kaif_trap_set_saved(cpusave);
145 kaif_trap_set_saved(cpusave);
185 if (cpusave->krs_cpu_id == 0)
206 kaif_slave_loop(kaif_cpusave_t *cpusave)
225 kaif_slave_tgt == cpusave->krs_cpu_id) {
227 cpusave->krs_cpu_state = KAIF_CPU_STATE_MASTER;
233 cpusave->krs_cpu_flushed = 1;
238 cpusave->krs_cpu_id == 0) {
249 cpusave->krs_cpu_acked = 1;
250 } else if (cpusave->krs_cpu_acked &&
252 cpusave->krs_cpu_acked = 0;
267 kaif_select_master(kaif_cpusave_t *cpusave)
273 kaif_master_cpuid = cpusave->krs_cpu_id;
274 cpusave->krs_cpu_state = KAIF_CPU_STATE_MASTER;
279 kmdb_kdi_stop_slaves(cpusave->krs_cpu_id, 1);
282 cpusave->krs_cpu_state = KAIF_CPU_STATE_SLAVE;
290 kaif_main_loop(kaif_cpusave_t *cpusave)
302 cpusave->krs_cpu_state = KAIF_CPU_STATE_NONE;
306 kaif_select_master(cpusave);
309 if (kaif_master_cpuid == cpusave->krs_cpu_id) {
318 } else if (kaif_master_cpuid == cpusave->krs_cpu_id) {
319 cpusave->krs_cpu_state = KAIF_CPU_STATE_MASTER;
321 cpusave->krs_cpu_state = KAIF_CPU_STATE_SLAVE;
324 cpusave->krs_cpu_flushed = 0;
335 if (kaif_master_cpuid == cpusave->krs_cpu_id)
336 cmd = kaif_master_loop(cpusave);
338 cmd = kaif_slave_loop(cpusave);
345 cpusave->krs_cpu_state = KAIF_CPU_STATE_NONE;