Lines Matching defs:state

117  * Change the CPUMF state to active.
119 * to the per-cpu control state.
129 err = lcctl(cpuhw->state);
140 * Change the CPUMF state to inactive.
142 * to the per-cpu control state.
153 inactive = cpuhw->state & ~((1 << CPUMF_LCCTL_ENABLE_SHIFT) - 1);
191 /* CPUMF <-> perf event mappings for userspace (problem-state set) */
224 /* Count user space (problem-state) only */
348 * state.
376 if (event->hw.state & PERF_HES_STOPPED)
387 if (WARN_ON_ONCE(!(hwc->state & PERF_HES_STOPPED)))
394 WARN_ON_ONCE(!(hwc->state & PERF_HES_UPTODATE));
396 hwc->state = 0;
399 ctr_set_enable(&cpuhw->state, hwc->config_base);
400 ctr_set_start(&cpuhw->state, hwc->config_base);
405 * the inactive or disabled state.
418 if (!(hwc->state & PERF_HES_STOPPED)) {
421 * control and set the counter set state to inactive.
424 ctr_set_stop(&cpuhw->state, hwc->config_base);
425 event->hw.state |= PERF_HES_STOPPED;
428 if ((flags & PERF_EF_UPDATE) && !(hwc->state & PERF_HES_UPTODATE)) {
430 event->hw.state |= PERF_HES_UPTODATE;
447 ctr_set_enable(&cpuhw->state, event->hw.config_base);
448 event->hw.state = PERF_HES_UPTODATE | PERF_HES_STOPPED;
465 * change the counter set to the disabled state. This also clears the
473 ctr_set_disable(&cpuhw->state, event->hw.config_base);
497 cpuhw->tx_state = cpuhw->state;
517 WARN_ON(cpuhw->tx_state != cpuhw->state);
530 u64 state;
539 /* check if the updated state can be scheduled */
540 state = cpuhw->state & ~((1 << CPUMF_LCCTL_ENABLE_SHIFT) - 1);
541 state >>= CPUMF_LCCTL_ENABLE_SHIFT;
542 if ((state & cpuhw->info.auth_ctl) != state)