/linux/drivers/gpu/drm/i915/gt/ |
H A D | intel_sseu.c | 32 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 D | intel_sseu_debugfs.c | 188 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 D | memweight.c | 19 ret += hweight8(*bitmap); in memweight() 35 ret += hweight8(*bitmap); in memweight()
|
/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
H A D | stf.c | 167 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 D | iwl-nvm-utils.c | 48 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 D | intel_pmdemand.c | 337 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 D | intel_sprite.c | 192 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 D | const_hweight.h | 26 #define hweight8(w) (__builtin_constant_p(w) ? __const_hweight8(w) : __arch_hweight8(w)) macro
|
/linux/tools/include/asm-generic/bitops/ |
H A D | const_hweight.h | 26 #define hweight8(w) (__builtin_constant_p(w) ? __const_hweight8(w) : __arch_hweight8(w)) macro
|
/linux/drivers/net/ethernet/marvell/octeontx2/af/ |
H A D | rpm.c | 120 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 D | gt215.c | 125 if (part >= hweight8((init->r001540 >> 16) & 0xff)) in gt215_devinit_mmio()
|
/linux/drivers/input/serio/ |
H A D | ps2-gpio.c | 222 if (!((hweight8(byte) & 1) ^ data)) { in ps2_gpio_irq_rx() 322 data = !(hweight8(byte) & 1); in ps2_gpio_irq_tx()
|
H A D | pcips2.c | 77 if (hweight8(scancode) & 1) in pcips2_interrupt()
|
/linux/drivers/net/wireless/mediatek/mt76/ |
H A D | testmode.c | 183 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 D | nand_micron.c | 256 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 D | bf.c | 188 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 D | abort-lv4t.S | 205 and r6, r8, #0x55 @ hweight8(r8) + R bit 224 and r6, r8, #0x55 @ hweight8(r8)
|
/linux/drivers/regulator/ |
H A D | rt6245-regulator.c | 154 bit_count = hweight8(code & RT6245_CODE_MASK); in rt6245_reg_write()
|
/linux/sound/soc/fsl/ |
H A D | fsl_sai.c | 570 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 D | mt7996.h | 553 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 D | nv40.c | 168 vs = hweight8((nvkm_rd32(device, 0x001540) & 0x0000ff00) >> 8); in nv40_instmem_oneinit()
|
/linux/drivers/gpu/drm/renesas/rz-du/ |
H A D | rzg2l_du_kms.c | 320 rcdu->num_crtcs = hweight8(rcdu->info->channels_mask); in rzg2l_du_modeset_init()
|
/linux/drivers/net/wireless/mediatek/mt76/mt7615/ |
H A D | init.c | 275 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 D | analog.c | 343 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 D | rcar_du_kms.c | 881 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()
|