/external/vboot_reference/tests/ |
H A D | timer_utils.c | 8 void StartTimer(ClockTimerState* ct) { argument 9 clock_gettime(CLOCK_REALTIME, &ct->start_time); 12 void StopTimer(ClockTimerState* ct) { argument 13 clock_gettime(CLOCK_REALTIME, &ct->end_time); 16 uint32_t GetDurationMsecs(ClockTimerState* ct) { argument 17 uint64_t start = ((uint64_t) ct->start_time.tv_sec * 1000000000 + 18 (uint64_t) ct->start_time.tv_nsec); 19 uint64_t end = ((uint64_t) ct->end_time.tv_sec * 1000000000 + 20 (uint64_t) ct->end_time.tv_nsec);
|
H A D | timer_utils.h | 18 /* Start timer and update [ct]. */ 19 void StartTimer(ClockTimerState* ct); 21 /* Stop timer and update [ct]. */ 22 void StopTimer(ClockTimerState* ct); 25 uint32_t GetDurationMsecs(ClockTimerState* ct);
|
H A D | sha_benchmark.c | 37 ClockTimerState ct; local 41 StartTimer(&ct); 43 StopTimer(&ct); 45 msecs = GetDurationMsecs(&ct);
|
/external/libnl/src/ |
H A D | nf-ct-list.c | 2 * src/nf-ct-list.c List Conntrack Entries 15 #include <netlink/cli/ct.h> 20 "Usage: nf-ct-list [OPTION]... [CONNTRACK ENTRY]\n" 52 struct nfnl_ct *ct; local 58 ct = nl_cli_ct_alloc(); 105 case '4': nfnl_ct_set_family(ct, AF_INET); break; 106 case '6': nfnl_ct_set_family(ct, AF_INET6); break; 110 case 'i': nl_cli_ct_parse_id(ct, optarg); break; 111 case 'p': nl_cli_ct_parse_protocol(ct, optarg); break; 112 case ARG_TCP_STATE: nl_cli_ct_parse_tcp_state(ct, optar [all...] |
/external/libnl/src/lib/ |
H A D | ct.c | 2 * src/lib/ct.c CLI Conntrack Helpers 20 #include <netlink/cli/ct.h> 24 struct nfnl_ct *ct; local 26 ct = nfnl_ct_alloc(); 27 if (!ct) 30 return ct; 38 void nl_cli_ct_parse_family(struct nfnl_ct *ct, char *arg) argument 47 nfnl_ct_set_family(ct, family); 50 void nl_cli_ct_parse_protocol(struct nfnl_ct *ct, char *arg) argument 59 nfnl_ct_set_proto(ct, prot 62 nl_cli_ct_parse_mark(struct nfnl_ct *ct, char *arg) argument 68 nl_cli_ct_parse_timeout(struct nfnl_ct *ct, char *arg) argument 74 nl_cli_ct_parse_id(struct nfnl_ct *ct, char *arg) argument 80 nl_cli_ct_parse_use(struct nfnl_ct *ct, char *arg) argument 86 nl_cli_ct_parse_src(struct nfnl_ct *ct, int reply, char *arg) argument 95 nl_cli_ct_parse_dst(struct nfnl_ct *ct, int reply, char *arg) argument 104 nl_cli_ct_parse_src_port(struct nfnl_ct *ct, int reply, char *arg) argument 110 nl_cli_ct_parse_dst_port(struct nfnl_ct *ct, int reply, char *arg) argument 116 nl_cli_ct_parse_tcp_state(struct nfnl_ct *ct, char *arg) argument 128 nl_cli_ct_parse_status(struct nfnl_ct *ct, char *arg) argument [all...] |
/external/libnl/lib/netfilter/ |
H A D | ct_obj.c | 21 #include <netlink/netfilter/ct.h> 58 struct nfnl_ct *ct = (struct nfnl_ct *) c; local 60 if (ct == NULL) 63 nl_addr_put(ct->ct_orig.src); 64 nl_addr_put(ct->ct_orig.dst); 65 nl_addr_put(ct->ct_repl.src); 66 nl_addr_put(ct->ct_repl.dst); 119 static void dump_icmp(struct nl_dump_params *p, struct nfnl_ct *ct, int reply) argument 121 if (nfnl_ct_test_icmp_type(ct, reply)) 122 nl_dump(p, "icmp type %d ", nfnl_ct_get_icmp_type(ct, repl 131 ct_dump_tuples(struct nfnl_ct *ct, struct nl_dump_params *p) argument 176 struct nfnl_ct *ct = (struct nfnl_ct *) a; local 200 struct nfnl_ct *ct = (struct nfnl_ct *) a; local 256 struct nfnl_ct *ct = (struct nfnl_ct *) a; local 370 nfnl_ct_get(struct nfnl_ct *ct) argument 375 nfnl_ct_put(struct nfnl_ct *ct) argument 387 nfnl_ct_set_family(struct nfnl_ct *ct, uint8_t family) argument 393 nfnl_ct_get_family(const struct nfnl_ct *ct) argument 401 nfnl_ct_set_proto(struct nfnl_ct *ct, uint8_t proto) argument 407 nfnl_ct_test_proto(const struct nfnl_ct *ct) argument 412 nfnl_ct_get_proto(const struct nfnl_ct *ct) argument 417 nfnl_ct_set_tcp_state(struct nfnl_ct *ct, uint8_t state) argument 423 nfnl_ct_test_tcp_state(const struct nfnl_ct *ct) argument 428 nfnl_ct_get_tcp_state(const struct nfnl_ct *ct) argument 456 nfnl_ct_set_status(struct nfnl_ct *ct, uint32_t status) argument 463 nfnl_ct_unset_status(struct nfnl_ct *ct, uint32_t status) argument 470 nfnl_ct_get_status(const struct nfnl_ct *ct) argument 500 nfnl_ct_set_timeout(struct nfnl_ct *ct, uint32_t timeout) argument 506 nfnl_ct_test_timeout(const struct nfnl_ct *ct) argument 511 nfnl_ct_get_timeout(const struct nfnl_ct *ct) argument 516 nfnl_ct_set_mark(struct nfnl_ct *ct, uint32_t mark) argument 522 nfnl_ct_test_mark(const struct nfnl_ct *ct) argument 527 nfnl_ct_get_mark(const struct nfnl_ct *ct) argument 532 nfnl_ct_set_use(struct nfnl_ct *ct, uint32_t use) argument 538 nfnl_ct_test_use(const struct nfnl_ct *ct) argument 543 nfnl_ct_get_use(const struct nfnl_ct *ct) argument 548 nfnl_ct_set_id(struct nfnl_ct *ct, uint32_t id) argument 554 nfnl_ct_test_id(const struct nfnl_ct *ct) argument 559 nfnl_ct_get_id(const struct nfnl_ct *ct) argument 564 ct_set_addr(struct nfnl_ct *ct, struct nl_addr *addr, int attr, struct nl_addr ** ct_addr) argument 583 nfnl_ct_set_src(struct nfnl_ct *ct, int repl, struct nl_addr *addr) argument 590 nfnl_ct_set_dst(struct nfnl_ct *ct, int repl, struct nl_addr *addr) argument 597 nfnl_ct_get_src(const struct nfnl_ct *ct, int repl) argument 606 nfnl_ct_get_dst(const struct nfnl_ct *ct, int repl) argument 615 nfnl_ct_set_src_port(struct nfnl_ct *ct, int repl, uint16_t port) argument 624 nfnl_ct_test_src_port(const struct nfnl_ct *ct, int repl) argument 630 nfnl_ct_get_src_port(const struct nfnl_ct *ct, int repl) argument 637 nfnl_ct_set_dst_port(struct nfnl_ct *ct, int repl, uint16_t port) argument 646 nfnl_ct_test_dst_port(const struct nfnl_ct *ct, int repl) argument 652 nfnl_ct_get_dst_port(const struct nfnl_ct *ct, int repl) argument 659 nfnl_ct_set_icmp_id(struct nfnl_ct *ct, int repl, uint16_t id) argument 668 nfnl_ct_test_icmp_id(const struct nfnl_ct *ct, int repl) argument 674 nfnl_ct_get_icmp_id(const struct nfnl_ct *ct, int repl) argument 681 nfnl_ct_set_icmp_type(struct nfnl_ct *ct, int repl, uint8_t type) argument 690 nfnl_ct_test_icmp_type(const struct nfnl_ct *ct, int repl) argument 696 nfnl_ct_get_icmp_type(const struct nfnl_ct *ct, int repl) argument 703 nfnl_ct_set_icmp_code(struct nfnl_ct *ct, int repl, uint8_t code) argument 712 nfnl_ct_test_icmp_code(const struct nfnl_ct *ct, int repl) argument 718 nfnl_ct_get_icmp_code(const struct nfnl_ct *ct, int repl) argument 725 nfnl_ct_set_packets(struct nfnl_ct *ct, int repl, uint64_t packets) argument 734 nfnl_ct_test_packets(const struct nfnl_ct *ct, int repl) argument 740 nfnl_ct_get_packets(const struct nfnl_ct *ct, int repl) argument 747 nfnl_ct_set_bytes(struct nfnl_ct *ct, int repl, uint64_t bytes) argument 756 nfnl_ct_test_bytes(const struct nfnl_ct *ct, int repl) argument 762 nfnl_ct_get_bytes(const struct nfnl_ct *ct, int repl) argument [all...] |
H A D | ct.c | 2 * lib/netfilter/ct.c Conntrack 17 * @defgroup ct Conntrack 29 #include <netlink/netfilter/ct.h> 105 static int ct_parse_ip(struct nfnl_ct *ct, int repl, struct nlattr *attr) argument 119 err = nfnl_ct_set_src(ct, repl, addr); 128 err = nfnl_ct_set_dst(ct, repl, addr); 137 err = nfnl_ct_set_src(ct, repl, addr); 146 err = nfnl_ct_set_dst(ct, repl, addr); 160 static int ct_parse_proto(struct nfnl_ct *ct, int repl, struct nlattr *attr) argument 170 nfnl_ct_set_proto(ct, nla_get_u 190 ct_parse_tuple(struct nfnl_ct *ct, int repl, struct nlattr *attr) argument 214 ct_parse_protoinfo_tcp(struct nfnl_ct *ct, struct nlattr *attr) argument 231 ct_parse_protoinfo(struct nfnl_ct *ct, struct nlattr *attr) argument 250 ct_parse_counters(struct nfnl_ct *ct, int repl, struct nlattr *attr) argument 292 struct nfnl_ct *ct; local 360 struct nfnl_ct *ct; local 383 nfnl_ct_build_tuple(struct nl_msg *msg, const struct nfnl_ct *ct, int repl) argument 450 nfnl_ct_build_message(const struct nfnl_ct *ct, int cmd, int flags, struct nl_msg **result) argument 472 nfnl_ct_build_add_request(const struct nfnl_ct *ct, int flags, struct nl_msg **result) argument 478 nfnl_ct_add(struct nl_sock *sk, const struct nfnl_ct *ct, int flags) argument 494 nfnl_ct_build_delete_request(const struct nfnl_ct *ct, int flags, struct nl_msg **result) argument 500 nfnl_ct_del(struct nl_sock *sk, const struct nfnl_ct *ct, int flags) argument 516 nfnl_ct_build_query_request(const struct nfnl_ct *ct, int flags, struct nl_msg **result) argument 522 nfnl_ct_query(struct nl_sock *sk, const struct nfnl_ct *ct, int flags) argument [all...] |
/external/boringssl/src/crypto/aes/ |
H A D | internal.h | 63 #define PUTU32(ct, st) \ 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/libnl/tests/ |
H A D | test-nf-cache-mngr.c | 6 struct nfnl_ct *ct = (struct nfnl_ct *) obj; local 12 if (!nl_addr_cmp(hack, nfnl_ct_get_src(ct, 1)) || 13 !nl_addr_cmp(hack, nfnl_ct_get_dst(ct, 1))) { 28 struct nl_cache *ct; local 38 ct = nl_cache_mngr_add(mngr, "netfilter/ct", &change_cb); 39 if (ct == NULL) { 40 nl_perror("nl_cache_mngr_add(netfilter/ct)");
|
/external/libvpx/libvpx/vp9/encoder/ |
H A D | vp9_subexp.h | 27 const unsigned int ct[2]); 29 int vp9_prob_diff_update_savings_search(const unsigned int *ct, 34 int vp9_prob_diff_update_savings_search_model(const unsigned int *ct,
|
H A D | vp9_cost.h | 29 static INLINE unsigned int cost_branch256(const unsigned int ct[2], argument 31 return ct[0] * vp9_cost_zero(p) + ct[1] * vp9_cost_one(p);
|
H A D | vp9_subexp.c | 119 int vp9_prob_diff_update_savings_search(const unsigned int *ct, argument 122 const int old_b = cost_branch256(ct, oldp); 128 const int new_b = cost_branch256(ct, newp); 140 int vp9_prob_diff_update_savings_search_model(const unsigned int *ct, argument 151 old_b += cost_branch256(ct + 2 * i, oldplist[i]); 152 old_b += cost_branch256(ct + 2 * PIVOT_NODE, oldplist[PIVOT_NODE]); 165 new_b += cost_branch256(ct + 2 * i, newplist[i]); 166 new_b += cost_branch256(ct + 2 * PIVOT_NODE, newplist[PIVOT_NODE]); 183 new_b += cost_branch256(ct + 2 * i, newplist[i]); 184 new_b += cost_branch256(ct 199 vp9_cond_prob_diff_update(vpx_writer *w, vpx_prob *oldp, const unsigned int ct[2]) argument [all...] |
/external/libvpx/libvpx/vpx_dsp/ |
H A D | prob.h | 64 const unsigned int ct[2], 67 const vpx_prob prob = get_binary_prob(ct[0], ct[1]); 68 const unsigned int count = MIN(ct[0] + ct[1], count_sat); 80 const unsigned int ct[2]) { 81 const unsigned int den = ct[0] + ct[1]; 88 clip_prob(((int64_t)(ct[0]) * 256 + (den >> 1)) / den); 63 merge_probs(vpx_prob pre_prob, const unsigned int ct[2], unsigned int count_sat, unsigned int max_update_factor) argument 79 mode_mv_merge_probs(vpx_prob pre_prob, const unsigned int ct[2]) argument
|
H A D | prob.c | 45 const unsigned int ct[2] = { left_count, right_count }; local 46 probs[i >> 1] = mode_mv_merge_probs(pre_probs[i >> 1], ct);
|
/external/iptables/extensions/ |
H A D | libxt_u32.c | 45 const struct xt_u32_test *ct; local 50 ct = &data->tests[testind]; 55 printf("0x%x", ct->location[0].number); 56 for (i = 1; i < ct->nnums; ++i) { 57 switch (ct->location[i].nextop) { 71 printf("0x%x", ct->location[i].number); 75 for (i = 0; i < ct->nvalues; ++i) { 78 if (ct->value[i].min == ct->value[i].max) 79 printf("0x%x", ct 106 struct xt_u32_test *ct = &data->tests[testind]; /* current test */ local [all...] |
/external/libpng/contrib/libtests/ |
H A D | gentests.sh | 86 for ct in gray palette 90 doit "$ct" "$bd" 96 for ct in gray-alpha rgb rgb-alpha 100 doit "$ct" "$bd"
|
/external/iptables/include/linux/netfilter/ |
H A D | xt_CT.h | 19 struct nf_conn *ct __attribute__((aligned(8))); member in struct:xt_ct_target_info 31 struct nf_conn *ct __attribute__((aligned(8))); member in struct:xt_ct_target_info_v1
|
/external/kernel-headers/original/uapi/linux/netfilter/ |
H A D | xt_CT.h | 20 struct nf_conn *ct __attribute__((aligned(8))); member in struct:xt_ct_target_info 32 struct nf_conn *ct __attribute__((aligned(8))); member in struct:xt_ct_target_info_v1
|
/external/pdfium/core/src/fxcodec/fx_libopenjpeg/libopenjpeg20/ |
H A D | raw.c | 73 raw->ct = 0; 78 if (raw->ct == 0) { 79 raw->ct = 8; 84 raw->ct = 7; 90 raw->ct--; 91 d = (raw->c >> raw->ct) & 0x01;
|
H A D | bio.c | 83 bio->ct = bio->buf == 0xff00 ? 7 : 8; 93 bio->ct = bio->buf == 0xff00 ? 7 : 8; 102 if (bio->ct == 0) { 105 bio->ct--; 106 bio->buf |= b << bio->ct; 110 if (bio->ct == 0) { 113 bio->ct--; 114 return (bio->buf >> bio->ct) & 1; 143 bio->ct = 8; 151 bio->ct [all...] |
H A D | mqc.c | 210 mqc->ct = 7; 216 mqc->ct = 8; 224 mqc->ct = 7; 229 mqc->ct = 8; 239 mqc->ct--; 240 if (mqc->ct == 0) { 312 mqc->ct = i & 0x0f; 327 mqc->ct = 8; 331 mqc->ct = 7; 336 mqc->ct [all...] |
/external/skia/tests/ |
H A D | CTest.cpp | 15 sk_colortype_t ct = sk_colortype_get_default_8888(); local 18 1, 1, ct, PREMUL_SK_ALPHATYPE
|
/external/google-breakpad/src/testing/include/gmock/ |
H A D | gmock-generated-function-mockers.h | 347 #define GMOCK_METHOD0_(tn, constness, ct, Method, F) \ 348 GMOCK_RESULT_(tn, F) ct Method() constness { \ 363 #define GMOCK_METHOD1_(tn, constness, ct, Method, F) \ 364 GMOCK_RESULT_(tn, F) ct Method(GMOCK_ARG_(tn, F, 1) gmock_a1) constness { \ 379 #define GMOCK_METHOD2_(tn, constness, ct, Method, F) \ 380 GMOCK_RESULT_(tn, F) ct Method(GMOCK_ARG_(tn, F, 1) gmock_a1, \ 397 #define GMOCK_METHOD3_(tn, constness, ct, Method, F) \ 398 GMOCK_RESULT_(tn, F) ct Method(GMOCK_ARG_(tn, F, 1) gmock_a1, \ 419 #define GMOCK_METHOD4_(tn, constness, ct, Method, F) \ 420 GMOCK_RESULT_(tn, F) ct Metho [all...] |
/external/icu/icu4c/source/i18n/ |
H A D | regextxt.cpp | 18 uregex_utext_unescape_charAt(int32_t offset, void *ct) { argument 19 struct URegexUTextUnescapeCharContext *context = (struct URegexUTextUnescapeCharContext *)ct;
|
/external/chromium-trace/trace-viewer/third_party/Paste/paste/cowbell/ |
H A D | __init__.py | 22 ct = header_value(headers, 'content-type') 23 if ct and ct.startswith('text/html'): 24 type.append(ct)
|