Home
last modified time | relevance | path

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

1234

/linux/lib/
H A Dtest_bitmap.c362 expect_eq_uint(bitmap_weight(bmap, 1000), 0); in test_bitmap_region()
904 w = bitmap_weight(b, 30); in test_bitmap_weight()
905 w1 = bitmap_weight(b, 15); in test_bitmap_weight()
913 w = bitmap_weight(exp1, EXP1_IN_BITS); in test_bitmap_weight()
915 w1 = bitmap_weight(exp1, bit); in test_bitmap_weight()
931 expect_eq_uint(30, bitmap_weight(b1, 30)); in test_bitmap_weight()
932 expect_eq_uint(100, bitmap_weight(b1, 100)); in test_bitmap_weight()
936 expect_eq_uint(i, bitmap_weight(b1, i)); in test_bitmap_weight()
1320 res = bitmap_weight(bitmap, 20); in test_bitmap_const_eval()
1542 ret = bitmap_weight(NULL, 0); in test_zero_nbits()
H A Dmemweight.c24 ret += bitmap_weight((unsigned long *)bitmap, in memweight()
H A Dbitmap.c481 return bitmap_weight(buf, pos); in bitmap_pos_to_ord()
526 w = bitmap_weight(new, nbits); in bitmap_remap()
567 int w = bitmap_weight(new, bits); in bitmap_bitremap()
H A Dfind_bit_benchmark.c123 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/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()
/linux/drivers/net/wireless/ath/
H A Dspectral_common.h60 u8 bitmap_weight; member
/linux/drivers/net/wan/
H A Dfsl_qmc_hdlc.c434 if (bitmap_weight(ts_mask, 64) != bitmap_weight(map, 64)) { in qmc_hdlc_xlate_slot_map()
469 if (bitmap_weight(ts_mask, 64) != bitmap_weight(map, 64)) { in qmc_hdlc_xlate_ts_info()
/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/x86/kernel/cpu/
H A Dtopology.c71 #define domain_weight(_dom) bitmap_weight(apic_maps[_dom].map, MAX_LOCAL_APIC)
314 return bitmap_weight(apic_maps[at_level].map, lvlid); in topology_get_logical_id()
/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.h85 static inline unsigned int bitmap_weight(const unsigned long *src, unsigned int nbits) in bitmap_or()
72 static inline unsigned int bitmap_weight(const unsigned long *src, unsigned int nbits) bitmap_weight() function
/linux/include/linux/
H A Dbitmap.h476 unsigned int bitmap_weight(const unsigned long *src, unsigned int nbits) in bitmap_weight() function
526 w = bitmap_weight(bitmap, end); in bitmap_weight_from()
/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/iio/adc/
H A Dad7298.c111 scan_count = bitmap_weight(active_scan_mask, in ad7298_update_scan_mode()
/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/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/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/net/dsa/mv88e6xxx/
H A Dglobal1_atu.c384 shift = bitmap_weight(&mask, 16); in mv88e6xxx_g1_atu_move()
/linux/drivers/pwm/
H A Dpwm-lpc18xx-sct.c196 requested_events = bitmap_weight(&lpc18xx_pwm->event_map, in lpc18xx_pwm_config()

1234