Lines Matching defs:state
15 * initialization to let the stack know the initial HW state.
30 * Return true if the i2400m radio is in the requested wimax_rf_state state
34 int i2400m_radio_is(struct i2400m *i2400m, enum wimax_rf_state state)
36 if (state == WIMAX_RF_OFF)
37 return i2400m->state == I2400M_SS_RF_OFF
38 || i2400m->state == I2400M_SS_RF_SHUTDOWN;
39 else if (state == WIMAX_RF_ON)
40 /* state == WIMAX_RF_ON */
41 return i2400m->state != I2400M_SS_RF_OFF
42 && i2400m->state != I2400M_SS_RF_SHUTDOWN;
61 * This function will set the device's software RF-Kill switch state to
64 * NOTE: the i2400m has a strict state machine; we can only set the
67 * being in the right state (-EILSEQ).
70 enum wimax_rf_state state)
82 d_fnstart(4, dev, "(wimax_dev %p state %d)\n", wimax_dev, state);
93 switch (state) {
119 /* Now we wait for the state to change to RADIO_OFF or RADIO_ON */
121 i2400m->state_wq, i2400m_radio_is(i2400m, state),
126 dev_err(dev, "Error waiting for device to toggle RF state: "
133 d_fnend(4, dev, "(wimax_dev %p state %d) = %d\n",
134 wimax_dev, state, result);
148 * or used until the device is in a state of RADIO_OFF
168 d_printf(3, dev, "ignoring RF switches report, state %u\n",
180 dev_err(dev, "HW BUG? Unknown RF SW state 0x%x\n", sw);
191 dev_err(dev, "HW BUG? Unknown RF HW state 0x%x\n", hw);