Home
last modified time | relevance | path

Searched refs:wimax_dev (Results 1 – 8 of 8) sorted by relevance

/net/wimax/
Dop-rfkill.c78 void wimax_report_rfkill_hw(struct wimax_dev *wimax_dev, in wimax_report_rfkill_hw() argument
82 struct device *dev = wimax_dev_to_dev(wimax_dev); in wimax_report_rfkill_hw()
85 d_fnstart(3, dev, "(wimax_dev %p state %u)\n", wimax_dev, state); in wimax_report_rfkill_hw()
89 mutex_lock(&wimax_dev->mutex); in wimax_report_rfkill_hw()
90 result = wimax_dev_is_ready(wimax_dev); in wimax_report_rfkill_hw()
94 if (state != wimax_dev->rf_hw) { in wimax_report_rfkill_hw()
95 wimax_dev->rf_hw = state; in wimax_report_rfkill_hw()
96 if (wimax_dev->rf_hw == WIMAX_RF_ON && in wimax_report_rfkill_hw()
97 wimax_dev->rf_sw == WIMAX_RF_ON) in wimax_report_rfkill_hw()
102 result = rfkill_set_hw_state(wimax_dev->rfkill, in wimax_report_rfkill_hw()
[all …]
Dstack.c87 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()
[all …]
Did-table.c52 void wimax_id_table_add(struct wimax_dev *wimax_dev) in wimax_id_table_add() argument
54 d_fnstart(3, NULL, "(wimax_dev %p)\n", wimax_dev); in wimax_id_table_add()
56 list_add(&wimax_dev->id_table_node, &wimax_id_table); in wimax_id_table_add()
58 d_fnend(3, NULL, "(wimax_dev %p)\n", wimax_dev); in wimax_id_table_add()
72 struct wimax_dev *wimax_dev_get_by_genl_info( in wimax_dev_get_by_genl_info()
75 struct wimax_dev *wimax_dev = NULL; in wimax_dev_get_by_genl_info() local
79 list_for_each_entry(wimax_dev, &wimax_id_table, id_table_node) { in wimax_dev_get_by_genl_info()
80 if (wimax_dev->net_dev->ifindex == ifindex) { in wimax_dev_get_by_genl_info()
81 dev_hold(wimax_dev->net_dev); in wimax_dev_get_by_genl_info()
85 wimax_dev = NULL; in wimax_dev_get_by_genl_info()
[all …]
Dwimax-internal.h40 int wimax_dev_is_ready(struct wimax_dev *wimax_dev) in wimax_dev_is_ready() argument
42 if (wimax_dev->state == __WIMAX_ST_NULL) in wimax_dev_is_ready()
44 if (wimax_dev->state == WIMAX_ST_DOWN) in wimax_dev_is_ready()
46 if (wimax_dev->state == __WIMAX_ST_QUIESCING) in wimax_dev_is_ready()
53 void __wimax_state_set(struct wimax_dev *wimax_dev, enum wimax_st state) in __wimax_state_set() argument
55 wimax_dev->state = state; in __wimax_state_set()
57 void __wimax_state_change(struct wimax_dev *, enum wimax_st);
60 void wimax_debugfs_add(struct wimax_dev *);
61 void wimax_debugfs_rm(struct wimax_dev *);
63 static inline void wimax_debugfs_add(struct wimax_dev *wimax_dev) {} in wimax_debugfs_add() argument
[all …]
Dop-reset.c54 int wimax_reset(struct wimax_dev *wimax_dev) in wimax_reset() argument
57 struct device *dev = wimax_dev_to_dev(wimax_dev); in wimax_reset()
61 d_fnstart(3, dev, "(wimax_dev %p)\n", wimax_dev); in wimax_reset()
62 mutex_lock(&wimax_dev->mutex); in wimax_reset()
63 dev_hold(wimax_dev->net_dev); in wimax_reset()
64 state = wimax_dev->state; in wimax_reset()
65 mutex_unlock(&wimax_dev->mutex); in wimax_reset()
68 mutex_lock(&wimax_dev->mutex_reset); in wimax_reset()
69 result = wimax_dev->op_reset(wimax_dev); in wimax_reset()
70 mutex_unlock(&wimax_dev->mutex_reset); in wimax_reset()
[all …]
Dop-msg.c105 struct sk_buff *wimax_msg_alloc(struct wimax_dev *wimax_dev, in wimax_msg_alloc() argument
111 struct device *dev = wimax_dev_to_dev(wimax_dev); in wimax_msg_alloc()
130 wimax_dev->net_dev->ifindex); in wimax_msg_alloc()
258 int wimax_msg_send(struct wimax_dev *wimax_dev, struct sk_buff *skb) in wimax_msg_send() argument
260 struct device *dev = wimax_dev_to_dev(wimax_dev); in wimax_msg_send()
294 int wimax_msg(struct wimax_dev *wimax_dev, const char *pipe_name, in wimax_msg() argument
300 skb = wimax_msg_alloc(wimax_dev, pipe_name, buf, size, gfp_flags); in wimax_msg()
304 result = wimax_msg_send(wimax_dev, skb); in wimax_msg()
320 struct wimax_dev *wimax_dev; in wimax_gnl_doit_msg_from_user() local
335 wimax_dev = wimax_dev_get_by_genl_info(info, ifindex); in wimax_gnl_doit_msg_from_user()
[all …]
Ddebugfs.c16 void wimax_debugfs_add(struct wimax_dev *wimax_dev) in wimax_debugfs_add() argument
18 struct net_device *net_dev = wimax_dev->net_dev; in wimax_debugfs_add()
24 wimax_dev->debugfs_dentry = dentry; in wimax_debugfs_add()
35 void wimax_debugfs_rm(struct wimax_dev *wimax_dev) in wimax_debugfs_rm() argument
37 debugfs_remove_recursive(wimax_dev->debugfs_dentry); in wimax_debugfs_rm()
Dop-state-get.c34 struct wimax_dev *wimax_dev; in wimax_gnl_doit_state_get() local
43 wimax_dev = wimax_dev_get_by_genl_info(info, ifindex); in wimax_gnl_doit_state_get()
44 if (wimax_dev == NULL) in wimax_gnl_doit_state_get()
47 result = wimax_state_get(wimax_dev); in wimax_gnl_doit_state_get()
48 dev_put(wimax_dev->net_dev); in wimax_gnl_doit_state_get()