Go to the source code of this file.
◆ uacpi_mapped_gas
Definition at line 17 of file io.h.
◆ uacpi_gas_read()
Definition at line 1060 of file io.c.
1061{
1064
1068
1071
1073}
#define uacpi_unlikely_error(expr)
void uacpi_unmap_gas_nofree(uacpi_mapped_gas *gas)
uacpi_status uacpi_map_gas_noalloc(const struct acpi_gas *gas, uacpi_mapped_gas *out_mapped)
uacpi_status uacpi_gas_read_mapped(const uacpi_mapped_gas *gas, uacpi_u64 *out_value)
GLenum GLenum GLenum GLenum mapping
◆ uacpi_gas_read_mapped()
Same as uacpi_gas_{read,write} but operates on a pre-mapped handle for faster access and/or ability to use in critical sections/irq contexts.
Definition at line 911 of file io.c.
914{
920
923
925
926 if (access_byte_width < 8)
928
929 *out_value = 0;
930
931 while (bits_left) {
935 } else {
939 }
940
944 offset += access_byte_width;
945 }
946
948}
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
uacpi_u8 access_bit_width
uacpi_status(* read)(uacpi_handle, uacpi_size offset, uacpi_u8 width, uacpi_u64 *out)
Referenced by detect_gpes(), do_read_one(), gpe_try_claim(), maybe_dispatch_gpe(), set_gpe_state_unlocked(), uacpi_gas_read(), and uacpi_gpe_info().
◆ uacpi_gas_write()
Definition at line 1075 of file io.c.
1076{
1079
1083
1086
1088}
uacpi_status uacpi_gas_write_mapped(const uacpi_mapped_gas *gas, uacpi_u64 in_value)
◆ uacpi_gas_write_mapped()
Definition at line 950 of file io.c.
953{
959
963
964 if (access_byte_width < 8)
966
967 while (bits_left) {
969
972 } else {
976 }
977
980 offset += access_byte_width;
981 }
982
984}
uacpi_status(* write)(uacpi_handle, uacpi_size offset, uacpi_u8 width, uacpi_u64 in)
Referenced by clear_gpe(), create_gpe_block(), do_write_one(), gpe_block_apply_action(), gpe_try_claim(), set_gpe_state_unlocked(), uacpi_gas_write(), and uninstall_gpe_block().
◆ uacpi_map_gas()
Map a GAS for faster access in the future. The handle returned via 'out_mapped' must be freed & unmapped using uacpi_unmap_gas() when no longer needed.
Definition at line 1028 of file io.c.
1031{
1034
1038
1043 }
1044
1047}
#define uacpi_free(mem, _)
@ UACPI_STATUS_OUT_OF_MEMORY
void * uacpi_kernel_alloc(uacpi_size size)
◆ uacpi_unmap_gas()