Lines Matching refs:tx_tosnd
146 struct rt_can_sndbxinx_list *tx_tosnd = RT_NULL; in _can_int_tx() local
150 tx_tosnd = rt_list_entry(tx_fifo->freelist.next, struct rt_can_sndbxinx_list, list); in _can_int_tx()
151 RT_ASSERT(tx_tosnd != RT_NULL); in _can_int_tx()
152 rt_list_remove(&tx_tosnd->list); in _can_int_tx()
155 … no = ((rt_ubase_t)tx_tosnd - (rt_ubase_t)tx_fifo->buffer) / sizeof(struct rt_can_sndbxinx_list); in _can_int_tx()
156 tx_tosnd->result = RT_CAN_SND_RESULT_WAIT; in _can_int_tx()
157 rt_completion_init(&tx_tosnd->completion); in _can_int_tx()
162 rt_list_insert_before(&tx_fifo->freelist, &tx_tosnd->list); in _can_int_tx()
169 if (rt_completion_wait(&(tx_tosnd->completion), RT_CANSND_MSG_TIMEOUT) != RT_EOK) in _can_int_tx()
172 rt_list_insert_before(&tx_fifo->freelist, &tx_tosnd->list); in _can_int_tx()
180 result = tx_tosnd->result; in _can_int_tx()
181 if (!rt_list_isempty(&tx_tosnd->list)) in _can_int_tx()
183 rt_list_remove(&tx_tosnd->list); in _can_int_tx()
185 rt_list_insert_before(&tx_fifo->freelist, &tx_tosnd->list); in _can_int_tx()