Home
last modified time | relevance | path

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

123

/linux-6.1.9/tools/lib/
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-6.1.9/drivers/gpu/drm/msm/disp/mdp5/
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-6.1.9/sound/soc/intel/catpt/
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-6.1.9/tools/include/linux/
Dbitops.h68 static inline unsigned long hweight_long(unsigned long w) in hweight_long() function
Dbitmap.h67 return hweight_long(*src & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_weight()
/linux-6.1.9/drivers/hwspinlock/
Domap_hwspinlock.c114 if (hweight_long(i & 0xf) != 1 || i > 8) { in omap_hwspinlock_probe()
/linux-6.1.9/tools/perf/tests/
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-6.1.9/drivers/block/drbd/
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()
1479 bits = hweight_long(paddr[i]); in bm_set_full_words_within_one_page()
/linux-6.1.9/drivers/bus/
Dbrcmstb_gisb.c232 if (hweight_long(mask) != 1) in brcmstb_gisb_master_to_str()
464 if (hweight_long(gdev->valid_mask) == num_masters) { in brcmstb_gisb_arb_probe()
/linux-6.1.9/include/linux/
Dbitmap.h440 return hweight_long(*src & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_weight()
449 return hweight_long(*src1 & *src2 & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_weight_and()
Dbitops.h94 static __always_inline unsigned long hweight_long(unsigned long w) in hweight_long() function
/linux-6.1.9/sound/soc/intel/boards/
Dskl_hda_dsp_generic.c130 codec_count = hweight_long(codec_mask); in skl_hda_fill_card_info()
/linux-6.1.9/lib/
Dfind_bit.c80 w = hweight_long(tmp); \
Dbitmap.c341 w += hweight_long(FETCH); \
344 w += hweight_long((FETCH) & BITMAP_LAST_WORD_MASK(__bits)); \
/linux-6.1.9/drivers/pinctrl/
Dpinctrl-mcp23s08_spi.c168 chips = hweight_long(spi_present_mask); in mcp23s08_probe()
/linux-6.1.9/arch/sh/kernel/
Dio_trapped.c62 if (hweight_long(flags) != 1) in register_trapped_io()
/linux-6.1.9/sound/soc/bcm/
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-6.1.9/drivers/irqchip/
Dirq-mips-gic.c753 cpu_vec = find_first_zero_bit(&reserved, hweight_long(ST0_IM)); in gic_of_init()
754 if (cpu_vec == hweight_long(ST0_IM)) { in gic_of_init()
/linux-6.1.9/sound/soc/codecs/
Drt1015.c933 rx_slotnum = hweight_long(rx_mask); in rt1015_set_tdm_slot()
974 tx_slotnum = hweight_long(tx_mask); in rt1015_set_tdm_slot()
Drt1019.c433 rx_slotnum = hweight_long(rx_mask); in rt1019_set_tdm_slot()
/linux-6.1.9/sound/soc/intel/avs/
Dtopology.c384 if (hweight_long(mach->mach_params.i2s_link_mask) != 1) in parse_link_formatted_string()
831 if (hweight_long(mach->mach_params.i2s_link_mask) == 1 && !cfg->copier.vindex.i2s.instance) in assign_copier_gtw_instance()
1380 if (hweight_long(mach->mach_params.i2s_link_mask) == 1) { in avs_route_load()
1412 if (hweight_long(mach->mach_params.i2s_link_mask) == 1) { in avs_widget_load()
/linux-6.1.9/drivers/ps3/
Dps3stor_lib.c113 n = hweight_long(dev->accessible_regions); in ps3stor_probe_access()
/linux-6.1.9/sound/hda/
Dintel-nhlt.c232 if (hweight_long(mclk_mask) != 1) in intel_nhlt_ssp_mclk_mask()
/linux-6.1.9/arch/arm/mm/
Dpmsa-v7.c299 total_mem_size += mem[i].size - subreg * hweight_long(mem[i].subreg); in pmsav7_adjust_lowmem_bounds()
/linux-6.1.9/arch/x86/events/amd/
Dcore.c1094 if (hweight_long(hwc->config & ARCH_PERFMON_EVENTSEL_UMASK) <= 1) in amd_get_event_constraints_f15h()
1119 if (hweight_long(hwc->config & ARCH_PERFMON_EVENTSEL_UMASK) <= 1) in amd_get_event_constraints_f15h()

123