Home
last modified time | relevance | path

Searched refs:BITS_PER_TYPE (Results 1 – 25 of 40) sorted by relevance

12

/linux/tools/include/linux/
A Dbitops.h17 #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 Dbitops.h18 #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 Ddim.c62 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 Dnet_dim.c225 nevents = BIT_GAP(BITS_PER_TYPE(u16), in net_dim()
/linux/drivers/mux/
A Dgpio.c26 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 Dams-delta.c60 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 Dnft_bitwise.c46 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 Dcctrng.h18 #define CC_TRNG_EHR_IN_BITS (CC_TRNG_EHR_IN_WORDS * BITS_PER_TYPE(u32))
/linux/drivers/gpu/drm/
A Ddrm_print.c223 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 Dmdio-mux-gpio.c26 DECLARE_BITMAP(values, BITS_PER_TYPE(desired_child)); in mdio_mux_gpio_switch_fn()
/linux/drivers/gpu/drm/i915/
A Di915_mitigations.c36 BUILD_BUG_ON(ARRAY_SIZE(names) >= BITS_PER_TYPE(mitigations)); in mitigations_set()
A Dintel_runtime_pm.h76 BITS_PER_TYPE(struct_member(struct intel_runtime_pm, wakeref_count))
A Di915_syncmap.c95 BUILD_BUG_ON(KSYNCMAP > BITS_PER_TYPE((*root)->bitmap)); in i915_syncmap_init()
A Dintel_device_info.c277 BUILD_BUG_ON(BITS_PER_TYPE(intel_engine_mask_t) < I915_NUM_ENGINES); in intel_device_info_runtime_init()
A Di915_utils.h126 (sizeof(x) > sizeof(T) && (x) >> BITS_PER_TYPE(T))
A Di915_drv.h1366 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 Dselftest_ring.c16 ring->wrap = BITS_PER_TYPE(ring->size) - ilog2(sz); in mock_ring()
A Dintel_ring.c158 ring->wrap = BITS_PER_TYPE(ring->size) - ilog2(size); in intel_engine_create_ring()
/linux/drivers/power/supply/
A Ducs1002_power.c159 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 Dhmc425a.c48 DECLARE_BITMAP(values, BITS_PER_TYPE(value)); in hmc425a_write()
/linux/drivers/gpu/drm/i915/display/
A Dintel_frontbuffer.c314 BITS_PER_TYPE(atomic_t)); in intel_frontbuffer_track()
/linux/drivers/i2c/muxes/
A Di2c-mux-gpio.c27 DECLARE_BITMAP(values, BITS_PER_TYPE(val)); in i2c_mux_gpio_set()
/linux/drivers/net/wireless/ath/ath10k/
A Dtxrx.c162 if (peer_id >= BITS_PER_TYPE(peer->peer_ids)) in ath10k_peer_find_by_id()
/linux/drivers/soc/renesas/
A Dr8a779a0-sysc.c141 #define NUM_DOMAINS_EACH_REG BITS_PER_TYPE(u32)
/linux/security/landlock/
A Dfs.c234 BUILD_BUG_ON(BITS_PER_TYPE(layer_mask) < LANDLOCK_MAX_NUM_LAYERS); in check_access_path()

Completed in 61 milliseconds

12