| 542 | } |
| 543 | |
| 544 | static int |
| 545 | platform_bus_parse(const char *name, void *addr) |
| 546 | { |
| 547 | struct rte_platform_device pdev = { }; |
| 548 | struct rte_platform_driver *pdrv; |
| 549 | const char **out = addr; |
| 550 | |
| 551 | rte_strscpy(pdev.name, name, sizeof(pdev.name)); |
| 552 | |
| 553 | FOREACH_DRIVER_ON_PLATFORM_BUS(pdrv) { |
| 554 | if (driver_match_device(pdrv, &pdev)) |
| 555 | break; |
| 556 | } |
| 557 | |
| 558 | if (pdrv != NULL && addr != NULL) |
| 559 | *out = name; |
| 560 | |
| 561 | return pdrv != NULL ? 0 : -ENODEV; |
| 562 | } |
| 563 | |
| 564 | static int |
| 565 | platform_bus_dma_map(struct rte_device *dev, void *addr, uint64_t iova, size_t len) |
nothing calls this directly
no test coverage detected