Home
last modified time | relevance | path

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

12

/Linux-v4.19/tools/lib/
Dbitmap.c15 w += hweight_long(bitmap[k]); in __bitmap_weight()
18 w += hweight_long(bitmap[k] & BITMAP_LAST_WORD_MASK(bits)); in __bitmap_weight()
/Linux-v4.19/drivers/gpu/drm/msm/disp/mdp5/
Dmdp5_pipe.c70 if (!(*hwpipe) || (hweight_long(cur->caps & ~caps) < in mdp5_pipe_assign()
71 hweight_long((*hwpipe)->caps & ~caps))) { in mdp5_pipe_assign()
/Linux-v4.19/tools/include/linux/
Dbitops.h53 static inline unsigned long hweight_long(unsigned long w) in hweight_long() function
Dbitmap.h69 return hweight_long(*src & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_weight()
/Linux-v4.19/tools/perf/tests/
Dsample-parsing.c102 size_t sz = hweight_long(s1->user_regs.mask) * sizeof(u64); in samples_same()
133 size_t sz = hweight_long(s1->intr_regs.mask) * sizeof(u64); in samples_same()
/Linux-v4.19/drivers/bus/
Dbrcmstb_gisb.c192 if (hweight_long(mask) != 1) in brcmstb_gisb_master_to_str()
379 if (hweight_long(gdev->valid_mask) == num_masters) { in brcmstb_gisb_arb_probe()
/Linux-v4.19/drivers/block/drbd/
Ddrbd_bitmap.c518 cleared = hweight_long(*bm & ~mask); in bm_clear_surplus()
526 cleared += hweight_long(*bm); in bm_clear_surplus()
587 bits += hweight_long(p_addr[last_word]); in bm_count_bits()
850 bits = hweight_long(*bm); in drbd_bm_merge_lel()
853 b->bm_set += hweight_long(word) - bits; in drbd_bm_merge_lel()
1459 bits = hweight_long(paddr[i]); in bm_set_full_words_within_one_page()
/Linux-v4.19/drivers/hwspinlock/
Domap_hwspinlock.c120 if (hweight_long(i & 0xf) != 1 || i > 8) { in omap_hwspinlock_probe()
/Linux-v4.19/arch/x86/events/amd/
Dcore.c558 if (hweight_long(hwc->config & ARCH_PERFMON_EVENTSEL_UMASK) <= 1) in amd_get_event_constraints_f15h()
583 if (hweight_long(hwc->config & ARCH_PERFMON_EVENTSEL_UMASK) <= 1) in amd_get_event_constraints_f15h()
/Linux-v4.19/drivers/firmware/
Dqcom_scm.c463 src_sz = hweight_long(*srcvm) * sizeof(*src); in qcom_scm_assign_mem()
475 len = hweight_long(*srcvm); in qcom_scm_assign_mem()
/Linux-v4.19/include/linux/
Dbitops.h51 static __always_inline unsigned long hweight_long(unsigned long w) in hweight_long() function
Dbitmap.h368 return hweight_long(*src & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_weight()
/Linux-v4.19/arch/sh/kernel/
Dio_trapped.c65 if (hweight_long(flags) != 1) in register_trapped_io()
/Linux-v4.19/lib/
Dbitmap.c245 w += hweight_long(bitmap[k]); in __bitmap_weight()
248 w += hweight_long(bitmap[k] & BITMAP_LAST_WORD_MASK(bits)); in __bitmap_weight()
/Linux-v4.19/sound/soc/bcm/
Dbcm2835-i2s.c275 if (hweight_long((unsigned long) rx_mask) != 2 in bcm2835_i2s_set_dai_tdm_slot()
276 || hweight_long((unsigned long) tx_mask) != 2) in bcm2835_i2s_set_dai_tdm_slot()
/Linux-v4.19/drivers/irqchip/
Dirq-mips-gic.c687 cpu_vec = find_first_zero_bit(&reserved, hweight_long(ST0_IM)); in gic_of_init()
688 if (cpu_vec == hweight_long(ST0_IM)) { in gic_of_init()
/Linux-v4.19/arch/arm/mm/
Dpmsa-v7.c298 total_mem_size += mem[i].size - subreg * hweight_long(mem[i].subreg); in pmsav7_adjust_lowmem_bounds()
/Linux-v4.19/drivers/ps3/
Dps3stor_lib.c125 n = hweight_long(dev->accessible_regions); in ps3stor_probe_access()
/Linux-v4.19/tools/perf/util/
Devsel.c2294 sz = hweight_long(mask) * sizeof(u64); in perf_evsel__parse_sample()
2350 sz = hweight_long(mask) * sizeof(u64); in perf_evsel__parse_sample()
2478 sz = hweight_long(sample->user_regs.mask) * sizeof(u64); in perf_event__sample_event_size()
2506 sz = hweight_long(sample->intr_regs.mask) * sizeof(u64); in perf_event__sample_event_size()
2636 sz = hweight_long(sample->user_regs.mask) * sizeof(u64); in perf_event__synthesize_sample()
2672 sz = hweight_long(sample->intr_regs.mask) * sizeof(u64); in perf_event__synthesize_sample()
/Linux-v4.19/drivers/gpio/
Dgpio-winbond.c670 winbond_gpio_chip.ngpio = hweight_long(params.gpios) * 8; in winbond_gpio_iprobe()
/Linux-v4.19/drivers/pwm/
Dpwm-sti.c178 ncfg = hweight_long(pc->configured); in sti_pwm_config()
/Linux-v4.19/drivers/mmc/host/
Dmeson-gx-mmc.c216 unsigned int phase_num = 1 << hweight_long(mmc->phase_mask); in meson_mmc_clk_get_phase()
257 unsigned int phase_num = 1 << hweight_long(mmc->phase_mask); in meson_mmc_clk_set_phase()
/Linux-v4.19/drivers/mtd/maps/
Dvmu-flash.c610 c = hweight_long(test_flash_data); in vmu_connect()
/Linux-v4.19/sound/hda/
Dhdmi_chmap.c685 max_chs = hweight_long(spk_mask); in hdmi_chmap_ctl_tlv()
/Linux-v4.19/drivers/infiniband/core/
Dcache.c861 num_default_gids = hweight_long(roce_gid_type_mask); in gid_table_reserve_default()

12