vsec 77 arch/powerpc/platforms/powernv/ocxl.c int vsec = pos; vsec 80 arch/powerpc/platforms/powernv/ocxl.c while ((vsec = pci_find_next_ext_capability(dev, vsec, vsec 82 arch/powerpc/platforms/powernv/ocxl.c pci_read_config_word(dev, vsec + OCXL_DVSEC_VENDOR_OFFSET, vsec 84 arch/powerpc/platforms/powernv/ocxl.c pci_read_config_word(dev, vsec + OCXL_DVSEC_ID_OFFSET, &id); vsec 86 arch/powerpc/platforms/powernv/ocxl.c return vsec; vsec 93 arch/powerpc/platforms/powernv/ocxl.c int vsec = 0; vsec 96 arch/powerpc/platforms/powernv/ocxl.c while ((vsec = find_dvsec_from_pos(dev, OCXL_DVSEC_AFU_CTRL_ID, vsec 97 arch/powerpc/platforms/powernv/ocxl.c vsec))) { vsec 98 arch/powerpc/platforms/powernv/ocxl.c pci_read_config_byte(dev, vsec + OCXL_DVSEC_AFU_CTRL_AFU_IDX, vsec 101 arch/powerpc/platforms/powernv/ocxl.c return vsec; vsec 29 drivers/misc/cxl/pci.c #define CXL_READ_VSEC_LENGTH(dev, vsec, dest) \ vsec 31 drivers/misc/cxl/pci.c pci_read_config_word(dev, vsec + 0x6, dest); \ vsec 34 drivers/misc/cxl/pci.c #define CXL_READ_VSEC_NAFUS(dev, vsec, dest) \ vsec 35 drivers/misc/cxl/pci.c pci_read_config_byte(dev, vsec + 0x8, dest) vsec 37 drivers/misc/cxl/pci.c #define CXL_READ_VSEC_STATUS(dev, vsec, dest) \ vsec 38 drivers/misc/cxl/pci.c pci_read_config_byte(dev, vsec + 0x9, dest) vsec 50 drivers/misc/cxl/pci.c #define CXL_READ_VSEC_MODE_CONTROL(dev, vsec, dest) \ vsec 51 drivers/misc/cxl/pci.c pci_read_config_byte(dev, vsec + 0xa, dest) vsec 52 drivers/misc/cxl/pci.c #define CXL_WRITE_VSEC_MODE_CONTROL(dev, vsec, val) \ vsec 53 drivers/misc/cxl/pci.c pci_write_config_byte(dev, vsec + 0xa, val) vsec 60 drivers/misc/cxl/pci.c #define CXL_READ_VSEC_PSL_REVISION(dev, vsec, dest) \ vsec 61 drivers/misc/cxl/pci.c pci_read_config_word(dev, vsec + 0xc, dest) vsec 62 drivers/misc/cxl/pci.c #define CXL_READ_VSEC_CAIA_MINOR(dev, vsec, dest) \ vsec 63 drivers/misc/cxl/pci.c pci_read_config_byte(dev, vsec + 0xe, dest) vsec 64 drivers/misc/cxl/pci.c #define CXL_READ_VSEC_CAIA_MAJOR(dev, vsec, dest) \ vsec 65 drivers/misc/cxl/pci.c pci_read_config_byte(dev, vsec + 0xf, dest) vsec 66 drivers/misc/cxl/pci.c #define CXL_READ_VSEC_BASE_IMAGE(dev, vsec, dest) \ vsec 67 drivers/misc/cxl/pci.c pci_read_config_word(dev, vsec + 0x10, dest) vsec 69 drivers/misc/cxl/pci.c #define CXL_READ_VSEC_IMAGE_STATE(dev, vsec, dest) \ vsec 70 drivers/misc/cxl/pci.c pci_read_config_byte(dev, vsec + 0x13, dest) vsec 71 drivers/misc/cxl/pci.c #define CXL_WRITE_VSEC_IMAGE_STATE(dev, vsec, val) \ vsec 72 drivers/misc/cxl/pci.c pci_write_config_byte(dev, vsec + 0x13, val) vsec 77 drivers/misc/cxl/pci.c #define CXL_READ_VSEC_AFU_DESC_OFF(dev, vsec, dest) \ vsec 78 drivers/misc/cxl/pci.c pci_read_config_dword(dev, vsec + 0x20, dest) vsec 79 drivers/misc/cxl/pci.c #define CXL_READ_VSEC_AFU_DESC_SIZE(dev, vsec, dest) \ vsec 80 drivers/misc/cxl/pci.c pci_read_config_dword(dev, vsec + 0x24, dest) vsec 81 drivers/misc/cxl/pci.c #define CXL_READ_VSEC_PS_OFF(dev, vsec, dest) \ vsec 82 drivers/misc/cxl/pci.c pci_read_config_dword(dev, vsec + 0x28, dest) vsec 83 drivers/misc/cxl/pci.c #define CXL_READ_VSEC_PS_SIZE(dev, vsec, dest) \ vsec 84 drivers/misc/cxl/pci.c pci_read_config_dword(dev, vsec + 0x2c, dest) vsec 153 drivers/misc/cxl/pci.c int vsec = 0; vsec 156 drivers/misc/cxl/pci.c while ((vsec = pci_find_next_ext_capability(dev, vsec, PCI_EXT_CAP_ID_VNDR))) { vsec 157 drivers/misc/cxl/pci.c pci_read_config_word(dev, vsec + 0x4, &val); vsec 159 drivers/misc/cxl/pci.c return vsec; vsec 167 drivers/misc/cxl/pci.c int vsec; vsec 192 drivers/misc/cxl/pci.c if (!(vsec = find_cxl_vsec(dev))) vsec 198 drivers/misc/cxl/pci.c pci_read_config_dword(dev, vsec + 0x0, &val); vsec 202 drivers/misc/cxl/pci.c pci_read_config_dword(dev, vsec + 0x4, &val); vsec 206 drivers/misc/cxl/pci.c pci_read_config_dword(dev, vsec + 0x8, &val); vsec 211 drivers/misc/cxl/pci.c pci_read_config_dword(dev, vsec + 0xc, &val); vsec 214 drivers/misc/cxl/pci.c pci_read_config_dword(dev, vsec + 0x10, &val); vsec 221 drivers/misc/cxl/pci.c pci_read_config_dword(dev, vsec + 0x14, &val); vsec 223 drivers/misc/cxl/pci.c pci_read_config_dword(dev, vsec + 0x18, &val); vsec 225 drivers/misc/cxl/pci.c pci_read_config_dword(dev, vsec + 0x1c, &val); vsec 228 drivers/misc/cxl/pci.c pci_read_config_dword(dev, vsec + 0x20, &val); vsec 230 drivers/misc/cxl/pci.c pci_read_config_dword(dev, vsec + 0x24, &val); vsec 232 drivers/misc/cxl/pci.c pci_read_config_dword(dev, vsec + 0x28, &val); vsec 234 drivers/misc/cxl/pci.c pci_read_config_dword(dev, vsec + 0x2c, &val); vsec 237 drivers/misc/cxl/pci.c pci_read_config_dword(dev, vsec + 0x30, &val); vsec 239 drivers/misc/cxl/pci.c pci_read_config_dword(dev, vsec + 0x34, &val); vsec 241 drivers/misc/cxl/pci.c pci_read_config_dword(dev, vsec + 0x38, &val); vsec 243 drivers/misc/cxl/pci.c pci_read_config_dword(dev, vsec + 0x3c, &val); vsec 246 drivers/misc/cxl/pci.c pci_read_config_dword(dev, vsec + 0x40, &val); vsec 248 drivers/misc/cxl/pci.c pci_read_config_dword(dev, vsec + 0x44, &val); vsec 251 drivers/misc/cxl/pci.c pci_read_config_dword(dev, vsec + 0x48, &val); vsec 253 drivers/misc/cxl/pci.c pci_read_config_dword(dev, vsec + 0x4c, &val); vsec 256 drivers/misc/cxl/pci.c pci_read_config_dword(dev, vsec + 0x50, &val); vsec 258 drivers/misc/cxl/pci.c pci_read_config_dword(dev, vsec + 0x54, &val); vsec 260 drivers/misc/cxl/pci.c pci_read_config_dword(dev, vsec + 0x58, &val); vsec 262 drivers/misc/cxl/pci.c pci_read_config_dword(dev, vsec + 0x58, &val); vsec 667 drivers/misc/cxl/pci.c int vsec; vsec 670 drivers/misc/cxl/pci.c if (!(vsec = find_cxl_vsec(dev))) { vsec 675 drivers/misc/cxl/pci.c if ((rc = CXL_READ_VSEC_IMAGE_STATE(dev, vsec, &image_state))) { vsec 690 drivers/misc/cxl/pci.c if ((rc = CXL_WRITE_VSEC_IMAGE_STATE(dev, vsec, image_state))) { vsec 751 drivers/misc/cxl/pci.c int vsec; vsec 757 drivers/misc/cxl/pci.c if (!(vsec = find_cxl_vsec(dev))) { vsec 762 drivers/misc/cxl/pci.c if ((rc = CXL_READ_VSEC_MODE_CONTROL(dev, vsec, &val))) { vsec 768 drivers/misc/cxl/pci.c if ((rc = CXL_WRITE_VSEC_MODE_CONTROL(dev, vsec, val))) { vsec 1289 drivers/misc/cxl/pci.c int vsec; vsec 1295 drivers/misc/cxl/pci.c if (!(vsec = find_cxl_vsec(dev))) { vsec 1300 drivers/misc/cxl/pci.c CXL_READ_VSEC_LENGTH(dev, vsec, &vseclen); vsec 1306 drivers/misc/cxl/pci.c CXL_READ_VSEC_STATUS(dev, vsec, &adapter->vsec_status); vsec 1307 drivers/misc/cxl/pci.c CXL_READ_VSEC_PSL_REVISION(dev, vsec, &adapter->psl_rev); vsec 1308 drivers/misc/cxl/pci.c CXL_READ_VSEC_CAIA_MAJOR(dev, vsec, &adapter->caia_major); vsec 1309 drivers/misc/cxl/pci.c CXL_READ_VSEC_CAIA_MINOR(dev, vsec, &adapter->caia_minor); vsec 1310 drivers/misc/cxl/pci.c CXL_READ_VSEC_BASE_IMAGE(dev, vsec, &adapter->base_image); vsec 1311 drivers/misc/cxl/pci.c CXL_READ_VSEC_IMAGE_STATE(dev, vsec, &image_state); vsec 1316 drivers/misc/cxl/pci.c CXL_READ_VSEC_NAFUS(dev, vsec, &adapter->slices); vsec 1317 drivers/misc/cxl/pci.c CXL_READ_VSEC_AFU_DESC_OFF(dev, vsec, &afu_desc_off); vsec 1318 drivers/misc/cxl/pci.c CXL_READ_VSEC_AFU_DESC_SIZE(dev, vsec, &afu_desc_size); vsec 1319 drivers/misc/cxl/pci.c CXL_READ_VSEC_PS_OFF(dev, vsec, &ps_off); vsec 1320 drivers/misc/cxl/pci.c CXL_READ_VSEC_PS_SIZE(dev, vsec, &ps_size); vsec 36 drivers/misc/ocxl/config.c int vsec = 0; vsec 39 drivers/misc/ocxl/config.c while ((vsec = pci_find_next_ext_capability(dev, vsec, vsec 41 drivers/misc/ocxl/config.c pci_read_config_word(dev, vsec + OCXL_DVSEC_VENDOR_OFFSET, vsec 43 drivers/misc/ocxl/config.c pci_read_config_word(dev, vsec + OCXL_DVSEC_ID_OFFSET, &id); vsec 45 drivers/misc/ocxl/config.c return vsec; vsec 52 drivers/misc/ocxl/config.c int vsec = 0; vsec 56 drivers/misc/ocxl/config.c while ((vsec = pci_find_next_ext_capability(dev, vsec, vsec 58 drivers/misc/ocxl/config.c pci_read_config_word(dev, vsec + OCXL_DVSEC_VENDOR_OFFSET, vsec 60 drivers/misc/ocxl/config.c pci_read_config_word(dev, vsec + OCXL_DVSEC_ID_OFFSET, &id); vsec 65 drivers/misc/ocxl/config.c vsec + OCXL_DVSEC_AFU_CTRL_AFU_IDX, vsec 68 drivers/misc/ocxl/config.c return vsec; vsec 1482 drivers/pci/probe.c int vsec = 0; vsec 1485 drivers/pci/probe.c while ((vsec = pci_find_next_ext_capability(dev, vsec, vsec 1487 drivers/pci/probe.c pci_read_config_dword(dev, vsec + PCI_VNDR_HEADER, &header); vsec 147 drivers/thunderbolt/cap.c int tb_switch_find_vse_cap(struct tb_switch *sw, enum tb_switch_vse_cap vsec) vsec 169 drivers/thunderbolt/cap.c if (header.extended_long.vsec_id == vsec) vsec 173 drivers/thunderbolt/cap.c if (header.extended_short.vsec_id == vsec) vsec 605 drivers/thunderbolt/tb.h int tb_switch_find_vse_cap(struct tb_switch *sw, enum tb_switch_vse_cap vsec);