Lines Matching refs:circ
27 #define circ_count(circ) \
28 (CIRC_CNT((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE))
29 #define circ_count_to_end(circ) \
30 (CIRC_CNT_TO_END((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE))
31 #define circ_space(circ) \
32 (CIRC_SPACE((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE))
33 #define circ_space_to_end(circ) \
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)
97 if (!(acpi_aml_io.flags & flag) && circ_count(circ))
102 static inline bool __acpi_aml_writable(struct circ_buf *circ, unsigned long flag)
108 if (!(acpi_aml_io.flags & flag) && circ_space(circ))
203 static int acpi_aml_lock_write(struct circ_buf *circ, unsigned long flag)
212 if (!__acpi_aml_writable(circ, flag)) {
222 static int acpi_aml_lock_read(struct circ_buf *circ, unsigned long flag)
231 if (!__acpi_aml_readable(circ, flag)) {