/device/google/contexthub/firmware/os/platform/stm32/ |
D | dma.c | 98 static void dmaIsr(uint8_t busId, uint8_t stream); 161 static inline struct StmDmaStreamState *dmaGetStreamState(uint8_t busId, in dmaGetStreamState() argument 164 return &gDmaDevs[busId].streams[stream]; in dmaGetStreamState() 167 static inline struct StmDmaStreamRegs *dmaGetStreamRegs(uint8_t busId, in dmaGetStreamRegs() argument 170 return &gDmaDevs[busId].regs->Sx[stream]; in dmaGetStreamRegs() 175 static inline uint8_t dmaGetIsr(uint8_t busId, uint8_t stream) in dmaGetIsr() argument 177 struct StmDmaDev *dev = &gDmaDevs[busId]; in dmaGetIsr() 184 static inline void dmaClearIsr(uint8_t busId, uint8_t stream, uint8_t mask) in dmaClearIsr() argument 186 struct StmDmaDev *dev = &gDmaDevs[busId]; in dmaClearIsr() 193 static void dmaIsrTeif(uint8_t busId, uint8_t stream) in dmaIsrTeif() argument [all …]
|
D | i2c.c | 226 uint8_t busId; /* for us these are both fine in a uint 8 */ member 490 static inline struct StmI2cXfer *stmI2cGetNextPendingXfer(uint8_t busId) in stmI2cGetNextPendingXfer() argument 497 if (xfer->busId == busId) { in stmI2cGetNextPendingXfer() 791 static int i2cMasterReset(uint32_t busId, uint32_t speed) in i2cMasterReset() argument 797 if (busId >= ARRAY_SIZE(mStmI2cDevs)) in i2cMasterReset() 800 const struct StmI2cBoardCfg *board = boardStmI2cCfg(busId); in i2cMasterReset() 834 int i2cMasterRequest(uint32_t busId, uint32_t speed) in i2cMasterRequest() argument 836 if (busId >= ARRAY_SIZE(mStmI2cDevs)) in i2cMasterRequest() 839 const struct StmI2cBoardCfg *board = boardStmI2cCfg(busId); in i2cMasterRequest() 843 struct StmI2cDev *pdev = &mStmI2cDevs[busId]; in i2cMasterRequest() [all …]
|
D | spi.c | 607 int spiRequest(struct SpiDevice *dev, uint8_t busId) in spiRequest() argument 609 if (busId >= ARRAY_SIZE(mStmSpiDevs)) in spiRequest() 612 const struct StmSpiBoardCfg *board = boardStmSpiCfg(busId); in spiRequest() 616 struct StmSpiDev *pdev = &mStmSpiDevs[busId]; in spiRequest() 617 const struct StmSpiCfg *cfg = &mStmSpiCfgs[busId]; in spiRequest() 627 const enum IRQn spiRxIrq(uint8_t busId) in spiRxIrq() argument 629 if (busId >= ARRAY_SIZE(mStmSpiDevs)) in spiRxIrq() 632 struct StmSpiDev *pdev = &mStmSpiDevs[busId]; in spiRxIrq() 637 const enum IRQn spiTxIrq(uint8_t busId) in spiTxIrq() argument 639 if (busId >= ARRAY_SIZE(mStmSpiDevs)) in spiTxIrq() [all …]
|
/device/google/contexthub/firmware/os/inc/ |
D | i2c.h | 30 int i2cMasterRequest(uint32_t busId, uint32_t speedInHz); 31 int i2cMasterRelease(uint32_t busId); 32 int i2cMasterTxRx(uint32_t busId, uint32_t addr, const void *txBuf, size_t txSize, 34 static inline int i2cMasterTx(uint32_t busId, uint32_t addr, in i2cMasterTx() argument 37 return i2cMasterTxRx(busId, addr, txBuf, txSize, NULL, 0, callback, cookie);} in i2cMasterTx() 38 static inline int i2cMasterRx(uint32_t busId, uint32_t addr, in i2cMasterRx() argument 41 return i2cMasterTxRx(busId, addr, NULL, 0, rxBuf, rxSize, callback, cookie); in i2cMasterRx() 44 int i2cSlaveRequest(uint32_t busId, uint32_t addr); 45 int i2cSlaveRelease(uint32_t busId); 47 void i2cSlaveEnableRx(uint32_t busId, void *rxBuf, size_t rxSize, [all …]
|
D | syscallDo.h | 269 static inline int eOsI2cMasterRequest(uint32_t busId, uint32_t speedInHz) in eOsI2cMasterRequest() argument 271 …AIN_OS, SYSCALL_OS_DRIVERS, SYSCALL_OS_DRV_I2C_MASTER, SYSCALL_OS_DRV_I2CM_REQ), busId, speedInHz); in eOsI2cMasterRequest() 274 static inline int eOsI2cMasterRelease(uint32_t busId) in eOsI2cMasterRelease() argument 276 …SYSCALL_DOMAIN_OS, SYSCALL_OS_DRIVERS, SYSCALL_OS_DRV_I2C_MASTER, SYSCALL_OS_DRV_I2CM_REL), busId); in eOsI2cMasterRelease() 279 static inline int eOsI2cMasterTxRx(uint32_t busId, uint32_t addr, const void *txBuf, size_t txSize,… in eOsI2cMasterTxRx() argument 281 …SYSCALL_OS_DRIVERS, SYSCALL_OS_DRV_I2C_MASTER, SYSCALL_OS_DRV_I2CM_TXRX), busId, addr, txBuf, txSi… in eOsI2cMasterTxRx() 284 static inline int eOsI2cSlaveRequest(uint32_t busId, uint32_t addr) in eOsI2cSlaveRequest() argument 286 …LL_DOMAIN_OS, SYSCALL_OS_DRIVERS, SYSCALL_OS_DRV_I2C_SLAVE, SYSCALL_OS_DRV_I2CS_REQ), busId, addr); in eOsI2cSlaveRequest() 289 static inline int eOsI2cSlaveRelease(uint32_t busId) in eOsI2cSlaveRelease() argument 291 …(SYSCALL_DOMAIN_OS, SYSCALL_OS_DRIVERS, SYSCALL_OS_DRV_I2C_SLAVE, SYSCALL_OS_DRV_I2CS_REL), busId); in eOsI2cSlaveRelease() [all …]
|
D | hostIntf_priv.h | 43 const struct HostIntfComm *hostIntfI2cInit(uint32_t busId); 48 const struct HostIntfComm *hostIntfSpiInit(uint8_t busId);
|
D | spi.h | 73 int spiMasterRequest(uint8_t busId, struct SpiDevice **dev); 82 int spiSlaveRequest(uint8_t busId, const struct SpiMode *mode,
|
D | spi_priv.h | 56 int spiRequest(struct SpiDevice *dev, uint8_t busId);
|
/device/google/contexthub/firmware/os/platform/native/ |
D | i2c.c | 29 int i2cMasterRequest(I2cBus busId, I2cSpeed speed) in i2cMasterRequest() argument 34 int i2cMasterRelease(I2cBus busId) in i2cMasterRelease() argument 39 int i2cMasterTxRx(I2cBus busId, I2cAddr addr, in i2cMasterTxRx() argument 46 int i2cSlaveRequest(I2cBus busId, I2cAddr addr) in i2cSlaveRequest() argument 51 int i2cSlaveRelease(I2cBus busId) in i2cSlaveRelease() argument 56 void i2cSlaveEnableRx(I2cBus busId, void *rxBuf, size_t rxSize, 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
|
D | spi.c | 25 int spiRequest(struct SpiDevice *dev, uint8_t busId) in spiRequest() argument
|
/device/google/contexthub/firmware/os/platform/stm32/inc/plat/ |
D | dma.h | 56 int dmaStart(uint8_t busId, uint8_t stream, const void *buf, uint16_t size, 58 uint16_t dmaBytesLeft(uint8_t busId, uint8_t stream); 59 void dmaStop(uint8_t busId, uint8_t stream); 60 const enum IRQn dmaIrq(uint8_t busId, uint8_t stream);
|
D | spi.h | 81 extern const struct StmSpiBoardCfg *boardStmSpiCfg(uint8_t busId); 82 const enum IRQn spiRxIrq(uint8_t busId); 83 const enum IRQn spiTxIrq(uint8_t busId);
|
D | i2c.h | 77 extern const struct StmI2cBoardCfg *boardStmI2cCfg(uint8_t busId);
|
/device/google/contexthub/firmware/variant/lunchbox/src/os/ |
D | i2c.c | 34 const struct StmI2cBoardCfg *boardStmI2cCfg(uint8_t busId) in boardStmI2cCfg() argument 36 if (busId >= ARRAY_SIZE(mStmI2cBoardCfgs)) in boardStmI2cCfg() 39 return &mStmI2cBoardCfgs[busId]; in boardStmI2cCfg()
|
D | spi.c | 55 const struct StmSpiBoardCfg *boardStmSpiCfg(uint8_t busId) in boardStmSpiCfg() argument 57 if (busId >= ARRAY_SIZE(mStmSpiBoardCfgs)) in boardStmSpiCfg() 60 return &mStmSpiBoardCfgs[busId]; in boardStmSpiCfg()
|
/device/google/contexthub/firmware/variant/nucleo/src/os/ |
D | i2c.c | 34 const struct StmI2cBoardCfg *boardStmI2cCfg(uint8_t busId) in boardStmI2cCfg() argument 36 if (busId >= ARRAY_SIZE(mStmI2cBoardCfgs)) in boardStmI2cCfg() 39 return &mStmI2cBoardCfgs[busId]; in boardStmI2cCfg()
|
D | spi.c | 55 const struct StmSpiBoardCfg *boardStmSpiCfg(uint8_t busId) in boardStmSpiCfg() argument 57 if (busId >= ARRAY_SIZE(mStmSpiBoardCfgs)) in boardStmSpiCfg() 60 return &mStmSpiBoardCfgs[busId]; in boardStmSpiCfg()
|
/device/google/contexthub/firmware/variant/neonkey/src/os/ |
D | spi.c | 39 const struct StmSpiBoardCfg *boardStmSpiCfg(uint8_t busId) in boardStmSpiCfg() argument 41 if (busId >= ARRAY_SIZE(mStmSpiBoardCfgs)) in boardStmSpiCfg() 44 return &mStmSpiBoardCfgs[busId]; in boardStmSpiCfg()
|
D | i2c.c | 45 const struct StmI2cBoardCfg *boardStmI2cCfg(uint8_t busId) in boardStmI2cCfg() argument 47 if (busId >= ARRAY_SIZE(mStmI2cBoardCfgs)) in boardStmI2cCfg() 50 return &mStmI2cBoardCfgs[busId]; in boardStmI2cCfg()
|
/device/google/contexthub/firmware/variant/argonkey/src/os/ |
D | i2c.c | 56 const struct StmI2cBoardCfg *boardStmI2cCfg(uint8_t busId) in boardStmI2cCfg() argument 58 if (busId >= ARRAY_SIZE(mStmI2cBoardCfgs)) in boardStmI2cCfg() 61 return &mStmI2cBoardCfgs[busId]; in boardStmI2cCfg()
|
D | spi.c | 55 const struct StmSpiBoardCfg *boardStmSpiCfg(uint8_t busId) in boardStmSpiCfg() argument 57 if (busId >= ARRAY_SIZE(mStmSpiBoardCfgs)) in boardStmSpiCfg() 60 return &mStmSpiBoardCfgs[busId]; in boardStmSpiCfg()
|
/device/google/contexthub/firmware/os/core/ |
D | osApi.c | 386 uint32_t busId = va_arg(args, uint32_t); in osExpApiI2cMstReq() local 389 *retValP = i2cMasterRequest(busId, speed); in osExpApiI2cMstReq() 394 uint32_t busId = va_arg(args, uint32_t); in osExpApiI2cMstRel() local 396 *retValP = i2cMasterRelease(busId); in osExpApiI2cMstRel() 401 uint32_t busId = va_arg(args, uint32_t); in osExpApiI2cMstTxRx() local 414 …*retValP = i2cMasterTxRx(busId, addr, txBuf, txSize, rxBuf, rxSize, osExpApiI2cInternalCbk, cbkInf… in osExpApiI2cMstTxRx() 422 uint32_t busId = va_arg(args, uint32_t); in osExpApiI2cSlvReq() local 425 *retValP = i2cSlaveRequest(busId, addr); in osExpApiI2cSlvReq() 430 uint32_t busId = va_arg(args, uint32_t); in osExpApiI2cSlvRel() local 432 *retValP = i2cSlaveRelease(busId); in osExpApiI2cSlvRel() [all …]
|
D | hostIntfI2c.c | 77 const struct HostIntfComm *hostIntfI2cInit(uint32_t busId) in hostIntfI2cInit() argument 79 gBusId = busId; in hostIntfI2cInit()
|
D | hostIntfSpi.c | 98 const struct HostIntfComm *hostIntfSpiInit(uint8_t busId) in hostIntfSpiInit() argument 100 gBusId = busId; in hostIntfSpiInit()
|
D | spi.c | 287 int spiMasterRequest(uint8_t busId, struct SpiDevice **dev_out) in spiMasterRequest() argument 296 ret = spiRequest(dev, busId); in spiMasterRequest() 350 int spiSlaveRequest(uint8_t busId, const struct SpiMode *mode, in spiSlaveRequest() argument 360 ret = spiRequest(dev, busId); in spiSlaveRequest()
|