MCPcopy Create free account
hub / github.com/F-Stack/f-stack / platform_bus_parse

Function platform_bus_parse

dpdk/drivers/bus/platform/platform.c:544–562  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

542}
543
544static int
545platform_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
564static int
565platform_bus_dma_map(struct rte_device *dev, void *addr, uint64_t iova, size_t len)

Callers

nothing calls this directly

Calls 2

rte_strscpyFunction · 0.85
driver_match_deviceFunction · 0.85

Tested by

no test coverage detected