Home
last modified time | relevance | path

Searched refs:hweight32 (Results 1 – 86 of 86) sorted by relevance

/linux-4.4.14/arch/mips/netlogic/xlr/
Dfmn-config.c86 ncores = hweight32(nlm_current_node()->coremask); in check_credit_distribution()
125 num_core = hweight32(nlm_current_node()->coremask); in setup_fmn_cc()
190 num_core = hweight32(nlm_current_node()->coremask); in xlr_board_info_setup()
/linux-4.4.14/arch/arm/probes/kprobes/
Dcheckers-thumb.c100 asi->stack_space = hweight32(reglist) * 4; in t16_check_stack()
Dcheckers-common.c85 asi->stack_space = (hweight32(reglist) - (!pbit ? 1 : 0)) * 4; in checker_stack_use_stmdx()
/linux-4.4.14/include/asm-generic/bitops/
Dconst_hweight.h27 #define hweight32(w) (__builtin_constant_p(w) ? __const_hweight32(w) : __arch_hweight32(w)) macro
/linux-4.4.14/tools/include/linux/
Dbitops.h48 return sizeof(w) == 4 ? hweight32(w) : hweight64(w); in hweight_long()
/linux-4.4.14/net/netfilter/
Dxt_repldata.h18 unsigned int nhooks = hweight32(hook_mask); \
Dxt_rateest.c83 if (hweight32(info->flags & (XT_RATEEST_MATCH_ABS | in xt_rateest_mt_checkentry()
Dx_tables.c1421 uint8_t i, num_hooks = hweight32(hook_mask); in xt_hook_link()
1458 nf_unregister_hooks(ops, hweight32(table->valid_hooks)); in xt_hook_unlink()
/linux-4.4.14/drivers/gpu/drm/i915/
Di915_dma.c566 info->eu_total += 8 - hweight32(eu_dis); in cherryview_sseu_info_init()
573 info->eu_total += 8 - hweight32(eu_dis); in cherryview_sseu_info_init()
610 info->slice_total = hweight32(s_enable); in gen9_sseu_info_init()
615 info->subslice_per_slice = ss_max - hweight32(ss_disable); in gen9_sseu_info_init()
696 info->slice_total = hweight32(s_enable); in broadwell_sseu_info_init()
702 info->subslice_per_slice = ss_max - hweight32(ss_disable); in broadwell_sseu_info_init()
Dintel_atomic.c145 num_scalers_need = hweight32(scaler_state->scaler_users); in intel_atomic_setup_scalers()
Di915_gem_context.c520 hweight32(INTEL_INFO(ring->dev)->ring_mask) - 1 : in mi_set_context()
Dintel_ringbuffer.c1235 num_rings = hweight32(INTEL_INFO(dev)->ring_mask); in gen8_rcs_signal()
1276 num_rings = hweight32(INTEL_INFO(dev)->ring_mask); in gen8_xcs_signal()
1315 num_rings = hweight32(INTEL_INFO(dev)->ring_mask); in gen6_signal()
Di915_debugfs.c3006 int num_rings = hweight32(INTEL_INFO(dev)->ring_mask); in i915_semaphore_status()
5042 eu_cnt = 2 * hweight32(eu_reg[2*s + ss/2] & in gen9_sseu_device_status()
5062 stat->slice_total = hweight32(slice_info & GEN8_LSLICESTAT_MASK); in broadwell_sseu_device_status()
Dintel_display.c12840 I915_STATE_WARN(pll->active > hweight32(pll->config.crtc_mask), in check_shared_dpll_state()
12842 pll->active, hweight32(pll->config.crtc_mask)); in check_shared_dpll_state()
12860 I915_STATE_WARN(hweight32(pll->config.crtc_mask) != enabled_crtcs, in check_shared_dpll_state()
12862 hweight32(pll->config.crtc_mask), enabled_crtcs); in check_shared_dpll_state()
/linux-4.4.14/drivers/iio/gyro/
Dadxrs450.c112 if (!(hweight32(tx) & 1)) in adxrs450_spi_read_reg_16()
148 if (!(hweight32(tx) & 1)) in adxrs450_spi_write_reg_16()
/linux-4.4.14/arch/mips/netlogic/xlp/
Dwakeup.c168 syscoremask = (1 << hweight32(~fusemask & mask)) - 1; in xlp_enable_secondary_cores()
/linux-4.4.14/fs/ocfs2/
Dblockcheck.c177 if (hweight32(fix) == 1) in ocfs2_hamming_fix()
200 while (hweight32(b) == 1) in ocfs2_hamming_fix()
Dsuper.c1503 if (hweight32(tmp) != 1) { in ocfs2_parse_options()
/linux-4.4.14/arch/xtensa/kernel/
Dirq.c147 return hweight32(mask); in xtensa_get_ext_irq_no()
/linux-4.4.14/drivers/media/pci/solo6x10/
Dsolo6x10-core.c240 hweight32(solo_dev->tw2815), in tw28xx_show()
241 hweight32(solo_dev->tw2864), in tw28xx_show()
242 hweight32(solo_dev->tw2865)); in tw28xx_show()
/linux-4.4.14/include/linux/
Dbitops.h80 return sizeof(w) == 4 ? hweight32(w) : hweight64(w); in hweight_long()
/linux-4.4.14/arch/mips/netlogic/common/
Dsmp.c203 ncore += hweight32(nlm_get_node(i)->coremask); in nlm_smp_setup()
/linux-4.4.14/drivers/gpu/drm/msm/hdmi/
Dhdmi_hdcp.c276 if ((hweight32(hdcp_ctrl->aksv_lsb) + hweight32(hdcp_ctrl->aksv_msb)) in hdmi_hdcp_read_validate_aksv()
718 if ((hweight32(hdcp_ctrl->bksv_lsb) + hweight32(hdcp_ctrl->bksv_msb)) in hdmi_hdcp_recv_bksv()
/linux-4.4.14/drivers/net/ethernet/sfc/
Dmcdi_mon.c332 n_sensors += hweight32(mask & ~(1 << MC_CMD_SENSOR_PAGE0_NEXT)); in efx_mcdi_mon_probe()
403 MC_CMD_SENSOR_INFO_OUT_LEN(hweight32(mask))) { in efx_mcdi_mon_probe()
Dsiena.c880 parts = kcalloc(hweight32(nvram_types), sizeof(*parts), GFP_KERNEL); in siena_mtd_probe()
/linux-4.4.14/drivers/input/touchscreen/
Dbu21013_ts.c205 has_x_sensors = hweight32(buf[0] & BU21013_SENSORS_EN_0_7); in bu21013_do_touch_report()
206 has_y_sensors = hweight32(((buf[1] & BU21013_SENSORS_EN_8_15) | in bu21013_do_touch_report()
/linux-4.4.14/drivers/misc/sgi-gru/
Dgrukdump.c158 dsrcnt = data_opt ? hweight32(cch->dsr_allocation_map) * in gru_dump_context()
/linux-4.4.14/drivers/mtd/nand/
Dbf5xx_nand.c253 if (hweight32(syndrome[0]) == 1) { in bf5xx_nand_correct_data_256()
276 if (hweight32(syndrome[0]) == 11 && syndrome[4] == 0x7FF) { in bf5xx_nand_correct_data_256()
Dvf610_nfc.c549 written_bits += hweight32(~buff32[k]); in count_written_bits()
/linux-4.4.14/fs/notify/
Dfsnotify.c300 BUG_ON(hweight32(ALL_FSNOTIFY_EVENTS) != 23); in fsnotify_init()
/linux-4.4.14/drivers/media/platform/exynos4-is/
Dfimc-is-regs.c110 if (hweight32(mask) == 1) { in fimc_is_hw_set_isp_buf_mask()
Dfimc-is-param.c171 count = hweight32(config->p_region_index[0]); in __get_pending_param_count()
172 count += hweight32(config->p_region_index[1]); in __get_pending_param_count()
/linux-4.4.14/drivers/media/platform/omap3isp/
Dispcsiphy.c217 / (2 * hweight32(used_lanes)) * pipe->external_width; in omap3isp_csiphy_config()
/linux-4.4.14/drivers/mfd/
Drtl8411.c247 if (hweight32(card_exist) > 1) { in rtl8411_cd_deglitch()
/linux-4.4.14/sound/soc/davinci/
Ddavinci-mcasp.c623 slots = hweight32(mcasp->tdm_mask[stream]); in davinci_mcasp_ch_constraint()
873 active_slots = hweight32(mcasp->tdm_mask[stream]); in mcasp_i2s_hw_param()
1224 tdm_slots = hweight32(mcasp->tdm_mask[substream->stream]); in davinci_mcasp_startup()
/linux-4.4.14/net/sched/
Dsch_dsmark.c361 if (hweight32(indices) != 1) in dsmark_init()
Dcls_flow.c409 nkeys = hweight32(keymask); in flow_change()
/linux-4.4.14/tools/hv/
Dhv_kvp_daemon.c866 static unsigned int hweight32(unsigned int *w) in hweight32() function
1015 weight += hweight32(&w[i]); in kvp_get_ip_info()
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/
Damdgpu_acpi.c330 count = hweight32(req->pending); in amdgpu_atif_get_sbios_requests()
/linux-4.4.14/drivers/gpu/drm/radeon/
Dradeon_acpi.c330 count = hweight32(req->pending); in radeon_atif_get_sbios_requests()
Dni.c1127 rdev->config.cayman.active_simds = hweight32(~tmp); in cayman_gpu_init()
Dr600_cp.c726 return hweight32(val); in r600_count_pipe_bits()
Devergreen.c3582 rdev->config.evergreen.active_simds = hweight32(~tmp); in evergreen_gpu_init()
4483 tmp = hweight32(~tmp); in evergreen_rlc_resume()
Dr600.c1974 return hweight32(val); in r600_count_pipe_bits()
Dsi.c3301 hweight32(si_get_cu_active_bitmap(rdev, i, j)); in si_gpu_init()
Dsi_dpm.c3916 num_bits = hweight32(data); in si_validate_phase_shedding_tables()
Dcik.c3758 hweight32(cik_get_cu_active_bitmap(rdev, i, j)); in cik_gpu_init()
/linux-4.4.14/arch/x86/kernel/cpu/
Dperf_event_intel_rapl.c783 hweight32(rapl_cntr_mask), in rapl_pmu_init()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
Dgf100.c577 fifo->spoon_nr = hweight32(nvkm_rd32(device, 0x002204)); in gf100_fifo_init()
Dgk104.c688 fifo->spoon_nr = hweight32(nvkm_rd32(device, 0x000204)); in gk104_fifo_init()
/linux-4.4.14/net/ipv4/netfilter/
Dipt_CLUSTERIP.c592 weight = hweight32(local_nodes); in clusterip_seq_start()
/linux-4.4.14/fs/notify/inotify/
Dinotify_user.c817 BUG_ON(hweight32(ALL_INOTIFY_BITS) != 21); in inotify_user_setup()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/disp/
Dgf119.c259 link_nr = hweight32(dpctrl & 0x000f0000); in gf119_disp_intr_unk2_2_tu()
Dnv50.c509 link_nr = hweight32(dpctrl & 0x000f0000); in nv50_disp_intr_unk20_2_dp()
/linux-4.4.14/drivers/crypto/qat/qat_common/
Dqat_hal.c817 uwrd_hi |= (hweight32(data[i] & 0xffff) & 0x1) << 8; in qat_hal_wr_umem()
819 uwrd_hi |= (hweight32(tmp) & 0x1) << 9; in qat_hal_wr_umem()
/linux-4.4.14/fs/nfsd/
Dnfs4proc.c1815 ret += 16 * (hweight32(bmap0) + hweight32(bmap1) + hweight32(bmap2)); in nfsd4_getattr_rsize()
/linux-4.4.14/sound/soc/ux500/
Dux500_msp_dai.c522 slots_active = hweight32(mask); in ux500_msp_dai_hw_params()
/linux-4.4.14/drivers/extcon/
Dextcon.c109 weight = hweight32(correspondants); in check_mutually_exclusive()
/linux-4.4.14/sound/soc/codecs/
Dab8500-codec.c2291 slots_active = hweight32(tx_mask); in ab8500_codec_set_dai_tdm_slot()
2332 slots_active = hweight32(rx_mask); in ab8500_codec_set_dai_tdm_slot()
/linux-4.4.14/drivers/usb/host/
Dxhci.c1974 return hweight32(valid_add_flags) - in xhci_count_num_new_endpoints()
1975 hweight32(valid_add_flags & valid_drop_flags); in xhci_count_num_new_endpoints()
1987 return hweight32(valid_drop_flags) - in xhci_count_num_dropped_endpoints()
1988 hweight32(valid_add_flags & valid_drop_flags); in xhci_count_num_dropped_endpoints()
/linux-4.4.14/drivers/net/can/c_can/
Dc_can.c726 weight = hweight32(pend); in c_can_adjust_pending()
/linux-4.4.14/drivers/staging/netlogic/
Dxlr_net.c504 for (i = 0; i < hweight32(priv->nd->cpu_mask); i++) in xlr_config_pde()
/linux-4.4.14/arch/mips/net/
Dbpf_jit.c591 sp_off += hweight32(ctx->flags >> SEEN_SREG_SFT) * SZREG; in get_stack_depth()
/linux-4.4.14/drivers/md/
Ddm-raid.c1469 raid_param_cnt += (hweight32(rs->ctr_flags & ~CTR_FLAG_REBUILD) * 2); in raid_status()
/linux-4.4.14/drivers/net/wireless/iwlwifi/mvm/
Dscan.c1124 return hweight32(mvm->scan_status & IWL_MVM_SCAN_MASK); in iwl_mvm_num_scans()
/linux-4.4.14/drivers/scsi/isci/
Dremote_device.c1283 idev->device_port_width = hweight32(properties.phy_mask); in sci_remote_device_da_construct()
/linux-4.4.14/drivers/media/tuners/
Dxc4000.c664 nr_diffs = hweight64(id_diff_mask) + hweight32(type_diff_mask); in seek_firmware()
/linux-4.4.14/net/wireless/
Dutil.c1642 if (WARN_ON(hweight32(radar_detect) > 1)) in cfg80211_can_use_iftype_chan()
/linux-4.4.14/sound/oss/
Dwaveartist.c1102 if (hweight32(recmask) > 1) in waveartist_set_recmask()
Dswarm_cs4297a.c1327 i = hweight32(val); // i = # bits on in val. in mixer_ioctl()
/linux-4.4.14/drivers/staging/rdma/hfi1/
Dmad.c2327 u8 num_vls = hweight32(vl_select_mask); in pma_get_opa_portstatus()
2586 num_vls = hweight32(be32_to_cpu(req->vl_select_mask)); in pma_get_opa_datacounters()
2745 num_vls = hweight32(be32_to_cpu(req->vl_select_mask)); in pma_get_opa_porterrors()
/linux-4.4.14/net/netlink/
Daf_netlink.c1584 hweight32(groups) - in netlink_bind()
1585 hweight32(nlk->groups[0])); in netlink_bind()
/linux-4.4.14/drivers/gpu/drm/exynos/
Dexynos_drm_fimc.c1132 buf_num = hweight32(cfg); in fimc_dst_set_buf_seq()
/linux-4.4.14/fs/
Dfs-writeback.c650 if (hweight32(history) > WB_FRN_HIST_THR_SLOTS) in wbc_detach_inode()
/linux-4.4.14/drivers/firewire/
Dohci.c3672 ohci->n_ir = hweight32(ohci->ir_context_mask); in pci_probe()
3685 ohci->n_it = hweight32(ohci->it_context_mask); in pci_probe()
/linux-4.4.14/drivers/memory/
Domap-gpmc.c1105 if (hweight32(irq_config) > 1) in gpmc_get_client_irq()
/linux-4.4.14/arch/x86/kvm/
Dlapic.c328 count += hweight32(*reg); in count_vectors()
/linux-4.4.14/drivers/ntb/hw/intel/
Dntb_hw_intel.c1929 ndev->bar4_split = hweight32(mem) == in xeon_init_dev()
/linux-4.4.14/drivers/net/wireless/
Dmwl8k.c2400 rx_streams = hweight32(cap & MWL8K_CAP_RX_ANTENNA_MASK); in mwl8k_set_ht_caps()
2401 tx_streams = hweight32(cap & MWL8K_CAP_TX_ANTENNA_MASK); in mwl8k_set_ht_caps()
/linux-4.4.14/drivers/scsi/csiostor/
Dcsio_hw.c1325 hw->num_pports = hweight32(hw->port_vec); in csio_get_device_params()
/linux-4.4.14/sound/pci/hda/
Dhda_generic.c2789 snd_hda_enum_helper_info(kcontrol, uinfo, hweight32(vref_caps), in in_jack_mode_info()
2841 nitems = hweight32(get_vref_caps(codec, pin)); in get_in_jack_num_items()
/linux-4.4.14/net/mac80211/
Dutil.c3208 if (WARN_ON(hweight32(radar_detect) > 1)) in ieee80211_check_combinations()
/linux-4.4.14/drivers/net/wireless/ath/ath10k/
Dmac.c5986 num_rates += hweight32(mask->control[band].legacy); in ath10k_mac_bitrate_mask_has_single_rate()
6059 if (hweight32(mask->control[band].legacy) == 1) { in ath10k_mac_bitrate_mask_get_single_rate()
/linux-4.4.14/block/
Dcfq-iosched.c55 #define CFQQ_SEEKY(cfqq) (hweight32(cfqq->seek_history) > 32/8)
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_main.c3796 adap->params.nports = hweight32(port_vec); in adap_init0()
/linux-4.4.14/drivers/net/wireless/b43/
Dphy_n.c5762 cur_hpf += desired - hweight32(power[index]); in b43_nphy_rev2_cal_rx_iq()