| /linux-6.15/sound/soc/intel/avs/ |
| H A D | utils.h | 16 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-6.15/drivers/gpu/drm/msm/disp/mdp5/ |
| H A D | mdp5_pipe.c | 59 if (!(*hwpipe) || (hweight_long(cur->caps & ~caps) < in mdp5_pipe_assign() 60 hweight_long((*hwpipe)->caps & ~caps))) { in mdp5_pipe_assign()
|
| /linux-6.15/tools/lib/ |
| H A D | bitmap.c | 13 w += hweight_long(bitmap[k]); in __bitmap_weight() 16 w += hweight_long(bitmap[k] & BITMAP_LAST_WORD_MASK(bits)); in __bitmap_weight()
|
| /linux-6.15/sound/soc/intel/catpt/ |
| H A D | registers.h | 133 #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.15/drivers/crypto/intel/qat/qat_common/ |
| H A D | adf_fw_counters.c | 60 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()
|
| H A D | adf_cnv_dbgfs.c | 192 ae_count = hweight_long(ae_mask); in cnv_err_stats_alloc()
|
| /linux-6.15/drivers/gpu/drm/xe/ |
| H A D | xe_force_wake.c | 212 str_plural(hweight_long(awake_failed)), awake_failed); in xe_force_wake_get() 266 str_plural(hweight_long(ack_fail)), ack_fail); in xe_force_wake_put()
|
| /linux-6.15/drivers/hwspinlock/ |
| H A D | omap_hwspinlock.c | 109 if (hweight_long(i & 0xf) != 1 || i > 8) in omap_hwspinlock_probe()
|
| /linux-6.15/fs/exfat/ |
| H A D | balloc.c | 229 count += hweight_long(*bitmap); in exfat_count_used_clusters() 240 count += hweight_long(clu_bits & BITMAP_LAST_WORD_MASK(last_mask)); in exfat_count_used_clusters()
|
| /linux-6.15/include/linux/ |
| H A D | bitmap.h | 445 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()
|
| H A D | bitops.h | 95 static __always_inline unsigned long hweight_long(unsigned long w) in hweight_long() function
|
| /linux-6.15/tools/include/linux/ |
| H A D | bitops.h | 70 static inline unsigned long hweight_long(unsigned long w) in hweight_long() function
|
| H A D | bitmap.h | 70 return hweight_long(*src & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_weight()
|
| /linux-6.15/drivers/block/drbd/ |
| H A D | drbd_bitmap.c | 504 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-6.15/sound/soc/intel/boards/ |
| H A D | skl_hda_dsp_generic.c | 79 if (hweight_long(mach_params->bt_link_mask) == 1) { in skl_hda_get_board_quirk()
|
| /linux-6.15/drivers/media/platform/qcom/venus/ |
| H A D | hfi_parser.c | 24 if (hweight_long(core->dec_codecs) + hweight_long(core->enc_codecs) > MAX_CODEC_NUM) in init_codecs()
|
| /linux-6.15/drivers/bus/ |
| H A D | brcmstb_gisb.c | 246 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-6.15/tools/perf/tests/ |
| H A D | sample-parsing.c | 131 size_t sz = hweight_long(s1_regs->mask) * sizeof(u64); in samples_same() 164 size_t sz = hweight_long(s1_regs->mask) * sizeof(u64); in samples_same()
|
| /linux-6.15/security/landlock/ |
| H A D | domain.c | 149 access_weight = hweight_long(all_existing_optional_access & in get_layer_deny_mask()
|
| /linux-6.15/lib/ |
| H A D | find_bit.c | 80 w = hweight_long(tmp); \
|
| H A D | bitmap.c | 330 w += hweight_long(FETCH); \ 333 w += hweight_long((FETCH) & BITMAP_LAST_WORD_MASK(__bits)); \
|
| /linux-6.15/arch/sh/kernel/ |
| H A D | io_trapped.c | 62 if (hweight_long(flags) != 1) in register_trapped_io()
|
| /linux-6.15/sound/soc/codecs/ |
| H A D | rtq9128.c | 485 if (!rx_mask || hweight_long(tx_mask) > slots || hweight_long(rx_mask) > slots || in rtq9128_dai_set_tdm_slot()
|
| /linux-6.15/drivers/pinctrl/ |
| H A D | pinctrl-mcp23s08_spi.c | 165 chips = hweight_long(spi_present_mask); in mcp23s08_probe()
|
| /linux-6.15/sound/soc/bcm/ |
| H A D | bcm2835-i2s.c | 267 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()
|