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()
544 Aml *aml_scope(const char *name_format, ...) in aml_scope()
547 Aml *var = aml_bundle(0x10 /* ScopeOp */, AML_PACKAGE); in aml_scope()
555 Aml *aml_return(Aml *val) in aml_return()
557 Aml *var = aml_opcode(0xA4 /* ReturnOp */); in aml_return()
563 Aml *aml_debug(void) in aml_debug()
565 Aml *var = aml_alloc(); in aml_debug()
575 Aml *aml_int(const uint64_t val) in aml_int()
577 Aml *var = aml_alloc(); in aml_int()
586 Aml *aml_name(const char *name_format, ...) in aml_name()
589 Aml *var = aml_alloc(); in aml_name()
597 Aml *aml_name_decl(const char *name, Aml *val) in aml_name_decl()
599 Aml *var = aml_opcode(0x08 /* NameOp */); in aml_name_decl()
606 Aml *aml_arg(int pos) in aml_arg()
615 Aml *aml_to_integer(Aml *arg) in aml_to_integer()
617 Aml *var = aml_opcode(0x99 /* ToIntegerOp */); in aml_to_integer()
624 Aml *aml_to_hexstring(Aml *src, Aml *dst) in aml_to_hexstring()
626 Aml *var = aml_opcode(0x98 /* ToHexStringOp */); in aml_to_hexstring()
637 Aml *aml_to_buffer(Aml *src, Aml *dst) in aml_to_buffer()
639 Aml *var = aml_opcode(0x96 /* ToBufferOp */); in aml_to_buffer()
650 Aml *aml_to_decimalstring(Aml *src, Aml *dst) in aml_to_decimalstring()
652 Aml *var = aml_opcode(0x97 /* ToDecimalStringOp */); in aml_to_decimalstring()
663 Aml *aml_store(Aml *val, Aml *target) in aml_store()
665 Aml *var = aml_opcode(0x70 /* StoreOp */); in aml_store()
684 static Aml *
685 build_opcode_2arg_dst(uint8_t op, Aml *arg1, Aml *arg2, Aml *dst) in build_opcode_2arg_dst()
687 Aml *var = aml_opcode(op); in build_opcode_2arg_dst()
699 Aml *aml_and(Aml *arg1, Aml *arg2, Aml *dst) in aml_and()
705 Aml *aml_or(Aml *arg1, Aml *arg2, Aml *dst) in aml_or()
711 Aml *aml_land(Aml *arg1, Aml *arg2) in aml_land()
713 Aml *var = aml_opcode(0x90 /* LAndOp */); in aml_land()
720 Aml *aml_lor(Aml *arg1, Aml *arg2) in aml_lor()
722 Aml *var = aml_opcode(0x91 /* LOrOp */); in aml_lor()
729 Aml *aml_shiftleft(Aml *arg1, Aml *count) in aml_shiftleft()
735 Aml *aml_shiftright(Aml *arg1, Aml *count, Aml *dst) in aml_shiftright()
741 Aml *aml_lless(Aml *arg1, Aml *arg2) in aml_lless()
743 Aml *var = aml_opcode(0x95 /* LLessOp */); in aml_lless()
750 Aml *aml_add(Aml *arg1, Aml *arg2, Aml *dst) in aml_add()
756 Aml *aml_subtract(Aml *arg1, Aml *arg2, Aml *dst) in aml_subtract()
762 Aml *aml_increment(Aml *arg) in aml_increment()
764 Aml *var = aml_opcode(0x75 /* IncrementOp */); in aml_increment()
770 Aml *aml_decrement(Aml *arg) in aml_decrement()
772 Aml *var = aml_opcode(0x76 /* DecrementOp */); in aml_decrement()
778 Aml *aml_index(Aml *arg1, Aml *idx) in aml_index()
784 Aml *aml_notify(Aml *arg1, Aml *arg2) in aml_notify()
786 Aml *var = aml_opcode(0x86 /* NotifyOp */); in aml_notify()
793 Aml *aml_break(void) in aml_break()
795 Aml *var = aml_opcode(0xa5 /* BreakOp */); in aml_break()
800 Aml *aml_call0(const char *method) in aml_call0()
802 Aml *var = aml_alloc(); in aml_call0()
808 Aml *aml_call1(const char *method, Aml *arg1) in aml_call1()
810 Aml *var = aml_alloc(); in aml_call1()
817 Aml *aml_call2(const char *method, Aml *arg1, Aml *arg2) in aml_call2()
819 Aml *var = aml_alloc(); in aml_call2()
827 Aml *aml_call3(const char *method, Aml *arg1, Aml *arg2, Aml *arg3) in aml_call3()
829 Aml *var = aml_alloc(); in aml_call3()
838 Aml *aml_call4(const char *method, Aml *arg1, Aml *arg2, Aml *arg3, Aml *arg4) in aml_call4()
840 Aml *var = aml_alloc(); in aml_call4()
850 Aml *aml_call5(const char *method, Aml *arg1, Aml *arg2, Aml *arg3, Aml *arg4, in aml_call5()
851 Aml *arg5) in aml_call5()
853 Aml *var = aml_alloc(); in aml_call5()
864 Aml *aml_call6(const char *method, Aml *arg1, Aml *arg2, Aml *arg3, Aml *arg4, in aml_call6()
865 Aml *arg5, Aml *arg6) in aml_call6()
867 Aml *var = aml_alloc(); in aml_call6()
883 static Aml *aml_gpio_connection(AmlGpioConnectionType type, in aml_gpio_connection()
893 Aml *var = aml_alloc(); in aml_gpio_connection()
950 Aml *aml_gpio_int(AmlConsumerAndProducer con_and_pro, in aml_gpio_int()
970 Aml *aml_memory32_fixed(uint32_t addr, uint32_t size, in aml_memory32_fixed()
973 Aml *var = aml_alloc(); in aml_memory32_fixed()
997 Aml *aml_interrupt(AmlConsumerAndProducer con_and_pro, in aml_interrupt()
1003 Aml *var = aml_alloc(); in aml_interrupt()
1025 Aml *aml_io(AmlIODecode dec, uint16_t min_base, uint16_t max_base, in aml_io()
1028 Aml *var = aml_alloc(); in aml_io()
1047 Aml *aml_irq_no_flags(uint8_t irq) in aml_irq_no_flags()
1050 Aml *var = aml_alloc(); in aml_irq_no_flags()
1062 Aml *aml_lnot(Aml *arg) in aml_lnot()
1064 Aml *var = aml_opcode(0x92 /* LNotOp */); in aml_lnot()
1070 Aml *aml_equal(Aml *arg1, Aml *arg2) in aml_equal()
1072 Aml *var = aml_opcode(0x93 /* LequalOp */); in aml_equal()
1079 Aml *aml_lgreater(Aml *arg1, Aml *arg2) in aml_lgreater()
1081 Aml *var = aml_opcode(0x94 /* LGreaterOp */); in aml_lgreater()
1088 Aml *aml_lgreater_equal(Aml *arg1, Aml *arg2) in aml_lgreater_equal()
1091 Aml *var = aml_opcode(0x92 /* LNotOp */); in aml_lgreater_equal()
1099 Aml *aml_if(Aml *predicate) in aml_if()
1101 Aml *var = aml_bundle(0xA0 /* IfOp */, AML_PACKAGE); in aml_if()
1107 Aml *aml_else(void) in aml_else()
1109 Aml *var = aml_bundle(0xA1 /* ElseOp */, AML_PACKAGE); in aml_else()
1114 Aml *aml_while(Aml *predicate) in aml_while()
1116 Aml *var = aml_bundle(0xA2 /* WhileOp */, AML_PACKAGE); in aml_while()
1122 Aml *aml_method(const char *name, int arg_count, AmlSerializeFlag sflag) in aml_method()
1124 Aml *var = aml_bundle(0x14 /* MethodOp */, AML_PACKAGE); in aml_method()
1144 Aml *aml_device(const char *name_format, ...) in aml_device()
1147 Aml *var = aml_bundle(0x82 /* DeviceOp */, AML_EXT_PACKAGE); in aml_device()
1155 Aml *aml_resource_template(void) in aml_resource_template()
1158 Aml *var = aml_bundle(0x11 /* BufferOp */, AML_RES_TEMPLATE); in aml_resource_template()
1165 Aml *aml_buffer(int buffer_size, uint8_t *byte_list) in aml_buffer()
1168 Aml *var = aml_bundle(0x11 /* BufferOp */, AML_BUFFER); in aml_buffer()
1182 Aml *aml_package(uint8_t num_elements) in aml_package()
1184 Aml *var = aml_bundle(0x12 /* PackageOp */, AML_PACKAGE); in aml_package()
1190 Aml *aml_operation_region(const char *name, AmlRegionSpace rs, in aml_operation_region()
1191 Aml *offset, uint32_t len) in aml_operation_region()
1193 Aml *var = aml_alloc(); in aml_operation_region()
1204 Aml *aml_named_field(const char *name, unsigned length) in aml_named_field()
1206 Aml *var = aml_alloc(); in aml_named_field()
1213 Aml *aml_reserved_field(unsigned length) in aml_reserved_field()
1215 Aml *var = aml_alloc(); in aml_reserved_field()
1223 Aml *aml_field(const char *name, AmlAccessType type, AmlLockRule lock, in aml_field()
1226 Aml *var = aml_bundle(0x81 /* FieldOp */, AML_EXT_PACKAGE); in aml_field()
1237 Aml *create_field_common(int opcode, Aml *srcbuf, Aml *index, const char *name) in create_field_common()
1239 Aml *var = aml_opcode(opcode); in create_field_common()
1247 Aml *aml_create_field(Aml *srcbuf, Aml *bit_index, Aml *num_bits, in aml_create_field()
1250 Aml *var = aml_alloc(); in aml_create_field()
1261 Aml *aml_create_dword_field(Aml *srcbuf, Aml *index, const char *name) in aml_create_dword_field()
1268 Aml *aml_create_qword_field(Aml *srcbuf, Aml *index, const char *name) in aml_create_qword_field()
1275 Aml *aml_string(const char *name_format, ...) in aml_string()
1277 Aml *var = aml_opcode(0x0D /* StringPrefix */); in aml_string()
1293 Aml *aml_local(int num) in aml_local()
1302 Aml *aml_varpackage(uint32_t num_elements) in aml_varpackage()
1304 Aml *var = aml_bundle(0x13 /* VarPackageOp */, AML_PACKAGE); in aml_varpackage()
1310 Aml *aml_processor(uint8_t proc_id, uint32_t pblk_addr, uint8_t pblk_len, in aml_processor()
1314 Aml *var = aml_bundle(0x83 /* ProcessorOp */, AML_EXT_PACKAGE); in aml_processor()
1334 Aml *aml_eisaid(const char *str) in aml_eisaid()
1336 Aml *var = aml_alloc(); in aml_eisaid()
1354 static Aml *aml_as_desc_header(AmlResourceType type, AmlMinFixed min_fixed, in aml_as_desc_header()
1359 Aml *var = aml_alloc(); in aml_as_desc_header()
1368 static Aml *aml_word_as_desc(AmlResourceType type, AmlMinFixed min_fixed, in aml_word_as_desc()
1374 Aml *var = aml_alloc(); in aml_word_as_desc()
1392 static Aml *aml_dword_as_desc(AmlResourceType type, AmlMinFixed min_fixed, in aml_dword_as_desc()
1398 Aml *var = aml_alloc(); in aml_dword_as_desc()
1417 static Aml *aml_qword_as_desc(AmlResourceType type, AmlMinFixed min_fixed, in aml_qword_as_desc()
1423 Aml *var = aml_alloc(); in aml_qword_as_desc()
1446 Aml *aml_word_bus_number(AmlMinFixed min_fixed, AmlMaxFixed max_fixed, in aml_word_bus_number()
1462 Aml *aml_word_io(AmlMinFixed min_fixed, AmlMaxFixed max_fixed, in aml_word_io()
1480 Aml *aml_dword_io(AmlMinFixed min_fixed, AmlMaxFixed max_fixed, in aml_dword_io()
1498 Aml *aml_dword_memory(AmlDecode dec, AmlMinFixed min_fixed, in aml_dword_memory()
1518 Aml *aml_qword_memory(AmlDecode dec, AmlMinFixed min_fixed, in aml_qword_memory()
1533 Aml *aml_dma(AmlDmaType typ, AmlDmaBusMaster bm, AmlTransferSize sz, in aml_dma()
1536 Aml *var = aml_alloc(); in aml_dma()
1547 Aml *aml_sleep(uint64_t msec) in aml_sleep()
1549 Aml *var = aml_alloc(); in aml_sleep()
1575 Aml *aml_touuid(const char *uuid) in aml_touuid()
1577 Aml *var = aml_bundle(0x11 /* BufferOp */, AML_BUFFER); in aml_touuid()
1612 Aml *aml_unicode(const char *str) in aml_unicode()
1615 Aml *var = aml_bundle(0x11 /* BufferOp */, AML_BUFFER); in aml_unicode()
1627 Aml *aml_refof(Aml *arg) in aml_refof()
1629 Aml *var = aml_opcode(0x71 /* RefOfOp */); in aml_refof()
1635 Aml *aml_derefof(Aml *arg) in aml_derefof()
1637 Aml *var = aml_opcode(0x83 /* DerefOfOp */); in aml_derefof()
1643 Aml *aml_sizeof(Aml *arg) in aml_sizeof()
1645 Aml *var = aml_opcode(0x87 /* SizeOfOp */); in aml_sizeof()
1651 Aml *aml_mutex(const char *name, uint8_t sync_level) in aml_mutex()
1653 Aml *var = aml_alloc(); in aml_mutex()
1663 Aml *aml_acquire(Aml *mutex, uint16_t timeout) in aml_acquire()
1665 Aml *var = aml_alloc(); in aml_acquire()
1674 Aml *aml_release(Aml *mutex) in aml_release()
1676 Aml *var = aml_alloc(); in aml_release()
1684 Aml *aml_alias(const char *source_object, const char *alias_object) in aml_alias()
1686 Aml *var = aml_opcode(0x06 /* AliasOp */); in aml_alias()
1693 Aml *aml_concatenate(Aml *source1, Aml *source2, Aml *target) in aml_concatenate()
1700 Aml *aml_object_type(Aml *object) in aml_object_type()
1702 Aml *var = aml_opcode(0x8E /* ObjectTypeOp */); in aml_object_type()
2404 Aml *build_crs(PCIHostState *host, CrsRangeSet *range_set, uint32_t io_offset, in build_crs()
2408 Aml *crs = aml_resource_template(); in build_crs()
2567 static Aml *aml_serial_bus_device(uint8_t serial_bus_type, uint8_t flags, in aml_serial_bus_device()
2572 Aml *var = aml_alloc(); in aml_serial_bus_device()
2590 Aml *aml_i2c_serial_bus_device(uint16_t address, const char *resource_source) in aml_i2c_serial_bus_device()
2593 Aml *var = aml_serial_bus_device(AML_SERIAL_BUS_TYPE_I2C, 0, 0, 1, in aml_i2c_serial_bus_device()