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

Function ccp_set_bit

dpdk/drivers/crypto/ccp/ccp_dev.c:116–121  ·  view source on GitHub ↗

bitmap support apis */

Source from the content-addressed store, hash-verified

114
115/* bitmap support apis */
116static inline void
117ccp_set_bit(unsigned long *bitmap, int n)
118{
119 __atomic_fetch_or(&bitmap[WORD_OFFSET(n)], (1UL << BIT_OFFSET(n)),
120 __ATOMIC_SEQ_CST);
121}
122
123static inline void
124ccp_clear_bit(unsigned long *bitmap, int n)

Callers 2

ccp_find_lsb_regionsFunction · 0.85
ccp_assign_lsbsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected