/linux/tools/include/linux/ |
A D | bitops.h | 17 #define BITS_PER_TYPE(type) (sizeof(type) * BITS_PER_BYTE) macro 18 #define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_TYPE(long)) 19 #define BITS_TO_U64(nr) DIV_ROUND_UP(nr, BITS_PER_TYPE(u64)) 20 #define BITS_TO_U32(nr) DIV_ROUND_UP(nr, BITS_PER_TYPE(u32)) 21 #define BITS_TO_BYTES(nr) DIV_ROUND_UP(nr, BITS_PER_TYPE(char))
|
/linux/include/linux/ |
A D | bitops.h | 18 #define BITS_PER_TYPE(type) (sizeof(type) * BITS_PER_BYTE) macro 19 #define BITS_TO_LONGS(nr) __KERNEL_DIV_ROUND_UP(nr, BITS_PER_TYPE(long)) 20 #define BITS_TO_U64(nr) __KERNEL_DIV_ROUND_UP(nr, BITS_PER_TYPE(u64)) 21 #define BITS_TO_U32(nr) __KERNEL_DIV_ROUND_UP(nr, BITS_PER_TYPE(u32)) 22 #define BITS_TO_BYTES(nr) __KERNEL_DIV_ROUND_UP(nr, BITS_PER_TYPE(char))
|
/linux/lib/dim/ |
A D | dim.c | 62 u32 npkts = BIT_GAP(BITS_PER_TYPE(u32), end->pkt_ctr, start->pkt_ctr); in dim_calc_stats() 63 u32 nbytes = BIT_GAP(BITS_PER_TYPE(u32), end->byte_ctr, in dim_calc_stats() 65 u32 ncomps = BIT_GAP(BITS_PER_TYPE(u32), end->comp_ctr, in dim_calc_stats()
|
A D | net_dim.c | 225 nevents = BIT_GAP(BITS_PER_TYPE(u16), in net_dim()
|
/linux/drivers/mux/ |
A D | gpio.c | 26 DECLARE_BITMAP(values, BITS_PER_TYPE(state)); in mux_gpio_set() 29 bitmap_from_arr32(values, &value, BITS_PER_TYPE(value)); in mux_gpio_set()
|
/linux/drivers/mtd/nand/raw/ |
A D | ams-delta.c | 60 DECLARE_BITMAP(values, BITS_PER_TYPE(byte)) = { byte, }; in gpio_nand_io_write() 71 DECLARE_BITMAP(values, BITS_PER_TYPE(byte)) = { byte, }; in gpio_nand_dir_output() 87 DECLARE_BITMAP(values, BITS_PER_TYPE(res)) = { 0, }; in gpio_nand_io_read()
|
/linux/net/netfilter/ |
A D | nft_bitwise.c | 46 carry = src[i - 1] >> (BITS_PER_TYPE(u32) - shift); in nft_bitwise_eval_lshift() 59 carry = src[i] << (BITS_PER_TYPE(u32) - shift); in nft_bitwise_eval_rshift() 150 priv->data.data[0] >= BITS_PER_TYPE(u32)) { in nft_bitwise_init_shift()
|
/linux/drivers/char/hw_random/ |
A D | cctrng.h | 18 #define CC_TRNG_EHR_IN_BITS (CC_TRNG_EHR_IN_WORDS * BITS_PER_TYPE(u32))
|
/linux/drivers/gpu/drm/ |
A D | drm_print.c | 223 if (WARN_ON_ONCE(nbits > BITS_PER_TYPE(value))) in drm_print_bits() 224 nbits = BITS_PER_TYPE(value); in drm_print_bits()
|
/linux/drivers/net/mdio/ |
A D | mdio-mux-gpio.c | 26 DECLARE_BITMAP(values, BITS_PER_TYPE(desired_child)); in mdio_mux_gpio_switch_fn()
|
/linux/drivers/gpu/drm/i915/ |
A D | i915_mitigations.c | 36 BUILD_BUG_ON(ARRAY_SIZE(names) >= BITS_PER_TYPE(mitigations)); in mitigations_set()
|
A D | intel_runtime_pm.h | 76 BITS_PER_TYPE(struct_member(struct intel_runtime_pm, wakeref_count))
|
A D | i915_syncmap.c | 95 BUILD_BUG_ON(KSYNCMAP > BITS_PER_TYPE((*root)->bitmap)); in i915_syncmap_init()
|
A D | intel_device_info.c | 277 BUILD_BUG_ON(BITS_PER_TYPE(intel_engine_mask_t) < I915_NUM_ENGINES); in intel_device_info_runtime_init()
|
A D | i915_utils.h | 126 (sizeof(x) > sizeof(T) && (x) >> BITS_PER_TYPE(T))
|
A D | i915_drv.h | 1366 BITS_PER_TYPE(info->platform_mask[0]) - INTEL_SUBPLATFORM_BITS; in __platform_mask_index() 1380 BITS_PER_TYPE(info->platform_mask[0]) - INTEL_SUBPLATFORM_BITS; in __platform_mask_bit() 1412 const unsigned int msb = BITS_PER_TYPE(info->platform_mask[0]) - 1; in IS_SUBPLATFORM()
|
/linux/drivers/gpu/drm/i915/gt/ |
A D | selftest_ring.c | 16 ring->wrap = BITS_PER_TYPE(ring->size) - ilog2(sz); in mock_ring()
|
A D | intel_ring.c | 158 ring->wrap = BITS_PER_TYPE(ring->size) - ilog2(size); in intel_engine_create_ring()
|
/linux/drivers/power/supply/ |
A D | ucs1002_power.c | 159 static const int bit_weights_uAh[BITS_PER_TYPE(u32)] = { in ucs1002_get_charge() 208 static const int bit_weights_uA[BITS_PER_TYPE(u8)] = { in ucs1002_get_current()
|
/linux/drivers/iio/amplifiers/ |
A D | hmc425a.c | 48 DECLARE_BITMAP(values, BITS_PER_TYPE(value)); in hmc425a_write()
|
/linux/drivers/gpu/drm/i915/display/ |
A D | intel_frontbuffer.c | 314 BITS_PER_TYPE(atomic_t)); in intel_frontbuffer_track()
|
/linux/drivers/i2c/muxes/ |
A D | i2c-mux-gpio.c | 27 DECLARE_BITMAP(values, BITS_PER_TYPE(val)); in i2c_mux_gpio_set()
|
/linux/drivers/net/wireless/ath/ath10k/ |
A D | txrx.c | 162 if (peer_id >= BITS_PER_TYPE(peer->peer_ids)) in ath10k_peer_find_by_id()
|
/linux/drivers/soc/renesas/ |
A D | r8a779a0-sysc.c | 141 #define NUM_DOMAINS_EACH_REG BITS_PER_TYPE(u32)
|
/linux/security/landlock/ |
A D | fs.c | 234 BUILD_BUG_ON(BITS_PER_TYPE(layer_mask) < LANDLOCK_MAX_NUM_LAYERS); in check_access_path()
|