/linux-4.1.27/tools/include/asm-generic/bitops/ |
H A D | find.h | 18 #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 D | bitops.h | 44 #define find_first_bit find_first_bit macro
|
/linux-4.1.27/include/asm-generic/bitops/ |
H A D | find.h | 35 * 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 D | find_next_bit.c | 64 #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 D | ksyms.c | 26 EXPORT_SYMBOL(find_first_bit); variable
|
/linux-4.1.27/lib/ |
H A D | find_bit.c | 78 #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 D | bitmap.c | 658 for (pos = find_first_bit(buf, nbits); bitmap_ord_to_pos()
|
H A D | vsprintf.c | 859 rbot = cur = find_first_bit(bitmap, nr_bits); bitmap_list_string()
|
/linux-4.1.27/security/selinux/ss/ |
H A D | ebitmap.h | 52 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 D | ebitmap.c | 271 s = find_first_bit(n->maps, EBITMAP_SIZE); ebitmap_set_bit()
|
/linux-4.1.27/arch/avr32/kernel/ |
H A D | avr32_ksyms.c | 59 EXPORT_SYMBOL(find_first_bit); variable
|
/linux-4.1.27/tools/include/linux/ |
H A D | bitops.h | 36 for ((bit) = find_first_bit((addr), (size)); \
|
/linux-4.1.27/drivers/s390/cio/ |
H A D | idset.c | 65 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 D | bitops.h | 374 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 D | resend.c | 37 irq = find_first_bit(irqs_resend, nr_irqs); resend_irqs()
|
/linux-4.1.27/drivers/infiniband/hw/mlx5/ |
H A D | mem.c | 74 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 D | bitops.h | 274 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 D | ade7758_ring.c | 93 channel = find_first_bit(indio_dev->active_scan_mask, ade7758_ring_preenable()
|
/linux-4.1.27/arch/arm/mach-iop13xx/ |
H A D | msi.c | 108 j = find_first_bit(&status, 32); iop13xx_msi_handler()
|
/linux-4.1.27/arch/arm/include/asm/ |
H A D | bitops.h | 201 #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 D | events_2l.c | 29 * 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 D | events_fifo.c | 333 q = find_first_bit(&ready, EVTCHN_FIFO_MAX_QUEUES); evtchn_fifo_handle_events()
|
/linux-4.1.27/drivers/irqchip/ |
H A D | irq-mips-gic.c | 298 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 D | opal-async.c | 42 token = find_first_bit(opal_async_complete_map, opal_max_async_tokens); __opal_async_get_token()
|
/linux-4.1.27/include/linux/ |
H A D | bitmap.h | 75 * find_first_bit(addr, nbits) Position first set bit in *addr 287 return find_first_bit(src, nbits) == nbits; bitmap_empty()
|
H A D | bitops.h | 39 for ((bit) = find_first_bit((addr), (size)); \
|
H A D | intel-iommu.h | 97 #define cap_super_offset(c) (((find_first_bit(&cap_super_page_val(c), 4)) \
|
H A D | nodemask.h | 253 return min_t(int, MAX_NUMNODES, find_first_bit(srcp->bits, MAX_NUMNODES)); __first_node()
|
H A D | cpumask.h | 174 return find_first_bit(cpumask_bits(srcp), nr_cpumask_bits); cpumask_first()
|
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | alloc.c | 162 i = find_first_bit(pgdir->bitmap, MLX5_DB_PER_PAGE); mlx5_alloc_db_from_pgdir()
|
H A D | pagealloc.c | 199 n = find_first_bit(&fp->bitmask, 8 * sizeof(fp->bitmask)); alloc_4k()
|
H A D | cmd.c | 143 ret = find_first_bit(&cmd->bitmask, cmd->max_reg_cmds); alloc_ent()
|
/linux-4.1.27/drivers/edac/ |
H A D | i7300_edac.c | 369 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 D | i5400_edac.c | 556 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 D | i7core_edac.c | 1713 u32 errnum = find_first_bit(&error, 32); i7core_mce_output_error()
|
H A D | sb_edac.c | 2060 first_channel = find_first_bit(&channel_mask, NUM_CHANNELS); sbridge_mce_output_error()
|
/linux-4.1.27/drivers/iommu/ |
H A D | io-pgtable-arm.c | 907 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 D | intel-iommu.c | 588 iommu_id = find_first_bit(domain->iommu_bmp, g_num_of_iommus); domain_get_iommu()
|
/linux-4.1.27/fs/hfsplus/ |
H A D | xattr.c | 648 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 D | ad7266.c | 128 unsigned int nr = find_first_bit(scan_mask, indio_dev->masklength); ad7266_update_scan_mode()
|
H A D | ad_sigma_delta.c | 317 channel = find_first_bit(indio_dev->active_scan_mask, ad_sd_buffer_postenable()
|
/linux-4.1.27/drivers/misc/ |
H A D | cs5535-mfgpt.c | 175 t = find_first_bit(mfgpt->avail, max); cs5535_mfgpt_alloc_timer()
|
/linux-4.1.27/block/ |
H A D | blk-tag.c | 39 BUG_ON(find_first_bit(bqt->tag_map, bqt->max_depth) < blk_free_tags()
|
H A D | blk-mq-tag.c | 429 for (bit = find_first_bit(&bm->word, bm->depth); bt_for_each()
|
/linux-4.1.27/drivers/gpu/drm/msm/mdp/mdp5/ |
H A D | mdp5_smp.c | 150 int blk = find_first_bit(ps->pending, cnt); smp_request_block()
|
/linux-4.1.27/fs/ocfs2/cluster/ |
H A D | quorum.c | 113 lowest_hb = find_first_bit(qs->qs_hb_bm, O2NM_MAX_NODES); o2quo_make_decision()
|
/linux-4.1.27/net/phonet/ |
H A D | pn_dev.c | 203 saddr = find_first_bit(pnd->addrs, 64) << 2; phonet_address_get()
|
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/ |
H A D | port.c | 549 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 D | cmd.c | 1975 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 D | alloc.c | 708 i = find_first_bit(pgdir->bits[o], MLX4_DB_PER_PAGE >> o); mlx4_alloc_db_from_pgdir()
|
H A D | mr.c | 57 seg = find_first_bit(buddy->bits[o], m); mlx4_buddy_alloc()
|
H A D | fw.c | 323 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 D | kfd_device_queue_manager.c | 102 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 D | mac-ctxt.c | 321 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 D | rs.c | 1500 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 D | file.c | 326 event.irq.irq = find_first_bit(ctx->irq_bitmap, ctx->irq_count) + 1; afu_read()
|
/linux-4.1.27/drivers/usb/serial/ |
H A D | generic.c | 149 i = (int)find_first_bit(&port->write_urbs_free, usb_serial_generic_write_start()
|
/linux-4.1.27/arch/powerpc/platforms/pasemi/ |
H A D | dma_lib.c | 151 bit = find_first_bit(rxch_free, MAX_RXCH); pasemi_alloc_rx_chan()
|
/linux-4.1.27/arch/ia64/include/asm/ |
H A D | bitops.h | 8 * 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 D | vgic.c | 943 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 D | hardwall.c | 207 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 D | interrupt.c | 445 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 D | ixgbe_dcb_nl.c | 716 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 D | mthca_mr.c | 95 seg = find_first_bit(buddy->bits[o], m); mthca_buddy_alloc()
|
/linux-4.1.27/arch/arm/mach-omap2/ |
H A D | prm_common.c | 136 if (find_first_bit(pending, nr_irq) >= nr_irq) omap_prcm_irq_handler()
|
/linux-4.1.27/drivers/scsi/ |
H A D | scsi_debug.c | 816 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 D | mvumi.c | 909 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 D | xen-scsifront.c | 144 free = find_first_bit(info->shadow_free_bitmap, VSCSIIF_MAX_REQS); scsifront_get_rqid()
|
/linux-4.1.27/drivers/infiniband/hw/ipath/ |
H A D | ipath_file_ops.c | 446 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 D | qib_file_ops.c | 413 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 D | interrupts_and_traps.c | 216 irq = find_first_bit(blk, LGUEST_IRQS); interrupt_pending()
|
/linux-4.1.27/drivers/misc/sgi-gru/ |
H A D | grumain.c | 174 i = find_first_bit(p, mmax); reserve_resources()
|
/linux-4.1.27/drivers/rapidio/ |
H A D | rio-scan.c | 127 destid = find_first_bit(idtab->table, idtab->max); rio_destid_first()
|
/linux-4.1.27/drivers/pci/host/ |
H A D | pcie-rcar.c | 592 unsigned int index = find_first_bit(®, 32); rcar_pcie_msi_irq()
|
H A D | pci-tegra.c | 1181 unsigned int offset = find_first_bit(®, 32); tegra_pcie_msi_irq()
|
/linux-4.1.27/arch/powerpc/platforms/cell/spufs/ |
H A D | sched.c | 843 best = find_first_bit(spu_prio->bitmap, prio); grab_runnable_context()
|
/linux-4.1.27/drivers/net/wireless/ti/wlcore/ |
H A D | main.c | 263 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 D | cmd.c | 1962 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 D | tx.c | 369 off = find_first_bit(tid_info->bitmap, off); carl9170_tx_shift_bm()
|
/linux-4.1.27/drivers/misc/sgi-xp/ |
H A D | xpc_sn2.c | 1113 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 D | i40e_virtchnl_pf.c | 297 next_q = find_first_bit(&linklistmap, i40e_config_irq_link_list()
|
/linux-4.1.27/drivers/block/drbd/ |
H A D | drbd_bitmap.c | 1238 * find_first_bit returns int, we return unsigned long.
|
/linux-4.1.27/drivers/scsi/mpt2sas/ |
H A D | mpt2sas_scsih.c | 1877 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 D | main.c | 2590 first_port = find_first_bit(actv_ports.ports, dev->caps.num_ports); do_slave_init()
|
/linux-4.1.27/drivers/scsi/lpfc/ |
H A D | lpfc_hbadisc.c | 2101 last_index = find_first_bit(phba->fcf.fcf_rr_bmask, lpfc_sli4_fcf_pri_list_add()
|
H A D | lpfc_sli.c | 16223 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 D | megaraid_sas_base.c | 4438 instance->bar = find_first_bit(&bar_list, sizeof(unsigned long)); megasas_init_fw()
|
/linux-4.1.27/drivers/scsi/mpt3sas/ |
H A D | mpt3sas_scsih.c | 3158 handle = find_first_bit(ioc->blocking_handles, _scsih_check_topo_delete_events()
|
/linux-4.1.27/arch/x86/kvm/ |
H A D | x86.c | 6870 pending_vec = find_first_bit( kvm_arch_vcpu_ioctl_set_sregs()
|