/openbmc/linux/drivers/acpi/ |
H A D | acpi_dbg.c | 27 #define circ_count(circ) \ argument 28 (CIRC_CNT((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE)) 29 #define circ_count_to_end(circ) \ argument 30 (CIRC_CNT_TO_END((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE)) 31 #define circ_space(circ) \ argument 32 (CIRC_SPACE((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE)) 33 #define circ_space_to_end(circ) \ argument 34 (CIRC_SPACE_TO_END((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE)) 91 static inline bool __acpi_aml_readable(struct circ_buf *circ, unsigned long flag) in __acpi_aml_readable() argument 97 if (!(acpi_aml_io.flags & flag) && circ_count(circ)) in __acpi_aml_readable() [all …]
|
/openbmc/linux/drivers/char/hw_random/ |
H A D | cctrng.c | 64 struct circ_buf circ; member 205 return CIRC_SPACE(drvdata->circ.head, in circ_buf_space() 206 drvdata->circ.tail, CCTRNG_DATA_BUF_WORDS); in circ_buf_space() 216 u32 *buf = (u32 *)drvdata->circ.buf; in cctrng_read() 229 cnt_w = CIRC_CNT_TO_END(drvdata->circ.head, in cctrng_read() 230 drvdata->circ.tail, CCTRNG_DATA_BUF_WORDS); in cctrng_read() 232 memcpy(data, &(buf[drvdata->circ.tail]), size); in cctrng_read() 234 circ_idx_inc(&drvdata->circ.tail, size); in cctrng_read() 238 cnt_w = CIRC_CNT(drvdata->circ.head, in cctrng_read() 239 drvdata->circ.tail, CCTRNG_DATA_BUF_WORDS); in cctrng_read() [all …]
|
/openbmc/linux/drivers/gpu/drm/msm/ |
H A D | msm_rd.c | 71 #define circ_count(circ) \ argument 72 (CIRC_CNT((circ)->head, (circ)->tail, BUF_SZ)) 73 #define circ_count_to_end(circ) \ argument 74 (CIRC_CNT_TO_END((circ)->head, (circ)->tail, BUF_SZ)) 76 #define circ_space(circ) \ argument 77 (CIRC_SPACE((circ)->head, (circ)->tail, BUF_SZ)) 78 #define circ_space_to_end(circ) \ argument 79 (CIRC_SPACE_TO_END((circ)->head, (circ)->tail, BUF_SZ))
|
/openbmc/linux/tools/power/acpi/tools/acpidbg/ |
H A D | acpidbg.c | 41 #define circ_count(circ) \ argument 42 (CIRC_CNT((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE)) 43 #define circ_count_to_end(circ) \ argument 44 (CIRC_CNT_TO_END((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE)) 45 #define circ_space(circ) \ argument 46 (CIRC_SPACE((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE)) 47 #define circ_space_to_end(circ) \ argument 48 (CIRC_SPACE_TO_END((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE))
|
/openbmc/linux/include/linux/ |
H A D | serial_core.h | 992 #define uart_circ_empty(circ) ((circ)->head == (circ)->tail) argument 993 #define uart_circ_clear(circ) ((circ)->head = (circ)->tail = 0) argument 995 #define uart_circ_chars_pending(circ) \ argument 996 (CIRC_CNT((circ)->head, (circ)->tail, UART_XMIT_SIZE)) 998 #define uart_circ_chars_free(circ) \ argument 999 (CIRC_SPACE((circ)->head, (circ)->tail, UART_XMIT_SIZE))
|
/openbmc/linux/drivers/tty/serial/jsm/ |
H A D | jsm_neo.c | 483 struct circ_buf *circ; in neo_copy_data_from_queue_to_uart() local 488 circ = &ch->uart_port.state->xmit; in neo_copy_data_from_queue_to_uart() 491 if (uart_circ_empty(circ)) in neo_copy_data_from_queue_to_uart() 507 writeb(circ->buf[circ->tail], &ch->ch_neo_uart->txrx); in neo_copy_data_from_queue_to_uart() 509 "Tx data: %x\n", circ->buf[circ->tail]); in neo_copy_data_from_queue_to_uart() 510 circ->tail = (circ->tail + 1) & (UART_XMIT_SIZE - 1); in neo_copy_data_from_queue_to_uart() 525 head = circ->head & (UART_XMIT_SIZE - 1); in neo_copy_data_from_queue_to_uart() 526 tail = circ->tail & (UART_XMIT_SIZE - 1); in neo_copy_data_from_queue_to_uart() 527 qlen = uart_circ_chars_pending(circ); in neo_copy_data_from_queue_to_uart() 540 memcpy_toio(&ch->ch_neo_uart->txrxburst, circ->buf + tail, s); in neo_copy_data_from_queue_to_uart() [all …]
|
H A D | jsm_cls.c | 451 struct circ_buf *circ; in cls_copy_data_from_queue_to_uart() local 456 circ = &ch->uart_port.state->xmit; in cls_copy_data_from_queue_to_uart() 459 if (uart_circ_empty(circ)) in cls_copy_data_from_queue_to_uart() 473 tail = circ->tail & (UART_XMIT_SIZE - 1); in cls_copy_data_from_queue_to_uart() 474 qlen = uart_circ_chars_pending(circ); in cls_copy_data_from_queue_to_uart() 480 writeb(circ->buf[tail], &ch->ch_cls_uart->txrx); in cls_copy_data_from_queue_to_uart() 488 circ->tail = tail & (UART_XMIT_SIZE - 1); in cls_copy_data_from_queue_to_uart() 493 if (uart_circ_empty(circ)) in cls_copy_data_from_queue_to_uart()
|
/openbmc/qemu/tests/tcg/hexagon/ |
H A D | Makefile.target | 39 HEX_TESTS += circ 97 circ: circ.c hex_test.h
|
/openbmc/linux/drivers/tty/serial/ |
H A D | serial_core.c | 573 struct circ_buf *circ; in uart_put_char() local 577 circ = &state->xmit; in uart_put_char() 579 if (!circ->buf) { in uart_put_char() 584 if (port && uart_circ_chars_free(circ) != 0) { in uart_put_char() 585 circ->buf[circ->head] = c; in uart_put_char() 586 circ->head = (circ->head + 1) & (UART_XMIT_SIZE - 1); in uart_put_char() 602 struct circ_buf *circ; in uart_write() local 614 circ = &state->xmit; in uart_write() 615 if (!circ->buf) { in uart_write() 621 c = CIRC_SPACE_TO_END(circ->head, circ->tail, UART_XMIT_SIZE); in uart_write() [all …]
|
/openbmc/qemu/target/hexagon/imported/ |
H A D | ldst.idef | 30 Q6INSN(L2_##TAG##_pci, OPER"(Rx32++#s4:"SHFT":circ(Mu2))",ATTRIB,DESCR,{fEA_REG(RxV); fPM_CIRI(RxV,… 31 Q6INSN(L2_##TAG##_pcr, OPER"(Rx32++I:circ(Mu2))", ATTRIB,DESCR,{fEA_REG(RxV); fPM_CIRR(RxV,fREAD_I… 111 Q6INSN(S2_##TAG##_pci, OPER"(Rx32++#s4:"SHFT":circ(Mu2))="DEST, ATTRIB,DESCR,{fEA_REG(RxV); fPM_CI… 112 Q6INSN(S2_##TAG##_pcr, OPER"(Rx32++I:circ(Mu2))="DEST, ATTRIB,DESCR,{fEA_REG(RxV); fPM_CIRR(RxV,fR…
|