Home
last modified time | relevance | path

Searched full:cb (Results 1 – 25 of 3633) sorted by relevance

12345678910>>...146

/external/libaom/third_party/fastfeat/
Dfast_9.c47 int cb = *p + b; in aom_fast9_corner_score() local
51 if( p[pixel[0]] > cb) in aom_fast9_corner_score()
52 if( p[pixel[1]] > cb) in aom_fast9_corner_score()
53 if( p[pixel[2]] > cb) in aom_fast9_corner_score()
54 if( p[pixel[3]] > cb) in aom_fast9_corner_score()
55 if( p[pixel[4]] > cb) in aom_fast9_corner_score()
56 if( p[pixel[5]] > cb) in aom_fast9_corner_score()
57 if( p[pixel[6]] > cb) in aom_fast9_corner_score()
58 if( p[pixel[7]] > cb) in aom_fast9_corner_score()
59 if( p[pixel[8]] > cb) in aom_fast9_corner_score()
[all …]
/external/iptables/libxtables/
Dxtoptions.c29 #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/libnl/lib/
Dhandlers.c8 * @defgroup cb Callbacks/Customization
198 struct nl_cb *cb; in nl_cb_alloc() local
203 cb = calloc(1, sizeof(*cb)); in nl_cb_alloc()
204 if (!cb) in nl_cb_alloc()
207 cb->cb_refcnt = 1; in nl_cb_alloc()
208 cb->cb_active = NL_CB_TYPE_MAX + 1; in nl_cb_alloc()
211 nl_cb_set(cb, i, kind, NULL, NULL); in nl_cb_alloc()
213 nl_cb_err(cb, kind, NULL, NULL); in nl_cb_alloc()
215 return cb; in nl_cb_alloc()
226 struct nl_cb *cb; in nl_cb_clone() local
[all …]
/external/strace/
Daio.c80 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/cronet/net/disk_cache/
Ddisk_cache_test_base.cc74 TestEntryResultCompletionCallback cb; in OpenNextEntry() local
76 cb.GetResult(iterator_->OpenNextEntry(cb.callback())); in OpenNextEntry()
100 net::TestCompletionCallback cb; in SimulateCrash() local
101 int rv = cache_impl_->FlushQueueForTest(cb.callback()); in SimulateCrash()
102 ASSERT_THAT(cb.GetResult(rv), IsOk()); in SimulateCrash()
136 TestEntryResultCompletionCallback cb; in OpenOrCreateEntryWithPriority() local
138 cache_->OpenOrCreateEntry(key, request_priority, cb.callback()); in OpenOrCreateEntryWithPriority()
139 return cb.GetResult(std::move(result)); in OpenOrCreateEntryWithPriority()
151 TestEntryResultCompletionCallback cb; in OpenEntryWithPriority() local
153 cb.GetResult(cache_->OpenEntry(key, request_priority, cb.callback())); in OpenEntryWithPriority()
[all …]
/external/libffi/src/riscv/
Dffi.c100 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/android-nn-driver/1.3/
DArmnnDriver.hpp46 Return<void> getCapabilities(V1_0::IDevice::getCapabilities_cb cb) override in getCapabilities() argument
50 return hal_1_0::ArmnnDriverImpl::getCapabilities(m_Runtime, cb); in getCapabilities()
54 V1_0::IDevice::getSupportedOperations_cb cb) override in getSupportedOperations() argument
61 cb); in getSupportedOperations()
65 … const android::sp<V1_0::IPreparedModelCallback>& cb) override in prepareModel() argument
73 cb); in prepareModel()
76 Return<void> getCapabilities_1_1(V1_1::IDevice::getCapabilities_1_1_cb cb) override in getCapabilities_1_1() argument
80 return hal_1_1::ArmnnDriverImpl::getCapabilities_1_1(m_Runtime, cb); in getCapabilities_1_1()
84 … V1_1::IDevice::getSupportedOperations_1_1_cb cb) override in getSupportedOperations_1_1() argument
90 cb); in getSupportedOperations_1_1()
[all …]
/external/rust/crates/protobuf-codegen/2.27.1/src/
Dcode_writer.rs83 pub fn indented<F>(&mut self, cb: F) in indented()
87 cb(&mut CodeWriter { in indented()
94 pub fn commented<F>(&mut self, cb: F) in commented()
98 cb(&mut CodeWriter { in commented()
139 pub fn block<F>(&mut self, first_line: &str, last_line: &str, cb: F) in block()
144 self.indented(cb); in block()
148 pub fn expr_block<F>(&mut self, prefix: &str, cb: F) in expr_block()
152 self.block(&format!("{} {{", prefix), "}", cb); in expr_block()
155 pub fn stmt_block<S: AsRef<str>, F>(&mut self, prefix: S, cb: F) in stmt_block()
159 self.block(&format!("{} {{", prefix.as_ref()), "};", cb); in stmt_block()
[all …]
/external/webrtc/net/dcsctp/socket/
Ddcsctp_socket_test.cc333 cb(name),
334 socket(name, cb, GetPacketObserver(name), options) {}
337 testing::NiceMock<MockDcSctpSocketCallbacks> cb; member
345 std::vector<uint8_t> packet_from_a = a.cb.ConsumeSentPacket(); in ExchangeMessages()
350 std::vector<uint8_t> packet_from_z = z.cb.ConsumeSentPacket(); in ExchangeMessages()
360 absl::optional<TimeoutID> timeout_id = s.cb.GetNextExpiredTimeout(); in RunTimers()
369 a.cb.AdvanceTime(duration); in AdvanceTime()
370 z.cb.AdvanceTime(duration); in AdvanceTime()
378 EXPECT_CALL(a.cb, OnConnected).Times(1); in ConnectSockets()
379 EXPECT_CALL(z.cb, OnConnected).Times(1); in ConnectSockets()
[all …]
Dcallback_deferrer.cc51 std::vector<std::function<void(DcSctpSocketCallbacks & cb)>> deferred; in TriggerDeferred()
55 for (auto& cb : deferred) { in TriggerDeferred() local
56 cb(underlying_); in TriggerDeferred()
86 DcSctpSocketCallbacks& cb) mutable { deliverer.Deliver(cb); }); in OnMessageReceived() argument
92 [error, message = std::string(message)](DcSctpSocketCallbacks& cb) { in OnError() argument
93 cb.OnError(error, message); in OnError()
100 [error, message = std::string(message)](DcSctpSocketCallbacks& cb) { in OnAborted() argument
101 cb.OnAborted(error, message); in OnAborted()
107 deferred_.emplace_back([](DcSctpSocketCallbacks& cb) { cb.OnConnected(); }); in OnConnected() argument
112 deferred_.emplace_back([](DcSctpSocketCallbacks& cb) { cb.OnClosed(); }); in OnClosed() argument
[all …]
/external/linux-kselftest/tools/testing/selftests/bpf/verifier/
Dctx_skb.c392 "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/android-nn-driver/1.2/
DArmnnDriver.hpp45 Return<void> getCapabilities(V1_0::IDevice::getCapabilities_cb cb) override in getCapabilities() argument
49 return hal_1_0::ArmnnDriverImpl::getCapabilities(m_Runtime, cb); in getCapabilities()
53 V1_0::IDevice::getSupportedOperations_cb cb) override in getSupportedOperations() argument
60 cb); in getSupportedOperations()
64 … const android::sp<V1_0::IPreparedModelCallback>& cb) override in prepareModel() argument
72 cb); in prepareModel()
75 Return<void> getCapabilities_1_1(V1_1::IDevice::getCapabilities_1_1_cb cb) override in getCapabilities_1_1() argument
79 return hal_1_1::ArmnnDriverImpl::getCapabilities_1_1(m_Runtime, cb); in getCapabilities_1_1()
83 … V1_1::IDevice::getSupportedOperations_1_1_cb cb) override in getSupportedOperations_1_1() argument
89 cb); in getSupportedOperations_1_1()
[all …]
/external/cronet/base/test/
Drectify_callback_unittest.cc23 auto cb = RectifyCallback<Signature>(BindRepeating(LambdaToRectify)); \
24 cb.Run(__VA_ARGS__); \
27 auto cb = RectifyCallback<RepeatingCallback<Signature>>( \
29 cb.Run(__VA_ARGS__); \
32 auto cb = RectifyCallback<OnceCallback<Signature>>( \
34 std::move(cb).Run(__VA_ARGS__); \
37 auto cb = RectifyCallback<Signature>(BindOnce(LambdaToRectify)); \
38 std::move(cb).Run(__VA_ARGS__); \
41 auto cb = \
43 std::move(cb).Run(__VA_ARGS__); \
[all …]
/external/mesa3d/src/gallium/drivers/r600/
Dr600_pipe.h419 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 …]
/external/cronet/third_party/protobuf/js/
Dgulpfile.js5 function exec(command, cb) { argument
6 execFile('sh', ['-c', command], cb);
56 gulp.task('genproto_well_known_types_closure', function (cb) { argument
61 cb(err);
65 gulp.task('genproto_group1_closure', function (cb) { argument
70 cb(err);
74 gulp.task('genproto_group2_closure', function(cb) { argument
82 cb(err);
86 gulp.task('genproto_well_known_types_commonjs', function (cb) { argument
91 cb(err);
[all …]
/external/cn-cbor/src/
Dcn-cbor.c23 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/compiler-rt/lib/sanitizer_common/
Dsanitizer_deadlock_detector2.cc93 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 …]
Dsanitizer_deadlock_detector1.cc49 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/
DUnreachableCodeChecker.cpp40 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/
Dcbor_test.c114 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/musl/src/aio/
Daio.c52 struct aiocb *cb; member
68 struct aiocb *cb; member
159 struct aiocb *cb = at->cb; in cleanup() local
160 struct sigevent sev = cb->aio_sigevent; in cleanup()
170 cb->__ret = at->ret; in cleanup()
173 if (a_swap(&cb->__err, at->err) != EINPROGRESS) in cleanup()
174 __wake(&cb->__err, -1, 1); in cleanup()
210 struct aiocb *cb = args->cb; in io_thread_func() local
211 int fd = cb->aio_fildes; in io_thread_func()
213 void *buf = (void *)cb->aio_buf; in io_thread_func()
[all …]
/external/libchrome/mojo/public/cpp/bindings/tests/
Dcallback_helpers_unittest.cc51 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/rust/crates/quiche/deps/boringssl/src/crypto/pem/
Dpem_pk8.c69 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/rust/crates/grpcio-sys/grpc/src/core/lib/iomgr/
Dclosure.h51 * 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/cronet/base/task/
Dbind_post_task_unittest.cc65 OnceClosure cb = BindOnce(&SetBool, &val, true); in TEST_F() local
66 OnceClosure post_cb = BindPostTask(task_runner_, std::move(cb)); in TEST_F()
76 OnceCallback<void(bool*, bool)> cb = BindOnce(&SetBool); in TEST_F() local
78 BindPostTask(task_runner_, std::move(cb)); in TEST_F()
90 OnceClosure cb = in TEST_F() local
92 OnceClosure post_cb = BindPostTask(task_runner_, std::move(cb)); in TEST_F()
103 OnceCallback<void(std::unique_ptr<int>)> cb = in TEST_F() local
106 BindPostTask(task_runner_, std::move(cb)); in TEST_F()
147 // `checker` is owned by `cb` which is wrapped in `post_cb`. `post_cb` is run in TEST_F()
149 // thread to invoke `cb` which runs SequenceRestrictionChecker::Run(). After in TEST_F()
[all …]

12345678910>>...146