Home
last modified time | relevance | path

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

12345678

/Linux-v6.6/drivers/iio/light/
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()
/Linux-v6.6/drivers/gpu/drm/i915/selftests/
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()
/Linux-v6.6/sound/soc/codecs/
Dsdw-mockup.c154 nval = hweight32(prop->source_ports); in sdw_mockup_read_prop()
172 nval = hweight32(prop->sink_ports); in sdw_mockup_read_prop()
Drt722-sdca-sdw.c218 nval = hweight32(prop->source_ports); in rt722_sdca_read_prop()
236 nval = hweight32(prop->sink_ports); in rt722_sdca_read_prop()
Drt711-sdca-sdw.c193 nval = hweight32(prop->source_ports); in rt711_sdca_read_prop()
211 nval = hweight32(prop->sink_ports); in rt711_sdca_read_prop()
/Linux-v6.6/drivers/mfd/
Dcs42l43-sdw.c65 nval = hweight32(prop->source_ports); in cs42l43_read_prop()
87 nval = hweight32(prop->sink_ports); in cs42l43_read_prop()
/Linux-v6.6/drivers/gpu/drm/nouveau/nvkm/engine/gr/
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()
/Linux-v6.6/drivers/gpu/drm/amd/amdgpu/
Dumc_v8_10.h37 (adev)->gmc.num_umc - hweight32((adev)->gmc.m_half_use) * 2)
Damdgpu_sdma.h51 #define NUM_SDMA(x) hweight32(x)
/Linux-v6.6/drivers/gpu/drm/nouveau/nvkm/engine/ce/
Dgv100.c38 size = 27 * 5 * (((9 + 1 + 3) * hweight32(size)) + 2); in gv100_ce_cclass_bind()
/Linux-v6.6/arch/arm/probes/kprobes/
Dcheckers-thumb.c92 asi->stack_space = hweight32(reglist) * 4; in t16_check_stack()
Dcheckers-common.c77 asi->stack_space = (hweight32(reglist) - (!pbit ? 1 : 0)) * 4; in checker_stack_use_stmdx()
/Linux-v6.6/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
Dramgm200.c44 *pltcs = hweight32(ltcm); in gm200_ram_probe_fbp_amount()
/Linux-v6.6/include/asm-generic/bitops/
Dconst_hweight.h28 #define hweight32(w) (__builtin_constant_p(w) ? __const_hweight32(w) : __arch_hweight32(w)) macro
/Linux-v6.6/tools/include/asm-generic/bitops/
Dconst_hweight.h28 #define hweight32(w) (__builtin_constant_p(w) ? __const_hweight32(w) : __arch_hweight32(w)) macro
/Linux-v6.6/net/netfilter/
Dxt_repldata.h19 unsigned int nhooks = hweight32(hook_mask); \
/Linux-v6.6/drivers/gpu/drm/vc4/tests/
Dvc4_mock.h15 KUNIT_ASSERT_EQ(test, hweight32(encoder->possible_crtcs), 1); in vc4_find_crtc_for_encoder()
/Linux-v6.6/drivers/gpu/drm/i915/gt/
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()
/Linux-v6.6/drivers/iio/gyro/
Dadxrs450.c111 if (!(hweight32(tx) & 1)) in adxrs450_spi_read_reg_16()
147 if (!(hweight32(tx) & 1)) in adxrs450_spi_write_reg_16()
/Linux-v6.6/drivers/soundwire/
Dmipi_disco.c363 nval = hweight32(prop->source_ports); in sdw_slave_read_prop()
374 nval = hweight32(prop->sink_ports); in sdw_slave_read_prop()
/Linux-v6.6/drivers/net/wireguard/selftest/
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()
/Linux-v6.6/tools/include/linux/
Dbitops.h70 return sizeof(w) == 4 ? hweight32(w) : hweight64(w); in hweight_long()
/Linux-v6.6/fs/ocfs2/
Dblockcheck.c167 if (hweight32(fix) == 1) in ocfs2_hamming_fix()
190 while (hweight32(b) == 1) in ocfs2_hamming_fix()
/Linux-v6.6/drivers/media/pci/solo6x10/
Dsolo6x10-core.c232 hweight32(solo_dev->tw2815), in tw28xx_show()
233 hweight32(solo_dev->tw2864), in tw28xx_show()
234 hweight32(solo_dev->tw2865)); in tw28xx_show()
/Linux-v6.6/arch/xtensa/kernel/
Dirq.c141 return hweight32(mask); in xtensa_get_ext_irq_no()

12345678