Home
last modified time | relevance | path

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

12

/external/libnetfilter_conntrack/src/conntrack/
Dbuild_mnl.c123 if (!(test_bit(ATTR_TCP_STATE, ct->head.set) || in nfct_build_protoinfo()
124 test_bit(ATTR_TCP_FLAGS_ORIG, ct->head.set) || in nfct_build_protoinfo()
125 test_bit(ATTR_TCP_FLAGS_REPL, ct->head.set) || in nfct_build_protoinfo()
126 test_bit(ATTR_TCP_MASK_ORIG, ct->head.set) || in nfct_build_protoinfo()
127 test_bit(ATTR_TCP_MASK_REPL, ct->head.set) || in nfct_build_protoinfo()
128 test_bit(ATTR_TCP_WSCALE_ORIG, ct->head.set) || in nfct_build_protoinfo()
129 test_bit(ATTR_TCP_WSCALE_REPL, ct->head.set))) { in nfct_build_protoinfo()
134 if (test_bit(ATTR_TCP_STATE, ct->head.set)) { in nfct_build_protoinfo()
138 if (test_bit(ATTR_TCP_FLAGS_ORIG, ct->head.set) && in nfct_build_protoinfo()
139 test_bit(ATTR_TCP_MASK_ORIG, ct->head.set)) { in nfct_build_protoinfo()
[all …]
Dbuild.c116 if (!(test_bit(ATTR_TCP_STATE, ct->head.set) || in __build_protoinfo()
117 test_bit(ATTR_TCP_FLAGS_ORIG, ct->head.set) || in __build_protoinfo()
118 test_bit(ATTR_TCP_FLAGS_REPL, ct->head.set) || in __build_protoinfo()
119 test_bit(ATTR_TCP_MASK_ORIG, ct->head.set) || in __build_protoinfo()
120 test_bit(ATTR_TCP_MASK_REPL, ct->head.set) || in __build_protoinfo()
121 test_bit(ATTR_TCP_WSCALE_ORIG, ct->head.set) || in __build_protoinfo()
122 test_bit(ATTR_TCP_WSCALE_REPL, ct->head.set))) { in __build_protoinfo()
127 if (test_bit(ATTR_TCP_STATE, ct->head.set)) in __build_protoinfo()
132 if (test_bit(ATTR_TCP_FLAGS_ORIG, ct->head.set) && in __build_protoinfo()
133 test_bit(ATTR_TCP_MASK_ORIG, ct->head.set)) in __build_protoinfo()
[all …]
Dsnprintf_xml.c338 if (test_bit(ATTR_ORIG_COUNTER_PACKETS, ct->head.set) && in __snprintf_tuple_xml()
339 test_bit(ATTR_ORIG_COUNTER_BYTES, ct->head.set)) { in __snprintf_tuple_xml()
407 test_bit(ATTR_ORIG_ZONE, ct->head.set)); in __snprintf_conntrack_xml()
411 test_bit(ATTR_REPL_ZONE, ct->head.set)); in __snprintf_conntrack_xml()
414 if (test_bit(ATTR_TCP_STATE, ct->head.set) || in __snprintf_conntrack_xml()
415 test_bit(ATTR_SCTP_STATE, ct->head.set) || in __snprintf_conntrack_xml()
416 test_bit(ATTR_DCCP_STATE, ct->head.set) || in __snprintf_conntrack_xml()
417 test_bit(ATTR_TIMEOUT, ct->head.set) || in __snprintf_conntrack_xml()
418 test_bit(ATTR_MARK, ct->head.set) || in __snprintf_conntrack_xml()
419 test_bit(ATTR_SECMARK, ct->head.set) || in __snprintf_conntrack_xml()
[all …]
Dsnprintf_default.c379 if (test_bit(ATTR_TIMEOUT, ct->head.set)) { in __snprintf_conntrack_default()
384 if (test_bit(ATTR_TCP_STATE, ct->head.set)) { in __snprintf_conntrack_default()
389 if (test_bit(ATTR_SCTP_STATE, ct->head.set)) { in __snprintf_conntrack_default()
394 if (test_bit(ATTR_DCCP_STATE, ct->head.set)) { in __snprintf_conntrack_default()
406 if (test_bit(ATTR_ORIG_ZONE, ct->head.set)) { in __snprintf_conntrack_default()
411 if (test_bit(ATTR_ORIG_COUNTER_PACKETS, ct->head.set) && in __snprintf_conntrack_default()
412 test_bit(ATTR_ORIG_COUNTER_BYTES, ct->head.set)) { in __snprintf_conntrack_default()
417 if (test_bit(ATTR_STATUS, ct->head.set)) { in __snprintf_conntrack_default()
429 if (test_bit(ATTR_REPL_ZONE, ct->head.set)) { in __snprintf_conntrack_default()
434 if (test_bit(ATTR_REPL_COUNTER_PACKETS, ct->head.set) && in __snprintf_conntrack_default()
[all …]
Dobjopt.c146 if (!(test_bit(ATTR_STATUS, ct->head.set))) in getobjopt_is_snat()
168 if (!(test_bit(ATTR_STATUS, ct->head.set))) in getobjopt_is_dnat()
190 return ((test_bit(ATTR_STATUS, ct->head.set) ? in getobjopt_is_spat()
198 return ((test_bit(ATTR_STATUS, ct->head.set) ? in getobjopt_is_dpat()
Dapi.c476 if (!test_bit(type, ct->head.set)) { in nfct_get_attr()
567 return test_bit(type, ct->head.set); in nfct_attr_is_set()
592 if (!test_bit(type_array[i], ct->head.set)) in nfct_attr_is_set_array()
1225 if (test_bit(i, ct2->head.set)) { in nfct_copy()
1251 if (test_bit(cp_orig_mask[i], ct2->head.set)) { in nfct_copy()
1273 if (test_bit(cp_repl_mask[i], ct2->head.set)) { in nfct_copy()
1283 if (test_bit(i, ct2->head.set)) { in nfct_copy()
1304 if (test_bit(type, ct2->head.set)) { in nfct_copy_attr()
1674 return bit < bits && test_bit(bit, b->bits); in nfct_bitmask_test_bit()
Dcompare.c21 int a = test_bit(attr, ct1->head.set); in __cmp()
22 int b = test_bit(attr, ct2->head.set); in __cmp()
28 test_bit(attr, ct1->head.set)) { in __cmp()
Dlabels.c246 if (bit < 0 || test_bit(bit, bits_seen)) in __labelmap_new()
/external/libnetfilter_conntrack/src/expect/
Dbuild.c61 if (test_bit(ATTR_ORIG_L3PROTO, exp->master.set)) in __build_expect()
63 else if (test_bit(ATTR_ORIG_L3PROTO, exp->expected.set)) in __build_expect()
72 if (test_bit(ATTR_EXP_EXPECTED, exp->set)) { in __build_expect()
76 if (test_bit(ATTR_EXP_MASTER, exp->set)) { in __build_expect()
80 if (test_bit(ATTR_EXP_MASK, exp->set)) { in __build_expect()
84 if (test_bit(ATTR_EXP_NAT_TUPLE, exp->set) && in __build_expect()
85 test_bit(ATTR_EXP_NAT_DIR, exp->set)) { in __build_expect()
95 if (test_bit(ATTR_EXP_TIMEOUT, exp->set)) in __build_expect()
97 if (test_bit(ATTR_EXP_FLAGS, exp->set)) in __build_expect()
99 if (test_bit(ATTR_EXP_ZONE, exp->set)) in __build_expect()
[all …]
Dbuild_mnl.c18 if (test_bit(ATTR_EXP_EXPECTED, exp->set)) in nfexp_nlmsg_build()
21 if (test_bit(ATTR_EXP_MASTER, exp->set)) in nfexp_nlmsg_build()
24 if (test_bit(ATTR_EXP_MASK, exp->set)) in nfexp_nlmsg_build()
27 if (test_bit(ATTR_EXP_TIMEOUT, exp->set)) in nfexp_nlmsg_build()
30 if (test_bit(ATTR_EXP_FLAGS, exp->set)) in nfexp_nlmsg_build()
33 if (test_bit(ATTR_EXP_ZONE, exp->set)) in nfexp_nlmsg_build()
36 if (test_bit(ATTR_EXP_HELPER_NAME, exp->set)) in nfexp_nlmsg_build()
Dsnprintf_default.c16 if (test_bit(ATTR_EXP_TIMEOUT, exp->set)) in __snprintf_expect_timeout()
26 if (test_bit(ATTR_EXP_CLASS, exp->set)) in __snprintf_expect_class()
94 if (test_bit(ATTR_EXP_ZONE, exp->set)) { in __snprintf_expect_default()
121 if (test_bit(ATTR_EXP_HELPER_NAME, exp->set)) { in __snprintf_expect_default()
Dcompare.c21 int a = test_bit(attr, exp1->set); in exp_cmp()
22 int b = test_bit(attr, exp2->set); in exp_cmp()
29 test_bit(attr, exp1->set)) { in exp_cmp()
Dsnprintf_xml.c62 if (test_bit(ATTR_EXP_HELPER_NAME, exp->set)) { in snprintf_expect_meta_xml()
68 if (test_bit(ATTR_EXP_TIMEOUT, exp->set)) { in snprintf_expect_meta_xml()
73 if (test_bit(ATTR_EXP_CLASS, exp->set)) { in snprintf_expect_meta_xml()
78 if (test_bit(ATTR_EXP_ZONE, exp->set)) { in snprintf_expect_meta_xml()
Dapi.c381 if (!test_bit(type, exp->set)) { in nfexp_get_attr()
454 return test_bit(type, exp->set); in nfexp_attr_is_set()
/external/linux-kselftest/tools/testing/selftests/kvm/x86_64/
Dvmx_dirty_log_test.c139 TEST_ASSERT(test_bit(0, bmap), "Page 0 incorrectly reported clean\n"); in main()
142 TEST_ASSERT(!test_bit(0, bmap), "Page 0 incorrectly reported dirty\n"); in main()
146 TEST_ASSERT(!test_bit(1, bmap), "Page 1 incorrectly reported dirty\n"); in main()
148 TEST_ASSERT(!test_bit(2, bmap), "Page 2 incorrectly reported dirty\n"); in main()
/external/autotest/client/site_tests/hardware_Keyboard/src/
Devtest.c307 #define test_bit(bit, array) ((array[LONG(bit)] >> OFF(bit)) & 1) macro
356 if (test_bit(keycode, bit[EV_KEY])) { in is_key_supported()
377 if (test_bit(EV_KEY, bit[0])) { in do_check_num_keys()
380 if (test_bit(j,bit[EV_KEY])) { in do_check_num_keys()
414 if (test_bit(i, bit[0])) { in do_evtest_dumpall()
420 if (test_bit(j, bit[i])) { in do_evtest_dumpall()
429 (int)test_bit(j, bit[i])); in do_evtest_dumpall()
/external/libnetfilter_conntrack/include/internal/
Dbitops.h45 static inline int test_bit(int nr, const uint32_t *addr) in test_bit() function
/external/mesa3d/src/mesa/drivers/dri/i915/
Dintel_pixel_bitmap.c91 static bool test_bit( const GLubyte *src, GLuint bit ) in test_bit() function
144 if (test_bit(rowsrc, (col + src_offset) ^ mask)) { in get_bitmap_rect()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dintel_pixel_bitmap.c88 static bool test_bit( const GLubyte *src, GLuint bit ) in test_bit() function
141 if (test_bit(rowsrc, (col + src_offset) ^ mask)) { in get_bitmap_rect()
/external/mesa3d/src/gallium/drivers/vc4/
Dvc4_simulator_validate.h57 test_bit(unsigned int bit, unsigned long *addr) in test_bit() function
/external/linux-kselftest/tools/testing/selftests/kvm/
Ddirty_log_test.c43 test_bit((nr) ^ BITOP_LE_SWIZZLE, addr)
53 # define test_bit_le test_bit
/external/igt-gpu-tools/lib/
Digt_primes.c77 static inline bool test_bit(unsigned long nr, const unsigned long *addr) in test_bit() function
/external/autotest/client/bin/input/
Dinput_device.py273 if test_bit(c, ev_code):
292 if test_bit(t, ev_types):
/external/ethtool/
Dinternal.h96 static inline int test_bit(unsigned int nr, const unsigned long *addr) in test_bit() function
/external/ruy/ruy/
Dtest.h1811 std::uint32_t test_bit = 1;
1813 if (remaining_paths & test_bit) {
1814 result.push_back(static_cast<Path>(test_bit));
1816 remaining_paths &= ~test_bit;
1817 test_bit <<= 1;

12