Lines Matching refs:bytes
99 static uint32_t pci_pio_read_cfg(union pci_bdf bdf, uint32_t offset, uint32_t bytes) in pci_pio_read_cfg() argument
110 switch (bytes) { in pci_pio_read_cfg()
125 static void pci_pio_write_cfg(union pci_bdf bdf, uint32_t offset, uint32_t bytes, uint32_t val) in pci_pio_write_cfg() argument
133 switch (bytes) { in pci_pio_write_cfg()
147 __unused uint32_t offset, __unused uint32_t bytes) in pci_pio_read_cfg() argument
153 __unused uint32_t offset, __unused uint32_t bytes, __unused uint32_t val) in pci_pio_write_cfg() argument
178 static uint32_t pci_mmcfg_read_cfg(union pci_bdf bdf, uint32_t offset, uint32_t bytes) in pci_mmcfg_read_cfg() argument
183 ASSERT(pci_is_valid_access(offset, bytes), "the offset should be aligned with 2/4 byte\n"); in pci_mmcfg_read_cfg()
185 return (uint32_t)mmio_read(hva, bytes); in pci_mmcfg_read_cfg()
194 static void pci_mmcfg_write_cfg(union pci_bdf bdf, uint32_t offset, uint32_t bytes, uint32_t val) in pci_mmcfg_write_cfg() argument
199 ASSERT(pci_is_valid_access(offset, bytes), "the offset should be aligned with 2/4 byte\n"); in pci_mmcfg_write_cfg()
201 mmio_write(hva, bytes, val); in pci_mmcfg_write_cfg()
220 uint32_t pci_pdev_read_cfg(union pci_bdf bdf, uint32_t offset, uint32_t bytes) in pci_pdev_read_cfg() argument
224 val = acrn_pci_cfg_ops->pci_read_cfg(bdf, offset, bytes); in pci_pdev_read_cfg()
233 void pci_pdev_write_cfg(union pci_bdf bdf, uint32_t offset, uint32_t bytes, uint32_t val) in pci_pdev_write_cfg() argument
235 acrn_pci_cfg_ops->pci_write_cfg(bdf, offset, bytes, val); in pci_pdev_write_cfg()