Home
last modified time | relevance | path

Searched refs:hweight8 (Results 1 – 25 of 125) sorted by relevance

12345

/linux/drivers/gpu/drm/i915/gt/
H A Dintel_sseu.c32 total += hweight8(sseu->subslice_mask.hsw[i]); in intel_sseu_subslice_total()
427 hweight8(eu_disabled_mask); in gen9_sseu_info_init()
462 !IS_GEN9_LP(i915) && hweight8(sseu->slice_mask) > 1; in gen9_sseu_info_init()
469 RUNTIME_INFO(i915)->has_pooled_eu = hweight8(sseu->subslice_mask.hsw[0]) == 3; in gen9_sseu_info_init()
538 n_disabled = hweight8(eu_disabled_mask); in bdw_sseu_info_init()
564 sseu->has_slice_pg = hweight8(sseu->slice_mask) > 1; in bdw_sseu_info_init()
615 intel_sseu_set_info(sseu, hweight8(sseu->slice_mask), in hsw_sseu_info_init()
616 hweight8(subslice_mask), in hsw_sseu_info_init()
679 slices = hweight8(req_sseu->slice_mask); in intel_sseu_make_rpcs()
680 subslices = hweight8(req_sseu->subslice_mask); in intel_sseu_make_rpcs()
[all …]
H A Dintel_sseu_debugfs.c188 sseu->eu_total -= hweight8(subslice_7eu); in bdw_sseu_device_status()
203 hweight8(sseu->slice_mask)); in i915_print_sseu_info()
/linux/lib/
H A Dmemweight.c19 ret += hweight8(*bitmap); in memweight()
35 ret += hweight8(*bitmap); in memweight()
/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
H A Dstf.c167 if (hweight8(core_mask) > wlc->stf->txstreams) in brcms_c_stf_txcore_set()
170 if ((hweight8(core_mask) == wlc->stf->txstreams) && in brcms_c_stf_txcore_set()
281 txstreams = (u8) hweight8(txchain); in brcms_c_stf_txchain_set()
387 wlc->stf->txstreams = (u8) hweight8(wlc->stf->hw_txchain); in brcms_c_stf_phy_chain_calc()
397 wlc->stf->rxstreams = (u8) hweight8(wlc->stf->hw_rxchain); in brcms_c_stf_phy_chain_calc()
/linux/drivers/net/wireless/intel/iwlwifi/
H A Diwl-nvm-utils.c48 tx_chains = hweight8(tx_chains); in iwl_init_ht_hw_capab()
52 rx_chains = hweight8(rx_chains); in iwl_init_ht_hw_capab()
/linux/drivers/gpu/drm/i915/display/
H A Dintel_pmdemand.c337 min_t(u8, hweight8(new_dbuf_state->enabled_slices), 3); in intel_pmdemand_atomic_check()
339 min_t(u8, hweight8(new_dbuf_state->active_pipes), 3); in intel_pmdemand_atomic_check()
342 min_t(u8, hweight8(new_dbuf_state->active_pipes), INTEL_NUM_PIPES(i915)); in intel_pmdemand_atomic_check()
458 u32 dbufs = min_t(u32, hweight8(dbuf_slices), 3); in intel_pmdemand_program_dbuf()
H A Dintel_sprite.c192 if (hweight8(active_planes) == 3) { in vlv_plane_ratio()
207 } else if (hweight8(active_planes) == 2) { in vlv_plane_ratio()
499 if (hweight8(active_planes) == 2) { in ivb_plane_ratio()
613 if (hweight8(active_planes) == 2) { in hsw_plane_ratio()
/linux/include/asm-generic/bitops/
H A Dconst_hweight.h26 #define hweight8(w) (__builtin_constant_p(w) ? __const_hweight8(w) : __arch_hweight8(w)) macro
/linux/tools/include/asm-generic/bitops/
H A Dconst_hweight.h26 #define hweight8(w) (__builtin_constant_p(w) ? __const_hweight8(w) : __arch_hweight8(w)) macro
/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A Drpm.c120 return hweight8(rpm_read(rpm, 0, CGXX_CMRX_RX_LMACS) & 0xFULL); in rpm_get_nr_lmacs()
127 return hweight8(rpm_read(rpm, 0, RPM2_CMRX_RX_LMACS) & 0xFFULL); in rpm2_get_nr_lmacs()
545 num_lmacs = hweight8(lmac_info & 0xF); in rpm2_get_lmac_fifo_len()
548 num_lmacs = hweight8(lmac_info & 0xF0); in rpm2_get_lmac_fifo_len()
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/
H A Dgt215.c125 if (part >= hweight8((init->r001540 >> 16) & 0xff)) in gt215_devinit_mmio()
/linux/drivers/input/serio/
H A Dps2-gpio.c222 if (!((hweight8(byte) & 1) ^ data)) { in ps2_gpio_irq_rx()
322 data = !(hweight8(byte) & 1); in ps2_gpio_irq_tx()
H A Dpcips2.c77 if (hweight8(scancode) & 1) in pcips2_interrupt()
/linux/drivers/net/wireless/mediatek/mt76/
H A Dtestmode.c183 u8 max_nss = hweight8(phy->antenna_mask); in mt76_testmode_tx_init()
194 max_nss = min_t(u8, max_nss, hweight8(td->tx_antenna_mask)); in mt76_testmode_tx_init()
446 1, hweight8(phy->antenna_mask)) || in mt76_testmode_cmd()
/linux/drivers/mtd/nand/raw/
H A Dnand_micron.c256 nbitflips += hweight8(corrbuf[i] ^ rawbuf[i]); in micron_nand_on_die_ecc_status_4()
263 nbitflips += hweight8(corrbuf[i] ^ rawbuf[i]); in micron_nand_on_die_ecc_status_4()
/linux/drivers/net/wireless/realtek/rtw88/
H A Dbf.c188 u8 nc_index = hweight8(rtwdev->hal.antenna_rx) - 1; in rtw_bf_enable_bfee_su()
237 u8 nc_index = hweight8(rtwdev->hal.antenna_rx) - 1; in rtw_bf_enable_bfee_mu()
/linux/arch/arm/mm/
H A Dabort-lv4t.S205 and r6, r8, #0x55 @ hweight8(r8) + R bit
224 and r6, r8, #0x55 @ hweight8(r8)
/linux/drivers/regulator/
H A Drt6245-regulator.c154 bit_count = hweight8(code & RT6245_CODE_MASK); in rt6245_reg_write()
/linux/sound/soc/fsl/
H A Dfsl_sai.c570 if (hweight8(dl_cfg[dl_cfg_idx].mask[tx]) < pins) { in fsl_sai_hw_params()
647 if (hweight8(dl_cfg[dl_cfg_idx].mask[tx]) <= 1 || sai->is_multi_fifo_dma) in fsl_sai_hw_params()
681 if (hweight8(dl_cfg[dl_cfg_idx].mask[tx] & trce_mask) == pins) in fsl_sai_hw_params()
1357 cfg[i].pins[0] = hweight8(rx); in fsl_sai_read_dlcfg()
1363 cfg[i].pins[1] = hweight8(tx); in fsl_sai_read_dlcfg()
/linux/drivers/net/wireless/mediatek/mt76/mt7996/
H A Dmt7996.h553 int max_nss = hweight8(phy->mt76->hw->wiphy->available_antennas_tx); in mt7996_rx_chainmask()
554 int cur_nss = hweight8(phy->mt76->antenna_mask); in mt7996_rx_chainmask()
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/
H A Dnv40.c168 vs = hweight8((nvkm_rd32(device, 0x001540) & 0x0000ff00) >> 8); in nv40_instmem_oneinit()
/linux/drivers/gpu/drm/renesas/rz-du/
H A Drzg2l_du_kms.c320 rcdu->num_crtcs = hweight8(rcdu->info->channels_mask); in rzg2l_du_modeset_init()
/linux/drivers/net/wireless/mediatek/mt76/mt7615/
H A Dinit.c275 int i, n_chains = hweight8(dev->mphy.antenna_mask), target_chains; in mt7615_init_txpower()
552 mphy->antenna_mask = BIT(hweight8(mphy->chainmask)) - 1; in mt7615_register_ext_phy()
/linux/drivers/input/joystick/
H A Danalog.c343 hweight8(analog->mask & ANALOG_AXES_STD), in analog_name()
344 hweight8(analog->mask & ANALOG_BTNS_STD) + !!(analog->mask & ANALOG_BTNS_CHF) * 2 + in analog_name()
/linux/drivers/gpu/drm/renesas/rcar-du/
H A Drcar_du_kms.c881 rcdu->num_crtcs = hweight8(rcdu->info->channels_mask); in rcar_du_modeset_init()
909 rgrp->num_crtcs = hweight8(rgrp->channels_mask); in rcar_du_modeset_init()

12345