Loading...
Searching...
No Matches
Go to the documentation of this file. 1#ifndef __LINUX_BITS_H__
2#define __LINUX_BITS_H__
37#define BITS_PER_LONG 32
41#define __GENMASK(h, l) \
42 (((~0UL) << (l)) & (~0UL >> (BITS_PER_LONG - 1 - (h))))
46#define __GENMASK_ULL(h, l) \
47 (((~0ULL) << (l)) & (~0ULL >> (63 - (h))))
51#define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL << (n)) - 1))