Lines Matching full:name

609 static const struct regul_struct *get_regulator_data(const char *name)  in get_regulator_data()  argument
614 if (strncmp(name, regulators_table[i].dt_node_name, in get_regulator_data()
625 static uint8_t voltage_to_index(const char *name, uint16_t millivolts) in voltage_to_index() argument
627 const struct regul_struct *regul = get_regulator_data(name); in voltage_to_index()
654 int stpmic1_regulator_enable(const char *name) in stpmic1_regulator_enable() argument
656 const struct regul_struct *regul = get_regulator_data(name); in stpmic1_regulator_enable()
662 int stpmic1_regulator_disable(const char *name) in stpmic1_regulator_disable() argument
664 const struct regul_struct *regul = get_regulator_data(name); in stpmic1_regulator_disable()
670 bool stpmic1_is_regulator_enabled(const char *name) in stpmic1_is_regulator_enabled() argument
673 const struct regul_struct *regul = get_regulator_data(name); in stpmic1_is_regulator_enabled()
682 int stpmic1_regulator_voltage_set(const char *name, uint16_t millivolts) in stpmic1_regulator_voltage_set() argument
684 uint8_t voltage_index = voltage_to_index(name, millivolts); in stpmic1_regulator_voltage_set()
685 const struct regul_struct *regul = get_regulator_data(name); in stpmic1_regulator_voltage_set()
688 if ((strncmp(name, "ldo3", 5) == 0) && ldo3_special_mode) { in stpmic1_regulator_voltage_set()
699 if (strncmp(name, "buck", 4) == 0) { in stpmic1_regulator_voltage_set()
701 } else if ((strncmp(name, "ldo", 3) == 0) && in stpmic1_regulator_voltage_set()
702 (strncmp(name, "ldo4", 5) != 0)) { in stpmic1_regulator_voltage_set()
713 int stpmic1_regulator_pull_down_set(const char *name) in stpmic1_regulator_pull_down_set() argument
715 const struct regul_struct *regul = get_regulator_data(name); in stpmic1_regulator_pull_down_set()
727 int stpmic1_regulator_mask_reset_set(const char *name) in stpmic1_regulator_mask_reset_set() argument
729 const struct regul_struct *regul = get_regulator_data(name); in stpmic1_regulator_mask_reset_set()
741 int stpmic1_regulator_icc_set(const char *name) in stpmic1_regulator_icc_set() argument
743 const struct regul_struct *regul = get_regulator_data(name); in stpmic1_regulator_icc_set()
754 int stpmic1_regulator_sink_mode_set(const char *name) in stpmic1_regulator_sink_mode_set() argument
756 if (strncmp(name, "ldo3", 5) != 0) { in stpmic1_regulator_sink_mode_set()
768 int stpmic1_regulator_bypass_mode_set(const char *name) in stpmic1_regulator_bypass_mode_set() argument
770 if (strncmp(name, "ldo3", 5) != 0) { in stpmic1_regulator_bypass_mode_set()
782 int stpmic1_active_discharge_mode_set(const char *name) in stpmic1_active_discharge_mode_set() argument
784 if (strncmp(name, "pwr_sw1", 8) == 0) { in stpmic1_active_discharge_mode_set()
790 if (strncmp(name, "pwr_sw2", 8) == 0) { in stpmic1_active_discharge_mode_set()
799 int stpmic1_regulator_levels_mv(const char *name, const uint16_t **levels, in stpmic1_regulator_levels_mv() argument
802 const struct regul_struct *regul = get_regulator_data(name); in stpmic1_regulator_levels_mv()
804 if ((strncmp(name, "ldo3", 5) == 0) && ldo3_special_mode) { in stpmic1_regulator_levels_mv()
815 int stpmic1_regulator_voltage_get(const char *name) in stpmic1_regulator_voltage_get() argument
817 const struct regul_struct *regul = get_regulator_data(name); in stpmic1_regulator_voltage_get()
822 if ((strncmp(name, "ldo3", 5) == 0) && ldo3_special_mode) { in stpmic1_regulator_voltage_get()
827 if (strncmp(name, "buck", 4) == 0) { in stpmic1_regulator_voltage_get()
829 } else if ((strncmp(name, "ldo", 3) == 0) && in stpmic1_regulator_voltage_get()
830 (strncmp(name, "ldo4", 5) != 0)) { in stpmic1_regulator_voltage_get()
915 const char *name __unused = regulators_table[i].dt_node_name; in stpmic1_dump_regulators()
918 name, in stpmic1_dump_regulators()
919 stpmic1_is_regulator_enabled(name) ? "en" : "dis", in stpmic1_dump_regulators()
920 stpmic1_regulator_voltage_get(name)); in stpmic1_dump_regulators()