Lines Matching refs:i2400mu
87 int i2400mu_tx(struct i2400mu *i2400mu, struct i2400m_msg_hdr *tx_msg,
91 struct i2400m *i2400m = &i2400mu->i2400m;
92 struct device *dev = &i2400mu->usb_iface->dev;
96 d_fnstart(4, dev, "(i2400mu %p)\n", i2400mu);
97 do_autopm = atomic_read(&i2400mu->do_autopm);
99 usb_autopm_get_interface(i2400mu->usb_iface) : 0;
104 epd = usb_get_epd(i2400mu->usb_iface, i2400mu->endpoint_cfg.bulk_out);
105 usb_pipe = usb_sndbulkpipe(i2400mu->usb_dev, epd->bEndpointAddress);
107 result = usb_bulk_msg(i2400mu->usb_dev, usb_pipe,
109 usb_mark_last_busy(i2400mu->usb_dev);
129 if (edc_inc(&i2400mu->urb_edc,
133 usb_queue_reset_device(i2400mu->usb_iface);
136 usb_clear_halt(i2400mu->usb_dev, usb_pipe);
148 if (edc_inc(&i2400mu->urb_edc,
152 usb_queue_reset_device(i2400mu->usb_iface);
162 usb_autopm_put_interface(i2400mu->usb_iface);
163 d_fnend(4, dev, "(i2400mu %p) = result\n", i2400mu);
181 struct i2400mu *i2400mu = _i2400mu;
182 struct i2400m *i2400m = &i2400mu->i2400m;
183 struct device *dev = &i2400mu->usb_iface->dev;
188 d_fnstart(4, dev, "(i2400mu %p)\n", i2400mu);
191 BUG_ON(i2400mu->tx_kthread != NULL);
192 i2400mu->tx_kthread = current;
199 i2400mu->tx_wq,
209 i2400mu_tx(i2400mu, tx_msg, tx_msg_size);
216 i2400mu->tx_kthread = NULL;
219 d_fnend(4, dev, "(i2400mu %p) = %d\n", i2400mu, result);
234 struct i2400mu *i2400mu = container_of(i2400m, struct i2400mu, i2400m);
235 struct device *dev = &i2400mu->usb_iface->dev;
238 wake_up_all(&i2400mu->tx_wq);
243 int i2400mu_tx_setup(struct i2400mu *i2400mu)
246 struct i2400m *i2400m = &i2400mu->i2400m;
247 struct device *dev = &i2400mu->usb_iface->dev;
251 kthread = kthread_run(i2400mu_txd, i2400mu, "%s-tx",
253 /* the kthread function sets i2400mu->tx_thread */
261 void i2400mu_tx_release(struct i2400mu *i2400mu)
264 struct i2400m *i2400m = &i2400mu->i2400m;
269 kthread = i2400mu->tx_kthread;
270 i2400mu->tx_kthread = NULL;