Home
last modified time | relevance | path

Searched refs:requested_mode (Results 1 – 1 of 1) sorted by relevance

/Zephyr-latest/drivers/can/
Dcan_mcp251xfd.c309 static int mcp251xfd_set_mode_internal(const struct device *dev, uint8_t requested_mode) in mcp251xfd_set_mode_internal() argument
327 if (opmod == requested_mode) { in mcp251xfd_set_mode_internal()
333 if (requested_mode == MCP251XFD_REG_CON_MODE_CAN2_0 || in mcp251xfd_set_mode_internal()
334 requested_mode == MCP251XFD_REG_CON_MODE_EXT_LOOPBACK || in mcp251xfd_set_mode_internal()
335 requested_mode == MCP251XFD_REG_CON_MODE_INT_LOOPBACK) { in mcp251xfd_set_mode_internal()
337 } else if (requested_mode == MCP251XFD_REG_CON_MODE_MIXED) { in mcp251xfd_set_mode_internal()
348 reg_con |= FIELD_PREP(MCP251XFD_REG_CON_REQOP_MASK, requested_mode); in mcp251xfd_set_mode_internal()
359 dev, MCP251XFD_REG_CON, FIELD_PREP(MCP251XFD_REG_CON_OPMOD_MASK, requested_mode), in mcp251xfd_set_mode_internal()