/linux-4.19.296/drivers/regulator/ |
D | max8660.c | 115 u8 mask = (rdev_get_id(rdev) == MAX8660_V3) ? 1 : 4; in max8660_dcdc_is_enabled() 123 u8 bit = (rdev_get_id(rdev) == MAX8660_V3) ? 1 : 4; in max8660_dcdc_enable() 131 u8 mask = (rdev_get_id(rdev) == MAX8660_V3) ? ~1 : ~4; in max8660_dcdc_disable() 139 u8 reg = (rdev_get_id(rdev) == MAX8660_V3) ? MAX8660_ADTV2 : MAX8660_SDTV2; in max8660_dcdc_get_voltage_sel() 152 reg = (rdev_get_id(rdev) == MAX8660_V3) ? MAX8660_ADTV2 : MAX8660_SDTV2; in max8660_dcdc_set_voltage_sel() 158 bits = (rdev_get_id(rdev) == MAX8660_V3) ? 0x03 : 0x30; in max8660_dcdc_set_voltage_sel() 213 u8 mask = (rdev_get_id(rdev) == MAX8660_V6) ? 2 : 4; in max8660_ldo67_is_enabled() 221 u8 bit = (rdev_get_id(rdev) == MAX8660_V6) ? 2 : 4; in max8660_ldo67_enable() 229 u8 mask = (rdev_get_id(rdev) == MAX8660_V6) ? ~2 : ~4; in max8660_ldo67_disable() 237 u8 shift = (rdev_get_id(rdev) == MAX8660_V6) ? 0 : 4; in max8660_ldo67_get_voltage_sel() [all …]
|
D | lp3971.c | 113 int ldo = rdev_get_id(dev) - LP3971_LDO1; in lp3971_ldo_is_enabled() 124 int ldo = rdev_get_id(dev) - LP3971_LDO1; in lp3971_ldo_enable() 133 int ldo = rdev_get_id(dev) - LP3971_LDO1; in lp3971_ldo_disable() 142 int ldo = rdev_get_id(dev) - LP3971_LDO1; in lp3971_ldo_get_voltage_sel() 155 int ldo = rdev_get_id(dev) - LP3971_LDO1; in lp3971_ldo_set_voltage_sel() 175 int buck = rdev_get_id(dev) - LP3971_DCDC1; in lp3971_dcdc_is_enabled() 186 int buck = rdev_get_id(dev) - LP3971_DCDC1; in lp3971_dcdc_enable() 195 int buck = rdev_get_id(dev) - LP3971_DCDC1; in lp3971_dcdc_disable() 204 int buck = rdev_get_id(dev) - LP3971_DCDC1; in lp3971_dcdc_get_voltage_sel() 217 int buck = rdev_get_id(dev) - LP3971_DCDC1; in lp3971_dcdc_set_voltage_sel()
|
D | mc13xxx-regulator-core.c | 31 int id = rdev_get_id(rdev); in mc13xxx_regulator_enable() 44 int id = rdev_get_id(rdev); in mc13xxx_regulator_disable() 56 int ret, id = rdev_get_id(rdev); in mc13xxx_regulator_is_enabled() 71 int id = rdev_get_id(rdev); in mc13xxx_regulator_set_voltage_sel() 82 int ret, id = rdev_get_id(rdev); in mc13xxx_regulator_get_voltage() 115 int id = rdev_get_id(rdev); in mc13xxx_fixed_regulator_set_voltage()
|
D | lp3972.c | 228 int ldo = rdev_get_id(dev) - LP3972_LDO1; in lp3972_ldo_is_enabled() 239 int ldo = rdev_get_id(dev) - LP3972_LDO1; in lp3972_ldo_enable() 249 int ldo = rdev_get_id(dev) - LP3972_LDO1; in lp3972_ldo_disable() 259 int ldo = rdev_get_id(dev) - LP3972_LDO1; in lp3972_ldo_get_voltage_sel() 273 int ldo = rdev_get_id(dev) - LP3972_LDO1; in lp3972_ldo_set_voltage_sel() 321 int buck = rdev_get_id(dev) - LP3972_DCDC1; in lp3972_dcdc_is_enabled() 332 int buck = rdev_get_id(dev) - LP3972_DCDC1; in lp3972_dcdc_enable() 344 int buck = rdev_get_id(dev) - LP3972_DCDC1; in lp3972_dcdc_disable() 356 int buck = rdev_get_id(dev) - LP3972_DCDC1; in lp3972_dcdc_get_voltage_sel() 369 int buck = rdev_get_id(dev) - LP3972_DCDC1; in lp3972_dcdc_set_voltage_sel()
|
D | wm8350-regulator.c | 115 int isink = rdev_get_id(rdev); in wm8350_isink_set_current() 146 int isink = rdev_get_id(rdev); in wm8350_isink_get_current() 169 int isink = rdev_get_id(rdev); in wm8350_isink_enable() 213 int isink = rdev_get_id(rdev); in wm8350_isink_disable() 253 int isink = rdev_get_id(rdev); in wm8350_isink_is_enabled() 269 int isink = rdev_get_id(rdev); in wm8350_isink_enable_time() 338 int sel, volt_reg, dcdc = rdev_get_id(rdev); in wm8350_dcdc_set_suspend_voltage() 375 int dcdc = rdev_get_id(rdev); in wm8350_dcdc_set_suspend_enable() 415 int dcdc = rdev_get_id(rdev); in wm8350_dcdc_set_suspend_disable() 455 int dcdc = rdev_get_id(rdev); in wm8350_dcdc25_set_suspend_enable() [all …]
|
D | pcap-regulator.c | 152 struct pcap_regulator *vreg = &vreg_table[rdev_get_id(rdev)]; in pcap_regulator_set_voltage_sel() 166 struct pcap_regulator *vreg = &vreg_table[rdev_get_id(rdev)]; in pcap_regulator_get_voltage_sel() 180 struct pcap_regulator *vreg = &vreg_table[rdev_get_id(rdev)]; in pcap_regulator_enable() 191 struct pcap_regulator *vreg = &vreg_table[rdev_get_id(rdev)]; in pcap_regulator_disable() 202 struct pcap_regulator *vreg = &vreg_table[rdev_get_id(rdev)]; in pcap_regulator_is_enabled()
|
D | tps65217-regulator.c | 76 int rid = rdev_get_id(dev); in tps65217_pmic_enable() 90 int rid = rdev_get_id(dev); in tps65217_pmic_disable() 105 unsigned int rid = rdev_get_id(dev); in tps65217_pmic_set_voltage_sel() 126 unsigned int rid = rdev_get_id(dev); in tps65217_pmic_set_suspend_enable() 139 unsigned int rid = rdev_get_id(dev); in tps65217_pmic_set_suspend_disable()
|
D | da9052-regulator.c | 94 int offset = rdev_get_id(rdev); in da9052_dcdc_get_current_limit() 122 int offset = rdev_get_id(rdev); in da9052_dcdc_set_current_limit() 163 int id = rdev_get_id(rdev); in da9052_list_voltage() 187 int id = rdev_get_id(rdev); in da9052_map_voltage() 218 int id = rdev_get_id(rdev); in da9052_regulator_set_voltage_sel() 249 int id = rdev_get_id(rdev); in da9052_regulator_set_voltage_time_sel()
|
D | tps65218-regulator.c | 76 unsigned int rid = rdev_get_id(dev); in tps65218_pmic_set_voltage_sel() 99 int rid = rdev_get_id(dev); in tps65218_pmic_enable() 113 int rid = rdev_get_id(dev); in tps65218_pmic_disable() 126 unsigned int rid = rdev_get_id(dev); in tps65218_pmic_set_suspend_enable() 139 unsigned int rid = rdev_get_id(dev); in tps65218_pmic_set_suspend_disable()
|
D | wm831x-dcdc.c | 149 if (ret & (1 << rdev_get_id(rdev))) { in wm831x_dcdc_get_status() 151 rdev_get_id(rdev) + 1); in wm831x_dcdc_get_status() 156 if (rdev_get_id(rdev) < 2) { in wm831x_dcdc_get_status() 157 if (ret & (WM831X_DC1_OV_STS << rdev_get_id(rdev))) { in wm831x_dcdc_get_status() 159 rdev_get_id(rdev) + 1); in wm831x_dcdc_get_status() 163 if (ret & (WM831X_DC1_HC_STS << rdev_get_id(rdev))) { in wm831x_dcdc_get_status() 165 rdev_get_id(rdev) + 1); in wm831x_dcdc_get_status() 174 if (!(ret & (1 << rdev_get_id(rdev)))) in wm831x_dcdc_get_status() 712 if (ret & (1 << rdev_get_id(rdev))) { in wm831x_boostp_get_status() 714 rdev_get_id(rdev) + 1); in wm831x_boostp_get_status() [all …]
|
D | mc13892-regulator.c | 336 int id = rdev_get_id(rdev); in mc13892_gpo_regulator_enable() 355 int id = rdev_get_id(rdev); in mc13892_gpo_regulator_disable() 371 int ret, id = rdev_get_id(rdev); in mc13892_gpo_regulator_is_enabled() 401 int ret, id = rdev_get_id(rdev); in mc13892_sw_regulator_get_voltage_sel() 441 int volt, mask, id = rdev_get_id(rdev); in mc13892_sw_regulator_set_voltage_sel() 493 int ret, id = rdev_get_id(rdev); in mc13892_vcam_set_mode() 509 int ret, id = rdev_get_id(rdev); in mc13892_vcam_get_mode()
|
D | max8997-regulator.c | 128 int rid = rdev_get_id(rdev); in max8997_list_voltage_charger_cv() 151 int rid = rdev_get_id(rdev); in max8997_list_voltage() 171 int rid = rdev_get_id(rdev); in max8997_get_enable_register() 290 int rid = rdev_get_id(rdev); in max8997_get_voltage_register() 401 int rid = rdev_get_id(rdev); in max8997_set_voltage_charger_cv() 454 int rid = rdev_get_id(rdev); in max8997_set_voltage_ldobuck() 495 int rid = rdev_get_id(rdev); in max8997_set_voltage_buck_time_sel() 542 int rid = rdev_get_id(rdev); in max8997_assess_side_effect() 619 int rid = rdev_get_id(rdev); in max8997_set_voltage_buck() 695 int rid = rdev_get_id(rdev); in max8997_set_voltage_safeout_sel() [all …]
|
D | tps6524x-regulator.c | 463 info = &supply_info[rdev_get_id(rdev)]; in set_voltage_sel() 478 info = &supply_info[rdev_get_id(rdev)]; in get_voltage_sel() 500 info = &supply_info[rdev_get_id(rdev)]; in set_current_limit() 521 info = &supply_info[rdev_get_id(rdev)]; in get_current_limit() 541 info = &supply_info[rdev_get_id(rdev)]; in enable_supply() 552 info = &supply_info[rdev_get_id(rdev)]; in disable_supply() 563 info = &supply_info[rdev_get_id(rdev)]; in is_supply_enabled()
|
D | max77802-regulator.c | 100 unsigned int id = rdev_get_id(rdev); in max77802_set_suspend_disable() 118 unsigned int id = rdev_get_id(rdev); in max77802_set_mode() 146 unsigned int id = rdev_get_id(rdev); in max77802_get_mode() 173 unsigned int id = rdev_get_id(rdev); in max77802_set_suspend_mode() 225 unsigned int id = rdev_get_id(rdev); in max77802_enable() 259 int id = rdev_get_id(rdev); in max77802_set_ramp_delay_2bit()
|
D | lp873x-regulator.c | 76 int id = rdev_get_id(rdev); in lp873x_buck_set_ramp_delay() 114 int id = rdev_get_id(rdev); in lp873x_buck_set_current_limit() 132 int id = rdev_get_id(rdev); in lp873x_buck_get_current_limit()
|
D | lp87565-regulator.c | 66 int id = rdev_get_id(rdev); in lp87565_buck_set_ramp_delay() 108 int id = rdev_get_id(rdev); in lp87565_buck_set_current_limit() 126 int id = rdev_get_id(rdev); in lp87565_buck_get_current_limit()
|
D | tps6507x-regulator.c | 217 int data, rid = rdev_get_id(dev); in tps6507x_pmic_is_enabled() 235 int rid = rdev_get_id(dev); in tps6507x_pmic_enable() 248 int rid = rdev_get_id(dev); in tps6507x_pmic_disable() 262 int data, rid = rdev_get_id(dev); in tps6507x_pmic_get_voltage_sel() 308 int data, rid = rdev_get_id(dev); in tps6507x_pmic_set_voltage_sel()
|
D | tps65132-regulator.c | 67 int id = rdev_get_id(rdev); in tps65132_regulator_enable() 93 int id = rdev_get_id(rdev); in tps65132_regulator_disable() 114 int id = rdev_get_id(rdev); in tps65132_regulator_is_enabled()
|
D | tps65910-regulator.c | 399 int reg, value, id = rdev_get_id(dev); in tps65910_set_mode() 423 int ret, reg, value, id = rdev_get_id(dev); in tps65910_get_mode() 444 int ret, id = rdev_get_id(dev); in tps65910_get_voltage_dcdc_sel() 522 int ret, reg, value, id = rdev_get_id(dev); in tps65910_get_voltage_sel() 564 int ret, id = rdev_get_id(dev); in tps65911_get_voltage_sel() 603 int id = rdev_get_id(dev), vsel; in tps65910_set_voltage_dcdc_sel() 641 int reg, id = rdev_get_id(dev); in tps65910_set_voltage_sel() 671 int reg, id = rdev_get_id(dev); in tps65911_set_voltage_sel() 705 int volt, mult = 1, id = rdev_get_id(dev); in tps65910_list_voltage_dcdc() 728 int step_mv = 0, id = rdev_get_id(dev); in tps65911_list_voltage()
|
D | lp8788-buck.c | 266 enum lp8788_buck_id id = rdev_get_id(rdev); in lp8788_buck12_set_voltage_sel() 282 enum lp8788_buck_id id = rdev_get_id(rdev); in lp8788_buck12_get_voltage_sel() 300 enum lp8788_buck_id id = rdev_get_id(rdev); in lp8788_buck_enable_time() 314 enum lp8788_buck_id id = rdev_get_id(rdev); in lp8788_buck_set_mode() 335 enum lp8788_buck_id id = rdev_get_id(rdev); in lp8788_buck_get_mode()
|
D | s2mpa01.c | 59 switch (rdev_get_id(rdev)) { in s2mpa01_regulator_set_voltage_time_sel() 100 switch (rdev_get_id(rdev)) { in s2mpa01_set_ramp_delay() 190 if (rdev_get_id(rdev) >= S2MPA01_BUCK1 && in s2mpa01_set_ramp_delay() 191 rdev_get_id(rdev) <= S2MPA01_BUCK4) { in s2mpa01_set_ramp_delay()
|
D | s2mps11.c | 77 switch (rdev_get_id(rdev)) { in s2mps11_regulator_set_voltage_time_sel() 117 switch (rdev_get_id(rdev)) { in s2mps11_set_ramp_delay() 207 if ((rdev_get_id(rdev) >= S2MPS11_BUCK2 && in s2mps11_set_ramp_delay() 208 rdev_get_id(rdev) <= S2MPS11_BUCK4) || in s2mps11_set_ramp_delay() 209 rdev_get_id(rdev) == S2MPS11_BUCK6) { in s2mps11_set_ramp_delay() 512 if (test_bit(rdev_get_id(rdev), s2mps11->suspend_state)) in s2mps14_regulator_enable() 514 else if (gpio_is_valid(s2mps11->ext_control_gpio[rdev_get_id(rdev)])) in s2mps14_regulator_enable() 520 if (test_bit(rdev_get_id(rdev), s2mps11->suspend_state)) in s2mps14_regulator_enable() 538 int rdev_id = rdev_get_id(rdev); in s2mps14_regulator_set_suspend_disable() 574 set_bit(rdev_get_id(rdev), s2mps11->suspend_state); in s2mps14_regulator_set_suspend_disable() [all …]
|
D | max14577-regulator.c | 17 int rid = rdev_get_id(rdev); in max14577_reg_is_enabled() 44 if (rdev_get_id(rdev) != MAX14577_CHARGER) in max14577_reg_get_current_limit() 66 if (rdev_get_id(rdev) != MAX14577_CHARGER) in max14577_reg_set_current_limit()
|
D | da9211-regulator.c | 104 int id = rdev_get_id(rdev); in da9211_buck_get_mode() 131 int id = rdev_get_id(rdev); in da9211_buck_set_mode() 154 int id = rdev_get_id(rdev); in da9211_set_current_limit() 191 int id = rdev_get_id(rdev); in da9211_get_current_limit()
|
D | max77686-regulator.c | 124 int ret, id = rdev_get_id(rdev); in max77686_set_suspend_disable() 144 int ret, id = rdev_get_id(rdev); in max77686_set_suspend_mode() 179 int ret, id = rdev_get_id(rdev); in max77686_ldo_set_suspend_mode() 211 int id = rdev_get_id(rdev); in max77686_enable()
|