Lines Matching refs:volt_reg

366 	int volt_reg, dcdc = rdev_get_id(rdev), mV,  in wm8350_dcdc_set_voltage()  local
383 volt_reg = WM8350_DCDC1_CONTROL; in wm8350_dcdc_set_voltage()
386 volt_reg = WM8350_DCDC3_CONTROL; in wm8350_dcdc_set_voltage()
389 volt_reg = WM8350_DCDC4_CONTROL; in wm8350_dcdc_set_voltage()
392 volt_reg = WM8350_DCDC6_CONTROL; in wm8350_dcdc_set_voltage()
403 val = wm8350_reg_read(wm8350, volt_reg) & ~WM8350_DC1_VSEL_MASK; in wm8350_dcdc_set_voltage()
404 wm8350_reg_write(wm8350, volt_reg, val | mV); in wm8350_dcdc_set_voltage()
411 int volt_reg, dcdc = rdev_get_id(rdev); in wm8350_dcdc_get_voltage_sel() local
415 volt_reg = WM8350_DCDC1_CONTROL; in wm8350_dcdc_get_voltage_sel()
418 volt_reg = WM8350_DCDC3_CONTROL; in wm8350_dcdc_get_voltage_sel()
421 volt_reg = WM8350_DCDC4_CONTROL; in wm8350_dcdc_get_voltage_sel()
424 volt_reg = WM8350_DCDC6_CONTROL; in wm8350_dcdc_get_voltage_sel()
433 return wm8350_reg_read(wm8350, volt_reg) & WM8350_DC1_VSEL_MASK; in wm8350_dcdc_get_voltage_sel()
447 int volt_reg, mV = uV / 1000, dcdc = rdev_get_id(rdev); in wm8350_dcdc_set_suspend_voltage() local
463 volt_reg = WM8350_DCDC1_LOW_POWER; in wm8350_dcdc_set_suspend_voltage()
466 volt_reg = WM8350_DCDC3_LOW_POWER; in wm8350_dcdc_set_suspend_voltage()
469 volt_reg = WM8350_DCDC4_LOW_POWER; in wm8350_dcdc_set_suspend_voltage()
472 volt_reg = WM8350_DCDC6_LOW_POWER; in wm8350_dcdc_set_suspend_voltage()
481 val = wm8350_reg_read(wm8350, volt_reg) & ~WM8350_DC1_VSEL_MASK; in wm8350_dcdc_set_suspend_voltage()
482 wm8350_reg_write(wm8350, volt_reg, in wm8350_dcdc_set_suspend_voltage()
663 int volt_reg, mV = uV / 1000, ldo = rdev_get_id(rdev); in wm8350_ldo_set_suspend_voltage() local
676 volt_reg = WM8350_LDO1_LOW_POWER; in wm8350_ldo_set_suspend_voltage()
679 volt_reg = WM8350_LDO2_LOW_POWER; in wm8350_ldo_set_suspend_voltage()
682 volt_reg = WM8350_LDO3_LOW_POWER; in wm8350_ldo_set_suspend_voltage()
685 volt_reg = WM8350_LDO4_LOW_POWER; in wm8350_ldo_set_suspend_voltage()
692 val = wm8350_reg_read(wm8350, volt_reg) & ~WM8350_LDO1_VSEL_MASK; in wm8350_ldo_set_suspend_voltage()
693 wm8350_reg_write(wm8350, volt_reg, in wm8350_ldo_set_suspend_voltage()
701 int volt_reg, ldo = rdev_get_id(rdev); in wm8350_ldo_set_suspend_enable() local
706 volt_reg = WM8350_LDO1_LOW_POWER; in wm8350_ldo_set_suspend_enable()
709 volt_reg = WM8350_LDO2_LOW_POWER; in wm8350_ldo_set_suspend_enable()
712 volt_reg = WM8350_LDO3_LOW_POWER; in wm8350_ldo_set_suspend_enable()
715 volt_reg = WM8350_LDO4_LOW_POWER; in wm8350_ldo_set_suspend_enable()
722 val = wm8350_reg_read(wm8350, volt_reg) & ~WM8350_LDO1_HIB_MODE_MASK; in wm8350_ldo_set_suspend_enable()
723 wm8350_reg_write(wm8350, volt_reg, val); in wm8350_ldo_set_suspend_enable()
730 int volt_reg, ldo = rdev_get_id(rdev); in wm8350_ldo_set_suspend_disable() local
735 volt_reg = WM8350_LDO1_LOW_POWER; in wm8350_ldo_set_suspend_disable()
738 volt_reg = WM8350_LDO2_LOW_POWER; in wm8350_ldo_set_suspend_disable()
741 volt_reg = WM8350_LDO3_LOW_POWER; in wm8350_ldo_set_suspend_disable()
744 volt_reg = WM8350_LDO4_LOW_POWER; in wm8350_ldo_set_suspend_disable()
751 val = wm8350_reg_read(wm8350, volt_reg) & ~WM8350_LDO1_HIB_MODE_MASK; in wm8350_ldo_set_suspend_disable()
752 wm8350_reg_write(wm8350, volt_reg, val | WM8350_LDO1_HIB_MODE_DIS); in wm8350_ldo_set_suspend_disable()
760 int volt_reg, ldo = rdev_get_id(rdev), mV, min_mV = min_uV / 1000, in wm8350_ldo_set_voltage() local
785 volt_reg = WM8350_LDO1_CONTROL; in wm8350_ldo_set_voltage()
788 volt_reg = WM8350_LDO2_CONTROL; in wm8350_ldo_set_voltage()
791 volt_reg = WM8350_LDO3_CONTROL; in wm8350_ldo_set_voltage()
794 volt_reg = WM8350_LDO4_CONTROL; in wm8350_ldo_set_voltage()
803 val = wm8350_reg_read(wm8350, volt_reg) & ~WM8350_LDO1_VSEL_MASK; in wm8350_ldo_set_voltage()
804 wm8350_reg_write(wm8350, volt_reg, val | mV); in wm8350_ldo_set_voltage()
811 int volt_reg, ldo = rdev_get_id(rdev); in wm8350_ldo_get_voltage_sel() local
815 volt_reg = WM8350_LDO1_CONTROL; in wm8350_ldo_get_voltage_sel()
818 volt_reg = WM8350_LDO2_CONTROL; in wm8350_ldo_get_voltage_sel()
821 volt_reg = WM8350_LDO3_CONTROL; in wm8350_ldo_get_voltage_sel()
824 volt_reg = WM8350_LDO4_CONTROL; in wm8350_ldo_get_voltage_sel()
831 return wm8350_reg_read(wm8350, volt_reg) & WM8350_LDO1_VSEL_MASK; in wm8350_ldo_get_voltage_sel()