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

Function ndev_init

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

Source from the content-addressed store, hash-verified

30}
31
32static void
33ndev_init(struct nitrox_device *ndev, struct rte_pci_device *pdev)
34{
35 enum nitrox_vf_mode vf_mode;
36
37 ndev->pdev = pdev;
38 ndev->bar_addr = pdev->mem_resource[0].addr;
39 vf_mode = vf_get_vf_config_mode(ndev->bar_addr);
40 ndev->nr_queues = vf_config_mode_to_nr_queues(vf_mode);
41}
42
43static struct nitrox_device *
44find_ndev(struct rte_pci_device *pdev)

Callers 1

nitrox_pci_probeFunction · 0.85

Calls 2

vf_get_vf_config_modeFunction · 0.85

Tested by

no test coverage detected