Lines Matching refs:wimax_dev
31 * Embed a `struct wimax_dev` at the beginning of the device's
33 * `struct wimax_dev`s documentation.
68 * `struct wimax_dev`.
158 * - a function pointer in `struct wimax_dev`: optional, as the
162 * All function pointers are named wimax_dev->op_*(), and drivers
183 * The op_*() function pointers will not be called if the wimax_dev is
197 * wimax_dev->op_msg_from_user().
201 * RFKILL support is built into the wimax_dev layer; the driver just
204 * turn the radio off, it will call wimax_dev->op_rfkill_sw_toggle(),
233 * through wimax_dev->op_reset().
245 struct wimax_dev;
248 * struct wimax_dev - Generic WiMAX device
279 * NOTE: wimax_dev->mutex is NOT locked when this op is being
280 * called; however, wimax_dev->mutex_reset IS locked to ensure
302 * state change, that require wimax_dev->mutex.
321 * 1. Embed a &struct wimax_dev at *the beginning* the network
361 * wimax_dev->op_* function pointers
367 * through the wimax_dev->op*() function pointers will always be
370 * For locking, take wimax_dev->mutex is taken; (most) operations in
379 * to be released with dev_put(wimax_dev->net_dev).
395 struct wimax_dev {
402 int (*op_msg_from_user)(struct wimax_dev *wimax_dev,
406 int (*op_rfkill_sw_toggle)(struct wimax_dev *wimax_dev,
408 int (*op_reset)(struct wimax_dev *wimax_dev);
426 void wimax_dev_init(struct wimax_dev *);
427 int wimax_dev_add(struct wimax_dev *, struct net_device *);
428 void wimax_dev_rm(struct wimax_dev *);
431 struct wimax_dev *net_dev_to_wimax(struct net_device *net_dev)
437 struct device *wimax_dev_to_dev(struct wimax_dev *wimax_dev)
439 return wimax_dev->net_dev->dev.parent;
442 void wimax_state_change(struct wimax_dev *, enum wimax_st);
443 enum wimax_st wimax_state_get(struct wimax_dev *);
451 void wimax_report_rfkill_hw(struct wimax_dev *, enum wimax_rf_state);
452 void wimax_report_rfkill_sw(struct wimax_dev *, enum wimax_rf_state);
460 * wimax_msg(wimax_dev, pipe_name, buf, buf_size, GFP_KERNEL);
464 * skb = wimax_msg_alloc(wimax_dev, pipe_name, buf_size, GFP_KERNEL);
466 * wimax_msg_send(wimax_dev, pipe_name, skb);
478 struct sk_buff *wimax_msg_alloc(struct wimax_dev *, const char *, const void *,
480 int wimax_msg_send(struct wimax_dev *, struct sk_buff *);
481 int wimax_msg(struct wimax_dev *, const char *, const void *, size_t, gfp_t);
494 * (with a properly referenced `struct wimax_dev`).
497 * device's control structure and (as such) the 'struct wimax_dev' is
500 int wimax_rfkill(struct wimax_dev *, enum wimax_rf_state);
501 int wimax_reset(struct wimax_dev *);