Searched refs:rbox (Results 1 – 2 of 2) sorted by relevance
25 struct CanRxBox *rbox = NULL; in CanRxBoxCreate() local27 rbox = (struct CanRxBox *)OsalMemCalloc(sizeof(*rbox)); in CanRxBoxCreate()28 if (rbox == NULL) { in CanRxBoxCreate()33 rbox->queue = PlatformQueueCreate(NULL, "can_rbox", rbox); in CanRxBoxCreate()34 if (rbox->queue == NULL) { in CanRxBoxCreate()36 OsalMemFree(rbox); in CanRxBoxCreate()40 DListHeadInit(&rbox->filters); in CanRxBoxCreate()41 (void)OsalSpinInit(&rbox->spin); in CanRxBoxCreate()42 return rbox; in CanRxBoxCreate()45 void CanRxBoxDestroy(struct CanRxBox *rbox) in CanRxBoxDestroy() argument[all …]
29 void CanRxBoxDestroy(struct CanRxBox *rbox);31 static inline void CanRxBoxLock(struct CanRxBox *rbox) in CanRxBoxLock() argument33 (void)OsalSpinLock(&rbox->spin); in CanRxBoxLock()36 static inline void CanRxBoxUnlock(struct CanRxBox *rbox) in CanRxBoxUnlock() argument38 (void)OsalSpinUnlock(&rbox->spin); in CanRxBoxUnlock()41 int32_t CanRxBoxAddMsg(struct CanRxBox *rbox, struct CanMsg *cmsg);43 int32_t CanRxBoxGetMsg(struct CanRxBox *rbox, struct CanMsg **cmsg, uint32_t tms);45 int32_t CanRxBoxAddFilter(struct CanRxBox *rbox, const struct CanFilter *filter);47 int32_t CanRxBoxDelFilter(struct CanRxBox *rbox, const struct CanFilter *filter);