Lines Matching refs:online
38 typedef unsigned (*cps_nc_entry_fn)(unsigned online, u32 *nc_ready_count);
84 static void coupled_barrier(atomic_t *a, unsigned online) in coupled_barrier() argument
98 while (atomic_read(a) < online) in coupled_barrier()
101 if (atomic_inc_return(a) == online * 2) { in coupled_barrier()
106 while (atomic_read(a) > online) in coupled_barrier()
114 unsigned online, left; in cps_pm_enter_state() local
132 online = cpumask_weight(coupled_mask); in cps_pm_enter_state()
138 online = 1; in cps_pm_enter_state()
167 coupled_barrier(&per_cpu(pm_barrier, core), online); in cps_pm_enter_state()
170 left = entry(online, nc_core_ready_count); in cps_pm_enter_state()
186 if (coupled_coherence && (state == CPS_PM_NC_WAIT) && (left == online)) in cps_pm_enter_state()