Home
last modified time | relevance | path

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

1234

/include/net/
Dgre.h56 if (test_bit(IP_TUNNEL_CSUM_BIT, o_flags)) in gre_calc_hlen()
58 if (test_bit(IP_TUNNEL_KEY_BIT, o_flags)) in gre_calc_hlen()
60 if (test_bit(IP_TUNNEL_SEQ_BIT, o_flags)) in gre_calc_hlen()
84 if (test_bit(IP_TUNNEL_CSUM_BIT, tflags)) in gre_tnl_flags_to_gre_flags()
86 if (test_bit(IP_TUNNEL_ROUTING_BIT, tflags)) in gre_tnl_flags_to_gre_flags()
88 if (test_bit(IP_TUNNEL_KEY_BIT, tflags)) in gre_tnl_flags_to_gre_flags()
90 if (test_bit(IP_TUNNEL_SEQ_BIT, tflags)) in gre_tnl_flags_to_gre_flags()
92 if (test_bit(IP_TUNNEL_STRICT_BIT, tflags)) in gre_tnl_flags_to_gre_flags()
94 if (test_bit(IP_TUNNEL_REC_BIT, tflags)) in gre_tnl_flags_to_gre_flags()
96 if (test_bit(IP_TUNNEL_VERSION_BIT, tflags)) in gre_tnl_flags_to_gre_flags()
[all …]
Dscm.h112 if (test_bit(SOCK_PASSSEC, &sock->flags)) { in scm_passec()
124 return test_bit(SOCK_PASSSEC, &sock->flags); in scm_has_secdata()
176 if (test_bit(SOCK_PASSCRED, &sock->flags) || in __scm_recv_common()
177 test_bit(SOCK_PASSPIDFD, &sock->flags) || in __scm_recv_common()
184 if (test_bit(SOCK_PASSCRED, &sock->flags)) { in __scm_recv_common()
217 if (test_bit(SOCK_PASSPIDFD, &sock->flags)) in scm_recv_unix()
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/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()
Dtty_port.h179 return test_bit(TTY_PORT_CTS_FLOW, &port->iflags); in tty_port_cts_enabled()
189 return test_bit(TTY_PORT_ACTIVE, &port->iflags); in tty_port_active()
199 return test_bit(TTY_PORT_CHECK_CD, &port->iflags); in tty_port_check_carrier()
209 return test_bit(TTY_PORT_SUSPENDED, &port->iflags); in tty_port_suspended()
219 return test_bit(TTY_PORT_INITIALIZED, &port->iflags); in tty_port_initialized()
229 return test_bit(TTY_PORT_KOPENED, &port->iflags); in tty_port_kopened()
Dkhugepaged.h33 if (test_bit(MMF_VM_HUGEPAGE, &oldmm->flags)) in khugepaged_fork()
39 if (test_bit(MMF_VM_HUGEPAGE, &mm->flags)) in khugepaged_exit()
Dksm.h60 if (test_bit(MMF_VM_MERGEABLE, &oldmm->flags)) in ksm_fork()
66 if (test_bit(MMF_VM_MERGE_ANY, &mm->flags)) in ksm_execve()
74 if (test_bit(MMF_VM_MERGEABLE, &mm->flags)) in ksm_exit()
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)
287 BUG_ON(!test_bit(ATM_DF_REMOVED, &dev->flags)); in atm_dev_put()
Dpage_idle.h22 page_young = test_bit(PAGE_EXT_YOUNG, &page_ext->flags); in folio_test_young()
61 page_idle = test_bit(PAGE_EXT_IDLE, &page_ext->flags); in folio_test_idle()
Ddma-fence.h422 if (test_bit(DMA_FENCE_FLAG_SIGNALED_BIT, &fence->flags)) in dma_fence_is_signaled_locked()
452 if (test_bit(DMA_FENCE_FLAG_SIGNALED_BIT, &fence->flags)) in dma_fence_is_signaled()
581 WARN_ON(test_bit(DMA_FENCE_FLAG_SIGNALED_BIT, &fence->flags)); in dma_fence_set_error()
597 if (WARN_ON(!test_bit(DMA_FENCE_FLAG_SIGNALED_BIT, &fence->flags))) in dma_fence_timestamp()
600 while (!test_bit(DMA_FENCE_FLAG_TIMESTAMP_BIT, &fence->flags)) in dma_fence_timestamp()
Dfolio_queue.h106 return test_bit(slot, &folioq->marks); in folioq_is_marked()
145 return test_bit(slot, &folioq->marks2); in folioq_is_marked2()
184 return test_bit(slot, &folioq->marks3); in folioq_is_marked3()
Dthread_info.h118 return test_bit(flag, (unsigned long *)&ti->flags); in test_ti_thread_flag()
152 test_bit(SYSCALL_WORK_BIT_##fl, &current_thread_info()->syscall_work)
159 test_bit(SYSCALL_WORK_BIT_##fl, &task_thread_info(t)->syscall_work)
192 return test_bit(TIF_NEED_RESCHED, in tif_need_resched()
Dwatchdog.h130 return test_bit(WDOG_ACTIVE, &wdd->status); in watchdog_active()
139 return test_bit(WDOG_HW_RUNNING, &wdd->status); in watchdog_hw_running()
Dpage-flags.h225 test_bit(PG_head, &page->flags)) { in page_fixed_fake_head()
296 return test_bit(PG_head, &page->flags) || in PageCompound()
320 VM_BUG_ON_PGFLAGS(n > 0 && !test_bit(PG_head, &page->flags), page); in const_folio_flags()
329 VM_BUG_ON_PGFLAGS(n > 0 && !test_bit(PG_head, &page->flags), page); in folio_flags()
386 { return test_bit(PG_##name, const_folio_flags(folio, page)); }
420 { return test_bit(PG_##lname, &policy(page, 0)->flags); }
602 test_bit(PG_swapcache, const_folio_flags(folio, 0)); in PAGEFLAG()
785 bool ret = test_bit(PG_uptodate, const_folio_flags(folio, 0)); in folio_test_uptodate()
844 return test_bit(PG_head, const_folio_flags(folio, FOLIO_PF_ANY)); in folio_test_head()
850 return test_bit(PG_head, &page->flags) && !page_is_fake_head(page); in PageHead()
[all …]
Doom.h95 if (unlikely(test_bit(MMF_UNSTABLE, &mm->flags))) in check_stable_address_space()
Dbitops.h61 #define test_bit(nr, addr) bitop(_test_bit, nr, addr) macro
82 __check_bitop_pr(test_bit);
322 test_bit(nr, (unsigned long *)(addr)); \
Dlinkmode.h47 #define linkmode_test_bit test_bit
Dnfs_page.h125 #define NFS_WBACK_BUSY(req) (test_bit(PG_BUSY,&(req)->wb_flags))
176 if (test_bit(PG_FOLIO, &req->wb_flags)) in nfs_page_to_folio()
Dfscache.h27 #define fscache_cookie_enabled(cookie) (cookie && !test_bit(FSCACHE_COOKIE_DISABLED, &cookie->flags…
651 test_bit(FSCACHE_COOKIE_HAVE_DATA, &cookie->flags) && in fscache_note_page_release()
652 test_bit(FSCACHE_COOKIE_NO_DATA_TO_READ, &cookie->flags)) in fscache_note_page_release()
/include/asm-generic/bitops/
Dle.h21 return test_bit(nr ^ BITOP_LE_SWIZZLE, addr); in test_bit_le()
/include/linux/sunrpc/
Dsvc_xprt.h114 if (test_bit(XPT_CLOSE, &xpt->xpt_flags)) { in register_xpt_user()
130 return (test_bit(XPT_DEAD, &xprt->xpt_flags) != 0) || in svc_xprt_is_dead()
131 (test_bit(XPT_CLOSE, &xprt->xpt_flags) != 0); in svc_xprt_is_dead()
Dxprt.h322 return test_bit(RPC_BC_PA_IN_USE, &req->rq_bc_pa_state); in bc_prealloc()
463 return test_bit(XPRT_CONNECTED, &xprt->state); in xprt_connected()
485 return test_bit(XPRT_CONNECTING, &xprt->state); in xprt_connecting()
500 return test_bit(XPRT_BOUND, &xprt->state); in xprt_bound()
/include/media/
Dmedia-devnode.h165 return test_bit(MEDIA_FLAG_REGISTERED, &devnode->flags); in media_devnode_is_registered()
/include/net/netfilter/
Dnf_conntrack.h269 return test_bit(IPS_TEMPLATE_BIT, &ct->status); in nf_ct_is_template()
275 return test_bit(IPS_CONFIRMED_BIT, &ct->status); in nf_ct_is_confirmed()
280 return test_bit(IPS_DYING_BIT, &ct->status); in nf_ct_is_dying()
/include/net/bluetooth/
Dhci_core.h830 #define hci_dev_test_flag(hdev, nr) test_bit((nr), (hdev)->dev_flags)
845 (!test_bit(HCI_QUIRK_BROKEN_LE_STATES, &(hdev)->quirks) && \
982 test_bit(HCI_CONN_SSP_ENABLED, &conn->flags); in hci_conn_ssp_enabled()
989 test_bit(HCI_CONN_SC_ENABLED, &conn->flags); in hci_conn_sc_enabled()
1138 if (!test_bit(HCI_CONN_CREATE_PA_SYNC, &c->flags)) in hci_conn_hash_lookup_create_pa_sync()
1162 !test_bit(HCI_CONN_PER_ADV, &c->flags)) in hci_conn_hash_lookup_per_adv_bis()
1399 !test_bit(HCI_CONN_PA_SYNC, &c->flags)) in hci_conn_hash_lookup_pa_sync_big_handle()
1495 if (c->type == type && test_bit(flag, &c->flags)) in hci_conn_hash_list_flag()
1511 !test_bit(HCI_CONN_SCANNING, &c->flags)) { in hci_lookup_le_connect()
1532 test_bit(HCI_CONN_SCANNING, &c->flags)) { in hci_is_le_conn_scanning()
[all …]

1234