Lines Matching refs:circ
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()
102 static inline bool __acpi_aml_writable(struct circ_buf *circ, unsigned long flag) in __acpi_aml_writable() argument
108 if (!(acpi_aml_io.flags & flag) && circ_space(circ)) in __acpi_aml_writable()
203 static int acpi_aml_lock_write(struct circ_buf *circ, unsigned long flag) in acpi_aml_lock_write() argument
212 if (!__acpi_aml_writable(circ, flag)) { in acpi_aml_lock_write()
222 static int acpi_aml_lock_read(struct circ_buf *circ, unsigned long flag) in acpi_aml_lock_read() argument
231 if (!__acpi_aml_readable(circ, flag)) { in acpi_aml_lock_read()