Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/gpu/drm/msm/
Dmsm_rd.c63 #define circ_count(circ) \ argument
64 (CIRC_CNT((circ)->head, (circ)->tail, BUF_SZ))
65 #define circ_count_to_end(circ) \ argument
66 (CIRC_CNT_TO_END((circ)->head, (circ)->tail, BUF_SZ))
68 #define circ_space(circ) \ argument
69 (CIRC_SPACE((circ)->head, (circ)->tail, BUF_SZ))
70 #define circ_space_to_end(circ) \ argument
71 (CIRC_SPACE_TO_END((circ)->head, (circ)->tail, BUF_SZ))
/linux-4.4.14/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-4.4.14/include/linux/
Dserial_core.h388 #define uart_circ_empty(circ) ((circ)->head == (circ)->tail) argument
389 #define uart_circ_clear(circ) ((circ)->head = (circ)->tail = 0) argument
391 #define uart_circ_chars_pending(circ) \ argument
392 (CIRC_CNT((circ)->head, (circ)->tail, UART_XMIT_SIZE))
394 #define uart_circ_chars_free(circ) \ argument
395 (CIRC_SPACE((circ)->head, (circ)->tail, UART_XMIT_SIZE))
/linux-4.4.14/drivers/tty/serial/jsm/
Djsm_neo.c494 struct circ_buf *circ; in neo_copy_data_from_queue_to_uart() local
499 circ = &ch->uart_port.state->xmit; in neo_copy_data_from_queue_to_uart()
502 if (uart_circ_empty(circ)) in neo_copy_data_from_queue_to_uart()
518 writeb(circ->buf[circ->tail], &ch->ch_neo_uart->txrx); in neo_copy_data_from_queue_to_uart()
520 "Tx data: %x\n", circ->buf[circ->tail]); in neo_copy_data_from_queue_to_uart()
521 circ->tail = (circ->tail + 1) & (UART_XMIT_SIZE - 1); in neo_copy_data_from_queue_to_uart()
536 head = circ->head & (UART_XMIT_SIZE - 1); in neo_copy_data_from_queue_to_uart()
537 tail = circ->tail & (UART_XMIT_SIZE - 1); in neo_copy_data_from_queue_to_uart()
538 qlen = uart_circ_chars_pending(circ); in neo_copy_data_from_queue_to_uart()
551 memcpy_toio(&ch->ch_neo_uart->txrxburst, circ->buf + tail, s); in neo_copy_data_from_queue_to_uart()
[all …]
Djsm_cls.c464 struct circ_buf *circ; in cls_copy_data_from_queue_to_uart() local
469 circ = &ch->uart_port.state->xmit; in cls_copy_data_from_queue_to_uart()
472 if (uart_circ_empty(circ)) in cls_copy_data_from_queue_to_uart()
486 tail = circ->tail & (UART_XMIT_SIZE - 1); in cls_copy_data_from_queue_to_uart()
487 qlen = uart_circ_chars_pending(circ); in cls_copy_data_from_queue_to_uart()
493 writeb(circ->buf[tail], &ch->ch_cls_uart->txrx); in cls_copy_data_from_queue_to_uart()
501 circ->tail = tail & (UART_XMIT_SIZE - 1); in cls_copy_data_from_queue_to_uart()
506 if (uart_circ_empty(circ)) in cls_copy_data_from_queue_to_uart()
/linux-4.4.14/drivers/tty/serial/
Dserial_core.c489 struct circ_buf *circ, unsigned char c) in __uart_put_char() argument
494 if (!circ->buf) in __uart_put_char()
498 if (uart_circ_chars_free(circ) != 0) { in __uart_put_char()
499 circ->buf[circ->head] = c; in __uart_put_char()
500 circ->head = (circ->head + 1) & (UART_XMIT_SIZE - 1); in __uart_put_char()
524 struct circ_buf *circ; in uart_write() local
538 circ = &state->xmit; in uart_write()
540 if (!circ->buf) in uart_write()
545 c = CIRC_SPACE_TO_END(circ->head, circ->tail, UART_XMIT_SIZE); in uart_write()
550 memcpy(circ->buf + circ->head, buf, c); in uart_write()
[all …]
/linux-4.4.14/Documentation/serial/
Ddriver52 info->xmit.head (circ->head)
53 info->xmit.tail (circ->tail)