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

Function mrvl_reserve_bit

dpdk/drivers/net/mvpp2/mrvl_ethdev.c:193–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191};
192
193static inline int
194mrvl_reserve_bit(int *bitmap, int max)
195{
196 int n = sizeof(*bitmap) * 8 - rte_clz32(*bitmap);
197
198 if (n >= max)
199 return -1;
200
201 *bitmap |= 1 << n;
202
203 return n;
204}
205
206static int
207mrvl_pp2_fixup_init(void)

Callers 3

mrvl_pp2_fixup_initFunction · 0.85
mrvl_init_hifFunction · 0.85
mrvl_priv_createFunction · 0.85

Calls 1

rte_clz32Function · 0.85

Tested by

no test coverage detected