18 #include <rte_compat.h> 26 #define RTE_BIT64(nr) (UINT64_C(1) << (nr)) 34 #define RTE_BIT32(nr) (UINT32_C(1) << (nr)) 52 static inline uint32_t
57 uint32_t mask = UINT32_C(1) << nr;
58 return (*addr) & mask;
79 *addr = (*addr) | mask;
100 *addr = (*addr) & (~mask);
118 static inline uint32_t
124 uint32_t val = *addr;
144 static inline uint32_t
150 uint32_t val = *addr;
151 *addr = val & (~mask);
171 static inline uint64_t
177 return (*addr) & mask;
198 (*addr) = (*addr) | mask;
219 *addr = (*addr) & (~mask);
237 static inline uint64_t
243 uint64_t val = *addr;
263 static inline uint64_t
269 uint64_t val = *addr;
270 *addr = val & (~mask);
static __rte_experimental void rte_bit_relaxed_clear64(unsigned int nr, volatile uint64_t *addr)
static __rte_experimental uint64_t rte_bit_relaxed_test_and_clear64(unsigned int nr, volatile uint64_t *addr)
static __rte_experimental uint32_t rte_bit_relaxed_test_and_set32(unsigned int nr, volatile uint32_t *addr)
static __rte_experimental void rte_bit_relaxed_set64(unsigned int nr, volatile uint64_t *addr)
static __rte_experimental uint64_t rte_bit_relaxed_get64(unsigned int nr, volatile uint64_t *addr)
static __rte_experimental void rte_bit_relaxed_set32(unsigned int nr, volatile uint32_t *addr)
static __rte_experimental void rte_bit_relaxed_clear32(unsigned int nr, volatile uint32_t *addr)
static __rte_experimental uint32_t rte_bit_relaxed_get32(unsigned int nr, volatile uint32_t *addr)
static __rte_experimental uint32_t rte_bit_relaxed_test_and_clear32(unsigned int nr, volatile uint32_t *addr)
static __rte_experimental uint64_t rte_bit_relaxed_test_and_set64(unsigned int nr, volatile uint64_t *addr)