Lines Matching refs:osc
125 mcp251xfd_get_osc_str(const u32 osc, const u32 osc_reference) in mcp251xfd_get_osc_str() argument
127 switch (~osc & osc_reference & in mcp251xfd_get_osc_str()
230 u32 con = 0, con_reqop, osc = 0; in __mcp251xfd_chip_set_mode() local
261 regmap_read(priv->map_reg, MCP251XFD_REG_OSC, &osc); in __mcp251xfd_chip_set_mode()
266 con, osc); in __mcp251xfd_chip_set_mode()
276 con, osc); in __mcp251xfd_chip_set_mode()
299 u32 osc; in mcp251xfd_chip_wait_for_osc_ready() local
302 err = regmap_read_poll_timeout(priv->map_reg, MCP251XFD_REG_OSC, osc, in mcp251xfd_chip_wait_for_osc_ready()
303 !mcp251xfd_reg_invalid(osc) && in mcp251xfd_chip_wait_for_osc_ready()
304 (osc & osc_mask) == osc_reference, in mcp251xfd_chip_wait_for_osc_ready()
310 if (mcp251xfd_reg_invalid(osc)) { in mcp251xfd_chip_wait_for_osc_ready()
313 osc); in mcp251xfd_chip_wait_for_osc_ready()
319 mcp251xfd_get_osc_str(osc, osc_reference), in mcp251xfd_chip_wait_for_osc_ready()
320 osc, osc_reference, osc_mask); in mcp251xfd_chip_wait_for_osc_ready()
327 u32 osc, osc_reference, osc_mask; in mcp251xfd_chip_wake() local
336 osc = FIELD_PREP(MCP251XFD_REG_OSC_CLKODIV_MASK, in mcp251xfd_chip_wake()
350 err = regmap_write(priv->map_reg, MCP251XFD_REG_OSC, osc); in mcp251xfd_chip_wake()
364 u32 osc; in mcp251xfd_chip_sleep() local
368 osc = FIELD_PREP(MCP251XFD_REG_OSC_CLKODIV_MASK, in mcp251xfd_chip_sleep()
370 err = regmap_write(priv->map_reg, MCP251XFD_REG_OSC, osc); in mcp251xfd_chip_sleep()
461 u32 osc, osc_reference, osc_mask; in mcp251xfd_chip_clock_init() local
468 osc = MCP251XFD_REG_OSC_LPMEN | in mcp251xfd_chip_clock_init()
475 osc |= MCP251XFD_REG_OSC_PLLEN; in mcp251xfd_chip_clock_init()
479 err = regmap_write(priv->map_reg, MCP251XFD_REG_OSC, osc); in mcp251xfd_chip_clock_init()
1692 u32 osc; in mcp251xfd_register_chip_detect() local
1704 err = regmap_read(priv->map_reg, MCP251XFD_REG_OSC, &osc); in mcp251xfd_register_chip_detect()
1708 if (osc & MCP251XFD_REG_OSC_LPMEN) { in mcp251xfd_register_chip_detect()