Lines Matching defs:state
238 enum afs_cell_state state;
299 wait_var_event(&cell->state,
301 state = smp_load_acquire(&cell->state); /* vs error */
302 state == AFS_CELL_ACTIVE || state == AFS_CELL_REMOVED;
305 /* Check the state obtained from the wait check. */
306 if (state == AFS_CELL_REMOVED) {
746 _debug("state %u", cell->state);
747 switch (cell->state) {
756 smp_store_release(&cell->state, AFS_CELL_REMOVED);
759 if (cell->state == AFS_CELL_REMOVED) {
760 wake_up_var(&cell->state);
763 if (cell->state == AFS_CELL_FAILED)
765 smp_store_release(&cell->state, AFS_CELL_UNSET);
766 wake_up_var(&cell->state);
770 smp_store_release(&cell->state, AFS_CELL_ACTIVATING);
771 wake_up_var(&cell->state);
779 smp_store_release(&cell->state, AFS_CELL_ACTIVE);
780 wake_up_var(&cell->state);
792 smp_store_release(&cell->state, AFS_CELL_DEACTIVATING);
793 wake_up_var(&cell->state);
800 smp_store_release(&cell->state, AFS_CELL_INACTIVE);
801 wake_up_var(&cell->state);
810 _debug("bad state %u", cell->state);
811 BUG(); /* Unhandled state */
817 smp_store_release(&cell->state, AFS_CELL_FAILED); /* vs error */
818 wake_up_var(&cell->state);
822 smp_store_release(&cell->state, AFS_CELL_ACTIVE);
823 wake_up_var(&cell->state);
828 _leave(" [done %u]", cell->state);