/external/libaom/libaom/third_party/fastfeat/ |
D | fast_9.c | 17 int cb = *p + b; in aom_fast9_corner_score() local 21 if( p[pixel[0]] > cb) in aom_fast9_corner_score() 22 if( p[pixel[1]] > cb) in aom_fast9_corner_score() 23 if( p[pixel[2]] > cb) in aom_fast9_corner_score() 24 if( p[pixel[3]] > cb) in aom_fast9_corner_score() 25 if( p[pixel[4]] > cb) in aom_fast9_corner_score() 26 if( p[pixel[5]] > cb) in aom_fast9_corner_score() 27 if( p[pixel[6]] > cb) in aom_fast9_corner_score() 28 if( p[pixel[7]] > cb) in aom_fast9_corner_score() 29 if( p[pixel[8]] > cb) in aom_fast9_corner_score() [all …]
|
/external/iptables/libxtables/ |
D | xtoptions.c | 29 #define XTOPT_MKPTR(cb) \ argument 30 ((void *)((char *)(cb)->data + (cb)->entry->ptroff)) 176 static void xtopt_parse_int(struct xt_option_call *cb) in xtopt_parse_int() argument 178 const struct xt_option_entry *entry = cb->entry; in xtopt_parse_int() 182 if (cb->entry->min != 0) in xtopt_parse_int() 183 lmin = cb->entry->min; in xtopt_parse_int() 184 if (cb->entry->max != 0) in xtopt_parse_int() 185 lmax = cb->entry->max; in xtopt_parse_int() 187 if (!xtables_strtoul(cb->arg, NULL, &value, lmin, lmax)) in xtopt_parse_int() 191 cb->ext_name, entry->name, lmin, lmax); in xtopt_parse_int() [all …]
|
/external/llvm-project/clang-tools-extra/clangd/ |
D | ClangdServer.cpp | 228 Callback<CodeCompleteResult> CB) { in codeComplete() argument 234 auto Task = [Pos, CodeCompleteOpts, File = File.str(), CB = std::move(CB), in codeComplete() 237 return CB(IP.takeError()); in codeComplete() 239 return CB(llvm::make_error<CancelledError>(Reason)); in codeComplete() 269 CB(std::move(Result)); in codeComplete() 278 // the result (e.g. non-index completion, speculation fails), so that `CB` in codeComplete() 292 Callback<SignatureHelp> CB) { in signatureHelp() argument 294 auto Action = [Pos, File = File.str(), CB = std::move(CB), in signatureHelp() 297 return CB(IP.takeError()); in signatureHelp() 301 return CB(error("Failed to parse includes")); in signatureHelp() [all …]
|
/external/strace/ |
D | aio.c | 80 print_common_flags(struct tcb *tcp, const struct iocb *cb) in print_common_flags() argument 84 if (cb->aio_flags & IOCB_FLAG_RESFD) in print_common_flags() 85 PRINT_FIELD_FD(", ", *cb, aio_resfd, tcp); in print_common_flags() 87 if (cb->aio_flags & ~IOCB_FLAG_RESFD) in print_common_flags() 88 PRINT_FIELD_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(struct tcb *tcp, const struct iocb *cb) in print_iocb_header() argument [all …]
|
/external/libnl/lib/ |
D | handlers.c | 15 * @defgroup cb Callbacks/Customization 205 struct nl_cb *cb; in nl_cb_alloc() local 210 cb = calloc(1, sizeof(*cb)); in nl_cb_alloc() 211 if (!cb) in nl_cb_alloc() 214 cb->cb_refcnt = 1; in nl_cb_alloc() 215 cb->cb_active = NL_CB_TYPE_MAX + 1; in nl_cb_alloc() 218 nl_cb_set(cb, i, kind, NULL, NULL); in nl_cb_alloc() 220 nl_cb_err(cb, kind, NULL, NULL); in nl_cb_alloc() 222 return cb; in nl_cb_alloc() 233 struct nl_cb *cb; in nl_cb_clone() local [all …]
|
/external/linux-kselftest/tools/testing/selftests/bpf/verifier/ |
D | ctx_skb.c | 392 "check cb access: byte", 396 offsetof(struct __sk_buff, cb[0])), 398 offsetof(struct __sk_buff, cb[0]) + 1), 400 offsetof(struct __sk_buff, cb[0]) + 2), 402 offsetof(struct __sk_buff, cb[0]) + 3), 404 offsetof(struct __sk_buff, cb[1])), 406 offsetof(struct __sk_buff, cb[1]) + 1), 408 offsetof(struct __sk_buff, cb[1]) + 2), 410 offsetof(struct __sk_buff, cb[1]) + 3), 412 offsetof(struct __sk_buff, cb[2])), [all …]
|
/external/libffi/src/riscv/ |
D | ffi.c | 100 static float_struct_info struct_passed_as_elements(call_builder *cb, ffi_type *top) { in struct_passed_as_elements() argument 116 if (cb->used_float + num_floats > NARGREG || cb->used_integer + (2 - num_floats) > NARGREG) in struct_passed_as_elements() 132 static void marshal_atom(call_builder *cb, int type, void *data) { in marshal_atom() argument 153 asm("" : "=f"(cb->aregs->fa[cb->used_float++]) : "0"(*(float *)data)); in marshal_atom() 158 asm("" : "=f"(cb->aregs->fa[cb->used_float++]) : "0"(*(double *)data)); in marshal_atom() 164 if (cb->used_integer == NARGREG) { in marshal_atom() 165 *cb->used_stack++ = value; in marshal_atom() 167 cb->aregs->a[cb->used_integer++] = value; in marshal_atom() 171 static void unmarshal_atom(call_builder *cb, int type, void *data) { in unmarshal_atom() argument 176 asm("" : "=f"(*(float *)data) : "0"(cb->aregs->fa[cb->used_float++])); in unmarshal_atom() [all …]
|
/external/rust/crates/protobuf-codegen/src/ |
D | code_writer.rs | 82 pub fn indented<F>(&mut self, cb: F) in indented() 86 cb(&mut CodeWriter { in indented() 93 pub fn commented<F>(&mut self, cb: F) in commented() 97 cb(&mut CodeWriter { in commented() 138 pub fn block<F>(&mut self, first_line: &str, last_line: &str, cb: F) in block() 143 self.indented(cb); in block() 147 pub fn expr_block<F>(&mut self, prefix: &str, cb: F) in expr_block() 151 self.block(&format!("{} {{", prefix), "}", cb); in expr_block() 154 pub fn stmt_block<S: AsRef<str>, F>(&mut self, prefix: S, cb: F) in stmt_block() 158 self.block(&format!("{} {{", prefix.as_ref()), "};", cb); in stmt_block() [all …]
|
/external/mesa3d/src/gallium/drivers/r600/ |
D | r600_pipe.h | 419 struct pipe_constant_buffer cb[PIPE_MAX_CONSTANT_BUFFERS]; member 437 struct r600_command_buffer *cb; member 620 struct r600_command_buffer *cb) in r600_emit_command_buffer() argument 622 assert(cs->current.cdw + cb->num_dw <= cs->current.max_dw); in r600_emit_command_buffer() 623 memcpy(cs->current.buf + cs->current.cdw, cb->buf, 4 * cb->num_dw); in r600_emit_command_buffer() 624 cs->current.cdw += cb->num_dw; in r600_emit_command_buffer() 663 struct r600_command_buffer *cb) in r600_set_cso_state_with_cb() argument 665 state->cb = cb; in r600_set_cso_state_with_cb() 666 state->atom.num_dw = cb ? cb->num_dw : 0; in r600_set_cso_state_with_cb() 684 struct r600_command_buffer *cb, [all …]
|
D | evergreen_state.c | 1285 * This function intializes the CB* register values for RATs. It is meant 1334 /* XXX handle enabling of CB beyond BASE8 which has different offset */ in evergreen_init_color_surface() 1842 struct r600_surface *cb = NULL; in evergreen_emit_framebuffer_state() local 1853 cb = (struct r600_surface*)state->cbufs[i]; in evergreen_emit_framebuffer_state() 1854 if (!cb) { in evergreen_emit_framebuffer_state() 1860 tex = (struct r600_texture *)cb->base.texture; in evergreen_emit_framebuffer_state() 1863 (struct r600_resource*)cb->base.texture, in evergreen_emit_framebuffer_state() 1878 radeon_emit(cs, cb->cb_color_base); /* R_028C60_CB_COLOR0_BASE */ in evergreen_emit_framebuffer_state() 1879 radeon_emit(cs, cb->cb_color_pitch); /* R_028C64_CB_COLOR0_PITCH */ in evergreen_emit_framebuffer_state() 1880 radeon_emit(cs, cb->cb_color_slice); /* R_028C68_CB_COLOR0_SLICE */ in evergreen_emit_framebuffer_state() [all …]
|
/external/cn-cbor/src/ |
D | cn-cbor.c | 23 void cn_cbor_free(cn_cbor* cb CBOR_CONTEXT) { in cn_cbor_free() 24 cn_cbor* p = cb; in cn_cbor_free() 105 cn_cbor* cb = NULL; in decode_item() local 137 cb = CN_CALLOC_CONTEXT(); in decode_item() 138 if (!cb) in decode_item() 141 cb->type = mt_trans[mt]; in decode_item() 143 cb->parent = parent; in decode_item() 145 parent->last_child->next = cb; in decode_item() 147 parent->first_child = cb; in decode_item() 149 parent->last_child = cb; in decode_item() [all …]
|
/external/protobuf/js/ |
D | gulpfile.js | 5 function exec(command, cb) { argument 6 execFile('sh', ['-c', command], cb); 55 gulp.task('genproto_well_known_types_closure', function (cb) { argument 60 cb(err); 64 gulp.task('genproto_group1_closure', function (cb) { argument 69 cb(err); 73 gulp.task('genproto_group2_closure', function (cb) { argument 78 cb(err); 82 gulp.task('genproto_well_known_types_commonjs', function (cb) { argument 87 cb(err); [all …]
|
/external/llvm-project/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_deadlock_detector2.cpp | 92 void MutexInit(DDCallback *cb, DDMutex *m); 93 void MutexBeforeLock(DDCallback *cb, DDMutex *m, bool wlock); 94 void MutexAfterLock(DDCallback *cb, DDMutex *m, bool wlock, 96 void MutexBeforeUnlock(DDCallback *cb, DDMutex *m, bool wlock); 97 void MutexDestroy(DDCallback *cb, DDMutex *m); 99 DDReport *GetReport(DDCallback *cb); 103 u32 allocateId(DDCallback *cb); 148 void DD::MutexInit(DDCallback *cb, DDMutex *m) { in MutexInit() argument 149 VPrintf(2, "#%llu: DD::MutexInit(%p)\n", cb->lt->ctx, m); in MutexInit() 170 u32 DD::allocateId(DDCallback *cb) { in allocateId() argument [all …]
|
D | sanitizer_deadlock_detector1.cpp | 48 void MutexInit(DDCallback *cb, DDMutex *m) override; 49 void MutexBeforeLock(DDCallback *cb, DDMutex *m, bool wlock) override; 50 void MutexAfterLock(DDCallback *cb, DDMutex *m, bool wlock, 52 void MutexBeforeUnlock(DDCallback *cb, DDMutex *m, bool wlock) override; 53 void MutexDestroy(DDCallback *cb, DDMutex *m) override; 55 DDReport *GetReport(DDCallback *cb) override; 58 void ReportDeadlock(DDCallback *cb, DDMutex *m); 92 void DD::MutexInit(DDCallback *cb, DDMutex *m) { in MutexInit() argument 94 m->stk = cb->Unwind(); in MutexInit() 103 void DD::MutexBeforeLock(DDCallback *cb, in MutexBeforeLock() 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/clang/lib/StaticAnalyzer/Checkers/ |
D | UnreachableCodeChecker.cpp | 40 static inline const Stmt *getUnreachableStmt(const CFGBlock *CB); 41 static void FindUnreachableEntryPoints(const CFGBlock *CB, 44 static bool isInvalidPath(const CFGBlock *CB, const ParentMap &PM); 45 static inline bool isEmptyCFGBlock(const CFGBlock *CB); 79 const CFGBlock *CB = BE->getBlock(); in checkEndAnalysis() local 80 reachable.insert(CB->getBlockID()); in checkEndAnalysis() 97 const CFGBlock *CB = *I; in checkEndAnalysis() local 99 if (reachable.count(CB->getBlockID())) in checkEndAnalysis() 103 if (isEmptyCFGBlock(CB)) in checkEndAnalysis() 107 if (!visited.count(CB->getBlockID())) in checkEndAnalysis() [all …]
|
/external/cn-cbor/test/ |
D | cbor_test.c | 114 cn_cbor *cb; in CTEST() local 123 cb = cn_cbor_decode(b.ptr, b.sz CONTEXT_NULL, &err); in CTEST() 126 ASSERT_NOT_NULL(cb); in CTEST() 128 enc_sz = cn_cbor_encoder_write(encoded, 0, sizeof(encoded), cb); in CTEST() 131 cn_cbor_free(cb CONTEXT_NULL); in CTEST() 162 cn_cbor *cb; in CTEST() local 172 cb = cn_cbor_decode(b.ptr, b.sz CONTEXT_NULL, &err); in CTEST() 175 ASSERT_NOT_NULL(cb); in CTEST() 177 enc_sz = cn_cbor_encoder_write(encoded, 0, sizeof(encoded), cb); in CTEST() 181 cn_cbor_free(cb CONTEXT_NULL); in CTEST() [all …]
|
/external/libchrome/mojo/public/cpp/bindings/tests/ |
D | callback_helpers_unittest.cc | 51 auto cb = in TEST() local 54 std::move(cb).Run(1, 2); in TEST() 63 auto cb = in TEST() local 74 auto cb = WrapCallbackWithDefaultInvokeIfNotRun( in TEST() local 76 std::move(cb).Run(base::BindOnce(&SetIntegers, &a, &b, 1, 2)); in TEST() 85 auto cb = WrapCallbackWithDefaultInvokeIfNotRun( in TEST() local 95 auto cb = in TEST() local 97 std::move(cb).Run(); in TEST() 104 auto cb = WrapCallbackWithDefaultInvokeIfNotRun( in TEST() local 112 auto cb = in TEST() local [all …]
|
/external/llvm-project/llvm/lib/Transforms/Scalar/ |
D | CallSiteSplitting.cpp | 88 static void addNonNullAttribute(CallBase &CB, Value *Op) { in addNonNullAttribute() argument 90 for (auto &I : CB.args()) { in addNonNullAttribute() 92 CB.addParamAttr(ArgNo, Attribute::NonNull); in addNonNullAttribute() 97 static void setConstantInArgument(CallBase &CB, Value *Op, in setConstantInArgument() argument 100 for (auto &I : CB.args()) { in setConstantInArgument() 104 CB.removeParamAttr(ArgNo, Attribute::NonNull); in setConstantInArgument() 105 CB.setArgOperand(ArgNo, ConstValue); in setConstantInArgument() 111 static bool isCondRelevantToAnyCallArgument(ICmpInst *Cmp, CallBase &CB) { in isCondRelevantToAnyCallArgument() argument 115 for (auto I = CB.arg_begin(), E = CB.arg_end(); I != E; ++I, ++ArgNo) { in isCondRelevantToAnyCallArgument() 117 if (isa<Constant>(*I) || CB.paramHasAttr(ArgNo, Attribute::NonNull)) in isCondRelevantToAnyCallArgument() [all …]
|
/external/rust/crates/quiche/deps/boringssl/src/crypto/pem/ |
D | pem_pk8.c | 69 char *kstr, int klen, pem_password_cb *cb, void *u); 72 char *kstr, int klen, pem_password_cb *cb, void *u); 83 pem_password_cb *cb, void *u) in PEM_write_bio_PKCS8PrivateKey_nid() argument 85 return do_pk8pkey(bp, x, 0, nid, NULL, kstr, klen, cb, u); in PEM_write_bio_PKCS8PrivateKey_nid() 90 pem_password_cb *cb, void *u) in PEM_write_bio_PKCS8PrivateKey() argument 92 return do_pk8pkey(bp, x, 0, -1, enc, kstr, klen, cb, u); in PEM_write_bio_PKCS8PrivateKey() 97 pem_password_cb *cb, void *u) in i2d_PKCS8PrivateKey_bio() argument 99 return do_pk8pkey(bp, x, 1, -1, enc, kstr, klen, cb, u); in i2d_PKCS8PrivateKey_bio() 104 pem_password_cb *cb, void *u) in i2d_PKCS8PrivateKey_nid_bio() argument 106 return do_pk8pkey(bp, x, 1, nid, NULL, kstr, klen, cb, u); in i2d_PKCS8PrivateKey_nid_bio() [all …]
|
/external/boringssl/src/crypto/pem/ |
D | pem_pk8.c | 69 char *kstr, int klen, pem_password_cb *cb, void *u); 72 char *kstr, int klen, pem_password_cb *cb, void *u); 83 pem_password_cb *cb, void *u) in PEM_write_bio_PKCS8PrivateKey_nid() argument 85 return do_pk8pkey(bp, x, 0, nid, NULL, kstr, klen, cb, u); in PEM_write_bio_PKCS8PrivateKey_nid() 90 pem_password_cb *cb, void *u) in PEM_write_bio_PKCS8PrivateKey() argument 92 return do_pk8pkey(bp, x, 0, -1, enc, kstr, klen, cb, u); in PEM_write_bio_PKCS8PrivateKey() 97 pem_password_cb *cb, void *u) in i2d_PKCS8PrivateKey_bio() argument 99 return do_pk8pkey(bp, x, 1, -1, enc, kstr, klen, cb, u); in i2d_PKCS8PrivateKey_bio() 104 pem_password_cb *cb, void *u) in i2d_PKCS8PrivateKey_nid_bio() argument 106 return do_pk8pkey(bp, x, 1, nid, NULL, kstr, klen, cb, u); in i2d_PKCS8PrivateKey_nid_bio() [all …]
|
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
D | UnreachableCodeChecker.cpp | 39 static inline const Stmt *getUnreachableStmt(const CFGBlock *CB); 40 static void FindUnreachableEntryPoints(const CFGBlock *CB, 43 static bool isInvalidPath(const CFGBlock *CB, const ParentMap &PM); 44 static inline bool isEmptyCFGBlock(const CFGBlock *CB); 78 const CFGBlock *CB = BE->getBlock(); in checkEndAnalysis() local 79 reachable.insert(CB->getBlockID()); in checkEndAnalysis() 96 const CFGBlock *CB = *I; in checkEndAnalysis() local 98 if (reachable.count(CB->getBlockID())) in checkEndAnalysis() 102 if (isEmptyCFGBlock(CB)) in checkEndAnalysis() 106 if (!visited.count(CB->getBlockID())) in checkEndAnalysis() [all …]
|
/external/rust/crates/grpcio-sys/grpc/src/core/lib/iomgr/ |
D | closure.h | 51 * Error contract: it is not the cb's job to unref this error; 52 * the closure scheduler will do that after the cb returns */ 68 grpc_iomgr_cb_func cb; member 70 /** Arguments to be passed to "cb". */ 94 grpc_iomgr_cb_func cb, void* cb_arg) { argument 97 grpc_iomgr_cb_func cb, void* cb_arg) { 99 closure->cb = cb; 113 /** Initializes \a closure with \a cb and \a cb_arg. Returns \a closure. */ 115 #define GRPC_CLOSURE_INIT(closure, cb, cb_arg, scheduler) \ argument 116 grpc_closure_init(__FILE__, __LINE__, closure, cb, cb_arg) [all …]
|
/external/llvm-project/llvm/lib/Analysis/ |
D | InlineAdvisor.cpp | 54 DefaultInlineAdvice(DefaultInlineAdvisor *Advisor, CallBase &CB, in DefaultInlineAdvice() argument 56 : InlineAdvice(Advisor, CB, ORE, OIC.hasValue()), OriginalCB(&CB), in DefaultInlineAdvice() 88 CallBase &CB, FunctionAnalysisManager &FAM, const InlineParams &Params) { in getDefaultInlineAdvice() argument 89 Function &Caller = *CB.getCaller(); in getDefaultInlineAdvice() 93 *CB.getParent()->getParent()->getParent()); in getDefaultInlineAdvice() 106 auto GetInlineCost = [&](CallBase &CB) { in getDefaultInlineAdvice() argument 107 Function &Callee = *CB.getCalledFunction(); in getDefaultInlineAdvice() 112 return getInlineCost(CB, Params, CalleeTTI, GetAssumptionCache, GetTLI, in getDefaultInlineAdvice() 115 return llvm::shouldInline(CB, GetInlineCost, ORE, in getDefaultInlineAdvice() 120 std::unique_ptr<InlineAdvice> DefaultInlineAdvisor::getAdvice(CallBase &CB) { in getAdvice() argument [all …]
|