Searched refs:circ (Results 1 – 5 of 5) sorted by relevance
/drivers/gpu/drm/msm/ |
D | msm_rd.c | 63 #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))
|
/drivers/tty/ |
D | bfin_jtag_comm.c | 58 #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
|
/drivers/tty/serial/jsm/ |
D | jsm_neo.c | 494 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 …]
|
D | jsm_cls.c | 464 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()
|
/drivers/tty/serial/ |
D | serial_core.c | 492 struct circ_buf *circ, unsigned char c) in __uart_put_char() argument 497 if (!circ->buf) in __uart_put_char() 501 if (uart_circ_chars_free(circ) != 0) { in __uart_put_char() 502 circ->buf[circ->head] = c; in __uart_put_char() 503 circ->head = (circ->head + 1) & (UART_XMIT_SIZE - 1); in __uart_put_char() 527 struct circ_buf *circ; in uart_write() local 541 circ = &state->xmit; in uart_write() 543 if (!circ->buf) in uart_write() 548 c = CIRC_SPACE_TO_END(circ->head, circ->tail, UART_XMIT_SIZE); in uart_write() 553 memcpy(circ->buf + circ->head, buf, c); in uart_write() [all …]
|