Lines Matching refs:i2400mu

90 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()
153 usb_queue_reset_device(i2400mu->usb_iface); in i2400mu_tx_bulk_out()
162 usb_autopm_put_interface(i2400mu->usb_iface); in i2400mu_tx_bulk_out()
187 struct i2400mu *i2400mu = container_of(i2400m, struct i2400mu, i2400m); in i2400mu_bus_bm_cmd_send() local
207 result = i2400mu_tx_bulk_out(i2400mu, i2400m->bm_cmd_buf, cmd_size); in i2400mu_bus_bm_cmd_send()
245 int i2400mu_notif_submit(struct i2400mu *i2400mu, struct urb *urb, in i2400mu_notif_submit() argument
248 struct i2400m *i2400m = &i2400mu->i2400m; in i2400mu_notif_submit()
252 epd = usb_get_epd(i2400mu->usb_iface, in i2400mu_notif_submit()
253 i2400mu->endpoint_cfg.notification); in i2400mu_notif_submit()
254 pipe = usb_rcvintpipe(i2400mu->usb_dev, epd->bEndpointAddress); in i2400mu_notif_submit()
255 usb_fill_int_urb(urb, i2400mu->usb_dev, pipe, in i2400mu_notif_submit()
282 struct i2400mu *i2400mu = container_of(i2400m, struct i2400mu, i2400m); in i2400mu_bus_bm_wait_for_ack() local
293 result = usb_autopm_get_interface(i2400mu->usb_iface); in i2400mu_bus_bm_wait_for_ack()
303 result = i2400mu_notif_submit(i2400mu, &notif_urb, in i2400mu_bus_bm_wait_for_ack()
332 if (edc_inc(&i2400mu->urb_edc, in i2400mu_bus_bm_wait_for_ack()
354 usb_autopm_put_interface(i2400mu->usb_iface); in i2400mu_bus_bm_wait_for_ack()
362 usb_queue_reset_device(i2400mu->usb_iface); in i2400mu_bus_bm_wait_for_ack()