/device/google/contexthub/firmware/src/platform/stm32f4xx/ |
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 510 if (xfer->busId == (pdev - mStmI2cDevs) && in stmI2cMasterTxRxDone() 770 int i2cMasterRequest(uint32_t busId, uint32_t speed) in i2cMasterRequest() argument 772 if (busId >= ARRAY_SIZE(mStmI2cDevs)) in i2cMasterRequest() 775 const struct StmI2cBoardCfg *board = boardStmI2cCfg(busId); in i2cMasterRequest() 779 struct StmI2cDev *pdev = &mStmI2cDevs[busId]; in i2cMasterRequest() 781 const struct StmI2cCfg *cfg = &mStmI2cCfgs[busId]; in i2cMasterRequest() 816 int i2cMasterRelease(uint32_t busId) in i2cMasterRelease() argument 818 if (busId >= ARRAY_SIZE(mStmI2cDevs)) in i2cMasterRelease() 821 struct StmI2cDev *pdev = &mStmI2cDevs[busId]; in i2cMasterRelease() [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/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 | 296 static inline int eOsI2cMasterRequest(uint32_t busId, uint32_t speedInHz) in eOsI2cMasterRequest() argument 298 …AIN_OS, SYSCALL_OS_DRIVERS, SYSCALL_OS_DRV_I2C_MASTER, SYSCALL_OS_DRV_I2CM_REQ), busId, speedInHz); in eOsI2cMasterRequest() 301 static inline int eOsI2cMasterRelease(uint32_t busId) in eOsI2cMasterRelease() argument 303 …SYSCALL_DOMAIN_OS, SYSCALL_OS_DRIVERS, SYSCALL_OS_DRV_I2C_MASTER, SYSCALL_OS_DRV_I2CM_REL), busId); in eOsI2cMasterRelease() 306 static inline int eOsI2cMasterTxRx(uint32_t busId, uint32_t addr, const void *txBuf, size_t txSize,… in eOsI2cMasterTxRx() argument 308 …SYSCALL_OS_DRIVERS, SYSCALL_OS_DRV_I2C_MASTER, SYSCALL_OS_DRV_I2CM_TXRX), busId, addr, txBuf, txSi… in eOsI2cMasterTxRx() 311 static inline int eOsI2cSlaveRequest(uint32_t busId, uint32_t addr) in eOsI2cSlaveRequest() argument 313 …LL_DOMAIN_OS, SYSCALL_OS_DRIVERS, SYSCALL_OS_DRV_I2C_SLAVE, SYSCALL_OS_DRV_I2CS_REQ), busId, addr); in eOsI2cSlaveRequest() 316 static inline int eOsI2cSlaveRelease(uint32_t busId) in eOsI2cSlaveRelease() argument 318 …(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/src/platform/linux/ |
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/inc/platform/stm32f4xx/ |
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/src/variant/lunchbox/ |
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/src/variant/nucleo/ |
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/src/ |
D | osApi.c | 358 uint32_t busId = va_arg(args, uint32_t); in osExpApiI2cMstReq() local 361 *retValP = i2cMasterRequest(busId, speed); in osExpApiI2cMstReq() 366 uint32_t busId = va_arg(args, uint32_t); in osExpApiI2cMstRel() local 368 *retValP = i2cMasterRelease(busId); in osExpApiI2cMstRel() 373 uint32_t busId = va_arg(args, uint32_t); in osExpApiI2cMstTxRx() local 386 …*retValP = i2cMasterTxRx(busId, addr, txBuf, txSize, rxBuf, rxSize, osExpApiI2cInternalCbk, cbkInf… in osExpApiI2cMstTxRx() 394 uint32_t busId = va_arg(args, uint32_t); in osExpApiI2cSlvReq() local 397 *retValP = i2cSlaveRequest(busId, addr); in osExpApiI2cSlvReq() 402 uint32_t busId = va_arg(args, uint32_t); in osExpApiI2cSlvRel() local 404 *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 | 279 int spiMasterRequest(uint8_t busId, struct SpiDevice **dev_out) in spiMasterRequest() argument 288 ret = spiRequest(dev, busId); in spiMasterRequest() 342 int spiSlaveRequest(uint8_t busId, const struct SpiMode *mode, in spiSlaveRequest() argument 352 ret = spiRequest(dev, busId); in spiSlaveRequest()
|