vib                71 drivers/gpu/drm/nouveau/dispnv50/head.c 	const int vib = asyc->procamp.color_vibrance - 100;
vib                73 drivers/gpu/drm/nouveau/dispnv50/head.c 	const int adj = (vib > 0) ? 50 : 0;
vib                74 drivers/gpu/drm/nouveau/dispnv50/head.c 	asyh->procamp.sat.cos = ((vib * 2047 + adj) / 100) & 0xfff;
vib                74 drivers/input/misc/pm8xxx-vibrator.c static int pm8xxx_vib_set(struct pm8xxx_vib *vib, bool on)
vib                77 drivers/input/misc/pm8xxx-vibrator.c 	unsigned int val = vib->reg_vib_drv;
vib                78 drivers/input/misc/pm8xxx-vibrator.c 	const struct pm8xxx_regs *regs = vib->regs;
vib                81 drivers/input/misc/pm8xxx-vibrator.c 		val |= (vib->level << regs->drv_shift) & regs->drv_mask;
vib                85 drivers/input/misc/pm8xxx-vibrator.c 	rc = regmap_write(vib->regmap, regs->drv_addr, val);
vib                89 drivers/input/misc/pm8xxx-vibrator.c 	vib->reg_vib_drv = val;
vib                92 drivers/input/misc/pm8xxx-vibrator.c 		rc = regmap_update_bits(vib->regmap, regs->enable_addr,
vib               104 drivers/input/misc/pm8xxx-vibrator.c 	struct pm8xxx_vib *vib = container_of(work, struct pm8xxx_vib, work);
vib               105 drivers/input/misc/pm8xxx-vibrator.c 	const struct pm8xxx_regs *regs = vib->regs;
vib               109 drivers/input/misc/pm8xxx-vibrator.c 	rc = regmap_read(vib->regmap, regs->drv_addr, &val);
vib               117 drivers/input/misc/pm8xxx-vibrator.c 	if (vib->speed) {
vib               118 drivers/input/misc/pm8xxx-vibrator.c 		vib->active = true;
vib               119 drivers/input/misc/pm8xxx-vibrator.c 		vib->level = ((VIB_MAX_LEVELS * vib->speed) / MAX_FF_SPEED) +
vib               121 drivers/input/misc/pm8xxx-vibrator.c 		vib->level /= 100;
vib               123 drivers/input/misc/pm8xxx-vibrator.c 		vib->active = false;
vib               124 drivers/input/misc/pm8xxx-vibrator.c 		vib->level = VIB_MIN_LEVEL_mV / 100;
vib               127 drivers/input/misc/pm8xxx-vibrator.c 	pm8xxx_vib_set(vib, vib->active);
vib               138 drivers/input/misc/pm8xxx-vibrator.c 	struct pm8xxx_vib *vib = input_get_drvdata(dev);
vib               140 drivers/input/misc/pm8xxx-vibrator.c 	cancel_work_sync(&vib->work);
vib               141 drivers/input/misc/pm8xxx-vibrator.c 	if (vib->active)
vib               142 drivers/input/misc/pm8xxx-vibrator.c 		pm8xxx_vib_set(vib, false);
vib               156 drivers/input/misc/pm8xxx-vibrator.c 	struct pm8xxx_vib *vib = input_get_drvdata(dev);
vib               158 drivers/input/misc/pm8xxx-vibrator.c 	vib->speed = effect->u.rumble.strong_magnitude >> 8;
vib               159 drivers/input/misc/pm8xxx-vibrator.c 	if (!vib->speed)
vib               160 drivers/input/misc/pm8xxx-vibrator.c 		vib->speed = effect->u.rumble.weak_magnitude >> 9;
vib               162 drivers/input/misc/pm8xxx-vibrator.c 	schedule_work(&vib->work);
vib               169 drivers/input/misc/pm8xxx-vibrator.c 	struct pm8xxx_vib *vib;
vib               175 drivers/input/misc/pm8xxx-vibrator.c 	vib = devm_kzalloc(&pdev->dev, sizeof(*vib), GFP_KERNEL);
vib               176 drivers/input/misc/pm8xxx-vibrator.c 	if (!vib)
vib               179 drivers/input/misc/pm8xxx-vibrator.c 	vib->regmap = dev_get_regmap(pdev->dev.parent, NULL);
vib               180 drivers/input/misc/pm8xxx-vibrator.c 	if (!vib->regmap)
vib               187 drivers/input/misc/pm8xxx-vibrator.c 	INIT_WORK(&vib->work, pm8xxx_work_handler);
vib               188 drivers/input/misc/pm8xxx-vibrator.c 	vib->vib_input_dev = input_dev;
vib               193 drivers/input/misc/pm8xxx-vibrator.c 	error = regmap_read(vib->regmap, regs->drv_addr, &val);
vib               198 drivers/input/misc/pm8xxx-vibrator.c 	error = regmap_write(vib->regmap, regs->drv_addr, val);
vib               202 drivers/input/misc/pm8xxx-vibrator.c 	vib->regs = regs;
vib               203 drivers/input/misc/pm8xxx-vibrator.c 	vib->reg_vib_drv = val;
vib               208 drivers/input/misc/pm8xxx-vibrator.c 	input_set_drvdata(input_dev, vib);
vib               209 drivers/input/misc/pm8xxx-vibrator.c 	input_set_capability(vib->vib_input_dev, EV_FF, FF_RUMBLE);
vib               225 drivers/input/misc/pm8xxx-vibrator.c 	platform_set_drvdata(pdev, vib);
vib               231 drivers/input/misc/pm8xxx-vibrator.c 	struct pm8xxx_vib *vib = dev_get_drvdata(dev);
vib               234 drivers/input/misc/pm8xxx-vibrator.c 	pm8xxx_vib_set(vib, false);
vib                29 drivers/staging/greybus/vibrator.c static int turn_off(struct gb_vibrator_device *vib)
vib                31 drivers/staging/greybus/vibrator.c 	struct gb_bundle *bundle = vib->connection->bundle;
vib                34 drivers/staging/greybus/vibrator.c 	ret = gb_operation_sync(vib->connection, GB_VIBRATOR_TYPE_OFF,
vib                42 drivers/staging/greybus/vibrator.c static int turn_on(struct gb_vibrator_device *vib, u16 timeout_ms)
vib                44 drivers/staging/greybus/vibrator.c 	struct gb_bundle *bundle = vib->connection->bundle;
vib                52 drivers/staging/greybus/vibrator.c 	if (cancel_delayed_work_sync(&vib->delayed_work))
vib                53 drivers/staging/greybus/vibrator.c 		turn_off(vib);
vib                55 drivers/staging/greybus/vibrator.c 	ret = gb_operation_sync(vib->connection, GB_VIBRATOR_TYPE_ON,
vib                62 drivers/staging/greybus/vibrator.c 	schedule_delayed_work(&vib->delayed_work, msecs_to_jiffies(timeout_ms));
vib                70 drivers/staging/greybus/vibrator.c 	struct gb_vibrator_device *vib =
vib                75 drivers/staging/greybus/vibrator.c 	turn_off(vib);
vib                81 drivers/staging/greybus/vibrator.c 	struct gb_vibrator_device *vib = dev_get_drvdata(dev);
vib                92 drivers/staging/greybus/vibrator.c 		retval = turn_on(vib, (u16)val);
vib                94 drivers/staging/greybus/vibrator.c 		retval = turn_off(vib);
vib               121 drivers/staging/greybus/vibrator.c 	struct gb_vibrator_device *vib;
vib               132 drivers/staging/greybus/vibrator.c 	vib = kzalloc(sizeof(*vib), GFP_KERNEL);
vib               133 drivers/staging/greybus/vibrator.c 	if (!vib)
vib               142 drivers/staging/greybus/vibrator.c 	gb_connection_set_data(connection, vib);
vib               144 drivers/staging/greybus/vibrator.c 	vib->connection = connection;
vib               146 drivers/staging/greybus/vibrator.c 	greybus_set_drvdata(bundle, vib);
vib               157 drivers/staging/greybus/vibrator.c 	vib->minor = ida_simple_get(&minors, 0, 0, GFP_KERNEL);
vib               158 drivers/staging/greybus/vibrator.c 	if (vib->minor < 0) {
vib               159 drivers/staging/greybus/vibrator.c 		retval = vib->minor;
vib               163 drivers/staging/greybus/vibrator.c 			    MKDEV(0, 0), vib, "vibrator%d", vib->minor);
vib               168 drivers/staging/greybus/vibrator.c 	vib->dev = dev;
vib               170 drivers/staging/greybus/vibrator.c 	INIT_DELAYED_WORK(&vib->delayed_work, gb_vibrator_worker);
vib               177 drivers/staging/greybus/vibrator.c 	ida_simple_remove(&minors, vib->minor);
vib               183 drivers/staging/greybus/vibrator.c 	kfree(vib);
vib               190 drivers/staging/greybus/vibrator.c 	struct gb_vibrator_device *vib = greybus_get_drvdata(bundle);
vib               197 drivers/staging/greybus/vibrator.c 	if (cancel_delayed_work_sync(&vib->delayed_work))
vib               198 drivers/staging/greybus/vibrator.c 		turn_off(vib);
vib               200 drivers/staging/greybus/vibrator.c 	device_unregister(vib->dev);
vib               201 drivers/staging/greybus/vibrator.c 	ida_simple_remove(&minors, vib->minor);
vib               202 drivers/staging/greybus/vibrator.c 	gb_connection_disable(vib->connection);
vib               203 drivers/staging/greybus/vibrator.c 	gb_connection_destroy(vib->connection);
vib               204 drivers/staging/greybus/vibrator.c 	kfree(vib);