Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/
Dmsm_rd.c70 #define circ_count(circ) \ argument
71 (CIRC_CNT((circ)->head, (circ)->tail, BUF_SZ))
72 #define circ_count_to_end(circ) \ argument
73 (CIRC_CNT_TO_END((circ)->head, (circ)->tail, BUF_SZ))
75 #define circ_space(circ) \ argument
76 (CIRC_SPACE((circ)->head, (circ)->tail, BUF_SZ))
77 #define circ_space_to_end(circ) \ argument
78 (CIRC_SPACE_TO_END((circ)->head, (circ)->tail, BUF_SZ))
/kernel/linux/linux-5.10/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))
/kernel/linux/linux-5.10/include/linux/
Dserial_core.h425 #define uart_circ_empty(circ) ((circ)->head == (circ)->tail) argument
426 #define uart_circ_clear(circ) ((circ)->head = (circ)->tail = 0) argument
428 #define uart_circ_chars_pending(circ) \ argument
429 (CIRC_CNT((circ)->head, (circ)->tail, UART_XMIT_SIZE))
431 #define uart_circ_chars_free(circ) \ argument
432 (CIRC_SPACE((circ)->head, (circ)->tail, UART_XMIT_SIZE))
/kernel/linux/linux-5.10/drivers/tty/serial/jsm/
Djsm_neo.c482 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 …]
Djsm_cls.c455 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()
/kernel/linux/linux-5.10/drivers/tty/serial/
Dserial_core.c558 struct circ_buf *circ; in uart_put_char() local
562 circ = &state->xmit; in uart_put_char()
564 if (!circ->buf) { in uart_put_char()
569 if (port && uart_circ_chars_free(circ) != 0) { in uart_put_char()
570 circ->buf[circ->head] = c; in uart_put_char()
571 circ->head = (circ->head + 1) & (UART_XMIT_SIZE - 1); in uart_put_char()
588 struct circ_buf *circ; in uart_write() local
602 circ = &state->xmit; in uart_write()
603 if (!circ->buf) { in uart_write()
609 c = CIRC_SPACE_TO_END(circ->head, circ->tail, UART_XMIT_SIZE); in uart_write()
[all …]