Lines Matching refs:f
120 console_vuart = scenario_etree.xpath(f"./console_vuart[base != 'INVALID_PCI_BASE']/@id")
122 devdict_32bits[(f"{VUART}_{vuart_id}", "bar0")] = PCI_VUART_VBAR0_SIZE
123 devdict_32bits[(f"{VUART}_{vuart_id}", "bar1")] = PCI_VUART_VBAR1_SIZE
125 vm_name = get_node(f"//vm[@id = '{vm_id}']/name/text()", scenario_etree)
126 …communication_vuarts = scenario_etree.xpath(f"//vuart_connection[endpoint/vm_name/text() = '{vm_na…
128 connection_type = get_node(f"./type/text()", vuart)
130 devdict_32bits[(f"{VUART}_{vuart_id}", "bar0")] = PCI_VUART_VBAR0_SIZE
131 devdict_32bits[(f"{VUART}_{vuart_id}", "bar1")] = PCI_VUART_VBAR1_SIZE
134 legacy_vuart = vm_node.xpath(f".//legacy_vuart[base = 'CONFIG_COM_BASE']/@id")
136 devdict_io_port[(f"{LEGACY_VUART}_{vuart_id}", "base")] = LEGACY_VUART_IO_PORT_SIZE
149 devdict_32bits[(f"{IVSHMEM}_{idx}", "bar0")] = BAR0_SHEMEM_SIZE
150 devdict_32bits[(f"{IVSHMEM}_{idx}", "bar1")] = BAR1_SHEMEM_SIZE
151 devdict_64bits[(f"{IVSHMEM}_{idx}", "bar2")] = int_size
154 pt_devs = vm_node_etree.xpath(f".//pci_dev/text()")
161 …pt_dev_node = get_node(f"//bus[@type = 'pci' and @address = '{hex(bus)}']/device[@address = '{hex(…
173 devdict_32bits[(f"{dev_name}", f"{bar_region}")] = int(bar_len, 16)
175 devdict_64bits[(f"{dev_name}", f"{bar_region}")] = int(bar_len, 16)
178 pt_devs = vm_node_etree.xpath(f".//pci_dev/text()")
186 …pt_dev_node = get_node(f"//bus[@type = 'pci' and @address = '{hex(bus)}']/device[@address = '{hex(…
192 devdict[(f"{dev_name}", f"{bar_region}")] = int(pt_dev_resource.get('min'), 16)
223 …raise lib.error.ResourceError(f"Cannot allocate a bar index for vmsix supported device: {vendor}:{…
225 bus = get_node(f"../@address", pt_dev_node)
229 devdict[(f"{dev_name}", f"bar{next_bar_region}")] = VMSIX_VBAR_SIZE
232 …nodes = board_etree.xpath(f"//resource[@type = 'memory' and @len != '0x0' and @id and @width and @…
233 …secondary_pci_nodes = board_etree.xpath(f"//resource[../bus[@type = 'pci'] and @type = 'memory' an…
255 nodes = board_etree.xpath(f"//device/resource[@type = 'io_port' and @len != '0x0' and @id]")
274 pt_devs = scenario_etree.xpath(f"//vm[load_order = 'PRE_LAUNCHED_VM']/pci_devs/pci_dev/text()")
280 …resources = board_etree.xpath(f"//bus[@address = '{hex(bus)}']/device[@address = '{hex((dev << 16)…
294 pt_devs = vm_node.xpath(f".//pci_devs/pci_dev/text()")
300 …resources = board_etree.xpath(f"//bus[@address = '{hex(bus)}']/device[@address = '{hex((dev << 16)…
314 vm_nodes = scenario_etree.xpath(f"//vm[load_order = 'PRE_LAUNCHED_VM']")
351 vm_node = get_node(f"/acrn-config/vm[@id = '{vm_id}']", allocation_etree)
354 dev_node = get_node(f"./device[@name = '{dev_name}']", vm_node)
357 if get_node(f"./bar[@id='{bar_region}']", dev_node) is None:
358 acrn_config_utilities.append_node(f"./bar", hex(bar_base), dev_node, id = bar_region)
360 …acrn_config_utilities.update_text(f"./bar[@id = '2']", hex(bar_base | PREFETCHABLE_BIT | MEMORY_BA…
367 vm_node = get_node(f"/acrn-config/vm[@id = '{vm_id}']", allocation_etree)
370 vuart_node = get_node(f"./legacy_vuart[@id = '{vuart_id}']", vm_node)
373 if get_node(f"./base", vuart_node) is None:
374 acrn_config_utilities.append_node(f"./base", hex(bar_base), vuart_node)
392 raise ValueError(f"allocate size cannot be: {size}")
394 raise ValueError(f"No address range is specified:{windowslist}")
407 …raise lib.error.ResourceError(f"Not enough address window for a device size: {size}, free address …
510 allocation_vm_node = get_node(f"/acrn-config/vm[@id = '{vm_id}']", allocation_etree)
518 tpm2_enabled = get_node(f"//vm[@id = '0']/mmio_resources/TPM2/text()", scenario_etree)
523 … log_area_min_len_native = int(get_node(f"//log_area_minimum_length/text()", board_etree), 16)
525 allocation_vm_node = get_node(f"/acrn-config/vm[@id = '0']", allocation_etree)