Lines Matching refs:wm831x
37 struct wm831x *wm831x; member
69 struct wm831x *wm831x = ldo->wm831x; in wm831x_gp_ldo_set_suspend_voltage() local
76 return wm831x_set_bits(wm831x, reg, WM831X_LDO1_ON_VSEL_MASK, sel); in wm831x_gp_ldo_set_suspend_voltage()
82 struct wm831x *wm831x = ldo->wm831x; in wm831x_gp_ldo_get_mode() local
87 ret = wm831x_reg_read(wm831x, on_reg); in wm831x_gp_ldo_get_mode()
94 ret = wm831x_reg_read(wm831x, ctrl_reg); in wm831x_gp_ldo_get_mode()
108 struct wm831x *wm831x = ldo->wm831x; in wm831x_gp_ldo_set_mode() local
116 ret = wm831x_set_bits(wm831x, on_reg, in wm831x_gp_ldo_set_mode()
123 ret = wm831x_set_bits(wm831x, ctrl_reg, in wm831x_gp_ldo_set_mode()
128 ret = wm831x_set_bits(wm831x, on_reg, in wm831x_gp_ldo_set_mode()
136 ret = wm831x_set_bits(wm831x, ctrl_reg, in wm831x_gp_ldo_set_mode()
142 ret = wm831x_set_bits(wm831x, on_reg, in wm831x_gp_ldo_set_mode()
159 struct wm831x *wm831x = ldo->wm831x; in wm831x_gp_ldo_get_status() local
164 ret = wm831x_reg_read(wm831x, WM831X_LDO_STATUS); in wm831x_gp_ldo_get_status()
171 ret = wm831x_reg_read(wm831x, WM831X_LDO_UV_STATUS); in wm831x_gp_ldo_get_status()
216 struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); in wm831x_gp_ldo_probe() local
217 struct wm831x_pdata *pdata = dev_get_platdata(wm831x->dev); in wm831x_gp_ldo_probe()
236 ldo->wm831x = wm831x; in wm831x_gp_ldo_probe()
271 config.regmap = wm831x->regmap; in wm831x_gp_ldo_probe()
277 dev_err(wm831x->dev, "Failed to register LDO%d: %d\n", in wm831x_gp_ldo_probe()
282 irq = wm831x_irq(wm831x, platform_get_irq_byname(pdev, "UV")); in wm831x_gp_ldo_probe()
322 struct wm831x *wm831x = ldo->wm831x; in wm831x_aldo_set_suspend_voltage() local
329 return wm831x_set_bits(wm831x, reg, WM831X_LDO7_ON_VSEL_MASK, sel); in wm831x_aldo_set_suspend_voltage()
335 struct wm831x *wm831x = ldo->wm831x; in wm831x_aldo_get_mode() local
339 ret = wm831x_reg_read(wm831x, on_reg); in wm831x_aldo_get_mode()
353 struct wm831x *wm831x = ldo->wm831x; in wm831x_aldo_set_mode() local
360 ret = wm831x_set_bits(wm831x, on_reg, WM831X_LDO7_ON_MODE, 0); in wm831x_aldo_set_mode()
366 ret = wm831x_set_bits(wm831x, on_reg, WM831X_LDO7_ON_MODE, in wm831x_aldo_set_mode()
382 struct wm831x *wm831x = ldo->wm831x; in wm831x_aldo_get_status() local
387 ret = wm831x_reg_read(wm831x, WM831X_LDO_STATUS); in wm831x_aldo_get_status()
394 ret = wm831x_reg_read(wm831x, WM831X_LDO_UV_STATUS); in wm831x_aldo_get_status()
426 struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); in wm831x_aldo_probe() local
427 struct wm831x_pdata *pdata = dev_get_platdata(wm831x->dev); in wm831x_aldo_probe()
446 ldo->wm831x = wm831x; in wm831x_aldo_probe()
481 config.regmap = wm831x->regmap; in wm831x_aldo_probe()
487 dev_err(wm831x->dev, "Failed to register LDO%d: %d\n", in wm831x_aldo_probe()
492 irq = wm831x_irq(wm831x, platform_get_irq_byname(pdev, "UV")); in wm831x_aldo_probe()
528 struct wm831x *wm831x = ldo->wm831x; in wm831x_alive_ldo_set_suspend_voltage() local
535 return wm831x_set_bits(wm831x, reg, WM831X_LDO11_ON_VSEL_MASK, sel); in wm831x_alive_ldo_set_suspend_voltage()
541 struct wm831x *wm831x = ldo->wm831x; in wm831x_alive_ldo_get_status() local
546 ret = wm831x_reg_read(wm831x, WM831X_LDO_STATUS); in wm831x_alive_ldo_get_status()
570 struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); in wm831x_alive_ldo_probe() local
571 struct wm831x_pdata *pdata = dev_get_platdata(wm831x->dev); in wm831x_alive_ldo_probe()
591 ldo->wm831x = wm831x; in wm831x_alive_ldo_probe()
625 config.regmap = wm831x->regmap; in wm831x_alive_ldo_probe()
631 dev_err(wm831x->dev, "Failed to register LDO%d: %d\n", in wm831x_alive_ldo_probe()