Lines Matching defs:state

80 static const char const * pmc_state_state_name(pmc_state_t state) {
81 switch (PMC_STATE_STATE(state)) {
698 resv->state = PMC_STATE(PMC_STATE_STATE_STOP, 0, 0);
1109 * The PMC subsystem uses a 3-tuple of state information packed into a 32-bit quantity and a
1111 * of a state, a count of active contexts, and a set of modifier flags. A state machine defines
1113 * by reading the current 3-tuple, applying the transformations indicated by the state machine
1118 * The state machine is described using tuple notation for the current state and a related notation
1119 * for describing the transformations. For concisness, the flag and state names are abbreviated as
1139 * tuple = < state, active-context-count, flags >
1140 * state = S | CR | L | R | ST | I | D
1145 * The transform notation is similar, but only describes the modifications made to the current state.
1148 * transform = < state, active-context-count, flags >
1149 * state = S | CR | L | R | ST | I | D
1154 * And now for the state machine:
1439 /* Determine what state change, if any, we need to do. Keep trying until either we succeed doing a transition
1443 oldState = reservation->state;
1445 } while (newState != PMC_STATE_INVALID && !OSCompareAndSwap(oldState, newState, &(reservation->state)));
1448 COUNTER_DEBUG("Moved reservation %p from state "PMC_STATE_FORMAT" to state "PMC_STATE_FORMAT" for event %s\n", reservation, PMC_STATE_ARGS(oldState), PMC_STATE_ARGS(newState), pmc_state_event_name(event));
1450 COUNTER_DEBUG("No valid moves for reservation %p in state "PMC_STATE_FORMAT" for event %s\n", reservation, PMC_STATE_ARGS(oldState), pmc_state_event_name(event));
1468 /* Move the state machine */
1473 /* Do any actions required based on the state change */
1489 /* Move the state machine */
1497 /* Do any actions required based on the state change */
1507 assert(PMC_STATE_STATE(reservation->state) == PMC_STATE_STATE_STORE);
1542 /* Advance the state machine now that the STORE is finished */
1547 /* Do any actions required based on the state change */
1560 assert(PMC_STATE_STATE(reservation->state) == PMC_STATE_STATE_LOAD);
1604 /* Advance the state machine now that the STORE is finished */
1609 /* Do any actions required based on the state change */
1687 /* Move the state machine */
1692 /* A valid state move has been made, but won't be picked up until a context switch occurs. To cause matching
1698 /* Spin waiting for the state to turn to INTERRUPT */
1702 while (PMC_STATE_STATE(reservation->state) != PMC_STATE_STATE_INTERRUPT) {
1732 /* Move the state machine */
2528 /* Move the state machine */
2537 /* A valid state move has been made, but won't be picked up until a context switch occurs. To cause matching
2552 * to the reservation state, the pmc hardware _will_ stop shortly.
2562 /* Move the state machine */
2571 /* A valid state move has been made, but won't be picked up until a context switch occurs. To cause matching
2605 uint32_t state = reservation->state;
2607 if((PMC_STATE_STATE(state) == PMC_STATE_STATE_RUN)) {
2615 } else if ((PMC_STATE_STATE(state) == PMC_STATE_STATE_STORE) ||
2616 (PMC_STATE_STATE(state) == PMC_STATE_STATE_LOAD)) {
2664 uint32_t state = reservation->state;
2666 if((PMC_STATE_STATE(state) == PMC_STATE_STATE_RUN)) {
2672 } else if ((PMC_STATE_STATE(state) == PMC_STATE_STATE_STORE) ||
2673 (PMC_STATE_STATE(state) == PMC_STATE_STATE_LOAD)) {
2711 /* Move the state machine */
2718 /* A valid state move has been made, but won't be picked up until a context switch occurs. To cause matching
2725 /* Block until the reservation hits the <DEALLOC, 0, > state */
2726 while (!(PMC_STATE_STATE(reservation->state) == PMC_STATE_STATE_DEALLOC && PMC_STATE_CONTEXT_COUNT(reservation->state) == 0 && PMC_STATE_FLAGS(reservation->state) == 0)) {
2741 * pmc_idle notifies eligible monitors of impending per-CPU idle, and can be used to save state.
2766 * pmc_idle_exit notifies eligible monitors of wake from idle; it can be used to restore state.
2792 * state associated with @oldThread (and the task to which @oldThread belongs),
2793 * as well as to restore all pmc state associated with @newThread (and the task