Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/misc/cxl/
Dpci.c33 #define CXL_READ_VSEC_LENGTH(dev, vsec, dest) \ argument
35 pci_read_config_word(dev, vsec + 0x6, dest); \
38 #define CXL_READ_VSEC_NAFUS(dev, vsec, dest) \ argument
39 pci_read_config_byte(dev, vsec + 0x8, dest)
41 #define CXL_READ_VSEC_STATUS(dev, vsec, dest) \ argument
42 pci_read_config_byte(dev, vsec + 0x9, dest)
54 #define CXL_READ_VSEC_MODE_CONTROL(dev, vsec, dest) \ argument
55 pci_read_config_byte(dev, vsec + 0xa, dest)
56 #define CXL_WRITE_VSEC_MODE_CONTROL(dev, vsec, val) \ argument
57 pci_write_config_byte(dev, vsec + 0xa, val)
[all …]
/Linux-v4.19/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-v4.19/drivers/misc/ocxl/
Dconfig.c33 int vsec = 0; in find_dvsec() local
36 while ((vsec = pci_find_next_ext_capability(dev, vsec, in find_dvsec()
38 pci_read_config_word(dev, vsec + OCXL_DVSEC_VENDOR_OFFSET, in find_dvsec()
40 pci_read_config_word(dev, vsec + OCXL_DVSEC_ID_OFFSET, &id); in find_dvsec()
42 return vsec; in find_dvsec()
49 int vsec = 0; in find_dvsec_afu_ctrl() local
53 while ((vsec = pci_find_next_ext_capability(dev, vsec, in find_dvsec_afu_ctrl()
55 pci_read_config_word(dev, vsec + OCXL_DVSEC_VENDOR_OFFSET, in find_dvsec_afu_ctrl()
57 pci_read_config_word(dev, vsec + OCXL_DVSEC_ID_OFFSET, &id); in find_dvsec_afu_ctrl()
62 vsec + OCXL_DVSEC_AFU_CTRL_AFU_IDX, in find_dvsec_afu_ctrl()
[all …]
/Linux-v4.19/drivers/thunderbolt/
Dcap.c95 int tb_switch_find_vse_cap(struct tb_switch *sw, enum tb_switch_vse_cap vsec) in tb_switch_find_vse_cap() argument
117 if (header.extended_long.vsec_id == vsec) in tb_switch_find_vse_cap()
121 if (header.extended_short.vsec_id == vsec) in tb_switch_find_vse_cap()
Dtb.h435 int tb_switch_find_vse_cap(struct tb_switch *sw, enum tb_switch_vse_cap vsec);
/Linux-v4.19/drivers/pci/
Dprobe.c1364 int vsec = 0; in set_pcie_thunderbolt() local
1367 while ((vsec = pci_find_next_ext_capability(dev, vsec, in set_pcie_thunderbolt()
1369 pci_read_config_dword(dev, vsec + PCI_VNDR_HEADER, &header); in set_pcie_thunderbolt()