Lines Matching defs:state
26 unsigned int state;
28 /* Check to see if we are in desired state */
29 state = atomic_read(&prdev->state);
30 if (state == PAGE_REPORTING_REQUESTED)
37 state = atomic_xchg(&prdev->state, PAGE_REPORTING_REQUESTED);
38 if (state != PAGE_REPORTING_IDLE)
153 * state to indicate that we are requesting additional
157 atomic_set(&prdev->state, PAGE_REPORTING_REQUESTED);
275 int err = 0, state = PAGE_REPORTING_ACTIVE;
280 * Change the state to "Active" so that we can track if there is
282 * the state is not altered by the end of the pass we will switch
285 atomic_set(&prdev->state, state);
303 * If the state has reverted back to requested then there may be
307 state = atomic_cmpxchg(&prdev->state, state, PAGE_REPORTING_IDLE);
308 if (state == PAGE_REPORTING_REQUESTED)
327 /* initialize state and work structures */
328 atomic_set(&prdev->state, PAGE_REPORTING_IDLE);