Home
last modified time | relevance | path

Searched refs:rbox (Results 1 – 2 of 2) sorted by relevance

/ohos5.0/drivers/hdf_core/framework/support/platform/src/can/
H A Dcan_mail.c27 rbox = (struct CanRxBox *)OsalMemCalloc(sizeof(*rbox)); in CanRxBoxCreate()
28 if (rbox == NULL) { in CanRxBoxCreate()
33 rbox->queue = PlatformQueueCreate(NULL, "can_rbox", rbox); in CanRxBoxCreate()
36 OsalMemFree(rbox); in CanRxBoxCreate()
42 return rbox; in CanRxBoxCreate()
47 if (rbox != NULL) { in CanRxBoxDestroy()
63 if (rbox == NULL) { in CanRxBoxAddMsg()
92 if (rbox == NULL) { in CanRxBoxGetMsg()
136 CanRxBoxLock(rbox); in CanRxBoxMsgMatch()
152 if (rbox == NULL) { in CanRxBoxAddFilter()
[all …]
/ohos5.0/drivers/hdf_core/framework/support/platform/include/can/
H A Dcan_mail.h29 void CanRxBoxDestroy(struct CanRxBox *rbox);
31 static inline void CanRxBoxLock(struct CanRxBox *rbox) in CanRxBoxLock() argument
33 (void)OsalSpinLock(&rbox->spin); in CanRxBoxLock()
36 static inline void CanRxBoxUnlock(struct CanRxBox *rbox) in CanRxBoxUnlock() argument
38 (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);