Lines Matching +full:right +full:- +full:most
1 /* SPDX-License-Identifier: GPL-2.0-only */
6 * Copyright (C) 2007 Intel Corporation <linux-wimax@intel.com>
7 * Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>
32 * (wimax_dev->mutex). As well, most operations need to call this
33 * function to check if the state is the right one.
35 * An error value will be returned if the state is not the right
42 if (wimax_dev->state == __WIMAX_ST_NULL) in wimax_dev_is_ready()
43 return -EINVAL; /* Device is not even registered! */ in wimax_dev_is_ready()
44 if (wimax_dev->state == WIMAX_ST_DOWN) in wimax_dev_is_ready()
45 return -ENOMEDIUM; in wimax_dev_is_ready()
46 if (wimax_dev->state == __WIMAX_ST_QUIESCING) in wimax_dev_is_ready()
47 return -ESHUTDOWN; in wimax_dev_is_ready()
55 wimax_dev->state = state; in __wimax_state_set()