Home
last modified time | relevance | path

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

12345678910

/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()
H A Dopt4060.c210 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/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()
/linux/drivers/gpu/drm/xe/
H A Dxe_gt_ccs_mode.c21 int num_slices = hweight32(CCS_INSTANCES(gt)); in __xe_gt_apply_ccs_mode()
98 return sysfs_emit(buf, "%u\n", hweight32(CCS_INSTANCES(gt))); in num_cslices_show()
135 num_slices = hweight32(CCS_INSTANCES(gt)); in ccs_mode_store()
/linux/drivers/cxl/core/
H A Dras.c25 if (hweight32(status) > 1) in cxl_cper_trace_uncorr_port_prot_err()
50 if (hweight32(status) > 1) in cxl_cper_trace_uncorr_prot_err()
239 if (hweight32(status) > 1) { in cxl_handle_ras()
/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()
/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()
H A Dframer-codec.c48 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/sound/soc/amd/acp/
H A Damd-sdw-acpi.c43 count = hweight32(sdw_bitmap); in amd_sdw_scan_controller()
/linux/drivers/gpu/drm/amd/amdgpu/
H A Dumc_v8_10.h37 (adev)->gmc.num_umc - hweight32((adev)->gmc.m_half_use) * 2)
/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()
/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()
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
H A Dramgm200.c44 *pltcs = hweight32(ltcm); in gm200_ram_probe_fbp_amount()
/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
/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()
/linux/include/asm-generic/bitops/
H A Dconst_hweight.h28 #define hweight32(w) (__builtin_constant_p(w) ? __const_hweight32(w) : __arch_hweight32(w)) macro
/linux/net/netfilter/
H A Dxt_repldata.h19 unsigned int nhooks = hweight32(hook_mask); \
/linux/drivers/gpu/drm/i915/display/
H A Dskl_scaler.c536 hweight32(scaler_state->scaler_users), in setup_crtc_scaler()
572 hweight32(scaler_state->scaler_users), in setup_plane_scaler()
605 num_scalers_need = hweight32(scaler_state->scaler_users); in intel_atomic_setup_scalers()
1061 int num_scalers = hweight32(scaler_state->scaler_users); in skl_scaler_1st_prefill_lines()
1073 int num_scalers = hweight32(scaler_state->scaler_users); in skl_scaler_2nd_prefill_lines()
/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()
/linux/drivers/iio/gyro/
H A Dadxrs450.c109 if (!(hweight32(tx) & 1)) in adxrs450_spi_read_reg_16()
145 if (!(hweight32(tx) & 1)) in adxrs450_spi_write_reg_16()
/linux/drivers/gpu/drm/i915/gt/
H A Dintel_sseu.c342 REG_FIELD_GET(CHV_FGT_EU_DIS_SS0_R1_MASK, fuse) << hweight32(CHV_FGT_EU_DIS_SS0_R0_MASK); in cherryview_sseu_info_init()
351 REG_FIELD_GET(CHV_FGT_EU_DIS_SS1_R1_MASK, fuse) << hweight32(CHV_FGT_EU_DIS_SS1_R0_MASK); in cherryview_sseu_info_init()
507 REG_FIELD_GET(GEN8_EU_DIS1_S1_MASK, eu_disable1) << hweight32(GEN8_EU_DIS0_S1_MASK); in bdw_sseu_info_init()
510 REG_FIELD_GET(GEN8_EU_DIS2_S2_MASK, eu_disable2) << hweight32(GEN8_EU_DIS1_S2_MASK); in bdw_sseu_info_init()
/linux/drivers/media/pci/solo6x10/
H A Dsolo6x10-core.c229 hweight32(solo_dev->tw2815), in tw28xx_show()
230 hweight32(solo_dev->tw2864), in tw28xx_show()
231 hweight32(solo_dev->tw2865)); in tw28xx_show()
/linux/drivers/soundwire/
H A Dgeneric_bandwidth_allocation.c56 ch = hweight32(p_rt->ch_mask); in sdw_compute_slave_ports()
261 ch = hweight32(p_rt->ch_mask); in sdw_compute_group_params()
511 hweight32(m_p_rt->ch_mask) * in get_manager_lane()
/linux/fs/ocfs2/
H A Dblockcheck.c167 if (hweight32(fix) == 1) in ocfs2_hamming_fix()
190 while (hweight32(b) == 1) in ocfs2_hamming_fix()

12345678910