MCPcopy Create free account
hub / github.com/coreboot/coreboot / usbdebug_tx_flush

Function usbdebug_tx_flush

src/drivers/usb/console.c:18–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18static 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
29static unsigned char usbdebug_rx_byte(struct dbgp_pipe *pipe)
30{

Callers 1

usb_tx_flushFunction · 0.85

Calls 3

dbgp_try_getFunction · 0.85
dbgp_bulk_write_xFunction · 0.85
dbgp_putFunction · 0.85

Tested by

no test coverage detected