Searched refs:circ (Results 1 – 4 of 4) 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 | 499 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 …]
|
/drivers/tty/serial/ |
D | serial_core.c | 476 struct circ_buf *circ, unsigned char c) in __uart_put_char() argument 481 if (!circ->buf) in __uart_put_char() 485 if (uart_circ_chars_free(circ) != 0) { in __uart_put_char() 486 circ->buf[circ->head] = c; in __uart_put_char() 487 circ->head = (circ->head + 1) & (UART_XMIT_SIZE - 1); in __uart_put_char() 511 struct circ_buf *circ; in uart_write() local 525 circ = &state->xmit; in uart_write() 527 if (!circ->buf) in uart_write() 532 c = CIRC_SPACE_TO_END(circ->head, circ->tail, UART_XMIT_SIZE); in uart_write() 537 memcpy(circ->buf + circ->head, buf, c); in uart_write() [all …]
|