vreg              119 arch/arm64/kernel/signal32.c 		union __fpsimd_vreg vreg = {
vreg              123 arch/arm64/kernel/signal32.c 		__put_user_error(vreg.lo, &frame->ufp.fpregs[i], err);
vreg              124 arch/arm64/kernel/signal32.c 		__put_user_error(vreg.hi, &frame->ufp.fpregs[i + 1], err);
vreg              162 arch/arm64/kernel/signal32.c 		union __fpsimd_vreg vreg;
vreg              164 arch/arm64/kernel/signal32.c 		__get_user_error(vreg.lo, &frame->ufp.fpregs[i], err);
vreg              165 arch/arm64/kernel/signal32.c 		__get_user_error(vreg.hi, &frame->ufp.fpregs[i + 1], err);
vreg              166 arch/arm64/kernel/signal32.c 		fpsimd.vregs[i >> 1] = vreg.raw;
vreg              201 arch/powerpc/boot/cpm-serial.c 	void *vreg[2];
vreg              233 arch/powerpc/boot/cpm-serial.c 	if (dt_get_virtual_reg(devp, vreg, 2) < 2)
vreg              237 arch/powerpc/boot/cpm-serial.c 		smc = vreg[0];
vreg              239 arch/powerpc/boot/cpm-serial.c 		scc = vreg[0];
vreg              241 arch/powerpc/boot/cpm-serial.c 	param = vreg[1];
vreg             3567 drivers/crypto/caam/caamalg.c 		aesa = rd_reg32(&priv->ctrl->vreg.aesa);
vreg             3568 drivers/crypto/caam/caamalg.c 		mdha = rd_reg32(&priv->ctrl->vreg.mdha);
vreg             3573 drivers/crypto/caam/caamalg.c 		des_inst = rd_reg32(&priv->ctrl->vreg.desa) & CHA_VER_NUM_MASK;
vreg             3576 drivers/crypto/caam/caamalg.c 		ccha_inst = rd_reg32(&priv->ctrl->vreg.ccha) & CHA_VER_NUM_MASK;
vreg             3577 drivers/crypto/caam/caamalg.c 		ptha_inst = rd_reg32(&priv->ctrl->vreg.ptha) & CHA_VER_NUM_MASK;
vreg             3578 drivers/crypto/caam/caamalg.c 		arc4_inst = rd_reg32(&priv->ctrl->vreg.afha) & CHA_VER_NUM_MASK;
vreg             2577 drivers/crypto/caam/caamalg_qi.c 		aesa = rd_reg32(&priv->ctrl->vreg.aesa);
vreg             2578 drivers/crypto/caam/caamalg_qi.c 		mdha = rd_reg32(&priv->ctrl->vreg.mdha);
vreg             2583 drivers/crypto/caam/caamalg_qi.c 		des_inst = rd_reg32(&priv->ctrl->vreg.desa) & CHA_VER_NUM_MASK;
vreg             1999 drivers/crypto/caam/caamhash.c 		u32 mdha = rd_reg32(&priv->ctrl->vreg.mdha);
vreg             1099 drivers/crypto/caam/caampkc.c 		pk_inst = rd_reg32(&priv->ctrl->vreg.pkha) & CHA_VER_NUM_MASK;
vreg              326 drivers/crypto/caam/caamrng.c 		rng_inst = rd_reg32(&priv->ctrl->vreg.rng) & CHA_VER_NUM_MASK;
vreg              788 drivers/crypto/caam/ctrl.c 		rng_vid = (rd_reg32(&ctrl->vreg.rng) & CHA_VER_VID_MASK) >>
vreg              594 drivers/crypto/caam/regs.h 	struct version_regs vreg;
vreg              687 drivers/crypto/caam/regs.h 	struct version_regs vreg;
vreg               39 drivers/gpu/drm/i915/gvt/debugfs.c 	u32 vreg;
vreg               64 drivers/gpu/drm/i915/gvt/debugfs.c 	u32 preg, vreg;
vreg               67 drivers/gpu/drm/i915/gvt/debugfs.c 	vreg = vgpu_vreg(param->vgpu, offset);
vreg               69 drivers/gpu/drm/i915/gvt/debugfs.c 	if (preg != vreg) {
vreg               76 drivers/gpu/drm/i915/gvt/debugfs.c 		node->vreg = vreg;
vreg              114 drivers/gpu/drm/i915/gvt/debugfs.c 		u32 diff = node->preg ^ node->vreg;
vreg              117 drivers/gpu/drm/i915/gvt/debugfs.c 			   node->offset, node->preg, node->vreg,
vreg               96 drivers/gpu/drm/i915/gvt/gvt.h 	void *vreg;
vreg              446 drivers/gpu/drm/i915/gvt/gvt.h 	(*(u32 *)(vgpu->mmio.vreg + i915_mmio_reg_offset(reg)))
vreg              448 drivers/gpu/drm/i915/gvt/gvt.h 	(*(u32 *)(vgpu->mmio.vreg + (offset)))
vreg              450 drivers/gpu/drm/i915/gvt/gvt.h 	(*(u64 *)(vgpu->mmio.vreg + i915_mmio_reg_offset(reg)))
vreg              452 drivers/gpu/drm/i915/gvt/gvt.h 	(*(u64 *)(vgpu->mmio.vreg + (offset)))
vreg              241 drivers/gpu/drm/i915/gvt/mmio.c 		memcpy(vgpu->mmio.vreg, mmio, info->mmio_size);
vreg              281 drivers/gpu/drm/i915/gvt/mmio.c 		memcpy(vgpu->mmio.vreg, mmio, GVT_GEN8_MMIO_RESET_OFFSET);
vreg              297 drivers/gpu/drm/i915/gvt/mmio.c 	vgpu->mmio.vreg = vzalloc(info->mmio_size);
vreg              298 drivers/gpu/drm/i915/gvt/mmio.c 	if (!vgpu->mmio.vreg)
vreg              313 drivers/gpu/drm/i915/gvt/mmio.c 	vfree(vgpu->mmio.vreg);
vreg              314 drivers/gpu/drm/i915/gvt/mmio.c 	vgpu->mmio.vreg = NULL;
vreg              132 drivers/hwmon/pmbus/zl6100.c 	int ret, vreg;
vreg              152 drivers/hwmon/pmbus/zl6100.c 		vreg = MFR_READ_VMON;
vreg              156 drivers/hwmon/pmbus/zl6100.c 		vreg = MFR_VMON_OV_FAULT_LIMIT;
vreg              160 drivers/hwmon/pmbus/zl6100.c 		vreg = MFR_VMON_UV_FAULT_LIMIT;
vreg              165 drivers/hwmon/pmbus/zl6100.c 		vreg = reg;
vreg              170 drivers/hwmon/pmbus/zl6100.c 	ret = pmbus_read_word_data(client, page, vreg);
vreg              230 drivers/hwmon/pmbus/zl6100.c 	int ret, vreg;
vreg              238 drivers/hwmon/pmbus/zl6100.c 		vreg = MFR_VMON_OV_FAULT_LIMIT;
vreg              242 drivers/hwmon/pmbus/zl6100.c 		vreg = MFR_VMON_OV_FAULT_LIMIT;
vreg              247 drivers/hwmon/pmbus/zl6100.c 		vreg = MFR_VMON_UV_FAULT_LIMIT;
vreg              251 drivers/hwmon/pmbus/zl6100.c 		vreg = MFR_VMON_UV_FAULT_LIMIT;
vreg              257 drivers/hwmon/pmbus/zl6100.c 		vreg = reg;
vreg              261 drivers/hwmon/pmbus/zl6100.c 	ret = pmbus_write_word_data(client, page, vreg, word);
vreg              940 drivers/net/ieee802154/cc2520.c 	pdata->vreg = of_get_named_gpio(np, "vreg-gpio", 0);
vreg             1162 drivers/net/ieee802154/cc2520.c 	if (!gpio_is_valid(pdata.vreg)) {
vreg             1168 drivers/net/ieee802154/cc2520.c 	ret = devm_gpio_request_one(&spi->dev, pdata.vreg,
vreg             1173 drivers/net/ieee802154/cc2520.c 	gpio_set_value(pdata.vreg, HIGH);
vreg             1493 drivers/net/wireless/ath/ath10k/snoc.c 		vreg_info = &ar_snoc->vreg[i];
vreg             1507 drivers/net/wireless/ath/ath10k/snoc.c 		vreg_info = &ar_snoc->vreg[i];
vreg             1526 drivers/net/wireless/ath/ath10k/snoc.c 		vreg_info = &ar_snoc->vreg[i];
vreg             1709 drivers/net/wireless/ath/ath10k/snoc.c 	ar_snoc->vreg = vreg_cfg;
vreg             1711 drivers/net/wireless/ath/ath10k/snoc.c 		ret = ath10k_get_vreg_info(ar, dev, &ar_snoc->vreg[i]);
vreg               80 drivers/net/wireless/ath/ath10k/snoc.h 	struct ath10k_vreg_info *vreg;
vreg              220 drivers/phy/qualcomm/phy-qcom-ufs.c 				  struct ufs_qcom_phy_vreg *vreg,
vreg              227 drivers/phy/qualcomm/phy-qcom-ufs.c 	vreg->name = name;
vreg              228 drivers/phy/qualcomm/phy-qcom-ufs.c 	vreg->reg = devm_regulator_get(dev, name);
vreg              229 drivers/phy/qualcomm/phy-qcom-ufs.c 	if (IS_ERR(vreg->reg)) {
vreg              230 drivers/phy/qualcomm/phy-qcom-ufs.c 		err = PTR_ERR(vreg->reg);
vreg              238 drivers/phy/qualcomm/phy-qcom-ufs.c 					prop_name, &vreg->max_uA);
vreg              243 drivers/phy/qualcomm/phy-qcom-ufs.c 		} else if (err == -EINVAL || !vreg->max_uA) {
vreg              244 drivers/phy/qualcomm/phy-qcom-ufs.c 			if (regulator_count_voltages(vreg->reg) > 0) {
vreg              254 drivers/phy/qualcomm/phy-qcom-ufs.c 		vreg->max_uV = VDDA_PLL_MAX_UV;
vreg              255 drivers/phy/qualcomm/phy-qcom-ufs.c 		vreg->min_uV = VDDA_PLL_MIN_UV;
vreg              257 drivers/phy/qualcomm/phy-qcom-ufs.c 		vreg->max_uV = VDDA_PHY_MAX_UV;
vreg              258 drivers/phy/qualcomm/phy-qcom-ufs.c 		vreg->min_uV = VDDA_PHY_MIN_UV;
vreg              260 drivers/phy/qualcomm/phy-qcom-ufs.c 		vreg->max_uV = VDDP_REF_CLK_MAX_UV;
vreg              261 drivers/phy/qualcomm/phy-qcom-ufs.c 		vreg->min_uV = VDDP_REF_CLK_MIN_UV;
vreg              292 drivers/phy/qualcomm/phy-qcom-ufs.c 			  struct ufs_qcom_phy_vreg *vreg, bool on)
vreg              295 drivers/phy/qualcomm/phy-qcom-ufs.c 	struct regulator *reg = vreg->reg;
vreg              296 drivers/phy/qualcomm/phy-qcom-ufs.c 	const char *name = vreg->name;
vreg              301 drivers/phy/qualcomm/phy-qcom-ufs.c 		min_uV = on ? vreg->min_uV : 0;
vreg              302 drivers/phy/qualcomm/phy-qcom-ufs.c 		ret = regulator_set_voltage(reg, min_uV, vreg->max_uV);
vreg              308 drivers/phy/qualcomm/phy-qcom-ufs.c 		uA_load = on ? vreg->max_uA : 0;
vreg              327 drivers/phy/qualcomm/phy-qcom-ufs.c 			     struct ufs_qcom_phy_vreg *vreg)
vreg              331 drivers/phy/qualcomm/phy-qcom-ufs.c 	if (!vreg || vreg->enabled)
vreg              334 drivers/phy/qualcomm/phy-qcom-ufs.c 	ret = ufs_qcom_phy_cfg_vreg(dev, vreg, true);
vreg              341 drivers/phy/qualcomm/phy-qcom-ufs.c 	ret = regulator_enable(vreg->reg);
vreg              348 drivers/phy/qualcomm/phy-qcom-ufs.c 	vreg->enabled = true;
vreg              404 drivers/phy/qualcomm/phy-qcom-ufs.c 			      struct ufs_qcom_phy_vreg *vreg)
vreg              408 drivers/phy/qualcomm/phy-qcom-ufs.c 	if (!vreg || !vreg->enabled)
vreg              411 drivers/phy/qualcomm/phy-qcom-ufs.c 	ret = regulator_disable(vreg->reg);
vreg              415 drivers/phy/qualcomm/phy-qcom-ufs.c 		ufs_qcom_phy_cfg_vreg(dev, vreg, false);
vreg              416 drivers/phy/qualcomm/phy-qcom-ufs.c 		vreg->enabled = false;
vreg              419 drivers/phy/qualcomm/phy-qcom-ufs.c 				__func__, vreg->name, ret);
vreg              373 drivers/power/supply/bq24190_charger.c 	BQ24190_SYSFS_FIELD_RW(vreg,		CVC,	VREG),
vreg               61 drivers/power/supply/bq25890_charger.c 	u8 vreg;	/* regulation voltage		*/
vreg              450 drivers/power/supply/bq25890_charger.c 		val->intval = bq25890_find_val(bq->init_data.vreg, TBL_VREG);
vreg              609 drivers/power/supply/bq25890_charger.c 		{F_VREG,	 bq->init_data.vreg},
vreg              771 drivers/power/supply/bq25890_charger.c 		{"ti,battery-regulation-voltage", false, TBL_VREG, &init->vreg},
vreg               86 drivers/regulator/88pm800-regulator.c #define PM800_BUCK(match, vreg, ereg, ebit, amax, volt_ranges, n_volt)	\
vreg               89 drivers/regulator/88pm800-regulator.c 		.name			= #vreg,			\
vreg               94 drivers/regulator/88pm800-regulator.c 		.id			= PM800_ID_##vreg,		\
vreg               99 drivers/regulator/88pm800-regulator.c 		.vsel_reg		= PM800_##vreg,			\
vreg              116 drivers/regulator/88pm800-regulator.c #define PM800_LDO(match, vreg, ereg, ebit, amax, ldo_volt_table)	\
vreg              119 drivers/regulator/88pm800-regulator.c 		.name			= #vreg,			\
vreg              124 drivers/regulator/88pm800-regulator.c 		.id			= PM800_ID_##vreg,		\
vreg              127 drivers/regulator/88pm800-regulator.c 		.vsel_reg		= PM800_##vreg##_VOUT,		\
vreg              247 drivers/regulator/88pm8607.c #define PM8607_DVC(vreg, ureg, ubit, ereg, ebit)			\
vreg              250 drivers/regulator/88pm8607.c 		.name	= #vreg,					\
vreg              251 drivers/regulator/88pm8607.c 		.of_match = of_match_ptr(#vreg),			\
vreg              255 drivers/regulator/88pm8607.c 		.id	= PM8607_ID_##vreg,				\
vreg              257 drivers/regulator/88pm8607.c 		.volt_table = vreg##_table,				\
vreg              258 drivers/regulator/88pm8607.c 		.n_voltages = ARRAY_SIZE(vreg##_table),			\
vreg              259 drivers/regulator/88pm8607.c 		.vsel_reg = PM8607_##vreg,				\
vreg              260 drivers/regulator/88pm8607.c 		.vsel_mask = ARRAY_SIZE(vreg##_table) - 1,		\
vreg              267 drivers/regulator/88pm8607.c 	.vol_suspend	= (unsigned int *)&vreg##_suspend_table,	\
vreg              270 drivers/regulator/88pm8607.c #define PM8607_LDO(_id, vreg, shift, ereg, ebit)			\
vreg              282 drivers/regulator/88pm8607.c 		.vsel_reg = PM8607_##vreg,				\
vreg              309 drivers/regulator/da903x.c #define DA903x_LDO(_pmic, _id, min, max, step, vreg, shift, nbits, ereg, ebit)	\
vreg              322 drivers/regulator/da903x.c 	.vol_reg	= _pmic##_##vreg,				\
vreg              329 drivers/regulator/da903x.c #define DA903x_DVC(_pmic, _id, min, max, step, vreg, nbits, ureg, ubit, ereg, ebit) \
vreg              342 drivers/regulator/da903x.c 	.vol_reg	= _pmic##_##vreg,				\
vreg              351 drivers/regulator/da903x.c #define DA9034_LDO(_id, min, max, step, vreg, shift, nbits, ereg, ebit)	\
vreg              352 drivers/regulator/da903x.c 	DA903x_LDO(DA9034, _id, min, max, step, vreg, shift, nbits, ereg, ebit)
vreg              354 drivers/regulator/da903x.c #define DA9030_LDO(_id, min, max, step, vreg, shift, nbits, ereg, ebit)	\
vreg              355 drivers/regulator/da903x.c 	DA903x_LDO(DA9030, _id, min, max, step, vreg, shift, nbits, ereg, ebit)
vreg              357 drivers/regulator/da903x.c #define DA9030_DVC(_id, min, max, step, vreg, nbits, ureg, ubit, ereg, ebit) \
vreg              358 drivers/regulator/da903x.c 	DA903x_DVC(DA9030, _id, min, max, step, vreg, nbits, ureg, ubit, \
vreg              361 drivers/regulator/da903x.c #define DA9034_DVC(_id, min, max, step, vreg, nbits, ureg, ubit, ereg, ebit) \
vreg              362 drivers/regulator/da903x.c 	DA903x_DVC(DA9034, _id, min, max, step, vreg, nbits, ureg, ubit, \
vreg              365 drivers/regulator/da903x.c #define DA9035_DVC(_id, min, max, step, vreg, nbits, ureg, ubit, ereg, ebit) \
vreg              366 drivers/regulator/da903x.c 	DA903x_DVC(DA9035, _id, min, max, step, vreg, nbits, ureg, ubit, \
vreg              129 drivers/regulator/hi6421-regulator.c #define HI6421_LDO(_id, _match, v_table, vreg, vmask, ereg, emask,	\
vreg              142 drivers/regulator/hi6421-regulator.c 			.vsel_reg	= HI6421_REG_TO_BUS_ADDR(vreg),	\
vreg              168 drivers/regulator/hi6421-regulator.c #define HI6421_LDO_LINEAR(_id, _match, _min_uV, n_volt, vstep, vreg, vmask,\
vreg              182 drivers/regulator/hi6421-regulator.c 			.vsel_reg	= HI6421_REG_TO_BUS_ADDR(vreg),	\
vreg              208 drivers/regulator/hi6421-regulator.c #define HI6421_LDO_LINEAR_RANGE(_id, _match, n_volt, volt_ranges, vreg, vmask,\
vreg              222 drivers/regulator/hi6421-regulator.c 			.vsel_reg	= HI6421_REG_TO_BUS_ADDR(vreg),	\
vreg              245 drivers/regulator/hi6421-regulator.c #define HI6421_BUCK012(_id, _match, vreg, vmask, ereg, emask, sleepmask,\
vreg              259 drivers/regulator/hi6421-regulator.c 			.vsel_reg	= HI6421_REG_TO_BUS_ADDR(vreg),	\
vreg              282 drivers/regulator/hi6421-regulator.c #define HI6421_BUCK345(_id, _match, v_table, vreg, vmask, ereg, emask,	\
vreg              295 drivers/regulator/hi6421-regulator.c 			.vsel_reg	= HI6421_REG_TO_BUS_ADDR(vreg),	\
vreg               73 drivers/regulator/hi6421v530-regulator.c #define HI6421V530_LDO(_ID, v_table, vreg, vmask, ereg, emask,		\
vreg               85 drivers/regulator/hi6421v530-regulator.c 		.vsel_reg	 = HI6421_REG_TO_BUS_ADDR(vreg),	\
vreg              107 drivers/regulator/hi655x-regulator.c #define HI655X_LDO(_ID, vreg, vmask, ereg, dreg,                 \
vreg              119 drivers/regulator/hi655x-regulator.c 		.vsel_reg        = HI655X_BUS_ADDR(vreg),        \
vreg              128 drivers/regulator/hi655x-regulator.c #define HI655X_LDO_LINEAR(_ID, vreg, vmask, ereg, dreg,          \
vreg              141 drivers/regulator/hi655x-regulator.c 		.vsel_reg        = HI655X_BUS_ADDR(vreg),        \
vreg               39 drivers/regulator/mt6323-regulator.c #define MT6323_BUCK(match, vreg, min, max, step, volt_ranges, enreg,	\
vreg               41 drivers/regulator/mt6323-regulator.c [MT6323_ID_##vreg] = {							\
vreg               43 drivers/regulator/mt6323-regulator.c 		.name = #vreg,						\
vreg               47 drivers/regulator/mt6323-regulator.c 		.id = MT6323_ID_##vreg,					\
vreg               63 drivers/regulator/mt6323-regulator.c #define MT6323_LDO(match, vreg, ldo_volt_table, enreg, enbit, vosel,	\
vreg               65 drivers/regulator/mt6323-regulator.c [MT6323_ID_##vreg] = {							\
vreg               67 drivers/regulator/mt6323-regulator.c 		.name = #vreg,						\
vreg               71 drivers/regulator/mt6323-regulator.c 		.id = MT6323_ID_##vreg,					\
vreg               85 drivers/regulator/mt6323-regulator.c #define MT6323_REG_FIXED(match, vreg, enreg, enbit, volt,		\
vreg               87 drivers/regulator/mt6323-regulator.c [MT6323_ID_##vreg] = {							\
vreg               89 drivers/regulator/mt6323-regulator.c 		.name = #vreg,						\
vreg               93 drivers/regulator/mt6323-regulator.c 		.id = MT6323_ID_##vreg,					\
vreg               40 drivers/regulator/mt6358-regulator.c #define MT6358_BUCK(match, vreg, min, max, step,		\
vreg               43 drivers/regulator/mt6358-regulator.c [MT6358_ID_##vreg] = {	\
vreg               45 drivers/regulator/mt6358-regulator.c 		.name = #vreg,	\
vreg               49 drivers/regulator/mt6358-regulator.c 		.id = MT6358_ID_##vreg,		\
vreg               54 drivers/regulator/mt6358-regulator.c 		.vsel_reg = MT6358_BUCK_##vreg##_ELR0,	\
vreg               56 drivers/regulator/mt6358-regulator.c 		.enable_reg = MT6358_BUCK_##vreg##_CON0,	\
vreg               60 drivers/regulator/mt6358-regulator.c 	.status_reg = MT6358_BUCK_##vreg##_DBG1,	\
vreg               70 drivers/regulator/mt6358-regulator.c #define MT6358_LDO(match, vreg, ldo_volt_table,	\
vreg               73 drivers/regulator/mt6358-regulator.c [MT6358_ID_##vreg] = {	\
vreg               75 drivers/regulator/mt6358-regulator.c 		.name = #vreg,	\
vreg               79 drivers/regulator/mt6358-regulator.c 		.id = MT6358_ID_##vreg,	\
vreg               88 drivers/regulator/mt6358-regulator.c 	.status_reg = MT6358_LDO_##vreg##_CON1,	\
vreg               95 drivers/regulator/mt6358-regulator.c #define MT6358_LDO1(match, vreg, min, max, step,	\
vreg               98 drivers/regulator/mt6358-regulator.c [MT6358_ID_##vreg] = {	\
vreg              100 drivers/regulator/mt6358-regulator.c 		.name = #vreg,	\
vreg              104 drivers/regulator/mt6358-regulator.c 		.id = MT6358_ID_##vreg,	\
vreg              111 drivers/regulator/mt6358-regulator.c 		.enable_reg = MT6358_LDO_##vreg##_CON0,	\
vreg              117 drivers/regulator/mt6358-regulator.c 	.status_reg = MT6358_LDO_##vreg##_DBG1,	\
vreg              121 drivers/regulator/mt6358-regulator.c #define MT6358_REG_FIXED(match, vreg,	\
vreg              123 drivers/regulator/mt6358-regulator.c [MT6358_ID_##vreg] = {	\
vreg              125 drivers/regulator/mt6358-regulator.c 		.name = #vreg,	\
vreg              129 drivers/regulator/mt6358-regulator.c 		.id = MT6358_ID_##vreg,	\
vreg              136 drivers/regulator/mt6358-regulator.c 	.status_reg = MT6358_LDO_##vreg##_CON1,	\
vreg               91 drivers/regulator/mt6380-regulator.c #define MT6380_BUCK(match, vreg, min, max, step, volt_ranges, enreg,	\
vreg               94 drivers/regulator/mt6380-regulator.c [MT6380_ID_##vreg] = {							\
vreg               96 drivers/regulator/mt6380-regulator.c 		.name = #vreg,						\
vreg              100 drivers/regulator/mt6380-regulator.c 		.id = MT6380_ID_##vreg,					\
vreg              115 drivers/regulator/mt6380-regulator.c #define MT6380_LDO(match, vreg, ldo_volt_table, enreg, enbit, vosel,	\
vreg              117 drivers/regulator/mt6380-regulator.c [MT6380_ID_##vreg] = {							\
vreg              119 drivers/regulator/mt6380-regulator.c 		.name = #vreg,						\
vreg              123 drivers/regulator/mt6380-regulator.c 		.id = MT6380_ID_##vreg,					\
vreg              136 drivers/regulator/mt6380-regulator.c #define MT6380_REG_FIXED(match, vreg, enreg, enbit, volt,		\
vreg              138 drivers/regulator/mt6380-regulator.c [MT6380_ID_##vreg] = {							\
vreg              140 drivers/regulator/mt6380-regulator.c 		.name = #vreg,						\
vreg              144 drivers/regulator/mt6380-regulator.c 		.id = MT6380_ID_##vreg,					\
vreg               40 drivers/regulator/mt6397-regulator.c #define MT6397_BUCK(match, vreg, min, max, step, volt_ranges, enreg,	\
vreg               43 drivers/regulator/mt6397-regulator.c [MT6397_ID_##vreg] = {							\
vreg               45 drivers/regulator/mt6397-regulator.c 		.name = #vreg,						\
vreg               49 drivers/regulator/mt6397-regulator.c 		.id = MT6397_ID_##vreg,					\
vreg               68 drivers/regulator/mt6397-regulator.c #define MT6397_LDO(match, vreg, ldo_volt_table, enreg, enbit, vosel,	\
vreg               70 drivers/regulator/mt6397-regulator.c [MT6397_ID_##vreg] = {							\
vreg               72 drivers/regulator/mt6397-regulator.c 		.name = #vreg,						\
vreg               76 drivers/regulator/mt6397-regulator.c 		.id = MT6397_ID_##vreg,					\
vreg               88 drivers/regulator/mt6397-regulator.c #define MT6397_REG_FIXED(match, vreg, enreg, enbit, volt)		\
vreg               89 drivers/regulator/mt6397-regulator.c [MT6397_ID_##vreg] = {							\
vreg               91 drivers/regulator/mt6397-regulator.c 		.name = #vreg,						\
vreg               95 drivers/regulator/mt6397-regulator.c 		.id = MT6397_ID_##vreg,					\
vreg              148 drivers/regulator/pcap-regulator.c 	struct pcap_regulator *vreg = &vreg_table[rdev_get_id(rdev)];
vreg              155 drivers/regulator/pcap-regulator.c 	return ezx_pcap_set_bits(pcap, vreg->reg,
vreg              156 drivers/regulator/pcap-regulator.c 				 (rdev->desc->n_voltages - 1) << vreg->index,
vreg              157 drivers/regulator/pcap-regulator.c 				 selector << vreg->index);
vreg              162 drivers/regulator/pcap-regulator.c 	struct pcap_regulator *vreg = &vreg_table[rdev_get_id(rdev)];
vreg              169 drivers/regulator/pcap-regulator.c 	ezx_pcap_read(pcap, vreg->reg, &tmp);
vreg              170 drivers/regulator/pcap-regulator.c 	tmp = ((tmp >> vreg->index) & (rdev->desc->n_voltages - 1));
vreg              176 drivers/regulator/pcap-regulator.c 	struct pcap_regulator *vreg = &vreg_table[rdev_get_id(rdev)];
vreg              179 drivers/regulator/pcap-regulator.c 	if (vreg->en == NA)
vreg              182 drivers/regulator/pcap-regulator.c 	return ezx_pcap_set_bits(pcap, vreg->reg, 1 << vreg->en, 1 << vreg->en);
vreg              187 drivers/regulator/pcap-regulator.c 	struct pcap_regulator *vreg = &vreg_table[rdev_get_id(rdev)];
vreg              190 drivers/regulator/pcap-regulator.c 	if (vreg->en == NA)
vreg              193 drivers/regulator/pcap-regulator.c 	return ezx_pcap_set_bits(pcap, vreg->reg, 1 << vreg->en, 0);
vreg              198 drivers/regulator/pcap-regulator.c 	struct pcap_regulator *vreg = &vreg_table[rdev_get_id(rdev)];
vreg              202 drivers/regulator/pcap-regulator.c 	if (vreg->en == NA)
vreg              205 drivers/regulator/pcap-regulator.c 	ezx_pcap_read(pcap, vreg->reg, &tmp);
vreg              206 drivers/regulator/pcap-regulator.c 	return (tmp >> vreg->en) & 1;
vreg              161 drivers/regulator/qcom-rpmh-regulator.c static int rpmh_regulator_send_request(struct rpmh_vreg *vreg,
vreg              166 drivers/regulator/qcom-rpmh-regulator.c 	if (wait_for_ack || vreg->always_wait_for_ack)
vreg              167 drivers/regulator/qcom-rpmh-regulator.c 		ret = rpmh_write(vreg->dev, RPMH_ACTIVE_ONLY_STATE, cmd, 1);
vreg              169 drivers/regulator/qcom-rpmh-regulator.c 		ret = rpmh_write_async(vreg->dev, RPMH_ACTIVE_ONLY_STATE, cmd,
vreg              178 drivers/regulator/qcom-rpmh-regulator.c 	struct rpmh_vreg *vreg = rdev_get_drvdata(rdev);
vreg              180 drivers/regulator/qcom-rpmh-regulator.c 		.addr = vreg->addr + RPMH_REGULATOR_REG_VRM_VOLTAGE,
vreg              188 drivers/regulator/qcom-rpmh-regulator.c 	ret = rpmh_regulator_send_request(vreg, &cmd, wait_for_ack);
vreg              190 drivers/regulator/qcom-rpmh-regulator.c 		vreg->voltage_selector = selector;
vreg              198 drivers/regulator/qcom-rpmh-regulator.c 	struct rpmh_vreg *vreg = rdev_get_drvdata(rdev);
vreg              200 drivers/regulator/qcom-rpmh-regulator.c 	if (vreg->enabled == -EINVAL) {
vreg              205 drivers/regulator/qcom-rpmh-regulator.c 		vreg->voltage_selector = selector;
vreg              210 drivers/regulator/qcom-rpmh-regulator.c 					selector > vreg->voltage_selector);
vreg              215 drivers/regulator/qcom-rpmh-regulator.c 	struct rpmh_vreg *vreg = rdev_get_drvdata(rdev);
vreg              217 drivers/regulator/qcom-rpmh-regulator.c 	return vreg->voltage_selector;
vreg              222 drivers/regulator/qcom-rpmh-regulator.c 	struct rpmh_vreg *vreg = rdev_get_drvdata(rdev);
vreg              224 drivers/regulator/qcom-rpmh-regulator.c 	return vreg->enabled;
vreg              230 drivers/regulator/qcom-rpmh-regulator.c 	struct rpmh_vreg *vreg = rdev_get_drvdata(rdev);
vreg              232 drivers/regulator/qcom-rpmh-regulator.c 		.addr = vreg->addr + RPMH_REGULATOR_REG_ENABLE,
vreg              237 drivers/regulator/qcom-rpmh-regulator.c 	if (vreg->enabled == -EINVAL &&
vreg              238 drivers/regulator/qcom-rpmh-regulator.c 	    vreg->voltage_selector != -ENOTRECOVERABLE) {
vreg              240 drivers/regulator/qcom-rpmh-regulator.c 						vreg->voltage_selector, true);
vreg              245 drivers/regulator/qcom-rpmh-regulator.c 	ret = rpmh_regulator_send_request(vreg, &cmd, enable);
vreg              247 drivers/regulator/qcom-rpmh-regulator.c 		vreg->enabled = enable;
vreg              262 drivers/regulator/qcom-rpmh-regulator.c static int rpmh_regulator_vrm_set_mode_bypass(struct rpmh_vreg *vreg,
vreg              266 drivers/regulator/qcom-rpmh-regulator.c 		.addr = vreg->addr + RPMH_REGULATOR_REG_VRM_MODE,
vreg              273 drivers/regulator/qcom-rpmh-regulator.c 	pmic_mode = vreg->hw_data->pmic_mode_map[mode];
vreg              282 drivers/regulator/qcom-rpmh-regulator.c 	return rpmh_regulator_send_request(vreg, &cmd, true);
vreg              288 drivers/regulator/qcom-rpmh-regulator.c 	struct rpmh_vreg *vreg = rdev_get_drvdata(rdev);
vreg              291 drivers/regulator/qcom-rpmh-regulator.c 	if (mode == vreg->mode)
vreg              294 drivers/regulator/qcom-rpmh-regulator.c 	ret = rpmh_regulator_vrm_set_mode_bypass(vreg, mode, vreg->bypassed);
vreg              296 drivers/regulator/qcom-rpmh-regulator.c 		vreg->mode = mode;
vreg              303 drivers/regulator/qcom-rpmh-regulator.c 	struct rpmh_vreg *vreg = rdev_get_drvdata(rdev);
vreg              305 drivers/regulator/qcom-rpmh-regulator.c 	return vreg->mode;
vreg              321 drivers/regulator/qcom-rpmh-regulator.c 	struct rpmh_vreg *vreg = rdev_get_drvdata(rdev);
vreg              324 drivers/regulator/qcom-rpmh-regulator.c 	if (load_uA >= vreg->hw_data->hpm_min_load_uA)
vreg              335 drivers/regulator/qcom-rpmh-regulator.c 	struct rpmh_vreg *vreg = rdev_get_drvdata(rdev);
vreg              338 drivers/regulator/qcom-rpmh-regulator.c 	if (vreg->bypassed == enable)
vreg              341 drivers/regulator/qcom-rpmh-regulator.c 	ret = rpmh_regulator_vrm_set_mode_bypass(vreg, vreg->mode, enable);
vreg              343 drivers/regulator/qcom-rpmh-regulator.c 		vreg->bypassed = enable;
vreg              351 drivers/regulator/qcom-rpmh-regulator.c 	struct rpmh_vreg *vreg = rdev_get_drvdata(rdev);
vreg              353 drivers/regulator/qcom-rpmh-regulator.c 	*enable = vreg->bypassed;
vreg              413 drivers/regulator/qcom-rpmh-regulator.c static int rpmh_regulator_init_vreg(struct rpmh_vreg *vreg, struct device *dev,
vreg              424 drivers/regulator/qcom-rpmh-regulator.c 	vreg->dev = dev;
vreg              438 drivers/regulator/qcom-rpmh-regulator.c 	vreg->addr = cmd_db_read_addr(rpmh_resource_name);
vreg              439 drivers/regulator/qcom-rpmh-regulator.c 	if (!vreg->addr) {
vreg              445 drivers/regulator/qcom-rpmh-regulator.c 	vreg->rdesc.name = rpmh_data->name;
vreg              446 drivers/regulator/qcom-rpmh-regulator.c 	vreg->rdesc.supply_name = rpmh_data->supply_name;
vreg              447 drivers/regulator/qcom-rpmh-regulator.c 	vreg->hw_data = rpmh_data->hw_data;
vreg              449 drivers/regulator/qcom-rpmh-regulator.c 	vreg->enabled = -EINVAL;
vreg              450 drivers/regulator/qcom-rpmh-regulator.c 	vreg->voltage_selector = -ENOTRECOVERABLE;
vreg              451 drivers/regulator/qcom-rpmh-regulator.c 	vreg->mode = REGULATOR_MODE_INVALID;
vreg              454 drivers/regulator/qcom-rpmh-regulator.c 		vreg->rdesc.linear_ranges = &rpmh_data->hw_data->voltage_range;
vreg              455 drivers/regulator/qcom-rpmh-regulator.c 		vreg->rdesc.n_linear_ranges = 1;
vreg              456 drivers/regulator/qcom-rpmh-regulator.c 		vreg->rdesc.n_voltages = rpmh_data->hw_data->n_voltages;
vreg              459 drivers/regulator/qcom-rpmh-regulator.c 	vreg->always_wait_for_ack = of_property_read_bool(node,
vreg              462 drivers/regulator/qcom-rpmh-regulator.c 	vreg->rdesc.owner	= THIS_MODULE;
vreg              463 drivers/regulator/qcom-rpmh-regulator.c 	vreg->rdesc.type	= REGULATOR_VOLTAGE;
vreg              464 drivers/regulator/qcom-rpmh-regulator.c 	vreg->rdesc.ops		= vreg->hw_data->ops;
vreg              465 drivers/regulator/qcom-rpmh-regulator.c 	vreg->rdesc.of_map_mode	= vreg->hw_data->of_map_mode;
vreg              467 drivers/regulator/qcom-rpmh-regulator.c 	init_data = of_get_regulator_init_data(dev, node, &vreg->rdesc);
vreg              474 drivers/regulator/qcom-rpmh-regulator.c 		vreg->rdesc.fixed_uV = init_data->constraints.min_uV;
vreg              475 drivers/regulator/qcom-rpmh-regulator.c 		vreg->rdesc.n_voltages = 1;
vreg              481 drivers/regulator/qcom-rpmh-regulator.c 	reg_config.driver_data	= vreg;
vreg              483 drivers/regulator/qcom-rpmh-regulator.c 	rdev = devm_regulator_register(dev, &vreg->rdesc, &reg_config);
vreg              492 drivers/regulator/qcom-rpmh-regulator.c 		node, rpmh_resource_name, vreg->addr);
vreg              886 drivers/regulator/qcom-rpmh-regulator.c 	struct rpmh_vreg *vreg;
vreg              901 drivers/regulator/qcom-rpmh-regulator.c 		vreg = devm_kzalloc(dev, sizeof(*vreg), GFP_KERNEL);
vreg              902 drivers/regulator/qcom-rpmh-regulator.c 		if (!vreg) {
vreg              907 drivers/regulator/qcom-rpmh-regulator.c 		ret = rpmh_regulator_init_vreg(vreg, dev, node, pmic_id,
vreg              189 drivers/regulator/qcom_rpm-regulator.c static int rpm_reg_write(struct qcom_rpm_reg *vreg,
vreg              196 drivers/regulator/qcom_rpm-regulator.c 	vreg->val[req->word] &= ~req->mask;
vreg              197 drivers/regulator/qcom_rpm-regulator.c 	vreg->val[req->word] |= value << req->shift;
vreg              199 drivers/regulator/qcom_rpm-regulator.c 	return qcom_rpm_write(vreg->rpm,
vreg              201 drivers/regulator/qcom_rpm-regulator.c 			      vreg->resource,
vreg              202 drivers/regulator/qcom_rpm-regulator.c 			      vreg->val,
vreg              203 drivers/regulator/qcom_rpm-regulator.c 			      vreg->parts->request_len);
vreg              209 drivers/regulator/qcom_rpm-regulator.c 	struct qcom_rpm_reg *vreg = rdev_get_drvdata(rdev);
vreg              210 drivers/regulator/qcom_rpm-regulator.c 	const struct rpm_reg_parts *parts = vreg->parts;
vreg              222 drivers/regulator/qcom_rpm-regulator.c 	mutex_lock(&vreg->lock);
vreg              223 drivers/regulator/qcom_rpm-regulator.c 	if (vreg->is_enabled)
vreg              224 drivers/regulator/qcom_rpm-regulator.c 		ret = rpm_reg_write(vreg, req, uV / 1000);
vreg              227 drivers/regulator/qcom_rpm-regulator.c 		vreg->uV = uV;
vreg              228 drivers/regulator/qcom_rpm-regulator.c 	mutex_unlock(&vreg->lock);
vreg              236 drivers/regulator/qcom_rpm-regulator.c 	struct qcom_rpm_reg *vreg = rdev_get_drvdata(rdev);
vreg              237 drivers/regulator/qcom_rpm-regulator.c 	const struct rpm_reg_parts *parts = vreg->parts;
vreg              249 drivers/regulator/qcom_rpm-regulator.c 	mutex_lock(&vreg->lock);
vreg              250 drivers/regulator/qcom_rpm-regulator.c 	if (vreg->is_enabled)
vreg              251 drivers/regulator/qcom_rpm-regulator.c 		ret = rpm_reg_write(vreg, req, uV);
vreg              254 drivers/regulator/qcom_rpm-regulator.c 		vreg->uV = uV;
vreg              255 drivers/regulator/qcom_rpm-regulator.c 	mutex_unlock(&vreg->lock);
vreg              262 drivers/regulator/qcom_rpm-regulator.c 	struct qcom_rpm_reg *vreg = rdev_get_drvdata(rdev);
vreg              264 drivers/regulator/qcom_rpm-regulator.c 	return vreg->uV;
vreg              269 drivers/regulator/qcom_rpm-regulator.c 	struct qcom_rpm_reg *vreg = rdev_get_drvdata(rdev);
vreg              270 drivers/regulator/qcom_rpm-regulator.c 	const struct rpm_reg_parts *parts = vreg->parts;
vreg              277 drivers/regulator/qcom_rpm-regulator.c 	mutex_lock(&vreg->lock);
vreg              278 drivers/regulator/qcom_rpm-regulator.c 	ret = rpm_reg_write(vreg, req, vreg->uV / 1000);
vreg              280 drivers/regulator/qcom_rpm-regulator.c 		vreg->is_enabled = 1;
vreg              281 drivers/regulator/qcom_rpm-regulator.c 	mutex_unlock(&vreg->lock);
vreg              288 drivers/regulator/qcom_rpm-regulator.c 	struct qcom_rpm_reg *vreg = rdev_get_drvdata(rdev);
vreg              289 drivers/regulator/qcom_rpm-regulator.c 	const struct rpm_reg_parts *parts = vreg->parts;
vreg              296 drivers/regulator/qcom_rpm-regulator.c 	mutex_lock(&vreg->lock);
vreg              297 drivers/regulator/qcom_rpm-regulator.c 	ret = rpm_reg_write(vreg, req, vreg->uV);
vreg              299 drivers/regulator/qcom_rpm-regulator.c 		vreg->is_enabled = 1;
vreg              300 drivers/regulator/qcom_rpm-regulator.c 	mutex_unlock(&vreg->lock);
vreg              307 drivers/regulator/qcom_rpm-regulator.c 	struct qcom_rpm_reg *vreg = rdev_get_drvdata(rdev);
vreg              308 drivers/regulator/qcom_rpm-regulator.c 	const struct rpm_reg_parts *parts = vreg->parts;
vreg              315 drivers/regulator/qcom_rpm-regulator.c 	mutex_lock(&vreg->lock);
vreg              316 drivers/regulator/qcom_rpm-regulator.c 	ret = rpm_reg_write(vreg, req, 1);
vreg              318 drivers/regulator/qcom_rpm-regulator.c 		vreg->is_enabled = 1;
vreg              319 drivers/regulator/qcom_rpm-regulator.c 	mutex_unlock(&vreg->lock);
vreg              326 drivers/regulator/qcom_rpm-regulator.c 	struct qcom_rpm_reg *vreg = rdev_get_drvdata(rdev);
vreg              327 drivers/regulator/qcom_rpm-regulator.c 	const struct rpm_reg_parts *parts = vreg->parts;
vreg              334 drivers/regulator/qcom_rpm-regulator.c 	mutex_lock(&vreg->lock);
vreg              335 drivers/regulator/qcom_rpm-regulator.c 	ret = rpm_reg_write(vreg, req, 0);
vreg              337 drivers/regulator/qcom_rpm-regulator.c 		vreg->is_enabled = 0;
vreg              338 drivers/regulator/qcom_rpm-regulator.c 	mutex_unlock(&vreg->lock);
vreg              345 drivers/regulator/qcom_rpm-regulator.c 	struct qcom_rpm_reg *vreg = rdev_get_drvdata(rdev);
vreg              346 drivers/regulator/qcom_rpm-regulator.c 	const struct rpm_reg_parts *parts = vreg->parts;
vreg              353 drivers/regulator/qcom_rpm-regulator.c 	mutex_lock(&vreg->lock);
vreg              354 drivers/regulator/qcom_rpm-regulator.c 	ret = rpm_reg_write(vreg, req, 0);
vreg              356 drivers/regulator/qcom_rpm-regulator.c 		vreg->is_enabled = 0;
vreg              357 drivers/regulator/qcom_rpm-regulator.c 	mutex_unlock(&vreg->lock);
vreg              364 drivers/regulator/qcom_rpm-regulator.c 	struct qcom_rpm_reg *vreg = rdev_get_drvdata(rdev);
vreg              365 drivers/regulator/qcom_rpm-regulator.c 	const struct rpm_reg_parts *parts = vreg->parts;
vreg              372 drivers/regulator/qcom_rpm-regulator.c 	mutex_lock(&vreg->lock);
vreg              373 drivers/regulator/qcom_rpm-regulator.c 	ret = rpm_reg_write(vreg, req, 0);
vreg              375 drivers/regulator/qcom_rpm-regulator.c 		vreg->is_enabled = 0;
vreg              376 drivers/regulator/qcom_rpm-regulator.c 	mutex_unlock(&vreg->lock);
vreg              383 drivers/regulator/qcom_rpm-regulator.c 	struct qcom_rpm_reg *vreg = rdev_get_drvdata(rdev);
vreg              385 drivers/regulator/qcom_rpm-regulator.c 	return vreg->is_enabled;
vreg              390 drivers/regulator/qcom_rpm-regulator.c 	struct qcom_rpm_reg *vreg = rdev_get_drvdata(rdev);
vreg              391 drivers/regulator/qcom_rpm-regulator.c 	const struct rpm_reg_parts *parts = vreg->parts;
vreg              403 drivers/regulator/qcom_rpm-regulator.c 	mutex_lock(&vreg->lock);
vreg              404 drivers/regulator/qcom_rpm-regulator.c 	ret = rpm_reg_write(vreg, req, load_mA);
vreg              405 drivers/regulator/qcom_rpm-regulator.c 	mutex_unlock(&vreg->lock);
vreg              640 drivers/regulator/qcom_rpm-regulator.c static int rpm_reg_set(struct qcom_rpm_reg *vreg,
vreg              647 drivers/regulator/qcom_rpm-regulator.c 	vreg->val[req->word] &= ~req->mask;
vreg              648 drivers/regulator/qcom_rpm-regulator.c 	vreg->val[req->word] |= value << req->shift;
vreg              655 drivers/regulator/qcom_rpm-regulator.c 				 struct qcom_rpm_reg *vreg)
vreg              677 drivers/regulator/qcom_rpm-regulator.c 			rpm_reg_set(vreg, &vreg->parts->freq, i + 1);
vreg              690 drivers/regulator/qcom_rpm-regulator.c 	struct qcom_rpm_reg *vreg = config->driver_data;
vreg              700 drivers/regulator/qcom_rpm-regulator.c 		ret = rpm_reg_set(vreg, &vreg->parts->pd, 1);
vreg              707 drivers/regulator/qcom_rpm-regulator.c 	if (vreg->parts->freq.mask) {
vreg              708 drivers/regulator/qcom_rpm-regulator.c 		ret = rpm_reg_of_parse_freq(dev, node, vreg);
vreg              713 drivers/regulator/qcom_rpm-regulator.c 	if (vreg->parts->pm.mask) {
vreg              717 drivers/regulator/qcom_rpm-regulator.c 		ret = rpm_reg_set(vreg, &vreg->parts->pm, pwm);
vreg              724 drivers/regulator/qcom_rpm-regulator.c 	if (vreg->parts->fm.mask) {
vreg              751 drivers/regulator/qcom_rpm-regulator.c 			if (FORCE_MODE_IS_2_BITS(vreg))
vreg              757 drivers/regulator/qcom_rpm-regulator.c 			if (vreg->supports_force_mode_auto)
vreg              761 drivers/regulator/qcom_rpm-regulator.c 			if (vreg->supports_force_mode_bypass)
vreg              771 drivers/regulator/qcom_rpm-regulator.c 		ret = rpm_reg_set(vreg, &vreg->parts->fm, force_mode);
vreg              944 drivers/regulator/qcom_rpm-regulator.c 	struct qcom_rpm_reg *vreg;
vreg              960 drivers/regulator/qcom_rpm-regulator.c 		vreg = devm_kmalloc(&pdev->dev, sizeof(*vreg), GFP_KERNEL);
vreg              961 drivers/regulator/qcom_rpm-regulator.c 		if (!vreg)
vreg              964 drivers/regulator/qcom_rpm-regulator.c 		memcpy(vreg, reg->template, sizeof(*vreg));
vreg              965 drivers/regulator/qcom_rpm-regulator.c 		mutex_init(&vreg->lock);
vreg              967 drivers/regulator/qcom_rpm-regulator.c 		vreg->dev = &pdev->dev;
vreg              968 drivers/regulator/qcom_rpm-regulator.c 		vreg->resource = reg->resource;
vreg              969 drivers/regulator/qcom_rpm-regulator.c 		vreg->rpm = rpm;
vreg              971 drivers/regulator/qcom_rpm-regulator.c 		vreg->desc.id = -1;
vreg              972 drivers/regulator/qcom_rpm-regulator.c 		vreg->desc.owner = THIS_MODULE;
vreg              973 drivers/regulator/qcom_rpm-regulator.c 		vreg->desc.type = REGULATOR_VOLTAGE;
vreg              974 drivers/regulator/qcom_rpm-regulator.c 		vreg->desc.name = reg->name;
vreg              975 drivers/regulator/qcom_rpm-regulator.c 		vreg->desc.supply_name = reg->supply;
vreg              976 drivers/regulator/qcom_rpm-regulator.c 		vreg->desc.of_match = reg->name;
vreg              977 drivers/regulator/qcom_rpm-regulator.c 		vreg->desc.of_parse_cb = rpm_reg_of_parse;
vreg              980 drivers/regulator/qcom_rpm-regulator.c 		config.driver_data = vreg;
vreg              981 drivers/regulator/qcom_rpm-regulator.c 		rdev = devm_regulator_register(&pdev->dev, &vreg->desc, &config);
vreg               43 drivers/regulator/qcom_smd-regulator.c static int rpm_reg_write_active(struct qcom_rpm_reg *vreg)
vreg               49 drivers/regulator/qcom_smd-regulator.c 	if (vreg->enabled_updated) {
vreg               52 drivers/regulator/qcom_smd-regulator.c 		req[reqlen].value = cpu_to_le32(vreg->is_enabled);
vreg               56 drivers/regulator/qcom_smd-regulator.c 	if (vreg->uv_updated && vreg->is_enabled) {
vreg               59 drivers/regulator/qcom_smd-regulator.c 		req[reqlen].value = cpu_to_le32(vreg->uV);
vreg               63 drivers/regulator/qcom_smd-regulator.c 	if (vreg->load_updated && vreg->is_enabled) {
vreg               66 drivers/regulator/qcom_smd-regulator.c 		req[reqlen].value = cpu_to_le32(vreg->load / 1000);
vreg               73 drivers/regulator/qcom_smd-regulator.c 	ret = qcom_rpm_smd_write(vreg->rpm, QCOM_SMD_RPM_ACTIVE_STATE,
vreg               74 drivers/regulator/qcom_smd-regulator.c 				 vreg->type, vreg->id,
vreg               77 drivers/regulator/qcom_smd-regulator.c 		vreg->enabled_updated = 0;
vreg               78 drivers/regulator/qcom_smd-regulator.c 		vreg->uv_updated = 0;
vreg               79 drivers/regulator/qcom_smd-regulator.c 		vreg->load_updated = 0;
vreg               87 drivers/regulator/qcom_smd-regulator.c 	struct qcom_rpm_reg *vreg = rdev_get_drvdata(rdev);
vreg               90 drivers/regulator/qcom_smd-regulator.c 	vreg->is_enabled = 1;
vreg               91 drivers/regulator/qcom_smd-regulator.c 	vreg->enabled_updated = 1;
vreg               93 drivers/regulator/qcom_smd-regulator.c 	ret = rpm_reg_write_active(vreg);
vreg               95 drivers/regulator/qcom_smd-regulator.c 		vreg->is_enabled = 0;
vreg              102 drivers/regulator/qcom_smd-regulator.c 	struct qcom_rpm_reg *vreg = rdev_get_drvdata(rdev);
vreg              104 drivers/regulator/qcom_smd-regulator.c 	return vreg->is_enabled;
vreg              109 drivers/regulator/qcom_smd-regulator.c 	struct qcom_rpm_reg *vreg = rdev_get_drvdata(rdev);
vreg              112 drivers/regulator/qcom_smd-regulator.c 	vreg->is_enabled = 0;
vreg              113 drivers/regulator/qcom_smd-regulator.c 	vreg->enabled_updated = 1;
vreg              115 drivers/regulator/qcom_smd-regulator.c 	ret = rpm_reg_write_active(vreg);
vreg              117 drivers/regulator/qcom_smd-regulator.c 		vreg->is_enabled = 1;
vreg              124 drivers/regulator/qcom_smd-regulator.c 	struct qcom_rpm_reg *vreg = rdev_get_drvdata(rdev);
vreg              126 drivers/regulator/qcom_smd-regulator.c 	return vreg->uV;
vreg              134 drivers/regulator/qcom_smd-regulator.c 	struct qcom_rpm_reg *vreg = rdev_get_drvdata(rdev);
vreg              136 drivers/regulator/qcom_smd-regulator.c 	int old_uV = vreg->uV;
vreg              138 drivers/regulator/qcom_smd-regulator.c 	vreg->uV = min_uV;
vreg              139 drivers/regulator/qcom_smd-regulator.c 	vreg->uv_updated = 1;
vreg              141 drivers/regulator/qcom_smd-regulator.c 	ret = rpm_reg_write_active(vreg);
vreg              143 drivers/regulator/qcom_smd-regulator.c 		vreg->uV = old_uV;
vreg              150 drivers/regulator/qcom_smd-regulator.c 	struct qcom_rpm_reg *vreg = rdev_get_drvdata(rdev);
vreg              151 drivers/regulator/qcom_smd-regulator.c 	u32 old_load = vreg->load;
vreg              154 drivers/regulator/qcom_smd-regulator.c 	vreg->load = load_uA;
vreg              155 drivers/regulator/qcom_smd-regulator.c 	vreg->load_updated = 1;
vreg              156 drivers/regulator/qcom_smd-regulator.c 	ret = rpm_reg_write_active(vreg);
vreg              158 drivers/regulator/qcom_smd-regulator.c 		vreg->load = old_load;
vreg              785 drivers/regulator/qcom_smd-regulator.c 	struct qcom_rpm_reg *vreg;
vreg              801 drivers/regulator/qcom_smd-regulator.c 		vreg = devm_kzalloc(&pdev->dev, sizeof(*vreg), GFP_KERNEL);
vreg              802 drivers/regulator/qcom_smd-regulator.c 		if (!vreg)
vreg              805 drivers/regulator/qcom_smd-regulator.c 		vreg->dev = &pdev->dev;
vreg              806 drivers/regulator/qcom_smd-regulator.c 		vreg->type = reg->type;
vreg              807 drivers/regulator/qcom_smd-regulator.c 		vreg->id = reg->id;
vreg              808 drivers/regulator/qcom_smd-regulator.c 		vreg->rpm = rpm;
vreg              810 drivers/regulator/qcom_smd-regulator.c 		memcpy(&vreg->desc, reg->desc, sizeof(vreg->desc));
vreg              812 drivers/regulator/qcom_smd-regulator.c 		vreg->desc.id = -1;
vreg              813 drivers/regulator/qcom_smd-regulator.c 		vreg->desc.owner = THIS_MODULE;
vreg              814 drivers/regulator/qcom_smd-regulator.c 		vreg->desc.type = REGULATOR_VOLTAGE;
vreg              815 drivers/regulator/qcom_smd-regulator.c 		vreg->desc.name = reg->name;
vreg              816 drivers/regulator/qcom_smd-regulator.c 		vreg->desc.supply_name = reg->supply;
vreg              817 drivers/regulator/qcom_smd-regulator.c 		vreg->desc.of_match = reg->name;
vreg              820 drivers/regulator/qcom_smd-regulator.c 		config.driver_data = vreg;
vreg              821 drivers/regulator/qcom_smd-regulator.c 		rdev = devm_regulator_register(&pdev->dev, &vreg->desc, &config);
vreg              535 drivers/regulator/qcom_spmi-regulator.c static inline int spmi_vreg_read(struct spmi_regulator *vreg, u16 addr, u8 *buf,
vreg              538 drivers/regulator/qcom_spmi-regulator.c 	return regmap_bulk_read(vreg->regmap, vreg->base + addr, buf, len);
vreg              541 drivers/regulator/qcom_spmi-regulator.c static inline int spmi_vreg_write(struct spmi_regulator *vreg, u16 addr,
vreg              544 drivers/regulator/qcom_spmi-regulator.c 	return regmap_bulk_write(vreg->regmap, vreg->base + addr, buf, len);
vreg              547 drivers/regulator/qcom_spmi-regulator.c static int spmi_vreg_update_bits(struct spmi_regulator *vreg, u16 addr, u8 val,
vreg              550 drivers/regulator/qcom_spmi-regulator.c 	return regmap_update_bits(vreg->regmap, vreg->base + addr, mask, val);
vreg              555 drivers/regulator/qcom_spmi-regulator.c 	struct spmi_regulator *vreg = rdev_get_drvdata(rdev);
vreg              557 drivers/regulator/qcom_spmi-regulator.c 	if (vreg->ocp_irq) {
vreg              558 drivers/regulator/qcom_spmi-regulator.c 		vreg->ocp_count = 0;
vreg              559 drivers/regulator/qcom_spmi-regulator.c 		vreg->vs_enable_time = ktime_get();
vreg              567 drivers/regulator/qcom_spmi-regulator.c 	struct spmi_regulator *vreg = rdev_get_drvdata(rdev);
vreg              570 drivers/regulator/qcom_spmi-regulator.c 	return spmi_vreg_write(vreg, SPMI_VS_REG_OCP, &reg, 1);
vreg              573 drivers/regulator/qcom_spmi-regulator.c static int spmi_regulator_select_voltage(struct spmi_regulator *vreg,
vreg              582 drivers/regulator/qcom_spmi-regulator.c 	lim_min_uV = vreg->set_points->range[0].set_point_min_uV;
vreg              584 drivers/regulator/qcom_spmi-regulator.c 	  vreg->set_points->range[vreg->set_points->count - 1].set_point_max_uV;
vreg              590 drivers/regulator/qcom_spmi-regulator.c 		dev_err(vreg->dev,
vreg              597 drivers/regulator/qcom_spmi-regulator.c 	for (i = vreg->set_points->count - 1; i > 0; i--) {
vreg              598 drivers/regulator/qcom_spmi-regulator.c 		range_max_uV = vreg->set_points->range[i - 1].set_point_max_uV;
vreg              604 drivers/regulator/qcom_spmi-regulator.c 	range = &vreg->set_points->range[range_id];
vreg              614 drivers/regulator/qcom_spmi-regulator.c 		dev_err(vreg->dev,
vreg              623 drivers/regulator/qcom_spmi-regulator.c 		selector += vreg->set_points->range[i].n_voltages;
vreg              629 drivers/regulator/qcom_spmi-regulator.c static int spmi_sw_selector_to_hw(struct spmi_regulator *vreg,
vreg              636 drivers/regulator/qcom_spmi-regulator.c 	range = vreg->set_points->range;
vreg              637 drivers/regulator/qcom_spmi-regulator.c 	end = range + vreg->set_points->count;
vreg              658 drivers/regulator/qcom_spmi-regulator.c static int spmi_hw_selector_to_sw(struct spmi_regulator *vreg, u8 hw_sel,
vreg              663 drivers/regulator/qcom_spmi-regulator.c 	const struct spmi_voltage_range *r = vreg->set_points->range;
vreg              664 drivers/regulator/qcom_spmi-regulator.c 	const struct spmi_voltage_range *end = r + vreg->set_points->count;
vreg              693 drivers/regulator/qcom_spmi-regulator.c spmi_regulator_find_range(struct spmi_regulator *vreg)
vreg              698 drivers/regulator/qcom_spmi-regulator.c 	range = vreg->set_points->range;
vreg              699 drivers/regulator/qcom_spmi-regulator.c 	end = range + vreg->set_points->count;
vreg              701 drivers/regulator/qcom_spmi-regulator.c 	spmi_vreg_read(vreg, SPMI_COMMON_REG_VOLTAGE_RANGE, &range_sel, 1);
vreg              710 drivers/regulator/qcom_spmi-regulator.c static int spmi_regulator_select_voltage_same_range(struct spmi_regulator *vreg,
vreg              717 drivers/regulator/qcom_spmi-regulator.c 	range = spmi_regulator_find_range(vreg);
vreg              745 drivers/regulator/qcom_spmi-regulator.c 	for (i = 0; i < vreg->set_points->count; i++) {
vreg              746 drivers/regulator/qcom_spmi-regulator.c 		if (uV >= vreg->set_points->range[i].set_point_min_uV
vreg              747 drivers/regulator/qcom_spmi-regulator.c 		    && uV <= vreg->set_points->range[i].set_point_max_uV) {
vreg              749 drivers/regulator/qcom_spmi-regulator.c 			    (uV - vreg->set_points->range[i].set_point_min_uV)
vreg              750 drivers/regulator/qcom_spmi-regulator.c 				/ vreg->set_points->range[i].step_uV;
vreg              754 drivers/regulator/qcom_spmi-regulator.c 		selector += vreg->set_points->range[i].n_voltages;
vreg              757 drivers/regulator/qcom_spmi-regulator.c 	if (selector >= vreg->set_points->n_voltages)
vreg              763 drivers/regulator/qcom_spmi-regulator.c 	return spmi_regulator_select_voltage(vreg, min_uV, max_uV);
vreg              769 drivers/regulator/qcom_spmi-regulator.c 	struct spmi_regulator *vreg = rdev_get_drvdata(rdev);
vreg              775 drivers/regulator/qcom_spmi-regulator.c 	return spmi_regulator_select_voltage_same_range(vreg, min_uV, max_uV);
vreg              781 drivers/regulator/qcom_spmi-regulator.c 	struct spmi_regulator *vreg = rdev_get_drvdata(rdev);
vreg              786 drivers/regulator/qcom_spmi-regulator.c 	ret = spmi_sw_selector_to_hw(vreg, selector, &range_sel, &voltage_sel);
vreg              792 drivers/regulator/qcom_spmi-regulator.c 	return spmi_vreg_write(vreg, SPMI_COMMON_REG_VOLTAGE_RANGE, buf, 2);
vreg              801 drivers/regulator/qcom_spmi-regulator.c 	struct spmi_regulator *vreg = rdev_get_drvdata(rdev);
vreg              809 drivers/regulator/qcom_spmi-regulator.c 	return spmi_vreg_write(vreg, SPMI_FTSMPS426_REG_VOLTAGE_LSB, buf, 2);
vreg              815 drivers/regulator/qcom_spmi-regulator.c 	struct spmi_regulator *vreg = rdev_get_drvdata(rdev);
vreg              821 drivers/regulator/qcom_spmi-regulator.c 	return DIV_ROUND_UP(diff_uV, vreg->slew_rate);
vreg              826 drivers/regulator/qcom_spmi-regulator.c 	struct spmi_regulator *vreg = rdev_get_drvdata(rdev);
vreg              830 drivers/regulator/qcom_spmi-regulator.c 	spmi_vreg_read(vreg, SPMI_COMMON_REG_VOLTAGE_SET, &voltage_sel, 1);
vreg              832 drivers/regulator/qcom_spmi-regulator.c 	range = spmi_regulator_find_range(vreg);
vreg              836 drivers/regulator/qcom_spmi-regulator.c 	return spmi_hw_selector_to_sw(vreg, voltage_sel, range);
vreg              841 drivers/regulator/qcom_spmi-regulator.c 	struct spmi_regulator *vreg = rdev_get_drvdata(rdev);
vreg              846 drivers/regulator/qcom_spmi-regulator.c 	spmi_vreg_read(vreg, SPMI_FTSMPS426_REG_VOLTAGE_LSB, buf, 2);
vreg              849 drivers/regulator/qcom_spmi-regulator.c 	range = vreg->set_points->range;
vreg              857 drivers/regulator/qcom_spmi-regulator.c 	struct spmi_regulator *vreg = rdev_get_drvdata(rdev);
vreg              859 drivers/regulator/qcom_spmi-regulator.c 	return spmi_regulator_select_voltage(vreg, min_uV, max_uV);
vreg              865 drivers/regulator/qcom_spmi-regulator.c 	struct spmi_regulator *vreg = rdev_get_drvdata(rdev);
vreg              872 drivers/regulator/qcom_spmi-regulator.c 	return spmi_vreg_write(vreg, SPMI_COMMON_REG_VOLTAGE_SET, &sel, 1);
vreg              877 drivers/regulator/qcom_spmi-regulator.c 	struct spmi_regulator *vreg = rdev_get_drvdata(rdev);
vreg              881 drivers/regulator/qcom_spmi-regulator.c 	ret = spmi_vreg_read(vreg, SPMI_COMMON_REG_VOLTAGE_SET, &selector, 1);
vreg              891 drivers/regulator/qcom_spmi-regulator.c 	struct spmi_regulator *vreg = rdev_get_drvdata(rdev);
vreg              895 drivers/regulator/qcom_spmi-regulator.c 	ret = spmi_sw_selector_to_hw(vreg, selector, &range_sel, &voltage_sel);
vreg              909 drivers/regulator/qcom_spmi-regulator.c 	return spmi_vreg_update_bits(vreg, SPMI_COMMON_REG_VOLTAGE_SET,
vreg              915 drivers/regulator/qcom_spmi-regulator.c 	struct spmi_regulator *vreg = rdev_get_drvdata(rdev);
vreg              919 drivers/regulator/qcom_spmi-regulator.c 	spmi_vreg_read(vreg, SPMI_COMMON_REG_VOLTAGE_SET, &voltage_sel, 1);
vreg              921 drivers/regulator/qcom_spmi-regulator.c 	range = spmi_regulator_find_range(vreg);
vreg              928 drivers/regulator/qcom_spmi-regulator.c 	return spmi_hw_selector_to_sw(vreg, voltage_sel, range);
vreg              934 drivers/regulator/qcom_spmi-regulator.c 	struct spmi_regulator *vreg = rdev_get_drvdata(rdev);
vreg              938 drivers/regulator/qcom_spmi-regulator.c 	if (selector >= vreg->set_points->n_voltages)
vreg              941 drivers/regulator/qcom_spmi-regulator.c 	for (i = 0; i < vreg->set_points->count; i++) {
vreg              942 drivers/regulator/qcom_spmi-regulator.c 		if (selector < vreg->set_points->range[i].n_voltages) {
vreg              943 drivers/regulator/qcom_spmi-regulator.c 			uV = selector * vreg->set_points->range[i].step_uV
vreg              944 drivers/regulator/qcom_spmi-regulator.c 				+ vreg->set_points->range[i].set_point_min_uV;
vreg              948 drivers/regulator/qcom_spmi-regulator.c 		selector -= vreg->set_points->range[i].n_voltages;
vreg              957 drivers/regulator/qcom_spmi-regulator.c 	struct spmi_regulator *vreg = rdev_get_drvdata(rdev);
vreg              964 drivers/regulator/qcom_spmi-regulator.c 	return spmi_vreg_update_bits(vreg, SPMI_COMMON_REG_MODE, val, mask);
vreg              970 drivers/regulator/qcom_spmi-regulator.c 	struct spmi_regulator *vreg = rdev_get_drvdata(rdev);
vreg              974 drivers/regulator/qcom_spmi-regulator.c 	ret = spmi_vreg_read(vreg, SPMI_COMMON_REG_MODE, &val, 1);
vreg              982 drivers/regulator/qcom_spmi-regulator.c 	struct spmi_regulator *vreg = rdev_get_drvdata(rdev);
vreg              985 drivers/regulator/qcom_spmi-regulator.c 	spmi_vreg_read(vreg, SPMI_COMMON_REG_MODE, &reg, 1);
vreg             1001 drivers/regulator/qcom_spmi-regulator.c 	struct spmi_regulator *vreg = rdev_get_drvdata(rdev);
vreg             1004 drivers/regulator/qcom_spmi-regulator.c 	spmi_vreg_read(vreg, SPMI_COMMON_REG_MODE, &reg, 1);
vreg             1019 drivers/regulator/qcom_spmi-regulator.c 	struct spmi_regulator *vreg = rdev_get_drvdata(rdev);
vreg             1035 drivers/regulator/qcom_spmi-regulator.c 	return spmi_vreg_update_bits(vreg, SPMI_COMMON_REG_MODE, val, mask);
vreg             1041 drivers/regulator/qcom_spmi-regulator.c 	struct spmi_regulator *vreg = rdev_get_drvdata(rdev);
vreg             1059 drivers/regulator/qcom_spmi-regulator.c 	return spmi_vreg_update_bits(vreg, SPMI_COMMON_REG_MODE, val, mask);
vreg             1065 drivers/regulator/qcom_spmi-regulator.c 	struct spmi_regulator *vreg = rdev_get_drvdata(rdev);
vreg             1068 drivers/regulator/qcom_spmi-regulator.c 	if (load_uA >= vreg->hpm_min_load)
vreg             1078 drivers/regulator/qcom_spmi-regulator.c 	struct spmi_regulator *vreg = rdev_get_drvdata(rdev);
vreg             1081 drivers/regulator/qcom_spmi-regulator.c 	return spmi_vreg_update_bits(vreg, SPMI_COMMON_REG_PULL_DOWN,
vreg             1087 drivers/regulator/qcom_spmi-regulator.c 	struct spmi_regulator *vreg = rdev_get_drvdata(rdev);
vreg             1090 drivers/regulator/qcom_spmi-regulator.c 	return spmi_vreg_update_bits(vreg, SPMI_COMMON_REG_SOFT_START,
vreg             1096 drivers/regulator/qcom_spmi-regulator.c 	struct spmi_regulator *vreg = rdev_get_drvdata(rdev);
vreg             1097 drivers/regulator/qcom_spmi-regulator.c 	enum spmi_regulator_logical_type type = vreg->logical_type;
vreg             1115 drivers/regulator/qcom_spmi-regulator.c 	return spmi_vreg_update_bits(vreg, current_reg, reg, mask);
vreg             1118 drivers/regulator/qcom_spmi-regulator.c static int spmi_regulator_vs_clear_ocp(struct spmi_regulator *vreg)
vreg             1122 drivers/regulator/qcom_spmi-regulator.c 	ret = spmi_vreg_update_bits(vreg, SPMI_COMMON_REG_ENABLE,
vreg             1125 drivers/regulator/qcom_spmi-regulator.c 	vreg->vs_enable_time = ktime_get();
vreg             1127 drivers/regulator/qcom_spmi-regulator.c 	ret = spmi_vreg_update_bits(vreg, SPMI_COMMON_REG_ENABLE,
vreg             1136 drivers/regulator/qcom_spmi-regulator.c 	struct spmi_regulator *vreg
vreg             1139 drivers/regulator/qcom_spmi-regulator.c 	spmi_regulator_vs_clear_ocp(vreg);
vreg             1144 drivers/regulator/qcom_spmi-regulator.c 	struct spmi_regulator *vreg = data;
vreg             1150 drivers/regulator/qcom_spmi-regulator.c 						vreg->vs_enable_time);
vreg             1158 drivers/regulator/qcom_spmi-regulator.c 		vreg->ocp_count = 0;
vreg             1163 drivers/regulator/qcom_spmi-regulator.c 	vreg->ocp_count++;
vreg             1165 drivers/regulator/qcom_spmi-regulator.c 	if (vreg->ocp_count == 1) {
vreg             1167 drivers/regulator/qcom_spmi-regulator.c 		spmi_regulator_vs_clear_ocp(vreg);
vreg             1168 drivers/regulator/qcom_spmi-regulator.c 	} else if (vreg->ocp_count <= vreg->ocp_max_retries) {
vreg             1170 drivers/regulator/qcom_spmi-regulator.c 		schedule_delayed_work(&vreg->ocp_work,
vreg             1171 drivers/regulator/qcom_spmi-regulator.c 			msecs_to_jiffies(vreg->ocp_retry_delay_ms) + 1);
vreg             1173 drivers/regulator/qcom_spmi-regulator.c 		dev_err(vreg->dev,
vreg             1175 drivers/regulator/qcom_spmi-regulator.c 			vreg->ocp_count);
vreg             1243 drivers/regulator/qcom_spmi-regulator.c 	struct spmi_regulator *vreg = rdev_get_drvdata(rdev);
vreg             1247 drivers/regulator/qcom_spmi-regulator.c 	ret = spmi_sw_selector_to_hw(vreg, selector, &range_sel, &voltage_sel);
vreg             1493 drivers/regulator/qcom_spmi-regulator.c static int spmi_regulator_match(struct spmi_regulator *vreg, u16 force_type)
vreg             1501 drivers/regulator/qcom_spmi-regulator.c 	ret = spmi_vreg_read(vreg, SPMI_COMMON_REG_DIG_MAJOR_REV, version,
vreg             1504 drivers/regulator/qcom_spmi-regulator.c 		dev_dbg(vreg->dev, "could not read version registers\n");
vreg             1528 drivers/regulator/qcom_spmi-regulator.c 	dev_err(vreg->dev,
vreg             1530 drivers/regulator/qcom_spmi-regulator.c 		vreg->desc.name, type, subtype, dig_major_rev);
vreg             1535 drivers/regulator/qcom_spmi-regulator.c 	vreg->logical_type	= mapping->logical_type;
vreg             1536 drivers/regulator/qcom_spmi-regulator.c 	vreg->set_points	= mapping->set_points;
vreg             1537 drivers/regulator/qcom_spmi-regulator.c 	vreg->hpm_min_load	= mapping->hpm_min_load;
vreg             1538 drivers/regulator/qcom_spmi-regulator.c 	vreg->desc.ops		= mapping->ops;
vreg             1543 drivers/regulator/qcom_spmi-regulator.c 		vreg->desc.n_voltages = mapping->set_points->n_voltages;
vreg             1549 drivers/regulator/qcom_spmi-regulator.c static int spmi_regulator_init_slew_rate(struct spmi_regulator *vreg)
vreg             1556 drivers/regulator/qcom_spmi-regulator.c 	ret = spmi_vreg_read(vreg, SPMI_COMMON_REG_STEP_CTRL, &reg, 1);
vreg             1558 drivers/regulator/qcom_spmi-regulator.c 		dev_err(vreg->dev, "spmi read failed, ret=%d\n", ret);
vreg             1562 drivers/regulator/qcom_spmi-regulator.c 	range = spmi_regulator_find_range(vreg);
vreg             1566 drivers/regulator/qcom_spmi-regulator.c 	switch (vreg->logical_type) {
vreg             1588 drivers/regulator/qcom_spmi-regulator.c 	vreg->slew_rate = max(slew_rate, 1);
vreg             1593 drivers/regulator/qcom_spmi-regulator.c static int spmi_regulator_init_slew_rate_ftsmps426(struct spmi_regulator *vreg,
vreg             1599 drivers/regulator/qcom_spmi-regulator.c 	const struct spmi_voltage_range *range = &vreg->set_points->range[0];
vreg             1601 drivers/regulator/qcom_spmi-regulator.c 	ret = spmi_vreg_read(vreg, SPMI_COMMON_REG_STEP_CTRL, &reg, 1);
vreg             1603 drivers/regulator/qcom_spmi-regulator.c 		dev_err(vreg->dev, "spmi read failed, ret=%d\n", ret);
vreg             1617 drivers/regulator/qcom_spmi-regulator.c 	vreg->slew_rate = max(slew_rate, 1);
vreg             1622 drivers/regulator/qcom_spmi-regulator.c static int spmi_regulator_init_registers(struct spmi_regulator *vreg,
vreg             1629 drivers/regulator/qcom_spmi-regulator.c 	type = vreg->logical_type;
vreg             1631 drivers/regulator/qcom_spmi-regulator.c 	ret = spmi_vreg_read(vreg, SPMI_COMMON_REG_VOLTAGE_RANGE, ctrl_reg, 8);
vreg             1678 drivers/regulator/qcom_spmi-regulator.c 	ret = spmi_vreg_write(vreg, SPMI_COMMON_REG_VOLTAGE_RANGE, ctrl_reg, 8);
vreg             1689 drivers/regulator/qcom_spmi-regulator.c 			return spmi_vreg_update_bits(vreg,
vreg             1698 drivers/regulator/qcom_spmi-regulator.c static void spmi_regulator_get_dt_config(struct spmi_regulator *vreg,
vreg             1711 drivers/regulator/qcom_spmi-regulator.c 		&vreg->ocp_max_retries);
vreg             1713 drivers/regulator/qcom_spmi-regulator.c 		&vreg->ocp_retry_delay_ms);
vreg             1736 drivers/regulator/qcom_spmi-regulator.c 	struct spmi_regulator *vreg = config->driver_data;
vreg             1740 drivers/regulator/qcom_spmi-regulator.c 	spmi_regulator_get_dt_config(vreg, node, &data);
vreg             1742 drivers/regulator/qcom_spmi-regulator.c 	if (!vreg->ocp_max_retries)
vreg             1743 drivers/regulator/qcom_spmi-regulator.c 		vreg->ocp_max_retries = SPMI_VS_OCP_DEFAULT_MAX_RETRIES;
vreg             1744 drivers/regulator/qcom_spmi-regulator.c 	if (!vreg->ocp_retry_delay_ms)
vreg             1745 drivers/regulator/qcom_spmi-regulator.c 		vreg->ocp_retry_delay_ms = SPMI_VS_OCP_DEFAULT_RETRY_DELAY_MS;
vreg             1747 drivers/regulator/qcom_spmi-regulator.c 	ret = spmi_regulator_init_registers(vreg, &data);
vreg             1753 drivers/regulator/qcom_spmi-regulator.c 	switch (vreg->logical_type) {
vreg             1758 drivers/regulator/qcom_spmi-regulator.c 		ret = spmi_regulator_init_slew_rate(vreg);
vreg             1763 drivers/regulator/qcom_spmi-regulator.c 		ret = spmi_regulator_init_slew_rate_ftsmps426(vreg,
vreg             1769 drivers/regulator/qcom_spmi-regulator.c 		ret = spmi_regulator_init_slew_rate_ftsmps426(vreg,
vreg             1778 drivers/regulator/qcom_spmi-regulator.c 	if (vreg->logical_type != SPMI_REGULATOR_LOGICAL_TYPE_VS)
vreg             1779 drivers/regulator/qcom_spmi-regulator.c 		vreg->ocp_irq = 0;
vreg             1781 drivers/regulator/qcom_spmi-regulator.c 	if (vreg->ocp_irq) {
vreg             1782 drivers/regulator/qcom_spmi-regulator.c 		ret = devm_request_irq(dev, vreg->ocp_irq,
vreg             1784 drivers/regulator/qcom_spmi-regulator.c 			vreg);
vreg             1787 drivers/regulator/qcom_spmi-regulator.c 				vreg->ocp_irq, ret);
vreg             1791 drivers/regulator/qcom_spmi-regulator.c 		INIT_DELAYED_WORK(&vreg->ocp_work, spmi_regulator_vs_ocp_work);
vreg             1962 drivers/regulator/qcom_spmi-regulator.c 	struct spmi_regulator *vreg;
vreg             2005 drivers/regulator/qcom_spmi-regulator.c 		vreg = devm_kzalloc(dev, sizeof(*vreg), GFP_KERNEL);
vreg             2006 drivers/regulator/qcom_spmi-regulator.c 		if (!vreg)
vreg             2009 drivers/regulator/qcom_spmi-regulator.c 		vreg->dev = dev;
vreg             2010 drivers/regulator/qcom_spmi-regulator.c 		vreg->base = reg->base;
vreg             2011 drivers/regulator/qcom_spmi-regulator.c 		vreg->regmap = regmap;
vreg             2013 drivers/regulator/qcom_spmi-regulator.c 			vreg->ocp_irq = platform_get_irq_byname(pdev, reg->ocp);
vreg             2014 drivers/regulator/qcom_spmi-regulator.c 			if (vreg->ocp_irq < 0) {
vreg             2015 drivers/regulator/qcom_spmi-regulator.c 				ret = vreg->ocp_irq;
vreg             2019 drivers/regulator/qcom_spmi-regulator.c 		vreg->desc.id = -1;
vreg             2020 drivers/regulator/qcom_spmi-regulator.c 		vreg->desc.owner = THIS_MODULE;
vreg             2021 drivers/regulator/qcom_spmi-regulator.c 		vreg->desc.type = REGULATOR_VOLTAGE;
vreg             2022 drivers/regulator/qcom_spmi-regulator.c 		vreg->desc.enable_reg = reg->base + SPMI_COMMON_REG_ENABLE;
vreg             2023 drivers/regulator/qcom_spmi-regulator.c 		vreg->desc.enable_mask = SPMI_COMMON_ENABLE_MASK;
vreg             2024 drivers/regulator/qcom_spmi-regulator.c 		vreg->desc.enable_val = SPMI_COMMON_ENABLE;
vreg             2025 drivers/regulator/qcom_spmi-regulator.c 		vreg->desc.name = name = reg->name;
vreg             2026 drivers/regulator/qcom_spmi-regulator.c 		vreg->desc.supply_name = reg->supply;
vreg             2027 drivers/regulator/qcom_spmi-regulator.c 		vreg->desc.of_match = reg->name;
vreg             2028 drivers/regulator/qcom_spmi-regulator.c 		vreg->desc.of_parse_cb = spmi_regulator_of_parse;
vreg             2029 drivers/regulator/qcom_spmi-regulator.c 		vreg->desc.of_map_mode = spmi_regulator_of_map_mode;
vreg             2031 drivers/regulator/qcom_spmi-regulator.c 		ret = spmi_regulator_match(vreg, reg->force_type);
vreg             2041 drivers/regulator/qcom_spmi-regulator.c 				spmi_saw_ops = *(vreg->desc.ops);
vreg             2044 drivers/regulator/qcom_spmi-regulator.c 				vreg->desc.ops = &spmi_saw_ops;
vreg             2048 drivers/regulator/qcom_spmi-regulator.c 		if (vreg->set_points && vreg->set_points->count == 1) {
vreg             2050 drivers/regulator/qcom_spmi-regulator.c 			range = vreg->set_points->range;
vreg             2051 drivers/regulator/qcom_spmi-regulator.c 			vreg->desc.uV_step = range->step_uV;
vreg             2055 drivers/regulator/qcom_spmi-regulator.c 		config.driver_data = vreg;
vreg             2057 drivers/regulator/qcom_spmi-regulator.c 		rdev = devm_regulator_register(dev, &vreg->desc, &config);
vreg             2064 drivers/regulator/qcom_spmi-regulator.c 		INIT_LIST_HEAD(&vreg->node);
vreg             2065 drivers/regulator/qcom_spmi-regulator.c 		list_add(&vreg->node, vreg_list);
vreg             2071 drivers/regulator/qcom_spmi-regulator.c 	list_for_each_entry(vreg, vreg_list, node)
vreg             2072 drivers/regulator/qcom_spmi-regulator.c 		if (vreg->ocp_irq)
vreg             2073 drivers/regulator/qcom_spmi-regulator.c 			cancel_delayed_work_sync(&vreg->ocp_work);
vreg             2079 drivers/regulator/qcom_spmi-regulator.c 	struct spmi_regulator *vreg;
vreg             2082 drivers/regulator/qcom_spmi-regulator.c 	list_for_each_entry(vreg, vreg_list, node)
vreg             2083 drivers/regulator/qcom_spmi-regulator.c 		if (vreg->ocp_irq)
vreg             2084 drivers/regulator/qcom_spmi-regulator.c 			cancel_delayed_work_sync(&vreg->ocp_work);
vreg               25 drivers/regulator/rn5t618-regulator.c #define REG(rid, ereg, emask, vreg, vmask, min, max, step)		\
vreg               39 drivers/regulator/rn5t618-regulator.c 		.vsel_reg	= RN5T618_##vreg,			\
vreg              130 drivers/regulator/sc2731-regulator.c #define SC2731_REGU_LINEAR(_id, en_reg, en_mask, vreg, vmask,	\
vreg              145 drivers/regulator/sc2731-regulator.c 	.vsel_reg		= vreg,				\
vreg              109 drivers/regulator/tps6586x-regulator.c #define TPS6586X_REGULATOR(_id, _ops, _pin_name, vdata, vreg, shift, nbits, \
vreg              122 drivers/regulator/tps6586x-regulator.c 		.vsel_reg = TPS6586X_##vreg,				\
vreg              133 drivers/regulator/tps6586x-regulator.c 				  uv_step, vreg, shift, nbits, ereg0,	\
vreg              147 drivers/regulator/tps6586x-regulator.c 		.vsel_reg = TPS6586X_##vreg,				\
vreg              157 drivers/regulator/tps6586x-regulator.c #define TPS6586X_LDO(_id, _pname, vdata, vreg, shift, nbits,		\
vreg              160 drivers/regulator/tps6586x-regulator.c 	TPS6586X_REGULATOR(_id, rw, _pname, vdata, vreg, shift, nbits,	\
vreg              164 drivers/regulator/tps6586x-regulator.c #define TPS6586X_LDO_LINEAR(_id, _pname, n_volt, min_uv, uv_step, vreg,	\
vreg              168 drivers/regulator/tps6586x-regulator.c 				  min_uv, uv_step, vreg, shift, nbits,	\
vreg              172 drivers/regulator/tps6586x-regulator.c #define TPS6586X_FIXED_LDO(_id, _pname, vdata, vreg, shift, nbits,	\
vreg              175 drivers/regulator/tps6586x-regulator.c 	TPS6586X_REGULATOR(_id, ro, _pname, vdata, vreg, shift, nbits,	\
vreg              179 drivers/regulator/tps6586x-regulator.c #define TPS6586X_DVM(_id, _pname, n_volt, min_uv, uv_step, vreg, shift,	\
vreg              183 drivers/regulator/tps6586x-regulator.c 				  min_uv, uv_step, vreg, shift, nbits,	\
vreg              134 drivers/scsi/ufs/ufshcd-pltfrm.c 	struct ufs_vreg *vreg = NULL;
vreg              149 drivers/scsi/ufs/ufshcd-pltfrm.c 	vreg = devm_kzalloc(dev, sizeof(*vreg), GFP_KERNEL);
vreg              150 drivers/scsi/ufs/ufshcd-pltfrm.c 	if (!vreg)
vreg              153 drivers/scsi/ufs/ufshcd-pltfrm.c 	vreg->name = kstrdup(name, GFP_KERNEL);
vreg              156 drivers/scsi/ufs/ufshcd-pltfrm.c 	if (of_property_read_u32(np, prop_name, &vreg->max_uA)) {
vreg              158 drivers/scsi/ufs/ufshcd-pltfrm.c 		vreg->max_uA = 0;
vreg              163 drivers/scsi/ufs/ufshcd-pltfrm.c 			vreg->min_uV = UFS_VREG_VCC_1P8_MIN_UV;
vreg              164 drivers/scsi/ufs/ufshcd-pltfrm.c 			vreg->max_uV = UFS_VREG_VCC_1P8_MAX_UV;
vreg              166 drivers/scsi/ufs/ufshcd-pltfrm.c 			vreg->min_uV = UFS_VREG_VCC_MIN_UV;
vreg              167 drivers/scsi/ufs/ufshcd-pltfrm.c 			vreg->max_uV = UFS_VREG_VCC_MAX_UV;
vreg              170 drivers/scsi/ufs/ufshcd-pltfrm.c 		vreg->min_uV = UFS_VREG_VCCQ_MIN_UV;
vreg              171 drivers/scsi/ufs/ufshcd-pltfrm.c 		vreg->max_uV = UFS_VREG_VCCQ_MAX_UV;
vreg              173 drivers/scsi/ufs/ufshcd-pltfrm.c 		vreg->min_uV = UFS_VREG_VCCQ2_MIN_UV;
vreg              174 drivers/scsi/ufs/ufshcd-pltfrm.c 		vreg->max_uV = UFS_VREG_VCCQ2_MAX_UV;
vreg              181 drivers/scsi/ufs/ufshcd-pltfrm.c 		*out_vreg = vreg;
vreg             7080 drivers/scsi/ufs/ufshcd.c static int ufshcd_config_vreg_load(struct device *dev, struct ufs_vreg *vreg,
vreg             7085 drivers/scsi/ufs/ufshcd.c 	if (!vreg)
vreg             7094 drivers/scsi/ufs/ufshcd.c 	if (!vreg->max_uA)
vreg             7097 drivers/scsi/ufs/ufshcd.c 	ret = regulator_set_load(vreg->reg, ua);
vreg             7100 drivers/scsi/ufs/ufshcd.c 				__func__, vreg->name, ua, ret);
vreg             7107 drivers/scsi/ufs/ufshcd.c 					 struct ufs_vreg *vreg)
vreg             7109 drivers/scsi/ufs/ufshcd.c 	return ufshcd_config_vreg_load(hba->dev, vreg, UFS_VREG_LPM_LOAD_UA);
vreg             7113 drivers/scsi/ufs/ufshcd.c 					 struct ufs_vreg *vreg)
vreg             7115 drivers/scsi/ufs/ufshcd.c 	if (!vreg)
vreg             7118 drivers/scsi/ufs/ufshcd.c 	return ufshcd_config_vreg_load(hba->dev, vreg, vreg->max_uA);
vreg             7122 drivers/scsi/ufs/ufshcd.c 		struct ufs_vreg *vreg, bool on)
vreg             7129 drivers/scsi/ufs/ufshcd.c 	BUG_ON(!vreg);
vreg             7131 drivers/scsi/ufs/ufshcd.c 	reg = vreg->reg;
vreg             7132 drivers/scsi/ufs/ufshcd.c 	name = vreg->name;
vreg             7135 drivers/scsi/ufs/ufshcd.c 		if (vreg->min_uV && vreg->max_uV) {
vreg             7136 drivers/scsi/ufs/ufshcd.c 			min_uV = on ? vreg->min_uV : 0;
vreg             7137 drivers/scsi/ufs/ufshcd.c 			ret = regulator_set_voltage(reg, min_uV, vreg->max_uV);
vreg             7146 drivers/scsi/ufs/ufshcd.c 		uA_load = on ? vreg->max_uA : 0;
vreg             7147 drivers/scsi/ufs/ufshcd.c 		ret = ufshcd_config_vreg_load(dev, vreg, uA_load);
vreg             7155 drivers/scsi/ufs/ufshcd.c static int ufshcd_enable_vreg(struct device *dev, struct ufs_vreg *vreg)
vreg             7159 drivers/scsi/ufs/ufshcd.c 	if (!vreg || vreg->enabled)
vreg             7162 drivers/scsi/ufs/ufshcd.c 	ret = ufshcd_config_vreg(dev, vreg, true);
vreg             7164 drivers/scsi/ufs/ufshcd.c 		ret = regulator_enable(vreg->reg);
vreg             7167 drivers/scsi/ufs/ufshcd.c 		vreg->enabled = true;
vreg             7170 drivers/scsi/ufs/ufshcd.c 				__func__, vreg->name, ret);
vreg             7175 drivers/scsi/ufs/ufshcd.c static int ufshcd_disable_vreg(struct device *dev, struct ufs_vreg *vreg)
vreg             7179 drivers/scsi/ufs/ufshcd.c 	if (!vreg || !vreg->enabled)
vreg             7182 drivers/scsi/ufs/ufshcd.c 	ret = regulator_disable(vreg->reg);
vreg             7186 drivers/scsi/ufs/ufshcd.c 		ufshcd_config_vreg(dev, vreg, false);
vreg             7187 drivers/scsi/ufs/ufshcd.c 		vreg->enabled = false;
vreg             7190 drivers/scsi/ufs/ufshcd.c 				__func__, vreg->name, ret);
vreg             7230 drivers/scsi/ufs/ufshcd.c static int ufshcd_get_vreg(struct device *dev, struct ufs_vreg *vreg)
vreg             7234 drivers/scsi/ufs/ufshcd.c 	if (!vreg)
vreg             7237 drivers/scsi/ufs/ufshcd.c 	vreg->reg = devm_regulator_get(dev, vreg->name);
vreg             7238 drivers/scsi/ufs/ufshcd.c 	if (IS_ERR(vreg->reg)) {
vreg             7239 drivers/scsi/ufs/ufshcd.c 		ret = PTR_ERR(vreg->reg);
vreg             7241 drivers/scsi/ufs/ufshcd.c 				__func__, vreg->name, ret);
vreg               18 include/linux/spi/cc2520.h 	int vreg;