Searched refs:dvsec (Results 1 – 5 of 5) sorted by relevance
| /linux-6.15/drivers/platform/x86/intel/pmc/ |
| H A D | core_ssram.c | 170 void __iomem *dvsec; in pmc_add_pmt() local 181 dvsec = ioremap(ssram_base + dvsec_offset, SSRAM_DVSEC_SIZE); in pmc_add_pmt() 182 if (!dvsec) in pmc_add_pmt() 185 hdr = readl(dvsec + PCI_DVSEC_HEADER1); in pmc_add_pmt() 186 header.id = readw(dvsec + PCI_DVSEC_HEADER2); in pmc_add_pmt() 189 header.num_entries = readb(dvsec + INTEL_DVSEC_ENTRIES); in pmc_add_pmt() 190 header.entry_size = readb(dvsec + INTEL_DVSEC_SIZE); in pmc_add_pmt() 192 table = readl(dvsec + INTEL_DVSEC_TABLE); in pmc_add_pmt() 195 iounmap(dvsec); in pmc_add_pmt()
|
| /linux-6.15/arch/x86/events/intel/ |
| H A D | uncore_discovery.c | 17 int dvsec; in has_generic_discovery_table() local 24 dvsec = pci_find_next_ext_capability(dev, 0, UNCORE_EXT_CAP_ID_DISCOVERY); in has_generic_discovery_table() 26 if (dvsec) in has_generic_discovery_table() 347 int die, dvsec = 0, ret = true; in intel_uncore_has_discovery_tables() local 361 while ((dvsec = pci_find_next_ext_capability(dev, dvsec, UNCORE_EXT_CAP_ID_DISCOVERY))) { in intel_uncore_has_discovery_tables() 362 pci_read_config_dword(dev, dvsec + UNCORE_DISCOVERY_DVSEC_OFFSET, &val); in intel_uncore_has_discovery_tables() 367 pci_read_config_dword(dev, dvsec + UNCORE_DISCOVERY_DVSEC2_OFFSET, &val); in intel_uncore_has_discovery_tables()
|
| /linux-6.15/drivers/cxl/core/ |
| H A D | pci.c | 1079 u16 dvsec; in cxl_gpf_get_dvsec() local 1088 dvsec = pci_find_dvsec_capability(pdev, PCI_VENDOR_ID_CXL, in cxl_gpf_get_dvsec() 1090 if (!dvsec) in cxl_gpf_get_dvsec() 1093 return dvsec; in cxl_gpf_get_dvsec() 1097 static int update_gpf_port_dvsec(struct pci_dev *pdev, int dvsec, int phase) in update_gpf_port_dvsec() argument 1118 rc = pci_read_config_word(pdev, dvsec + offset, &ctrl); in update_gpf_port_dvsec() 1129 rc = pci_write_config_word(pdev, dvsec + offset, ctrl); in update_gpf_port_dvsec() 1144 int dvsec; in cxl_gpf_port_setup() local 1146 dvsec = cxl_gpf_get_dvsec(dport->dport_dev); in cxl_gpf_port_setup() 1147 if (!dvsec) in cxl_gpf_port_setup() [all …]
|
| /linux-6.15/drivers/pci/ |
| H A D | pci.c | 761 u16 pci_find_dvsec_capability(struct pci_dev *dev, u16 vendor, u16 dvsec) in pci_find_dvsec_capability() argument 774 if (vendor == v && dvsec == id) in pci_find_dvsec_capability() 5056 u16 dvsec, reg; in cxl_sbr_masked() local 5059 dvsec = cxl_port_dvsec(dev); in cxl_sbr_masked() 5060 if (!dvsec) in cxl_sbr_masked() 5063 rc = pci_read_config_word(dev, dvsec + PCI_DVSEC_CXL_PORT_CTL, ®); in cxl_sbr_masked() 5103 u16 dvsec, reg, val; in cxl_reset_bus_function() local 5110 dvsec = cxl_port_dvsec(bridge); in cxl_reset_bus_function() 5111 if (!dvsec) in cxl_reset_bus_function() 5125 pci_write_config_word(bridge, dvsec + PCI_DVSEC_CXL_PORT_CTL, in cxl_reset_bus_function() [all …]
|
| /linux-6.15/include/linux/ |
| H A D | pci.h | 1215 u16 pci_find_dvsec_capability(struct pci_dev *dev, u16 vendor, u16 dvsec);
|