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

Function timvf_get_ring

dpdk/drivers/event/octeontx/timvf_probe.c:38–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36static struct timdev tdev;
37
38uint8_t
39timvf_get_ring(void)
40{
41 uint16_t global_domain = octeontx_get_global_domain();
42 int i;
43
44 for (i = 0; i < tdev.total_timvfs; i++) {
45 if (tdev.rings[i].domain != global_domain)
46 continue;
47 if (tdev.rings[i].in_use)
48 continue;
49
50 tdev.rings[i].in_use = true;
51 return tdev.rings[i].vfid;
52 }
53
54 return UINT8_MAX;
55}
56
57void
58timvf_release_ring(uint8_t tim_ring_id)

Callers 1

timvf_ring_createFunction · 0.85

Calls 1

Tested by

no test coverage detected