Home
last modified time | relevance | path

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

/linux-3.4.99/include/linux/
Dserial_core.h487 #define uart_circ_empty(circ) ((circ)->head == (circ)->tail) argument
488 #define uart_circ_clear(circ) ((circ)->head = (circ)->tail = 0) argument
490 #define uart_circ_chars_pending(circ) \ argument
491 (CIRC_CNT((circ)->head, (circ)->tail, UART_XMIT_SIZE))
493 #define uart_circ_chars_free(circ) \ argument
494 (CIRC_SPACE((circ)->head, (circ)->tail, UART_XMIT_SIZE))
/linux-3.4.99/drivers/tty/
Dbfin_jtag_comm.c58 #define circ_empty(circ) ((circ)->head == (circ)->tail) argument
59 #define circ_free(circ) CIRC_SPACE((circ)->head, (circ)->tail, CIRC_SIZE) argument
60 #define circ_cnt(circ) CIRC_CNT((circ)->head, (circ)->tail, CIRC_SIZE) argument
61 #define circ_byte(circ, idx) ((circ)->buf[(idx) & CIRC_MASK]) argument
/linux-3.4.99/drivers/tty/serial/jsm/
Djsm_neo.c499 struct circ_buf *circ; in neo_copy_data_from_queue_to_uart() local
504 circ = &ch->uart_port.state->xmit; in neo_copy_data_from_queue_to_uart()
507 if (uart_circ_empty(circ)) in neo_copy_data_from_queue_to_uart()
523 writeb(circ->buf[circ->tail], &ch->ch_neo_uart->txrx); in neo_copy_data_from_queue_to_uart()
525 "Tx data: %x\n", circ->buf[circ->tail]); in neo_copy_data_from_queue_to_uart()
526 circ->tail = (circ->tail + 1) & (UART_XMIT_SIZE - 1); in neo_copy_data_from_queue_to_uart()
541 head = circ->head & (UART_XMIT_SIZE - 1); in neo_copy_data_from_queue_to_uart()
542 tail = circ->tail & (UART_XMIT_SIZE - 1); in neo_copy_data_from_queue_to_uart()
543 qlen = uart_circ_chars_pending(circ); in neo_copy_data_from_queue_to_uart()
556 memcpy_toio(&ch->ch_neo_uart->txrxburst, circ->buf + tail, s); in neo_copy_data_from_queue_to_uart()
[all …]
/linux-3.4.99/drivers/tty/serial/
Dserial_core.c465 struct circ_buf *circ, unsigned char c) in __uart_put_char() argument
470 if (!circ->buf) in __uart_put_char()
474 if (uart_circ_chars_free(circ) != 0) { in __uart_put_char()
475 circ->buf[circ->head] = c; in __uart_put_char()
476 circ->head = (circ->head + 1) & (UART_XMIT_SIZE - 1); in __uart_put_char()
500 struct circ_buf *circ; in uart_write() local
514 circ = &state->xmit; in uart_write()
516 if (!circ->buf) in uart_write()
521 c = CIRC_SPACE_TO_END(circ->head, circ->tail, UART_XMIT_SIZE); in uart_write()
526 memcpy(circ->buf + circ->head, buf, c); in uart_write()
[all …]
/linux-3.4.99/Documentation/serial/
Ddriver52 info->xmit.head (circ->head)
53 info->xmit.tail (circ->tail)