Home
last modified time | relevance | path

Searched refs:ct (Results 1 – 25 of 243) sorted by relevance

12345678910

/external/libnl/lib/netfilter/
Dct_obj.c58 struct nfnl_ct *ct = (struct nfnl_ct *) c; in ct_free_data() local
60 if (ct == NULL) in ct_free_data()
63 nl_addr_put(ct->ct_orig.src); in ct_free_data()
64 nl_addr_put(ct->ct_orig.dst); in ct_free_data()
65 nl_addr_put(ct->ct_repl.src); in ct_free_data()
66 nl_addr_put(ct->ct_repl.dst); in ct_free_data()
119 static void dump_icmp(struct nl_dump_params *p, struct nfnl_ct *ct, int reply) in dump_icmp() argument
121 if (nfnl_ct_test_icmp_type(ct, reply)) in dump_icmp()
122 nl_dump(p, "icmp type %d ", nfnl_ct_get_icmp_type(ct, reply)); in dump_icmp()
124 if (nfnl_ct_test_icmp_type(ct, reply)) in dump_icmp()
[all …]
Dct.c105 static int ct_parse_ip(struct nfnl_ct *ct, int repl, struct nlattr *attr) in ct_parse_ip() argument
119 err = nfnl_ct_set_src(ct, repl, addr); in ct_parse_ip()
128 err = nfnl_ct_set_dst(ct, repl, addr); in ct_parse_ip()
137 err = nfnl_ct_set_src(ct, repl, addr); in ct_parse_ip()
146 err = nfnl_ct_set_dst(ct, repl, addr); in ct_parse_ip()
160 static int ct_parse_proto(struct nfnl_ct *ct, int repl, struct nlattr *attr) in ct_parse_proto() argument
170 nfnl_ct_set_proto(ct, nla_get_u8(tb[CTA_PROTO_NUM])); in ct_parse_proto()
172 nfnl_ct_set_src_port(ct, repl, in ct_parse_proto()
175 nfnl_ct_set_dst_port(ct, repl, in ct_parse_proto()
178 nfnl_ct_set_icmp_id(ct, repl, in ct_parse_proto()
[all …]
/external/libnl/src/lib/
Dct.c24 struct nfnl_ct *ct; in nl_cli_ct_alloc() local
26 ct = nfnl_ct_alloc(); in nl_cli_ct_alloc()
27 if (!ct) in nl_cli_ct_alloc()
30 return ct; in nl_cli_ct_alloc()
38 void nl_cli_ct_parse_family(struct nfnl_ct *ct, char *arg) in nl_cli_ct_parse_family() argument
47 nfnl_ct_set_family(ct, family); in nl_cli_ct_parse_family()
50 void nl_cli_ct_parse_protocol(struct nfnl_ct *ct, char *arg) in nl_cli_ct_parse_protocol() argument
59 nfnl_ct_set_proto(ct, proto); in nl_cli_ct_parse_protocol()
62 void nl_cli_ct_parse_mark(struct nfnl_ct *ct, char *arg) in nl_cli_ct_parse_mark() argument
65 nfnl_ct_set_mark(ct, mark); in nl_cli_ct_parse_mark()
[all …]
/external/libnl/src/
Dnf-ct-list.c52 struct nfnl_ct *ct; in main() local
58 ct = nl_cli_ct_alloc(); in main()
105 case '4': nfnl_ct_set_family(ct, AF_INET); break; in main()
106 case '6': nfnl_ct_set_family(ct, AF_INET6); break; in main()
110 case 'i': nl_cli_ct_parse_id(ct, optarg); break; in main()
111 case 'p': nl_cli_ct_parse_protocol(ct, optarg); break; in main()
112 case ARG_TCP_STATE: nl_cli_ct_parse_tcp_state(ct, optarg); break; in main()
113 case ARG_ORIG_SRC: nl_cli_ct_parse_src(ct, 0, optarg); break; in main()
114 case ARG_ORIG_SPORT: nl_cli_ct_parse_src_port(ct, 0, optarg); break; in main()
115 case ARG_ORIG_DST: nl_cli_ct_parse_dst(ct, 0, optarg); break; in main()
[all …]
/external/iptables/extensions/
Dlibxt_u32.c45 const struct xt_u32_test *ct; in u32_dump() local
50 ct = &data->tests[testind]; in u32_dump()
55 printf("0x%x", ct->location[0].number); in u32_dump()
56 for (i = 1; i < ct->nnums; ++i) { in u32_dump()
57 switch (ct->location[i].nextop) { in u32_dump()
71 printf("0x%x", ct->location[i].number); in u32_dump()
75 for (i = 0; i < ct->nvalues; ++i) { in u32_dump()
78 if (ct->value[i].min == ct->value[i].max) in u32_dump()
79 printf("0x%x", ct->value[i].min); in u32_dump()
81 printf("0x%x:0x%x", ct->value[i].min, in u32_dump()
[all …]
/external/pdfium/core/src/fxcodec/fx_libopenjpeg/libopenjpeg20/
Dmqc.c210 mqc->ct = 7; in opj_mqc_byteout()
216 mqc->ct = 8; in opj_mqc_byteout()
224 mqc->ct = 7; in opj_mqc_byteout()
229 mqc->ct = 8; in opj_mqc_byteout()
239 mqc->ct--; in opj_mqc_renorme()
240 if (mqc->ct == 0) { in opj_mqc_renorme()
312 mqc->ct = i & 0x0f; in opj_mqc_bytein()
327 mqc->ct = 8; in opj_mqc_bytein()
331 mqc->ct = 7; in opj_mqc_bytein()
336 mqc->ct = 8; in opj_mqc_bytein()
[all …]
Dbio.c83 bio->ct = bio->buf == 0xff00 ? 7 : 8; in opj_bio_byteout()
93 bio->ct = bio->buf == 0xff00 ? 7 : 8; in opj_bio_bytein()
102 if (bio->ct == 0) { in opj_bio_putbit()
105 bio->ct--; in opj_bio_putbit()
106 bio->buf |= b << bio->ct; in opj_bio_putbit()
110 if (bio->ct == 0) { in opj_bio_getbit()
113 bio->ct--; in opj_bio_getbit()
114 return (bio->buf >> bio->ct) & 1; in opj_bio_getbit()
143 bio->ct = 8; in opj_bio_init_enc()
151 bio->ct = 0; in opj_bio_init_dec()
[all …]
Draw.c73 raw->ct = 0; in opj_raw_init_dec()
78 if (raw->ct == 0) { in opj_raw_decode()
79 raw->ct = 8; in opj_raw_decode()
84 raw->ct = 7; in opj_raw_decode()
90 raw->ct--; in opj_raw_decode()
91 d = (raw->c >> raw->ct) & 0x01; in opj_raw_decode()
/external/google-breakpad/src/testing/include/gmock/
Dgmock-generated-function-mockers.h347 #define GMOCK_METHOD0_(tn, constness, ct, Method, F) \ argument
348 GMOCK_RESULT_(tn, F) ct Method() constness { \
363 #define GMOCK_METHOD1_(tn, constness, ct, Method, F) \ argument
364 GMOCK_RESULT_(tn, F) ct Method(GMOCK_ARG_(tn, F, 1) gmock_a1) constness { \
379 #define GMOCK_METHOD2_(tn, constness, ct, Method, F) \ argument
380 GMOCK_RESULT_(tn, F) ct Method(GMOCK_ARG_(tn, F, 1) gmock_a1, \
397 #define GMOCK_METHOD3_(tn, constness, ct, Method, F) \ argument
398 GMOCK_RESULT_(tn, F) ct Method(GMOCK_ARG_(tn, F, 1) gmock_a1, \
419 #define GMOCK_METHOD4_(tn, constness, ct, Method, F) \ argument
420 GMOCK_RESULT_(tn, F) ct Method(GMOCK_ARG_(tn, F, 1) gmock_a1, \
[all …]
/external/vboot_reference/tests/
Dtimer_utils.c8 void StartTimer(ClockTimerState* ct) { in StartTimer() argument
9 clock_gettime(CLOCK_REALTIME, &ct->start_time); in StartTimer()
12 void StopTimer(ClockTimerState* ct) { in StopTimer() argument
13 clock_gettime(CLOCK_REALTIME, &ct->end_time); in StopTimer()
16 uint32_t GetDurationMsecs(ClockTimerState* ct) { in GetDurationMsecs() argument
17 uint64_t start = ((uint64_t) ct->start_time.tv_sec * 1000000000 + in GetDurationMsecs()
18 (uint64_t) ct->start_time.tv_nsec); in GetDurationMsecs()
19 uint64_t end = ((uint64_t) ct->end_time.tv_sec * 1000000000 + in GetDurationMsecs()
20 (uint64_t) ct->end_time.tv_nsec); in GetDurationMsecs()
Dsha_benchmark.c37 ClockTimerState ct; in main() local
41 StartTimer(&ct); in main()
43 StopTimer(&ct); in main()
45 msecs = GetDurationMsecs(&ct); in main()
/external/wpa_supplicant_8/src/tls/
Dtlsv1_client_read.c22 static int tls_process_server_key_exchange(struct tlsv1_client *conn, u8 ct,
24 static int tls_process_certificate_request(struct tlsv1_client *conn, u8 ct,
26 static int tls_process_server_hello_done(struct tlsv1_client *conn, u8 ct,
30 static int tls_process_server_hello(struct tlsv1_client *conn, u8 ct, in tls_process_server_hello() argument
38 if (ct != TLS_CONTENT_TYPE_HANDSHAKE) { in tls_process_server_hello()
40 "received content type 0x%x", ct); in tls_process_server_hello()
214 static int tls_process_certificate(struct tlsv1_client *conn, u8 ct, in tls_process_certificate() argument
223 if (ct != TLS_CONTENT_TYPE_HANDSHAKE) { in tls_process_certificate()
225 "received content type 0x%x", ct); in tls_process_certificate()
255 return tls_process_server_key_exchange(conn, ct, in_data, in tls_process_certificate()
[all …]
Dtlsv1_server_read.c23 static int tls_process_client_key_exchange(struct tlsv1_server *conn, u8 ct,
26 u8 ct, const u8 *in_data,
49 static int tls_process_client_hello(struct tlsv1_server *conn, u8 ct, in tls_process_client_hello() argument
59 if (ct != TLS_CONTENT_TYPE_HANDSHAKE) { in tls_process_client_hello()
61 ct); in tls_process_client_hello()
291 static int tls_process_certificate(struct tlsv1_server *conn, u8 ct, in tls_process_certificate() argument
300 if (ct != TLS_CONTENT_TYPE_HANDSHAKE) { in tls_process_certificate()
302 ct); in tls_process_certificate()
340 return tls_process_client_key_exchange(conn, ct, in_data, in tls_process_certificate()
693 static int tls_process_client_key_exchange(struct tlsv1_server *conn, u8 ct, in tls_process_client_key_exchange() argument
[all …]
/external/boringssl/src/crypto/aes/
Dinternal.h63 #define PUTU32(ct, st) \ argument
64 { *((uint32_t *)(ct)) = SWAP((st)); }
69 #define PUTU32(ct, st) \
71 (ct)[0] = (uint8_t)((st) >> 24); \
72 (ct)[1] = (uint8_t)((st) >> 16); \
73 (ct)[2] = (uint8_t)((st) >> 8); \
74 (ct)[3] = (uint8_t)(st); \
/external/libvpx/libvpx/vp9/encoder/
Dvp9_subexp.c119 int vp9_prob_diff_update_savings_search(const unsigned int *ct, in vp9_prob_diff_update_savings_search() argument
122 const int old_b = cost_branch256(ct, oldp); in vp9_prob_diff_update_savings_search()
128 const int new_b = cost_branch256(ct, newp); in vp9_prob_diff_update_savings_search()
140 int vp9_prob_diff_update_savings_search_model(const unsigned int *ct, in vp9_prob_diff_update_savings_search_model() argument
150 old_b += cost_branch256(ct + 2 * i, oldplist[i]); in vp9_prob_diff_update_savings_search_model()
151 old_b += cost_branch256(ct + 2 * PIVOT_NODE, oldplist[PIVOT_NODE]); in vp9_prob_diff_update_savings_search_model()
164 new_b += cost_branch256(ct + 2 * i, newplist[i]); in vp9_prob_diff_update_savings_search_model()
165 new_b += cost_branch256(ct + 2 * PIVOT_NODE, newplist[PIVOT_NODE]); in vp9_prob_diff_update_savings_search_model()
179 const unsigned int ct[2]) { in vp9_cond_prob_diff_update()
181 vp9_prob newp = get_binary_prob(ct[0], ct[1]); in vp9_cond_prob_diff_update()
[all …]
/external/libnl/tests/
Dtest-nf-cache-mngr.c6 struct nfnl_ct *ct = (struct nfnl_ct *) obj; in change_cb() local
12 if (!nl_addr_cmp(hack, nfnl_ct_get_src(ct, 1)) || in change_cb()
13 !nl_addr_cmp(hack, nfnl_ct_get_dst(ct, 1))) { in change_cb()
28 struct nl_cache *ct; in main() local
38 ct = nl_cache_mngr_add(mngr, "netfilter/ct", &change_cb); in main()
39 if (ct == NULL) { in main()
/external/boringssl/src/crypto/cipher/
Daead_test.cc53 std::vector<uint8_t> key, nonce, in, ad, ct, tag; in TestAEAD() local
58 !t->GetBytes(&ct, "CT") || in TestAEAD()
84 if (out.size() != ct.size() + tag.size()) { in TestAEAD()
86 (unsigned)(ct.size() + tag.size())); in TestAEAD()
89 if (!t->ExpectBytesEqual(bssl::vector_data(&ct), ct.size(), in TestAEAD()
90 bssl::vector_data(&out), ct.size()) || in TestAEAD()
92 bssl::vector_data(&out) + ct.size(), tag.size())) { in TestAEAD()
96 out.resize(ct.size() + tag.size()); in TestAEAD()
97 memcpy(bssl::vector_data(&out), bssl::vector_data(&ct), ct.size()); in TestAEAD()
98 memcpy(bssl::vector_data(&out) + ct.size(), bssl::vector_data(&tag), in TestAEAD()
/external/skia/include/core/
DSkImageInfo.h88 static int SkColorTypeBytesPerPixel(SkColorType ct) { in SkColorTypeBytesPerPixel() argument
102 SkASSERT((size_t)ct < SK_ARRAY_COUNT(gSize)); in SkColorTypeBytesPerPixel()
103 return gSize[ct]; in SkColorTypeBytesPerPixel()
106 static inline size_t SkColorTypeMinRowBytes(SkColorType ct, int width) { in SkColorTypeMinRowBytes() argument
107 return width * SkColorTypeBytesPerPixel(ct); in SkColorTypeMinRowBytes()
161 static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at,
163 return SkImageInfo(width, height, ct, at, pt);
289 SkImageInfo(int width, int height, SkColorType ct, SkAlphaType at, SkColorProfileType pt) in SkImageInfo()
292 , fColorType(ct) in SkImageInfo()
/external/libcxx/test/std/localization/locale.categories/
D__scan_keyword.pass.cpp44 const std::ctype<char>& ct = std::use_facet<std::ctype<char> >(std::locale::classic()); in main() local
53 ct, err); in main()
65 ct, err); in main()
77 ct, err); in main()
89 ct, err); in main()
101 ct, err); in main()
113 ct, err, false); in main()
/external/libvpx/libvpx/vp9/common/
Dvp9_prob.h64 const unsigned int ct[2], in merge_probs()
67 const vp9_prob prob = get_binary_prob(ct[0], ct[1]); in merge_probs()
68 const unsigned int count = MIN(ct[0] + ct[1], count_sat); in merge_probs()
/external/llvm/test/CodeGen/Generic/
D2003-07-08-BadCastToBool.ll5 ;; Function: int %adj(uint %d.1, uint %ct.1)
14 @.str_1 = internal constant [30 x i8] c"d = %d, ct = %d, d ^ ct = %d\0A\00"
18 define i32 @adj(i32 %d.1, i32 %ct.1) {
20 %tmp.19 = icmp eq i32 %ct.1, 2 ; <i1> [#uses=1]
21 %tmp.22.not = trunc i32 %ct.1 to i1 ; <i1> [#uses=1]
/external/jetty/src/java/org/eclipse/jetty/http/gzip/
DCompressedResponseWrapper.java128 public void setContentType(String ct) in setContentType() argument
130 super.setContentType(ct); in setContentType()
134 if (ct!=null) in setContentType()
136 int colon=ct.indexOf(";"); in setContentType()
138 ct=ct.substring(0,colon); in setContentType()
142 (_mimeTypes==null && ct!=null && ct.contains("gzip") || in setContentType()
143 … _mimeTypes!=null && (ct==null||!_mimeTypes.contains(StringUtil.asciiToLowerCase(ct))))) in setContentType()
/external/skia/bench/
DRotatedRectBench.cpp27 static inline SkColor start_color(ColorType ct) { in start_color() argument
28 switch (ct) { in start_color()
41 static inline SkColor advance_color(SkColor old, ColorType ct, int step) { in advance_color() argument
42 if (kAlternatingOpaqueAndTransparent_ColorType == ct) { in advance_color()
43 ct = (step & 0x1) ? kChangingOpaque_ColorType : kChangingTransparent_ColorType ; in advance_color()
45 switch (ct) { in advance_color()
70 RotRectBench(bool aa, ColorType ct, SkXfermode::Mode mode) in RotRectBench() argument
72 , fColorType(ct) in RotRectBench()
/external/libpng/contrib/libtests/
Dgentests.sh86 for ct in gray palette
90 doit "$ct" "$bd"
96 for ct in gray-alpha rgb rgb-alpha
100 doit "$ct" "$bd"
/external/e2fsprogs/lib/ss/
DMakefile.in70 MKCMDSOBJS= mk_cmds.o utils.o options.o ct.tab.o cmd_tbl.lex.o
72 MKCMDSFILES= mk_cmds.c utils.c options.c ct.y cmd_tbl.lex.l
74 MKCMDSCSRCS= mk_cmds.c utils.c options.c ct.tab.c cmd_tbl.lex.c
89 ss_err.et std_rqs.ct Makefile \
94 std_rqs.c: std_rqs.ct mk_cmds
96 $(Q) DIR=$(srcdir) $(MK_CMDS) $(srcdir)/std_rqs.ct
100 test_cmd.c: test_cmd.ct mk_cmds
102 $(Q) DIR=$(srcdir) $(MK_CMDS) $(srcdir)/test_cmd.ct
108 ct.tab.c ct.tab.h: ct.y
109 $(RM) -f ct.tab.* y.*
[all …]

12345678910