Searched refs:find_first_bit (Results 1 - 89 of 89) sorted by relevance

/linux-4.1.27/tools/include/asm-generic/bitops/
H A Dfind.h18 #ifndef find_first_bit
21 * find_first_bit - find the first set bit in a memory region
28 extern unsigned long find_first_bit(const unsigned long *addr,
31 #endif /* find_first_bit */
/linux-4.1.27/arch/unicore32/include/asm/
H A Dbitops.h44 #define find_first_bit find_first_bit macro
/linux-4.1.27/include/asm-generic/bitops/
H A Dfind.h35 * find_first_bit - find the first set bit in a memory region
42 extern unsigned long find_first_bit(const unsigned long *addr,
57 #define find_first_bit(addr, size) find_next_bit((addr), (size), 0) macro
/linux-4.1.27/tools/lib/util/
H A Dfind_next_bit.c64 #ifndef find_first_bit
68 unsigned long find_first_bit(const unsigned long *addr, unsigned long size) find_first_bit() function
/linux-4.1.27/arch/unicore32/kernel/
H A Dksyms.c26 EXPORT_SYMBOL(find_first_bit); variable
/linux-4.1.27/lib/
H A Dfind_bit.c78 #ifndef find_first_bit
82 unsigned long find_first_bit(const unsigned long *addr, unsigned long size) find_first_bit() function
93 EXPORT_SYMBOL(find_first_bit); variable
H A Dbitmap.c658 for (pos = find_first_bit(buf, nbits); bitmap_ord_to_pos()
H A Dvsprintf.c859 rbot = cur = find_first_bit(bitmap, nr_bits); bitmap_list_string()
/linux-4.1.27/security/selinux/ss/
H A Debitmap.h52 ofs = find_first_bit((*n)->maps, EBITMAP_SIZE); ebitmap_start_positive()
75 ofs = find_first_bit((*n)->maps, EBITMAP_SIZE); ebitmap_next_positive()
H A Debitmap.c271 s = find_first_bit(n->maps, EBITMAP_SIZE); ebitmap_set_bit()
/linux-4.1.27/arch/avr32/kernel/
H A Davr32_ksyms.c59 EXPORT_SYMBOL(find_first_bit); variable
/linux-4.1.27/tools/include/linux/
H A Dbitops.h36 for ((bit) = find_first_bit((addr), (size)); \
/linux-4.1.27/drivers/s390/cio/
H A Didset.c65 bitnum = find_first_bit(set->bitmap, set->num_ssid * set->num_id); idset_get_first()
/linux-4.1.27/arch/m68k/include/asm/
H A Dbitops.h374 static inline int find_first_bit(const unsigned long *vaddr, unsigned size) find_first_bit() function
397 #define find_first_bit find_first_bit macro
425 return offset + find_first_bit(p, size - offset); find_next_bit()
/linux-4.1.27/kernel/irq/
H A Dresend.c37 irq = find_first_bit(irqs_resend, nr_irqs); resend_irqs()
/linux-4.1.27/drivers/infiniband/hw/mlx5/
H A Dmem.c74 m = find_first_bit(&tmp, sizeof(tmp)); mlx5_ib_cont_pages()
84 m = min_t(unsigned long, m, find_first_bit(&tmp, sizeof(tmp))); mlx5_ib_cont_pages()
92 m = find_first_bit(&tmp, sizeof(tmp)); mlx5_ib_cont_pages()
/linux-4.1.27/arch/avr32/include/asm/
H A Dbitops.h274 unsigned long find_first_bit(const unsigned long *addr,
276 #define find_first_bit find_first_bit macro
/linux-4.1.27/drivers/staging/iio/meter/
H A Dade7758_ring.c93 channel = find_first_bit(indio_dev->active_scan_mask, ade7758_ring_preenable()
/linux-4.1.27/arch/arm/mach-iop13xx/
H A Dmsi.c108 j = find_first_bit(&status, 32); iop13xx_msi_handler()
/linux-4.1.27/arch/arm/include/asm/
H A Dbitops.h201 #define find_first_bit(p,sz) _find_first_bit_le(p,sz) macro
210 #define find_first_bit(p,sz) _find_first_bit_be(p,sz) macro
/linux-4.1.27/drivers/xen/events/
H A Devents_2l.c29 * test_bit/find_first_bit and friends but not __ffs) and to pass
39 #define EVTCHN_FIRST_BIT(w) find_first_bit(BM(&(w)), BITS_PER_EVTCHN_WORD)
H A Devents_fifo.c333 q = find_first_bit(&ready, EVTCHN_FIFO_MAX_QUEUES); evtchn_fifo_handle_events()
/linux-4.1.27/drivers/irqchip/
H A Dirq-mips-gic.c298 intr = find_first_bit(pending, gic_shared_intrs); gic_handle_shared_int()
309 intr = find_first_bit(pending, gic_shared_intrs); gic_handle_shared_int()
447 intr = find_first_bit(&pending, GIC_NUM_LOCAL_INTRS); gic_handle_local_int()
458 intr = find_first_bit(&pending, GIC_NUM_LOCAL_INTRS); gic_handle_local_int()
/linux-4.1.27/arch/powerpc/platforms/powernv/
H A Dopal-async.c42 token = find_first_bit(opal_async_complete_map, opal_max_async_tokens); __opal_async_get_token()
/linux-4.1.27/include/linux/
H A Dbitmap.h75 * find_first_bit(addr, nbits) Position first set bit in *addr
287 return find_first_bit(src, nbits) == nbits; bitmap_empty()
H A Dbitops.h39 for ((bit) = find_first_bit((addr), (size)); \
H A Dintel-iommu.h97 #define cap_super_offset(c) (((find_first_bit(&cap_super_page_val(c), 4)) \
H A Dnodemask.h253 return min_t(int, MAX_NUMNODES, find_first_bit(srcp->bits, MAX_NUMNODES)); __first_node()
H A Dcpumask.h174 return find_first_bit(cpumask_bits(srcp), nr_cpumask_bits); cpumask_first()
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx5/core/
H A Dalloc.c162 i = find_first_bit(pgdir->bitmap, MLX5_DB_PER_PAGE); mlx5_alloc_db_from_pgdir()
H A Dpagealloc.c199 n = find_first_bit(&fp->bitmask, 8 * sizeof(fp->bitmask)); alloc_4k()
H A Dcmd.c143 ret = find_first_bit(&cmd->bitmask, cmd->max_reg_cmds); alloc_ent()
/linux-4.1.27/drivers/edac/
H A Di7300_edac.c369 errnum = find_first_bit(&errors, i7300_process_error_global()
385 errnum = find_first_bit(&errors, i7300_process_error_global()
428 errnum = find_first_bit(&errors, i7300_process_fbd_error()
464 errnum = find_first_bit(&errors, i7300_process_fbd_error()
H A Di5400_edac.c556 errnum = find_first_bit(&allErrors, ARRAY_SIZE(error_name)); i5400_proccess_non_recoverable_info()
622 errnum = find_first_bit(&allErrors, ARRAY_SIZE(error_name)); i5400_process_nonfatal_error_info()
644 errnum = find_first_bit(&allErrors, ARRAY_SIZE(error_name)); i5400_process_nonfatal_error_info()
H A Di7core_edac.c1713 u32 errnum = find_first_bit(&error, 32); i7core_mce_output_error()
H A Dsb_edac.c2060 first_channel = find_first_bit(&channel_mask, NUM_CHANNELS); sbridge_mce_output_error()
/linux-4.1.27/drivers/iommu/
H A Dio-pgtable-arm.c907 j = find_first_bit(&cfg->pgsize_bitmap, BITS_PER_LONG); arm_lpae_run_tests()
944 j = find_first_bit(&cfg->pgsize_bitmap, BITS_PER_LONG); arm_lpae_run_tests()
H A Dintel-iommu.c588 iommu_id = find_first_bit(domain->iommu_bmp, g_num_of_iommus); domain_get_iommu()
/linux-4.1.27/fs/hfsplus/
H A Dxattr.c648 found_bit = find_first_bit((void *)folder_finder_info, len*8); hfsplus_listxattr_finder_info()
655 found_bit = find_first_bit((void *)file_finder_info, len*8); hfsplus_listxattr_finder_info()
/linux-4.1.27/drivers/iio/adc/
H A Dad7266.c128 unsigned int nr = find_first_bit(scan_mask, indio_dev->masklength); ad7266_update_scan_mode()
H A Dad_sigma_delta.c317 channel = find_first_bit(indio_dev->active_scan_mask, ad_sd_buffer_postenable()
/linux-4.1.27/drivers/misc/
H A Dcs5535-mfgpt.c175 t = find_first_bit(mfgpt->avail, max); cs5535_mfgpt_alloc_timer()
/linux-4.1.27/block/
H A Dblk-tag.c39 BUG_ON(find_first_bit(bqt->tag_map, bqt->max_depth) < blk_free_tags()
H A Dblk-mq-tag.c429 for (bit = find_first_bit(&bm->word, bm->depth); bt_for_each()
/linux-4.1.27/drivers/gpu/drm/msm/mdp/mdp5/
H A Dmdp5_smp.c150 int blk = find_first_bit(ps->pending, cnt); smp_request_block()
/linux-4.1.27/fs/ocfs2/cluster/
H A Dquorum.c113 lowest_hb = find_first_bit(qs->qs_hb_bm, O2NM_MAX_NODES); o2quo_make_decision()
/linux-4.1.27/net/phonet/
H A Dpn_dev.c203 saddr = find_first_bit(pnd->addrs, 64) << 2; phonet_address_get()
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
H A Dport.c549 max_port_p_one = find_first_bit(actv_ports.ports, dev->caps.num_ports) + mlx4_get_slave_num_gids()
586 max_port_p_one = find_first_bit(actv_ports.ports, dev->caps.num_ports) + mlx4_get_base_gid_ix()
1250 max_port_p_one = find_first_bit( mlx4_get_slave_from_roce_gid()
H A Dcmd.c1975 int min_port = find_first_bit(actv_ports.ports, mlx4_master_activate_admin_state()
2027 int min_port = find_first_bit(actv_ports.ports, mlx4_master_deactivate_admin_state()
2727 n = find_first_bit(actv_ports.ports, dev->caps.num_ports); mlx4_slave_convert_port()
2740 find_first_bit(actv_ports.ports, dev->caps.num_ports); mlx4_phys_to_slave_port()
2792 int min_port = find_first_bit(actv_ports.ports, dev->caps.num_ports) mlx4_slaves_closest_port()
H A Dalloc.c708 i = find_first_bit(pgdir->bits[o], MLX4_DB_PER_PAGE >> o); mlx4_alloc_db_from_pgdir()
H A Dmr.c57 seg = find_first_bit(buddy->bits[o], m); mlx4_buddy_alloc()
H A Dfw.c323 find_first_bit(actv_ports.ports, dev->caps.num_ports); mlx4_QUERY_FUNC_CAP_wrapper()
1146 first_port = find_first_bit(actv_ports.ports, dev->caps.num_ports); mlx4_QUERY_DEV_CAP_wrapper()
/linux-4.1.27/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_device_queue_manager.c102 bit = find_first_bit((unsigned long *)&dqm->vmid_bitmap, CIK_VMID_NUM); allocate_vmid()
205 bit = find_first_bit( allocate_hqd()
601 bit = find_first_bit((unsigned long *)&dqm->sdma_bitmap, allocate_sdma_queue()
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/
H A Dmac-ctxt.c321 mvmvif->tsf_id = find_first_bit(data.available_tsf_ids, iwl_mvm_mac_ctxt_recalc_tsf_id()
393 mvmvif->id = find_first_bit(data.available_mac_ids, iwl_mvm_mac_ctxt_allocate_resources()
404 mvmvif->tsf_id = find_first_bit(data.available_tsf_ids, iwl_mvm_mac_ctxt_allocate_resources()
H A Drs.c1500 rate_idx = find_first_bit(&rate_mask, BITS_PER_LONG); rs_get_best_rate()
2476 rate->index = find_first_bit(&lq_sta->active_legacy_rate, rs_get_initial_rate()
/linux-4.1.27/drivers/misc/cxl/
H A Dfile.c326 event.irq.irq = find_first_bit(ctx->irq_bitmap, ctx->irq_count) + 1; afu_read()
/linux-4.1.27/drivers/usb/serial/
H A Dgeneric.c149 i = (int)find_first_bit(&port->write_urbs_free, usb_serial_generic_write_start()
/linux-4.1.27/arch/powerpc/platforms/pasemi/
H A Ddma_lib.c151 bit = find_first_bit(rxch_free, MAX_RXCH); pasemi_alloc_rx_chan()
/linux-4.1.27/arch/ia64/include/asm/
H A Dbitops.h8 * 02/06/02 find_next_bit() and find_first_bit() added from Erich Focht's ia64
/linux-4.1.27/virt/kvm/arm/
H A Dvgic.c943 active_private = find_first_bit(act_percpu, VGIC_NR_PRIVATE_IRQS); compute_active_for_cpu()
944 active_shared = find_first_bit(act_shared, nr_shared); compute_active_for_cpu()
973 pending_private = find_first_bit(pend_percpu, VGIC_NR_PRIVATE_IRQS); compute_pending_for_cpu()
974 pending_shared = find_first_bit(pend_shared, nr_shared); compute_pending_for_cpu()
/linux-4.1.27/arch/tile/kernel/
H A Dhardwall.c207 ulhc = find_first_bit(cpumask_bits(mask), nr_cpumask_bits); check_rectangle()
533 info->id = find_first_bit(cpumask_bits(&mask), nr_cpumask_bits); hardwall_create()
/linux-4.1.27/arch/s390/kvm/
H A Dinterrupt.c445 cpu_addr = find_first_bit(li->sigp_emerg_pending, KVM_MAX_VCPUS); __deliver_emergency_signal()
947 irq_type = find_first_bit(&irqs, IRQ_PEND_COUNT); kvm_s390_deliver_pending_interrupts()
1379 sigcpu = find_first_bit(fi->idle_mask, KVM_MAX_VCPUS); __inject_vm()
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_dcb_nl.c716 int qos = app_mask ? find_first_bit(&app_mask, 8) : 0; ixgbe_dcbnl_ieee_delapp()
/linux-4.1.27/drivers/infiniband/hw/mthca/
H A Dmthca_mr.c95 seg = find_first_bit(buddy->bits[o], m); mthca_buddy_alloc()
/linux-4.1.27/arch/arm/mach-omap2/
H A Dprm_common.c136 if (find_first_bit(pending, nr_irq) >= nr_irq) omap_prcm_irq_handler()
/linux-4.1.27/drivers/scsi/
H A Dscsi_debug.c816 k = find_first_bit(devip->uas_bm, SDEBUG_NUM_UAS); check_readiness()
4221 f = find_first_bit(queued_in_use_bm, scsi_debug_max_queue); scsi_debug_show_info()
4247 k = find_first_bit(queued_in_use_bm, delay_store()
4280 k = find_first_bit(queued_in_use_bm, ndelay_store()
4706 k = find_first_bit(queued_in_use_bm, host_lock_store()
5255 SDEBUG_NUM_UAS != find_first_bit(devip->uas_bm, SDEBUG_NUM_UAS)) { scsi_debug_queuecommand()
H A Dmvumi.c909 hs_page4->ob_depth = find_first_bit((unsigned long *) mvumi_hs_build_page()
912 hs_page4->ib_depth = find_first_bit((unsigned long *) mvumi_hs_build_page()
H A Dxen-scsifront.c144 free = find_first_bit(info->shadow_free_bitmap, VSCSIIF_MAX_REQS); scsifront_get_rqid()
/linux-4.1.27/drivers/infiniband/hw/ipath/
H A Dipath_file_ops.c446 tid = find_first_bit((const unsigned long *)tidmap, limit); ipath_tid_update()
552 tid = find_first_bit(tidmap, limit); ipath_tid_free()
559 * any set, use find_first_bit again. That's mainly to ipath_tid_free()
/linux-4.1.27/drivers/infiniband/hw/qib/
H A Dqib_file_ops.c413 tid = find_first_bit((const unsigned long *)tidmap, limit); qib_tid_update()
518 tid = find_first_bit(tidmap, limit); qib_tid_free()
522 * any set, use find_first_bit again. That's mainly to qib_tid_free()
/linux-4.1.27/drivers/lguest/
H A Dinterrupts_and_traps.c216 irq = find_first_bit(blk, LGUEST_IRQS); interrupt_pending()
/linux-4.1.27/drivers/misc/sgi-gru/
H A Dgrumain.c174 i = find_first_bit(p, mmax); reserve_resources()
/linux-4.1.27/drivers/rapidio/
H A Drio-scan.c127 destid = find_first_bit(idtab->table, idtab->max); rio_destid_first()
/linux-4.1.27/drivers/pci/host/
H A Dpcie-rcar.c592 unsigned int index = find_first_bit(&reg, 32); rcar_pcie_msi_irq()
H A Dpci-tegra.c1181 unsigned int offset = find_first_bit(&reg, 32); tegra_pcie_msi_irq()
/linux-4.1.27/arch/powerpc/platforms/cell/spufs/
H A Dsched.c843 best = find_first_bit(spu_prio->bitmap, prio); grab_runnable_context()
/linux-4.1.27/drivers/net/wireless/ti/wlcore/
H A Dmain.c263 if (find_first_bit(wl->roc_map, WL12XX_MAX_ROLES) < WL12XX_MAX_ROLES) { wl12xx_tx_watchdog_work()
3669 if (find_first_bit(wl->roc_map, WL12XX_MAX_ROLES) < WL12XX_MAX_ROLES) { wl1271_op_hw_scan()
5031 if (find_first_bit(wl->roc_map, wlcore_roc_if_possible()
5178 if (find_first_bit(wl->roc_map, wl12xx_update_sta_state()
5544 find_first_bit(wl->roc_map, wlcore_op_remain_on_channel()
H A Dcmd.c1962 if (find_first_bit(wl->roc_map, WL12XX_MAX_ROLES) >= WL12XX_MAX_ROLES) wl12xx_croc()
/linux-4.1.27/drivers/net/wireless/ath/carl9170/
H A Dtx.c369 off = find_first_bit(tid_info->bitmap, off); carl9170_tx_shift_bm()
/linux-4.1.27/drivers/misc/sgi-xp/
H A Dxpc_sn2.c1113 b = find_first_bit(&nasid_mask_long, BITS_PER_LONG); xpc_identify_activate_IRQ_sender_sn2()
/linux-4.1.27/drivers/net/ethernet/intel/i40e/
H A Di40e_virtchnl_pf.c297 next_q = find_first_bit(&linklistmap, i40e_config_irq_link_list()
/linux-4.1.27/drivers/block/drbd/
H A Ddrbd_bitmap.c1238 * find_first_bit returns int, we return unsigned long.
/linux-4.1.27/drivers/scsi/mpt2sas/
H A Dmpt2sas_scsih.c1877 stripe_exp = find_first_bit(&stripe_sz, 32); _scsih_init_warpdrive_properties()
1888 block_exp = find_first_bit(&block_sz, 16); _scsih_init_warpdrive_properties()
3463 handle = find_first_bit(ioc->blocking_handles, _scsih_check_topo_delete_events()
/linux-4.1.27/drivers/infiniband/hw/mlx4/
H A Dmain.c2590 first_port = find_first_bit(actv_ports.ports, dev->caps.num_ports); do_slave_init()
/linux-4.1.27/drivers/scsi/lpfc/
H A Dlpfc_hbadisc.c2101 last_index = find_first_bit(phba->fcf.fcf_rr_bmask, lpfc_sli4_fcf_pri_list_add()
H A Dlpfc_sli.c16223 last_index = find_first_bit(phba->fcf.fcf_rr_bmask, lpfc_check_next_fcf_pri_level()
/linux-4.1.27/drivers/scsi/megaraid/
H A Dmegaraid_sas_base.c4438 instance->bar = find_first_bit(&bar_list, sizeof(unsigned long)); megasas_init_fw()
/linux-4.1.27/drivers/scsi/mpt3sas/
H A Dmpt3sas_scsih.c3158 handle = find_first_bit(ioc->blocking_handles, _scsih_check_topo_delete_events()
/linux-4.1.27/arch/x86/kvm/
H A Dx86.c6870 pending_vec = find_first_bit( kvm_arch_vcpu_ioctl_set_sregs()

Completed in 3584 milliseconds