Lines Matching defs:i2400m
20 #include "i2400m.h"
21 #include <linux/wimax/i2400m.h>
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)
37 return i2400m->state == I2400M_SS_RF_OFF
38 || i2400m->state == I2400M_SS_RF_SHUTDOWN;
41 return i2400m->state != I2400M_SS_RF_OFF
42 && i2400m->state != I2400M_SS_RF_SHUTDOWN;
64 * NOTE: the i2400m has a strict state machine; we can only set the
73 struct i2400m *i2400m = wimax_dev_to_i2400m(wimax_dev);
74 struct device *dev = i2400m_dev(i2400m);
104 ack_skb = i2400m_msg_to_dev(i2400m, cmd, sizeof(*cmd));
121 i2400m->state_wq, i2400m_radio_is(i2400m, state),
144 * @i2400m: device descriptor
152 struct i2400m *i2400m,
155 struct device *dev = i2400m_dev(i2400m);
162 d_fnstart(3, dev, "(i2400m %p rfss %p [hw %u sw %u])\n",
163 i2400m, rfss, hw, sw);
166 wimax_state = wimax_state_get(&i2400m->wimax_dev);
174 wimax_report_rfkill_sw(&i2400m->wimax_dev, WIMAX_RF_ON);
177 wimax_report_rfkill_sw(&i2400m->wimax_dev, WIMAX_RF_OFF);
185 wimax_report_rfkill_hw(&i2400m->wimax_dev, WIMAX_RF_ON);
188 wimax_report_rfkill_hw(&i2400m->wimax_dev, WIMAX_RF_OFF);
194 d_fnend(3, dev, "(i2400m %p rfss %p [hw %u sw %u]) = void\n",
195 i2400m, rfss, hw, sw);