Lines Matching refs:osc
524 u32 osc, osc_reference, osc_mask; in mcp251xfd_chip_clock_enable() local
530 osc = FIELD_PREP(MCP251XFD_REG_OSC_CLKODIV_MASK, in mcp251xfd_chip_clock_enable()
541 err = regmap_write(priv->map_reg, MCP251XFD_REG_OSC, osc); in mcp251xfd_chip_clock_enable()
546 err = regmap_read_poll_timeout(priv->map_reg, MCP251XFD_REG_OSC, osc, in mcp251xfd_chip_clock_enable()
547 (osc & osc_mask) == osc_reference, in mcp251xfd_chip_clock_enable()
550 if (mcp251xfd_osc_invalid(osc)) { in mcp251xfd_chip_clock_enable()
553 mcp251xfd_get_model_str(priv), osc); in mcp251xfd_chip_clock_enable()
558 osc, osc_reference); in mcp251xfd_chip_clock_enable()
589 u32 osc, osc_reference; in mcp251xfd_chip_softreset_check() local
609 err = regmap_read(priv->map_reg, MCP251XFD_REG_OSC, &osc); in mcp251xfd_chip_softreset_check()
613 if (osc != osc_reference) { in mcp251xfd_chip_softreset_check()
616 osc, osc_reference); in mcp251xfd_chip_softreset_check()
655 u32 osc; in mcp251xfd_chip_clock_init() local
662 osc = MCP251XFD_REG_OSC_LPMEN | in mcp251xfd_chip_clock_init()
665 err = regmap_write(priv->map_reg, MCP251XFD_REG_OSC, osc); in mcp251xfd_chip_clock_init()
2476 u32 osc; in mcp251xfd_register_chip_detect() local
2488 err = regmap_read(priv->map_reg, MCP251XFD_REG_OSC, &osc); in mcp251xfd_register_chip_detect()
2492 if (osc & MCP251XFD_REG_OSC_LPMEN) in mcp251xfd_register_chip_detect()