Home
last modified time | relevance | path

Searched refs:bitmap_weight (Results 1 – 25 of 107) sorted by relevance

12345

/linux/drivers/gpu/drm/msm/disp/mdp5/
H A Dmdp5_smp.c80 avail = cnt - bitmap_weight(state->state, cnt); in smp_request_block()
350 int inuse = bitmap_weight(cs, smp->blk_cnt); in mdp5_smp_dump()
362 bitmap_weight(state->state, smp->blk_cnt)); in mdp5_smp_dump()
/linux/drivers/gpu/drm/xe/
H A Dxe_guc_db_mgr.c58 weight = bitmap_weight(dbm->bitmap, dbm->count); in __fini_dbm()
129 used = bitmap_weight(dbm->bitmap, dbm->count); in dbm_reserve_chunk_locked()
H A Dxe_guc_id_mgr.c44 unsigned int weight = bitmap_weight(idm->bitmap, idm->total); in __fini_idm()
H A Dxe_eu_stall.c547 if (bitmap_weight(stream->data_drop.mask, XE_MAX_DSS_FUSE_BITS)) { in xe_eu_stall_stream_read_locked()
742 num_xecores = bitmap_weight(all_xecores, XE_MAX_DSS_FUSE_BITS); in xe_eu_stall_stream_init()
/linux/lib/
H A Dmemweight.c24 ret += bitmap_weight((unsigned long *)bitmap, in memweight()
H A Dfind_bit_benchmark.c120 unsigned long l, n, w = bitmap_weight(bitmap, len); in test_find_nth_bit()
H A Dsbitmap.c362 weight += bitmap_weight(&word->word, word_depth); in __sbitmap_weight()
364 weight += bitmap_weight(&word->cleared, word_depth); in __sbitmap_weight()
/linux/drivers/net/wan/
H A Dfsl_qmc_hdlc.c435 if (bitmap_weight(ts_mask, 64) != bitmap_weight(map, 64)) { in qmc_hdlc_xlate_slot_map()
470 if (bitmap_weight(ts_mask, 64) != bitmap_weight(map, 64)) { in qmc_hdlc_xlate_ts_info()
/linux/drivers/net/wireless/ath/
H A Dspectral_common.h60 u8 bitmap_weight; member
/linux/drivers/net/ethernet/mellanox/mlx4/
H A Dport.c1088 bitmap_weight(actv_ports.ports, dev->caps.num_ports) + 1; in mlx4_get_slave_num_gids()
1099 slave_gid -= bitmap_weight(slaves_pport_actv.slaves, in mlx4_get_slave_num_gids()
1102 vfs = bitmap_weight(slaves_pport.slaves, dev->persist->num_vfs + 1) - 1; in mlx4_get_slave_num_gids()
1125 bitmap_weight(actv_ports.ports, dev->caps.num_ports) + 1; in mlx4_get_base_gid_ix()
1136 slave_gid -= bitmap_weight(slaves_pport_actv.slaves, in mlx4_get_base_gid_ix()
1140 vfs = bitmap_weight(slaves_pport.slaves, dev->persist->num_vfs + 1) - 1; in mlx4_get_base_gid_ix()
1851 num_vfs = bitmap_weight(slaves_pport.slaves, in mlx4_get_slave_from_roce_gid()
1894 num_vfs_before += bitmap_weight( in mlx4_get_slave_from_roce_gid()
1911 bitmap_weight(actv_ports.ports, in mlx4_get_slave_from_roce_gid()
1924 slave_gid += bitmap_weight( in mlx4_get_slave_from_roce_gid()
/linux/arch/loongarch/kernel/
H A Dirq.c92 int nr_io_pics = bitmap_weight(loongson_sysconf.cores_io_master, NR_CPUS); in arch_probe_nr_irqs()
/linux/tools/perf/util/
H A Dmem2node.c59 max += bitmap_weight(n->set, n->size); in mem2node__init()
/linux/drivers/acpi/x86/
H A Dapple.c86 numvalid = bitmap_weight(valid, numprops); in acpi_extract_apple_properties()
/linux/fs/omfs/
H A Dbitmap.c16 sum += nbits - bitmap_weight(sbi->s_imap[i], nbits); in omfs_count_free()
/linux/tools/include/linux/
H A Dbitmap.h72 static inline unsigned int bitmap_weight(const unsigned long *src, unsigned int nbits) in bitmap_weight() function
/linux/fs/ocfs2/cluster/
H A Dheartbeat.c302 failed = bitmap_weight(o2hb_failed_region_bitmap, in o2hb_write_timeout()
304 quorum = bitmap_weight(o2hb_quorum_region_bitmap, in o2hb_write_timeout()
880 if (bitmap_weight(o2hb_quorum_region_bitmap, in o2hb_set_quorum_device()
1849 if (bitmap_weight(o2hb_region_bitmap, O2NM_MAX_REGIONS) == 1) in o2hb_region_dev_store()
2121 if (bitmap_weight(o2hb_quorum_region_bitmap, in o2hb_heartbeat_group_drop_item()
2366 if (bitmap_weight(o2hb_quorum_region_bitmap, in o2hb_region_inc_user()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
H A Dmeter.c296 if (bitmap_weight(meters_obj->meters_map, total) == total - 1) { in __mlx5e_flow_meter_alloc()
342 n = bitmap_weight(meters_obj->meters_map, meters_obj->total_meters); in __mlx5e_flow_meter_free()
/linux/net/sctp/
H A Dtsnmap.c261 pending_data -= bitmap_weight(map->tsn_map, gap + 1); in sctp_tsnmap_pending()
/linux/drivers/net/ipa/
H A Dipa_interrupt.c208 weight = bitmap_weight(interrupt->suspend_enabled, ipa->endpoint_count); in ipa_interrupt_suspend_control()
/linux/drivers/crypto/ccp/
H A Dccp-dev-v5.c601 queues = bitmap_weight(cmd_q->lsbmask, MAX_LSB_CNT); in ccp_find_lsb_regions()
630 qlsb_wgt = bitmap_weight(cmd_q->lsbmask, MAX_LSB_CNT); in ccp_find_and_assign_lsb_to_q()
682 n_lsbs = bitmap_weight(lsb_pub, MAX_LSB_CNT); in ccp_assign_lsbs()
/linux/drivers/iio/adc/
H A Dcc10001_adc.c268 indio_dev->num_channels = bitmap_weight(&channel_map, in cc10001_adc_channel_init()
H A Dad7298.c112 scan_count = bitmap_weight(active_scan_mask, in ad7298_update_scan_mode()
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_ethtool.c284 if (bitmap_weight(&pfvf->rq_bmap, pfvf->hw.rx_queues) > 1) { in otx2_set_channels()
293 qos_txqs = bitmap_weight(pfvf->qos.qos_sq_bmap, in otx2_set_channels()
1287 if (bitmap_weight(req->args.advertising, in otx2_set_link_ksettings()
/linux/drivers/block/drbd/
H A Ddrbd_bitmap.c564 bits += bitmap_weight(p_addr, BITS_PER_PAGE); in bm_count_bits()
571 bits += bitmap_weight(p_addr, last_word * BITS_PER_LONG); in bm_count_bits()
1690 count += bitmap_weight(bm, n * BITS_PER_LONG); in drbd_bm_e_weight()
/linux/include/media/
H A Dvideobuf2-core.h1178 return bitmap_weight(q->bufs_bitmap, q->max_num_buffers);

12345