Home
last modified time | relevance | path

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

12345

/linux/drivers/gpu/drm/msm/disp/mdp5/
A Dmdp5_smp.c71 WARN_ON(bitmap_weight(cs, cnt) > 0); in smp_request_block()
80 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/lib/
A Dmemweight.c24 ret += bitmap_weight((unsigned long *)bitmap, in memweight()
A Dsbitmap.c320 weight += bitmap_weight(&word->word, word->depth); in __sbitmap_weight()
322 weight += bitmap_weight(&word->cleared, word->depth); in __sbitmap_weight()
A Dbitmap.c1015 w = bitmap_weight(new, nbits); in bitmap_remap()
1056 int w = bitmap_weight(new, bits); in bitmap_bitremap()
/linux/drivers/iio/dummy/
A Diio_simple_dummy_buffer.c75 i < bitmap_weight(indio_dev->active_scan_mask, in iio_simple_dummy_trigger_h()
/linux/drivers/net/wireless/ath/
A Dspectral_common.h60 u8 bitmap_weight; member
/linux/drivers/net/ethernet/mellanox/mlx4/
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()
/linux/arch/x86/include/asm/
A Dmpspec.h114 bitmap_weight((map).mask, MAX_LOCAL_APIC)
/linux/tools/include/linux/
A Dbitmap.h63 static inline int bitmap_weight(const unsigned long *src, unsigned int nbits) in bitmap_weight() function
/linux/drivers/acpi/x86/
A Dapple.c82 numvalid = bitmap_weight(valid, numprops); in acpi_extract_apple_properties()
/linux/tools/perf/util/
A Dmem2node.c59 max += bitmap_weight(n->set, n->size); in mem2node__init()
/linux/fs/omfs/
A Dbitmap.c16 sum += nbits - bitmap_weight(sbi->s_imap[i], nbits); in omfs_count_free()
/linux/mm/
A Dcma_debug.c41 used = bitmap_weight(cma->bitmap, (int)cma_bitmap_maxno(cma)); in cma_used_get()
/linux/fs/ocfs2/cluster/
A Dheartbeat.c298 failed = bitmap_weight(o2hb_failed_region_bitmap, in o2hb_write_timeout()
300 quorum = bitmap_weight(o2hb_quorum_region_bitmap, in o2hb_write_timeout()
877 if (bitmap_weight(o2hb_quorum_region_bitmap, in o2hb_set_quorum_device()
1848 if (bitmap_weight(o2hb_region_bitmap, O2NM_MAX_REGIONS) == 1) in o2hb_region_dev_store()
2123 if (bitmap_weight(o2hb_quorum_region_bitmap, in o2hb_heartbeat_group_drop_item()
2367 if (bitmap_weight(o2hb_quorum_region_bitmap, in o2hb_region_inc_user()
/linux/net/sctp/
A Dtsnmap.c261 pending_data -= bitmap_weight(map->tsn_map, gap + 1); in sctp_tsnmap_pending()
/linux/drivers/perf/
A Darm_pmu.c527 int enabled = bitmap_weight(hw_events->used_mask, armpmu->num_events); in armpmu_enable()
788 int enabled = bitmap_weight(hw_events->used_mask, armpmu->num_events); in cpu_pm_pmu_notify()
/linux/drivers/crypto/ccp/
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/
A Dad7298.c112 scan_count = bitmap_weight(active_scan_mask, indio_dev->masklength); in ad7298_update_scan_mode()
A Dcc10001_adc.c271 indio_dev->num_channels = bitmap_weight(&channel_map, in cc10001_adc_channel_init()
/linux/drivers/gpu/drm/amd/amdgpu/
A Damdgpu_gfx.c234 …dev_dbg(adev->dev, "mec queue bitmap weight=%d\n", bitmap_weight(adev->gfx.mec.queue_bitmap, AMDGP… in amdgpu_gfx_compute_queue_acquire()
256 bitmap_weight(adev->gfx.me.queue_bitmap, AMDGPU_MAX_GFX_QUEUES); in amdgpu_gfx_graphics_queue_acquire()
/linux/drivers/block/drbd/
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()
1653 count += bitmap_weight(bm, n * BITS_PER_LONG); in drbd_bm_e_weight()
/linux/drivers/net/dsa/mv88e6xxx/
A Dglobal1_atu.c334 shift = bitmap_weight(&mask, 16); in mv88e6xxx_g1_atu_move()
/linux/include/linux/
A Dbitmap.h404 static __always_inline int bitmap_weight(const unsigned long *src, unsigned int nbits) in bitmap_weight() function
/linux/drivers/pwm/
A Dpwm-lpc18xx-sct.c195 requested_events = bitmap_weight(&lpc18xx_pwm->event_map, in lpc18xx_pwm_config()
/linux/kernel/irq/
A Dmatrix.c492 unsigned int nsys = bitmap_weight(m->system_map, m->matrix_bits); in irq_matrix_debug_show()

Completed in 76 milliseconds

12345