Searched refs:find_next_bit (Results 1 - 83 of 83) sorted by relevance

/linux-4.1.27/tools/include/asm-generic/bitops/
H A Dfind.h4 #ifndef find_next_bit
6 * find_next_bit - find the next set bit in a memory region
14 extern unsigned long find_next_bit(const unsigned long *addr, unsigned long
/linux-4.1.27/tools/lib/util/
H A Dfind_next_bit.c0 /* find_next_bit.c: fallback find next bit implementation
3 * Copied from lib/find_next_bit.c to tools/lib/next_bit.c
20 #ifndef find_next_bit
24 unsigned long find_next_bit(const unsigned long *addr, unsigned long size, find_next_bit() function
/linux-4.1.27/include/asm-generic/bitops/
H A Dfind.h4 #ifndef find_next_bit
6 * find_next_bit - find the next set bit in a memory region
14 extern unsigned long find_next_bit(const unsigned long *addr, unsigned long
57 #define find_first_bit(addr, size) find_next_bit((addr), (size), 0)
H A Dle.h20 return find_next_bit(addr, size, offset); find_next_bit_le()
/linux-4.1.27/arch/unicore32/include/asm/
H A Dbitops.h42 #define find_next_bit find_next_bit macro
/linux-4.1.27/tools/include/linux/
H A Dbitops.h38 (bit) = find_next_bit((addr), (size), (bit) + 1))
42 for ((bit) = find_next_bit((addr), (size), (bit)); \
44 (bit) = find_next_bit((addr), (size), (bit) + 1))
/linux-4.1.27/lib/
H A Dfind_bit.c8 * (Inspired by David Howell's find_next_bit implementation)
24 #if !defined(find_next_bit) || !defined(find_next_zero_bit)
27 * This is a common helper function for find_next_bit and
57 #ifndef find_next_bit
61 unsigned long find_next_bit(const unsigned long *addr, unsigned long size, find_next_bit() function
66 EXPORT_SYMBOL(find_next_bit); variable
H A Dgenalloc.c250 bit = find_next_bit(chunk->bits, end_bit, 0); gen_pool_destroy()
553 int next_bit = find_next_bit(map, size, index + nr); gen_pool_best_fit()
H A Dbitmap.c324 i = find_next_bit(map, end, index); bitmap_find_next_zero_area_off()
660 pos = find_next_bit(buf, nbits, pos + 1)) bitmap_ord_to_pos()
H A Dradix-tree.c146 * Unrollable variant of find_next_bit() for constant size arrays.
155 return find_next_bit(addr, size, offset); radix_tree_find_next_bit()
H A Dvsprintf.c862 cur = find_next_bit(bitmap, nr_bits, cur + 1); bitmap_list_string()
/linux-4.1.27/arch/unicore32/kernel/
H A Dksyms.c29 EXPORT_SYMBOL(find_next_bit); variable
/linux-4.1.27/arch/avr32/kernel/
H A Davr32_ksyms.c60 EXPORT_SYMBOL(find_next_bit); variable
/linux-4.1.27/arch/mips/kvm/
H A Dinterrupt.c220 priority = find_next_bit(pending_clr, kvm_mips_deliver_interrupts()
232 priority = find_next_bit(pending, kvm_mips_deliver_interrupts()
/linux-4.1.27/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_pasid.c57 ok = (find_next_bit(pasid_bitmap, pasid_limit, new_limit) == kfd_set_pasid_limit()
/linux-4.1.27/arch/avr32/include/asm/
H A Dbitops.h278 unsigned long find_next_bit(const unsigned long *addr,
281 #define find_next_bit find_next_bit macro
/linux-4.1.27/include/linux/
H A Dbitops.h41 (bit) = find_next_bit((addr), (size), (bit) + 1))
45 for ((bit) = find_next_bit((addr), (size), (bit)); \
47 (bit) = find_next_bit((addr), (size), (bit) + 1))
H A Dbitmap.h77 * find_next_bit(addr, nbits, bit) Position next set bit in *addr >= bit
H A Dnodemask.h259 return min_t(int,MAX_NUMNODES,find_next_bit(srcp->bits, MAX_NUMNODES, n+1)); __next_node()
H A Dcpumask.h189 return find_next_bit(cpumask_bits(srcp), nr_cpumask_bits, n+1); cpumask_next()
/linux-4.1.27/arch/m68k/include/asm/
H A Dbitops.h399 static inline int find_next_bit(const unsigned long *vaddr, int size, find_next_bit() function
427 #define find_next_bit find_next_bit macro
/linux-4.1.27/security/selinux/ss/
H A Debitmap.h70 ofs = find_next_bit((*n)->maps, EBITMAP_SIZE, bit - (*n)->startbit + 1); ebitmap_next_positive()
/linux-4.1.27/arch/arm/include/asm/
H A Dbitops.h202 #define find_next_bit(p,sz,off) _find_next_bit_le(p,sz,off) macro
211 #define find_next_bit(p,sz,off) _find_next_bit_be(p,sz,off) macro
/linux-4.1.27/arch/powerpc/platforms/pasemi/
H A Ddma_lib.c132 bit = find_next_bit(txch_free, MAX_TXCH, start); pasemi_alloc_tx_chan()
392 bit = find_next_bit(flags_free, MAX_FLAGS, 0); pasemi_dma_alloc_flag()
457 bit = find_next_bit(fun_free, MAX_FLAGS, 0); pasemi_dma_alloc_fun()
/linux-4.1.27/drivers/staging/iio/
H A Diio_simple_dummy_buffer.c79 j = find_next_bit(indio_dev->active_scan_mask, iio_simple_dummy_trigger_h()
/linux-4.1.27/fs/omfs/
H A Dbitmap.c32 x = find_next_bit(*addr, nbits, bit); count_run()
/linux-4.1.27/arch/hexagon/kernel/
H A Dsmp.c55 msg = find_next_bit(ops, BITS_PER_LONG, msg+1); __handle_ipi()
/linux-4.1.27/arch/ia64/include/asm/
H A Dmmu_context.h94 ia64_ctx.limit = find_next_bit(ia64_ctx.bitmap, get_mmu_context()
H A Dbitops.h8 * 02/06/02 find_next_bit() and find_first_bit() added from Erich Focht's ia64
/linux-4.1.27/mm/
H A Dcma_debug.c61 end = find_next_bit(cma->bitmap, cma->count, start); cma_maxchunk_get()
H A Dpercpu.c254 *re = find_next_bit(chunk->populated, end, *rs + 1); pcpu_next_unpop()
260 *rs = find_next_bit(chunk->populated, end, *rs); pcpu_next_pop()
/linux-4.1.27/fs/ocfs2/dlm/
H A Ddlmdomain.c540 while ((node = find_next_bit(dlm->domain_map, O2NM_MAX_NODES, __dlm_print_nodes()
616 node = find_next_bit(dlm->domain_map, O2NM_MAX_NODES, node + 1); dlm_begin_exit_domain()
641 while ((node = find_next_bit(dlm->domain_map, O2NM_MAX_NODES, dlm_leave_domain()
1066 if (find_next_bit(node_map, O2NM_MAX_NODES, 0) >= O2NM_MAX_NODES) dlm_send_regions()
1089 while ((i = find_next_bit(node_map, O2NM_MAX_NODES, dlm_send_regions()
1238 if (find_next_bit(node_map, O2NM_MAX_NODES, 0) >= O2NM_MAX_NODES) dlm_send_nodeinfo()
1267 while ((i = find_next_bit(node_map, O2NM_MAX_NODES, dlm_send_nodeinfo()
1411 while ((node = find_next_bit(node_map, O2NM_MAX_NODES, dlm_send_join_cancels()
1544 while ((node = find_next_bit(node_map, O2NM_MAX_NODES, dlm_send_join_asserts()
1628 while ((node = find_next_bit(ctxt->live_map, O2NM_MAX_NODES, dlm_try_to_join_domain()
H A Ddlmmaster.c886 bit = find_next_bit(dlm->recovery_map, O2NM_MAX_NODES, 0); dlm_get_lock_resource()
937 bit = find_next_bit(dlm->recovery_map, O2NM_MAX_NODES, 0); dlm_get_lock_resource()
1104 bit = find_next_bit(mle->maybe_map, O2NM_MAX_NODES, 0); dlm_wait_for_lock_mastery()
1217 bit = find_next_bit(iter->diff_bm, O2NM_MAX_NODES, dlm_bitmap_diff_iter_next()
1266 int lowest = find_next_bit(mle->maybe_map, dlm_restart_lock_mastery()
1276 lowest = find_next_bit(mle->maybe_map, dlm_restart_lock_mastery()
1835 int bit = find_next_bit (mle->maybe_map, O2NM_MAX_NODES, 0); dlm_assert_master_handler()
1951 while ((nn = find_next_bit (mle->response_map, O2NM_MAX_NODES, dlm_assert_master_handler()
2145 bit = find_next_bit(nodemap, O2NM_MAX_NODES, dlm_assert_master_worker()
2459 node_ref = find_next_bit(res->refmap, O2NM_MAX_NODES, 0);
2890 bit = find_next_bit(res->refmap, O2NM_MAX_NODES, bit);
2938 noderef = find_next_bit(res->refmap, O2NM_MAX_NODES,
3236 bit = find_next_bit(mle->maybe_map, O2NM_MAX_NODES, 0); dlm_clean_block_mle()
3475 BUG_ON((find_next_bit(dlm->domain_map, O2NM_MAX_NODES, 0) < O2NM_MAX_NODES)); dlm_force_free_mles()
H A Ddlmdebug.c65 bit = find_next_bit(res->refmap, O2NM_MAX_NODES, bit); dlm_print_lockres_refmap()
277 while ((i = find_next_bit(nodemap, maxnodes, i + 1)) < maxnodes) stringify_nodemap()
H A Ddlmthread.c113 bit = find_next_bit(res->refmap, O2NM_MAX_NODES, 0); __dlm_lockres_unused()
H A Ddlmcommon.h1122 bit = find_next_bit(iter->node_map, O2NM_MAX_NODES, iter->curnode+1); dlm_node_iter_next()
H A Ddlmrecovery.c472 bit = find_next_bit (dlm->recovery_map, O2NM_MAX_NODES, 0); dlm_do_recovery()
759 num = find_next_bit (dlm->reco.node_map, O2NM_MAX_NODES, num); dlm_init_recovery_area()
/linux-4.1.27/fs/f2fs/
H A Dsegment.h323 ret = find_next_bit(free_i->free_segmap, max, segno); find_next_inuse()
339 next = find_next_bit(free_i->free_segmap, __set_free()
371 next = find_next_bit(free_i->free_segmap, __set_test_and_free()
H A Dgc.c280 segno = find_next_bit(p.dirty_segmap, MAIN_SEGS(sbi), p.offset); get_victim_by_default()
H A Dsegment.c68 * __find_rev_next(_zero)_bit is copied from lib/find_next_bit.c because
604 start = find_next_bit(prefree_map, MAIN_SEGS(sbi), end + 1); clear_prefree_segments()
/linux-4.1.27/arch/blackfin/mach-common/
H A Dsmp.c153 msg = find_next_bit(&pending, BITS_PER_LONG, msg + 1); ipi_handler_int1()
/linux-4.1.27/drivers/iommu/
H A Dio-pgtable-arm.c927 j = find_next_bit(&cfg->pgsize_bitmap, BITS_PER_LONG, j); arm_lpae_run_tests()
963 j = find_next_bit(&cfg->pgsize_bitmap, BITS_PER_LONG, j); arm_lpae_run_tests()
H A Dintel-iommu.c1726 agaw = find_next_bit(&sagaw, 5, agaw); domain_init()
/linux-4.1.27/drivers/md/bcache/
H A Dwriteback.c347 stripe = find_next_bit(dc->disk.full_dirty_stripes, refill_full_stripes()
H A Djournal.c201 r = find_next_bit(bitmap, ca->sb.njournal_buckets, l + 1); for_each_cache()
/linux-4.1.27/fs/ocfs2/
H A Dstack_o2cb.c304 while ((i = find_next_bit(hbmap, O2NM_MAX_NODES, o2cb_cluster_check()
/linux-4.1.27/drivers/pnp/
H A Dmanager.c162 res->start = find_next_bit(rule->map.bits, PNP_IRQ_NR, 16); pnp_assign_irq()
/linux-4.1.27/net/sctp/
H A Dtsnmap.c299 i = find_next_bit(map, len, off); sctp_tsnmap_find_gap_ack()
/linux-4.1.27/block/
H A Dblk-mq-tag.c431 bit = find_next_bit(&bm->word, bm->depth, bit + 1)) { bt_for_each()
H A Dblk-mq.c746 bit = find_next_bit(&bm->word, bm->depth, bit); flush_busy_ctxs()
/linux-4.1.27/fs/ocfs2/cluster/
H A Dnetdebug.c463 while ((i = find_next_bit(map, O2NM_MAX_NODES, i + 1)) < O2NM_MAX_NODES) o2net_fill_bitmap()
H A Dheartbeat.c975 while ((i = find_next_bit(live_node_bitmap, o2hb_do_disk_heartbeat()
1012 while((i = find_next_bit(configured_nodes, o2hb_do_disk_heartbeat()
1231 while ((i = find_next_bit(map, db->db_len, i + 1)) < db->db_len) o2hb_debug_open()
/linux-4.1.27/arch/ia64/mm/
H A Dtlb.c83 ia64_ctx.limit = find_next_bit(ia64_ctx.bitmap, wrap_mmu_context()
/linux-4.1.27/kernel/irq/
H A Dirqdesc.c535 return find_next_bit(allocated_irqs, nr_irqs, offset); irq_get_next_irq()
/linux-4.1.27/kernel/
H A Dpid.c230 offset = find_next_bit((map)->page, BITS_PER_PAGE, offset); next_pidmap()
H A Dsysctl.c2681 bit_a = find_next_bit(bitmap, bitmap_len, bit_b); proc_do_large_bitmap()
/linux-4.1.27/drivers/iio/
H A Dindustrialio-buffer.c1142 in_ind = find_next_bit(indio_dev->active_scan_mask, iio_buffer_update_demux()
1146 in_ind = find_next_bit(indio_dev->active_scan_mask, iio_buffer_update_demux()
/linux-4.1.27/drivers/net/can/
H A Dat91_can.c716 for (mb = find_next_bit(addr, get_mb_tx_first(priv), priv->rx_next); at91_poll_rx()
719 mb = find_next_bit(addr, get_mb_tx_first(priv), ++priv->rx_next)) { at91_poll_rx()
/linux-4.1.27/drivers/misc/
H A Dspear13xx_pcie_gadget.c475 pos = find_next_bit((ulong *)&size, 21, pos); pcie_gadget_store_bar0_size()
/linux-4.1.27/drivers/misc/mei/
H A Dhbm.c363 next_client_index = find_next_bit(dev->me_clients_map, MEI_CLIENTS_MAX, mei_hbm_prop_req()
/linux-4.1.27/drivers/pci/host/
H A Dpcie-designware.c174 while ((pos = find_next_bit(&val, 32, pos)) != 32) { dw_handle_msi_irq()
/linux-4.1.27/arch/x86/kernel/cpu/
H A Dperf_event_amd_ibs.c564 offset = find_next_bit(perf_ibs->offset_mask, perf_ibs_handle_irq()
/linux-4.1.27/arch/tile/kernel/
H A Dperf_event.c680 b = find_next_bit(&mask, max_cnt, 0); tile_pmu_add()
/linux-4.1.27/arch/powerpc/kvm/
H A Dbook3s.c355 priority = find_next_bit(pending, kvmppc_core_prepare_to_enter()
H A Dmpic.c299 irq = find_next_bit(q->queue, opp->max_irq, irq + 1); IRQ_check()
H A Dbooke.c662 priority = find_next_bit(pending, kvmppc_core_check_exceptions()
/linux-4.1.27/drivers/tty/
H A Dn_tty.c2062 eol = find_next_bit(ldata->read_flags, size, tail); canon_copy_from_read_buf()
2066 eol = find_next_bit(ldata->read_flags, more, 0); canon_copy_from_read_buf()
/linux-4.1.27/drivers/lguest/
H A Dinterrupts_and_traps.c217 *more = find_next_bit(blk, LGUEST_IRQS, irq+1); interrupt_pending()
/linux-4.1.27/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_netdev.c830 vid = find_next_bit(interface->active_vlans, vid_limit, ++vid); fm10k_find_next_vlan()
/linux-4.1.27/drivers/rapidio/
H A Drio-scan.c147 destid = find_next_bit(idtab->table, idtab->max, from); rio_destid_next()
/linux-4.1.27/fs/logfs/
H A Dsegment.c517 return find_next_bit(addr, size, offset); fnb()
H A Dreadwrite.c439 return find_next_bit(addr, size, offset); fnb()
/linux-4.1.27/drivers/misc/sgi-xp/
H A Dxpc_sn2.c1138 b = find_next_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.c321 next_q = find_next_bit(&linklistmap, i40e_config_irq_link_list()
/linux-4.1.27/drivers/block/
H A Dxen-blkfront.c307 if (find_next_bit(minors, end, minor) >= end) { xlbd_reserve_minors()
/linux-4.1.27/drivers/vhost/
H A Dscsi.c735 while ((vq = find_next_bit(signal, VHOST_SCSI_MAX_VQ, vq + 1)) vhost_scsi_complete_cmd_work()
/linux-4.1.27/arch/arm/common/
H A Dedma.c677 channel = find_next_bit(edma_cc[i]->edma_unused, edma_alloc_channel()
/linux-4.1.27/drivers/dma/
H A Dste_dma40.c1682 chan = find_next_bit((unsigned long *)regs, d40_handle_interrupt()
/linux-4.1.27/arch/powerpc/platforms/powernv/
H A Dpci-ioda.c336 while ((i = find_next_bit(pe_alloc, phb->ioda.total_pe, i + 1)) <
/linux-4.1.27/kernel/power/
H A Dsnapshot.c810 bit = find_next_bit(bm->cur.node->data, bits, memory_bm_next_pfn()
/linux-4.1.27/drivers/scsi/
H A Dscsi_debug.c2817 next = find_next_bit(map_storep, map_size, index); map_state()
/linux-4.1.27/drivers/block/mtip32xx/
H A Dmtip32xx.c2981 slot = find_next_bit(port->cmds_to_issue, mtip_service_thread()
/linux-4.1.27/drivers/scsi/lpfc/
H A Dlpfc_sli.c16316 next_fcf_index = find_next_bit(phba->fcf.fcf_rr_bmask, lpfc_sli4_fcf_rr_next_index_get()
16327 next_fcf_index = find_next_bit(phba->fcf.fcf_rr_bmask, lpfc_sli4_fcf_rr_next_index_get()

Completed in 4077 milliseconds