Home
last modified time | relevance | path

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

123

/drivers/gpu/drm/msm/disp/mdp5/
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()
/drivers/iio/dummy/
Diio_simple_dummy_buffer.c75 i < bitmap_weight(indio_dev->active_scan_mask, in iio_simple_dummy_trigger_h()
/drivers/net/wireless/ath/
Dspectral_common.h61 u8 bitmap_weight; member
/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()
Dcmd.c1967 bitmap_weight(port_qos->priority_bm, MLX4_NUM_UP)); in mlx4_allocate_port_vpps()
2007 bitmap_weight(actv_ports.ports, priv->dev.caps.num_ports); in mlx4_master_activate_admin_state()
2073 bitmap_weight(actv_ports.ports, priv->dev.caps.num_ports); in mlx4_master_deactivate_admin_state()
2797 unsigned m = bitmap_weight(actv_ports.ports, dev->caps.num_ports); in mlx4_slave_convert_port()
2870 bitmap_weight(actv_ports.ports, dev->caps.num_ports); in mlx4_slaves_closest_port()
3412 bitmap_weight(actv_ports.ports, priv->dev.caps.num_ports); in mlx4_vf_set_enable_smi_admin()
/drivers/acpi/x86/
Dapple.c82 numvalid = bitmap_weight(valid, numprops); in acpi_extract_apple_properties()
/drivers/lightnvm/
Dpblk-map.c187 bitmap_weight(d_line->blk_bitmap, lm->blk_per_line)) { in pblk_map_erase_rq()
Dpblk-sysfs.c264 meta_weight = bitmap_weight(&l_mg->meta_bitmap, in pblk_sysfs_lines()
269 map_weight = bitmap_weight(l_mg->data_line->map_bitmap, in pblk_sysfs_lines()
/drivers/perf/
Darm_pmu.c525 int enabled = bitmap_weight(hw_events->used_mask, armpmu->num_events); in armpmu_enable()
815 int enabled = bitmap_weight(hw_events->used_mask, armpmu->num_events); in cpu_pm_pmu_notify()
/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()
/drivers/gpu/drm/amd/amdgpu/
Damdgpu_gfx.c231 …dev_dbg(adev->dev, "mec queue bitmap weight=%d\n", bitmap_weight(adev->gfx.mec.queue_bitmap, AMDGP… in amdgpu_gfx_compute_queue_acquire()
253 bitmap_weight(adev->gfx.me.queue_bitmap, AMDGPU_MAX_GFX_QUEUES); in amdgpu_gfx_graphics_queue_acquire()
/drivers/iio/adc/
Dad7298.c113 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()
/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()
1653 count += bitmap_weight(bm, n * BITS_PER_LONG); in drbd_bm_e_weight()
/drivers/net/dsa/mv88e6xxx/
Dglobal1_atu.c334 shift = bitmap_weight(&mask, 16); in mv88e6xxx_g1_atu_move()
/drivers/perf/hisilicon/
Dhisi_uncore_pmu.c337 int enabled = bitmap_weight(hisi_pmu->pmu_events.used_mask, in hisi_uncore_pmu_enable()
/drivers/pwm/
Dpwm-lpc18xx-sct.c195 requested_events = bitmap_weight(&lpc18xx_pwm->event_map, in lpc18xx_pwm_config()
/drivers/input/rmi4/
Drmi_driver.c613 rdesc->num_registers = bitmap_weight(rdesc->presense_map, in rmi_read_register_desc()
676 item->num_subpackets = bitmap_weight(item->subpacket_map, in rmi_read_register_desc()
/drivers/iio/health/
Dmax30102.c295 unsigned int measurements = bitmap_weight(indio_dev->active_scan_mask, in max30102_interrupt_handler()
/drivers/thermal/intel/
Dintel_powerclamp.c562 if (bitmap_weight(cpu_clamping_mask, num_possible_cpus())) { in end_power_clamp()
/drivers/iio/
Dindustrialio-trigger.c298 = (bitmap_weight(trig->pool, in iio_trigger_detach_poll_func()
/drivers/dma/ti/
Dk3-udma.c3328 ch_count -= bitmap_weight(ud->tchan_map, ud->tchan_cnt); in udma_setup_resources()
3329 ch_count -= bitmap_weight(ud->rchan_map, ud->rchan_cnt); in udma_setup_resources()
3340 ud->tchan_cnt - bitmap_weight(ud->tchan_map, ud->tchan_cnt), in udma_setup_resources()
3341 ud->rchan_cnt - bitmap_weight(ud->rchan_map, ud->rchan_cnt), in udma_setup_resources()
3342 ud->rflow_cnt - bitmap_weight(ud->rflow_gp_map, in udma_setup_resources()
/drivers/net/ethernet/qlogic/qed/
Dqed_rdma.c321 int weight = bitmap_weight(bmap->bitmap, bmap->max_count); in qed_rdma_bmap_free()
338 if (bitmap_weight((unsigned long *)&pmap[item], 64 * 8)) in qed_rdma_bmap_free()
352 (bitmap_weight((unsigned long *)&pmap[item], in qed_rdma_bmap_free()
/drivers/staging/iio/impedance-analyzer/
Dad5933.c645 int scan_count = bitmap_weight(indio_dev->active_scan_mask, in ad5933_work()
/drivers/net/ethernet/mellanox/mlx5/core/
Dfs_counters.c485 return bitmap_weight(bulk->bitmask, bulk->bulk_len); in mlx5_fc_bulk_get_free_fcs_amount()

123