Home
last modified time | relevance | path

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

/device/google/contexthub/firmware/os/platform/stm32/
Ddma.c98 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 …]
Di2c.c226 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 …]
Dspi.c607 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/
Di2c.h30 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 …]
DsyscallDo.h269 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 …]
DhostIntf_priv.h43 const struct HostIntfComm *hostIntfI2cInit(uint32_t busId);
48 const struct HostIntfComm *hostIntfSpiInit(uint8_t busId);
Dspi.h73 int spiMasterRequest(uint8_t busId, struct SpiDevice **dev);
82 int spiSlaveRequest(uint8_t busId, const struct SpiMode *mode,
Dspi_priv.h56 int spiRequest(struct SpiDevice *dev, uint8_t busId);
/device/google/contexthub/firmware/os/platform/native/
Di2c.c29 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
Dspi.c25 int spiRequest(struct SpiDevice *dev, uint8_t busId) in spiRequest() argument
/device/google/contexthub/firmware/os/platform/stm32/inc/plat/
Ddma.h56 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);
Dspi.h81 extern const struct StmSpiBoardCfg *boardStmSpiCfg(uint8_t busId);
82 const enum IRQn spiRxIrq(uint8_t busId);
83 const enum IRQn spiTxIrq(uint8_t busId);
Di2c.h77 extern const struct StmI2cBoardCfg *boardStmI2cCfg(uint8_t busId);
/device/google/contexthub/firmware/variant/lunchbox/src/os/
Di2c.c34 const struct StmI2cBoardCfg *boardStmI2cCfg(uint8_t busId) in boardStmI2cCfg() argument
36 if (busId >= ARRAY_SIZE(mStmI2cBoardCfgs)) in boardStmI2cCfg()
39 return &mStmI2cBoardCfgs[busId]; in boardStmI2cCfg()
Dspi.c55 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/
Di2c.c34 const struct StmI2cBoardCfg *boardStmI2cCfg(uint8_t busId) in boardStmI2cCfg() argument
36 if (busId >= ARRAY_SIZE(mStmI2cBoardCfgs)) in boardStmI2cCfg()
39 return &mStmI2cBoardCfgs[busId]; in boardStmI2cCfg()
Dspi.c55 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/
Dspi.c39 const struct StmSpiBoardCfg *boardStmSpiCfg(uint8_t busId) in boardStmSpiCfg() argument
41 if (busId >= ARRAY_SIZE(mStmSpiBoardCfgs)) in boardStmSpiCfg()
44 return &mStmSpiBoardCfgs[busId]; in boardStmSpiCfg()
Di2c.c45 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/
Di2c.c56 const struct StmI2cBoardCfg *boardStmI2cCfg(uint8_t busId) in boardStmI2cCfg() argument
58 if (busId >= ARRAY_SIZE(mStmI2cBoardCfgs)) in boardStmI2cCfg()
61 return &mStmI2cBoardCfgs[busId]; in boardStmI2cCfg()
Dspi.c55 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/
DosApi.c386 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 …]
DhostIntfI2c.c77 const struct HostIntfComm *hostIntfI2cInit(uint32_t busId) in hostIntfI2cInit() argument
79 gBusId = busId; in hostIntfI2cInit()
DhostIntfSpi.c98 const struct HostIntfComm *hostIntfSpiInit(uint8_t busId) in hostIntfSpiInit() argument
100 gBusId = busId; in hostIntfSpiInit()
Dspi.c287 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()