Lines Matching refs:wm8400
23 struct wm8400 *wm8400 = rdev_get_drvdata(dev); in wm8400_ldo_is_enabled() local
26 val = wm8400_reg_read(wm8400, WM8400_LDO1_CONTROL + rdev_get_id(dev)); in wm8400_ldo_is_enabled()
32 struct wm8400 *wm8400 = rdev_get_drvdata(dev); in wm8400_ldo_enable() local
34 return wm8400_set_bits(wm8400, WM8400_LDO1_CONTROL + rdev_get_id(dev), in wm8400_ldo_enable()
40 struct wm8400 *wm8400 = rdev_get_drvdata(dev); in wm8400_ldo_disable() local
42 return wm8400_set_bits(wm8400, WM8400_LDO1_CONTROL + rdev_get_id(dev), in wm8400_ldo_disable()
60 struct wm8400 *wm8400 = rdev_get_drvdata(dev); in wm8400_ldo_get_voltage() local
63 val = wm8400_reg_read(wm8400, WM8400_LDO1_CONTROL + rdev_get_id(dev)); in wm8400_ldo_get_voltage()
72 struct wm8400 *wm8400 = rdev_get_drvdata(dev); in wm8400_ldo_set_voltage() local
98 return wm8400_set_bits(wm8400, WM8400_LDO1_CONTROL + rdev_get_id(dev), in wm8400_ldo_set_voltage()
113 struct wm8400 *wm8400 = rdev_get_drvdata(dev); in wm8400_dcdc_is_enabled() local
117 val = wm8400_reg_read(wm8400, WM8400_DCDC1_CONTROL_1 + offset); in wm8400_dcdc_is_enabled()
123 struct wm8400 *wm8400 = rdev_get_drvdata(dev); in wm8400_dcdc_enable() local
126 return wm8400_set_bits(wm8400, WM8400_DCDC1_CONTROL_1 + offset, in wm8400_dcdc_enable()
132 struct wm8400 *wm8400 = rdev_get_drvdata(dev); in wm8400_dcdc_disable() local
135 return wm8400_set_bits(wm8400, WM8400_DCDC1_CONTROL_1 + offset, in wm8400_dcdc_disable()
150 struct wm8400 *wm8400 = rdev_get_drvdata(dev); in wm8400_dcdc_get_voltage() local
154 val = wm8400_reg_read(wm8400, WM8400_DCDC1_CONTROL_1 + offset); in wm8400_dcdc_get_voltage()
163 struct wm8400 *wm8400 = rdev_get_drvdata(dev); in wm8400_dcdc_set_voltage() local
178 return wm8400_set_bits(wm8400, WM8400_DCDC1_CONTROL_1 + offset, in wm8400_dcdc_set_voltage()
184 struct wm8400 *wm8400 = rdev_get_drvdata(dev); in wm8400_dcdc_get_mode() local
189 ret = wm8400_block_read(wm8400, WM8400_DCDC1_CONTROL_1 + offset, 2, in wm8400_dcdc_get_mode()
211 struct wm8400 *wm8400 = rdev_get_drvdata(dev); in wm8400_dcdc_set_mode() local
218 ret = wm8400_set_bits(wm8400, WM8400_DCDC1_CONTROL_2 + offset, in wm8400_dcdc_set_mode()
223 return wm8400_set_bits(wm8400, WM8400_DCDC1_CONTROL_1 + offset, in wm8400_dcdc_set_mode()
229 ret = wm8400_set_bits(wm8400, WM8400_DCDC1_CONTROL_2 + offset, in wm8400_dcdc_set_mode()
234 return wm8400_set_bits(wm8400, WM8400_DCDC1_CONTROL_1 + offset, in wm8400_dcdc_set_mode()
240 ret = wm8400_set_bits(wm8400, WM8400_DCDC1_CONTROL_1 + offset, in wm8400_dcdc_set_mode()
244 return wm8400_set_bits(wm8400, WM8400_DCDC1_CONTROL_1 + offset, in wm8400_dcdc_set_mode()
324 struct wm8400 *wm8400 = container_of(pdev, struct wm8400, regulators[pdev->id]); in wm8400_regulator_probe() local
328 pdev->dev.platform_data, wm8400); in wm8400_regulator_probe()
370 struct wm8400 *wm8400 = dev_get_drvdata(dev); in wm8400_register_regulator() local
372 if (wm8400->regulators[reg].name) in wm8400_register_regulator()
375 initdata->driver_data = wm8400; in wm8400_register_regulator()
377 wm8400->regulators[reg].name = "wm8400-regulator"; in wm8400_register_regulator()
378 wm8400->regulators[reg].id = reg; in wm8400_register_regulator()
379 wm8400->regulators[reg].dev.parent = dev; in wm8400_register_regulator()
380 wm8400->regulators[reg].dev.platform_data = initdata; in wm8400_register_regulator()
382 return platform_device_register(&wm8400->regulators[reg]); in wm8400_register_regulator()