Home
last modified time | relevance | path

Searched refs:vsec (Results 1 – 6 of 6) sorted by relevance

/Linux-v5.4/drivers/misc/cxl/
Dpci.c29 #define CXL_READ_VSEC_LENGTH(dev, vsec, dest) \ argument
31 pci_read_config_word(dev, vsec + 0x6, dest); \
34 #define CXL_READ_VSEC_NAFUS(dev, vsec, dest) \ argument
35 pci_read_config_byte(dev, vsec + 0x8, dest)
37 #define CXL_READ_VSEC_STATUS(dev, vsec, dest) \ argument
38 pci_read_config_byte(dev, vsec + 0x9, dest)
50 #define CXL_READ_VSEC_MODE_CONTROL(dev, vsec, dest) \ argument
51 pci_read_config_byte(dev, vsec + 0xa, dest)
52 #define CXL_WRITE_VSEC_MODE_CONTROL(dev, vsec, val) \ argument
53 pci_write_config_byte(dev, vsec + 0xa, val)
[all …]
/Linux-v5.4/arch/powerpc/platforms/powernv/
Docxl.c77 int vsec = pos; in find_dvsec_from_pos() local
80 while ((vsec = pci_find_next_ext_capability(dev, vsec, in find_dvsec_from_pos()
82 pci_read_config_word(dev, vsec + OCXL_DVSEC_VENDOR_OFFSET, in find_dvsec_from_pos()
84 pci_read_config_word(dev, vsec + OCXL_DVSEC_ID_OFFSET, &id); in find_dvsec_from_pos()
86 return vsec; in find_dvsec_from_pos()
93 int vsec = 0; in find_dvsec_afu_ctrl() local
96 while ((vsec = find_dvsec_from_pos(dev, OCXL_DVSEC_AFU_CTRL_ID, in find_dvsec_afu_ctrl()
97 vsec))) { in find_dvsec_afu_ctrl()
98 pci_read_config_byte(dev, vsec + OCXL_DVSEC_AFU_CTRL_AFU_IDX, in find_dvsec_afu_ctrl()
101 return vsec; in find_dvsec_afu_ctrl()
/Linux-v5.4/drivers/misc/ocxl/
Dconfig.c36 int vsec = 0; in find_dvsec() local
39 while ((vsec = pci_find_next_ext_capability(dev, vsec, in find_dvsec()
41 pci_read_config_word(dev, vsec + OCXL_DVSEC_VENDOR_OFFSET, in find_dvsec()
43 pci_read_config_word(dev, vsec + OCXL_DVSEC_ID_OFFSET, &id); in find_dvsec()
45 return vsec; in find_dvsec()
52 int vsec = 0; in find_dvsec_afu_ctrl() local
56 while ((vsec = pci_find_next_ext_capability(dev, vsec, in find_dvsec_afu_ctrl()
58 pci_read_config_word(dev, vsec + OCXL_DVSEC_VENDOR_OFFSET, in find_dvsec_afu_ctrl()
60 pci_read_config_word(dev, vsec + OCXL_DVSEC_ID_OFFSET, &id); in find_dvsec_afu_ctrl()
65 vsec + OCXL_DVSEC_AFU_CTRL_AFU_IDX, in find_dvsec_afu_ctrl()
[all …]
/Linux-v5.4/drivers/thunderbolt/
Dcap.c147 int tb_switch_find_vse_cap(struct tb_switch *sw, enum tb_switch_vse_cap vsec) in tb_switch_find_vse_cap() argument
169 if (header.extended_long.vsec_id == vsec) in tb_switch_find_vse_cap()
173 if (header.extended_short.vsec_id == vsec) in tb_switch_find_vse_cap()
Dtb.h605 int tb_switch_find_vse_cap(struct tb_switch *sw, enum tb_switch_vse_cap vsec);
/Linux-v5.4/drivers/pci/
Dprobe.c1475 int vsec = 0; in set_pcie_thunderbolt() local
1478 while ((vsec = pci_find_next_ext_capability(dev, vsec, in set_pcie_thunderbolt()
1480 pci_read_config_dword(dev, vsec + PCI_VNDR_HEADER, &header); in set_pcie_thunderbolt()