Lines Matching refs:regulator_dev

56 	struct regulator_dev *regulator;
84 static int _regulator_is_enabled(struct regulator_dev *rdev);
86 static int _regulator_get_error_flags(struct regulator_dev *rdev, unsigned int *flags);
87 static int _regulator_get_current_limit(struct regulator_dev *rdev);
88 static unsigned int _regulator_get_mode(struct regulator_dev *rdev);
89 static int _notifier_call_chain(struct regulator_dev *rdev,
91 static int _regulator_do_set_voltage(struct regulator_dev *rdev,
93 static int regulator_balance_voltage(struct regulator_dev *rdev,
95 static struct regulator *create_regulator(struct regulator_dev *rdev,
101 const char *rdev_get_name(struct regulator_dev *rdev) in rdev_get_name()
117 static bool regulator_ops_is_valid(struct regulator_dev *rdev, int ops) in regulator_ops_is_valid()
141 static inline int regulator_lock_nested(struct regulator_dev *rdev, in regulator_lock_nested()
184 static void regulator_lock(struct regulator_dev *rdev) in regulator_lock()
196 static void regulator_unlock(struct regulator_dev *rdev) in regulator_unlock()
210 static bool regulator_supply_is_couple(struct regulator_dev *rdev) in regulator_supply_is_couple()
212 struct regulator_dev *c_rdev; in regulator_supply_is_couple()
225 static void regulator_unlock_recursive(struct regulator_dev *rdev, in regulator_unlock_recursive()
228 struct regulator_dev *c_rdev, *supply_rdev; in regulator_unlock_recursive()
249 static int regulator_lock_recursive(struct regulator_dev *rdev, in regulator_lock_recursive()
250 struct regulator_dev **new_contended_rdev, in regulator_lock_recursive()
251 struct regulator_dev **old_contended_rdev, in regulator_lock_recursive()
254 struct regulator_dev *c_rdev; in regulator_lock_recursive()
306 static void regulator_unlock_dependent(struct regulator_dev *rdev, in regulator_unlock_dependent()
321 static void regulator_lock_dependent(struct regulator_dev *rdev, in regulator_lock_dependent()
324 struct regulator_dev *new_contended_rdev = NULL; in regulator_lock_dependent()
325 struct regulator_dev *old_contended_rdev = NULL; in regulator_lock_dependent()
421 int regulator_check_voltage(struct regulator_dev *rdev, in regulator_check_voltage()
454 int regulator_check_consumers(struct regulator_dev *rdev, in regulator_check_consumers()
486 static int regulator_check_current_limit(struct regulator_dev *rdev, in regulator_check_current_limit()
511 static int regulator_mode_constrain(struct regulator_dev *rdev, in regulator_mode_constrain()
544 regulator_get_suspend_state(struct regulator_dev *rdev, suspend_state_t state) in regulator_get_suspend_state()
562 regulator_get_suspend_state_check(struct regulator_dev *rdev, suspend_state_t state) in regulator_get_suspend_state_check()
588 struct regulator_dev *rdev = dev_get_drvdata(dev); in microvolts_show()
604 struct regulator_dev *rdev = dev_get_drvdata(dev); in microamps_show()
613 struct regulator_dev *rdev = dev_get_drvdata(dev); in name_show()
642 struct regulator_dev *rdev = dev_get_drvdata(dev); in opmode_show()
661 struct regulator_dev *rdev = dev_get_drvdata(dev); in state_show()
675 struct regulator_dev *rdev = dev_get_drvdata(dev); in status_show()
722 struct regulator_dev *rdev = dev_get_drvdata(dev); in min_microamps_show()
734 struct regulator_dev *rdev = dev_get_drvdata(dev); in max_microamps_show()
746 struct regulator_dev *rdev = dev_get_drvdata(dev); in min_microvolts_show()
758 struct regulator_dev *rdev = dev_get_drvdata(dev); in max_microvolts_show()
770 struct regulator_dev *rdev = dev_get_drvdata(dev); in requested_microamps_show()
787 struct regulator_dev *rdev = dev_get_drvdata(dev); in num_users_show()
795 struct regulator_dev *rdev = dev_get_drvdata(dev); in type_show()
810 struct regulator_dev *rdev = dev_get_drvdata(dev); in suspend_mem_microvolts_show()
819 struct regulator_dev *rdev = dev_get_drvdata(dev); in suspend_disk_microvolts_show()
828 struct regulator_dev *rdev = dev_get_drvdata(dev); in suspend_standby_microvolts_show()
837 struct regulator_dev *rdev = dev_get_drvdata(dev); in suspend_mem_mode_show()
847 struct regulator_dev *rdev = dev_get_drvdata(dev); in suspend_disk_mode_show()
857 struct regulator_dev *rdev = dev_get_drvdata(dev); in suspend_standby_mode_show()
867 struct regulator_dev *rdev = dev_get_drvdata(dev); in suspend_mem_state_show()
877 struct regulator_dev *rdev = dev_get_drvdata(dev); in suspend_disk_state_show()
887 struct regulator_dev *rdev = dev_get_drvdata(dev); in suspend_standby_state_show()
897 struct regulator_dev *rdev = dev_get_drvdata(dev); in bypass_show()
921 struct regulator_dev *rdev = dev_get_drvdata(dev); \
942 static int drms_uA_update(struct regulator_dev *rdev) in drms_uA_update()
1037 static int __suspend_set_state(struct regulator_dev *rdev, in __suspend_set_state()
1075 static int suspend_set_initial_state(struct regulator_dev *rdev) in suspend_set_initial_state()
1088 static void print_constraints_debug(struct regulator_dev *rdev) in print_constraints_debug()
1158 static inline void print_constraints_debug(struct regulator_dev *rdev) {} in print_constraints_debug()
1161 static void print_constraints(struct regulator_dev *rdev) in print_constraints()
1173 static int machine_constraints_voltage(struct regulator_dev *rdev, in machine_constraints_voltage()
1310 static int machine_constraints_current(struct regulator_dev *rdev, in machine_constraints_current()
1340 static int _regulator_do_enable(struct regulator_dev *rdev);
1342 static int notif_set_limit(struct regulator_dev *rdev, in notif_set_limit()
1343 int (*set)(struct regulator_dev *, int, int, bool), in notif_set_limit() argument
1361 static int handle_notify_limits(struct regulator_dev *rdev, in handle_notify_limits()
1362 int (*set)(struct regulator_dev *, int, int, bool), in handle_notify_limits() argument
1398 static int set_machine_constraints(struct regulator_dev *rdev) in set_machine_constraints()
1637 static int set_supply(struct regulator_dev *rdev, in set_supply()
1638 struct regulator_dev *supply_rdev) in set_supply()
1669 static int set_consumer_device_supply(struct regulator_dev *rdev, in set_consumer_device_supply()
1732 static void unset_regulator_supplies(struct regulator_dev *rdev) in unset_regulator_supplies()
1796 static struct regulator *create_regulator(struct regulator_dev *rdev, in create_regulator()
1875 static int _regulator_get_enable_time(struct regulator_dev *rdev) in _regulator_get_enable_time()
1912 struct regulator_dev *r = dev_to_rdev(dev); in regulator_match()
1917 static struct regulator_dev *regulator_lookup_by_name(const char *name) in regulator_lookup_by_name()
1938 static struct regulator_dev *regulator_dev_lookup(struct device *dev, in regulator_dev_lookup()
1941 struct regulator_dev *r = NULL; in regulator_dev_lookup()
1994 static int regulator_resolve_supply(struct regulator_dev *rdev) in regulator_resolve_supply()
1996 struct regulator_dev *r; in regulator_resolve_supply()
2104 struct regulator_dev *rdev; in _regulator_get()
2296 struct regulator_dev *rdev = regulator->rdev; in destroy_regulator()
2322 struct regulator_dev *rdev; in _regulator_put()
2486 static int regulator_ena_gpio_request(struct regulator_dev *rdev, in regulator_ena_gpio_request()
2525 static void regulator_ena_gpio_free(struct regulator_dev *rdev) in regulator_ena_gpio_free()
2557 static int regulator_ena_gpio_ctrl(struct regulator_dev *rdev, bool enable) in regulator_ena_gpio_ctrl()
2637 static inline int _regulator_check_status_enabled(struct regulator_dev *rdev) in _regulator_check_status_enabled()
2656 static int _regulator_do_enable(struct regulator_dev *rdev) in _regulator_do_enable()
2763 struct regulator_dev *rdev = regulator->rdev; in _regulator_handle_consumer_enable()
2788 struct regulator_dev *rdev = regulator->rdev; in _regulator_handle_consumer_disable()
2807 struct regulator_dev *rdev = regulator->rdev; in _regulator_enable()
2882 struct regulator_dev *rdev = regulator->rdev; in regulator_enable()
2894 static int _regulator_do_disable(struct regulator_dev *rdev) in _regulator_do_disable()
2925 struct regulator_dev *rdev = regulator->rdev; in _regulator_disable()
2989 struct regulator_dev *rdev = regulator->rdev; in regulator_disable()
3002 static int _regulator_force_disable(struct regulator_dev *rdev) in _regulator_force_disable()
3038 struct regulator_dev *rdev = regulator->rdev; in regulator_force_disable()
3065 struct regulator_dev *rdev = container_of(work, struct regulator_dev, in regulator_disable_work()
3120 struct regulator_dev *rdev = regulator->rdev; in regulator_disable_deferred()
3135 static int _regulator_is_enabled(struct regulator_dev *rdev) in _regulator_is_enabled()
3148 static int _regulator_list_voltage(struct regulator_dev *rdev, in _regulator_list_voltage()
3221 struct regulator_dev *rdev = regulator->rdev; in regulator_count_voltages()
3281 struct regulator_dev *rdev = regulator->rdev; in regulator_get_hardware_vsel_register()
3308 struct regulator_dev *rdev = regulator->rdev; in regulator_list_hardware_vsel()
3331 struct regulator_dev *rdev = regulator->rdev; in regulator_get_linear_step()
3349 struct regulator_dev *rdev = regulator->rdev; in regulator_is_supported_voltage()
3382 static int regulator_map_voltage(struct regulator_dev *rdev, int min_uV, in regulator_map_voltage()
3404 static int _regulator_call_set_voltage(struct regulator_dev *rdev, in _regulator_call_set_voltage()
3429 static int _regulator_call_set_voltage_sel(struct regulator_dev *rdev, in _regulator_call_set_voltage_sel()
3453 static int _regulator_set_voltage_sel_step(struct regulator_dev *rdev, in _regulator_set_voltage_sel_step()
3513 static int _regulator_set_voltage_time(struct regulator_dev *rdev, in _regulator_set_voltage_time()
3537 static int _regulator_do_set_voltage(struct regulator_dev *rdev, in _regulator_do_set_voltage()
3642 static int _regulator_do_set_suspend_voltage(struct regulator_dev *rdev, in _regulator_do_set_suspend_voltage()
3672 struct regulator_dev *rdev = regulator->rdev; in regulator_set_voltage_unlocked()
3727 int regulator_set_voltage_rdev(struct regulator_dev *rdev, int min_uV, in regulator_set_voltage_rdev()
3798 static int regulator_limit_voltage_step(struct regulator_dev *rdev, in regulator_limit_voltage_step()
3828 static int regulator_get_optimal_voltage(struct regulator_dev *rdev, in regulator_get_optimal_voltage()
3835 struct regulator_dev **c_rdevs = c_desc->coupled_rdevs; in regulator_get_optimal_voltage()
3971 int regulator_do_balance_voltage(struct regulator_dev *rdev, in regulator_do_balance_voltage()
3974 struct regulator_dev **c_rdevs; in regulator_do_balance_voltage()
3975 struct regulator_dev *best_rdev; in regulator_do_balance_voltage()
4054 static int regulator_balance_voltage(struct regulator_dev *rdev, in regulator_balance_voltage()
4114 static inline int regulator_suspend_toggle(struct regulator_dev *rdev, in regulator_suspend_toggle()
4131 int regulator_suspend_enable(struct regulator_dev *rdev, in regulator_suspend_enable()
4138 int regulator_suspend_disable(struct regulator_dev *rdev, in regulator_suspend_disable()
4162 struct regulator_dev *rdev = regulator->rdev; in _regulator_set_suspend_voltage()
4211 struct regulator_dev *rdev = regulator->rdev; in regulator_set_voltage_time()
4265 int regulator_set_voltage_time_sel(struct regulator_dev *rdev, in regulator_set_voltage_time_sel()
4286 int regulator_sync_voltage_rdev(struct regulator_dev *rdev) in regulator_sync_voltage_rdev()
4319 struct regulator_dev *rdev = regulator->rdev; in regulator_sync_voltage()
4364 int regulator_get_voltage_rdev(struct regulator_dev *rdev) in regulator_get_voltage_rdev()
4451 struct regulator_dev *rdev = regulator->rdev; in regulator_set_current_limit()
4474 static int _regulator_get_current_limit_unlocked(struct regulator_dev *rdev) in _regulator_get_current_limit_unlocked()
4483 static int _regulator_get_current_limit(struct regulator_dev *rdev) in _regulator_get_current_limit()
4522 struct regulator_dev *rdev = regulator->rdev; in regulator_set_mode()
4555 static unsigned int _regulator_get_mode_unlocked(struct regulator_dev *rdev) in _regulator_get_mode_unlocked()
4564 static unsigned int _regulator_get_mode(struct regulator_dev *rdev) in _regulator_get_mode()
4587 static int rdev_get_cached_err_flags(struct regulator_dev *rdev) in rdev_get_cached_err_flags()
4599 static int _regulator_get_error_flags(struct regulator_dev *rdev, in _regulator_get_error_flags()
4670 struct regulator_dev *rdev = regulator->rdev; in regulator_set_load()
4701 struct regulator_dev *rdev = regulator->rdev; in regulator_allow_bypass()
4782 static int _notifier_call_chain(struct regulator_dev *rdev, in _notifier_call_chain()
5001 int regulator_notifier_call_chain(struct regulator_dev *rdev, in regulator_notifier_call_chain()
5078 struct regulator_dev *rdev = dev_to_rdev(dev); in regulator_attr_is_visible()
5163 struct regulator_dev *rdev = dev_get_drvdata(dev); in regulator_dev_release()
5171 static void rdev_init_debugfs(struct regulator_dev *rdev) in rdev_init_debugfs()
5200 struct regulator_dev *rdev = dev_to_rdev(dev); in regulator_register_resolve_supply()
5218 regulator_find_coupler(struct regulator_dev *rdev) in regulator_find_coupler()
5259 static void regulator_resolve_coupling(struct regulator_dev *rdev) in regulator_resolve_coupling()
5264 struct regulator_dev *c_rdev; in regulator_resolve_coupling()
5290 static void regulator_remove_coupling(struct regulator_dev *rdev) in regulator_remove_coupling()
5294 struct regulator_dev *__c_rdev, *c_rdev; in regulator_remove_coupling()
5339 static int regulator_init_coupling(struct regulator_dev *rdev) in regulator_init_coupling()
5341 struct regulator_dev **coupled; in regulator_init_coupling()
5384 struct regulator_dev *rdev) in generic_coupler_attach()
5415 struct regulator_dev *
5423 struct regulator_dev *rdev; in regulator_register()
5469 rdev = kzalloc(sizeof(struct regulator_dev), GFP_KERNEL); in regulator_register()
5679 void regulator_unregister(struct regulator_dev *rdev) in regulator_unregister()
5714 struct regulator_dev *rdev = dev_to_rdev(dev); in regulator_suspend()
5733 struct regulator_dev *rdev = dev_to_rdev(dev); in regulator_resume()
5801 void *rdev_get_drvdata(struct regulator_dev *rdev) in rdev_get_drvdata()
5835 int rdev_get_id(struct regulator_dev *rdev) in rdev_get_id()
5841 struct device *rdev_get_dev(struct regulator_dev *rdev) in rdev_get_dev()
5847 struct regmap *rdev_get_regmap(struct regulator_dev *rdev) in rdev_get_regmap()
5876 struct regulator_dev *parent;
5881 struct regulator_dev *rdev,
5886 struct regulator_dev *rdev = dev_to_rdev(dev); in regulator_summary_show_children()
5897 struct regulator_dev *rdev, in regulator_summary_show_subtree()
5972 struct regulator_dev **new_contended_rdev;
5973 struct regulator_dev **old_contended_rdev;
5978 struct regulator_dev *rdev = dev_to_rdev(dev); in regulator_summary_lock_one()
5998 struct regulator_dev *rdev = dev_to_rdev(dev); in regulator_summary_unlock_one()
6012 struct regulator_dev **new_contended_rdev, in regulator_summary_lock_all()
6013 struct regulator_dev **old_contended_rdev) in regulator_summary_lock_all()
6033 struct regulator_dev *new_contended_rdev = NULL; in regulator_summary_lock()
6034 struct regulator_dev *old_contended_rdev = NULL; in regulator_summary_lock()
6071 struct regulator_dev *rdev = dev_to_rdev(dev); in regulator_summary_show_roots()
6128 struct regulator_dev *rdev = dev_to_rdev(dev); in regulator_late_cleanup()