| /linux-6.15/drivers/iio/light/ |
| H A D | opt4001.c | 152 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()
|
| H A D | opt4060.c | 210 crc = (hweight32(mantissa) + hweight32(exp) + hweight32(count)) % 2; in opt4060_calculate_crc() 211 crc |= ((hweight32(mantissa & 0xAAAAA) + hweight32(exp & 0xA) in opt4060_calculate_crc() 212 + hweight32(count & 0xA)) % 2) << 1; in opt4060_calculate_crc() 213 crc |= ((hweight32(mantissa & 0x88888) + hweight32(exp & 0x8) in opt4060_calculate_crc() 214 + hweight32(count & 0x8)) % 2) << 2; in opt4060_calculate_crc() 215 crc |= (hweight32(mantissa & 0x80808) % 2) << 3; in opt4060_calculate_crc()
|
| /linux-6.15/drivers/gpu/drm/i915/selftests/ |
| H A D | i915_syncmap.c | 183 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-6.15/drivers/gpu/drm/xe/ |
| H A D | xe_gt_ccs_mode.c | 20 int num_slices = hweight32(CCS_MASK(gt)); in __xe_gt_apply_ccs_mode() 97 return sysfs_emit(buf, "%u\n", hweight32(CCS_MASK(gt))); in num_cslices_show() 134 num_slices = hweight32(CCS_MASK(gt)); in ccs_mode_store()
|
| H A D | xe_gt_ccs_mode.h | 20 return hweight32(CCS_MASK(gt)) > 1; in xe_gt_ccs_mode_enabled()
|
| /linux-6.15/drivers/cxl/core/ |
| H A D | ras.c | 24 if (hweight32(status) > 1) in cxl_cper_trace_uncorr_port_prot_err() 58 if (hweight32(status) > 1) in cxl_cper_trace_uncorr_prot_err()
|
| /linux-6.15/sound/soc/codecs/ |
| H A D | sdw-mockup.c | 154 nval = hweight32(prop->source_ports); in sdw_mockup_read_prop() 172 nval = hweight32(prop->sink_ports); in sdw_mockup_read_prop()
|
| H A D | framer-codec.c | 48 framer->max_chan_playback = hweight32(tx_mask); in framer_dai_set_tdm_slot() 55 framer->max_chan_capture = hweight32(rx_mask); in framer_dai_set_tdm_slot()
|
| /linux-6.15/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
| H A D | gv100.c | 101 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-6.15/sound/soc/amd/acp/ |
| H A D | amd-sdw-acpi.c | 43 count = hweight32(sdw_bitmap); in amd_sdw_scan_controller()
|
| /linux-6.15/drivers/gpu/drm/amd/amdgpu/ |
| H A D | umc_v8_10.h | 37 (adev)->gmc.num_umc - hweight32((adev)->gmc.m_half_use) * 2)
|
| /linux-6.15/drivers/gpu/drm/nouveau/nvkm/engine/ce/ |
| H A D | gv100.c | 38 size = 27 * 5 * (((9 + 1 + 3) * hweight32(size)) + 2); in gv100_ce_cclass_bind()
|
| /linux-6.15/arch/arm/probes/kprobes/ |
| H A D | checkers-thumb.c | 92 asi->stack_space = hweight32(reglist) * 4; in t16_check_stack()
|
| H A D | checkers-common.c | 77 asi->stack_space = (hweight32(reglist) - (!pbit ? 1 : 0)) * 4; in checker_stack_use_stmdx()
|
| /linux-6.15/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ |
| H A D | ramgm200.c | 44 *pltcs = hweight32(ltcm); in gm200_ram_probe_fbp_amount()
|
| /linux-6.15/drivers/gpu/drm/vc4/tests/ |
| H A D | vc4_mock.h | 15 KUNIT_ASSERT_EQ(test, hweight32(encoder->possible_crtcs), 1); in vc4_find_crtc_for_encoder()
|
| /linux-6.15/include/asm-generic/bitops/ |
| H A D | const_hweight.h | 28 #define hweight32(w) (__builtin_constant_p(w) ? __const_hweight32(w) : __arch_hweight32(w)) macro
|
| /linux-6.15/tools/include/asm-generic/bitops/ |
| H A D | const_hweight.h | 28 #define hweight32(w) (__builtin_constant_p(w) ? __const_hweight32(w) : __arch_hweight32(w)) macro
|
| /linux-6.15/net/netfilter/ |
| H A D | xt_repldata.h | 19 unsigned int nhooks = hweight32(hook_mask); \
|
| /linux-6.15/drivers/gpu/drm/i915/gt/ |
| H A D | intel_sseu_debugfs.c | 98 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-6.15/drivers/iio/gyro/ |
| H A D | adxrs450.c | 111 if (!(hweight32(tx) & 1)) in adxrs450_spi_read_reg_16() 147 if (!(hweight32(tx) & 1)) in adxrs450_spi_write_reg_16()
|
| /linux-6.15/drivers/net/wireguard/selftest/ |
| H A D | allowedips.c | 120 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-6.15/sound/hda/ |
| H A D | intel-sdw-acpi.c | 96 count = hweight32(list); in sdw_intel_scan_controller()
|
| /linux-6.15/tools/include/linux/ |
| H A D | bitops.h | 72 return sizeof(w) == 4 ? hweight32(w) : hweight64(w); in hweight_long()
|
| /linux-6.15/fs/ocfs2/ |
| H A D | blockcheck.c | 167 if (hweight32(fix) == 1) in ocfs2_hamming_fix() 190 while (hweight32(b) == 1) in ocfs2_hamming_fix()
|