Home
last modified time | relevance | path

Searched refs:circ (Results 1 – 8 of 8) sorted by relevance

/linux-6.1.9/drivers/acpi/
Dacpi_dbg.c27 #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 …]
/linux-6.1.9/drivers/char/hw_random/
Dcctrng.c64 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 …]
/linux-6.1.9/drivers/gpu/drm/msm/
Dmsm_rd.c71 #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))
/linux-6.1.9/tools/power/acpi/tools/acpidbg/
Dacpidbg.c41 #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))
/linux-6.1.9/include/linux/
Dserial_core.h780 #define uart_circ_empty(circ) ((circ)->head == (circ)->tail) argument
781 #define uart_circ_clear(circ) ((circ)->head = (circ)->tail = 0) argument
783 #define uart_circ_chars_pending(circ) \ argument
784 (CIRC_CNT((circ)->head, (circ)->tail, UART_XMIT_SIZE))
786 #define uart_circ_chars_free(circ) \ argument
787 (CIRC_SPACE((circ)->head, (circ)->tail, UART_XMIT_SIZE))
/linux-6.1.9/drivers/tty/serial/jsm/
Djsm_neo.c483 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 …]
Djsm_cls.c451 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()
/linux-6.1.9/drivers/tty/serial/
Dserial_core.c538 struct circ_buf *circ; in uart_put_char() local
542 circ = &state->xmit; in uart_put_char()
544 if (!circ->buf) { in uart_put_char()
549 if (port && uart_circ_chars_free(circ) != 0) { in uart_put_char()
550 circ->buf[circ->head] = c; in uart_put_char()
551 circ->head = (circ->head + 1) & (UART_XMIT_SIZE - 1); in uart_put_char()
568 struct circ_buf *circ; in uart_write() local
582 circ = &state->xmit; in uart_write()
583 if (!circ->buf) { in uart_write()
589 c = CIRC_SPACE_TO_END(circ->head, circ->tail, UART_XMIT_SIZE); in uart_write()
[all …]