Home
last modified time | relevance | path

Searched refs:table_offset (Results 1 – 16 of 16) sorted by relevance

/openbmc/qemu/hw/pci/
H A Dmsix.c323 unsigned table_offset, MemoryRegion *pba_bar, in msix_init() argument
347 ranges_overlap(table_offset, table_size, pba_offset, pba_size)) || in msix_init()
348 table_offset + table_size > memory_region_size(table_bar) || in msix_init()
350 (table_offset | pba_offset) & PCI_MSIX_FLAGS_BIRMASK) { in msix_init()
370 pci_set_long(config + PCI_MSIX_TABLE, table_offset | table_bar_nr); in msix_init()
385 memory_region_add_subregion(table_bar, table_offset, &dev->msix_table_mmio); in msix_init()
/openbmc/qemu/tests/image-fuzzer/qcow2/
H A Dlayout.py398 def create_table_entry(table_offset, block_cluster, block_size, argument
401 offset = table_offset + UINT64_S * (cluster // block_size)
442 table_offset = min(table_clusters) * self.cluster_size
457 rfc_table.append(create_table_entry(table_offset,
465 self.header['refcount_table_offset'][0].value = table_offset
/openbmc/qemu/hw/riscv/
H A Driscv-iommu-sys.c118 uint32_t table_offset = RISCV_IOMMU_REG_MSI_CONFIG; in riscv_iommu_sysdev_init_msi() local
127 memory_region_add_subregion(&iommu->regs_mr, table_offset, in riscv_iommu_sysdev_init_msi()
H A Dvirt-acpi-build.c318 isa_offset = table_data->len - table.table_offset; in build_rhct()
338 cmo_offset = table_data->len - table.table_offset; in build_rhct()
368 mmu_offset = table_data->len - table.table_offset; in build_rhct()
725 iommu_offset = table_data->len - table.table_offset; in build_rimt()
/openbmc/qemu/block/
H A Dqcow2-cache.c56 ptrdiff_t table_offset = (uint8_t *) table - (uint8_t *) c->table_array; in qcow2_cache_get_table_idx() local
57 int idx = table_offset / c->table_size; in qcow2_cache_get_table_idx()
58 assert(idx >= 0 && idx < c->size && table_offset % c->table_size == 0); in qcow2_cache_get_table_idx()
H A Dvpc.c109 uint64_t table_offset; member
408 s->bat_offset = be64_to_cpu(dyndisk_header.table_offset); in vpc_open()
877 dyndisk_header.table_offset = cpu_to_be64(3 * 512); in create_dynamic_disk()
H A Dqcow2-refcount.c541 uint64_t table_offset, block_offset, end_offset; in qcow2_refcount_area() local
611 table_offset = start_offset + additional_refblock_count * s->cluster_size; in qcow2_refcount_area()
612 end_offset = table_offset + table_clusters * s->cluster_size; in qcow2_refcount_area()
674 assert(block_offset == table_offset); in qcow2_refcount_area()
689 ret = bdrv_pwrite_sync(bs->file, table_offset, in qcow2_refcount_area()
704 data.d64 = cpu_to_be64(table_offset); in qcow2_refcount_area()
721 s->refcount_table_offset = table_offset; in qcow2_refcount_area()
/openbmc/qemu/include/hw/pci/
H A Dmsix.h12 unsigned table_offset, MemoryRegion *pba_bar,
/openbmc/qemu/hw/i3c/
H A Ddw-i3c.c640 int table_offset = dw_i3c_addr_table_index_from_addr(s, addr); in dw_i3c_handle_ctlr_req() local
642 if (table_offset < 0) { in dw_i3c_handle_ctlr_req()
647 table_offset += (ARRAY_FIELD_EX32(s->regs, DEVICE_ADDR_TABLE_POINTER, in dw_i3c_handle_ctlr_req()
649 if (FIELD_EX32(s->regs[table_offset], DEVICE_ADDR_TABLE_LOC1, MR_REJECT)) { in dw_i3c_handle_ctlr_req()
669 int table_offset = dw_i3c_addr_table_index_from_addr(s, addr); in dw_i3c_handle_targ_irq() local
671 if (table_offset < 0) { in dw_i3c_handle_targ_irq()
676 table_offset += (ARRAY_FIELD_EX32(s->regs, DEVICE_ADDR_TABLE_POINTER, in dw_i3c_handle_targ_irq()
678 if (FIELD_EX32(s->regs[table_offset], DEVICE_ADDR_TABLE_LOC1, SIR_REJECT)) { in dw_i3c_handle_targ_irq()
/openbmc/qemu/hw/vfio/
H A Dpci.h116 uint32_t table_offset; member
H A Dpci.c1563 start = vdev->msix->table_offset & qemu_real_host_page_mask(); in vfio_pci_fixup_msix_region()
1564 end = REAL_HOST_PAGE_ALIGN((uint64_t)vdev->msix->table_offset + in vfio_pci_fixup_msix_region()
1687 vdev->msix->table_offset = 0; in vfio_pci_relocate_msix()
1695 vdev->msix->table_offset = vdev->bars[target_bar].size / 2; in vfio_pci_relocate_msix()
1701 vdev->msix->pba_offset = vdev->msix->table_offset + in vfio_pci_relocate_msix()
1705 vdev->msix->table_bar, vdev->msix->table_offset); in vfio_pci_relocate_msix()
1760 msix->table_offset = table & ~PCI_MSIX_FLAGS_BIRMASK; in vfio_msix_early_setup()
1807 msix->table_offset, msix->entries, in vfio_msix_early_setup()
1825 vdev->msix->table_bar, vdev->msix->table_offset, in vfio_msix_setup()
/openbmc/qemu/include/hw/s390x/
H A Ds390-pci-bus.h256 uint32_t table_offset; member
/openbmc/qemu/hw/acpi/
H A Daml-build.c1710 desc->table_offset = array->len; in acpi_table_begin()
1741 uint32_t table_len = desc->array->len - desc->table_offset; in acpi_table_end()
1743 gchar *len_ptr = &desc->array->data[desc->table_offset + 4]; in acpi_table_end()
1752 desc->table_offset, table_len, desc->table_offset + checksum_offset); in acpi_table_end()
/openbmc/qemu/include/hw/acpi/
H A Daml-build.h424 unsigned table_offset; member
/openbmc/qemu/hw/arm/
H A Dvirt-acpi-build.c425 smmu_offset = table_data->len - table.table_offset; in build_iort()
/openbmc/qemu/hw/s390x/
H A Ds390-pci-bus.c927 pbdev->msix.table_offset = table & ~PCI_MSIX_FLAGS_BIRMASK; in s390_pci_msix_init()