Lines Matching refs:state
96 * state and reader count. It should only be called when no slot is in use.
104 * sets its state to PSA_SLOT_FILLING and then returns the slot.
106 * On success, the key slot's state is PSA_SLOT_FILLING.
107 * It is the responsibility of the caller to change the slot's state to
123 * unexpected state.
128 /** Change the state of a key slot.
130 * This function changes the state of the key slot from expected_state to
131 * new state. If the state of the slot was not expected_state, the state is
138 * \param[in] expected_state The current state of the slot.
139 * \param[in] new_state The new state of the slot.
142 The key slot's state variable is new_state.
144 * The slot's state was not expected_state.
150 if (slot->state != expected_state) {
153 slot->state = new_state;
169 * increased, or the slot's state was not PSA_SLOT_FULL.
173 if ((slot->state != PSA_SLOT_FULL) ||
185 * If the state of the slot is PSA_SLOT_PENDING_DELETION,
200 * The slot's state was neither PSA_SLOT_FULL nor
202 * Or a wipe was attempted and the slot's state was not
221 * The slot's state was neither PSA_SLOT_FULL nor
223 * Or a wipe was attempted and the slot's state was not