Lines Matching refs:i2400mu
90 ssize_t i2400mu_tx_bulk_out(struct i2400mu *i2400mu, void *buf, size_t buf_size)
93 struct device *dev = &i2400mu->usb_iface->dev;
98 result = usb_autopm_get_interface(i2400mu->usb_iface);
103 epd = usb_get_epd(i2400mu->usb_iface, i2400mu->endpoint_cfg.bulk_out);
104 pipe = usb_sndbulkpipe(i2400mu->usb_dev, epd->bEndpointAddress);
106 result = usb_bulk_msg(i2400mu->usb_dev, pipe, buf, buf_size, &len, 200);
128 if (edc_inc(&i2400mu->urb_edc,
132 usb_queue_reset_device(i2400mu->usb_iface);
135 usb_clear_halt(i2400mu->usb_dev, pipe);
149 if (edc_inc(&i2400mu->urb_edc,
153 usb_queue_reset_device(i2400mu->usb_iface);
162 usb_autopm_put_interface(i2400mu->usb_iface);
187 struct i2400mu *i2400mu = container_of(i2400m, struct i2400mu, i2400m);
207 result = i2400mu_tx_bulk_out(i2400mu, i2400m->bm_cmd_buf, cmd_size);
245 int i2400mu_notif_submit(struct i2400mu *i2400mu, struct urb *urb,
248 struct i2400m *i2400m = &i2400mu->i2400m;
252 epd = usb_get_epd(i2400mu->usb_iface,
253 i2400mu->endpoint_cfg.notification);
254 pipe = usb_rcvintpipe(i2400mu->usb_dev, epd->bEndpointAddress);
255 usb_fill_int_urb(urb, i2400mu->usb_dev, pipe,
282 struct i2400mu *i2400mu = container_of(i2400m, struct i2400mu, i2400m);
293 result = usb_autopm_get_interface(i2400mu->usb_iface);
303 result = i2400mu_notif_submit(i2400mu, ¬if_urb,
332 if (edc_inc(&i2400mu->urb_edc,
354 usb_autopm_put_interface(i2400mu->usb_iface);
362 usb_queue_reset_device(i2400mu->usb_iface);