Lines Matching refs:aml
227 fn to_aml_bytes(&self, aml: &mut Vec<u8>) { in to_aml_bytes()
242 aml.append(&mut bytes); in to_aml_bytes()
393 fn to_aml_bytes(&self, aml: &mut Vec<u8>) { in to_aml_bytes()
423 aml.append(&mut bytes); in to_aml_bytes()
661 fn to_aml_bytes(&self, aml: &mut Vec<u8>) { in to_aml_bytes()
676 aml.append(&mut bytes) in to_aml_bytes()
694 fn to_aml_bytes(&self, aml: &mut Vec<u8>) { in to_aml_bytes()
708 aml.append(&mut bytes) in to_aml_bytes()
740 fn to_aml_bytes(&self, aml: &mut Vec<u8>) { in to_aml_bytes()
756 aml.append(&mut bytes) in to_aml_bytes()
831 fn to_aml_bytes(&self, aml: &mut Vec<u8>) { in to_aml_bytes()
859 aml.append(&mut bytes) in to_aml_bytes()
899 fn to_aml_bytes(&self, aml: &mut Vec<u8>) { in to_aml_bytes()
907 aml.append(&mut bytes) in to_aml_bytes()
928 fn to_aml_bytes(&self, aml: &mut Vec<u8>) { in to_aml_bytes()
942 aml.append(&mut bytes) in to_aml_bytes()
1137 fn to_aml_bytes(&self, aml: &mut Vec<u8>) { in to_aml_bytes()
1151 aml.append(&mut bytes) in to_aml_bytes()
1233 fn to_aml_bytes(&self, aml: &mut Vec<u8>) { in to_aml_bytes()
1246 aml.append(&mut bytes) in to_aml_bytes()
1281 let mut aml = Vec::new(); in test_device() localVariable
1296 .to_aml_bytes(&mut aml); in test_device()
1297 assert_eq!(aml, &com1_device[..]); in test_device()
1320 let mut aml = Vec::new(); in test_scope() localVariable
1329 .to_aml_bytes(&mut aml); in test_scope()
1330 assert_eq!(aml, &mbrd_scope[..]); in test_scope()
1348 let mut aml = Vec::new(); in test_resource_template() localVariable
1354 .to_aml_bytes(&mut aml); in test_resource_template()
1355 assert_eq!(aml, crs_memory_32_fixed); in test_resource_template()
1410 aml.clear(); in test_resource_template()
1416 .to_aml_bytes(&mut aml); in test_resource_template()
1417 assert_eq!(aml, &crs_word_bus_number); in test_resource_template()
1426 aml.clear(); in test_resource_template()
1435 .to_aml_bytes(&mut aml); in test_resource_template()
1436 assert_eq!(aml, &crs_word_io[..]); in test_resource_template()
1446 aml.clear(); in test_resource_template()
1465 .to_aml_bytes(&mut aml); in test_resource_template()
1466 assert_eq!(aml, &crs_dword_memory[..]); in test_resource_template()
1476 aml.clear(); in test_resource_template()
1486 .to_aml_bytes(&mut aml); in test_resource_template()
1488 assert_eq!(aml, &crs_qword_memory[..]); in test_resource_template()
1510 aml.clear(); in test_resource_template()
1518 .to_aml_bytes(&mut aml); in test_resource_template()
1520 assert_eq!(aml, &interrupt_io_data[..]); in test_resource_template()
1549 let mut aml = Vec::new(); in test_package() localVariable
1551 Name::new("_S5_".into(), &Package::new(vec![&5u8])).to_aml_bytes(&mut aml); in test_package()
1553 assert_eq!(s5_sleep_data.to_vec(), aml); in test_package()
1558 let mut aml = Vec::new(); in test_eisa_name() localVariable
1559 Name::new("_HID".into(), &EISAName::new("PNP0501")).to_aml_bytes(&mut aml); in test_eisa_name()
1561 aml, in test_eisa_name()
1567 let mut aml = Vec::new(); in test_name_path() localVariable
1568 (&"_SB_".into() as &Path).to_aml_bytes(&mut aml); in test_name_path()
1569 assert_eq!(aml, [0x5Fu8, 0x53, 0x42, 0x5F]); in test_name_path()
1570 aml.clear(); in test_name_path()
1571 (&"\\_SB_".into() as &Path).to_aml_bytes(&mut aml); in test_name_path()
1572 assert_eq!(aml, [0x5C, 0x5F, 0x53, 0x42, 0x5F]); in test_name_path()
1573 aml.clear(); in test_name_path()
1574 (&"_SB_.COM1".into() as &Path).to_aml_bytes(&mut aml); in test_name_path()
1575 assert_eq!(aml, [0x2E, 0x5F, 0x53, 0x42, 0x5F, 0x43, 0x4F, 0x4D, 0x31]); in test_name_path()
1576 aml.clear(); in test_name_path()
1577 (&"_SB_.PCI0._HID".into() as &Path).to_aml_bytes(&mut aml); in test_name_path()
1579 aml, in test_name_path()
1586 let mut aml = Vec::new(); in test_numbers() localVariable
1587 128u8.to_aml_bytes(&mut aml); in test_numbers()
1588 assert_eq!(aml, [0x0a, 0x80]); in test_numbers()
1589 aml.clear(); in test_numbers()
1590 1024u16.to_aml_bytes(&mut aml); in test_numbers()
1591 assert_eq!(aml, [0x0b, 0x0, 0x04]); in test_numbers()
1592 aml.clear(); in test_numbers()
1593 (16u32 << 20).to_aml_bytes(&mut aml); in test_numbers()
1594 assert_eq!(aml, [0x0c, 0x00, 0x00, 0x0, 0x01]); in test_numbers()
1595 aml.clear(); in test_numbers()
1596 0xdeca_fbad_deca_fbadu64.to_aml_bytes(&mut aml); in test_numbers()
1597 assert_eq!(aml, [0x0e, 0xad, 0xfb, 0xca, 0xde, 0xad, 0xfb, 0xca, 0xde]); in test_numbers()
1602 let mut aml = Vec::new(); in test_name() localVariable
1603 Name::new("_SB_.PCI0._UID".into(), &0x1234u16).to_aml_bytes(&mut aml); in test_name()
1605 aml, in test_name()
1621 let mut aml = Vec::new(); in test_string() localVariable
1622 (&"ACPI" as &dyn Aml).to_aml_bytes(&mut aml); in test_string()
1623 assert_eq!(aml, [0x0d, b'A', b'C', b'P', b'I', 0]); in test_string()
1624 aml.clear(); in test_string()
1625 "ACPI".to_owned().to_aml_bytes(&mut aml); in test_string()
1626 assert_eq!(aml, [0x0d, b'A', b'C', b'P', b'I', 0]); in test_string()
1631 let mut aml = Vec::new(); in test_method() localVariable
1632 Method::new("_STA".into(), 0, false, vec![&Return::new(&0xfu8)]).to_aml_bytes(&mut aml); in test_method()
1634 aml, in test_method()
1660 let mut aml = Vec::new(); in test_field() localVariable
1676 .to_aml_bytes(&mut aml); in test_field()
1677 assert_eq!(aml, &field_data[..]); in test_field()
1692 aml.clear(); in test_field()
1704 .to_aml_bytes(&mut aml); in test_field()
1705 assert_eq!(aml, &field_data[..]); in test_field()
1716 let mut aml = Vec::new(); in test_op_region() localVariable
1718 OpRegion::new("PRST".into(), OpRegionSpace::SystemIO, 0xcd8, 0xc).to_aml_bytes(&mut aml); in test_op_region()
1719 assert_eq!(aml, &op_region_data[..]); in test_op_region()
1736 let mut aml = Vec::new(); in test_arg_if() localVariable
1747 .to_aml_bytes(&mut aml); in test_arg_if()
1748 assert_eq!(aml, &arg_if_data); in test_arg_if()
1766 let mut aml = Vec::new(); in test_local_if() localVariable
1778 .to_aml_bytes(&mut aml); in test_local_if()
1779 assert_eq!(aml, &local_if_data); in test_local_if()
1804 let mut aml = Vec::new(); in test_mutex() localVariable
1824 .to_aml_bytes(&mut aml); in test_mutex()
1825 assert_eq!(aml, &mutex_data[..]); in test_mutex()
1845 let mut aml = Vec::new(); in test_notify() localVariable
1859 .to_aml_bytes(&mut aml); in test_notify()
1860 assert_eq!(aml, ¬ify_data[..]); in test_notify()
1885 let mut aml = Vec::new(); in test_while() localVariable
1905 .to_aml_bytes(&mut aml); in test_while()
1906 assert_eq!(aml, &while_data[..]) in test_while()
1957 let mut aml = Vec::new(); in test_buffer() localVariable
1963 .to_aml_bytes(&mut aml); in test_buffer()
1964 assert_eq!(aml, &buffer_data[..]) in test_buffer()