Lines Matching refs:msgs

46 …_inline rt_ssize_t _can_int_rx(struct rt_can_device *can, struct rt_can_msg *data, rt_ssize_t msgs)  in _can_int_rx()  argument
51 size = msgs; in _can_int_rx()
57 while (msgs / sizeof(struct rt_can_msg) > 0) in _can_int_rx()
75 if (can->hdr[hdr].msgs) in _can_int_rx()
77 can->hdr[hdr].msgs--; in _can_int_rx()
90 if (listmsg->owner != RT_NULL && listmsg->owner->msgs) in _can_int_rx()
92 listmsg->owner->msgs--; in _can_int_rx()
124 msgs -= sizeof(struct rt_can_msg); in _can_int_rx()
127 return (size - msgs); in _can_int_rx()
130 rt_inline int _can_int_tx(struct rt_can_device *can, const struct rt_can_msg *data, int msgs) in _can_int_tx() argument
137 size = msgs; in _can_int_tx()
141 while (msgs) in _can_int_tx()
196 msgs -= sizeof(struct rt_can_msg); in _can_int_tx()
197 if (!msgs) break; in _can_int_tx()
209 return (size - msgs); in _can_int_tx()
212 rt_inline int _can_int_tx_priv(struct rt_can_device *can, const struct rt_can_msg *data, int msgs) in _can_int_tx_priv() argument
221 size = msgs; in _can_int_tx_priv()
225 while (msgs) in _can_int_tx_priv()
262 msgs -= sizeof(struct rt_can_msg); in _can_int_tx_priv()
263 if (!msgs) break; in _can_int_tx_priv()
274 return (size - msgs); in _can_int_tx_priv()
614 can->hdr[pitem->hdr_bank].msgs = 0; in rt_can_control()
638 can->hdr[pitem->hdr_bank].msgs = 0; in rt_can_control()
815 if (listmsg->owner != RT_NULL && listmsg->owner->msgs) in rt_hw_can_isr()
817 listmsg->owner->msgs--; in rt_hw_can_isr()
831 if (listmsg->owner != RT_NULL && listmsg->owner->msgs) in rt_hw_can_isr()
833 listmsg->owner->msgs--; in rt_hw_can_isr()
855 can->hdr[hdr].msgs++; in rt_hw_can_isr()
871 rx_length = can->hdr[hdr].msgs * sizeof(struct rt_can_msg); in rt_hw_can_isr()