Home
last modified time | relevance | path

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

123

/linux/sound/soc/intel/avs/
A Dutils.h16 return hweight_long(mach->mach_params.i2s_link_mask) == 1; in avs_mach_singular_ssp()
28 return !tdms || (hweight_long(tdms[port]) == 1); in avs_mach_singular_tdm()
/linux/tools/lib/
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()
/linux/drivers/gpu/drm/msm/disp/mdp5/
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()
/linux/sound/soc/intel/catpt/
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))
/linux/drivers/crypto/intel/qat/qat_common/
A Dadf_fw_counters.c60 if (hweight_long(ae_mask) > fw_counters->ae_count) in adf_fw_counters_load_from_device()
120 ae_count = hweight_long(hw_data->ae_mask & ~hw_data->admin_ae_mask); in adf_fw_counters_get()
A Dadf_cnv_dbgfs.c192 ae_count = hweight_long(ae_mask); in cnv_err_stats_alloc()
/linux/drivers/hwspinlock/
A Domap_hwspinlock.c109 if (hweight_long(i & 0xf) != 1 || i > 8) in omap_hwspinlock_probe()
/linux/fs/exfat/
A Dballoc.c237 count += hweight_long(*bitmap); in exfat_count_used_clusters()
248 count += hweight_long(clu_bits & BITMAP_LAST_WORD_MASK(last_mask)); in exfat_count_used_clusters()
/linux/include/linux/
A Dbitmap.h445 return hweight_long(*src & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_weight()
454 return hweight_long(*src1 & *src2 & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_weight_and()
463 return hweight_long(*src1 & ~(*src2) & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_weight_andnot()
A Dbitops.h95 static __always_inline unsigned long hweight_long(unsigned long w) in hweight_long() function
/linux/tools/include/linux/
A Dbitops.h70 static inline unsigned long hweight_long(unsigned long w) in hweight_long() function
A Dbitmap.h69 return hweight_long(*src & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_weight()
/linux/drivers/media/platform/qcom/venus/
A Dhfi_parser.c22 if (hweight_long(core->dec_codecs) + hweight_long(core->enc_codecs) > MAX_CODEC_NUM) in init_codecs()
/linux/tools/perf/tests/
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()
/linux/drivers/block/drbd/
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()
/linux/sound/soc/intel/boards/
A Dskl_hda_dsp_generic.c79 if (hweight_long(mach_params->bt_link_mask) == 1) { in skl_hda_get_board_quirk()
/linux/drivers/bus/
A Dbrcmstb_gisb.c246 if (hweight_long(mask) != 1) in brcmstb_gisb_master_to_str()
478 if (hweight_long(gdev->valid_mask) == num_masters) { in brcmstb_gisb_arb_probe()
/linux/lib/
A Dfind_bit.c80 w = hweight_long(tmp); \
A Dbitmap.c330 w += hweight_long(FETCH); \
333 w += hweight_long((FETCH) & BITMAP_LAST_WORD_MASK(__bits)); \
/linux/arch/sh/kernel/
A Dio_trapped.c62 if (hweight_long(flags) != 1) in register_trapped_io()
/linux/sound/soc/codecs/
A Drtq9128.c485 if (!rx_mask || hweight_long(tx_mask) > slots || hweight_long(rx_mask) > slots || in rtq9128_dai_set_tdm_slot()
A Drt1015.c945 rx_slotnum = hweight_long(rx_mask); in rt1015_set_tdm_slot()
986 tx_slotnum = hweight_long(tx_mask); in rt1015_set_tdm_slot()
/linux/drivers/pinctrl/
A Dpinctrl-mcp23s08_spi.c165 chips = hweight_long(spi_present_mask); in mcp23s08_probe()
/linux/sound/soc/bcm/
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()
/linux/drivers/irqchip/
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()

Completed in 67 milliseconds

123