Lines Matching defs:state
16 * - device state machine [wimax_state_change()] and support to send
17 * reports to user space when the state changes
24 * [__]wimax_state_change() Called by drivers to update device's state
77 * Creates and fills a basic state change message; different code
179 pr_err("SW BUG! Forbidden state change %u -> %u\n",
186 * Set the current state of a WiMAX device [unlocking version of
192 enum wimax_st old_state = wimax_dev->state;
200 dev_err(dev, "SW BUG: requesting invalid state %u\n",
210 /* Verify the state transition and do exit-from-state actions */
269 dev_err(dev, "SW BUG: wimax_dev %p is in unknown state %u\n",
270 wimax_dev, wimax_dev->state);
275 /* Execute the actions of entry to the new state */
278 dev_err(dev, "SW BUG: wimax_dev %p entering NULL state "
279 "from %u\n", wimax_dev, wimax_dev->state);
280 WARN_ON(1); /* Nobody can enter this state */
314 * wimax_state_change - Set the current state of a WiMAX device
317 * @new_state: New state to switch to
319 * This implements the state changes for the wimax devices. It will
321 * - verify that the state transition is legal (for now it'll just
325 * - perform the actions needed for leaving the current state and
326 * whichever are needed for entering the new state.
328 * - issue a report to user space indicating the new state (and an
329 * optional payload with information about the new state).
337 * __WIMAX_ST_NULL state unless by calling wimax_dev_add(). If
338 * the wimax_dev's state is still NULL, we ignore any request
339 * to change its state because it means it hasn't been yet
348 if (wimax_dev->state > __WIMAX_ST_NULL)
356 * wimax_state_get() - Return the current state of a WiMAX device
360 * Returns: Current state of the device according to its driver.
364 enum wimax_st state;
366 state = wimax_dev->state;
368 return state;
517 * Reentrancy control is ensured by setting the state to
519 * wimax_*rfkill*() will be stopped by the quiescing state; ops coming