Home
last modified time | relevance | path

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

12345

/linux-6.1.9/lib/
Dmemweight.c24 ret += bitmap_weight((unsigned long *)bitmap, in memweight()
Dfind_bit_benchmark.c120 unsigned long l, n, w = bitmap_weight(bitmap, len); in test_find_nth_bit()
Dbitmap.c968 return bitmap_weight(buf, pos); in bitmap_pos_to_ord()
1013 w = bitmap_weight(new, nbits); in bitmap_remap()
1054 int w = bitmap_weight(new, bits); in bitmap_bitremap()
Dsbitmap.c313 weight += bitmap_weight(&word->word, word_depth); in __sbitmap_weight()
315 weight += bitmap_weight(&word->cleared, word_depth); in __sbitmap_weight()
/linux-6.1.9/drivers/gpu/drm/msm/disp/mdp5/
Dmdp5_smp.c80 avail = cnt - bitmap_weight(state->state, cnt); in smp_request_block()
355 int inuse = bitmap_weight(cs, smp->blk_cnt); in mdp5_smp_dump()
367 bitmap_weight(state->state, smp->blk_cnt)); in mdp5_smp_dump()
/linux-6.1.9/drivers/net/wireless/ath/
Dspectral_common.h60 u8 bitmap_weight; member
/linux-6.1.9/arch/x86/include/asm/
Dmpspec.h114 bitmap_weight((map).mask, MAX_LOCAL_APIC)
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx4/
Dport.c1108 bitmap_weight(actv_ports.ports, dev->caps.num_ports) + 1; in mlx4_get_slave_num_gids()
1119 slave_gid -= bitmap_weight(slaves_pport_actv.slaves, in mlx4_get_slave_num_gids()
1122 vfs = bitmap_weight(slaves_pport.slaves, dev->persist->num_vfs + 1) - 1; in mlx4_get_slave_num_gids()
1145 bitmap_weight(actv_ports.ports, dev->caps.num_ports) + 1; in mlx4_get_base_gid_ix()
1156 slave_gid -= bitmap_weight(slaves_pport_actv.slaves, in mlx4_get_base_gid_ix()
1160 vfs = bitmap_weight(slaves_pport.slaves, dev->persist->num_vfs + 1) - 1; in mlx4_get_base_gid_ix()
1871 num_vfs = bitmap_weight(slaves_pport.slaves, in mlx4_get_slave_from_roce_gid()
1914 num_vfs_before += bitmap_weight( in mlx4_get_slave_from_roce_gid()
1931 bitmap_weight(actv_ports.ports, in mlx4_get_slave_from_roce_gid()
1944 slave_gid += bitmap_weight( in mlx4_get_slave_from_roce_gid()
/linux-6.1.9/tools/include/linux/
Dbitmap.h64 static inline unsigned int bitmap_weight(const unsigned long *src, unsigned int nbits) in bitmap_weight() function
/linux-6.1.9/drivers/acpi/x86/
Dapple.c83 numvalid = bitmap_weight(valid, numprops); in acpi_extract_apple_properties()
/linux-6.1.9/tools/perf/util/
Dmem2node.c59 max += bitmap_weight(n->set, n->size); in mem2node__init()
/linux-6.1.9/fs/omfs/
Dbitmap.c16 sum += nbits - bitmap_weight(sbi->s_imap[i], nbits); in omfs_count_free()
/linux-6.1.9/mm/
Dcma_debug.c41 used = bitmap_weight(cma->bitmap, (int)cma_bitmap_maxno(cma)); in cma_used_get()
/linux-6.1.9/drivers/gpu/drm/i915/gt/
Dintel_sseu.c27 return bitmap_weight(sseu->subslice_mask.xehp, in intel_sseu_subslice_total()
868 bitmap_weight(sseu->geometry_subslice_mask.xehp, in intel_sseu_print_ss_info()
871 bitmap_weight(sseu->compute_subslice_mask.xehp, in intel_sseu_print_ss_info()
/linux-6.1.9/drivers/net/wireless/realtek/rtw89/
Dchan.c165 weight = bitmap_weight(hal->entity_map, NUM_OF_RTW89_SUB_ENTITY); in rtw89_entity_recalc()
/linux-6.1.9/fs/ocfs2/cluster/
Dheartbeat.c296 failed = bitmap_weight(o2hb_failed_region_bitmap, in o2hb_write_timeout()
298 quorum = bitmap_weight(o2hb_quorum_region_bitmap, in o2hb_write_timeout()
872 if (bitmap_weight(o2hb_quorum_region_bitmap, in o2hb_set_quorum_device()
1841 if (bitmap_weight(o2hb_region_bitmap, O2NM_MAX_REGIONS) == 1) in o2hb_region_dev_store()
2116 if (bitmap_weight(o2hb_quorum_region_bitmap, in o2hb_heartbeat_group_drop_item()
2360 if (bitmap_weight(o2hb_quorum_region_bitmap, in o2hb_region_inc_user()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
Dmeter.c296 if (bitmap_weight(meters_obj->meters_map, total) == total - 1) { in __mlx5e_flow_meter_alloc()
338 n = bitmap_weight(meters_obj->meters_map, meters_obj->total_meters); in __mlx5e_flow_meter_free()
/linux-6.1.9/net/sctp/
Dtsnmap.c261 pending_data -= bitmap_weight(map->tsn_map, gap + 1); in sctp_tsnmap_pending()
/linux-6.1.9/drivers/iio/adc/
Dad7298.c112 scan_count = bitmap_weight(active_scan_mask, indio_dev->masklength); in ad7298_update_scan_mode()
Dcc10001_adc.c271 indio_dev->num_channels = bitmap_weight(&channel_map, in cc10001_adc_channel_init()
/linux-6.1.9/drivers/net/ethernet/intel/ice/
Dice_vf_lib.c837 return (!bitmap_weight(vf->rxq_ena, ICE_MAX_RSS_QS_PER_VF) && in ice_vf_has_no_qs_ena()
838 !bitmap_weight(vf->txq_ena, ICE_MAX_RSS_QS_PER_VF)); in ice_vf_has_no_qs_ena()
/linux-6.1.9/drivers/crypto/ccp/
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-6.1.9/drivers/net/dsa/mv88e6xxx/
Dglobal1_atu.c334 shift = bitmap_weight(&mask, 16); in mv88e6xxx_g1_atu_move()
/linux-6.1.9/drivers/block/drbd/
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()
1687 count += bitmap_weight(bm, n * BITS_PER_LONG); in drbd_bm_e_weight()
/linux-6.1.9/kernel/irq/
Dmatrix.c492 unsigned int nsys = bitmap_weight(m->system_map, m->matrix_bits); in irq_matrix_debug_show()

12345