Home
last modified time | relevance | path

Searched refs:txBuf (Results 1 – 15 of 15) sorted by relevance

/device/google/contexthub/firmware/os/core/
DhostIntfSpi.c62 gPacket.txBuf = NULL; in hostIntfSpiRxPacket()
72 static int hostIntfSpiTxPacket(const void *txBuf, size_t txSize, in hostIntfSpiTxPacket() argument
75 ((uint8_t *)txBuf)[txSize] = NANOHUB_PREAMBLE_BYTE; in hostIntfSpiTxPacket()
79 gPacket.txBuf = txBuf; in hostIntfSpiTxPacket()
Dspi.c76 state->packets[0].txBuf, state->packets[0].size, mode); in spiMasterStart()
104 const void *txBuf = state->packets[i].txBuf; in spiMasterNext() local
108 int err = dev->ops->masterRxTx(dev, rxBuf, txBuf, size, mode); in spiMasterNext()
235 const void *txBuf = state->packets[i].txBuf; in spiSlaveNext() local
239 int err = dev->ops->slaveRxTx(dev, rxBuf, txBuf, size, mode); in spiSlaveNext()
404 state->packets[0].txBuf, state->packets[0].size, &state->mode); in spiSlaveRxTx()
DhostIntfI2c.c58 static int hostIntfI2cTxPacket(const void *txBuf, size_t txSize, in hostIntfI2cTxPacket() argument
61 return i2cSlaveTxPacket(gBusId, txBuf, txSize, hostIntfI2cTxCallback, in hostIntfI2cTxPacket()
DosApi.c403 const void *txBuf = va_arg(args, const void*); in osExpApiI2cMstTxRx() local
414 …*retValP = i2cMasterTxRx(busId, addr, txBuf, txSize, rxBuf, rxSize, osExpApiI2cInternalCbk, cbkInf… in osExpApiI2cMstTxRx()
473 const void *txBuf = va_arg(args, const void*); in osExpApiI2cSlvTxPkt() local
482 *retValP = i2cSlaveTxPacket(busId, txBuf, txSize, osExpApiI2cInternalCbk, cbkInfo); in osExpApiI2cSlvTxPkt()
/device/google/contexthub/firmware/os/inc/
Di2c.h32 int i2cMasterTxRx(uint32_t busId, uint32_t addr, const void *txBuf, size_t txSize,
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()
51 int i2cSlaveTxPacket(uint32_t busId, const void *txBuf, size_t txSize,
Dspi_priv.h34 int (*masterRxTx)(struct SpiDevice *dev, void *rxBuf, const void *txBuf,
44 int (*slaveRxTx)(struct SpiDevice *dev, void *rxBuf, const void *txBuf,
DhostIntf_priv.h34 int (*txPacket)(const void *txBuf, size_t txSize,
DsyscallDo.h279 static inline int eOsI2cMasterTxRx(uint32_t busId, uint32_t addr, const void *txBuf, size_t txSize,… in eOsI2cMasterTxRx() argument
281 …IVERS, SYSCALL_OS_DRV_I2C_MASTER, SYSCALL_OS_DRV_I2CM_TXRX), busId, addr, txBuf, txSize, rxBuf, rx… in eOsI2cMasterTxRx()
304 static inline int eOsI2cSlaveTxPacket(uint32_t busId, const void *txBuf, size_t txSize, uint32_t cb… in eOsI2cSlaveTxPacket() argument
306 …OS_DRIVERS, SYSCALL_OS_DRV_I2C_SLAVE, SYSCALL_OS_DRV_I2CS_TX_PKT), busId, txBuf, txSize, cbkTid, c… in eOsI2cSlaveTxPacket()
Dspi.h57 const void *txBuf; member
/device/google/contexthub/firmware/os/platform/native/
Di2c.c40 const void *txBuf, size_t txSize, void *rxBuf, size_t rxSize, in i2cMasterTxRx() argument
67 int i2cSlaveTxPacket(I2cBus busId, const void *txBuf, size_t txSize, I2cCallbackF callback, void *c… in i2cSlaveTxPacket() argument
/device/google/contexthub/firmware/os/platform/stm32/
Di2c.c220 const void *txBuf; member
527 state->tx.cbuf = xfer->txBuf; in stmI2cMasterTxRxDone()
911 const void *txBuf, size_t txSize, void *rxBuf, size_t rxSize, in i2cMasterTxRx() argument
932 xfer->txBuf = txBuf; in i2cMasterTxRx()
957 state->tx.cbuf = xfer->txBuf; in i2cMasterTxRx()
1062 static int i2cSlaveTx(uint32_t busId, const void *txBuf, uint8_t byte, in i2cSlaveTx() argument
1072 if (txBuf) { in i2cSlaveTx()
1073 state->tx.cbuf = txBuf; in i2cSlaveTx()
1104 int i2cSlaveTxPacket(uint32_t busId, const void *txBuf, size_t txSize, in i2cSlaveTxPacket() argument
1107 return i2cSlaveTx(busId, txBuf, 0, txSize, callback, cookie); in i2cSlaveTxPacket()
Dspi.c323 static int stmSpiRxTx(struct SpiDevice *dev, void *rxBuf, const void *txBuf, in stmSpiRxTx() argument
366 if (!txBuf) { in stmSpiRxTx()
367 txBuf = &state->txWord; in stmSpiRxTx()
370 stmSpiStartDma(pdev, &pdev->board->dmaTx, txBuf, mode->bitsPerWord, txMinc, in stmSpiRxTx()
/device/google/contexthub/firmware/os/drivers/bosch_bmi160/
Dbosch_bmi160.c836 T(packets[T(mRegCnt)]).txBuf = &T(txrxBuffer[T(mWbufCnt)]);
857 T(packets[T(mRegCnt)]).txBuf = &T(txrxBuffer[T(mWbufCnt)]);
3709 uint8_t *txBuf; local
3719 txBuf = (uint8_t *)T(packets[reg]).txBuf;
3721 if (txBuf[0] & BMI160_SPI_READ) { // Read op
3724 …err = i2cMasterTxRx(BMI160_I2C_BUS_ID, BMI160_I2C_ADDR, txBuf, 1, rxBuf, size, i2cCallback, evtDat…
3726 err = i2cMasterTx(BMI160_I2C_BUS_ID, BMI160_I2C_ADDR, txBuf, size, i2cCallback, evtData);
3730 ERROR_PRINT("%s: [0x%x] (err: %d)\n", __func__, txBuf[0], err);
/device/google/contexthub/firmware/os/drivers/invensense_icm40600/
Dinvensense_icm40600.c835 T(packets[T(mRegCnt)]).txBuf = &T(txrxBuffer[T(mWbufCnt)]);
857 T(packets[T(mRegCnt)]).txBuf = &T(txrxBuffer[T(mWbufCnt)]);
/device/google/contexthub/firmware/os/drivers/st_lsm6dsm/
Dst_lsm6dsm.c1262 …T_SLAVE_INTERFACE(packets[T_SLAVE_INTERFACE(mRegCnt)]).txBuf = &T_SLAVE_INTERFACE(txrxBuffer[T_SLA… in lsm6dsm_spiQueueRead()
1287 …T_SLAVE_INTERFACE(packets[T_SLAVE_INTERFACE(mRegCnt)]).txBuf = &T_SLAVE_INTERFACE(txrxBuffer[T_SLA… in lsm6dsm_spiQueueWrite()
1314 …T_SLAVE_INTERFACE(packets[T_SLAVE_INTERFACE(mRegCnt)]).txBuf = &T_SLAVE_INTERFACE(txrxBuffer[T_SLA… in lsm6dsm_spiQueueMultiwrite()