Home
last modified time | relevance | path

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

123

/linux/sound/soc/intel/avs/
H A Dutils.h26 return hweight_long(mach->mach_params.i2s_link_mask) == 1; in avs_mach_singular_ssp()
39 return !tdms || (hweight_long(tdms[port]) == 1); in avs_mach_singular_tdm()
/linux/drivers/gpu/drm/msm/disp/mdp5/
H 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/tools/lib/
H 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/sound/soc/intel/catpt/
H 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/
H 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()
H A Dadf_cnv_dbgfs.c192 ae_count = hweight_long(ae_mask); in cnv_err_stats_alloc()
/linux/drivers/block/drbd/
H 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/tools/include/linux/
H A Dbitops.h70 static inline unsigned long hweight_long(unsigned long w) in hweight_long() function
H A Dbitmap.h75 return hweight_long(*src & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_weight()
/linux/drivers/bus/
H A Dbrcmstb_gisb.c246 if (hweight_long(mask) != 1) in brcmstb_gisb_master_to_str()
475 if (hweight_long(gdev->valid_mask) == num_masters) { in brcmstb_gisb_arb_probe()
/linux/tools/perf/tests/
H A Dsample-parsing.c131 size_t sz = hweight_long(s1_regs->mask) * sizeof(u64); in samples_same()
170 size_t sz = hweight_long(s1_regs->mask) * sizeof(u64); in samples_same()
/linux/fs/exfat/
H A Dballoc.c309 count += hweight_long(*bitmap); in exfat_count_used_clusters()
320 count += hweight_long(clu_bits & BITMAP_LAST_WORD_MASK(last_mask)); in exfat_count_used_clusters()
/linux/sound/soc/intel/boards/
H A Dskl_hda_dsp_generic.c79 if (hweight_long(mach_params->bt_link_mask) == 1) { in skl_hda_get_board_quirk()
/linux/sound/soc/codecs/
H A Drtq9124.c191 if (tx_mask && (hweight_long(tx_mask) > 2 || fls(tx_mask) > slots)) { in rtq9124_dai_set_tdm_slot()
196 if (!rx_mask || hweight_long(rx_mask) > 1 || fls(rx_mask) > slots) { in rtq9124_dai_set_tdm_slot()
H A Drt9123.c219 if (!rx_mask || hweight_long(rx_mask) > 1 || ffs(rx_mask) > slots) { in rt9123_dai_set_tdm_slot()
/linux/security/landlock/
H A Ddomain.c149 access_weight = hweight_long(all_existing_optional_access & in get_layer_deny_mask()
/linux/arch/sh/kernel/
H A Dio_trapped.c62 if (hweight_long(flags) != 1) in register_trapped_io()
/linux/drivers/pinctrl/
H A Dpinctrl-mcp23s08_spi.c165 chips = hweight_long(spi_present_mask); in mcp23s08_probe()
/linux/include/linux/
H A Dbitops.h94 static __always_inline unsigned long hweight_long(unsigned long w) in hweight_long() function
/linux/drivers/irqchip/
H A Dirq-mips-gic.c917 cpu_vec = find_first_zero_bit(&reserved, hweight_long(ST0_IM)); in gic_of_init()
918 if (cpu_vec == hweight_long(ST0_IM)) { in gic_of_init()
/linux/drivers/iio/common/cros_ec_sensors/
H A Dcros_ec_activity.c246 nb_activities = hweight_long(activities) + 1; in cros_ec_sensors_probe()
/linux/arch/arm/mm/
H A Dpmsa-v7.c299 total_mem_size += mem[i].size - subreg * hweight_long(mem[i].subreg); in pmsav7_adjust_lowmem_bounds()
/linux/drivers/ps3/
H A Dps3stor_lib.c114 n = hweight_long(dev->accessible_regions); in ps3stor_probe_access()
/linux/net/rxrpc/
H A Dinput.c897 a = hweight_long(n_to_a); in rxrpc_input_soft_ack_tq()
898 n = hweight_long(a_to_n); in rxrpc_input_soft_ack_tq()
913 a = hweight_long(new_acks); in rxrpc_input_soft_ack_tq()
/linux/sound/hda/core/
H A Dintel-nhlt.c232 if (hweight_long(mclk_mask) != 1) in intel_nhlt_ssp_mclk_mask()

123