Home
last modified time | relevance | path

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

/drivers/net/wimax/i2400m/
Ddriver.c132 struct i2400m *i2400m = wimax_dev_to_i2400m(wimax_dev); in i2400m_op_msg_from_user() local
133 struct device *dev = i2400m_dev(i2400m); in i2400m_op_msg_from_user()
137 "msg_len %zu genl_info %p)\n", wimax_dev, i2400m, in i2400m_op_msg_from_user()
139 ack_skb = i2400m_msg_to_dev(i2400m, msg_buf, msg_len); in i2400m_op_msg_from_user()
143 result = wimax_msg_send(&i2400m->wimax_dev, ack_skb); in i2400m_op_msg_from_user()
146 "genl_info %p) = %d\n", wimax_dev, i2400m, msg_buf, msg_len, in i2400m_op_msg_from_user()
181 struct i2400m *i2400m = wimax_dev_to_i2400m(wimax_dev); in i2400m_op_reset() local
182 struct device *dev = i2400m_dev(i2400m); in i2400m_op_reset()
189 mutex_lock(&i2400m->init_mutex); in i2400m_op_reset()
190 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 …]
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 …]
Ddebugfs.c39 struct i2400m *i2400m = data; in debugfs_netdev_queue_stopped_get() local
40 *val = netif_queue_stopped(i2400m->wimax_dev.net_dev); in debugfs_netdev_queue_stopped_get()
50 const char *name, struct dentry *parent, struct i2400m *i2400m) in debugfs_create_netdev_queue_stopped() argument
52 return debugfs_create_file(name, 0400, parent, i2400m, in debugfs_create_netdev_queue_stopped()
67 struct i2400m *i2400m = filp->private_data; in i2400m_rx_stats_read() local
75 spin_lock_irqsave(&i2400m->rx_lock, flags); in i2400m_rx_stats_read()
77 i2400m->rx_pl_num, i2400m->rx_pl_min, in i2400m_rx_stats_read()
78 i2400m->rx_pl_max, i2400m->rx_num, in i2400m_rx_stats_read()
79 i2400m->rx_size_acc, in i2400m_rx_stats_read()
80 i2400m->rx_size_min, i2400m->rx_size_max); in i2400m_rx_stats_read()
[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.c104 struct i2400m *i2400m = net_dev_to_i2400m(net_dev); in i2400m_open() local
105 struct device *dev = i2400m_dev(i2400m); in i2400m_open()
107 d_fnstart(3, dev, "(net_dev %p [i2400m %p])\n", net_dev, i2400m); in i2400m_open()
109 mutex_lock(&i2400m->init_mutex); in i2400m_open()
110 if (i2400m->updown) in i2400m_open()
114 mutex_unlock(&i2400m->init_mutex); in i2400m_open()
116 net_dev, i2400m, result); in i2400m_open()
124 struct i2400m *i2400m = net_dev_to_i2400m(net_dev); in i2400m_stop() local
125 struct device *dev = i2400m_dev(i2400m); in i2400m_stop()
127 d_fnstart(3, dev, "(net_dev %p [i2400m %p])\n", net_dev, i2400m); in i2400m_stop()
[all …]
Dfw.c384 int i2400m_is_boot_barker(struct i2400m *i2400m, in i2400m_is_boot_barker() argument
388 struct device *dev = i2400m_dev(i2400m); in i2400m_is_boot_barker()
398 if (i2400m->barker in i2400m_is_boot_barker()
399 && !memcmp(buf, i2400m->barker, sizeof(i2400m->barker->data))) { in i2400m_is_boot_barker()
400 unsigned index = (i2400m->barker - i2400m_barker_db) in i2400m_is_boot_barker()
401 / sizeof(*i2400m->barker); in i2400m_is_boot_barker()
403 index, le32_to_cpu(i2400m->barker->data[0])); in i2400m_is_boot_barker()
413 if (i2400m->barker == NULL) { in i2400m_is_boot_barker()
414 i2400m->barker = barker; in i2400m_is_boot_barker()
418 i2400m->sboot = 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.c102 int i2400mu_bus_dev_start(struct i2400m *i2400m) in i2400mu_bus_dev_start() argument
105 struct i2400mu *i2400mu = container_of(i2400m, struct i2400mu, i2400m); in i2400mu_bus_dev_start()
108 d_fnstart(3, dev, "(i2400m %p)\n", i2400m); in i2400mu_bus_dev_start()
118 d_fnend(3, dev, "(i2400m %p) = %d\n", i2400m, result); in i2400mu_bus_dev_start()
126 d_fnend(3, dev, "(i2400m %p) = void\n", i2400m); in i2400mu_bus_dev_start()
132 void i2400mu_bus_dev_stop(struct i2400m *i2400m) in i2400mu_bus_dev_stop() argument
134 struct i2400mu *i2400mu = container_of(i2400m, struct i2400mu, i2400m); in i2400mu_bus_dev_stop()
137 d_fnstart(3, dev, "(i2400m %p)\n", i2400m); in i2400mu_bus_dev_stop()
141 d_fnend(3, dev, "(i2400m %p) = void\n", i2400m); in i2400mu_bus_dev_stop()
275 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.c49 int i2400m_radio_is(struct i2400m *i2400m, enum wimax_rf_state state) in i2400m_radio_is() argument
52 return i2400m->state == I2400M_SS_RF_OFF in i2400m_radio_is()
53 || i2400m->state == I2400M_SS_RF_SHUTDOWN; in i2400m_radio_is()
56 return i2400m->state != I2400M_SS_RF_OFF in i2400m_radio_is()
57 && i2400m->state != I2400M_SS_RF_SHUTDOWN; in i2400m_radio_is()
88 struct i2400m *i2400m = wimax_dev_to_i2400m(wimax_dev); in i2400m_op_rfkill_sw_toggle() local
89 struct device *dev = i2400m_dev(i2400m); in i2400m_op_rfkill_sw_toggle()
119 ack_skb = i2400m_msg_to_dev(i2400m, cmd, sizeof(*cmd)); in i2400m_op_rfkill_sw_toggle()
136 i2400m->state_wq, i2400m_radio_is(i2400m, state), in i2400m_op_rfkill_sw_toggle()
166 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.c335 struct i2400m *i2400m = &i2400mu->i2400m; in i2400mu_rxd() local
337 struct net_device *net_dev = i2400m->wimax_dev.net_dev; in i2400mu_rxd()
344 spin_lock_irqsave(&i2400m->rx_lock, flags); in i2400mu_rxd()
347 spin_unlock_irqrestore(&i2400m->rx_lock, flags); in i2400mu_rxd()
385 result = i2400m_rx(i2400m, rx_skb); in i2400mu_rxd()
397 spin_lock_irqsave(&i2400m->rx_lock, flags); in i2400mu_rxd()
399 spin_unlock_irqrestore(&i2400m->rx_lock, flags); in i2400mu_rxd()
420 struct i2400m *i2400m = &i2400mu->i2400m; in i2400mu_rx_kick() local
423 d_fnstart(3, dev, "(i2400mu %p)\n", i2400m); in i2400mu_rx_kick()
426 d_fnend(3, dev, "(i2400m %p) = void\n", i2400m); in i2400mu_rx_kick()
[all …]
DMakefile2 obj-$(CONFIG_WIMAX_I2400M) += i2400m.o
3 obj-$(CONFIG_WIMAX_I2400M_USB) += i2400m-usb.o
5 i2400m-y := \
15 i2400m-$(CONFIG_DEBUG_FS) += debugfs.o
17 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.c47 struct i2400m *i2400m = net_dev_to_i2400m(to_net_dev(dev)); in i2400m_idle_timeout_store() local
59 result = i2400m_set_idle_timeout(i2400m, val); in i2400m_idle_timeout_store()
DKconfig22 int "WiMAX i2400m debug level"
28 the WiMAX i2400m driver code.
Ddebug-levels.h27 #define D_MODULENAME i2400m
/drivers/net/wimax/
DMakefile1 obj-$(CONFIG_WIMAX_I2400M) += i2400m/
DKconfig13 source "drivers/net/wimax/i2400m/Kconfig"