Home
last modified time | relevance | path

Searched refs:PCI_CFG_SPACE_SIZE (Results 1 – 17 of 17) sorted by relevance

/openbmc/linux/drivers/vfio/pci/
H A Dvfio_pci_config.c258 if (pos >= PCI_CFG_SPACE_SIZE) { /* Extended cap header mangling */ in vfio_direct_config_read()
1120 int base = (pos >= PCI_CFG_SPACE_SIZE) ? PCI_CFG_SPACE_SIZE : in vfio_find_cap_start()
1325 if (pdev->cfg_size > PCI_CFG_SPACE_SIZE) { in vfio_cap_len()
1327 pci_read_config_dword(pdev, PCI_CFG_SPACE_SIZE, in vfio_cap_len()
1342 if (pdev->cfg_size > PCI_CFG_SPACE_SIZE) { in vfio_cap_len()
1344 pci_read_config_dword(pdev, PCI_CFG_SPACE_SIZE, &dword); in vfio_cap_len()
1544 loops = (PCI_CFG_SPACE_SIZE - PCI_STD_HEADER_SIZEOF) / PCI_CAP_SIZEOF; in vfio_cap_init()
1624 epos = PCI_CFG_SPACE_SIZE; in vfio_ecap_init()
1626 loops = (pdev->cfg_size - PCI_CFG_SPACE_SIZE) / PCI_CAP_SIZEOF; in vfio_ecap_init()
1628 while (loops-- && epos >= PCI_CFG_SPACE_SIZE) { in vfio_ecap_init()
[all …]
/openbmc/linux/drivers/pci/
H A Dpci-bridge-emul.c487 } else if (reg >= PCI_CFG_SPACE_SIZE && bridge->has_pcie) { in pci_bridge_emul_conf_read()
489 reg -= PCI_CFG_SPACE_SIZE; in pci_bridge_emul_conf_read()
561 } else if (reg >= PCI_CFG_SPACE_SIZE && bridge->has_pcie) { in pci_bridge_emul_conf_write()
563 reg -= PCI_CFG_SPACE_SIZE; in pci_bridge_emul_conf_write()
H A Dprobe.c1676 for (pos = PCI_CFG_SPACE_SIZE; in pci_ext_cfg_is_aliased()
1677 pos < PCI_CFG_SPACE_EXP_SIZE; pos += PCI_CFG_SPACE_SIZE) { in pci_ext_cfg_is_aliased()
1703 int pos = PCI_CFG_SPACE_SIZE; in pci_cfg_space_size_ext()
1706 return PCI_CFG_SPACE_SIZE; in pci_cfg_space_size_ext()
1708 return PCI_CFG_SPACE_SIZE; in pci_cfg_space_size_ext()
1735 return PCI_CFG_SPACE_SIZE; in pci_cfg_space_size()
1746 return PCI_CFG_SPACE_SIZE; in pci_cfg_space_size()
1752 return PCI_CFG_SPACE_SIZE; in pci_cfg_space_size()
H A Dpci-sysfs.c848 a->size = PCI_CFG_SPACE_SIZE; in pci_dev_config_attr_is_visible()
849 if (pdev->cfg_size > PCI_CFG_SPACE_SIZE) in pci_dev_config_attr_is_visible()
H A Dpci.c560 u16 pos = PCI_CFG_SPACE_SIZE; in pci_find_next_ext_capability()
563 ttl = (PCI_CFG_SPACE_EXP_SIZE - PCI_CFG_SPACE_SIZE) / 8; in pci_find_next_ext_capability()
565 if (dev->cfg_size <= PCI_CFG_SPACE_SIZE) in pci_find_next_ext_capability()
586 if (pos < PCI_CFG_SPACE_SIZE) in pci_find_next_ext_capability()
H A Dquirks.c5482 ret = pci_read_config_dword(pdev, PCI_CFG_SPACE_SIZE, &status); in quirk_intel_qat_vf_cap()
5484 pdev->cfg_size = PCI_CFG_SPACE_SIZE; in quirk_intel_qat_vf_cap()
/openbmc/u-boot/drivers/pci/
H A Dpci.c542 int ttl, pos = PCI_CFG_SPACE_SIZE; in pci_find_next_ext_capability()
545 ttl = (PCI_CFG_SPACE_EXP_SIZE - PCI_CFG_SPACE_SIZE) / 8; in pci_find_next_ext_capability()
559 if (pos < PCI_CFG_SPACE_SIZE) in pci_find_next_ext_capability()
H A Dpci-uclass.c1411 int pos = PCI_CFG_SPACE_SIZE; in dm_pci_find_next_ext_capability()
1414 ttl = (PCI_CFG_SPACE_EXP_SIZE - PCI_CFG_SPACE_SIZE) / 8; in dm_pci_find_next_ext_capability()
1432 if (pos < PCI_CFG_SPACE_SIZE) in dm_pci_find_next_ext_capability()
/openbmc/linux/drivers/pci/controller/dwc/
H A Dpcie-designware.c248 int pos = PCI_CFG_SPACE_SIZE; in dw_pcie_find_next_ext_capability()
251 ttl = (PCI_CFG_SPACE_EXP_SIZE - PCI_CFG_SPACE_SIZE) / 8; in dw_pcie_find_next_ext_capability()
269 if (pos < PCI_CFG_SPACE_SIZE) in dw_pcie_find_next_ext_capability()
H A Dpcie-designware-ep.c638 int pos = PCI_CFG_SPACE_SIZE; in dw_pcie_ep_find_ext_capability()
/openbmc/linux/drivers/pci/controller/
H A Dpci-loongson.c248 if (where < PCI_CFG_SPACE_SIZE && priv->cfg0_base) in pci_loongson_map_bus()
/openbmc/qemu/hw/cxl/
H A Dcxl-component-utils.c380 assert(offset >= PCI_CFG_SPACE_SIZE && in cxl_component_create_dvsec()
/openbmc/linux/include/uapi/linux/
H A Dpci_regs.h29 #define PCI_CFG_SPACE_SIZE 256 macro
/openbmc/qemu/include/standard-headers/linux/
H A Dpci_regs.h29 #define PCI_CFG_SPACE_SIZE 256 macro
/openbmc/linux/arch/x86/pci/
H A Dfixup.c865 int pos = PCI_CFG_SPACE_SIZE, prev = 0; in chromeos_save_apl_pci_l1ss_capability()
/openbmc/u-boot/include/
H A Dpci.h13 #define PCI_CFG_SPACE_SIZE 256 macro
/openbmc/qemu/hw/vfio/
H A Dpci-quirks.c1537 pos <= (PCI_CFG_SPACE_SIZE - PCI_CAP_SIZEOF)); in is_valid_std_cap_offset()