Home
last modified time | relevance | path

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

/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 …]
/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 …]
/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))
/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.c453 struct circ_buf *circ; in cls_copy_data_from_queue_to_uart() local
458 circ = &ch->uart_port.state->xmit; in cls_copy_data_from_queue_to_uart()
461 if (uart_circ_empty(circ)) in cls_copy_data_from_queue_to_uart()
475 tail = circ->tail & (UART_XMIT_SIZE - 1); in cls_copy_data_from_queue_to_uart()
476 qlen = uart_circ_chars_pending(circ); in cls_copy_data_from_queue_to_uart()
482 writeb(circ->buf[tail], &ch->ch_cls_uart->txrx); in cls_copy_data_from_queue_to_uart()
490 circ->tail = tail & (UART_XMIT_SIZE - 1); in cls_copy_data_from_queue_to_uart()
495 if (uart_circ_empty(circ)) in cls_copy_data_from_queue_to_uart()
/drivers/tty/serial/
Dserial_core.c526 struct circ_buf *circ; in uart_put_char() local
530 circ = &state->xmit; in uart_put_char()
532 if (!circ->buf) { in uart_put_char()
537 if (port && uart_circ_chars_free(circ) != 0) { in uart_put_char()
538 circ->buf[circ->head] = c; in uart_put_char()
539 circ->head = (circ->head + 1) & (UART_XMIT_SIZE - 1); in uart_put_char()
556 struct circ_buf *circ; in uart_write() local
570 circ = &state->xmit; in uart_write()
571 if (!circ->buf) { in uart_write()
577 c = CIRC_SPACE_TO_END(circ->head, circ->tail, UART_XMIT_SIZE); in uart_write()
[all …]