Home
last modified time | relevance | path

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

/linux-4.4.14/lib/
Dmemweight.c18 ret += hweight8(*bitmap); in memweight()
34 ret += hweight8(*bitmap); in memweight()
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmsmac/
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()
390 wlc->stf->txstreams = (u8) hweight8(wlc->stf->hw_txchain); in brcms_c_stf_phy_chain_calc()
400 wlc->stf->rxstreams = (u8) hweight8(wlc->stf->hw_rxchain); in brcms_c_stf_phy_chain_calc()
/linux-4.4.14/include/asm-generic/bitops/
Dconst_hweight.h25 #define hweight8(w) (__builtin_constant_p(w) ? __const_hweight8(w) : __arch_hweight8(w)) macro
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/
Dgt215.c128 if (part >= hweight8((init->r001540 >> 16) & 0xff)) in gt215_devinit_mmio()
/linux-4.4.14/arch/mips/kernel/
Dproc.c133 hweight8(cpu_data[n].kscratch_mask)); in show_cpuinfo()
/linux-4.4.14/drivers/net/wireless/iwlwifi/mvm/
Dphy-ctxt.c294 return hweight8(phy_ctxt_counter); in iwl_mvm_phy_ctx_count()
Dd3.c1795 n_channels += hweight8(fw_match->matching_channels[j]); in iwl_mvm_query_netdetect_reasons()
/linux-4.4.14/drivers/input/serio/
Dpcips2.c80 if (hweight8(scancode) & 1) in pcips2_interrupt()
Dsa1111ps2.c77 if (hweight8(scancode) & 1) in ps2_rxint()
/linux-4.4.14/arch/arm/mm/
Dabort-lv4t.S193 and r6, r8, #0x55 @ hweight8(r8) + R bit
210 and r6, r8, #0x55 @ hweight8(r8)
/linux-4.4.14/drivers/net/hamradio/
Dbaycom_ser_fdx.c210 static inline unsigned int hweight8(unsigned int w)
221 static inline unsigned int hweight8(unsigned int w)
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/
Dnv40.c163 vs = hweight8((nvkm_rd32(device, 0x001540) & 0x0000ff00) >> 8); in nv40_instmem_oneinit()
/linux-4.4.14/drivers/mtd/tests/
Doobtest.c142 bitflips += hweight8(res); in memcmpshowoffset()
170 bitflips += hweight8(res); in memffshow()
/linux-4.4.14/drivers/gpu/host1x/hw/
Ddebug_hw.c53 return hweight8(mask); in show_channel_command()
/linux-4.4.14/drivers/hwmon/
Dmax6697.c550 factor += hweight8(reg); in max6697_init_chip()
599 factor += hweight8(pdata->resistance_cancellation >> 1); in max6697_init_chip()
/linux-4.4.14/drivers/input/keyboard/
Dcros_ec_keyb.c90 if (hweight8(buf1 & buf2) > 1) { in cros_ec_keyb_has_ghosting()
Dnomadik-ske-keypad.c149 num_of_rows = hweight8(status); in ske_keypad_report()
/linux-4.4.14/drivers/net/wireless/iwlwifi/
Diwl-eeprom-parse.c742 tx_chains = hweight8(tx_chains); in iwl_init_ht_hw_capab()
746 rx_chains = hweight8(rx_chains); in iwl_init_ht_hw_capab()
/linux-4.4.14/arch/mips/mm/
Dcerr-sb1.c569 bits = hweight8(ecc); in extract_dc()
/linux-4.4.14/drivers/input/joystick/
Danalog.c439 hweight8(analog->mask & ANALOG_AXES_STD), in analog_name()
440 hweight8(analog->mask & ANALOG_BTNS_STD) + !!(analog->mask & ANALOG_BTNS_CHF) * 2 + in analog_name()
/linux-4.4.14/drivers/staging/rtl8723au/core/
Drtw_efuse.c105 return hweight8((~word_en) & 0xf); in Efuse_CalculateWordCnts23a()
/linux-4.4.14/drivers/gpu/drm/i915/
Di915_dma.c636 eu_per_ss = eu_max - hweight8((eu_disable >> (ss*8)) & in gen9_sseu_info_init()
721 n_disabled = hweight8(eu_disable[s] >> (ss * eu_max)); in broadwell_sseu_info_init()
Dintel_ringbuffer.c1005 if (hweight8(dev_priv->info.subslice_7eu[i]) != 1) in skl_tune_iz_hashing()
Di915_debugfs.c5075 stat->eu_total -= hweight8(subslice_7eu); in broadwell_sseu_device_status()
/linux-4.4.14/drivers/clocksource/
Dsh_tmu.c547 tmu->num_channels = hweight8(cfg->channels_mask); in sh_tmu_setup()
Dsh_cmt.c1005 cmt->num_channels = hweight8(cmt->hw_channels); in sh_cmt_setup()
/linux-4.4.14/drivers/edac/
Damd64_edac.c1438 return (sys_addr >> (12 + hweight8(intlv_en))) & 1; in f1x_determine_channel()
1650 chan_addr = ((chan_addr >> (12 + hweight8(intlv_en))) << 12) | in f1x_match_to_this_node()
1729 num_dcts_intlv = (int) hweight8(intlv_en); in f15_m30h_match_to_this_node()
/linux-4.4.14/drivers/net/can/mscan/
Dmscan.c212 switch (hweight8(i)) { in mscan_start_xmit()
/linux-4.4.14/net/netfilter/
Dxt_recent.c352 if (hweight8(info->check_set & in recent_mt_check()
/linux-4.4.14/drivers/tty/serial/
Dmax3100.c158 parity = parity ^ (hweight8(c) & 1); in max3100_do_parity()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
Dramnv50.c671 ram->parts = hweight8(ram->part_mask); in nv50_ram_ctor()
/linux-4.4.14/drivers/mtd/nand/
Domap2.c1300 flip_bits += hweight8(~data[i]); in erased_sector_bitflips()
1306 flip_bits += hweight8(~oob[i]); in erased_sector_bitflips()
Dfsmc_nand.c540 written_bits += hweight8(~buff[k]); in count_written_bits()
Dnand_base.c358 res = hweight8(bad) < chip->badblockbits; in nand_block_bad()
1137 weight = hweight8(*bitmap); in nand_check_erased_buf()
1152 weight = hweight8(*bitmap); in nand_check_erased_buf()
/linux-4.4.14/drivers/net/wireless/ath/carl9170/
Dmain.c1925 rx_streams = hweight8(ar->eeprom.rx_mask); in carl9170_parse_eeprom()
1926 tx_streams = hweight8(ar->eeprom.tx_mask); in carl9170_parse_eeprom()
/linux-4.4.14/drivers/scsi/aic94xx/
Daic94xx_seq.c465 u8 val = hweight8(con); in asd_init_cseq_mip()
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmsmac/phy/
Dphy_cmn.c2813 pi->pubpi.phy_corenum = (u8)hweight8(pi->sh->phyrxchain); in wlc_phy_stf_chain_init()
2825 pi->pubpi.phy_corenum = (u8)hweight8(pi->sh->phyrxchain); in wlc_phy_stf_chain_set()
/linux-4.4.14/net/mac80211/
Drx.c151 len += 4 * hweight8(status->chains); in ieee80211_rx_radiotap_hdrlen()
182 len += 2 * hweight8(status->chains); in ieee80211_rx_radiotap_hdrlen()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/gr/
Dgf100.c1535 gr->ppc_tpc_nr[i][j] = hweight8(mask); in gf100_gr_oneinit()
/linux-4.4.14/drivers/net/wireless/ath/ath10k/
Dmac.c5989 num_rates += hweight8(mask->control[band].ht_mcs[i]); in ath10k_mac_bitrate_mask_has_single_rate()
6079 if (hweight8(mask->control[band].ht_mcs[i]) == 1) { in ath10k_mac_bitrate_mask_get_single_rate()
/linux-4.4.14/drivers/net/ethernet/broadcom/
Dtg3.c12944 u8 hw8 = hweight8(data[i]); in tg3_test_nvram()