Lines Matching refs:cxl_root_port
23 static struct platform_device *cxl_root_port[NR_MULTI_ROOT]; variable
383 for (i = 0; i < ARRAY_SIZE(cxl_root_port); i++) in is_mock_port()
384 if (dev == &cxl_root_port[i]->dev) in is_mock_port()
643 array_size = ARRAY_SIZE(cxl_root_port); in mock_cxl_port_enumerate_dports()
644 array = cxl_root_port; in mock_cxl_port_enumerate_dports()
926 for (i = 0; i < ARRAY_SIZE(cxl_root_port); i++) { in cxl_test_init()
941 cxl_root_port[i] = pdev; in cxl_test_init()
944 BUILD_BUG_ON(ARRAY_SIZE(cxl_switch_uport) != ARRAY_SIZE(cxl_root_port)); in cxl_test_init()
946 struct platform_device *root_port = cxl_root_port[i]; in cxl_test_init()
1029 for (i = ARRAY_SIZE(cxl_root_port) - 1; i >= 0; i--) in cxl_test_init()
1030 platform_device_unregister(cxl_root_port[i]); in cxl_test_init()
1061 for (i = ARRAY_SIZE(cxl_root_port) - 1; i >= 0; i--) in cxl_test_exit()
1062 platform_device_unregister(cxl_root_port[i]); in cxl_test_exit()