Home
last modified time | relevance | path

Searched refs:test_bit (Results 1 – 25 of 57) sorted by relevance

123

/include/linux/
Dbit_spinlock.h31 } while (test_bit(bitnum, addr)); in bit_spin_lock()
60 BUG_ON(!test_bit(bitnum, addr)); in bit_spin_unlock()
77 BUG_ON(!test_bit(bitnum, addr)); in __bit_spin_unlock()
92 return test_bit(bitnum, addr); in bit_spin_is_locked()
Dkhugepaged.h35 if (test_bit(MMF_VM_HUGEPAGE, &oldmm->flags)) in khugepaged_fork()
42 if (test_bit(MMF_VM_HUGEPAGE, &mm->flags)) in khugepaged_exit()
49 if (!test_bit(MMF_VM_HUGEPAGE, &vma->vm_mm->flags)) in khugepaged_enter()
53 !test_bit(MMF_DISABLE_THP, &vma->vm_mm->flags)) in khugepaged_enter()
Dwait_bit.h79 if (!test_bit(bit, word)) in wait_on_bit()
104 if (!test_bit(bit, word)) in wait_on_bit_io()
131 if (!test_bit(bit, word)) in wait_on_bit_timeout()
159 if (!test_bit(bit, word)) in wait_on_bit_action()
Doom.h75 return test_bit(MMF_OOM_VICTIM, &mm->flags); in mm_is_oom_victim()
93 if (unlikely(test_bit(MMF_UNSTABLE, &mm->flags))) in check_stable_address_space()
Datmdev.h74 (test_bit(ATM_VF_READY,&(flags)) ? ATM_VS_CONNECTED : \
75 test_bit(ATM_VF_RELEASED,&(flags)) ? ATM_VS_CLOSING : \
76 test_bit(ATM_VF_LISTEN,&(flags)) ? ATM_VS_LISTEN : \
77 test_bit(ATM_VF_REGIS,&(flags)) ? ATM_VS_INUSE : \
78 test_bit(ATM_VF_BOUND,&(flags)) ? ATM_VS_BOUND : ATM_VS_IDLE)
288 BUG_ON(!test_bit(ATM_DF_REMOVED, &dev->flags)); in atm_dev_put()
Dksm.h29 if (test_bit(MMF_VM_MERGEABLE, &oldmm->flags)) in ksm_fork()
36 if (test_bit(MMF_VM_MERGEABLE, &mm->flags)) in ksm_exit()
Dpage_idle.h55 return test_bit(PAGE_EXT_YOUNG, &page_ext->flags); in page_is_young()
85 return test_bit(PAGE_EXT_IDLE, &page_ext->flags); in page_is_idle()
Dfdtable.h37 return test_bit(fd, fdt->close_on_exec); in close_on_exec()
42 return test_bit(fd, fdt->open_fds); in fd_is_open()
Dwatchdog.h131 return test_bit(WDOG_ACTIVE, &wdd->status); in watchdog_active()
140 return test_bit(WDOG_HW_RUNNING, &wdd->status); in watchdog_hw_running()
Ddma-fence.h303 if (test_bit(DMA_FENCE_FLAG_SIGNALED_BIT, &fence->flags)) in dma_fence_is_signaled_locked()
331 if (test_bit(DMA_FENCE_FLAG_SIGNALED_BIT, &fence->flags)) in dma_fence_is_signaled()
436 WARN_ON(test_bit(DMA_FENCE_FLAG_SIGNALED_BIT, &fence->flags)); in dma_fence_set_error()
Dblkdev.h687 if (test_bit(flag, &q->queue_flags)) { in queue_flag_test_and_clear()
700 if (!test_bit(flag, &q->queue_flags)) { in queue_flag_test_and_set()
731 #define blk_queue_tagged(q) test_bit(QUEUE_FLAG_QUEUED, &(q)->queue_flags)
732 #define blk_queue_stopped(q) test_bit(QUEUE_FLAG_STOPPED, &(q)->queue_flags)
733 #define blk_queue_dying(q) test_bit(QUEUE_FLAG_DYING, &(q)->queue_flags)
734 #define blk_queue_dead(q) test_bit(QUEUE_FLAG_DEAD, &(q)->queue_flags)
735 #define blk_queue_bypass(q) test_bit(QUEUE_FLAG_BYPASS, &(q)->queue_flags)
736 #define blk_queue_init_done(q) test_bit(QUEUE_FLAG_INIT_DONE, &(q)->queue_flags)
737 #define blk_queue_nomerges(q) test_bit(QUEUE_FLAG_NOMERGES, &(q)->queue_flags)
739 test_bit(QUEUE_FLAG_NOXMERGES, &(q)->queue_flags)
[all …]
Dtty.h391 test_bit(TTY_LDISC_CHANGING, &tty->flags); in tty_io_nonblock()
396 return test_bit(TTY_IO_ERROR, &tty->flags); in tty_io_error()
401 return test_bit(TTY_THROTTLED, &tty->flags); in tty_throttled()
608 return test_bit(TTY_PORT_CTS_FLOW, &port->iflags); in tty_port_cts_enabled()
621 return test_bit(TTY_PORT_ACTIVE, &port->iflags); in tty_port_active()
634 return test_bit(TTY_PORT_CHECK_CD, &port->iflags); in tty_port_check_carrier()
647 return test_bit(TTY_PORT_SUSPENDED, &port->iflags); in tty_port_suspended()
660 return test_bit(TTY_PORT_INITIALIZED, &port->iflags); in tty_port_initialized()
673 return test_bit(TTY_PORT_KOPENED, &port->iflags); in tty_port_kopened()
Dfscache-cache.h390 return test_bit(FSCACHE_OBJECT_IS_LIVE, &object->flags); in fscache_object_is_live()
400 return test_bit(FSCACHE_OBJECT_IS_AVAILABLE, &object->flags); in fscache_object_is_available()
405 return test_bit(FSCACHE_IOERROR, &object->cache->flags); in fscache_cache_is_broken()
Dthread_info.h75 return test_bit(flag, (unsigned long *)&ti->flags); in test_ti_thread_flag()
Dpage-flags.h162 return test_bit(PG_head, &page->flags) || PageTail(page); in PageCompound()
202 { return test_bit(PG_##lname, &policy(page, 0)->flags); }
336 return PageSwapBacked(page) && test_bit(PG_swapcache, &page->flags); in PAGEFLAG()
442 ret = test_bit(PG_uptodate, &(page)->flags); in PageUptodate()
620 return PageHead(page) && test_bit(PG_double_map, &page[1].flags); in PageDoubleMap()
Dphylink.h144 #define phylink_test(bm, mode) __phylink_do_bit(test_bit, bm, mode)
/include/net/
Dscm.h98 if (test_bit(SOCK_PASSSEC, &sock->flags)) { in scm_passec()
116 if (test_bit(SOCK_PASSCRED, &sock->flags) || scm->fp) in scm_recv()
122 if (test_bit(SOCK_PASSCRED, &sock->flags)) { in scm_recv()
D6lowpan.h126 return test_bit(LOWPAN_IPHC_CTX_FLAG_ACTIVE, &ctx->flags); in lowpan_iphc_ctx_is_active()
132 return test_bit(LOWPAN_IPHC_CTX_FLAG_COMPRESSION, &ctx->flags); in lowpan_iphc_ctx_is_compression()
/include/kvm/
Darm_psci.h43 if (test_bit(KVM_ARM_VCPU_PSCI_0_2, vcpu->arch.features)) { in kvm_psci_version()
/include/linux/sunrpc/
Dsched.h146 #define RPC_IS_RUNNING(t) test_bit(RPC_TASK_RUNNING, &(t)->tk_runstate)
157 #define RPC_IS_QUEUED(t) test_bit(RPC_TASK_QUEUED, &(t)->tk_runstate)
166 #define RPC_IS_ACTIVATED(t) test_bit(RPC_TASK_ACTIVE, &(t)->tk_runstate)
Dxprt.h289 return test_bit(RPC_BC_PA_IN_USE, &req->rq_bc_pa_state); in bc_prealloc()
411 return test_bit(XPRT_CONNECTED, &xprt->state); in xprt_connected()
433 return test_bit(XPRT_CONNECTING, &xprt->state); in xprt_connecting()
448 return test_bit(XPRT_BOUND, &xprt->state); in xprt_bound()
/include/media/
Dmedia-devnode.h173 return test_bit(MEDIA_FLAG_REGISTERED, &devnode->flags); in media_devnode_is_registered()
/include/net/netfilter/
Dnf_conntrack.h244 return test_bit(IPS_TEMPLATE_BIT, &ct->status); in nf_ct_is_template()
250 return test_bit(IPS_CONFIRMED_BIT, &ct->status); in nf_ct_is_confirmed()
255 return test_bit(IPS_DYING_BIT, &ct->status); in nf_ct_is_dying()
/include/asm-generic/bitops/
Dnon-atomic.h104 static inline int test_bit(int nr, const volatile unsigned long *addr) in test_bit() function
Dle.h55 return test_bit(nr ^ BITOP_LE_SWIZZLE, addr); in test_bit_le()

123