Lines Matching refs:listmsg

63         struct rt_can_msg_list *listmsg = RT_NULL;  in _can_int_rx()  local
72 listmsg = rt_list_entry(can->hdr[hdr].list.next, struct rt_can_msg_list, hdrlist); in _can_int_rx()
73 rt_list_remove(&listmsg->list); in _can_int_rx()
74 rt_list_remove(&listmsg->hdrlist); in _can_int_rx()
79 listmsg->owner = RT_NULL; in _can_int_rx()
86 listmsg = rt_list_entry(rx_fifo->uselist.next, struct rt_can_msg_list, list); in _can_int_rx()
87 rt_list_remove(&listmsg->list); in _can_int_rx()
89 rt_list_remove(&listmsg->hdrlist); 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()
94 listmsg->owner = RT_NULL; in _can_int_rx()
107 if (listmsg != RT_NULL) in _can_int_rx()
109 rt_memcpy(data, &listmsg->data, sizeof(struct rt_can_msg)); in _can_int_rx()
112 rt_list_insert_before(&rx_fifo->freelist, &listmsg->list); in _can_int_rx()
117 listmsg = RT_NULL; in _can_int_rx()
788 struct rt_can_msg_list *listmsg = RT_NULL; in rt_hw_can_isr() local
811 listmsg = rt_list_entry(rx_fifo->freelist.next, struct rt_can_msg_list, list); in rt_hw_can_isr()
812 rt_list_remove(&listmsg->list); in rt_hw_can_isr()
814 rt_list_remove(&listmsg->hdrlist); in rt_hw_can_isr()
815 if (listmsg->owner != RT_NULL && listmsg->owner->msgs) in rt_hw_can_isr()
817 listmsg->owner->msgs--; in rt_hw_can_isr()
819 listmsg->owner = RT_NULL; in rt_hw_can_isr()
826 listmsg = rt_list_entry(rx_fifo->uselist.next, struct rt_can_msg_list, list); in rt_hw_can_isr()
828 rt_list_remove(&listmsg->list); in rt_hw_can_isr()
830 rt_list_remove(&listmsg->hdrlist); 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()
835 listmsg->owner = RT_NULL; in rt_hw_can_isr()
841 if (listmsg != RT_NULL) in rt_hw_can_isr()
843 rt_memcpy(&listmsg->data, &tmpmsg, sizeof(struct rt_can_msg)); in rt_hw_can_isr()
845 rt_list_insert_before(&rx_fifo->uselist, &listmsg->list); in rt_hw_can_isr()
853 rt_list_insert_before(&can->hdr[hdr].list, &listmsg->hdrlist); in rt_hw_can_isr()
854 listmsg->owner = &can->hdr[hdr]; in rt_hw_can_isr()