Lines Matching refs:tx_idx
289 static void mcp2515_tx_done(const struct device *dev, uint8_t tx_idx, int status) in mcp2515_tx_done() argument
292 can_tx_callback_t callback = dev_data->tx_cb[tx_idx].cb; in mcp2515_tx_done()
295 callback(dev, status, dev_data->tx_cb[tx_idx].cb_arg); in mcp2515_tx_done()
296 dev_data->tx_cb[tx_idx].cb = NULL; in mcp2515_tx_done()
299 dev_data->tx_busy_map &= ~BIT(tx_idx); in mcp2515_tx_done()
534 uint8_t tx_idx = 0U; in mcp2515_send() local
562 for (; tx_idx < MCP2515_TX_CNT; tx_idx++) { in mcp2515_send()
563 if ((BIT(tx_idx) & dev_data->tx_busy_map) == 0) { in mcp2515_send()
564 dev_data->tx_busy_map |= BIT(tx_idx); in mcp2515_send()
571 if (tx_idx == MCP2515_TX_CNT) { in mcp2515_send()
576 dev_data->tx_cb[tx_idx].cb = callback; in mcp2515_send()
577 dev_data->tx_cb[tx_idx].cb_arg = user_data; in mcp2515_send()
582 abc = 2 * tx_idx; in mcp2515_send()
590 nnn = BIT(tx_idx); in mcp2515_send()