Home
last modified time | relevance | path

Searched refs:tx (Results 1 – 25 of 40) sorted by relevance

12

/device/google/contexthub/firmware/os/platform/stm32/
Di2c.c145 } rx, tx; member
357 static inline void stmI2cInvokeRxCallback(struct I2cStmState *state, size_t tx, size_t rx, int err) in stmI2cInvokeRxCallback() argument
360 state->rx.callback(state->rx.cookie, tx, rx, err); in stmI2cInvokeRxCallback()
364 static inline void stmI2cInvokeTxCallback(struct I2cStmState *state, size_t tx, size_t rx, int err) in stmI2cInvokeTxCallback() argument
367 state->tx.callback(state->tx.cookie, tx, rx, err); in stmI2cInvokeTxCallback()
383 size_t txOffst = state->tx.offset; in stmI2cSlaveTxDone()
394 if (state->tx.preamble) { in stmI2cSlaveTxNextByte()
395 regs->DR = state->tx.byte; in stmI2cSlaveTxNextByte()
396 state->tx.offset++; in stmI2cSlaveTxNextByte()
397 } else if (state->tx.offset < state->tx.size) { in stmI2cSlaveTxNextByte()
[all …]
DhostIntf.c47 enum IRQn rx, tx; in platHostIntfInit() local
58 tx = spiTxIrq(PLATFORM_HOST_INTF_SPI_BUS); in platHostIntfInit()
70 priority = NVIC_GetPriority(tx); in platHostIntfInit()
74 NVIC_SetPriority(tx, NVIC_EncodePriority(priorityGroup, preemptPriority, subPriority)); in platHostIntfInit()
Dusart.c102 usart->tx = gpioRequest(txGpioNum); /* tx */ in usartOpen()
103 gpioConfigAlt(usart->tx, GPIO_SPEED_LOW, GPIO_PULL_UP, GPIO_OUT_PUSH_PULL, mUsartAlt[port]); in usartOpen()
144 gpioRelease(usart->tx); in usartClose()
/device/google/contexthub/firmware/os/core/
DhostIntfI2c.c25 static void hostIntfI2cPreambleCallback(void *cookie, size_t tx, size_t rx, int err) in hostIntfI2cPreambleCallback() argument
29 static void hostIntfI2cRxCallback(void *cookie, size_t tx, size_t rx, int err) in hostIntfI2cRxCallback() argument
37 static void hostIntfI2cTxCallback(void *cookie, size_t tx, size_t rx, int err) in hostIntfI2cTxCallback() argument
42 callback(tx, err); in hostIntfI2cTxCallback()
DnanohubCommand.c135 static uint32_t getOsHwVersion(void *rx, uint8_t rx_len, void *tx, uint64_t timestamp) in getOsHwVersion() argument
137 struct NanohubOsHwVersionsResponse *resp = tx; in getOsHwVersion()
147 static uint32_t getAppVersion(void *rx, uint8_t rx_len, void *tx, uint64_t timestamp) in getAppVersion() argument
150 struct NanohubAppVersionsResponse *resp = tx; in getAppVersion()
161 static uint32_t queryAppInfo(void *rx, uint8_t rx_len, void *tx, uint64_t timestamp) in queryAppInfo() argument
164 struct NanohubAppInfoResponse *resp = tx; in queryAppInfo()
319 static uint32_t startFirmwareUpload(void *rx, uint8_t rx_len, void *tx, uint64_t timestamp) in startFirmwareUpload() argument
322 struct NanohubStartFirmwareUploadResponse *resp = tx; in startFirmwareUpload()
632 static uint32_t firmwareChunk(void *rx, uint8_t rx_len, void *tx, uint64_t timestamp) in firmwareChunk() argument
635 struct NanohubFirmwareChunkResponse *resp = tx; in firmwareChunk()
[all …]
DhostIntf.c185 static void hostIntfTxAckDone(size_t tx, int err);
188 static void hostIntfTxPayloadDone(size_t tx, int err);
328 static inline bool hostIntfTxPacketDone(int err, size_t tx, in hostIntfTxPacketDone() argument
331 if (!err && tx < mTxSize) { in hostIntfTxPacketDone()
332 mTxSize -= tx; in hostIntfTxPacketDone()
333 mTxBufPtr += tx; in hostIntfTxPacketDone()
474 static void hostIntfTxAckDone(size_t tx, int err) in hostIntfTxAckDone() argument
476 hostIntfTxPacketDone(err, tx, hostIntfTxAckDone); in hostIntfTxAckDone()
515 static void hostIntfTxPayloadDone(size_t tx, int err) in hostIntfTxPayloadDone() argument
517 bool done = hostIntfTxPacketDone(err, tx, hostIntfTxPayloadDone); in hostIntfTxPayloadDone()
DosApi.c303 static void osExpApiI2cInternalCbk(void *cookie, size_t tx, size_t rx, int err) in osExpApiI2cInternalCbk() argument
313 thing->i2cAppCbkEvt.tx = tx; in osExpApiI2cInternalCbk()
/device/google/contexthub/firmware/lib/libm/
Def_rem_pio2.c106 float tx[3]; local
184 tx[i] = (float)((__int32_t)(z));
185 z = (z-tx[i])*two8;
187 tx[2] = z;
189 while(tx[nx-1]==zero) nx--; /* skip zero term */
190 n = __kernel_rem_pio2f(tx,y,e0,nx,2,two_over_pi);
/device/linaro/hikey/hifi/xaf/hifi-dpf/core/util/gdbstub/
Dgdbstub.c171 volatile struct ring * const tx = (void *)DEBUG_TX_BASE; variable
176 tx->head = tx->tail = 0; in init_debug_comm()
179 GDB_FLUSH(&tx->head); in init_debug_comm()
180 GDB_FLUSH(&tx->tail); in init_debug_comm()
196 while (!ring_have_space(tx)) in putDebugChar()
199 tx->data[tx->head] = c; in putDebugChar()
202 GDB_FLUSH(&tx->data[tx->head]); in putDebugChar()
204 tx->head = ring_next_head(tx); in putDebugChar()
207 GDB_FLUSH(&tx->head); in putDebugChar()
/device/google/contexthub/firmware/os/drivers/leds/
Dleds_lp3943.c90 size_t tx; member
112 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err) in i2cCallback() argument
116 xfer->tx = tx; in i2cCallback()
122 osLog(LOG_INFO, "[LP3943] i2c error (tx: %d, rx: %d, err: %d)\n", tx, rx, err); in i2cCallback()
/device/google/contexthub/firmware/os/drivers/intersil_isl29034/
Disl29034.c125 size_t tx; member
169 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err) in i2cCallback() argument
173 xfer->tx = tx; in i2cCallback()
179 INFO_PRINT("i2c error (tx: %d, rx: %d, err: %d)\n", tx, rx, err); in i2cCallback()
/device/google/contexthub/firmware/os/drivers/synaptics_s3708/
Dsynaptics_s3708.c118 size_t tx; member
187 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err) in i2cCallback() argument
191 xfer->tx = tx; in i2cCallback()
199 DEBUG_PRINT("i2c error (tx: %d, rx: %d, err: %d)\n", tx, rx, err); in i2cCallback()
201 ERROR_PRINT("i2c error (tx: %d, rx: %d, err: %d)\n", tx, rx, err); in i2cCallback()
/device/google/contexthub/firmware/os/drivers/st_hts221/
Dhts221.c138 size_t tx; member
211 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err) in i2cCallback() argument
215 xfer->tx = tx; in i2cCallback()
221 ERROR_PRINT("i2c error (tx: %d, rx: %d, err: %d)\n", tx, rx, err); in i2cCallback()
/device/google/contexthub/firmware/os/drivers/si_si7034/
Dsi7034a10.c111 size_t tx; member
164 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err) in i2cCallback() argument
168 xfer->tx = tx; in i2cCallback()
174 ERROR_PRINT("i2c error (tx: %d, rx: %d, err: %d)\n", tx, rx, err); in i2cCallback()
/device/google/contexthub/firmware/os/drivers/st_mag40/
Dst_mag40.c198 size_t tx; member
326 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err);
333 i2cCallback((void *)xfer, xfer->tx, xfer->rx, xfer->err); in i2cDelayCallback()
336 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err) in i2cCallback() argument
348 xfer->tx = tx; in i2cCallback()
362 xfer->tx = tx; in i2cCallback()
368 ERROR_PRINT("i2c error (tx: %d, rx: %d, err: %d)\n", tx, rx, err); in i2cCallback()
/device/google/contexthub/firmware/os/platform/stm32/inc/plat/
Dusart.h29 struct Gpio *tx; member
/device/google/contexthub/firmware/os/drivers/bosch_bmp280/
Dbosch_bmp280.c106 size_t tx; member
182 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err);
253 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err) in i2cCallback() argument
257 xfer->tx = tx; in i2cCallback()
263 osLog(LOG_INFO, "[BMP280] i2c error (tx: %d, rx: %d, err: %d)\n", tx, rx, err); in i2cCallback()
/device/google/contexthub/firmware/os/drivers/st_acc44/
Dst_acc44.c220 size_t tx; member
575 static void st_acc44_i2cCallback(void *cookie, size_t tx, size_t rx, int err) in st_acc44_i2cCallback() argument
585 xfer->tx = tx; in st_acc44_i2cCallback()
591 ERROR_PRINT("i2c error (tx: %d, rx: %d, err: %d)\n", tx, rx, err); in st_acc44_i2cCallback()
/device/google/contexthub/firmware/os/drivers/st_lps22hb/
Dlps22hb.c146 size_t tx; member
235 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err) in i2cCallback() argument
239 xfer->tx = tx; in i2cCallback()
245 ERROR_PRINT("i2c error (tx: %d, rx: %d, err: %d)\n", tx, rx, err); in i2cCallback()
/device/google/contexthub/firmware/os/drivers/rohm_rpr0521/
Drohm_rpr0521.c215 size_t tx; member
299 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err) in i2cCallback() argument
303 xfer->tx = tx; in i2cCallback()
309 ERROR_PRINT("i2c error (tx: %d, rx: %d, err: %d)\n", tx, rx, err); in i2cCallback()
/device/google/contexthub/firmware/os/drivers/ams_tmd2772/
Dams_tmd2772.c148 size_t tx; member
217 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err) in i2cCallback() argument
221 xfer->tx = tx; in i2cCallback()
227 osLog(LOG_INFO, DRIVER_NAME "i2c error (tx: %d, rx: %d, err: %d)\n", tx, rx, err); in i2cCallback()
/device/google/contexthub/firmware/os/inc/
Di2c.h28 typedef void (*I2cCallbackF)(void *cookie, size_t tx, size_t rx, int err);
Dseos_priv.h79 uint32_t tx; member
/device/google/contexthub/firmware/os/drivers/ams_tmd4903/
Dams_tmd4903.c216 size_t tx; member
277 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err);
369 static void i2cCallback(void *cookie, size_t tx, size_t rx, int err) in i2cCallback() argument
373 xfer->tx = tx; in i2cCallback()
379 INFO_PRINT("i2c error (tx: %d, rx: %d, err: %d)\n", tx, rx, err); in i2cCallback()
/device/google/bonito/
DWCNSS_qcom_cfg.ini37 # 1=enable tx STBC; 0=disable
535 # configure tx and rx per band chain mask. These parameters will

12