Home
last modified time | relevance | path

Searched refs:hweight_long (Results 1 – 25 of 65) sorted by relevance

123

/openbmc/linux/tools/lib/
H A Dbitmap.c13 w += hweight_long(bitmap[k]); in __bitmap_weight()
16 w += hweight_long(bitmap[k] & BITMAP_LAST_WORD_MASK(bits)); in __bitmap_weight()
/openbmc/linux/drivers/gpu/drm/msm/disp/mdp5/
H A Dmdp5_pipe.c59 if (!(*hwpipe) || (hweight_long(cur->caps & ~caps) < in mdp5_pipe_assign()
60 hweight_long((*hwpipe)->caps & ~caps))) { in mdp5_pipe_assign()
/openbmc/linux/sound/soc/intel/catpt/
H A Dregisters.h133 #define catpt_num_dram(cdev) (hweight_long((cdev)->spec->dram_mask))
134 #define catpt_num_iram(cdev) (hweight_long((cdev)->spec->iram_mask))
/openbmc/linux/drivers/crypto/intel/qat/qat_common/
H A Dadf_fw_counters.c59 if (hweight_long(ae_mask) > fw_counters->ae_count) in adf_fw_counters_load_from_device()
119 ae_count = hweight_long(hw_data->ae_mask & ~hw_data->admin_ae_mask); in adf_fw_counters_get()
/openbmc/linux/tools/include/linux/
H A Dbitops.h68 static inline unsigned long hweight_long(unsigned long w) in hweight_long() function
H A Dbitmap.h69 return hweight_long(*src & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_weight()
/openbmc/linux/drivers/hwspinlock/
H A Domap_hwspinlock.c114 if (hweight_long(i & 0xf) != 1 || i > 8) { in omap_hwspinlock_probe()
/openbmc/linux/drivers/media/platform/qcom/venus/
H A Dhfi_parser.c22 if (hweight_long(core->dec_codecs) + hweight_long(core->enc_codecs) > MAX_CODEC_NUM) in init_codecs()
/openbmc/linux/tools/perf/tests/
H A Dsample-parsing.c129 size_t sz = hweight_long(s1->user_regs.mask) * sizeof(u64); in samples_same()
160 size_t sz = hweight_long(s1->intr_regs.mask) * sizeof(u64); in samples_same()
/openbmc/linux/drivers/block/drbd/
H A Ddrbd_bitmap.c504 cleared = hweight_long(*bm & ~mask); in bm_clear_surplus()
512 cleared += hweight_long(*bm); in bm_clear_surplus()
573 bits += hweight_long(p_addr[last_word]); in bm_count_bits()
836 bits = hweight_long(*bm); in drbd_bm_merge_lel()
839 b->bm_set += hweight_long(word) - bits; in drbd_bm_merge_lel()
1482 bits = hweight_long(paddr[i]); in bm_set_full_words_within_one_page()
/openbmc/linux/drivers/bus/
H A Dbrcmstb_gisb.c232 if (hweight_long(mask) != 1) in brcmstb_gisb_master_to_str()
462 if (hweight_long(gdev->valid_mask) == num_masters) { in brcmstb_gisb_arb_probe()
/openbmc/linux/sound/soc/intel/boards/
H A Dskl_hda_dsp_generic.c127 codec_count = hweight_long(codec_mask); in skl_hda_fill_card_info()
/openbmc/linux/include/linux/
H A Dbitmap.h456 return hweight_long(*src & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_weight()
465 return hweight_long(*src1 & *src2 & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_weight_and()
H A Dbitops.h95 static __always_inline unsigned long hweight_long(unsigned long w) in hweight_long() function
/openbmc/linux/lib/
H A Dfind_bit.c80 w = hweight_long(tmp); \
/openbmc/linux/arch/sh/kernel/
H A Dio_trapped.c62 if (hweight_long(flags) != 1) in register_trapped_io()
/openbmc/linux/drivers/pinctrl/
H A Dpinctrl-mcp23s08_spi.c178 chips = hweight_long(spi_present_mask); in mcp23s08_probe()
/openbmc/linux/sound/soc/bcm/
H A Dbcm2835-i2s.c267 if (hweight_long((unsigned long) rx_mask) != 2 in bcm2835_i2s_set_dai_tdm_slot()
268 || hweight_long((unsigned long) tx_mask) != 2) in bcm2835_i2s_set_dai_tdm_slot()
/openbmc/linux/drivers/irqchip/
H A Dirq-mips-gic.c751 cpu_vec = find_first_zero_bit(&reserved, hweight_long(ST0_IM)); in gic_of_init()
752 if (cpu_vec == hweight_long(ST0_IM)) { in gic_of_init()
/openbmc/linux/sound/soc/codecs/
H A Drt1015.c932 rx_slotnum = hweight_long(rx_mask); in rt1015_set_tdm_slot()
973 tx_slotnum = hweight_long(tx_mask); in rt1015_set_tdm_slot()
/openbmc/linux/drivers/ps3/
H A Dps3stor_lib.c113 n = hweight_long(dev->accessible_regions); in ps3stor_probe_access()
/openbmc/linux/arch/arm/mm/
H A Dpmsa-v7.c299 total_mem_size += mem[i].size - subreg * hweight_long(mem[i].subreg); in pmsav7_adjust_lowmem_bounds()
/openbmc/linux/sound/hda/
H A Dintel-nhlt.c232 if (hweight_long(mclk_mask) != 1) in intel_nhlt_ssp_mclk_mask()
/openbmc/linux/arch/x86/kernel/
H A Dshstk.c562 if (hweight_long(features) > 1) in shstk_prctl()
/openbmc/linux/sound/soc/intel/avs/
H A Dtopology.c385 if (hweight_long(mach->mach_params.i2s_link_mask) != 1) in parse_link_formatted_string()
832 if (hweight_long(mach->mach_params.i2s_link_mask) == 1 && !cfg->copier.vindex.i2s.instance) in assign_copier_gtw_instance()
1387 if (hweight_long(mach->mach_params.i2s_link_mask) == 1) { in avs_route_load()
1426 if (hweight_long(mach->mach_params.i2s_link_mask) == 1) { in avs_widget_load()

123