Lines Matching refs:wimax_dev
87 struct wimax_dev *wimax_dev, in wimax_gnl_re_state_change_alloc() argument
92 struct device *dev = wimax_dev_to_dev(wimax_dev); in wimax_gnl_re_state_change_alloc()
97 wimax_dev, new_state, old_state); in wimax_gnl_re_state_change_alloc()
124 wimax_dev->net_dev->ifindex); in wimax_gnl_re_state_change_alloc()
130 wimax_dev, new_state, old_state, report_skb); in wimax_gnl_re_state_change_alloc()
137 wimax_dev, new_state, old_state, result); in wimax_gnl_re_state_change_alloc()
154 struct wimax_dev *wimax_dev, struct sk_buff *report_skb, in wimax_gnl_re_state_change_send() argument
158 struct device *dev = wimax_dev_to_dev(wimax_dev); in wimax_gnl_re_state_change_send()
160 wimax_dev, report_skb); in wimax_gnl_re_state_change_send()
169 wimax_dev, report_skb, result); in wimax_gnl_re_state_change_send()
189 void __wimax_state_change(struct wimax_dev *wimax_dev, enum wimax_st new_state) in __wimax_state_change() argument
191 struct device *dev = wimax_dev_to_dev(wimax_dev); in __wimax_state_change()
192 enum wimax_st old_state = wimax_dev->state; in __wimax_state_change()
197 wimax_dev, new_state, old_state); in __wimax_state_change()
208 wimax_dev, new_state, old_state, &header); in __wimax_state_change()
264 netif_tx_disable(wimax_dev->net_dev); in __wimax_state_change()
265 netif_carrier_off(wimax_dev->net_dev); in __wimax_state_change()
270 wimax_dev, wimax_dev->state); in __wimax_state_change()
279 "from %u\n", wimax_dev, wimax_dev->state); in __wimax_state_change()
297 netif_carrier_on(wimax_dev->net_dev); in __wimax_state_change()
298 netif_wake_queue(wimax_dev->net_dev); in __wimax_state_change()
304 __wimax_state_set(wimax_dev, new_state); in __wimax_state_change()
306 wimax_gnl_re_state_change_send(wimax_dev, stch_skb, header); in __wimax_state_change()
309 wimax_dev, new_state, old_state); in __wimax_state_change()
333 void wimax_state_change(struct wimax_dev *wimax_dev, enum wimax_st new_state) in wimax_state_change() argument
347 mutex_lock(&wimax_dev->mutex); in wimax_state_change()
348 if (wimax_dev->state > __WIMAX_ST_NULL) in wimax_state_change()
349 __wimax_state_change(wimax_dev, new_state); in wimax_state_change()
350 mutex_unlock(&wimax_dev->mutex); in wimax_state_change()
362 enum wimax_st wimax_state_get(struct wimax_dev *wimax_dev) in wimax_state_get() argument
365 mutex_lock(&wimax_dev->mutex); in wimax_state_get()
366 state = wimax_dev->state; in wimax_state_get()
367 mutex_unlock(&wimax_dev->mutex); in wimax_state_get()
382 void wimax_dev_init(struct wimax_dev *wimax_dev) in wimax_dev_init() argument
384 INIT_LIST_HEAD(&wimax_dev->id_table_node); in wimax_dev_init()
385 __wimax_state_set(wimax_dev, __WIMAX_ST_NULL); in wimax_dev_init()
386 mutex_init(&wimax_dev->mutex); in wimax_dev_init()
387 mutex_init(&wimax_dev->mutex_reset); in wimax_dev_init()
465 int wimax_dev_add(struct wimax_dev *wimax_dev, struct net_device *net_dev) in wimax_dev_add() argument
471 d_fnstart(3, dev, "(wimax_dev %p net_dev %p)\n", wimax_dev, net_dev); in wimax_dev_add()
476 wimax_dev->net_dev = net_dev; in wimax_dev_add()
477 result = wimax_rfkill_add(wimax_dev); in wimax_dev_add()
482 mutex_lock(&wimax_dev->mutex); in wimax_dev_add()
483 wimax_id_table_add(wimax_dev); in wimax_dev_add()
484 wimax_debugfs_add(wimax_dev); in wimax_dev_add()
486 __wimax_state_set(wimax_dev, WIMAX_ST_DOWN); in wimax_dev_add()
487 mutex_unlock(&wimax_dev->mutex); in wimax_dev_add()
493 d_fnend(3, dev, "(wimax_dev %p net_dev %p) = 0\n", wimax_dev, net_dev); in wimax_dev_add()
498 wimax_dev, net_dev, result); in wimax_dev_add()
523 void wimax_dev_rm(struct wimax_dev *wimax_dev) in wimax_dev_rm() argument
525 d_fnstart(3, NULL, "(wimax_dev %p)\n", wimax_dev); in wimax_dev_rm()
527 mutex_lock(&wimax_dev->mutex); in wimax_dev_rm()
528 __wimax_state_change(wimax_dev, __WIMAX_ST_QUIESCING); in wimax_dev_rm()
529 wimax_debugfs_rm(wimax_dev); in wimax_dev_rm()
530 wimax_id_table_rm(wimax_dev); in wimax_dev_rm()
531 __wimax_state_change(wimax_dev, WIMAX_ST_DOWN); in wimax_dev_rm()
532 mutex_unlock(&wimax_dev->mutex); in wimax_dev_rm()
533 wimax_rfkill_rm(wimax_dev); in wimax_dev_rm()
534 d_fnend(3, NULL, "(wimax_dev %p) = void\n", wimax_dev); in wimax_dev_rm()