Lines Matching refs:cxl_switch_uport
33 static struct platform_device *cxl_switch_uport[NR_MULTI_ROOT];
539 for (i = 0; i < ARRAY_SIZE(cxl_switch_uport); i++)
540 if (dev == &cxl_switch_uport[i]->dev)
1167 pdev = platform_device_alloc("cxl_switch_uport",
1409 BUILD_BUG_ON(ARRAY_SIZE(cxl_switch_uport) != ARRAY_SIZE(cxl_root_port));
1410 for (i = 0; i < ARRAY_SIZE(cxl_switch_uport); i++) {
1414 pdev = platform_device_alloc("cxl_switch_uport", i);
1424 cxl_switch_uport[i] = pdev;
1429 cxl_switch_uport[i % ARRAY_SIZE(cxl_switch_uport)];
1480 for (i = ARRAY_SIZE(cxl_switch_uport) - 1; i >= 0; i--)
1481 platform_device_unregister(cxl_switch_uport[i]);
1513 for (i = ARRAY_SIZE(cxl_switch_uport) - 1; i >= 0; i--)
1514 platform_device_unregister(cxl_switch_uport[i]);