Searched refs:BITS_PER_LONG (Results 1 - 25 of 28) sorted by relevance

12

/freebsd-13-stable/contrib/ofed/libmlx5/
H A Dbitmap.h56 #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 Dbitops.h43 #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 Dbitmap.h44 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 Dostypes.h91 #define BITS_PER_LONG 64 macro
93 #define BITS_PER_LONG 32 macro
109 #if (BITS_PER_LONG == 64)
H A Dlxcommon.h566 #if (BITS_PER_LONG == 64)
/freebsd-13-stable/sys/dev/axgbe/
H A Dxgbe_osdep.h199 #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 Ddoorbell.h34 #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 Ddoorbell.h44 #if BITS_PER_LONG == 64
65 * BITS_PER_LONG is 32 -- there's no portable way to do atomic 64-bit
H A Ddevice.h1076 if (BITS_PER_LONG == 64 || buf->nbufs == 1)
/freebsd-13-stable/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_mem.c69 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 Dmthca_doorbell.h43 #if BITS_PER_LONG == 64
74 * BITS_PER_LONG is 32 -- there's no portable way to do atomic 64-bit
H A Dmthca_profile.c274 if (mthca_is_memfree(dev) || BITS_PER_LONG == 64)
/freebsd-13-stable/sys/compat/linuxkpi/common/include/net/
H A Dipv6.h68 #if BITS_PER_LONG == 64
/freebsd-13-stable/sys/dev/mlx4/mlx4_en/
H A Dmlx4_en_resources.c111 if (BITS_PER_LONG == 64 || buf->nbufs == 1)
H A Dmlx4_en_netdev.c2227 #if BITS_PER_LONG == 64
2230 #elif BITS_PER_LONG == 32
/freebsd-13-stable/sys/dev/hptmv/
H A Dosbsd.h250 #define BITS_PER_LONG 32 macro
254 #define BITS_PER_LONG 64 macro
/freebsd-13-stable/sys/dev/drm2/
H A Ddrm_os_freebsd.h22 #define BITS_PER_LONG 64 macro
24 #define BITS_PER_LONG 32 macro
H A Ddrm_gem.c59 #if BITS_PER_LONG == 64
H A Ddrm_bufs.c157 #if (BITS_PER_LONG == 64)
159 #elif (BITS_PER_LONG == 32)
/freebsd-13-stable/sys/contrib/openzfs/include/os/linux/kernel/linux/
H A Dvfs_compat.h445 return (BITS_PER_LONG == 32);
/freebsd-13-stable/sys/dev/mlx4/mlx4_core/
H A Dmlx4_alloc.c632 if (BITS_PER_LONG == 64) {
664 if (BITS_PER_LONG == 64)
/freebsd-13-stable/sys/dev/bxe/
H A Dbxe_stats.c36 #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 Dspl-generic.c174 #if BITS_PER_LONG == 32
429 #endif /* BITS_PER_LONG */
/freebsd-13-stable/sys/dev/qlnx/qlnxe/
H A Dbcm_osal.h479 bit %= BITS_PER_LONG;
/freebsd-13-stable/sys/ofed/drivers/infiniband/core/
H A Dib_cache.c775 BITS_PER_LONG,

Completed in 180 milliseconds

12