/Linux-v4.19/drivers/acpi/ |
D | acpi_dbg.c | 30 #define circ_count(circ) \ argument 31 (CIRC_CNT((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE)) 32 #define circ_count_to_end(circ) \ argument 33 (CIRC_CNT_TO_END((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE)) 34 #define circ_space(circ) \ argument 35 (CIRC_SPACE((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE)) 36 #define circ_space_to_end(circ) \ argument 37 (CIRC_SPACE_TO_END((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE)) 94 static inline bool __acpi_aml_readable(struct circ_buf *circ, unsigned long flag) in __acpi_aml_readable() argument 100 if (!(acpi_aml_io.flags & flag) && circ_count(circ)) in __acpi_aml_readable() [all …]
|
/Linux-v4.19/drivers/gpu/drm/msm/ |
D | msm_rd.c | 78 #define circ_count(circ) \ argument 79 (CIRC_CNT((circ)->head, (circ)->tail, BUF_SZ)) 80 #define circ_count_to_end(circ) \ argument 81 (CIRC_CNT_TO_END((circ)->head, (circ)->tail, BUF_SZ)) 83 #define circ_space(circ) \ argument 84 (CIRC_SPACE((circ)->head, (circ)->tail, BUF_SZ)) 85 #define circ_space_to_end(circ) \ argument 86 (CIRC_SPACE_TO_END((circ)->head, (circ)->tail, BUF_SZ))
|
/Linux-v4.19/tools/power/acpi/tools/acpidbg/ |
D | acpidbg.c | 44 #define circ_count(circ) \ argument 45 (CIRC_CNT((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE)) 46 #define circ_count_to_end(circ) \ argument 47 (CIRC_CNT_TO_END((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE)) 48 #define circ_space(circ) \ argument 49 (CIRC_SPACE((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE)) 50 #define circ_space_to_end(circ) \ argument 51 (CIRC_SPACE_TO_END((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE))
|
/Linux-v4.19/include/linux/ |
D | serial_core.h | 430 #define uart_circ_empty(circ) ((circ)->head == (circ)->tail) argument 431 #define uart_circ_clear(circ) ((circ)->head = (circ)->tail = 0) argument 433 #define uart_circ_chars_pending(circ) \ argument 434 (CIRC_CNT((circ)->head, (circ)->tail, UART_XMIT_SIZE)) 436 #define uart_circ_chars_free(circ) \ argument 437 (CIRC_SPACE((circ)->head, (circ)->tail, UART_XMIT_SIZE))
|
/Linux-v4.19/drivers/tty/serial/jsm/ |
D | jsm_neo.c | 482 struct circ_buf *circ; in neo_copy_data_from_queue_to_uart() local 487 circ = &ch->uart_port.state->xmit; in neo_copy_data_from_queue_to_uart() 490 if (uart_circ_empty(circ)) in neo_copy_data_from_queue_to_uart() 506 writeb(circ->buf[circ->tail], &ch->ch_neo_uart->txrx); in neo_copy_data_from_queue_to_uart() 508 "Tx data: %x\n", circ->buf[circ->tail]); in neo_copy_data_from_queue_to_uart() 509 circ->tail = (circ->tail + 1) & (UART_XMIT_SIZE - 1); in neo_copy_data_from_queue_to_uart() 524 head = circ->head & (UART_XMIT_SIZE - 1); in neo_copy_data_from_queue_to_uart() 525 tail = circ->tail & (UART_XMIT_SIZE - 1); in neo_copy_data_from_queue_to_uart() 526 qlen = uart_circ_chars_pending(circ); in neo_copy_data_from_queue_to_uart() 539 memcpy_toio(&ch->ch_neo_uart->txrxburst, circ->buf + tail, s); in neo_copy_data_from_queue_to_uart() [all …]
|
D | jsm_cls.c | 455 struct circ_buf *circ; in cls_copy_data_from_queue_to_uart() local 460 circ = &ch->uart_port.state->xmit; in cls_copy_data_from_queue_to_uart() 463 if (uart_circ_empty(circ)) in cls_copy_data_from_queue_to_uart() 477 tail = circ->tail & (UART_XMIT_SIZE - 1); in cls_copy_data_from_queue_to_uart() 478 qlen = uart_circ_chars_pending(circ); in cls_copy_data_from_queue_to_uart() 484 writeb(circ->buf[tail], &ch->ch_cls_uart->txrx); in cls_copy_data_from_queue_to_uart() 492 circ->tail = tail & (UART_XMIT_SIZE - 1); in cls_copy_data_from_queue_to_uart() 497 if (uart_circ_empty(circ)) in cls_copy_data_from_queue_to_uart()
|
/Linux-v4.19/drivers/tty/serial/ |
D | serial_core.c | 538 struct circ_buf *circ; in uart_put_char() local 542 circ = &state->xmit; in uart_put_char() 543 if (!circ->buf) in uart_put_char() 547 if (port && uart_circ_chars_free(circ) != 0) { in uart_put_char() 548 circ->buf[circ->head] = c; in uart_put_char() 549 circ->head = (circ->head + 1) & (UART_XMIT_SIZE - 1); in uart_put_char() 566 struct circ_buf *circ; in uart_write() local 579 circ = &state->xmit; in uart_write() 580 if (!circ->buf) in uart_write() 585 c = CIRC_SPACE_TO_END(circ->head, circ->tail, UART_XMIT_SIZE); in uart_write() [all …]
|