Lines Matching refs:link
47 #define IMU_WR_MSG(link, msg) (((IMU_Type *)(uintptr_t)IMU_CUR_CPU_BASE(link))->WR_MSG = (msg)) argument
50 #define IMU_RD_MSG(link) (((IMU_Type *)(uintptr_t)IMU_CUR_CPU_BASE(link))->RD_MSG) argument
53 #define IMU_RX_FIFO_LOCKED(link) \ argument
55 …(((IMU_Type *)(uintptr_t)IMU_PEER_CPU_BASE(link))->MSG_FIFO_STATUS & IMU_MSG_FIFO_STATUS_MSG_FIFO_…
58 #define IMU_TX_FIFO_LOCKED(link) \ argument
60 …(((IMU_Type *)(uintptr_t)IMU_CUR_CPU_BASE(link))->MSG_FIFO_STATUS & IMU_MSG_FIFO_STATUS_MSG_FIFO_L…
63 #define IMU_TX_FIFO_ALMOST_FULL(link) \ argument
64 (0UL != (((IMU_Type *)(uintptr_t)IMU_CUR_CPU_BASE(link))->MSG_FIFO_STATUS & \
68 #define IMU_RX_FIFO_EMPTY(link) \ argument
70 …(((IMU_Type *)(uintptr_t)IMU_PEER_CPU_BASE(link))->MSG_FIFO_STATUS & IMU_MSG_FIFO_STATUS_MSG_FIFO_…
73 #define IMU_LOCK_TX_FIFO(link) \ argument
74 …(((IMU_Type *)(uintptr_t)IMU_CUR_CPU_BASE(link))->MSG_FIFO_CNTL |= IMU_MSG_FIFO_CNTL_WAIT_FOR_ACK_…
77 #define IMU_UNLOCK_TX_FIFO(link) \ argument
78 …(((IMU_Type *)(uintptr_t)IMU_CUR_CPU_BASE(link))->MSG_FIFO_CNTL &= ~IMU_MSG_FIFO_CNTL_WAIT_FOR_ACK…
81 #define IMU_RX_FIFO_MSG_COUNT(link) … argument
82 …((((IMU_Type *)(uintptr_t)IMU_PEER_CPU_BASE(link))->MSG_FIFO_STATUS & IMU_MSG_FIFO_STATUS_MSG_COUN…
86 #define IMU_TX_FIFO_MSG_COUNT(link) … argument
87 …((((IMU_Type *)(uintptr_t)IMU_CUR_CPU_BASE(link))->MSG_FIFO_STATUS & IMU_MSG_FIFO_STATUS_MSG_COUNT…
98 #define IMU_TX_FIFO_STATUS(link) (((IMU_Type *)(uintptr_t)IMU_CUR_CPU_BASE(link))->MSG_FIFO_STATUS) argument
101 #define IMU_RX_FIFO_STATUS(link) (((IMU_Type *)(uintptr_t)IMU_PEER_CPU_BASE(link))->MSG_FIFO_STATUS) argument
104 #define IMU_TX_FIFO_CNTL(link) (((IMU_Type *)(uintptr_t)IMU_CUR_CPU_BASE(link))->MSG_FIFO_CNTL) argument
118 #define IMU_WR_PTR(link) \ argument
119 IMU_FIFO_SW_WRAPAROUND((IMU_TX_FIFO_STATUS(link) & IMU_MSG_FIFO_STATUS_WR_PTR_MASK) >> \
122 #define IMU_RD_PTR(link) \ argument
123 IMU_FIFO_SW_WRAPAROUND((IMU_RX_FIFO_STATUS(link) & IMU_MSG_FIFO_STATUS_RD_PTR_MASK) >> \
189 status_t IMU_Init(imu_link_t link);
196 void IMU_Deinit(imu_link_t link);
215 static inline void IMU_WriteMsg(imu_link_t link, uint32_t msg) in IMU_WriteMsg() argument
217 IMU_WR_MSG(link, msg); in IMU_WriteMsg()
228 static inline uint32_t IMU_ReadMsg(imu_link_t link) in IMU_ReadMsg() argument
230 return IMU_RD_MSG(link); in IMU_ReadMsg()
252 int32_t IMU_SendMsgsBlocking(imu_link_t link, const uint32_t *msgs, int32_t msgCount, bool lockSend…
276 int32_t IMU_TrySendMsgs(imu_link_t link, const uint32_t *msgs, int32_t msgCount, bool lockSendFifo);
299 int32_t IMU_TryReceiveMsgs(imu_link_t link, uint32_t *msgs, int32_t desiredMsgCount, bool *needAckL…
322 int32_t IMU_ReceiveMsgsBlocking(imu_link_t link, uint32_t *msgs, int32_t desiredMsgCount, bool *nee…
344 int32_t IMU_SendMsgPtrBlocking(imu_link_t link, uint32_t msgPtr, bool lockSendFifo);
352 static inline void IMU_LockSendFifo(imu_link_t link, bool lock) in IMU_LockSendFifo() argument
356 …((IMU_Type *)(uintptr_t)IMU_CUR_CPU_BASE(link))->MSG_FIFO_CNTL |= IMU_MSG_FIFO_CNTL_WAIT_FOR_ACK_M… in IMU_LockSendFifo()
360 …((IMU_Type *)(uintptr_t)IMU_CUR_CPU_BASE(link))->MSG_FIFO_CNTL &= ~IMU_MSG_FIFO_CNTL_WAIT_FOR_ACK_… in IMU_LockSendFifo()
371 void IMU_FlushSendFifo(imu_link_t link);
382 static inline void IMU_SetSendFifoWaterMark(imu_link_t link, uint8_t waterMark) in IMU_SetSendFifoWaterMark() argument
384 uint32_t reg = ((IMU_Type *)(uintptr_t)IMU_CUR_CPU_BASE(link))->MSG_FIFO_CNTL; in IMU_SetSendFifoWaterMark()
389 ((IMU_Type *)(uintptr_t)IMU_CUR_CPU_BASE(link))->MSG_FIFO_CNTL = reg; in IMU_SetSendFifoWaterMark()
398 static inline uint32_t IMU_GetReceivedMsgCount(imu_link_t link) in IMU_GetReceivedMsgCount() argument
400 return IMU_RX_FIFO_MSG_COUNT(link); in IMU_GetReceivedMsgCount()
409 static inline uint32_t IMU_GetSendFifoEmptySpace(imu_link_t link) in IMU_GetSendFifoEmptySpace() argument
411 return IMU_MSG_FIFO_MAX_COUNT - IMU_TX_FIFO_MSG_COUNT(link) - 1U; in IMU_GetSendFifoEmptySpace()
427 uint32_t IMU_GetStatusFlags(imu_link_t link);
435 static inline void IMU_ClearPendingInterrupts(imu_link_t link, uint32_t mask) in IMU_ClearPendingInterrupts() argument
437 ((IMU_Type *)(uintptr_t)IMU_CUR_CPU_BASE(link))->MSG_FIFO_CNTL |= mask; in IMU_ClearPendingInterrupts()