Lines Matching refs:Aml

448 static Aml *aml_alloc(void)  in aml_alloc()
450 Aml *var = g_new0(typeof(*var), 1); in aml_alloc()
458 static Aml *aml_opcode(uint8_t op) in aml_opcode()
460 Aml *var = aml_alloc(); in aml_opcode()
467 static Aml *aml_bundle(uint8_t op, AmlBlockFlags flags) in aml_bundle()
469 Aml *var = aml_alloc(); in aml_bundle()
478 Aml *var = data; in aml_free()
483 Aml *init_aml_allocator(void) in init_aml_allocator()
508 void aml_append(Aml *parent_ctx, Aml *child) in aml_append()
545 Aml *aml_scope(const char *name_format, ...) in aml_scope()
548 Aml *var = aml_bundle(0x10 /* ScopeOp */, AML_PACKAGE); in aml_scope()
556 Aml *aml_return(Aml *val) in aml_return()
558 Aml *var = aml_opcode(0xA4 /* ReturnOp */); in aml_return()
564 Aml *aml_debug(void) in aml_debug()
566 Aml *var = aml_alloc(); in aml_debug()
576 Aml *aml_int(const uint64_t val) in aml_int()
578 Aml *var = aml_alloc(); in aml_int()
587 Aml *aml_name(const char *name_format, ...) in aml_name()
590 Aml *var = aml_alloc(); in aml_name()
598 Aml *aml_name_decl(const char *name, Aml *val) in aml_name_decl()
600 Aml *var = aml_opcode(0x08 /* NameOp */); in aml_name_decl()
607 Aml *aml_arg(int pos) in aml_arg()
616 Aml *aml_to_integer(Aml *arg) in aml_to_integer()
618 Aml *var = aml_opcode(0x99 /* ToIntegerOp */); in aml_to_integer()
625 Aml *aml_to_hexstring(Aml *src, Aml *dst) in aml_to_hexstring()
627 Aml *var = aml_opcode(0x98 /* ToHexStringOp */); in aml_to_hexstring()
638 Aml *aml_to_buffer(Aml *src, Aml *dst) in aml_to_buffer()
640 Aml *var = aml_opcode(0x96 /* ToBufferOp */); in aml_to_buffer()
651 Aml *aml_to_decimalstring(Aml *src, Aml *dst) in aml_to_decimalstring()
653 Aml *var = aml_opcode(0x97 /* ToDecimalStringOp */); in aml_to_decimalstring()
664 Aml *aml_store(Aml *val, Aml *target) in aml_store()
666 Aml *var = aml_opcode(0x70 /* StoreOp */); in aml_store()
685 static Aml *
686 build_opcode_2arg_dst(uint8_t op, Aml *arg1, Aml *arg2, Aml *dst) in build_opcode_2arg_dst()
688 Aml *var = aml_opcode(op); in build_opcode_2arg_dst()
700 Aml *aml_and(Aml *arg1, Aml *arg2, Aml *dst) in aml_and()
706 Aml *aml_or(Aml *arg1, Aml *arg2, Aml *dst) in aml_or()
712 Aml *aml_land(Aml *arg1, Aml *arg2) in aml_land()
714 Aml *var = aml_opcode(0x90 /* LAndOp */); in aml_land()
721 Aml *aml_lor(Aml *arg1, Aml *arg2) in aml_lor()
723 Aml *var = aml_opcode(0x91 /* LOrOp */); in aml_lor()
730 Aml *aml_shiftleft(Aml *arg1, Aml *count) in aml_shiftleft()
736 Aml *aml_shiftright(Aml *arg1, Aml *count, Aml *dst) in aml_shiftright()
742 Aml *aml_lless(Aml *arg1, Aml *arg2) in aml_lless()
744 Aml *var = aml_opcode(0x95 /* LLessOp */); in aml_lless()
751 Aml *aml_add(Aml *arg1, Aml *arg2, Aml *dst) in aml_add()
757 Aml *aml_subtract(Aml *arg1, Aml *arg2, Aml *dst) in aml_subtract()
763 Aml *aml_increment(Aml *arg) in aml_increment()
765 Aml *var = aml_opcode(0x75 /* IncrementOp */); in aml_increment()
771 Aml *aml_decrement(Aml *arg) in aml_decrement()
773 Aml *var = aml_opcode(0x76 /* DecrementOp */); in aml_decrement()
779 Aml *aml_index(Aml *arg1, Aml *idx) in aml_index()
785 Aml *aml_notify(Aml *arg1, Aml *arg2) in aml_notify()
787 Aml *var = aml_opcode(0x86 /* NotifyOp */); in aml_notify()
794 Aml *aml_break(void) in aml_break()
796 Aml *var = aml_opcode(0xa5 /* BreakOp */); in aml_break()
801 Aml *aml_call0(const char *method) in aml_call0()
803 Aml *var = aml_alloc(); in aml_call0()
809 Aml *aml_call1(const char *method, Aml *arg1) in aml_call1()
811 Aml *var = aml_alloc(); in aml_call1()
818 Aml *aml_call2(const char *method, Aml *arg1, Aml *arg2) in aml_call2()
820 Aml *var = aml_alloc(); in aml_call2()
828 Aml *aml_call3(const char *method, Aml *arg1, Aml *arg2, Aml *arg3) in aml_call3()
830 Aml *var = aml_alloc(); in aml_call3()
839 Aml *aml_call4(const char *method, Aml *arg1, Aml *arg2, Aml *arg3, Aml *arg4) in aml_call4()
841 Aml *var = aml_alloc(); in aml_call4()
851 Aml *aml_call5(const char *method, Aml *arg1, Aml *arg2, Aml *arg3, Aml *arg4, in aml_call5()
852 Aml *arg5) in aml_call5()
854 Aml *var = aml_alloc(); in aml_call5()
865 Aml *aml_call6(const char *method, Aml *arg1, Aml *arg2, Aml *arg3, Aml *arg4, in aml_call6()
866 Aml *arg5, Aml *arg6) in aml_call6()
868 Aml *var = aml_alloc(); in aml_call6()
884 static Aml *aml_gpio_connection(AmlGpioConnectionType type, in aml_gpio_connection()
894 Aml *var = aml_alloc(); in aml_gpio_connection()
951 Aml *aml_gpio_int(AmlConsumerAndProducer con_and_pro, in aml_gpio_int()
971 Aml *aml_memory32_fixed(uint32_t addr, uint32_t size, in aml_memory32_fixed()
974 Aml *var = aml_alloc(); in aml_memory32_fixed()
998 Aml *aml_interrupt(AmlConsumerAndProducer con_and_pro, in aml_interrupt()
1004 Aml *var = aml_alloc(); in aml_interrupt()
1026 Aml *aml_io(AmlIODecode dec, uint16_t min_base, uint16_t max_base, in aml_io()
1029 Aml *var = aml_alloc(); in aml_io()
1048 Aml *aml_irq_no_flags(uint8_t irq) in aml_irq_no_flags()
1051 Aml *var = aml_alloc(); in aml_irq_no_flags()
1063 Aml *aml_lnot(Aml *arg) in aml_lnot()
1065 Aml *var = aml_opcode(0x92 /* LNotOp */); in aml_lnot()
1071 Aml *aml_equal(Aml *arg1, Aml *arg2) in aml_equal()
1073 Aml *var = aml_opcode(0x93 /* LequalOp */); in aml_equal()
1080 Aml *aml_lgreater(Aml *arg1, Aml *arg2) in aml_lgreater()
1082 Aml *var = aml_opcode(0x94 /* LGreaterOp */); in aml_lgreater()
1089 Aml *aml_lgreater_equal(Aml *arg1, Aml *arg2) in aml_lgreater_equal()
1092 Aml *var = aml_opcode(0x92 /* LNotOp */); in aml_lgreater_equal()
1100 Aml *aml_if(Aml *predicate) in aml_if()
1102 Aml *var = aml_bundle(0xA0 /* IfOp */, AML_PACKAGE); in aml_if()
1108 Aml *aml_else(void) in aml_else()
1110 Aml *var = aml_bundle(0xA1 /* ElseOp */, AML_PACKAGE); in aml_else()
1115 Aml *aml_while(Aml *predicate) in aml_while()
1117 Aml *var = aml_bundle(0xA2 /* WhileOp */, AML_PACKAGE); in aml_while()
1123 Aml *aml_method(const char *name, int arg_count, AmlSerializeFlag sflag) in aml_method()
1125 Aml *var = aml_bundle(0x14 /* MethodOp */, AML_PACKAGE); in aml_method()
1145 Aml *aml_device(const char *name_format, ...) in aml_device()
1148 Aml *var = aml_bundle(0x82 /* DeviceOp */, AML_EXT_PACKAGE); in aml_device()
1156 Aml *aml_resource_template(void) in aml_resource_template()
1159 Aml *var = aml_bundle(0x11 /* BufferOp */, AML_RES_TEMPLATE); in aml_resource_template()
1166 Aml *aml_buffer(int buffer_size, uint8_t *byte_list) in aml_buffer()
1169 Aml *var = aml_bundle(0x11 /* BufferOp */, AML_BUFFER); in aml_buffer()
1183 Aml *aml_package(uint8_t num_elements) in aml_package()
1185 Aml *var = aml_bundle(0x12 /* PackageOp */, AML_PACKAGE); in aml_package()
1191 Aml *aml_operation_region(const char *name, AmlRegionSpace rs, in aml_operation_region()
1192 Aml *offset, uint32_t len) in aml_operation_region()
1194 Aml *var = aml_alloc(); in aml_operation_region()
1205 Aml *aml_named_field(const char *name, unsigned length) in aml_named_field()
1207 Aml *var = aml_alloc(); in aml_named_field()
1214 Aml *aml_reserved_field(unsigned length) in aml_reserved_field()
1216 Aml *var = aml_alloc(); in aml_reserved_field()
1224 Aml *aml_field(const char *name, AmlAccessType type, AmlLockRule lock, in aml_field()
1227 Aml *var = aml_bundle(0x81 /* FieldOp */, AML_EXT_PACKAGE); in aml_field()
1238 Aml *create_field_common(int opcode, Aml *srcbuf, Aml *index, const char *name) in create_field_common()
1240 Aml *var = aml_opcode(opcode); in create_field_common()
1248 Aml *aml_create_field(Aml *srcbuf, Aml *bit_index, Aml *num_bits, in aml_create_field()
1251 Aml *var = aml_alloc(); in aml_create_field()
1262 Aml *aml_create_dword_field(Aml *srcbuf, Aml *index, const char *name) in aml_create_dword_field()
1269 Aml *aml_create_qword_field(Aml *srcbuf, Aml *index, const char *name) in aml_create_qword_field()
1276 Aml *aml_string(const char *name_format, ...) in aml_string()
1278 Aml *var = aml_opcode(0x0D /* StringPrefix */); in aml_string()
1294 Aml *aml_local(int num) in aml_local()
1303 Aml *aml_varpackage(uint32_t num_elements) in aml_varpackage()
1305 Aml *var = aml_bundle(0x13 /* VarPackageOp */, AML_PACKAGE); in aml_varpackage()
1311 Aml *aml_processor(uint8_t proc_id, uint32_t pblk_addr, uint8_t pblk_len, in aml_processor()
1315 Aml *var = aml_bundle(0x83 /* ProcessorOp */, AML_EXT_PACKAGE); in aml_processor()
1335 Aml *aml_eisaid(const char *str) in aml_eisaid()
1337 Aml *var = aml_alloc(); in aml_eisaid()
1355 static Aml *aml_as_desc_header(AmlResourceType type, AmlMinFixed min_fixed, in aml_as_desc_header()
1360 Aml *var = aml_alloc(); in aml_as_desc_header()
1369 static Aml *aml_word_as_desc(AmlResourceType type, AmlMinFixed min_fixed, in aml_word_as_desc()
1375 Aml *var = aml_alloc(); in aml_word_as_desc()
1393 static Aml *aml_dword_as_desc(AmlResourceType type, AmlMinFixed min_fixed, in aml_dword_as_desc()
1399 Aml *var = aml_alloc(); in aml_dword_as_desc()
1418 static Aml *aml_qword_as_desc(AmlResourceType type, AmlMinFixed min_fixed, in aml_qword_as_desc()
1424 Aml *var = aml_alloc(); in aml_qword_as_desc()
1447 Aml *aml_word_bus_number(AmlMinFixed min_fixed, AmlMaxFixed max_fixed, in aml_word_bus_number()
1463 Aml *aml_word_io(AmlMinFixed min_fixed, AmlMaxFixed max_fixed, in aml_word_io()
1481 Aml *aml_dword_io(AmlMinFixed min_fixed, AmlMaxFixed max_fixed, in aml_dword_io()
1499 Aml *aml_dword_memory(AmlDecode dec, AmlMinFixed min_fixed, in aml_dword_memory()
1519 Aml *aml_qword_memory(AmlDecode dec, AmlMinFixed min_fixed, in aml_qword_memory()
1534 Aml *aml_dma(AmlDmaType typ, AmlDmaBusMaster bm, AmlTransferSize sz, in aml_dma()
1537 Aml *var = aml_alloc(); in aml_dma()
1548 Aml *aml_sleep(uint64_t msec) in aml_sleep()
1550 Aml *var = aml_alloc(); in aml_sleep()
1576 Aml *aml_touuid(const char *uuid) in aml_touuid()
1578 Aml *var = aml_bundle(0x11 /* BufferOp */, AML_BUFFER); in aml_touuid()
1613 Aml *aml_unicode(const char *str) in aml_unicode()
1616 Aml *var = aml_bundle(0x11 /* BufferOp */, AML_BUFFER); in aml_unicode()
1628 Aml *aml_refof(Aml *arg) in aml_refof()
1630 Aml *var = aml_opcode(0x71 /* RefOfOp */); in aml_refof()
1636 Aml *aml_derefof(Aml *arg) in aml_derefof()
1638 Aml *var = aml_opcode(0x83 /* DerefOfOp */); in aml_derefof()
1644 Aml *aml_sizeof(Aml *arg) in aml_sizeof()
1646 Aml *var = aml_opcode(0x87 /* SizeOfOp */); in aml_sizeof()
1652 Aml *aml_mutex(const char *name, uint8_t sync_level) in aml_mutex()
1654 Aml *var = aml_alloc(); in aml_mutex()
1664 Aml *aml_acquire(Aml *mutex, uint16_t timeout) in aml_acquire()
1666 Aml *var = aml_alloc(); in aml_acquire()
1675 Aml *aml_release(Aml *mutex) in aml_release()
1677 Aml *var = aml_alloc(); in aml_release()
1685 Aml *aml_alias(const char *source_object, const char *alias_object) in aml_alias()
1687 Aml *var = aml_opcode(0x06 /* AliasOp */); in aml_alias()
1694 Aml *aml_concatenate(Aml *source1, Aml *source2, Aml *target) in aml_concatenate()
1701 Aml *aml_object_type(Aml *object) in aml_object_type()
1703 Aml *var = aml_opcode(0x8E /* ObjectTypeOp */); in aml_object_type()
2322 Aml *build_crs(PCIHostState *host, CrsRangeSet *range_set, uint32_t io_offset, in build_crs()
2326 Aml *crs = aml_resource_template(); in build_crs()
2485 static Aml *aml_serial_bus_device(uint8_t serial_bus_type, uint8_t flags, in aml_serial_bus_device()
2490 Aml *var = aml_alloc(); in aml_serial_bus_device()
2508 Aml *aml_i2c_serial_bus_device(uint16_t address, const char *resource_source) in aml_i2c_serial_bus_device()
2511 Aml *var = aml_serial_bus_device(AML_SERIAL_BUS_TYPE_I2C, 0, 0, 1, in aml_i2c_serial_bus_device()