Lines Matching defs:state
63 unsigned int state;
65 /* Check to see if we are in desired state */
66 state = atomic_read(&prdev->state);
67 if (state == PAGE_REPORTING_REQUESTED)
74 state = atomic_xchg(&prdev->state, PAGE_REPORTING_REQUESTED);
75 if (state != PAGE_REPORTING_IDLE)
190 * state to indicate that we are requesting additional
194 atomic_set(&prdev->state, PAGE_REPORTING_REQUESTED);
312 int err = 0, state = PAGE_REPORTING_ACTIVE;
317 * Change the state to "Active" so that we can track if there is
319 * the state is not altered by the end of the pass we will switch
322 atomic_set(&prdev->state, state);
340 * If the state has reverted back to requested then there may be
344 state = atomic_cmpxchg(&prdev->state, state, PAGE_REPORTING_IDLE);
345 if (state == PAGE_REPORTING_REQUESTED)
379 /* initialize state and work structures */
380 atomic_set(&prdev->state, PAGE_REPORTING_IDLE);