Searched refs:bitmap_weight (Results 1 - 57 of 57) sorted by relevance

/linux-4.1.27/lib/
H A Dmemweight.c23 ret += bitmap_weight((unsigned long *)bitmap, memweight()
30 * bitmap_weight() call is to compute 1-bits in the last region smaller memweight()
H A Dbitmap.c30 * for example) or scalar (bitmap_weight, for example) results
708 w = bitmap_weight(new, nbits); for_each_set_bit()
749 int w = bitmap_weight(new, bits); bitmap_bitremap()
824 * bitmap_fold(tmp, orig, bitmap_weight(relmap, bits), bits);
870 * for (m = 0; m < bitmap_weight(relmap, bits); m++) { bitmap_onto()
/linux-4.1.27/drivers/net/wireless/ath/ath9k/
H A Dcommon-spectral.h49 * [7:0]: all bins {max_magnitude[1:0], bitmap_weight[5:0]}
72 * [7:0]: lower bins {max_magnitude[1:0], bitmap_weight[5:0]}
75 * [7:0]: upper bins {max_magnitude[1:0], bitmap_weight[5:0]}
H A Dcommon-spectral.c195 fft_sample_20.bitmap_weight = bitmap_w; ath_cmn_process_fft()
H A Dhtc_drv_debug.c301 bitmap_weight(priv->tx.tx_slot, MAX_TX_BUF_NUM)); read_file_slot()
/linux-4.1.27/tools/perf/util/include/linux/
H A Dbitmap.h33 static inline int bitmap_weight(const unsigned long *src, int nbits) bitmap_weight() function
/linux-4.1.27/drivers/net/wireless/ath/
H A Dspectral_common.h59 u8 bitmap_weight; member in struct:fft_sample_ht20
/linux-4.1.27/arch/m32r/include/asm/
H A Dsmp.h32 #define physids_weight(map) bitmap_weight((map).mask, MAX_APICS)
/linux-4.1.27/drivers/staging/iio/accel/
H A Dlis3l02dq_ring.c64 xfers = kcalloc(bitmap_weight(indio_dev->active_scan_mask, lis3l02dq_read_all()
101 for (j = 0; j < bitmap_weight(indio_dev->active_scan_mask, lis3l02dq_read_all()
118 int scan_count = bitmap_weight(indio_dev->active_scan_mask, lis3l02dq_get_buffer_element()
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
H A Dport.c550 bitmap_weight(actv_ports.ports, dev->caps.num_ports) + 1; mlx4_get_slave_num_gids()
561 slave_gid -= bitmap_weight(slaves_pport_actv.slaves, mlx4_get_slave_num_gids()
564 vfs = bitmap_weight(slaves_pport.slaves, dev->persist->num_vfs + 1) - 1; mlx4_get_slave_num_gids()
587 bitmap_weight(actv_ports.ports, dev->caps.num_ports) + 1; mlx4_get_base_gid_ix()
598 slave_gid -= bitmap_weight(slaves_pport_actv.slaves, mlx4_get_base_gid_ix()
602 vfs = bitmap_weight(slaves_pport.slaves, dev->persist->num_vfs + 1) - 1; mlx4_get_base_gid_ix()
1192 num_vfs = bitmap_weight(slaves_pport.slaves, mlx4_get_slave_from_roce_gid()
1235 num_vfs_before += bitmap_weight( mlx4_get_slave_from_roce_gid()
1252 bitmap_weight(actv_ports.ports, mlx4_get_slave_from_roce_gid()
1265 slave_gid += bitmap_weight( mlx4_get_slave_from_roce_gid()
H A Dcmd.c1940 bitmap_weight(port_qos->priority_bm, MLX4_NUM_UP)); mlx4_allocate_port_vpps()
1978 bitmap_weight(actv_ports.ports, priv->dev.caps.num_ports); mlx4_master_activate_admin_state()
2030 bitmap_weight(actv_ports.ports, priv->dev.caps.num_ports); mlx4_master_deactivate_admin_state()
2722 unsigned m = bitmap_weight(actv_ports.ports, dev->caps.num_ports); mlx4_slave_convert_port()
2795 bitmap_weight(actv_ports.ports, dev->caps.num_ports); mlx4_slaves_closest_port()
H A Dfw.c366 bitmap_weight(actv_ports.ports, dev->caps.num_ports), mlx4_QUERY_FUNC_CAP_wrapper()
1149 bitmap_weight(actv_ports.ports, dev->caps.num_ports); mlx4_QUERY_DEV_CAP_wrapper()
1165 field |= bitmap_weight(actv_ports.ports, dev->caps.num_ports) & 0x0F; mlx4_QUERY_DEV_CAP_wrapper()
H A Den_ethtool.c304 h->count = h->advance_array ? bitmap_weight(stats_bitmap, count) bitmap_iterator_init()
H A Dresource_tracker.c548 bitmap_weight(slaves_pport.slaves, mlx4_init_resource_tracker()
/linux-4.1.27/arch/x86/include/asm/
H A Dmpspec.h123 bitmap_weight((map).mask, MAX_LOCAL_APIC)
/linux-4.1.27/drivers/staging/iio/
H A Diio_simple_dummy_buffer.c76 i < bitmap_weight(indio_dev->active_scan_mask, iio_simple_dummy_trigger_h()
/linux-4.1.27/fs/omfs/
H A Dbitmap.c15 sum += nbits - bitmap_weight(sbi->s_imap[i], nbits); omfs_count_free()
/linux-4.1.27/mm/
H A Dcma_debug.c42 used = bitmap_weight(cma->bitmap, (int)cma->count); cma_used_get()
/linux-4.1.27/drivers/gpu/drm/msm/mdp/mdp5/
H A Dmdp5_smp.c131 avail = cnt - bitmap_weight(smp->state, cnt); smp_request_block()
139 cur_nblks = bitmap_weight(ps->pending, cnt); smp_request_block()
/linux-4.1.27/include/linux/
H A Dbitmap.h44 * bitmap_weight(src, nbits) Hamming Weight: number set bits
298 static inline int bitmap_weight(const unsigned long *src, unsigned int nbits) bitmap_weight() function
H A Dnodemask.h228 return bitmap_weight(srcp->bits, nbits); __nodes_weight()
H A Dcpumask.h476 return bitmap_weight(cpumask_bits(srcp), nr_cpumask_bits); cpumask_weight()
/linux-4.1.27/drivers/iio/adc/
H A Dad7298.c114 scan_count = bitmap_weight(active_scan_mask, indio_dev->masklength); ad7298_update_scan_mode()
H A Dcc10001_adc.c271 indio_dev->num_channels = bitmap_weight(&channel_map, cc10001_adc_channel_init()
H A Dad799x.c232 st->transfer_size = bitmap_weight(scan_mask, indio_dev->masklength) * 2; ad799x_update_scan_mode()
H A Dmax1363.c856 numelements = bitmap_weight(modemask, MAX1363_MAX_CHANNELS); max1363_monitor_mode_update()
1480 unsigned long numvals = bitmap_weight(st->current_mode->modemask, max1363_trigger_handler()
H A Dat91_adc.c476 idev->num_channels = bitmap_weight(&st->channels_mask, at91_adc_channel_init()
H A Dxilinx-xadc-core.c582 n = bitmap_weight(mask, indio_dev->masklength); xadc_update_scan_mode()
/linux-4.1.27/drivers/uwb/
H A Ddrp-ie.c157 if (bitmap_weight(tmp_mas_bm, UWB_MAS_PER_ZONE) > 0) { uwb_drp_ie_from_bm()
/linux-4.1.27/fs/logfs/
H A Dfile.c173 BUG_ON(bitmap_weight(block->alias_map, LOGFS_BLOCK_FACTOR)); logfs_invalidatepage()
H A Dreadwrite.c1283 super->s_no_object_aliases -= bitmap_weight( fill_shadow_tree()
/linux-4.1.27/fs/ocfs2/cluster/
H A Dheartbeat.c302 failed = bitmap_weight(o2hb_failed_region_bitmap, o2hb_write_timeout()
304 quorum = bitmap_weight(o2hb_quorum_region_bitmap, o2hb_write_timeout()
760 if (bitmap_weight(o2hb_quorum_region_bitmap, o2hb_set_quorum_device()
1810 if (bitmap_weight(o2hb_region_bitmap, O2NM_MAX_REGIONS) == 1) o2hb_region_dev_write()
2161 if (bitmap_weight(o2hb_quorum_region_bitmap, o2hb_heartbeat_group_drop_item()
2461 if (bitmap_weight(o2hb_quorum_region_bitmap, o2hb_region_inc_user()
/linux-4.1.27/net/sctp/
H A Dtsnmap.c276 pending_data -= bitmap_weight(map->tsn_map, gap + 1); sctp_tsnmap_pending()
/linux-4.1.27/drivers/iio/
H A Dindustrialio-trigger.c229 = (bitmap_weight(trig->pool, iio_trigger_detach_poll_func()
H A Dindustrialio-buffer.c1010 return bitmap_weight(mask, indio_dev->masklength) == 1; iio_validate_scan_mask_onehot()
/linux-4.1.27/drivers/staging/iio/impedance-analyzer/
H A Dad5933.c663 int scan_count = bitmap_weight(indio_dev->active_scan_mask, ad5933_work()
/linux-4.1.27/block/
H A Dblk-mq-tag.c460 used += bitmap_weight(&bm->word, bm->depth); bt_unused_tags()
/linux-4.1.27/arch/arm/kernel/
H A Dperf_event.c490 int enabled = bitmap_weight(hw_events->used_mask, armpmu->num_events); armpmu_enable()
/linux-4.1.27/net/batman-adv/
H A Dbat_iv_ogm.c886 *w = bitmap_weight(word, BATADV_TQ_LOCAL_WINDOW_SIZE); hlist_for_each_entry_rcu()
1341 packet_count = bitmap_weight(bitmap, batadv_iv_ogm_update_seqnos()
1671 *weight = bitmap_weight(word, batadv_iv_ogm_process()
/linux-4.1.27/drivers/net/wireless/ath/carl9170/
H A Ddebug.c223 bitmap_weight(ar->mem_bitmap, ar->fw.mem_blocks), carl9170_debugfs_mem_usage_read()
/linux-4.1.27/arch/x86/include/asm/uv/
H A Duv_bau.h723 return bitmap_weight((unsigned long *)&dstp->bits[0], bau_uvhub_weight()
/linux-4.1.27/drivers/thermal/
H A Dintel_powerclamp.c565 if (bitmap_weight(cpu_clamping_mask, num_possible_cpus())) { for_each_set_bit()
/linux-4.1.27/fs/hpfs/
H A Dsuper.c141 count = bitmap_weight(bits, 2048 * BITS_PER_BYTE); hpfs_count_one_bitmap()
/linux-4.1.27/drivers/staging/iio/adc/
H A Dmxs-lradc.c1261 const int len = bitmap_weight(iio->active_scan_mask, mxs_lradc_buffer_preenable()
1334 const int map_chans = bitmap_weight(mask, LRADC_MAX_TOTAL_CHANS); mxs_lradc_validate_scan_mask()
/linux-4.1.27/tools/perf/util/
H A Dheader.c1949 nr_sections = bitmap_weight(header->adds_features, HEADER_FEAT_BITS); perf_header__adds_write()
2099 nr_sections = bitmap_weight(header->adds_features, HEADER_FEAT_BITS); perf_header__process_sections()
/linux-4.1.27/drivers/md/bcache/
H A Drequest.c347 i -= bitmap_weight(&rand, BITS_PER_LONG); bch_get_congested()
/linux-4.1.27/drivers/powercap/
H A Dintel_rapl.c1288 rp->nr_domains = bitmap_weight(&rp->domain_map, RAPL_DOMAIN_MAX); rapl_detect_domains()
/linux-4.1.27/arch/arm64/kernel/
H A Dperf_event.c625 int enabled = bitmap_weight(hw_events->used_mask, armpmu->num_events); armpmu_enable()
/linux-4.1.27/sound/usb/
H A Dendpoint.c505 alive = bitmap_weight(&ep->active_mask, ep->nurbs); wait_clear_urbs()
/linux-4.1.27/drivers/bus/
H A Darm-cci.c495 int enabled = bitmap_weight(hw_events->used_mask, cci_pmu->num_events); cci_pmu_enable()
/linux-4.1.27/drivers/memstick/core/
H A Dms_block.c162 if (msb->block_count - bitmap_weight(msb->used_blocks_bitmap, msb_validate_used_block_bitmap()
/linux-4.1.27/fs/udf/
H A Dsuper.c2382 accum += bitmap_weight((const unsigned long *)(ptr + index), udf_count_free_bitmap()
/linux-4.1.27/fs/ntfs/
H A Dsuper.c2512 nr_free -= bitmap_weight(kaddr, get_nr_free_clusters()
2583 nr_free -= bitmap_weight(kaddr, __get_nr_free_mft_records()
/linux-4.1.27/drivers/net/ethernet/freescale/
H A Dgianfar.c3062 num_act_queues = bitmap_weight(&rstat_rxf, MAX_RX_QS); gfar_poll_rx()
/linux-4.1.27/drivers/infiniband/hw/ipath/
H A Dipath_driver.c1721 cnt = bitmap_weight(dd->ipath_pioavailkernel, end); ipath_chg_pioavailkernel()
/linux-4.1.27/drivers/infiniband/hw/mlx4/
H A Dmain.c2589 ports = bitmap_weight(actv_ports.ports, dev->caps.num_ports); do_slave_init()
/linux-4.1.27/fs/btrfs/
H A Dscrub.c2649 nbits = bitmap_weight(sparity->ebitmap, sparity->nsectors); scrub_free_parity()

Completed in 2279 milliseconds