circ 27 drivers/acpi/acpi_dbg.c #define circ_count(circ) \ circ 28 drivers/acpi/acpi_dbg.c (CIRC_CNT((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE)) circ 29 drivers/acpi/acpi_dbg.c #define circ_count_to_end(circ) \ circ 30 drivers/acpi/acpi_dbg.c (CIRC_CNT_TO_END((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE)) circ 31 drivers/acpi/acpi_dbg.c #define circ_space(circ) \ circ 32 drivers/acpi/acpi_dbg.c (CIRC_SPACE((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE)) circ 33 drivers/acpi/acpi_dbg.c #define circ_space_to_end(circ) \ circ 34 drivers/acpi/acpi_dbg.c (CIRC_SPACE_TO_END((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE)) circ 91 drivers/acpi/acpi_dbg.c static inline bool __acpi_aml_readable(struct circ_buf *circ, unsigned long flag) circ 97 drivers/acpi/acpi_dbg.c if (!(acpi_aml_io.flags & flag) && circ_count(circ)) circ 102 drivers/acpi/acpi_dbg.c static inline bool __acpi_aml_writable(struct circ_buf *circ, unsigned long flag) circ 108 drivers/acpi/acpi_dbg.c if (!(acpi_aml_io.flags & flag) && circ_space(circ)) circ 210 drivers/acpi/acpi_dbg.c static int acpi_aml_lock_write(struct circ_buf *circ, unsigned long flag) circ 219 drivers/acpi/acpi_dbg.c if (!__acpi_aml_writable(circ, flag)) { circ 229 drivers/acpi/acpi_dbg.c static int acpi_aml_lock_read(struct circ_buf *circ, unsigned long flag) circ 238 drivers/acpi/acpi_dbg.c if (!__acpi_aml_readable(circ, flag)) { circ 70 drivers/gpu/drm/msm/msm_rd.c #define circ_count(circ) \ circ 71 drivers/gpu/drm/msm/msm_rd.c (CIRC_CNT((circ)->head, (circ)->tail, BUF_SZ)) circ 72 drivers/gpu/drm/msm/msm_rd.c #define circ_count_to_end(circ) \ circ 73 drivers/gpu/drm/msm/msm_rd.c (CIRC_CNT_TO_END((circ)->head, (circ)->tail, BUF_SZ)) circ 75 drivers/gpu/drm/msm/msm_rd.c #define circ_space(circ) \ circ 76 drivers/gpu/drm/msm/msm_rd.c (CIRC_SPACE((circ)->head, (circ)->tail, BUF_SZ)) circ 77 drivers/gpu/drm/msm/msm_rd.c #define circ_space_to_end(circ) \ circ 78 drivers/gpu/drm/msm/msm_rd.c (CIRC_SPACE_TO_END((circ)->head, (circ)->tail, BUF_SZ)) circ 455 drivers/tty/serial/jsm/jsm_cls.c struct circ_buf *circ; circ 460 drivers/tty/serial/jsm/jsm_cls.c circ = &ch->uart_port.state->xmit; circ 463 drivers/tty/serial/jsm/jsm_cls.c if (uart_circ_empty(circ)) circ 477 drivers/tty/serial/jsm/jsm_cls.c tail = circ->tail & (UART_XMIT_SIZE - 1); circ 478 drivers/tty/serial/jsm/jsm_cls.c qlen = uart_circ_chars_pending(circ); circ 484 drivers/tty/serial/jsm/jsm_cls.c writeb(circ->buf[tail], &ch->ch_cls_uart->txrx); circ 492 drivers/tty/serial/jsm/jsm_cls.c circ->tail = tail & (UART_XMIT_SIZE - 1); circ 497 drivers/tty/serial/jsm/jsm_cls.c if (uart_circ_empty(circ)) circ 482 drivers/tty/serial/jsm/jsm_neo.c struct circ_buf *circ; circ 487 drivers/tty/serial/jsm/jsm_neo.c circ = &ch->uart_port.state->xmit; circ 490 drivers/tty/serial/jsm/jsm_neo.c if (uart_circ_empty(circ)) circ 506 drivers/tty/serial/jsm/jsm_neo.c writeb(circ->buf[circ->tail], &ch->ch_neo_uart->txrx); circ 508 drivers/tty/serial/jsm/jsm_neo.c "Tx data: %x\n", circ->buf[circ->tail]); circ 509 drivers/tty/serial/jsm/jsm_neo.c circ->tail = (circ->tail + 1) & (UART_XMIT_SIZE - 1); circ 524 drivers/tty/serial/jsm/jsm_neo.c head = circ->head & (UART_XMIT_SIZE - 1); circ 525 drivers/tty/serial/jsm/jsm_neo.c tail = circ->tail & (UART_XMIT_SIZE - 1); circ 526 drivers/tty/serial/jsm/jsm_neo.c qlen = uart_circ_chars_pending(circ); circ 539 drivers/tty/serial/jsm/jsm_neo.c memcpy_toio(&ch->ch_neo_uart->txrxburst, circ->buf + tail, s); circ 548 drivers/tty/serial/jsm/jsm_neo.c circ->tail = tail & (UART_XMIT_SIZE - 1); circ 553 drivers/tty/serial/jsm/jsm_neo.c if (uart_circ_empty(circ)) circ 549 drivers/tty/serial/serial_core.c struct circ_buf *circ; circ 553 drivers/tty/serial/serial_core.c circ = &state->xmit; circ 555 drivers/tty/serial/serial_core.c if (!circ->buf) { circ 560 drivers/tty/serial/serial_core.c if (port && uart_circ_chars_free(circ) != 0) { circ 561 drivers/tty/serial/serial_core.c circ->buf[circ->head] = c; circ 562 drivers/tty/serial/serial_core.c circ->head = (circ->head + 1) & (UART_XMIT_SIZE - 1); circ 579 drivers/tty/serial/serial_core.c struct circ_buf *circ; circ 593 drivers/tty/serial/serial_core.c circ = &state->xmit; circ 594 drivers/tty/serial/serial_core.c if (!circ->buf) { circ 600 drivers/tty/serial/serial_core.c c = CIRC_SPACE_TO_END(circ->head, circ->tail, UART_XMIT_SIZE); circ 605 drivers/tty/serial/serial_core.c memcpy(circ->buf + circ->head, buf, c); circ 606 drivers/tty/serial/serial_core.c circ->head = (circ->head + c) & (UART_XMIT_SIZE - 1); circ 422 include/linux/serial_core.h #define uart_circ_empty(circ) ((circ)->head == (circ)->tail) circ 423 include/linux/serial_core.h #define uart_circ_clear(circ) ((circ)->head = (circ)->tail = 0) circ 425 include/linux/serial_core.h #define uart_circ_chars_pending(circ) \ circ 426 include/linux/serial_core.h (CIRC_CNT((circ)->head, (circ)->tail, UART_XMIT_SIZE)) circ 428 include/linux/serial_core.h #define uart_circ_chars_free(circ) \ circ 429 include/linux/serial_core.h (CIRC_SPACE((circ)->head, (circ)->tail, UART_XMIT_SIZE)) circ 41 tools/power/acpi/tools/acpidbg/acpidbg.c #define circ_count(circ) \ circ 42 tools/power/acpi/tools/acpidbg/acpidbg.c (CIRC_CNT((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE)) circ 43 tools/power/acpi/tools/acpidbg/acpidbg.c #define circ_count_to_end(circ) \ circ 44 tools/power/acpi/tools/acpidbg/acpidbg.c (CIRC_CNT_TO_END((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE)) circ 45 tools/power/acpi/tools/acpidbg/acpidbg.c #define circ_space(circ) \ circ 46 tools/power/acpi/tools/acpidbg/acpidbg.c (CIRC_SPACE((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE)) circ 47 tools/power/acpi/tools/acpidbg/acpidbg.c #define circ_space_to_end(circ) \ circ 48 tools/power/acpi/tools/acpidbg/acpidbg.c (CIRC_SPACE_TO_END((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE))