Home
last modified time | relevance | path

Searched refs:i2400mu (Results 1 – 6 of 6) sorted by relevance

/linux-3.4.99/drivers/net/wimax/i2400m/
Dusb-rx.c118 size_t i2400mu_rx_size_grow(struct i2400mu *i2400mu) in i2400mu_rx_size_grow() argument
120 struct device *dev = &i2400mu->usb_iface->dev; in i2400mu_rx_size_grow()
124 rx_size = 2 * i2400mu->rx_size; in i2400mu_rx_size_grow()
130 rx_size, i2400mu->rx_size); in i2400mu_rx_size_grow()
134 rx_size, i2400mu->rx_size); in i2400mu_rx_size_grow()
140 void i2400mu_rx_size_maybe_shrink(struct i2400mu *i2400mu) in i2400mu_rx_size_maybe_shrink() argument
143 struct device *dev = &i2400mu->usb_iface->dev; in i2400mu_rx_size_maybe_shrink()
145 if (unlikely(i2400mu->rx_size_cnt >= 100 in i2400mu_rx_size_maybe_shrink()
146 && i2400mu->rx_size_auto_shrink)) { in i2400mu_rx_size_maybe_shrink()
148 i2400mu->rx_size_acc / i2400mu->rx_size_cnt; in i2400mu_rx_size_maybe_shrink()
[all …]
Dusb-tx.c87 int i2400mu_tx(struct i2400mu *i2400mu, struct i2400m_msg_hdr *tx_msg, in i2400mu_tx() argument
91 struct i2400m *i2400m = &i2400mu->i2400m; in i2400mu_tx()
92 struct device *dev = &i2400mu->usb_iface->dev; in i2400mu_tx()
96 d_fnstart(4, dev, "(i2400mu %p)\n", i2400mu); in i2400mu_tx()
97 do_autopm = atomic_read(&i2400mu->do_autopm); in i2400mu_tx()
99 usb_autopm_get_interface(i2400mu->usb_iface) : 0; in i2400mu_tx()
104 epd = usb_get_epd(i2400mu->usb_iface, i2400mu->endpoint_cfg.bulk_out); in i2400mu_tx()
105 usb_pipe = usb_sndbulkpipe(i2400mu->usb_dev, epd->bEndpointAddress); in i2400mu_tx()
107 result = usb_bulk_msg(i2400mu->usb_dev, usb_pipe, in i2400mu_tx()
109 usb_mark_last_busy(i2400mu->usb_dev); in i2400mu_tx()
[all …]
Dusb-notif.c82 int i2400mu_notification_grok(struct i2400mu *i2400mu, const void *buf, in i2400mu_notification_grok() argument
86 struct device *dev = &i2400mu->usb_iface->dev; in i2400mu_notification_grok()
87 struct i2400m *i2400m = &i2400mu->i2400m; in i2400mu_notification_grok()
90 i2400mu, buf, buf_len); in i2400mu_notification_grok()
97 i2400mu_rx_kick(i2400mu); in i2400mu_notification_grok()
108 i2400mu, buf, buf_len, ret); in i2400mu_notification_grok()
126 struct i2400mu *i2400mu = urb->context; in i2400mu_notification_cb() local
127 struct device *dev = &i2400mu->usb_iface->dev; in i2400mu_notification_cb()
134 ret = i2400mu_notification_grok(i2400mu, urb->transfer_buffer, in i2400mu_notification_cb()
136 if (ret == -EIO && edc_inc(&i2400mu->urb_edc, EDC_MAX_ERRORS, in i2400mu_notification_cb()
[all …]
Dusb.c105 struct i2400mu *i2400mu = container_of(i2400m, struct i2400mu, i2400m); in i2400mu_bus_dev_start() local
106 struct device *dev = &i2400mu->usb_iface->dev; in i2400mu_bus_dev_start()
109 result = i2400mu_tx_setup(i2400mu); in i2400mu_bus_dev_start()
112 result = i2400mu_rx_setup(i2400mu); in i2400mu_bus_dev_start()
115 result = i2400mu_notification_setup(i2400mu); in i2400mu_bus_dev_start()
122 i2400mu_rx_release(i2400mu); in i2400mu_bus_dev_start()
124 i2400mu_tx_release(i2400mu); in i2400mu_bus_dev_start()
134 struct i2400mu *i2400mu = container_of(i2400m, struct i2400mu, i2400m); in i2400mu_bus_dev_stop() local
135 struct device *dev = &i2400mu->usb_iface->dev; in i2400mu_bus_dev_stop()
138 i2400mu_notification_release(i2400mu); in i2400mu_bus_dev_stop()
[all …]
Dusb-fw.c90 ssize_t i2400mu_tx_bulk_out(struct i2400mu *i2400mu, void *buf, size_t buf_size) in i2400mu_tx_bulk_out() argument
93 struct device *dev = &i2400mu->usb_iface->dev; in i2400mu_tx_bulk_out()
98 result = usb_autopm_get_interface(i2400mu->usb_iface); in i2400mu_tx_bulk_out()
103 epd = usb_get_epd(i2400mu->usb_iface, i2400mu->endpoint_cfg.bulk_out); in i2400mu_tx_bulk_out()
104 pipe = usb_sndbulkpipe(i2400mu->usb_dev, epd->bEndpointAddress); in i2400mu_tx_bulk_out()
106 result = usb_bulk_msg(i2400mu->usb_dev, pipe, buf, buf_size, &len, 200); in i2400mu_tx_bulk_out()
128 if (edc_inc(&i2400mu->urb_edc, in i2400mu_tx_bulk_out()
132 usb_queue_reset_device(i2400mu->usb_iface); in i2400mu_tx_bulk_out()
135 usb_clear_halt(i2400mu->usb_dev, pipe); in i2400mu_tx_bulk_out()
149 if (edc_inc(&i2400mu->urb_edc, in i2400mu_tx_bulk_out()
[all …]
Di2400m-usb.h222 struct i2400mu { struct
247 void i2400mu_init(struct i2400mu *i2400mu) in i2400mu_init() argument
249 i2400m_init(&i2400mu->i2400m); in i2400mu_init()
250 edc_init(&i2400mu->urb_edc); in i2400mu_init()
251 init_waitqueue_head(&i2400mu->tx_wq); in i2400mu_init()
252 atomic_set(&i2400mu->rx_pending_count, 0); in i2400mu_init()
253 init_waitqueue_head(&i2400mu->rx_wq); in i2400mu_init()
254 i2400mu->rx_size = PAGE_SIZE - sizeof(struct skb_shared_info); in i2400mu_init()
255 atomic_set(&i2400mu->do_autopm, 1); in i2400mu_init()
256 i2400mu->rx_size_auto_shrink = 1; in i2400mu_init()
[all …]