Home
last modified time | relevance | path

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

12345

/openbmc/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 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()
H A Dsbitmap.c328 weight += bitmap_weight(&word->word, word_depth); in __sbitmap_weight()
330 weight += bitmap_weight(&word->cleared, word_depth); in __sbitmap_weight()
/openbmc/linux/drivers/gpu/drm/msm/disp/mdp5/
H A 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()
/openbmc/linux/drivers/net/wireless/ath/
H A Dspectral_common.h60 u8 bitmap_weight; member
/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/
H A 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()
/openbmc/linux/tools/include/linux/
H A Dbitmap.h66 static inline unsigned int bitmap_weight(const unsigned long *src, unsigned int nbits) in bitmap_weight() function
/openbmc/linux/tools/perf/util/
H A Dmem2node.c59 max += bitmap_weight(n->set, n->size); in mem2node__init()
/openbmc/linux/drivers/acpi/x86/
H A Dapple.c86 numvalid = bitmap_weight(valid, numprops); in acpi_extract_apple_properties()
/openbmc/linux/fs/omfs/
H A Dbitmap.c16 sum += nbits - bitmap_weight(sbi->s_imap[i], nbits); in omfs_count_free()
/openbmc/linux/mm/
H A Dcma_debug.c41 used = bitmap_weight(cma->bitmap, (int)cma_bitmap_maxno(cma)); in cma_used_get()
/openbmc/linux/drivers/gpu/drm/i915/gt/
H A Dintel_sseu.c28 return bitmap_weight(sseu->subslice_mask.xehp, in intel_sseu_subslice_total()
869 bitmap_weight(sseu->geometry_subslice_mask.xehp, in intel_sseu_print_ss_info()
872 bitmap_weight(sseu->compute_subslice_mask.xehp, in intel_sseu_print_ss_info()
/openbmc/linux/fs/ocfs2/cluster/
H A 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()
1840 if (bitmap_weight(o2hb_region_bitmap, O2NM_MAX_REGIONS) == 1) in o2hb_region_dev_store()
2115 if (bitmap_weight(o2hb_quorum_region_bitmap, in o2hb_heartbeat_group_drop_item()
2359 if (bitmap_weight(o2hb_quorum_region_bitmap, in o2hb_region_inc_user()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
H A Dmeter.c300 if (bitmap_weight(meters_obj->meters_map, total) == total - 1) { in __mlx5e_flow_meter_alloc()
346 n = bitmap_weight(meters_obj->meters_map, meters_obj->total_meters); in __mlx5e_flow_meter_free()
/openbmc/linux/net/sctp/
H A Dtsnmap.c261 pending_data -= bitmap_weight(map->tsn_map, gap + 1); in sctp_tsnmap_pending()
/openbmc/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()
/openbmc/linux/drivers/iio/adc/
H A Dcc10001_adc.c270 indio_dev->num_channels = bitmap_weight(&channel_map, in cc10001_adc_channel_init()
H A Dad7298.c112 scan_count = bitmap_weight(active_scan_mask, indio_dev->masklength); in ad7298_update_scan_mode()
/openbmc/linux/drivers/net/ethernet/intel/ice/
H A Dice_vf_lib.c1177 return (!bitmap_weight(vf->rxq_ena, ICE_MAX_RSS_QS_PER_VF) && in ice_vf_has_no_qs_ena()
1178 !bitmap_weight(vf->txq_ena, ICE_MAX_RSS_QS_PER_VF)); in ice_vf_has_no_qs_ena()
/openbmc/linux/fs/proc/
H A Dfd.c303 *count = bitmap_weight(fdt->open_fds, fdt->max_fds); in proc_readfd_count()
/openbmc/linux/drivers/net/wireless/realtek/rtw89/
H A Dchan.c206 weight = bitmap_weight(hal->entity_map, NUM_OF_RTW89_SUB_ENTITY); in rtw89_entity_recalc()
/openbmc/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()
/openbmc/linux/kernel/irq/
H A Dmatrix.c492 unsigned int nsys = bitmap_weight(m->system_map, m->matrix_bits); in irq_matrix_debug_show()
/openbmc/linux/drivers/pwm/
H A Dpwm-lpc18xx-sct.c207 requested_events = bitmap_weight(&lpc18xx_pwm->event_map, in lpc18xx_pwm_config()

12345