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

Function ccp_probe_device

dpdk/drivers/crypto/ccp/ccp_dev.c:619–642  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

617}
618
619int
620ccp_probe_device(struct rte_pci_device *pci_dev)
621{
622 struct ccp_device *ccp_dev;
623
624 ccp_dev = rte_zmalloc("ccp_device", sizeof(*ccp_dev),
625 RTE_CACHE_LINE_SIZE);
626 if (ccp_dev == NULL)
627 goto fail;
628
629 ccp_dev->pci = pci_dev;
630
631 /* device is valid, add in list */
632 if (ccp_add_device(ccp_dev)) {
633 ccp_remove_device(ccp_dev);
634 goto fail;
635 }
636
637 return 0;
638fail:
639 CCP_LOG_ERR("CCP Device probe failed");
640 rte_free(ccp_dev);
641 return -1;
642}

Callers 1

cryptodev_ccp_createFunction · 0.85

Calls 4

rte_zmallocFunction · 0.85
ccp_add_deviceFunction · 0.85
ccp_remove_deviceFunction · 0.85
rte_freeFunction · 0.85

Tested by

no test coverage detected