Home
last modified time | relevance | path

Searched refs:callback (Results 1 – 25 of 171) sorted by relevance

1234567

/device/google/contexthub/firmware/os/core/
DhostIntfI2c.c31 HostIntfCommCallbackF callback = cookie; in hostIntfI2cRxCallback() local
34 callback(rx, err); in hostIntfI2cRxCallback()
39 HostIntfCommCallbackF callback = cookie; in hostIntfI2cTxCallback() local
42 callback(tx, err); in hostIntfI2cTxCallback()
51 HostIntfCommCallbackF callback) in hostIntfI2cRxPacket() argument
54 callback); in hostIntfI2cRxPacket()
59 HostIntfCommCallbackF callback) in hostIntfI2cTxPacket() argument
62 callback); in hostIntfI2cTxPacket()
DhostIntfSpi.c41 HostIntfCommCallbackF callback = cookie; in hostIntfSpiRxCallback() local
42 callback(NANOHUB_PACKET_SIZE(packet->len), err); in hostIntfSpiRxCallback()
47 HostIntfCommCallbackF callback = cookie; in hostIntfSpiTxCallback() local
48 callback(gTxSize, err); in hostIntfSpiTxCallback()
57 HostIntfCommCallbackF callback) in hostIntfSpiRxPacket() argument
65 err = spiSlaveRxTx(gSpi, &gPacket, 1, hostIntfSpiRxCallback, callback); in hostIntfSpiRxPacket()
67 callback(0, err); in hostIntfSpiRxPacket()
73 HostIntfCommCallbackF callback) in hostIntfSpiTxPacket() argument
83 callback); in hostIntfSpiTxPacket()
Dspi.c156 SpiCbkF callback = state->rxTxCallback; in spiMasterDone() local
160 callback(cookie, err); in spiMasterDone()
214 SpiCbkF callback = state->finishCallback; in spiSlaveCsInactive() local
220 callback(cookie, 0); in spiSlaveCsInactive()
247 SpiCbkF callback = state->rxTxCallback; in spiSlaveIdle() local
254 callback(cookie, err); in spiSlaveIdle()
275 SpiCbkF callback, void *cookie) in spiSetupRxTx() argument
280 state->rxTxCallback = callback; in spiSetupRxTx()
318 const struct SpiMode *mode, SpiCbkF callback, in spiMasterRxTx() argument
327 ret = spiSetupRxTx(state, packets, n, callback, cookie); in spiMasterRxTx()
[all …]
/device/google/contexthub/firmware/os/inc/
Di2c.h33 void *rxBuf, size_t rxSize, I2cCallbackF callback, void *cookie);
35 const void *txBuf, size_t txSize, I2cCallbackF callback, void *cookie) in i2cMasterTx() argument
37 return i2cMasterTxRx(busId, addr, txBuf, txSize, NULL, 0, callback, cookie);} in i2cMasterTx()
39 void *rxBuf, size_t rxSize, I2cCallbackF callback, void *cookie) in i2cMasterRx() argument
41 return i2cMasterTxRx(busId, addr, NULL, 0, rxBuf, rxSize, callback, cookie); in i2cMasterRx()
48 I2cCallbackF callback, void *cookie);
50 I2cCallbackF callback, void *cookie);
52 I2cCallbackF callback, void *cookie);
Dspi.h77 const struct SpiMode *mode, SpiCbkF callback,
87 SpiCbkF callback, void *cookie);
89 int spiSlaveWaitForInactive(struct SpiDevice *dev, SpiCbkF callback,
/device/generic/goldfish/network/wifi_forwarder/
Dnetlink_socket.cpp61 Result NetlinkSocket::setOnMsgInCallback(int (*callback)(struct nl_msg*, void*), in setOnMsgInCallback()
63 if (nl_cb_set(mCallback, NL_CB_MSG_IN, NL_CB_CUSTOM, callback, context)) { in setOnMsgInCallback()
69 Result NetlinkSocket::setOnMsgOutCallback(int (*callback)(struct nl_msg*, in setOnMsgOutCallback()
72 if (nl_cb_set(mCallback, NL_CB_MSG_OUT, NL_CB_CUSTOM, callback, context)) { in setOnMsgOutCallback()
78 Result NetlinkSocket::setOnSeqCheckCallback(int (*callback)(struct nl_msg*, in setOnSeqCheckCallback()
82 callback, context)) { in setOnSeqCheckCallback()
88 Result NetlinkSocket::setOnAckCallback(int (*callback)(struct nl_msg*, void*), in setOnAckCallback()
90 if (nl_cb_set(mCallback, NL_CB_ACK, NL_CB_CUSTOM, callback, context)) { in setOnAckCallback()
96 Result NetlinkSocket::setOnErrorCallback(int (*callback)(struct sockaddr_nl*, in setOnErrorCallback()
100 if (nl_cb_err(mCallback, NL_CB_CUSTOM, callback, context)) { in setOnErrorCallback()
Dnetlink_socket.h41 Result setOnMsgInCallback(int (*callback)(struct nl_msg*, void*),
43 Result setOnMsgOutCallback(int (*callback)(struct nl_msg*, void*),
45 Result setOnSeqCheckCallback(int (*callback)(struct nl_msg*, void*),
47 Result setOnAckCallback(int (*callback)(struct nl_msg*, void*),
49 Result setOnErrorCallback(int (*callback)(struct sockaddr_nl*,
/device/generic/goldfish/soundtrigger/
Dmain.cpp61 const sp<V2_0::ISoundTriggerHwCallback>& callback, in loadSoundModel()
65 (void)callback; in loadSoundModel()
72 const sp<V2_0::ISoundTriggerHwCallback>& callback, in loadPhraseSoundModel()
76 (void)callback; in loadPhraseSoundModel()
89 const sp<V2_0::ISoundTriggerHwCallback>& callback, in startRecognition()
93 (void)callback; in startRecognition()
109 const sp<V2_1::ISoundTriggerHwCallback>& callback, in loadSoundModel_2_1()
113 (void)callback; in loadSoundModel_2_1()
120 const sp<V2_1::ISoundTriggerHwCallback>& callback, in loadPhraseSoundModel_2_1()
124 (void)callback; in loadPhraseSoundModel_2_1()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/
Dweakrefobject.c23 init_weakref(PyWeakReference *self, PyObject *ob, PyObject *callback) in init_weakref() argument
27 Py_XINCREF(callback); in init_weakref()
28 self->wr_callback = callback; in init_weakref()
32 new_weakref(PyObject *ob, PyObject *callback) in new_weakref() argument
38 init_weakref(result, ob, callback); in new_weakref()
53 PyObject *callback = self->wr_callback; in clear_weakref() local
72 if (callback != NULL) { in clear_weakref()
73 Py_DECREF(callback); in clear_weakref()
92 PyObject *callback; in _PyWeakref_ClearRef() local
97 callback = self->wr_callback; in _PyWeakref_ClearRef()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/
Dweakrefobject.c23 init_weakref(PyWeakReference *self, PyObject *ob, PyObject *callback) in init_weakref() argument
27 Py_XINCREF(callback); in init_weakref()
28 self->wr_callback = callback; in init_weakref()
32 new_weakref(PyObject *ob, PyObject *callback) in new_weakref() argument
38 init_weakref(result, ob, callback); in new_weakref()
53 PyObject *callback = self->wr_callback; in clear_weakref() local
71 if (callback != NULL) { in clear_weakref()
72 Py_DECREF(callback); in clear_weakref()
91 PyObject *callback; in _PyWeakref_ClearRef() local
96 callback = self->wr_callback; in _PyWeakref_ClearRef()
[all …]
/device/google/contexthub/firmware/os/platform/native/
Di2c.c41 I2cCallbackF callback, void *cookie) in i2cMasterTxRx() argument
57 I2cCallbackF callback, void *cookie) in i2cSlaveEnableRx() argument
62 int i2cSlaveTxPreamble(I2cBus busId, uint8_t byte, I2cCallbackF callback, void *cookie) in i2cSlaveTxPreamble() argument
67 int i2cSlaveTxPacket(I2cBus busId, const void *txBuf, size_t txSize, I2cCallbackF callback, void *c… in i2cSlaveTxPacket() argument
/device/google/bramble/usb/
DUsbGadget.cpp48 Return<void> UsbGadget::getCurrentUsbFunctions(const sp<V1_0::IUsbGadgetCallback> &callback) { in getCurrentUsbFunctions() argument
49 Return<void> ret = callback->getCurrentUsbFunctionsCb( in getCurrentUsbFunctions()
240 const sp<V1_0::IUsbGadgetCallback> &callback, in setupFunctions() argument
283 if (callback) in setupFunctions()
284 callback->setCurrentUsbFunctionsCb(functions, Status::SUCCESS); in setupFunctions()
297 if (callback) { in setupFunctions()
299 Return<void> ret = callback->setCurrentUsbFunctionsCb( in setupFunctions()
309 const sp<V1_0::IUsbGadgetCallback> &callback, in setCurrentUsbFunctions() argument
328 if (callback == NULL) in setCurrentUsbFunctions()
330 Return<void> ret = callback->setCurrentUsbFunctionsCb(functions, Status::SUCCESS); in setCurrentUsbFunctions()
[all …]
/device/google/barbet/usb/
DUsbGadget.cpp48 Return<void> UsbGadget::getCurrentUsbFunctions(const sp<V1_0::IUsbGadgetCallback> &callback) { in getCurrentUsbFunctions() argument
49 Return<void> ret = callback->getCurrentUsbFunctionsCb( in getCurrentUsbFunctions()
240 const sp<V1_0::IUsbGadgetCallback> &callback, in setupFunctions() argument
283 if (callback) in setupFunctions()
284 callback->setCurrentUsbFunctionsCb(functions, Status::SUCCESS); in setupFunctions()
297 if (callback) { in setupFunctions()
299 Return<void> ret = callback->setCurrentUsbFunctionsCb( in setupFunctions()
309 const sp<V1_0::IUsbGadgetCallback> &callback, in setCurrentUsbFunctions() argument
328 if (callback == NULL) in setCurrentUsbFunctions()
330 Return<void> ret = callback->setCurrentUsbFunctionsCb(functions, Status::SUCCESS); in setCurrentUsbFunctions()
[all …]
/device/google/redfin/usb/
DUsbGadget.cpp48 Return<void> UsbGadget::getCurrentUsbFunctions(const sp<V1_0::IUsbGadgetCallback> &callback) { in getCurrentUsbFunctions() argument
49 Return<void> ret = callback->getCurrentUsbFunctionsCb( in getCurrentUsbFunctions()
240 const sp<V1_0::IUsbGadgetCallback> &callback, in setupFunctions() argument
283 if (callback) in setupFunctions()
284 callback->setCurrentUsbFunctionsCb(functions, Status::SUCCESS); in setupFunctions()
297 if (callback) { in setupFunctions()
299 Return<void> ret = callback->setCurrentUsbFunctionsCb( in setupFunctions()
309 const sp<V1_0::IUsbGadgetCallback> &callback, in setCurrentUsbFunctions() argument
328 if (callback == NULL) in setCurrentUsbFunctions()
330 Return<void> ret = callback->setCurrentUsbFunctionsCb(functions, Status::SUCCESS); in setCurrentUsbFunctions()
[all …]
/device/google/coral/usb/
DUsbGadget.cpp48 Return<void> UsbGadget::getCurrentUsbFunctions(const sp<V1_0::IUsbGadgetCallback> &callback) { in getCurrentUsbFunctions() argument
49 Return<void> ret = callback->getCurrentUsbFunctionsCb( in getCurrentUsbFunctions()
229 const sp<V1_0::IUsbGadgetCallback> &callback, in setupFunctions() argument
272 if (callback) in setupFunctions()
273 callback->setCurrentUsbFunctionsCb(functions, Status::SUCCESS); in setupFunctions()
286 if (callback) { in setupFunctions()
288 Return<void> ret = callback->setCurrentUsbFunctionsCb( in setupFunctions()
298 const sp<V1_0::IUsbGadgetCallback> &callback, in setCurrentUsbFunctions() argument
317 if (callback == NULL) in setCurrentUsbFunctions()
319 Return<void> ret = callback->setCurrentUsbFunctionsCb(functions, Status::SUCCESS); in setCurrentUsbFunctions()
[all …]
/device/google/sunfish/usb/
DUsbGadget.cpp48 Return<void> UsbGadget::getCurrentUsbFunctions(const sp<V1_0::IUsbGadgetCallback> &callback) { in getCurrentUsbFunctions() argument
49 Return<void> ret = callback->getCurrentUsbFunctionsCb( in getCurrentUsbFunctions()
240 const sp<V1_0::IUsbGadgetCallback> &callback, in setupFunctions() argument
283 if (callback) in setupFunctions()
284 callback->setCurrentUsbFunctionsCb(functions, Status::SUCCESS); in setupFunctions()
297 if (callback) { in setupFunctions()
299 Return<void> ret = callback->setCurrentUsbFunctionsCb( in setupFunctions()
309 const sp<V1_0::IUsbGadgetCallback> &callback, in setCurrentUsbFunctions() argument
328 if (callback == NULL) in setCurrentUsbFunctions()
330 Return<void> ret = callback->setCurrentUsbFunctionsCb(functions, Status::SUCCESS); in setCurrentUsbFunctions()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Dgc_weakref.txt22 objects, and sometimes that's necessary. The chief example is the callback
24 going away, and W is still alive, the callback must be invoked. Because W
25 is still alive, everything reachable from its callback is also reachable,
26 so it's also safe to invoke the callback (although that's trickier than it
28 still exist, and be accessible to the callback -- there are lots of painful
45 weakref callback or __del__ method does something nasty on purpose: as
81 that a given object has died, via a callback function. The weakly
82 referenced object itself is not passed to the callback, and the presumption
84 callback is invoked.
88 cyclic gc that the object is reclaimed, the callback is invoked. If it's
[all …]
/device/google/cuttlefish/guest/hals/gps/
Dgps_thread.cpp36 if (!r->callback) { in reader_call_callback()
68 D("Sending fix to callback %p", r->callback); in reader_call_callback()
69 r->callback(&r->fix); in reader_call_callback()
159 reader.callback = NULL; in gps_state_thread()
167 reader.callback = state->callbacks.location_cb; in gps_state_thread()
168 D("Thread starting callback=%p", reader.callback); in gps_state_thread()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_capi.py20 def callback(): function
31 if _testcapi._pending_threadfunc(callback):
118 def callback(): function
121 _testcapi._test_thread_state(callback)
122 a = b = callback
Dtest_weakref.py41 def callback(self, ref): member in TestBase
70 ref1 = weakref.ref(o, self.callback)
71 ref2 = weakref.ref(o, self.callback)
91 def callback(object, self=self): function
94 self.ref = weakref.ref(c, callback)
95 ref1 = weakref.ref(c, callback)
101 ref1 = weakref.proxy(o, self.callback)
102 ref2 = weakref.proxy(o, self.callback)
125 ref = weakref.ref(o, self.callback)
318 ref2 = weakref.ref(o, self.callback)
[all …]
/device/generic/goldfish/gnss/
Dgnss_measurement.h37 …entStatus10> setCallback_2_0(const sp<ahg20::IGnssMeasurementCallback>& callback, bool enableFullT…
40 …entStatus10> setCallback_1_1(const sp<ahg11::IGnssMeasurementCallback>& callback, bool enableFullT…
43 …Return<GnssMeasurementStatus10> setCallback(const sp<ahg10::IGnssMeasurementCallback>& callback) o…
Dgnss.cpp50 Return<bool> Gnss20::setCallback_2_0(const sp<ahg20::IGnssCallback>& callback) { in setCallback_2_0() argument
51 if (callback == nullptr) { in setCallback_2_0()
55 callback->gnssSetCapabilitiesCb_2_0(Caps::MEASUREMENTS | 0); in setCallback_2_0()
56 callback->gnssNameCb(kGnssDeviceName); in setCallback_2_0()
57 callback->gnssSetSystemInfoCb({.yearOfHw = 2020}); in setCallback_2_0()
59 m_dataSink.setCallback20(callback); in setCallback_2_0()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dftplib.py384 def retrbinary(self, cmd, callback, blocksize=8192, rest=None): argument
404 callback(data)
408 def retrlines(self, cmd, callback = None): argument
420 if callback is None: callback = print_line
433 callback(line)
438 def storbinary(self, cmd, fp, blocksize=8192, callback=None, rest=None): argument
459 if callback: callback(buf)
463 def storlines(self, cmd, fp, callback=None): argument
484 if callback: callback(buf)
680 def retrbinary(self, cmd, callback, blocksize=8192, rest=None): argument
[all …]
/device/google/vrservices/vrcore/sepolicy/
Dvr_hwc.te1 # VrCore registers a callback with VR HWC. The callback is then used to post new
/device/google/trout/hal/audiocontrol/2.0/
DCloseHandle.cpp21 CloseHandle::CloseHandle(Callback callback) : mCallback(callback) {} in CloseHandle() argument

1234567