Lines Matching defs:state
30 * initialization to let the stack know the intial HW state.
45 * Return true if the i2400m radio is in the requested wimax_rf_state state
49 int i2400m_radio_is(struct i2400m *i2400m, enum wimax_rf_state state)
51 if (state == WIMAX_RF_OFF)
52 return i2400m->state == I2400M_SS_RF_OFF
53 || i2400m->state == I2400M_SS_RF_SHUTDOWN;
54 else if (state == WIMAX_RF_ON)
55 /* state == WIMAX_RF_ON */
56 return i2400m->state != I2400M_SS_RF_OFF
57 && i2400m->state != I2400M_SS_RF_SHUTDOWN;
76 * This function will set the device's sofware RF-Kill switch state to
79 * NOTE: the i2400m has a strict state machine; we can only set the
82 * being in the right state (-EILSEQ).
85 enum wimax_rf_state state)
97 d_fnstart(4, dev, "(wimax_dev %p state %d)\n", wimax_dev, state);
108 switch (state) {
134 /* Now we wait for the state to change to RADIO_OFF or RADIO_ON */
136 i2400m->state_wq, i2400m_radio_is(i2400m, state),
141 dev_err(dev, "Error waiting for device to toggle RF state: "
148 d_fnend(4, dev, "(wimax_dev %p state %d) = %d\n",
149 wimax_dev, state, result);
162 * or used until the device is in a state of RADIO_OFF
182 d_printf(3, dev, "ignoring RF switches report, state %u\n",
194 dev_err(dev, "HW BUG? Unknown RF SW state 0x%x\n", sw);
205 dev_err(dev, "HW BUG? Unknown RF HW state 0x%x\n", hw);