Searched refs:mailbox_idx (Results 1 – 2 of 2) sorted by relevance
22 static void mcp251xfd_canframe_to_txobj(const struct can_frame *src, int mailbox_idx, in mcp251xfd_canframe_to_txobj() argument46 dst->flags |= FIELD_PREP(MCP251XFD_OBJ_FLAGS_SEQ_MASK, mailbox_idx); in mcp251xfd_canframe_to_txobj()159 static int mcp251xfd_fifo_write(const struct device *dev, int mailbox_idx, in mcp251xfd_fifo_write() argument184 mcp251xfd_canframe_to_txobj(msg, mailbox_idx, txobj); in mcp251xfd_fifo_write()487 uint8_t mailbox_idx; in mcp251xfd_send() local518 for (mailbox_idx = 0; mailbox_idx < MCP251XFD_TX_QUEUE_ITEMS; mailbox_idx++) { in mcp251xfd_send()519 if ((BIT(mailbox_idx) & dev_data->mailbox_usage) == 0) { in mcp251xfd_send()520 dev_data->mailbox_usage |= BIT(mailbox_idx); in mcp251xfd_send()525 if (mailbox_idx >= MCP251XFD_TX_QUEUE_ITEMS) { in mcp251xfd_send()531 dev_data->mailbox[mailbox_idx].cb = callback; in mcp251xfd_send()[all …]
148 uint8_t mailbox_idx; in can_xmc4xxx_send() local181 for (mailbox_idx = 0; mailbox_idx < CONFIG_CAN_XMC4XXX_MAX_TX_QUEUE; mailbox_idx++) { in can_xmc4xxx_send()182 if (callbacks[mailbox_idx].function == NULL) { in can_xmc4xxx_send()187 __ASSERT_NO_MSG(mailbox_idx < CONFIG_CAN_XMC4XXX_MAX_TX_QUEUE); in can_xmc4xxx_send()192 callbacks[mailbox_idx].function = callback; in can_xmc4xxx_send()193 callbacks[mailbox_idx].user_data = callback_arg; in can_xmc4xxx_send()196 mo = dev_data->tx_mo[mailbox_idx]; in can_xmc4xxx_send()