Home
last modified time | relevance | path

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

12

/Linux-v5.10/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-v5.10/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-v5.10/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-v5.10/tools/include/linux/
Dbitops.h52 static inline unsigned long hweight_long(unsigned long w) in hweight_long() function
Dbitmap.h72 return hweight_long(*src & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_weight()
/Linux-v5.10/tools/perf/tests/
Dsample-parsing.c108 size_t sz = hweight_long(s1->user_regs.mask) * sizeof(u64); in samples_same()
139 size_t sz = hweight_long(s1->intr_regs.mask) * sizeof(u64); in samples_same()
/Linux-v5.10/drivers/hwspinlock/
Domap_hwspinlock.c115 if (hweight_long(i & 0xf) != 1 || i > 8) { in omap_hwspinlock_probe()
/Linux-v5.10/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()
1445 bits = hweight_long(paddr[i]); in bm_set_full_words_within_one_page()
/Linux-v5.10/drivers/bus/
Dbrcmstb_gisb.c231 if (hweight_long(mask) != 1) in brcmstb_gisb_master_to_str()
463 if (hweight_long(gdev->valid_mask) == num_masters) { in brcmstb_gisb_arb_probe()
/Linux-v5.10/sound/soc/intel/boards/
Dskl_hda_dsp_generic.c130 codec_count = hweight_long(codec_mask); in skl_hda_fill_card_info()
/Linux-v5.10/include/linux/
Dbitops.h73 static __always_inline unsigned long hweight_long(unsigned long w) in hweight_long() function
Dbitmap.h401 return hweight_long(*src & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_weight()
/Linux-v5.10/drivers/pinctrl/
Dpinctrl-mcp23s08_spi.c168 chips = hweight_long(spi_present_mask); in mcp23s08_probe()
/Linux-v5.10/arch/sh/kernel/
Dio_trapped.c62 if (hweight_long(flags) != 1) in register_trapped_io()
/Linux-v5.10/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-v5.10/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-v5.10/arch/x86/events/amd/
Dcore.c821 if (hweight_long(hwc->config & ARCH_PERFMON_EVENTSEL_UMASK) <= 1) in amd_get_event_constraints_f15h()
846 if (hweight_long(hwc->config & ARCH_PERFMON_EVENTSEL_UMASK) <= 1) in amd_get_event_constraints_f15h()
/Linux-v5.10/arch/arm/mm/
Dpmsa-v7.c297 total_mem_size += mem[i].size - subreg * hweight_long(mem[i].subreg); in pmsav7_adjust_lowmem_bounds()
/Linux-v5.10/drivers/ps3/
Dps3stor_lib.c113 n = hweight_long(dev->accessible_regions); in ps3stor_probe_access()
/Linux-v5.10/lib/
Dbitmap.c340 w += hweight_long(bitmap[k]); in __bitmap_weight()
343 w += hweight_long(bitmap[k] & BITMAP_LAST_WORD_MASK(bits)); in __bitmap_weight()
/Linux-v5.10/drivers/gpio/
Dgpio-winbond.c670 winbond_gpio_chip.ngpio = hweight_long(params.gpios) * 8; in winbond_gpio_iprobe()
/Linux-v5.10/drivers/net/ethernet/aquantia/atlantic/
Daq_macsec.c1595 cnt += hweight_long(cfg->aq_rxsc[i].rx_sa_idx_busy); in aq_macsec_rx_sa_cnt()
1606 return hweight_long(nic->macsec_cfg->txsc_idx_busy); in aq_macsec_tx_sc_cnt()
1620 cnt += hweight_long(cfg->aq_txsc[i].tx_sa_idx_busy); in aq_macsec_tx_sa_cnt()
/Linux-v5.10/drivers/pwm/
Dpwm-sti.c174 ncfg = hweight_long(pc->configured); in sti_pwm_config()
/Linux-v5.10/drivers/net/dsa/sja1105/
Dsja1105_vl.c317 num_virtual_links += hweight_long(rule->port_mask); in sja1105_init_virtual_links()
/Linux-v5.10/sound/soc/codecs/
Drt1011.c1851 rx_slotnum = hweight_long(rx_mask); in rt1011_set_tdm_slot()
1894 tx_slotnum = hweight_long(tx_mask); in rt1011_set_tdm_slot()

12