Lines Matching full:desc
182 const struct regulator_da1469x_desc *desc; member
196 if (config->desc->enable_mask & config->power_bits) { in regulator_da1469x_enable()
197 reg_val = CRG_TOP->POWER_CTRL_REG & ~(config->desc->enable_mask); in regulator_da1469x_enable()
198 reg_val |= config->power_bits & config->desc->enable_mask; in regulator_da1469x_enable()
202 if (config->desc->dcdc_register) { in regulator_da1469x_enable()
203 reg_val = *config->desc->dcdc_register & in regulator_da1469x_enable()
207 *config->desc->dcdc_register_shadow = reg_val; in regulator_da1469x_enable()
208 *config->desc->dcdc_register = reg_val; in regulator_da1469x_enable()
232 if (config->desc->enable_mask & config->power_bits) { in regulator_da1469x_disable()
233 CRG_TOP->POWER_CTRL_REG &= ~(config->desc->enable_mask & in regulator_da1469x_disable()
236 if (config->desc->dcdc_register) { in regulator_da1469x_disable()
237 reg_val = *config->desc->dcdc_register & in regulator_da1469x_disable()
240 *config->desc->dcdc_register_shadow = reg_val; in regulator_da1469x_disable()
241 *config->desc->dcdc_register = reg_val; in regulator_da1469x_disable()
261 return linear_range_group_values_count(config->desc->voltage_ranges, in regulator_da1469x_count_voltages()
262 config->desc->voltage_range_count); in regulator_da1469x_count_voltages()
271 if (config->desc->voltage_ranges) { in regulator_da1469x_list_voltage()
272 return linear_range_group_get_value(config->desc->voltage_ranges, in regulator_da1469x_list_voltage()
273 config->desc->voltage_range_count, in regulator_da1469x_list_voltage()
302 ret = linear_range_group_get_win_index(config->desc->voltage_ranges, in regulator_da1469x_set_voltage()
303 config->desc->voltage_range_count, in regulator_da1469x_set_voltage()
307 mask = config->desc->voltage_idx_mask; in regulator_da1469x_set_voltage()
327 if (config->desc->voltage_idx_mask) { in regulator_da1469x_get_voltage()
328 idx = FIELD_GET(config->desc->voltage_idx_mask, CRG_TOP->POWER_CTRL_REG); in regulator_da1469x_get_voltage()
333 return linear_range_group_get_value(config->desc->voltage_ranges, in regulator_da1469x_get_voltage()
334 config->desc->voltage_range_count, idx, volt_uv); in regulator_da1469x_get_voltage()
345 if (config->desc->current_ranges == NULL) { in regulator_da1469x_set_current_limit()
349 ret = linear_range_group_get_win_index(config->desc->current_ranges, in regulator_da1469x_set_current_limit()
357 reg_val = *config->desc->dcdc_register & ~(DCDC_DCDC_V14_REG_DCDC_V14_CUR_LIM_MAX_HV_Msk | in regulator_da1469x_set_current_limit()
363 *config->desc->dcdc_register_shadow = reg_val; in regulator_da1469x_set_current_limit()
364 *config->desc->dcdc_register = reg_val; in regulator_da1469x_set_current_limit()
376 if (config->desc->current_ranges == NULL) { in regulator_da1469x_get_current_limit()
380 *config->desc->dcdc_register); in regulator_da1469x_get_current_limit()
381 ret = linear_range_group_get_value(config->desc->current_ranges, 1, idx, curr_ua); in regulator_da1469x_get_current_limit()
420 if (config->desc->dcdc_register) { in regulator_da1469x_pm_action()
421 *config->desc->dcdc_register = *config->desc->dcdc_register_shadow; in regulator_da1469x_pm_action()
423 (*config->desc->dcdc_register_shadow & DCDC_REQUESTED)) { in regulator_da1469x_pm_action()
447 .desc = &id ## _desc, \