Home
last modified time | relevance | path

Searched refs:wimax_dev (Results 1 - 20 of 20) sorted by relevance

/kernel/linux/linux-5.10/net/wimax/
H A Dop-rfkill.c23 * wimax_dev for more information.
35 * wimax_dev->op_rfkill_sw_toggle() Driver backend
62 * @wimax_dev: WiMAX device descriptor
78 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()
133 wimax_report_rfkill_sw(struct wimax_dev *wimax_dev, enum wimax_rf_state state) wimax_report_rfkill_sw() argument
190 __wimax_rf_toggle_radio(struct wimax_dev *wimax_dev, enum wimax_rf_state state) __wimax_rf_toggle_radio() argument
236 struct wimax_dev *wimax_dev = data; wimax_rfkill_set_radio_block() local
285 wimax_rfkill(struct wimax_dev *wimax_dev, enum wimax_rf_state state) wimax_rfkill() argument
332 wimax_rfkill_add(struct wimax_dev *wimax_dev) wimax_rfkill_add() argument
378 wimax_rfkill_rm(struct wimax_dev *wimax_dev) wimax_rfkill_rm() argument
401 struct wimax_dev *wimax_dev; wimax_gnl_doit_rfkill() local
[all...]
H A Dstack.c11 * - basic life cycle of 'struct wimax_dev' [wimax_dev_*()]; on
87 struct wimax_dev *wimax_dev, in wimax_gnl_re_state_change_alloc()
92 struct device *dev = wimax_dev_to_dev(wimax_dev); in wimax_gnl_re_state_change_alloc()
96 d_fnstart(3, dev, "(wimax_dev %p new_state %u old_state %u)\n", 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()
129 d_fnend(3, dev, "(wimax_dev %p new_state %u old_state %u) = %p\n", in wimax_gnl_re_state_change_alloc()
130 wimax_dev, new_state, old_state, report_skb); in wimax_gnl_re_state_change_alloc()
136 d_fnend(3, dev, "(wimax_dev in wimax_gnl_re_state_change_alloc()
86 wimax_gnl_re_state_change_alloc( struct wimax_dev *wimax_dev, enum wimax_st new_state, enum wimax_st old_state, void **header) wimax_gnl_re_state_change_alloc() argument
153 wimax_gnl_re_state_change_send( struct wimax_dev *wimax_dev, struct sk_buff *report_skb, void *header) wimax_gnl_re_state_change_send() argument
189 __wimax_state_change(struct wimax_dev *wimax_dev, enum wimax_st new_state) __wimax_state_change() argument
333 wimax_state_change(struct wimax_dev *wimax_dev, enum wimax_st new_state) wimax_state_change() argument
362 wimax_state_get(struct wimax_dev *wimax_dev) wimax_state_get() argument
382 wimax_dev_init(struct wimax_dev *wimax_dev) wimax_dev_init() argument
465 wimax_dev_add(struct wimax_dev *wimax_dev, struct net_device *net_dev) wimax_dev_add() argument
523 wimax_dev_rm(struct wimax_dev *wimax_dev) wimax_dev_rm() argument
[all...]
H A Did-table.c12 * We need a way to map family ID to a wimax_dev pointer.
44 * wimax_id_table_add - add a gennetlink familiy ID / wimax_dev mapping
46 * @wimax_dev: WiMAX device descriptor to associate to the Generic
52 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()
75 struct wimax_dev *wimax_dev = NULL; wimax_dev_get_by_genl_info() local
101 wimax_id_table_rm(struct wimax_dev *wimax_dev) wimax_id_table_rm() argument
118 struct wimax_dev *wimax_dev; wimax_id_table_release() local
[all...]
H A Dop-reset.c30 * @wimax_dev: WiMAX device descriptor
54 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 in wimax_reset()
90 struct wimax_dev *wimax_dev; wimax_gnl_doit_reset() local
[all...]
H A Dwimax-internal.h32 * (wimax_dev->mutex). As well, most operations need to call this
40 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 *, enu in __wimax_state_set()
63 wimax_debugfs_add(struct wimax_dev *wimax_dev) wimax_debugfs_add() argument
64 wimax_debugfs_rm(struct wimax_dev *wimax_dev) wimax_debugfs_rm() argument
[all...]
H A Dop-msg.c33 * to the driver calling wimax_dev->op_msg_from_user(). The return
53 * wimax_dev->op_msg_from_user() Delivery of message to the driver
76 * @wimax_dev: WiMAX device descriptor
101 * wimax_dev->net_dev pointer is set to point to a proper
105 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()
231 * @wimax_dev: WiMAX device descriptor
254 * wimax_dev
258 wimax_msg_send(struct wimax_dev *wimax_dev, struct sk_buff *skb) wimax_msg_send() argument
294 wimax_msg(struct wimax_dev *wimax_dev, const char *pipe_name, const void *buf, size_t size, gfp_t gfp_flags) wimax_msg() argument
320 struct wimax_dev *wimax_dev; wimax_gnl_doit_msg_from_user() local
[all...]
H A 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()
H A 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()
/kernel/linux/linux-5.10/include/net/
H A Dwimax.h31 * 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
395 struct wimax_dev { global() struct
437 wimax_dev_to_dev(struct wimax_dev *wimax_dev) wimax_dev_to_dev() argument
[all...]
/kernel/linux/linux-5.10/drivers/net/wimax/i2400m/
H A Ddriver.c83 * @wimax_dev: device descriptor
111 int i2400m_op_msg_from_user(struct wimax_dev *wimax_dev, in i2400m_op_msg_from_user() argument
117 struct i2400m *i2400m = wimax_dev_to_i2400m(wimax_dev); in i2400m_op_msg_from_user()
121 d_fnstart(4, dev, "(wimax_dev %p [i2400m %p] msg_buf %p " in i2400m_op_msg_from_user()
122 "msg_len %zu genl_info %p)\n", wimax_dev, i2400m, in i2400m_op_msg_from_user()
128 result = wimax_msg_send(&i2400m->wimax_dev, ack_skb); in i2400m_op_msg_from_user()
130 d_fnend(4, dev, "(wimax_dev %p [i2400m %p] msg_buf %p msg_len %zu " in i2400m_op_msg_from_user()
131 "genl_info %p) = %d\n", wimax_dev, i2400m, msg_buf, msg_len, in i2400m_op_msg_from_user()
149 * @wimax_dev
163 i2400m_op_reset(struct wimax_dev *wimax_dev) i2400m_op_reset() argument
272 struct wimax_dev *wimax_dev = &i2400m->wimax_dev; __i2400m_dev_start() local
389 struct wimax_dev *wimax_dev = &i2400m->wimax_dev; __i2400m_dev_stop() local
845 struct wimax_dev *wimax_dev = &i2400m->wimax_dev; i2400m_setup() local
[all...]
H A Dop-rfkill.c53 * @wimax_dev: device descriptor
69 int i2400m_op_rfkill_sw_toggle(struct wimax_dev *wimax_dev, in i2400m_op_rfkill_sw_toggle() argument
73 struct i2400m *i2400m = wimax_dev_to_i2400m(wimax_dev); in i2400m_op_rfkill_sw_toggle()
82 d_fnstart(4, dev, "(wimax_dev %p state %d)\n", wimax_dev, state); in i2400m_op_rfkill_sw_toggle()
133 d_fnend(4, dev, "(wimax_dev %p state %d) = %d\n", in i2400m_op_rfkill_sw_toggle()
134 wimax_dev, state, result); in i2400m_op_rfkill_sw_toggle()
166 wimax_state = wimax_state_get(&i2400m->wimax_dev); in i2400m_report_tlv_rf_switches_status()
174 wimax_report_rfkill_sw(&i2400m->wimax_dev, WIMAX_RF_O in i2400m_report_tlv_rf_switches_status()
[all...]
H A Di2400m.h117 * well as i2400m->wimax_dev.net_dev and call i2400m_setup(). The
352 * @wimax_dev: WiMAX generic device for linkage into the kernel WiMAX
507 * (wimax_dev->debugfs_dentry) so they can be removed when the
567 struct wimax_dev wimax_dev; /* FIRST! See doc */ member
666 struct i2400m *wimax_dev_to_i2400m(struct wimax_dev *wimax_dev) in wimax_dev_to_i2400m() argument
668 return container_of(wimax_dev, struct i2400m, wimax_dev); in wimax_dev_to_i2400m()
862 dev_hold(i2400m->wimax_dev in i2400m_get()
[all...]
H A Dcontrol.c315 struct wimax_dev *wimax_dev = &i2400m->wimax_dev; in i2400m_report_tlv_system_state() local
329 wimax_state_change(wimax_dev, WIMAX_ST_UNINITIALIZED); in i2400m_report_tlv_system_state()
334 wimax_state_change(wimax_dev, WIMAX_ST_RADIO_OFF); in i2400m_report_tlv_system_state()
340 wimax_state_change(wimax_dev, WIMAX_ST_READY); in i2400m_report_tlv_system_state()
345 wimax_state_change(wimax_dev, WIMAX_ST_READY); in i2400m_report_tlv_system_state()
350 wimax_state_change(wimax_dev, WIMAX_ST_SCANNING); in i2400m_report_tlv_system_state()
358 wimax_state_change(wimax_dev, WIMAX_ST_CONNECTED); in i2400m_report_tlv_system_state()
392 struct wimax_dev *wimax_de in i2400m_report_tlv_media_status() local
[all...]
H A Dusb-tx.c245 struct wimax_dev *wimax_dev = &i2400m->wimax_dev; in i2400mu_tx_setup() local
249 wimax_dev->name); in i2400mu_tx_setup()
H A Dusb-rx.c334 struct net_device *net_dev = i2400m->wimax_dev.net_dev; in i2400mu_rxd()
432 struct wimax_dev *wimax_dev = &i2400m->wimax_dev; in i2400mu_rx_setup() local
436 wimax_dev->name); in i2400mu_rx_setup()
H A Dnetdev.c142 struct net_device *net_dev = i2400m->wimax_dev.net_dev; in i2400m_wake_tx_work()
456 struct net_device *net_dev = i2400m->wimax_dev.net_dev; in i2400m_net_rx()
478 i2400m_rx_fake_eth_header(i2400m->wimax_dev.net_dev, in i2400m_net_rx()
482 skb->dev = i2400m->wimax_dev.net_dev; in i2400m_net_rx()
521 struct net_device *net_dev = i2400m->wimax_dev.net_dev; in i2400m_net_erx()
529 i2400m_rx_fake_eth_header(i2400m->wimax_dev.net_dev, in i2400m_net_erx()
533 skb->dev = i2400m->wimax_dev.net_dev; in i2400m_net_erx()
H A Drx.c290 struct wimax_dev *wimax_dev = &i2400m->wimax_dev; in i2400m_rx_ctl_ack() local
302 ack_skb = wimax_msg_alloc(wimax_dev, NULL, payload, size, GFP_KERNEL); in i2400m_rx_ctl_ack()
402 wimax_msg(&i2400m->wimax_dev, "echo", in i2400m_rx_ctl()
404 result = wimax_msg(&i2400m->wimax_dev, NULL, l3l4_hdr, size, in i2400m_rx_ctl()
439 struct wimax_dev *wimax_dev = &i2400m->wimax_dev; in i2400m_rx_trace() local
454 result = wimax_msg(wimax_dev, "trac in i2400m_rx_trace()
[all...]
H A Ddebugfs.c26 *val = netif_queue_stopped(i2400m->wimax_dev.net_dev); in debugfs_netdev_queue_stopped_get()
192 struct dentry *dentry = i2400m->wimax_dev.debugfs_dentry; in i2400m_debugfs_add()
220 * wimax_dev->op_msg_from_user() into in i2400m_debugfs_add()
H A Dusb.c256 * and wimax_dev->op_reset.
372 struct dentry *dentry = i2400mu->i2400m.wimax_dev.debugfs_dentry; in i2400mu_debugfs_add()
438 i2400m->wimax_dev.net_dev = net_dev; in i2400mu_probe()
525 struct net_device *net_dev = i2400m->wimax_dev.net_dev; in i2400mu_disconnect()
H A Dfw.c1026 struct net_device *net_dev = i2400m->wimax_dev.net_dev; in i2400m_read_mac_addr()

Completed in 12 milliseconds