Lines Matching defs:name

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