Home
last modified time | relevance | path

Searched refs:cb (Results 1 – 25 of 4078) sorted by relevance

12345678910>>...164

/external/libaom/third_party/fastfeat/
Dfast_9.c45 int cb = *p + b; in fast9_corner_score() local
49 if( p[pixel[0]] > cb) in fast9_corner_score()
50 if( p[pixel[1]] > cb) in fast9_corner_score()
51 if( p[pixel[2]] > cb) in fast9_corner_score()
52 if( p[pixel[3]] > cb) in fast9_corner_score()
53 if( p[pixel[4]] > cb) in fast9_corner_score()
54 if( p[pixel[5]] > cb) in fast9_corner_score()
55 if( p[pixel[6]] > cb) in fast9_corner_score()
56 if( p[pixel[7]] > cb) in fast9_corner_score()
57 if( p[pixel[8]] > cb) in fast9_corner_score()
[all …]
/external/iptables/libxtables/
Dxtoptions.c29 #define XTOPT_MKPTR(cb) \ argument
30 ((void *)((char *)(cb)->data + (cb)->entry->ptroff))
163 static void xtopt_parse_int(struct xt_option_call *cb) in xtopt_parse_int() argument
165 const struct xt_option_entry *entry = cb->entry; in xtopt_parse_int()
169 if (cb->entry->min != 0) in xtopt_parse_int()
170 lmin = cb->entry->min; in xtopt_parse_int()
171 if (cb->entry->max != 0) in xtopt_parse_int()
172 lmax = cb->entry->max; in xtopt_parse_int()
174 if (!xtables_strtoul_base(cb->arg, NULL, &value, in xtopt_parse_int()
175 lmin, lmax, cb->entry->base)) in xtopt_parse_int()
[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/coreboot/src/drivers/amd/agesa/
Dromstage.c20 void __weak board_BeforeAgesa(struct sysinfo *cb) { } in board_BeforeAgesa() argument
22 static void fill_sysinfo(struct sysinfo *cb) in fill_sysinfo() argument
24 memset(cb, 0, sizeof(*cb)); in fill_sysinfo()
25 cb->s3resume = acpi_is_wakeup_s3(); in fill_sysinfo()
27 agesa_set_interface(cb); in fill_sysinfo()
38 struct sysinfo *cb = &romstage_state; in romstage_main() local
44 fill_sysinfo(cb); in romstage_main()
46 board_BeforeAgesa(cb); in romstage_main()
50 agesa_execute_state(cb, AMD_INIT_RESET); in romstage_main()
52 agesa_execute_state(cb, AMD_INIT_EARLY); in romstage_main()
[all …]
Dstate_machine.c37 void agesa_set_interface(struct sysinfo *cb) in agesa_set_interface() argument
39 memset(&cb->StdHeader, 0, sizeof(AMD_CONFIG_PARAMS)); in agesa_set_interface()
41 cb->StdHeader.CalloutPtr = GetBiosCallout; in agesa_set_interface()
43 agesa_locate_image(&cb->StdHeader); in agesa_set_interface()
45 (void *)(uintptr_t)cb->StdHeader.ImageBasePtr; in agesa_set_interface()
91 static AGESA_STATUS romstage_dispatch(struct sysinfo *cb, in romstage_dispatch() argument
101 platform_BeforeInitReset(cb, param); in romstage_dispatch()
102 board_BeforeInitReset(cb, param); in romstage_dispatch()
110 platform_BeforeInitEarly(cb, param); in romstage_dispatch()
111 board_BeforeInitEarly(cb, param); in romstage_dispatch()
[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/sl4a/ScriptingLayerForAndroid/src/org/apache/harmony/niochar/charset/additional/
DIBM437.java59 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/
Dhandlers.c201 struct nl_cb *cb; in nl_cb_alloc() local
206 cb = calloc(1, sizeof(*cb)); in nl_cb_alloc()
207 if (!cb) in nl_cb_alloc()
210 cb->cb_refcnt = 1; in nl_cb_alloc()
211 cb->cb_active = NL_CB_TYPE_MAX + 1; in nl_cb_alloc()
214 nl_cb_set(cb, i, kind, NULL, NULL); in nl_cb_alloc()
216 nl_cb_err(cb, kind, NULL, NULL); in nl_cb_alloc()
218 return cb; in nl_cb_alloc()
229 struct nl_cb *cb; in nl_cb_clone() local
231 cb = nl_cb_alloc(NL_CB_DEFAULT); in nl_cb_clone()
[all …]
/external/pytorch/torch/xpu/
D_gpu_trace.py38 def register_callback_for_event_creation(cb: Callable[[int], None]) -> None:
39 EventCreationCallbacks.add_callback(cb)
42 def register_callback_for_event_deletion(cb: Callable[[int], None]) -> None:
43 EventDeletionCallbacks.add_callback(cb)
46 def register_callback_for_event_record(cb: Callable[[int, int], None]) -> None:
47 EventRecordCallbacks.add_callback(cb)
50 def register_callback_for_event_wait(cb: Callable[[int, int], None]) -> None:
51 EventWaitCallbacks.add_callback(cb)
54 def register_callback_for_memory_allocation(cb: Callable[[int], None]) -> None:
55 MemoryAllocationCallbacks.add_callback(cb)
[all …]
/external/pytorch/torch/cuda/
D_gpu_trace.py38 def register_callback_for_event_creation(cb: Callable[[int], None]) -> None:
39 EventCreationCallbacks.add_callback(cb)
42 def register_callback_for_event_deletion(cb: Callable[[int], None]) -> None:
43 EventDeletionCallbacks.add_callback(cb)
46 def register_callback_for_event_record(cb: Callable[[int, int], None]) -> None:
47 EventRecordCallbacks.add_callback(cb)
50 def register_callback_for_event_wait(cb: Callable[[int, int], None]) -> None:
51 EventWaitCallbacks.add_callback(cb)
54 def register_callback_for_memory_allocation(cb: Callable[[int], None]) -> None:
55 MemoryAllocationCallbacks.add_callback(cb)
[all …]
/external/coreboot/src/northbridge/amd/agesa/
Dstate_machine.h34 void board_BeforeAgesa(struct sysinfo *cb);
36 void agesa_set_interface(struct sysinfo *cb);
50 int agesa_execute_state(struct sysinfo *cb, AGESA_STRUCT_NAME func);
56 void platform_BeforeInitReset(struct sysinfo *cb, AMD_RESET_PARAMS *Reset);
57 void board_BeforeInitReset(struct sysinfo *cb, AMD_RESET_PARAMS *Reset);
59 void platform_BeforeInitEarly(struct sysinfo *cb, AMD_EARLY_PARAMS *Early);
60 void board_BeforeInitEarly(struct sysinfo *cb, AMD_EARLY_PARAMS *Early);
63 void platform_BeforeInitPost(struct sysinfo *cb, AMD_POST_PARAMS *Post);
64 void board_BeforeInitPost(struct sysinfo *cb, AMD_POST_PARAMS *Post);
65 void platform_AfterInitPost(struct sysinfo *cb, AMD_POST_PARAMS *Post);
[all …]
/external/cronet/stable/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/cronet/tot/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/rust/android-crates-io/extra_versions/crates/protobuf-codegen/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/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/cronet/tot/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()
131 TestEntryResultCompletionCallback cb; in OpenOrCreateEntryWithPriority() local
133 cache_->OpenOrCreateEntry(key, request_priority, cb.callback()); in OpenOrCreateEntryWithPriority()
134 return cb.GetResult(std::move(result)); in OpenOrCreateEntryWithPriority()
146 TestEntryResultCompletionCallback cb; in OpenEntryWithPriority() local
148 cb.GetResult(cache_->OpenEntry(key, request_priority, cb.callback())); in OpenEntryWithPriority()
[all …]
/external/cronet/stable/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()
131 TestEntryResultCompletionCallback cb; in OpenOrCreateEntryWithPriority() local
133 cache_->OpenOrCreateEntry(key, request_priority, cb.callback()); in OpenOrCreateEntryWithPriority()
134 return cb.GetResult(std::move(result)); in OpenOrCreateEntryWithPriority()
146 TestEntryResultCompletionCallback cb; in OpenEntryWithPriority() local
148 cb.GetResult(cache_->OpenEntry(key, request_priority, cb.callback())); in OpenEntryWithPriority()
[all …]
/external/mesa3d/src/compiler/nir/
Dnir_inline_helpers.h5 _nir_foreach_def(nir_instr *instr, nir_foreach_def_cb cb, void *state) in _nir_foreach_def() argument
9 return cb(&nir_instr_as_alu(instr)->def, state); in _nir_foreach_def()
11 return cb(&nir_instr_as_deref(instr)->def, state); in _nir_foreach_def()
15 return cb(&intrin->def, state); in _nir_foreach_def()
19 return cb(&nir_instr_as_tex(instr)->def, state); in _nir_foreach_def()
21 return cb(&nir_instr_as_phi(instr)->def, state); in _nir_foreach_def()
24 if (!entry->dest_is_reg && !cb(&entry->dest.def, state)) in _nir_foreach_def()
31 return cb(&nir_instr_as_load_const(instr)->def, state); in _nir_foreach_def()
33 return cb(&nir_instr_as_undef(instr)->def, state); in _nir_foreach_def()
38 return cb(&di->def, state); in _nir_foreach_def()
[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/mesa3d/src/vulkan/runtime/radix_sort/common/vk/
Dbarrier.c18 vk_barrier_compute_w_to_compute_r(VkCommandBuffer cb) in vk_barrier_compute_w_to_compute_r() argument
20 VK_FROM_HANDLE(vk_command_buffer, cmd_buffer, cb); in vk_barrier_compute_w_to_compute_r()
32 disp->CmdPipelineBarrier(cb, in vk_barrier_compute_w_to_compute_r()
49 vk_barrier_compute_w_to_transfer_r(VkCommandBuffer cb) in vk_barrier_compute_w_to_transfer_r() argument
51 VK_FROM_HANDLE(vk_command_buffer, cmd_buffer, cb); in vk_barrier_compute_w_to_transfer_r()
63 disp->CmdPipelineBarrier(cb, in vk_barrier_compute_w_to_transfer_r()
80 vk_barrier_transfer_w_to_compute_r(VkCommandBuffer cb) in vk_barrier_transfer_w_to_compute_r() argument
82 VK_FROM_HANDLE(vk_command_buffer, cmd_buffer, cb); in vk_barrier_transfer_w_to_compute_r()
94 disp->CmdPipelineBarrier(cb, in vk_barrier_transfer_w_to_compute_r()
111 vk_barrier_transfer_w_to_compute_w(VkCommandBuffer cb) in vk_barrier_transfer_w_to_compute_w() argument
[all …]
/external/trusty/musl/src/aio/
Daio.c46 struct aiocb *cb; member
62 struct aiocb *cb; member
145 struct aiocb *cb = at->cb; in cleanup() local
146 struct sigevent sev = cb->aio_sigevent; in cleanup()
156 cb->__ret = at->ret; in cleanup()
159 if (a_swap(&cb->__err, at->err) != EINPROGRESS) in cleanup()
160 __wake(&cb->__err, -1, 1); in cleanup()
196 struct aiocb *cb = args->cb; in io_thread_func() local
197 int fd = cb->aio_fildes; in io_thread_func()
199 void *buf = (void *)cb->aio_buf; in io_thread_func()
[all …]
/external/tensorflow/tensorflow/core/util/
Dreffed_status_callback_test.cc38 auto* cb = new ReffedStatusCallback(std::move(done)); in TEST() local
40 cb->Unref(); in TEST()
52 auto* cb = new ReffedStatusCallback(std::move(done)); in TEST() local
53 cb->UpdateStatus(errors::Internal("1")); in TEST()
54 cb->UpdateStatus(errors::InvalidArgument("2")); in TEST()
56 cb->Unref(); in TEST()
73 auto* cb = new ReffedStatusCallback(std::move(done)); in TEST() local
74 cb->Ref(); in TEST()
75 cb->UpdateStatus(errors::Internal("1")); in TEST()
76 cb->Ref(); in TEST()
[all …]
/external/rust/android-crates-io/crates/protobuf-codegen/src/gen/
Dcode_writer.rs103 pub(crate) fn indented<F>(&mut self, cb: F) in indented()
107 cb(&mut CodeWriter { in indented()
114 pub(crate) fn commented<F>(&mut self, cb: F) in commented()
118 cb(&mut CodeWriter { in commented()
157 pub(crate) fn block<F>(&mut self, first_line: &str, last_line: &str, cb: F) in block()
162 self.indented(cb); in block()
166 pub(crate) fn expr_block<F>(&mut self, prefix: &str, cb: F) in expr_block()
170 self.block(&format!("{} {{", prefix), "}", cb); in expr_block()
173 pub(crate) fn stmt_block<S: AsRef<str>, F>(&mut self, prefix: S, cb: F) in stmt_block()
177 self.block(&format!("{} {{", prefix.as_ref()), "};", cb); in stmt_block()
[all …]
/external/cronet/stable/third_party/boringssl/src/crypto/pem/
Dpem_pk8.cc69 pem_password_cb *cb, void *u);
72 pem_password_cb *cb, void *u);
81 pem_password_cb *cb, void *u) { in PEM_write_bio_PKCS8PrivateKey_nid() argument
82 return do_pk8pkey(bp, x, 0, nid, NULL, pass, pass_len, cb, u); in PEM_write_bio_PKCS8PrivateKey_nid()
87 int pass_len, pem_password_cb *cb, void *u) { in PEM_write_bio_PKCS8PrivateKey() argument
88 return do_pk8pkey(bp, x, 0, -1, enc, pass, pass_len, cb, u); in PEM_write_bio_PKCS8PrivateKey()
92 const char *pass, int pass_len, pem_password_cb *cb, in i2d_PKCS8PrivateKey_bio() argument
94 return do_pk8pkey(bp, x, 1, -1, enc, pass, pass_len, cb, u); in i2d_PKCS8PrivateKey_bio()
99 pem_password_cb *cb, void *u) { in i2d_PKCS8PrivateKey_nid_bio() argument
100 return do_pk8pkey(bp, x, 1, nid, NULL, pass, pass_len, cb, u); in i2d_PKCS8PrivateKey_nid_bio()
[all …]
/external/rust/android-crates-io/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 …]

12345678910>>...164