Home
last modified time | relevance | path

Searched refs:hweight32 (Results 1 – 25 of 211) sorted by relevance

123456789

/openbmc/linux/drivers/iio/light/
H A Dopt4001.c152 crc = (hweight32(mantissa) + hweight32(exp) + hweight32(count)) % 2; in opt4001_calculate_crc()
153 crc |= ((hweight32(mantissa & 0xAAAAA) + hweight32(exp & 0xA) in opt4001_calculate_crc()
154 + hweight32(count & 0xA)) % 2) << 1; in opt4001_calculate_crc()
155 crc |= ((hweight32(mantissa & 0x88888) + hweight32(exp & 0x8) in opt4001_calculate_crc()
156 + hweight32(count & 0x8)) % 2) << 2; in opt4001_calculate_crc()
157 crc |= (hweight32(mantissa & 0x80808) % 2) << 3; in opt4001_calculate_crc()
/openbmc/linux/drivers/gpu/drm/i915/selftests/
H A Di915_syncmap.c183 if (hweight32((*sync)->bitmap) != 1) { in check_one()
185 (*sync)->bitmap, hweight32((*sync)->bitmap)); in check_one()
252 if (hweight32((*sync)->bitmap) != 1) { in check_leaf()
254 context, (*sync)->bitmap, hweight32((*sync)->bitmap)); in check_leaf()
314 if (hweight32(join->bitmap) != 2) { in igt_syncmap_join_above()
316 join->bitmap, hweight32(join->bitmap)); in igt_syncmap_join_above()
435 sync->bitmap, hweight32(sync->bitmap), in igt_syncmap_neighbours()
500 sync->bitmap, hweight32(sync->bitmap), in igt_syncmap_compact()
525 idx, leaf->bitmap, hweight32(leaf->bitmap)); in igt_syncmap_compact()
/openbmc/u-boot/arch/arm/cpu/armv8/fsl-layerscape/
H A Dmp.c162 if (hweight32(cpu_up_mask) == hweight32(cores)) in fsl_layerscape_wake_seconday_cores()
171 printf("All (%d) cores are up.\n", hweight32(cores)); in fsl_layerscape_wake_seconday_cores()
215 } else if (nr >= hweight32(cores)) { in core_to_pos()
/openbmc/u-boot/fs/yaffs2/
H A Dyaffs_ecc.c269 if ((hweight32(delta_line) + in yaffs_ecc_correct_other()
270 hweight32(delta_line_prime) + in yaffs_ecc_correct_other()
/openbmc/u-boot/arch/arc/include/asm/
H A Dbitops.h14 #define hweight32(x) generic_hweight32(x) macro
/openbmc/linux/sound/soc/codecs/
H A Dsdw-mockup.c154 nval = hweight32(prop->source_ports); in sdw_mockup_read_prop()
172 nval = hweight32(prop->sink_ports); in sdw_mockup_read_prop()
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/gr/
H A Dgv100.c101 temp = hweight32(temp); in gv100_gr_nonpes_aware_tpc()
149 num_tpc_gpc[gpc] = hweight32(num_tpc_mask); in gv100_gr_scg_estimate_perf()
177 if (hweight32(num_tpc_mask)) in gv100_gr_scg_estimate_perf()
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/
H A Dumc_v8_10.h37 (adev)->gmc.num_umc - hweight32((adev)->gmc.m_half_use) * 2)
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/ce/
H A Dgv100.c38 size = 27 * 5 * (((9 + 1 + 3) * hweight32(size)) + 2); in gv100_ce_cclass_bind()
/openbmc/u-boot/arch/m68k/include/asm/
H A Dbitops.h49 #define hweight32(x) generic_hweight32(x) macro
/openbmc/linux/arch/arm/probes/kprobes/
H A Dcheckers-thumb.c92 asi->stack_space = hweight32(reglist) * 4; in t16_check_stack()
H A Dcheckers-common.c77 asi->stack_space = (hweight32(reglist) - (!pbit ? 1 : 0)) * 4; in checker_stack_use_stmdx()
/openbmc/u-boot/arch/arm/cpu/armv8/s32v234/
H A Dcpu.c76 numcores = hweight32(cpu_mask()); in cpu_numcores()
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
H A Dramgm200.c44 *pltcs = hweight32(ltcm); in gm200_ram_probe_fbp_amount()
/openbmc/linux/tools/include/asm-generic/bitops/
H A Dconst_hweight.h28 #define hweight32(w) (__builtin_constant_p(w) ? __const_hweight32(w) : __arch_hweight32(w)) macro
/openbmc/linux/include/asm-generic/bitops/
H A Dconst_hweight.h28 #define hweight32(w) (__builtin_constant_p(w) ? __const_hweight32(w) : __arch_hweight32(w)) macro
/openbmc/linux/drivers/gpu/drm/vc4/tests/
H A Dvc4_mock.h15 KUNIT_ASSERT_EQ(test, hweight32(encoder->possible_crtcs), 1); in vc4_find_crtc_for_encoder()
/openbmc/linux/net/netfilter/
H A Dxt_repldata.h19 unsigned int nhooks = hweight32(hook_mask); \
/openbmc/u-boot/arch/microblaze/include/asm/
H A Dbitops.h256 #define hweight32(x) generic_hweight32(x) macro
369 #define hweight32(x) generic_hweight32(x) macro
/openbmc/u-boot/arch/powerpc/cpu/mpc8xxx/
H A Dcpu.c277 return hweight32(cpu_dsp_mask()); in cpu_num_dspcores()
295 return hweight32(cpu_mask()); in cpu_numcores()
/openbmc/linux/drivers/net/wireguard/selftest/
H A Dallowedips.c120 return hweight32(subnet.all[0]) + hweight32(subnet.all[1]) + in horrible_mask_to_cidr()
121 hweight32(subnet.all[2]) + hweight32(subnet.all[3]); in horrible_mask_to_cidr()
/openbmc/linux/drivers/soundwire/
H A Dmipi_disco.c363 nval = hweight32(prop->source_ports); in sdw_slave_read_prop()
374 nval = hweight32(prop->sink_ports); in sdw_slave_read_prop()
/openbmc/linux/drivers/iio/gyro/
H A Dadxrs450.c111 if (!(hweight32(tx) & 1)) in adxrs450_spi_read_reg_16()
147 if (!(hweight32(tx) & 1)) in adxrs450_spi_write_reg_16()
/openbmc/linux/drivers/gpu/drm/i915/gt/
H A Dintel_sseu_debugfs.c98 eu_cnt = 2 * hweight32(eu_reg[2 * s + ss / 2] & in gen11_sseu_device_status()
157 eu_cnt = 2 * hweight32(eu_cnt); in gen9_sseu_device_status()
/openbmc/u-boot/arch/sh/include/asm/
H A Dbitops.h156 #define hweight32(x) generic_hweight32(x) macro

123456789