vctrl            1408 drivers/irqchip/irq-gic.c 	struct resource *vctrl_res = &gic_v2_kvm_info.vctrl;
vctrl            1566 drivers/irqchip/irq-gic.c 	struct resource *vctrl_res = &gic_v2_kvm_info.vctrl;
vctrl              49 drivers/regulator/vctrl-regulator.c static int vctrl_calc_ctrl_voltage(struct vctrl_data *vctrl, int out_uV)
vctrl              51 drivers/regulator/vctrl-regulator.c 	struct vctrl_voltage_range *ctrl = &vctrl->vrange.ctrl;
vctrl              52 drivers/regulator/vctrl-regulator.c 	struct vctrl_voltage_range *out = &vctrl->vrange.out;
vctrl              60 drivers/regulator/vctrl-regulator.c static int vctrl_calc_output_voltage(struct vctrl_data *vctrl, int ctrl_uV)
vctrl              62 drivers/regulator/vctrl-regulator.c 	struct vctrl_voltage_range *ctrl = &vctrl->vrange.ctrl;
vctrl              63 drivers/regulator/vctrl-regulator.c 	struct vctrl_voltage_range *out = &vctrl->vrange.out;
vctrl              84 drivers/regulator/vctrl-regulator.c 	struct vctrl_data *vctrl = rdev_get_drvdata(rdev);
vctrl              85 drivers/regulator/vctrl-regulator.c 	int ctrl_uV = regulator_get_voltage_rdev(vctrl->ctrl_reg->rdev);
vctrl              87 drivers/regulator/vctrl-regulator.c 	return vctrl_calc_output_voltage(vctrl, ctrl_uV);
vctrl              94 drivers/regulator/vctrl-regulator.c 	struct vctrl_data *vctrl = rdev_get_drvdata(rdev);
vctrl              95 drivers/regulator/vctrl-regulator.c 	struct regulator *ctrl_reg = vctrl->ctrl_reg;
vctrl              97 drivers/regulator/vctrl-regulator.c 	int uV = vctrl_calc_output_voltage(vctrl, orig_ctrl_uV);
vctrl             100 drivers/regulator/vctrl-regulator.c 	if (req_min_uV >= uV || !vctrl->ovp_threshold)
vctrl             103 drivers/regulator/vctrl-regulator.c 			vctrl_calc_ctrl_voltage(vctrl, req_min_uV),
vctrl             104 drivers/regulator/vctrl-regulator.c 			vctrl_calc_ctrl_voltage(vctrl, req_max_uV),
vctrl             108 drivers/regulator/vctrl-regulator.c 		int max_drop_uV = (uV * vctrl->ovp_threshold) / 100;
vctrl             118 drivers/regulator/vctrl-regulator.c 		next_ctrl_uV = vctrl_calc_ctrl_voltage(vctrl, next_uV);
vctrl             127 drivers/regulator/vctrl-regulator.c 		delay = DIV_ROUND_UP(uV - next_uV, vctrl->min_slew_down_rate);
vctrl             145 drivers/regulator/vctrl-regulator.c 	struct vctrl_data *vctrl = rdev_get_drvdata(rdev);
vctrl             147 drivers/regulator/vctrl-regulator.c 	return vctrl->sel;
vctrl             153 drivers/regulator/vctrl-regulator.c 	struct vctrl_data *vctrl = rdev_get_drvdata(rdev);
vctrl             154 drivers/regulator/vctrl-regulator.c 	struct regulator *ctrl_reg = vctrl->ctrl_reg;
vctrl             155 drivers/regulator/vctrl-regulator.c 	unsigned int orig_sel = vctrl->sel;
vctrl             161 drivers/regulator/vctrl-regulator.c 	if (selector >= vctrl->sel || !vctrl->ovp_threshold) {
vctrl             164 drivers/regulator/vctrl-regulator.c 					    vctrl->vtable[selector].ctrl,
vctrl             165 drivers/regulator/vctrl-regulator.c 					    vctrl->vtable[selector].ctrl,
vctrl             168 drivers/regulator/vctrl-regulator.c 			vctrl->sel = selector;
vctrl             173 drivers/regulator/vctrl-regulator.c 	while (vctrl->sel != selector) {
vctrl             177 drivers/regulator/vctrl-regulator.c 		if (selector >= vctrl->vtable[vctrl->sel].ovp_min_sel)
vctrl             180 drivers/regulator/vctrl-regulator.c 			next_sel = vctrl->vtable[vctrl->sel].ovp_min_sel;
vctrl             183 drivers/regulator/vctrl-regulator.c 					    vctrl->vtable[next_sel].ctrl,
vctrl             184 drivers/regulator/vctrl-regulator.c 					    vctrl->vtable[next_sel].ctrl,
vctrl             189 drivers/regulator/vctrl-regulator.c 				vctrl->vtable[next_sel].ctrl);
vctrl             192 drivers/regulator/vctrl-regulator.c 		vctrl->sel = next_sel;
vctrl             194 drivers/regulator/vctrl-regulator.c 		delay = DIV_ROUND_UP(vctrl->vtable[vctrl->sel].out -
vctrl             195 drivers/regulator/vctrl-regulator.c 				     vctrl->vtable[next_sel].out,
vctrl             196 drivers/regulator/vctrl-regulator.c 				     vctrl->min_slew_down_rate);
vctrl             203 drivers/regulator/vctrl-regulator.c 	if (vctrl->sel != orig_sel) {
vctrl             206 drivers/regulator/vctrl-regulator.c 					   vctrl->vtable[orig_sel].ctrl,
vctrl             207 drivers/regulator/vctrl-regulator.c 					   vctrl->vtable[orig_sel].ctrl,
vctrl             209 drivers/regulator/vctrl-regulator.c 			vctrl->sel = orig_sel;
vctrl             221 drivers/regulator/vctrl-regulator.c 	struct vctrl_data *vctrl = rdev_get_drvdata(rdev);
vctrl             226 drivers/regulator/vctrl-regulator.c 	return vctrl->vtable[selector].out;
vctrl             230 drivers/regulator/vctrl-regulator.c 			  struct vctrl_data *vctrl)
vctrl             237 drivers/regulator/vctrl-regulator.c 	vctrl->ctrl_reg = devm_regulator_get(&pdev->dev, "ctrl");
vctrl             238 drivers/regulator/vctrl-regulator.c 	if (IS_ERR(vctrl->ctrl_reg))
vctrl             239 drivers/regulator/vctrl-regulator.c 		return PTR_ERR(vctrl->ctrl_reg);
vctrl             243 drivers/regulator/vctrl-regulator.c 		vctrl->ovp_threshold = pval;
vctrl             244 drivers/regulator/vctrl-regulator.c 		if (vctrl->ovp_threshold > 100) {
vctrl             247 drivers/regulator/vctrl-regulator.c 				vctrl->ovp_threshold);
vctrl             254 drivers/regulator/vctrl-regulator.c 		vctrl->min_slew_down_rate = pval;
vctrl             257 drivers/regulator/vctrl-regulator.c 		if (vctrl->min_slew_down_rate == 0) {
vctrl             261 drivers/regulator/vctrl-regulator.c 		} else if (vctrl->min_slew_down_rate > INT_MAX) {
vctrl             263 drivers/regulator/vctrl-regulator.c 				vctrl->min_slew_down_rate);
vctrl             268 drivers/regulator/vctrl-regulator.c 	if (vctrl->ovp_threshold && !vctrl->min_slew_down_rate) {
vctrl             280 drivers/regulator/vctrl-regulator.c 	vctrl->vrange.out.min_uV = pval;
vctrl             288 drivers/regulator/vctrl-regulator.c 	vctrl->vrange.out.max_uV = pval;
vctrl             304 drivers/regulator/vctrl-regulator.c 	vctrl->vrange.ctrl.min_uV = vrange_ctrl[0];
vctrl             305 drivers/regulator/vctrl-regulator.c 	vctrl->vrange.ctrl.max_uV = vrange_ctrl[1];
vctrl             320 drivers/regulator/vctrl-regulator.c 	struct vctrl_data *vctrl = platform_get_drvdata(pdev);
vctrl             321 drivers/regulator/vctrl-regulator.c 	struct regulator_desc *rdesc = &vctrl->desc;
vctrl             322 drivers/regulator/vctrl-regulator.c 	struct regulator *ctrl_reg = vctrl->ctrl_reg;
vctrl             323 drivers/regulator/vctrl-regulator.c 	struct vctrl_voltage_range *vrange_ctrl = &vctrl->vrange.ctrl;
vctrl             346 drivers/regulator/vctrl-regulator.c 	vctrl->vtable = devm_kcalloc(&pdev->dev, rdesc->n_voltages,
vctrl             349 drivers/regulator/vctrl-regulator.c 	if (!vctrl->vtable)
vctrl             360 drivers/regulator/vctrl-regulator.c 		vctrl->vtable[idx_vt].ctrl = ctrl_uV;
vctrl             361 drivers/regulator/vctrl-regulator.c 		vctrl->vtable[idx_vt].out =
vctrl             362 drivers/regulator/vctrl-regulator.c 			vctrl_calc_output_voltage(vctrl, ctrl_uV);
vctrl             367 drivers/regulator/vctrl-regulator.c 	sort(vctrl->vtable, rdesc->n_voltages,
vctrl             374 drivers/regulator/vctrl-regulator.c 		int ovp_min_uV = (vctrl->vtable[i].out *
vctrl             375 drivers/regulator/vctrl-regulator.c 				  (100 - vctrl->ovp_threshold)) / 100;
vctrl             378 drivers/regulator/vctrl-regulator.c 			if (vctrl->vtable[j].out >= ovp_min_uV) {
vctrl             379 drivers/regulator/vctrl-regulator.c 				vctrl->vtable[i].ovp_min_sel = j;
vctrl             386 drivers/regulator/vctrl-regulator.c 				vctrl->vtable[i].out);
vctrl             388 drivers/regulator/vctrl-regulator.c 			vctrl->vtable[i].ovp_min_sel = i - 1;
vctrl             397 drivers/regulator/vctrl-regulator.c 	struct vctrl_data *vctrl = rdev_get_drvdata(rdev);
vctrl             398 drivers/regulator/vctrl-regulator.c 	int ret = regulator_enable(vctrl->ctrl_reg);
vctrl             401 drivers/regulator/vctrl-regulator.c 		vctrl->enabled = true;
vctrl             408 drivers/regulator/vctrl-regulator.c 	struct vctrl_data *vctrl = rdev_get_drvdata(rdev);
vctrl             409 drivers/regulator/vctrl-regulator.c 	int ret = regulator_disable(vctrl->ctrl_reg);
vctrl             412 drivers/regulator/vctrl-regulator.c 		vctrl->enabled = false;
vctrl             419 drivers/regulator/vctrl-regulator.c 	struct vctrl_data *vctrl = rdev_get_drvdata(rdev);
vctrl             421 drivers/regulator/vctrl-regulator.c 	return vctrl->enabled;
vctrl             445 drivers/regulator/vctrl-regulator.c 	struct vctrl_data *vctrl;
vctrl             453 drivers/regulator/vctrl-regulator.c 	vctrl = devm_kzalloc(&pdev->dev, sizeof(struct vctrl_data),
vctrl             455 drivers/regulator/vctrl-regulator.c 	if (!vctrl)
vctrl             458 drivers/regulator/vctrl-regulator.c 	platform_set_drvdata(pdev, vctrl);
vctrl             460 drivers/regulator/vctrl-regulator.c 	ret = vctrl_parse_dt(pdev, vctrl);
vctrl             464 drivers/regulator/vctrl-regulator.c 	vrange_ctrl = &vctrl->vrange.ctrl;
vctrl             466 drivers/regulator/vctrl-regulator.c 	rdesc = &vctrl->desc;
vctrl             471 drivers/regulator/vctrl-regulator.c 	if ((regulator_get_linear_step(vctrl->ctrl_reg) == 1) ||
vctrl             472 drivers/regulator/vctrl-regulator.c 	    (regulator_count_voltages(vctrl->ctrl_reg) == -EINVAL)) {
vctrl             485 drivers/regulator/vctrl-regulator.c 	cfg.driver_data = vctrl;
vctrl             493 drivers/regulator/vctrl-regulator.c 		ctrl_uV = regulator_get_voltage_rdev(vctrl->ctrl_reg->rdev);
vctrl             501 drivers/regulator/vctrl-regulator.c 			vctrl->sel = 0;
vctrl             503 drivers/regulator/vctrl-regulator.c 			vctrl->sel = rdesc->n_voltages - 1;
vctrl             508 drivers/regulator/vctrl-regulator.c 				if (ctrl_uV == vctrl->vtable[i].ctrl) {
vctrl             509 drivers/regulator/vctrl-regulator.c 					vctrl->sel = i;
vctrl             516 drivers/regulator/vctrl-regulator.c 	vctrl->rdev = devm_regulator_register(&pdev->dev, rdesc, &cfg);
vctrl             517 drivers/regulator/vctrl-regulator.c 	if (IS_ERR(vctrl->rdev)) {
vctrl             518 drivers/regulator/vctrl-regulator.c 		ret = PTR_ERR(vctrl->rdev);
vctrl              32 include/linux/irqchip/arm-gic-common.h 	struct resource vctrl;
vctrl             371 virt/kvm/arm/vgic/vgic-v2.c 	if (!info->vctrl.start) {
vctrl             392 virt/kvm/arm/vgic/vgic-v2.c 	ret = create_hyp_io_mappings(info->vctrl.start,
vctrl             393 virt/kvm/arm/vgic/vgic-v2.c 				     resource_size(&info->vctrl),
vctrl             415 virt/kvm/arm/vgic/vgic-v2.c 	kvm_debug("vgic-v2@%llx\n", info->vctrl.start);