/freebsd-13-stable/contrib/ofed/libmlx5/ |
H A D | bitmap.h | 56 #define BITS_PER_LONG (8 * sizeof(long)) macro 57 #define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_LONG) 79 while (size & ~(BITS_PER_LONG - 1)) { 83 result += BITS_PER_LONG; 84 size -= BITS_PER_LONG; 98 addr[(nr / BITS_PER_LONG)] |= (1UL << (nr % BITS_PER_LONG)); 103 addr[(nr / BITS_PER_LONG)] &= ~(1UL << (nr % BITS_PER_LONG)); 108 return !!(addr[(nr / BITS_PER_LONG)] [all...] |
/freebsd-13-stable/sys/compat/linuxkpi/common/include/linux/ |
H A D | bitops.h | 43 #define BITS_PER_LONG 64 macro 45 #define BITS_PER_LONG 32 macro 50 #define BITMAP_FIRST_WORD_MASK(start) (~0UL << ((start) % BITS_PER_LONG)) 51 #define BITMAP_LAST_WORD_MASK(n) (~0UL >> (BITS_PER_LONG - (n))) 52 #define BITS_TO_LONGS(n) howmany((n), BITS_PER_LONG) 53 #define BIT_MASK(nr) (1UL << ((nr) & (BITS_PER_LONG - 1))) 54 #define BIT_WORD(nr) ((nr) / BITS_PER_LONG) 55 #define GENMASK(h, l) (((~0UL) >> (BITS_PER_LONG - (h) - 1)) & ((~0UL) << (l))) 120 for (bit = 0; size >= BITS_PER_LONG; 121 size -= BITS_PER_LONG, bi [all...] |
H A D | bitmap.h | 44 const unsigned int tail = size & (BITS_PER_LONG - 1); 56 const unsigned int tail = size & (BITS_PER_LONG - 1); 77 const unsigned int tail = size & (BITS_PER_LONG - 1); 98 int bits_to_set = BITS_PER_LONG - (start % BITS_PER_LONG); 106 bits_to_set = BITS_PER_LONG; 121 int bits_to_clear = BITS_PER_LONG - (start % BITS_PER_LONG); 129 bits_to_clear = BITS_PER_LONG; 210 const unsigned int tail = size & (BITS_PER_LONG [all...] |
/freebsd-13-stable/sys/dev/pms/freebsd/driver/common/ |
H A D | ostypes.h | 91 #define BITS_PER_LONG 64 macro 93 #define BITS_PER_LONG 32 macro 109 #if (BITS_PER_LONG == 64)
|
H A D | lxcommon.h | 566 #if (BITS_PER_LONG == 64)
|
/freebsd-13-stable/sys/dev/axgbe/ |
H A D | xgbe_osdep.h | 199 #define BITS_PER_LONG (sizeof(long) * CHAR_BIT) macro 200 #define BITS_TO_LONGS(n) howmany((n), BITS_PER_LONG) 202 #define BITMAP_LAST_WORD_MASK(n) (~0UL >> (BITS_PER_LONG - (n))) 263 pos = offset / BITS_PER_LONG; 264 offs = offset % BITS_PER_LONG; 265 bit = BITS_PER_LONG * pos; 271 if (size - bit <= BITS_PER_LONG) 273 bit += BITS_PER_LONG; 276 for (size -= bit; size >= BITS_PER_LONG; 277 size -= BITS_PER_LONG, bi [all...] |
/freebsd-13-stable/sys/dev/mlx5/ |
H A D | doorbell.h | 34 #if BITS_PER_LONG == 64 53 * BITS_PER_LONG is 32 -- there's no portable way to do atomic 64-bit
|
/freebsd-13-stable/sys/dev/mlx4/ |
H A D | doorbell.h | 44 #if BITS_PER_LONG == 64 65 * BITS_PER_LONG is 32 -- there's no portable way to do atomic 64-bit
|
H A D | device.h | 1076 if (BITS_PER_LONG == 64 || buf->nbufs == 1)
|
/freebsd-13-stable/sys/dev/mlx5/mlx5_ib/ |
H A D | mlx5_ib_mem.c | 69 m = find_first_bit(&tmp, BITS_PER_LONG); 79 m = min_t(unsigned long, m, find_first_bit(&tmp, BITS_PER_LONG)); 87 m = find_first_bit(&tmp, BITS_PER_LONG);
|
/freebsd-13-stable/sys/dev/mthca/ |
H A D | mthca_doorbell.h | 43 #if BITS_PER_LONG == 64 74 * BITS_PER_LONG is 32 -- there's no portable way to do atomic 64-bit
|
H A D | mthca_profile.c | 274 if (mthca_is_memfree(dev) || BITS_PER_LONG == 64)
|
/freebsd-13-stable/sys/compat/linuxkpi/common/include/net/ |
H A D | ipv6.h | 68 #if BITS_PER_LONG == 64
|
/freebsd-13-stable/sys/dev/mlx4/mlx4_en/ |
H A D | mlx4_en_resources.c | 111 if (BITS_PER_LONG == 64 || buf->nbufs == 1)
|
H A D | mlx4_en_netdev.c | 2227 #if BITS_PER_LONG == 64 2230 #elif BITS_PER_LONG == 32
|
/freebsd-13-stable/sys/dev/hptmv/ |
H A D | osbsd.h | 250 #define BITS_PER_LONG 32 macro 254 #define BITS_PER_LONG 64 macro
|
/freebsd-13-stable/sys/dev/drm2/ |
H A D | drm_os_freebsd.h | 22 #define BITS_PER_LONG 64 macro 24 #define BITS_PER_LONG 32 macro
|
H A D | drm_gem.c | 59 #if BITS_PER_LONG == 64
|
H A D | drm_bufs.c | 157 #if (BITS_PER_LONG == 64) 159 #elif (BITS_PER_LONG == 32)
|
/freebsd-13-stable/sys/contrib/openzfs/include/os/linux/kernel/linux/ |
H A D | vfs_compat.h | 445 return (BITS_PER_LONG == 32);
|
/freebsd-13-stable/sys/dev/mlx4/mlx4_core/ |
H A D | mlx4_alloc.c | 632 if (BITS_PER_LONG == 64) { 664 if (BITS_PER_LONG == 64)
|
/freebsd-13-stable/sys/dev/bxe/ |
H A D | bxe_stats.c | 36 #define BITS_PER_LONG 32 macro 38 #define BITS_PER_LONG 64 macro 46 #if (BITS_PER_LONG == 64)
|
/freebsd-13-stable/sys/contrib/openzfs/module/os/linux/spl/ |
H A D | spl-generic.c | 174 #if BITS_PER_LONG == 32 429 #endif /* BITS_PER_LONG */
|
/freebsd-13-stable/sys/dev/qlnx/qlnxe/ |
H A D | bcm_osal.h | 479 bit %= BITS_PER_LONG;
|
/freebsd-13-stable/sys/ofed/drivers/infiniband/core/ |
H A D | ib_cache.c | 775 BITS_PER_LONG,
|