Lines Matching refs:hw_cfg
523 cs35l41_global_enable(cs35l41->regmap, cs35l41->hw_cfg.bst_type, 1); in cs35l41_main_amp_event()
526 cs35l41_global_enable(cs35l41->regmap, cs35l41->hw_cfg.bst_type, 0); in cs35l41_main_amp_event()
927 struct cs35l41_hw_cfg *hw_cfg = &cs35l41->hw_cfg; in cs35l41_set_pdata() local
930 if (!hw_cfg->valid) in cs35l41_set_pdata()
933 if (hw_cfg->bst_type == CS35L41_EXT_BOOST_NO_VSPK_SWITCH) in cs35l41_set_pdata()
937 ret = cs35l41_init_boost(cs35l41->dev, cs35l41->regmap, hw_cfg); in cs35l41_set_pdata()
942 if (hw_cfg->dout_hiz <= CS35L41_ASP_DOUT_HIZ_MASK && hw_cfg->dout_hiz >= 0) in cs35l41_set_pdata()
944 hw_cfg->dout_hiz); in cs35l41_set_pdata()
963 if (cs35l41->hw_cfg.bst_type == CS35L41_EXT_BOOST) { in cs35l41_component_probe()
1033 static int cs35l41_handle_pdata(struct device *dev, struct cs35l41_hw_cfg *hw_cfg) in cs35l41_handle_pdata() argument
1035 struct cs35l41_gpio_cfg *gpio1 = &hw_cfg->gpio1; in cs35l41_handle_pdata()
1036 struct cs35l41_gpio_cfg *gpio2 = &hw_cfg->gpio2; in cs35l41_handle_pdata()
1042 hw_cfg->bst_type = val; in cs35l41_handle_pdata()
1046 hw_cfg->bst_ipk = val; in cs35l41_handle_pdata()
1048 hw_cfg->bst_ipk = -1; in cs35l41_handle_pdata()
1052 hw_cfg->bst_ind = val; in cs35l41_handle_pdata()
1054 hw_cfg->bst_ind = -1; in cs35l41_handle_pdata()
1058 hw_cfg->bst_cap = val; in cs35l41_handle_pdata()
1060 hw_cfg->bst_cap = -1; in cs35l41_handle_pdata()
1064 hw_cfg->dout_hiz = val; in cs35l41_handle_pdata()
1066 hw_cfg->dout_hiz = -1; in cs35l41_handle_pdata()
1086 hw_cfg->valid = true; in cs35l41_handle_pdata()
1170 int cs35l41_probe(struct cs35l41_private *cs35l41, const struct cs35l41_hw_cfg *hw_cfg) in cs35l41_probe() argument
1176 if (hw_cfg) { in cs35l41_probe()
1177 cs35l41->hw_cfg = *hw_cfg; in cs35l41_probe()
1179 ret = cs35l41_handle_pdata(cs35l41->dev, &cs35l41->hw_cfg); in cs35l41_probe()
1278 irq_pol = cs35l41_gpio_config(cs35l41->regmap, &cs35l41->hw_cfg); in cs35l41_probe()
1334 cs35l41_safe_reset(cs35l41->regmap, cs35l41->hw_cfg.bst_type); in cs35l41_probe()
1350 cs35l41_safe_reset(cs35l41->regmap, cs35l41->hw_cfg.bst_type); in cs35l41_remove()
1368 cs35l41_enter_hibernate(dev, cs35l41->regmap, cs35l41->hw_cfg.bst_type); in cs35l41_runtime_suspend()
1400 cs35l41_init_boost(cs35l41->dev, cs35l41->regmap, &cs35l41->hw_cfg); in cs35l41_runtime_resume()