Searched refs:voltage_shift (Results 1 – 2 of 2) sorted by relevance
41 u8 voltage_shift; member52 selector << ri->voltage_shift); in aat2870_ldo_set_voltage_sel()66 return (val & ri->voltage_mask) >> ri->voltage_shift; in aat2870_ldo_get_voltage_sel()157 ri->voltage_shift = (id - AAT2870_ID_LDOA) % 2 ? 0 : 4; in aat2870_get_regulator()158 ri->voltage_mask = 0xF << ri->voltage_shift; in aat2870_get_regulator()
481 int ret, voltage_shift; in ab8500_regulator_get_voltage_sel() local490 voltage_shift = ffs(info->voltage_mask) - 1; in ab8500_regulator_get_voltage_sel()505 voltage_shift, regval); in ab8500_regulator_get_voltage_sel()507 return (regval & info->voltage_mask) >> voltage_shift; in ab8500_regulator_get_voltage_sel()512 int ret, voltage_shift; in ab8540_aux3_regulator_get_voltage_sel() local552 voltage_shift = ffs(info->voltage_mask) - 1; in ab8540_aux3_regulator_get_voltage_sel()554 return (regval & info->voltage_mask) >> voltage_shift; in ab8540_aux3_regulator_get_voltage_sel()560 int ret, voltage_shift; in ab8500_regulator_set_voltage_sel() local569 voltage_shift = ffs(info->voltage_mask) - 1; in ab8500_regulator_set_voltage_sel()572 regval = (u8)selector << voltage_shift; in ab8500_regulator_set_voltage_sel()[all …]