Home
last modified time | relevance | path

Searched refs:circ (Results 1 – 2 of 2) sorted by relevance

/drivers/mmc/card/
Dsdio_uart.c51 #define circ_empty(circ) ((circ)->head == (circ)->tail) argument
52 #define circ_clear(circ) ((circ)->head = (circ)->tail = 0) argument
54 #define circ_chars_pending(circ) \ argument
55 (CIRC_CNT((circ)->head, (circ)->tail, UART_XMIT_SIZE))
57 #define circ_chars_free(circ) \ argument
58 (CIRC_SPACE((circ)->head, (circ)->tail, UART_XMIT_SIZE))
735 struct circ_buf *circ = &port->xmit; in sdio_uart_write() local
743 c = CIRC_SPACE_TO_END(circ->head, circ->tail, UART_XMIT_SIZE); in sdio_uart_write()
748 memcpy(circ->buf + circ->head, buf, c); in sdio_uart_write()
749 circ->head = (circ->head + c) & (UART_XMIT_SIZE - 1); in sdio_uart_write()
/drivers/serial/
Dserial_core.c464 __uart_put_char(struct uart_port *port, struct circ_buf *circ, unsigned char c) in __uart_put_char() argument
469 if (!circ->buf) in __uart_put_char()
473 if (uart_circ_chars_free(circ) != 0) { in __uart_put_char()
474 circ->buf[circ->head] = c; in __uart_put_char()
475 circ->head = (circ->head + 1) & (UART_XMIT_SIZE - 1); in __uart_put_char()
499 struct circ_buf *circ; in uart_write() local
513 circ = &state->info.xmit; in uart_write()
515 if (!circ->buf) in uart_write()
520 c = CIRC_SPACE_TO_END(circ->head, circ->tail, UART_XMIT_SIZE); in uart_write()
525 memcpy(circ->buf + circ->head, buf, c); in uart_write()
[all …]