| 16 | } |
| 17 | |
| 18 | static void usbdebug_tx_flush(struct dbgp_pipe *pipe) |
| 19 | { |
| 20 | if (!dbgp_try_get(pipe)) |
| 21 | return; |
| 22 | if (pipe->bufidx > 0) { |
| 23 | dbgp_bulk_write_x(pipe, pipe->buf, pipe->bufidx); |
| 24 | pipe->bufidx = 0; |
| 25 | } |
| 26 | dbgp_put(pipe); |
| 27 | } |
| 28 | |
| 29 | static unsigned char usbdebug_rx_byte(struct dbgp_pipe *pipe) |
| 30 | { |
no test coverage detected