Home
last modified time | relevance | path

Searched refs:i2400m (Results 1 – 24 of 24) sorted by relevance

/Linux-v5.10/drivers/net/wimax/i2400m/
Ddriver.c117 struct i2400m *i2400m = wimax_dev_to_i2400m(wimax_dev); in i2400m_op_msg_from_user() local
118 struct device *dev = i2400m_dev(i2400m); in i2400m_op_msg_from_user()
122 "msg_len %zu genl_info %p)\n", wimax_dev, i2400m, in i2400m_op_msg_from_user()
124 ack_skb = i2400m_msg_to_dev(i2400m, msg_buf, msg_len); in i2400m_op_msg_from_user()
128 result = wimax_msg_send(&i2400m->wimax_dev, ack_skb); 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()
166 struct i2400m *i2400m = wimax_dev_to_i2400m(wimax_dev); in i2400m_op_reset() local
167 struct device *dev = i2400m_dev(i2400m); in i2400m_op_reset()
174 mutex_lock(&i2400m->init_mutex); in i2400m_op_reset()
175 i2400m->reset_ctx = &ctx; in i2400m_op_reset()
[all …]
Dtx.c323 size_t __i2400m_tx_tail_room(struct i2400m *i2400m) in __i2400m_tx_tail_room() argument
328 if (unlikely(i2400m->tx_in == 0)) in __i2400m_tx_tail_room()
330 tx_in = i2400m->tx_in % I2400M_TX_BUF_SIZE; in __i2400m_tx_tail_room()
434 void *i2400m_tx_fifo_push(struct i2400m *i2400m, size_t size, in i2400m_tx_fifo_push() argument
437 struct device *dev = i2400m_dev(i2400m); in i2400m_tx_fifo_push()
442 room = I2400M_TX_BUF_SIZE - (i2400m->tx_in - i2400m->tx_out); in i2400m_tx_fifo_push()
449 tail_room = __i2400m_tx_tail_room(i2400m); in i2400m_tx_fifo_push()
474 ptr = i2400m->tx_buf + i2400m->tx_in % I2400M_TX_BUF_SIZE; in i2400m_tx_fifo_push()
476 i2400m->tx_in % I2400M_TX_BUF_SIZE); in i2400m_tx_fifo_push()
477 i2400m->tx_in += size; in i2400m_tx_fifo_push()
[all …]
Ddebugfs.c25 struct i2400m *i2400m = data; in debugfs_netdev_queue_stopped_get() local
26 *val = netif_queue_stopped(i2400m->wimax_dev.net_dev); in debugfs_netdev_queue_stopped_get()
44 struct i2400m *i2400m = filp->private_data; in i2400m_rx_stats_read() local
52 spin_lock_irqsave(&i2400m->rx_lock, flags); in i2400m_rx_stats_read()
54 i2400m->rx_pl_num, i2400m->rx_pl_min, in i2400m_rx_stats_read()
55 i2400m->rx_pl_max, i2400m->rx_num, in i2400m_rx_stats_read()
56 i2400m->rx_size_acc, in i2400m_rx_stats_read()
57 i2400m->rx_size_min, i2400m->rx_size_max); in i2400m_rx_stats_read()
58 spin_unlock_irqrestore(&i2400m->rx_lock, flags); in i2400m_rx_stats_read()
68 struct i2400m *i2400m = filp->private_data; in i2400m_rx_stats_write() local
[all …]
Di2400m.h566 struct i2400m { struct
584 int (*bus_setup)(struct i2400m *); argument
585 int (*bus_dev_start)(struct i2400m *); argument
586 void (*bus_dev_stop)(struct i2400m *); argument
587 void (*bus_release)(struct i2400m *); argument
588 void (*bus_tx_kick)(struct i2400m *); argument
589 int (*bus_reset)(struct i2400m *, enum i2400m_reset_type); argument
590 ssize_t (*bus_bm_cmd_send)(struct i2400m *, argument
593 ssize_t (*bus_bm_wait_for_ack)(struct i2400m *, argument
666 struct i2400m *wimax_dev_to_i2400m(struct wimax_dev *wimax_dev) in wimax_dev_to_i2400m() argument
[all …]
Drx.c185 struct i2400m *i2400m = container_of(ws, struct i2400m, rx_report_ws); in i2400m_report_hook_work() local
186 struct device *dev = i2400m_dev(i2400m); in i2400m_report_hook_work()
192 spin_lock_irqsave(&i2400m->rx_lock, flags); in i2400m_report_hook_work()
193 list_splice_init(&i2400m->rx_reports, &list); in i2400m_report_hook_work()
194 spin_unlock_irqrestore(&i2400m->rx_lock, flags); in i2400m_report_hook_work()
201 i2400m_report_hook(i2400m, args->l3l4_hdr, args->size); in i2400m_report_hook_work()
214 void i2400m_report_hook_flush(struct i2400m *i2400m) in i2400m_report_hook_flush() argument
216 struct device *dev = i2400m_dev(i2400m); in i2400m_report_hook_flush()
222 spin_lock_irqsave(&i2400m->rx_lock, flags); in i2400m_report_hook_flush()
223 list_splice_init(&i2400m->rx_reports, &list); in i2400m_report_hook_flush()
[all …]
Dnetdev.c89 struct i2400m *i2400m = net_dev_to_i2400m(net_dev); in i2400m_open() local
90 struct device *dev = i2400m_dev(i2400m); in i2400m_open()
92 d_fnstart(3, dev, "(net_dev %p [i2400m %p])\n", net_dev, i2400m); in i2400m_open()
94 mutex_lock(&i2400m->init_mutex); in i2400m_open()
95 if (i2400m->updown) in i2400m_open()
99 mutex_unlock(&i2400m->init_mutex); in i2400m_open()
101 net_dev, i2400m, result); in i2400m_open()
109 struct i2400m *i2400m = net_dev_to_i2400m(net_dev); in i2400m_stop() local
110 struct device *dev = i2400m_dev(i2400m); in i2400m_stop()
112 d_fnstart(3, dev, "(net_dev %p [i2400m %p])\n", net_dev, i2400m); in i2400m_stop()
[all …]
Dfw.c386 int i2400m_is_boot_barker(struct i2400m *i2400m, in i2400m_is_boot_barker() argument
390 struct device *dev = i2400m_dev(i2400m); in i2400m_is_boot_barker()
400 if (i2400m->barker && in i2400m_is_boot_barker()
401 !memcmp(buf, i2400m->barker, sizeof(i2400m->barker->data))) in i2400m_is_boot_barker()
410 if (i2400m->barker == NULL) { in i2400m_is_boot_barker()
411 i2400m->barker = barker; in i2400m_is_boot_barker()
415 i2400m->sboot = 0; in i2400m_is_boot_barker()
417 i2400m->sboot = 1; in i2400m_is_boot_barker()
418 } else if (i2400m->barker != barker) { in i2400m_is_boot_barker()
422 le32_to_cpu(i2400m->barker->data[0]), in i2400m_is_boot_barker()
[all …]
Dcontrol.c162 struct i2400m *i2400m, in i2400m_tlv_buffer_walk() argument
166 struct device *dev = i2400m_dev(i2400m); in i2400m_tlv_buffer_walk()
225 struct i2400m *i2400m, in i2400m_tlv_find() argument
230 struct device *dev = i2400m_dev(i2400m); in i2400m_tlv_find()
232 while ((tlv = i2400m_tlv_buffer_walk(i2400m, tlv_hdr, size, tlv))) { in i2400m_tlv_find()
311 void i2400m_report_tlv_system_state(struct i2400m *i2400m, in i2400m_report_tlv_system_state() argument
314 struct device *dev = i2400m_dev(i2400m); in i2400m_report_tlv_system_state()
315 struct wimax_dev *wimax_dev = &i2400m->wimax_dev; in i2400m_report_tlv_system_state()
318 d_fnstart(3, dev, "(i2400m %p ss %p [%u])\n", i2400m, ss, i2400m_state); in i2400m_report_tlv_system_state()
320 if (i2400m->state != i2400m_state) { in i2400m_report_tlv_system_state()
[all …]
Dusb.c87 int i2400mu_bus_dev_start(struct i2400m *i2400m) in i2400mu_bus_dev_start() argument
90 struct i2400mu *i2400mu = container_of(i2400m, struct i2400mu, i2400m); in i2400mu_bus_dev_start()
93 d_fnstart(3, dev, "(i2400m %p)\n", i2400m); in i2400mu_bus_dev_start()
103 d_fnend(3, dev, "(i2400m %p) = %d\n", i2400m, result); in i2400mu_bus_dev_start()
111 d_fnend(3, dev, "(i2400m %p) = void\n", i2400m); in i2400mu_bus_dev_start()
117 void i2400mu_bus_dev_stop(struct i2400m *i2400m) in i2400mu_bus_dev_stop() argument
119 struct i2400mu *i2400mu = container_of(i2400m, struct i2400mu, i2400m); in i2400mu_bus_dev_stop()
122 d_fnstart(3, dev, "(i2400m %p)\n", i2400m); in i2400mu_bus_dev_stop()
126 d_fnend(3, dev, "(i2400m %p) = void\n", i2400m); in i2400mu_bus_dev_stop()
261 int i2400mu_bus_reset(struct i2400m *i2400m, enum i2400m_reset_type rt) in i2400mu_bus_reset() argument
[all …]
Dusb-tx.c91 struct i2400m *i2400m = &i2400mu->i2400m; in i2400mu_tx() local
156 (void *) tx_msg - i2400m->tx_buf, in i2400mu_tx()
181 struct i2400m *i2400m = &i2400mu->i2400m; in i2400mu_txd() local
189 spin_lock_irqsave(&i2400m->tx_lock, flags); in i2400mu_txd()
192 spin_unlock_irqrestore(&i2400m->tx_lock, flags); in i2400mu_txd()
200 || (tx_msg = i2400m_tx_msg_get(i2400m, &tx_msg_size))) in i2400mu_txd()
209 i2400m_tx_msg_sent(i2400m); /* ack it, advance the FIFO */ in i2400mu_txd()
212 spin_lock_irqsave(&i2400m->tx_lock, flags); in i2400mu_txd()
214 spin_unlock_irqrestore(&i2400m->tx_lock, flags); in i2400mu_txd()
229 void i2400mu_bus_tx_kick(struct i2400m *i2400m) in i2400mu_bus_tx_kick() argument
[all …]
Dop-rfkill.c34 int i2400m_radio_is(struct i2400m *i2400m, enum wimax_rf_state state) in i2400m_radio_is() argument
37 return i2400m->state == I2400M_SS_RF_OFF in i2400m_radio_is()
38 || i2400m->state == I2400M_SS_RF_SHUTDOWN; in i2400m_radio_is()
41 return i2400m->state != I2400M_SS_RF_OFF in i2400m_radio_is()
42 && i2400m->state != I2400M_SS_RF_SHUTDOWN; in i2400m_radio_is()
73 struct i2400m *i2400m = wimax_dev_to_i2400m(wimax_dev); in i2400m_op_rfkill_sw_toggle() local
74 struct device *dev = i2400m_dev(i2400m); in i2400m_op_rfkill_sw_toggle()
104 ack_skb = i2400m_msg_to_dev(i2400m, cmd, sizeof(*cmd)); in i2400m_op_rfkill_sw_toggle()
121 i2400m->state_wq, i2400m_radio_is(i2400m, state), in i2400m_op_rfkill_sw_toggle()
152 struct i2400m *i2400m, in i2400m_report_tlv_rf_switches_status() argument
[all …]
Dusb-fw.c181 ssize_t i2400mu_bus_bm_cmd_send(struct i2400m *i2400m, in i2400mu_bus_bm_cmd_send() argument
186 struct device *dev = i2400m_dev(i2400m); in i2400mu_bus_bm_cmd_send()
187 struct i2400mu *i2400mu = container_of(i2400m, struct i2400mu, i2400m); in i2400mu_bus_bm_cmd_send()
193 i2400m, _cmd, cmd_size); in i2400mu_bus_bm_cmd_send()
197 if (_cmd != i2400m->bm_cmd_buf) in i2400mu_bus_bm_cmd_send()
198 memmove(i2400m->bm_cmd_buf, _cmd, cmd_size); in i2400mu_bus_bm_cmd_send()
199 cmd = i2400m->bm_cmd_buf; in i2400mu_bus_bm_cmd_send()
201 memset(i2400m->bm_cmd_buf + cmd_size, 0, cmd_size_a - cmd_size); in i2400mu_bus_bm_cmd_send()
207 result = i2400mu_tx_bulk_out(i2400mu, i2400m->bm_cmd_buf, cmd_size); in i2400mu_bus_bm_cmd_send()
223 i2400m, _cmd, cmd_size, result); in i2400mu_bus_bm_cmd_send()
[all …]
Dusb-rx.c332 struct i2400m *i2400m = &i2400mu->i2400m; in i2400mu_rxd() local
334 struct net_device *net_dev = i2400m->wimax_dev.net_dev; in i2400mu_rxd()
341 spin_lock_irqsave(&i2400m->rx_lock, flags); in i2400mu_rxd()
344 spin_unlock_irqrestore(&i2400m->rx_lock, flags); in i2400mu_rxd()
382 result = i2400m_rx(i2400m, rx_skb); in i2400mu_rxd()
394 spin_lock_irqsave(&i2400m->rx_lock, flags); in i2400mu_rxd()
396 spin_unlock_irqrestore(&i2400m->rx_lock, flags); in i2400mu_rxd()
417 struct i2400m *i2400m = &i2400mu->i2400m; in i2400mu_rx_kick() local
420 d_fnstart(3, dev, "(i2400mu %p)\n", i2400m); in i2400mu_rx_kick()
423 d_fnend(3, dev, "(i2400m %p) = void\n", i2400m); in i2400mu_rx_kick()
[all …]
DMakefile3 obj-$(CONFIG_WIMAX_I2400M) += i2400m.o
4 obj-$(CONFIG_WIMAX_I2400M_USB) += i2400m-usb.o
6 i2400m-y := \
16 i2400m-$(CONFIG_DEBUG_FS) += debugfs.o
18 i2400m-usb-y := \
Di2400m-usb.h223 struct i2400m i2400m; /* FIRST! See doc */ member
249 i2400m_init(&i2400mu->i2400m); in i2400mu_init()
268 void i2400mu_bus_tx_kick(struct i2400m *);
270 ssize_t i2400mu_bus_bm_cmd_send(struct i2400m *,
273 ssize_t i2400mu_bus_bm_wait_for_ack(struct i2400m *,
Dusb-notif.c87 struct i2400m *i2400m = &i2400mu->i2400m; in i2400mu_notification_grok() local
100 ret = i2400m_is_boot_barker(i2400m, buf, buf_len); in i2400mu_notification_grok()
102 ret = i2400m_dev_reset_handle(i2400m, "device rebooted"); in i2400mu_notification_grok()
104 i2400m_unknown_barker(i2400m, buf, buf_len); in i2400mu_notification_grok()
Dsysfs.c33 struct i2400m *i2400m = net_dev_to_i2400m(to_net_dev(dev)); in i2400m_idle_timeout_store() local
45 result = i2400m_set_idle_timeout(i2400m, val); in i2400m_idle_timeout_store()
DKconfig23 int "WiMAX i2400m debug level"
29 the WiMAX i2400m driver code.
Ddebug-levels.h13 #define D_MODULENAME i2400m
/Linux-v5.10/Documentation/admin-guide/wimax/
Di2400m.rst17 * Intel i2400m Echo Peak or Baxter Peak; this includes the Intel
40 to build the i2400m USB or SDIO drivers will not show. Enable said
78 $ cp FIRMWAREFILE.sbcf /lib/firmware/i2400m-fw-BUSTYPE-1.3.sbcf
91 driver for the Intel i2400m.
97 The i2400m kernel driver is broken up in two main parts: the bus
102 USB and SDIO are supported. See drivers/net/wimax/i2400m/i2400m.h for
141 To make changes permanent, for example, for the i2400m module, you can
142 also create a file named /etc/modprobe.d/i2400m containing::
144 options i2400m idle_mode_disabled=1
153 i2400m.PARAMETER=VALUE
[all …]
Dindex.rst12 i2400m
/Linux-v5.10/drivers/net/wimax/
DMakefile2 obj-$(CONFIG_WIMAX_I2400M) += i2400m/
DKconfig14 source "drivers/net/wimax/i2400m/Kconfig"
/Linux-v5.10/
DMAINTAINERS9105 F: Documentation/admin-guide/wimax/i2400m.rst
9106 F: drivers/net/wimax/i2400m/
9107 F: include/uapi/linux/wimax/i2400m.h