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

Function nitrox_pci_probe

dpdk/drivers/crypto/nitrox/nitrox_device.c:65–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65static int
66nitrox_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,
67 struct rte_pci_device *pdev)
68{
69 struct nitrox_device *ndev;
70 int err;
71
72 /* Nitrox CSR space */
73 if (!pdev->mem_resource[0].addr)
74 return -EINVAL;
75
76 ndev = ndev_allocate(pdev);
77 if (!ndev)
78 return -ENOMEM;
79
80 ndev_init(ndev, pdev);
81 err = nitrox_sym_pmd_create(ndev);
82 if (err) {
83 ndev_release(ndev);
84 return err;
85 }
86
87 return 0;
88}
89
90static int
91nitrox_pci_remove(struct rte_pci_device *pdev)

Callers

nothing calls this directly

Calls 4

ndev_allocateFunction · 0.85
ndev_initFunction · 0.85
nitrox_sym_pmd_createFunction · 0.85
ndev_releaseFunction · 0.85

Tested by

no test coverage detected