/external/opencv3/modules/features2d/src/ |
D | agast.cpp | 102 register const int cb = *ptr + threshold; in AGAST_5_8() local 104 if(ptr[offset0] > cb) in AGAST_5_8() 105 if(ptr[offset2] > cb) in AGAST_5_8() 106 if(ptr[offset3] > cb) in AGAST_5_8() 107 if(ptr[offset5] > cb) in AGAST_5_8() 108 if(ptr[offset1] > cb) in AGAST_5_8() 109 if(ptr[offset4] > cb) in AGAST_5_8() 112 if(ptr[offset7] > cb) in AGAST_5_8() 117 if(ptr[offset4] > cb) in AGAST_5_8() 118 if(ptr[offset6] > cb) in AGAST_5_8() [all …]
|
D | agast_score.cpp | 119 register const int cb = *ptr + b_test; in agast_cornerScore() local 121 if(ptr[offset0] > cb) in agast_cornerScore() 122 if(ptr[offset2] > cb) in agast_cornerScore() 123 if(ptr[offset4] > cb) in agast_cornerScore() 124 if(ptr[offset5] > cb) in agast_cornerScore() 125 if(ptr[offset7] > cb) in agast_cornerScore() 126 if(ptr[offset3] > cb) in agast_cornerScore() 127 if(ptr[offset1] > cb) in agast_cornerScore() 128 if(ptr[offset6] > cb) in agast_cornerScore() 129 if(ptr[offset8] > cb) in agast_cornerScore() [all …]
|
/external/iptables/libxtables/ |
D | xtoptions.c | 29 #define XTOPT_MKPTR(cb) \ argument 30 ((void *)((char *)(cb)->data + (cb)->entry->ptroff)) 172 static void xtopt_parse_int(struct xt_option_call *cb) in xtopt_parse_int() argument 174 const struct xt_option_entry *entry = cb->entry; in xtopt_parse_int() 178 if (cb->entry->min != 0) in xtopt_parse_int() 179 lmin = cb->entry->min; in xtopt_parse_int() 180 if (cb->entry->max != 0) in xtopt_parse_int() 181 lmax = cb->entry->max; in xtopt_parse_int() 183 if (!xtables_strtoul(cb->arg, NULL, &value, lmin, lmax)) in xtopt_parse_int() 187 cb->ext_name, entry->name, lmin, lmax); in xtopt_parse_int() [all …]
|
/external/strace/ |
D | aio.c | 81 print_common_flags(const struct iocb *cb) in print_common_flags() argument 85 if (cb->aio_flags & IOCB_FLAG_RESFD) in print_common_flags() 86 tprintf(", resfd=%d", cb->aio_resfd); in print_common_flags() 87 if (cb->aio_flags & ~IOCB_FLAG_RESFD) in print_common_flags() 88 tprintf(", flags=%x", cb->aio_flags); in print_common_flags() 93 iocb_is_valid(const struct iocb *cb) in iocb_is_valid() argument 95 return cb->aio_buf == (unsigned long) cb->aio_buf && in iocb_is_valid() 96 cb->aio_nbytes == (size_t) cb->aio_nbytes && in iocb_is_valid() 97 (ssize_t) cb->aio_nbytes >= 0; in iocb_is_valid() 101 print_iocb_header(const struct iocb *cb) in print_iocb_header() argument [all …]
|
/external/sl4a/ScriptingLayerForAndroid/src/org/apache/harmony/niochar/charset/additional/ |
D | IBM437.java | 59 protected CoderResult decodeLoop(ByteBuffer bb, CharBuffer cb){ in decodeLoop() argument 60 int cbRemaining = cb.remaining(); in decodeLoop() 77 if(bb.hasArray() && cb.hasArray()) { in decodeLoop() 81 char[] cArr = cb.array(); in decodeLoop() 83 int cStart = cb.position(); in decodeLoop() 95 cb.position(cStart); in decodeLoop() 103 cb.put(arr[index]); in decodeLoop() 105 cb.put((char)(in & 0xFF)); in decodeLoop() 156 protected CoderResult encodeLoop(CharBuffer cb, ByteBuffer bb){ in encodeLoop() argument 186 if(bb.hasArray() && cb.hasArray()) { in encodeLoop() [all …]
|
/external/libnl/lib/ |
D | handlers.c | 208 struct nl_cb *cb; in nl_cb_alloc() local 213 cb = calloc(1, sizeof(*cb)); in nl_cb_alloc() 214 if (!cb) in nl_cb_alloc() 217 cb->cb_refcnt = 1; in nl_cb_alloc() 220 nl_cb_set(cb, i, kind, NULL, NULL); in nl_cb_alloc() 222 nl_cb_err(cb, kind, NULL, NULL); in nl_cb_alloc() 224 return cb; in nl_cb_alloc() 235 struct nl_cb *cb; in nl_cb_clone() local 237 cb = nl_cb_alloc(NL_CB_DEFAULT); in nl_cb_clone() 238 if (!cb) in nl_cb_clone() [all …]
|
D | nl.c | 207 struct nl_cb *cb; in nl_sendmsg() local 212 cb = sk->s_cb; in nl_sendmsg() 213 if (cb->cb_set[NL_CB_MSG_OUT]) in nl_sendmsg() 214 if (nl_cb_call(cb, NL_CB_MSG_OUT, msg) != NL_OK) in nl_sendmsg() 325 struct nl_cb *cb = sk->s_cb; in nl_send_auto_complete() local 329 if (cb->cb_send_ow) in nl_send_auto_complete() 330 return cb->cb_send_ow(sk, msg); in nl_send_auto_complete() 490 #define NL_CB_CALL(cb, type, msg) \ argument 492 err = nl_cb_call(cb, type, msg); \ 506 static int recvmsgs(struct nl_sock *sk, struct nl_cb *cb) in recvmsgs() argument [all …]
|
/external/boringssl/src/crypto/pem/ |
D | pem_pk8.c | 72 pem_password_cb *cb, void *u); 76 pem_password_cb *cb, void *u); 86 pem_password_cb *cb, void *u) in PEM_write_bio_PKCS8PrivateKey_nid() argument 88 return do_pk8pkey(bp, x, 0, nid, NULL, kstr, klen, cb, u); in PEM_write_bio_PKCS8PrivateKey_nid() 93 pem_password_cb *cb, void *u) in PEM_write_bio_PKCS8PrivateKey() argument 95 return do_pk8pkey(bp, x, 0, -1, enc, kstr, klen, cb, u); in PEM_write_bio_PKCS8PrivateKey() 100 pem_password_cb *cb, void *u) in i2d_PKCS8PrivateKey_bio() argument 102 return do_pk8pkey(bp, x, 1, -1, enc, kstr, klen, cb, u); in i2d_PKCS8PrivateKey_bio() 107 pem_password_cb *cb, void *u) in i2d_PKCS8PrivateKey_nid_bio() argument 109 return do_pk8pkey(bp, x, 1, nid, NULL, kstr, klen, cb, u); in i2d_PKCS8PrivateKey_nid_bio() [all …]
|
/external/mesa3d/src/gallium/drivers/r600/ |
D | evergreen_state.c | 1136 struct pipe_constant_buffer cb; in evergreen_set_clip_state() local 1162 cb.buffer = NULL; in evergreen_set_clip_state() 1163 cb.user_buffer = state->ucp; in evergreen_set_clip_state() 1164 cb.buffer_offset = 0; in evergreen_set_clip_state() 1165 cb.buffer_size = 4*4*8; in evergreen_set_clip_state() 1166 r600_set_constant_buffer(ctx, PIPE_SHADER_VERTEX, 1, &cb); in evergreen_set_clip_state() 1167 pipe_resource_reference(&cb.buffer, NULL); in evergreen_set_clip_state() 2017 struct pipe_constant_buffer *cb; in evergreen_emit_constant_buffers() local 2022 cb = &state->cb[buffer_index]; in evergreen_emit_constant_buffers() 2023 rbuffer = (struct r600_resource*)cb->buffer; in evergreen_emit_constant_buffers() [all …]
|
D | r600_pipe.h | 311 struct pipe_constant_buffer cb[PIPE_MAX_CONSTANT_BUFFERS]; member 488 void evergreen_init_common_regs(struct r600_command_buffer *cb, 640 struct pipe_constant_buffer *cb); 692 static INLINE void r600_store_value(struct r600_command_buffer *cb, unsigned value) in r600_store_value() argument 694 cb->buf[cb->atom.num_dw++] = value; in r600_store_value() 697 static INLINE void r600_store_config_reg_seq(struct r600_command_buffer *cb, unsigned reg, unsigned… in r600_store_config_reg_seq() argument 700 assert(cb->atom.num_dw+2+num <= cb->max_num_dw); in r600_store_config_reg_seq() 701 cb->buf[cb->atom.num_dw++] = PKT3(PKT3_SET_CONFIG_REG, num, 0); in r600_store_config_reg_seq() 702 cb->buf[cb->atom.num_dw++] = (reg - R600_CONFIG_REG_OFFSET) >> 2; in r600_store_config_reg_seq() 709 static INLINE void r600_store_context_reg_seq(struct r600_command_buffer *cb, unsigned reg, unsigne… in r600_store_context_reg_seq() argument [all …]
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_deadlock_detector2.cc | 93 void MutexInit(DDCallback *cb, DDMutex *m); 94 void MutexBeforeLock(DDCallback *cb, DDMutex *m, bool wlock); 95 void MutexAfterLock(DDCallback *cb, DDMutex *m, bool wlock, 97 void MutexBeforeUnlock(DDCallback *cb, DDMutex *m, bool wlock); 98 void MutexDestroy(DDCallback *cb, DDMutex *m); 100 DDReport *GetReport(DDCallback *cb); 104 u32 allocateId(DDCallback *cb); 153 void DD::MutexInit(DDCallback *cb, DDMutex *m) { in MutexInit() argument 154 VPrintf(2, "#%llu: DD::MutexInit(%p)\n", cb->lt->ctx, m); in MutexInit() 175 u32 DD::allocateId(DDCallback *cb) { in allocateId() argument [all …]
|
D | sanitizer_deadlock_detector1.cc | 49 void MutexInit(DDCallback *cb, DDMutex *m) override; 50 void MutexBeforeLock(DDCallback *cb, DDMutex *m, bool wlock) override; 51 void MutexAfterLock(DDCallback *cb, DDMutex *m, bool wlock, 53 void MutexBeforeUnlock(DDCallback *cb, DDMutex *m, bool wlock) override; 54 void MutexDestroy(DDCallback *cb, DDMutex *m) override; 56 DDReport *GetReport(DDCallback *cb) override; 59 void ReportDeadlock(DDCallback *cb, DDMutex *m); 93 void DD::MutexInit(DDCallback *cb, DDMutex *m) { in MutexInit() argument 95 m->stk = cb->Unwind(); in MutexInit() 104 void DD::MutexBeforeLock(DDCallback *cb, in MutexBeforeLock() argument [all …]
|
/external/webrtc/webrtc/base/ |
D | callback_unittest.cc | 49 Callback0<void> cb; in TEST() local 50 EXPECT_TRUE(cb.empty()); in TEST() 51 cb(); // Executing an empty callback should not crash. in TEST() 52 cb = Callback0<void>(&f); in TEST() 53 EXPECT_FALSE(cb.empty()); in TEST() 54 cb(); in TEST() 58 Callback0<int> cb; in TEST() local 59 EXPECT_TRUE(cb.empty()); in TEST() 60 cb = Callback0<int>(&g); in TEST() 61 EXPECT_FALSE(cb.empty()); in TEST() [all …]
|
/external/iptables/extensions/ |
D | libxt_MARK.c | 83 static void MARK_parse_v0(struct xt_option_call *cb) in MARK_parse_v0() argument 85 struct xt_mark_target_info *markinfo = cb->data; in MARK_parse_v0() 87 xtables_option_parse(cb); in MARK_parse_v0() 88 switch (cb->entry->id) { in MARK_parse_v0() 90 markinfo->mark = cb->val.mark; in MARK_parse_v0() 95 cb->entry->name); in MARK_parse_v0() 99 static void MARK_check(struct xt_fcheck_call *cb) in MARK_check() argument 101 if (cb->xflags == 0) in MARK_check() 107 static void MARK_parse_v1(struct xt_option_call *cb) in MARK_parse_v1() argument 109 struct xt_mark_target_info_v1 *markinfo = cb->data; in MARK_parse_v1() [all …]
|
D | libxt_conntrack.c | 337 static void conntrack_parse(struct xt_option_call *cb) in conntrack_parse() argument 339 struct xt_conntrack_info *sinfo = cb->data; in conntrack_parse() 341 xtables_option_parse(cb); in conntrack_parse() 342 switch (cb->entry->id) { in conntrack_parse() 344 parse_states(cb->arg, sinfo); in conntrack_parse() 345 if (cb->invert) in conntrack_parse() 349 sinfo->tuple[IP_CT_DIR_ORIGINAL].dst.protonum = cb->val.protocol; in conntrack_parse() 350 if (cb->invert) in conntrack_parse() 360 if (cb->invert) in conntrack_parse() 362 sinfo->tuple[IP_CT_DIR_ORIGINAL].src.ip = cb->val.haddr.ip; in conntrack_parse() [all …]
|
D | libxt_owner.c | 137 static void owner_mt_parse_v0(struct xt_option_call *cb) in owner_mt_parse_v0() argument 139 struct ipt_owner_info *info = cb->data; in owner_mt_parse_v0() 144 xtables_option_parse(cb); in owner_mt_parse_v0() 145 switch (cb->entry->id) { in owner_mt_parse_v0() 147 if ((pwd = getpwnam(cb->arg)) != NULL) in owner_mt_parse_v0() 149 else if (!xtables_strtoui(cb->arg, NULL, &id, 0, UINT32_MAX - 1)) in owner_mt_parse_v0() 150 xtables_param_act(XTF_BAD_VALUE, "owner", "--uid-owner", cb->arg); in owner_mt_parse_v0() 151 if (cb->invert) in owner_mt_parse_v0() 157 if ((grp = getgrnam(cb->arg)) != NULL) in owner_mt_parse_v0() 159 else if (!xtables_strtoui(cb->arg, NULL, &id, 0, UINT32_MAX - 1)) in owner_mt_parse_v0() [all …]
|
D | libxt_ipvs.c | 66 static void ipvs_mt_parse(struct xt_option_call *cb) in ipvs_mt_parse() argument 68 struct xt_ipvs_mtinfo *data = cb->data; in ipvs_mt_parse() 70 xtables_option_parse(cb); in ipvs_mt_parse() 71 switch (cb->entry->id) { in ipvs_mt_parse() 73 data->l4proto = cb->val.protocol; in ipvs_mt_parse() 76 memcpy(&data->vaddr, &cb->val.haddr, sizeof(cb->val.haddr)); in ipvs_mt_parse() 77 memcpy(&data->vmask, &cb->val.hmask, sizeof(cb->val.hmask)); in ipvs_mt_parse() 80 if (strcasecmp(cb->arg, "ORIGINAL") == 0) { in ipvs_mt_parse() 83 } else if (strcasecmp(cb->arg, "REPLY") == 0) { in ipvs_mt_parse() 88 "ipvs", "--vdir", cb->arg); in ipvs_mt_parse() [all …]
|
D | libxt_connbytes.c | 31 static void connbytes_parse(struct xt_option_call *cb) in connbytes_parse() argument 33 struct xt_connbytes_info *sinfo = cb->data; in connbytes_parse() 36 xtables_option_parse(cb); in connbytes_parse() 37 switch (cb->entry->id) { in connbytes_parse() 39 sinfo->count.from = cb->val.u64_range[0]; in connbytes_parse() 41 if (cb->nvals == 2) in connbytes_parse() 42 sinfo->count.to = cb->val.u64_range[1]; in connbytes_parse() 48 if (cb->invert) { in connbytes_parse() 55 if (strcmp(cb->arg, "original") == 0) in connbytes_parse() 57 else if (strcmp(cb->arg, "reply") == 0) in connbytes_parse() [all …]
|
D | libxt_TOS.c | 94 static void tos_tg_parse_v0(struct xt_option_call *cb) in tos_tg_parse_v0() argument 96 struct ipt_tos_target_info *info = cb->data; in tos_tg_parse_v0() 98 xtables_option_parse(cb); in tos_tg_parse_v0() 99 if (cb->val.tos_mask != 0xFF) in tos_tg_parse_v0() 103 info->tos = cb->val.tos_value; in tos_tg_parse_v0() 106 static void tos_tg_parse(struct xt_option_call *cb) in tos_tg_parse() argument 108 struct xt_tos_target_info *info = cb->data; in tos_tg_parse() 110 xtables_option_parse(cb); in tos_tg_parse() 111 switch (cb->entry->id) { in tos_tg_parse() 113 info->tos_value = cb->val.tos_value; in tos_tg_parse() [all …]
|
/external/libselinux/src/ |
D | callbacks.c | 75 selinux_set_callback(int type, union selinux_callback cb) in selinux_set_callback() argument 79 selinux_log = cb.func_log; in selinux_set_callback() 82 selinux_audit = cb.func_audit; in selinux_set_callback() 85 selinux_validate = cb.func_validate; in selinux_set_callback() 88 selinux_netlink_setenforce = cb.func_setenforce; in selinux_set_callback() 91 selinux_netlink_policyload = cb.func_policyload; in selinux_set_callback() 100 union selinux_callback cb; in selinux_get_callback() local 104 cb.func_log = selinux_log; in selinux_get_callback() 107 cb.func_audit = selinux_audit; in selinux_get_callback() 110 cb.func_validate = selinux_validate; in selinux_get_callback() [all …]
|
/external/selinux/libselinux/src/ |
D | callbacks.c | 76 selinux_set_callback(int type, union selinux_callback cb) in selinux_set_callback() argument 80 selinux_log = cb.func_log; in selinux_set_callback() 83 selinux_audit = cb.func_audit; in selinux_set_callback() 86 selinux_validate = cb.func_validate; in selinux_set_callback() 89 selinux_netlink_setenforce = cb.func_setenforce; in selinux_set_callback() 92 selinux_netlink_policyload = cb.func_policyload; in selinux_set_callback() 101 union selinux_callback cb; in selinux_get_callback() local 105 cb.func_log = selinux_log; in selinux_get_callback() 108 cb.func_audit = selinux_audit; in selinux_get_callback() 111 cb.func_validate = selinux_validate; in selinux_get_callback() [all …]
|
/external/valgrind/memcheck/tests/vbit-test/ |
D | valgrind.c | 36 IRICB cb; in new_iricb() local 38 cb.op = op->op; in new_iricb() 39 cb.result = (HWord)&data->result.value; in new_iricb() 40 cb.opnd1 = (HWord)&data->opnds[0].value; in new_iricb() 41 cb.opnd2 = (HWord)&data->opnds[1].value; in new_iricb() 42 cb.opnd3 = (HWord)&data->opnds[2].value; in new_iricb() 43 cb.opnd4 = (HWord)&data->opnds[3].value; in new_iricb() 44 cb.t_result = data->result.type; in new_iricb() 45 cb.t_opnd1 = data->opnds[0].type; in new_iricb() 46 cb.t_opnd2 = data->opnds[1].type; in new_iricb() [all …]
|
/external/mesa3d/src/gallium/state_trackers/vega/ |
D | arc.c | 451 void (*move)(struct arc_cb *cb, VGfloat x, VGfloat y); 452 void (*point)(struct arc_cb *cb, VGfloat x, VGfloat y); 453 void (*bezier)(struct arc_cb *cb, struct bezier *bezier); 458 static void cb_null_move(struct arc_cb *cb, VGfloat x, VGfloat y) in cb_null_move() argument 462 static void polygon_point(struct arc_cb *cb, VGfloat x, VGfloat y) in polygon_point() argument 464 struct polygon *poly = (struct polygon*)cb->user_data; in polygon_point() 468 static void polygon_bezier(struct arc_cb *cb, struct bezier *bezier) in polygon_bezier() argument 470 struct polygon *poly = (struct polygon*)cb->user_data; in polygon_bezier() 474 static void stroke_point(struct arc_cb *cb, VGfloat x, VGfloat y) in stroke_point() argument 476 struct stroker *stroker = (struct stroker*)cb->user_data; in stroke_point() [all …]
|
/external/mesa3d/src/gallium/drivers/svga/ |
D | svga_pipe_constants.c | 49 struct pipe_constant_buffer *cb) in svga_set_constant_buffer() argument 52 struct pipe_resource *buf = cb ? cb->buffer : NULL; in svga_set_constant_buffer() 54 if (cb && cb->user_buffer) { in svga_set_constant_buffer() 56 (void *) cb->user_buffer, in svga_set_constant_buffer() 57 cb->buffer_size, in svga_set_constant_buffer() 64 pipe_resource_reference( &svga->curr.cb[shader], in svga_set_constant_buffer() 72 if (cb && cb->user_buffer) { in svga_set_constant_buffer()
|
/external/strace/tests/ |
D | aio.c | 56 const struct iocb cb[] = { in main() local 116 const long cbs[ARRAY_SIZE(cb) + 2] = { in main() 117 (long) &cb[0], (long) &cb[1], in main() 120 const long cbvs[ARRAY_SIZE(cb) + 2] = { in main() 126 const unsigned int nr = ARRAY_SIZE(cb); in main() 149 (unsigned long long) cb[0].aio_data, data0, in main() 150 (unsigned int) sizeof(data0), (long long) cb[0].aio_offset, in main() 151 (unsigned long long) cb[1].aio_data, data1, in main() 152 (unsigned int) sizeof(data1), (long long) cb[1].aio_offset, in main() 161 (unsigned long long) cb[0].aio_data, &cb[0], in main() [all …]
|