Home
last modified time | relevance | path

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

123

/linux-6.1.9/tools/include/linux/
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-6.1.9/lib/dim/
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()
Dnet_dim.c225 nevents = BIT_GAP(BITS_PER_TYPE(u16), in net_dim()
/linux-6.1.9/include/linux/
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-6.1.9/security/landlock/
Druleset.h24 static_assert(BITS_PER_TYPE(access_mask_t) >= LANDLOCK_NUM_ACCESS_FS);
30 static_assert(BITS_PER_TYPE(layer_mask_t) >= LANDLOCK_MAX_NUM_LAYERS);
/linux-6.1.9/drivers/mux/
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-6.1.9/drivers/crypto/cavium/nitrox/
Dnitrox_mbx.c124 DECLARE_BITMAP(csr, BITS_PER_TYPE(u64)); in nitrox_pf2vf_mbox_handler()
135 for_each_set_bit(i, csr, BITS_PER_TYPE(csr)) { in nitrox_pf2vf_mbox_handler()
158 for_each_set_bit(i, csr, BITS_PER_TYPE(csr)) { in nitrox_pf2vf_mbox_handler()
/linux-6.1.9/drivers/char/hw_random/
Dcctrng.h18 #define CC_TRNG_EHR_IN_BITS (CC_TRNG_EHR_IN_WORDS * BITS_PER_TYPE(u32))
/linux-6.1.9/drivers/vfio/
Diova_bitmap.c131 return iova / (BITS_PER_TYPE(*bitmap->bitmap) * pgsize); in iova_bitmap_offset_to_index()
142 return (index * BITS_PER_TYPE(*bitmap->bitmap)) << pgshift; in iova_bitmap_index_to_offset()
/linux-6.1.9/drivers/mtd/nand/raw/
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-6.1.9/drivers/gpu/drm/
Ddrm_print.c246 if (WARN_ON_ONCE(nbits > BITS_PER_TYPE(value))) in drm_print_bits()
247 nbits = BITS_PER_TYPE(value); in drm_print_bits()
/linux-6.1.9/drivers/net/mdio/
Dmdio-mux-gpio.c26 DECLARE_BITMAP(values, BITS_PER_TYPE(desired_child)); in mdio_mux_gpio_switch_fn()
/linux-6.1.9/drivers/pinctrl/sunxi/
Dpinctrl-sunxi.c69 offset / BITS_PER_TYPE(u32) * sizeof(u32); in sunxi_mux_reg()
70 *shift = offset % BITS_PER_TYPE(u32); in sunxi_mux_reg()
81 offset / BITS_PER_TYPE(u32) * sizeof(u32); in sunxi_data_reg()
82 *shift = offset % BITS_PER_TYPE(u32); in sunxi_data_reg()
93 offset / BITS_PER_TYPE(u32) * sizeof(u32); in sunxi_dlevel_reg()
94 *shift = offset % BITS_PER_TYPE(u32); in sunxi_dlevel_reg()
105 offset / BITS_PER_TYPE(u32) * sizeof(u32); in sunxi_pull_reg()
106 *shift = offset % BITS_PER_TYPE(u32); in sunxi_pull_reg()
/linux-6.1.9/drivers/gpu/drm/i915/
Di915_mitigations.c37 BUILD_BUG_ON(ARRAY_SIZE(names) >= BITS_PER_TYPE(mitigations)); in mitigations_set()
Dintel_runtime_pm.h99 BITS_PER_TYPE(struct_member(struct intel_runtime_pm, wakeref_count))
Di915_syncmap.c95 BUILD_BUG_ON(KSYNCMAP > BITS_PER_TYPE((*root)->bitmap)); in i915_syncmap_init()
/linux-6.1.9/net/netfilter/
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()
152 if (priv->data.data[0] >= BITS_PER_TYPE(u32)) { in nft_bitwise_init_shift()
/linux-6.1.9/drivers/gpu/drm/i915/gt/
Dselftest_ring.c16 ring->wrap = BITS_PER_TYPE(ring->size) - ilog2(sz); in mock_ring()
Dintel_sseu.h66 #define XEHP_BITMAP_BITS(mask) ((int)BITS_PER_TYPE(typeof(mask.xehp)))
/linux-6.1.9/drivers/power/supply/
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-6.1.9/drivers/iio/amplifiers/
Dhmc425a.c48 DECLARE_BITMAP(values, BITS_PER_TYPE(value)); in hmc425a_write()
/linux-6.1.9/drivers/net/can/usb/etas_es58x/
Des58x_fd.c72 const u32 mask = GENMASK(BITS_PER_TYPE(mask) - 1, in es58x_fd_echo_msg()
73 BITS_PER_TYPE(echo_msg->packet_idx)); in es58x_fd_echo_msg()
/linux-6.1.9/drivers/hwmon/peci/
Ddimmtemp.c227 BUILD_BUG_ON(BITS_PER_TYPE(chan_rank_empty) < CHAN_RANK_MAX); in check_populated_dimms()
228 BUILD_BUG_ON(BITS_PER_TYPE(dimm_mask) < DIMM_NUMS_MAX); in check_populated_dimms()
/linux-6.1.9/drivers/i2c/muxes/
Di2c-mux-gpio.c28 DECLARE_BITMAP(values, BITS_PER_TYPE(val)); in i2c_mux_gpio_set()
/linux-6.1.9/drivers/gpu/drm/i915/display/
Dintel_frontbuffer.c313 BITS_PER_TYPE(atomic_t)); in intel_frontbuffer_track()

123