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

Function ifpga_rawdev_get

dpdk/drivers/raw/ifpga/ifpga_rawdev.c:88–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86static void fme_interrupt_handler(void *param);
87
88struct ifpga_rawdev *
89ifpga_rawdev_get(const struct rte_rawdev *rawdev)
90{
91 struct ifpga_rawdev *dev;
92 unsigned int i;
93
94 if (rawdev == NULL)
95 return NULL;
96
97 for (i = 0; i < IFPGA_RAWDEV_NUM; i++) {
98 dev = &ifpga_rawdevices[i];
99 if (dev->rawdev == rawdev)
100 return dev;
101 }
102
103 return NULL;
104}
105
106static inline uint8_t
107ifpga_rawdev_find_free_device_index(void)

Callers 4

ifpga_rawdev_allocateFunction · 0.85
ifpga_rawdev_closeFunction · 0.85
ifpga_cfg_probeFunction · 0.85
ifpga_cfg_removeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected