Home
last modified time | relevance | path

Searched refs:rdev_get_id (Results 1 – 25 of 45) sorted by relevance

12

/Linux-v4.19/drivers/regulator/
Dmax8660.c115 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 …]
Dlp3971.c113 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()
Dmc13xxx-regulator-core.c31 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()
Dlp3972.c228 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()
Dwm8350-regulator.c115 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 …]
Dpcap-regulator.c152 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()
Dtps65217-regulator.c76 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()
Dda9052-regulator.c94 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()
Dtps65218-regulator.c76 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()
Dwm831x-dcdc.c149 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 …]
Dmc13892-regulator.c336 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()
Dmax8997-regulator.c128 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 …]
Dtps6524x-regulator.c463 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()
Dmax77802-regulator.c100 int id = rdev_get_id(rdev); in max77802_set_suspend_disable()
116 int id = rdev_get_id(rdev); in max77802_set_mode()
141 int id = rdev_get_id(rdev); in max77802_get_mode()
166 int id = rdev_get_id(rdev); in max77802_set_suspend_mode()
215 int id = rdev_get_id(rdev); in max77802_enable()
247 int id = rdev_get_id(rdev); in max77802_set_ramp_delay_2bit()
Dlp873x-regulator.c76 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()
Dlp87565-regulator.c66 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()
Dtps6507x-regulator.c217 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()
Dtps65910-regulator.c399 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()
Dtps65132-regulator.c67 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()
Dlp8788-buck.c266 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()
Ds2mpa01.c59 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()
Ds2mps11.c77 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 …]
Dmax14577-regulator.c17 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()
Dda9211-regulator.c104 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()
Dmax77686-regulator.c124 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()

12