Searched refs:vib (Results 1 - 6 of 6) sorted by relevance
/kernel/linux/linux-5.10/drivers/input/misc/ |
H A D | pm8xxx-vibrator.c | 71 * @vib: pointer to vibrator structure 74 static int pm8xxx_vib_set(struct pm8xxx_vib *vib, bool on) in pm8xxx_vib_set() argument 77 unsigned int val = vib->reg_vib_drv; in pm8xxx_vib_set() 78 const struct pm8xxx_regs *regs = vib->regs; in pm8xxx_vib_set() 81 val |= (vib->level << regs->drv_shift) & regs->drv_mask; in pm8xxx_vib_set() 85 rc = regmap_write(vib->regmap, regs->drv_addr, val); in pm8xxx_vib_set() 89 vib->reg_vib_drv = val; in pm8xxx_vib_set() 92 rc = regmap_update_bits(vib->regmap, regs->enable_addr, in pm8xxx_vib_set() 104 struct pm8xxx_vib *vib = container_of(work, struct pm8xxx_vib, work); in pm8xxx_work_handler() local 105 const struct pm8xxx_regs *regs = vib in pm8xxx_work_handler() 138 struct pm8xxx_vib *vib = input_get_drvdata(dev); pm8xxx_vib_close() local 156 struct pm8xxx_vib *vib = input_get_drvdata(dev); pm8xxx_vib_play_effect() local 169 struct pm8xxx_vib *vib; pm8xxx_vib_probe() local 231 struct pm8xxx_vib *vib = dev_get_drvdata(dev); pm8xxx_vib_suspend() local [all...] |
/kernel/linux/linux-6.6/drivers/input/misc/ |
H A D | pm8xxx-vibrator.c | 70 * @vib: pointer to vibrator structure 73 static int pm8xxx_vib_set(struct pm8xxx_vib *vib, bool on) in pm8xxx_vib_set() argument 76 unsigned int val = vib->reg_vib_drv; in pm8xxx_vib_set() 77 const struct pm8xxx_regs *regs = vib->regs; in pm8xxx_vib_set() 80 val |= (vib->level << regs->drv_shift) & regs->drv_mask; in pm8xxx_vib_set() 84 rc = regmap_write(vib->regmap, regs->drv_addr, val); in pm8xxx_vib_set() 88 vib->reg_vib_drv = val; in pm8xxx_vib_set() 91 rc = regmap_update_bits(vib->regmap, regs->enable_addr, in pm8xxx_vib_set() 103 struct pm8xxx_vib *vib = container_of(work, struct pm8xxx_vib, work); in pm8xxx_work_handler() local 104 const struct pm8xxx_regs *regs = vib in pm8xxx_work_handler() 137 struct pm8xxx_vib *vib = input_get_drvdata(dev); pm8xxx_vib_close() local 155 struct pm8xxx_vib *vib = input_get_drvdata(dev); pm8xxx_vib_play_effect() local 168 struct pm8xxx_vib *vib; pm8xxx_vib_probe() local 230 struct pm8xxx_vib *vib = dev_get_drvdata(dev); pm8xxx_vib_suspend() local [all...] |
/kernel/linux/linux-5.10/drivers/staging/greybus/ |
H A D | vibrator.c | 29 static int turn_off(struct gb_vibrator_device *vib) in turn_off() argument 31 struct gb_bundle *bundle = vib->connection->bundle; in turn_off() 34 ret = gb_operation_sync(vib->connection, GB_VIBRATOR_TYPE_OFF, in turn_off() 42 static int turn_on(struct gb_vibrator_device *vib, u16 timeout_ms) in turn_on() argument 44 struct gb_bundle *bundle = vib->connection->bundle; in turn_on() 52 if (cancel_delayed_work_sync(&vib->delayed_work)) in turn_on() 53 turn_off(vib); in turn_on() 55 ret = gb_operation_sync(vib->connection, GB_VIBRATOR_TYPE_ON, in turn_on() 62 schedule_delayed_work(&vib->delayed_work, msecs_to_jiffies(timeout_ms)); in turn_on() 70 struct gb_vibrator_device *vib in gb_vibrator_worker() local 81 struct gb_vibrator_device *vib = dev_get_drvdata(dev); timeout_store() local 121 struct gb_vibrator_device *vib; gb_vibrator_probe() local 190 struct gb_vibrator_device *vib = greybus_get_drvdata(bundle); gb_vibrator_disconnect() local [all...] |
/kernel/linux/linux-6.6/drivers/staging/greybus/ |
H A D | vibrator.c | 29 static int turn_off(struct gb_vibrator_device *vib) in turn_off() argument 31 struct gb_bundle *bundle = vib->connection->bundle; in turn_off() 34 ret = gb_operation_sync(vib->connection, GB_VIBRATOR_TYPE_OFF, in turn_off() 42 static int turn_on(struct gb_vibrator_device *vib, u16 timeout_ms) in turn_on() argument 44 struct gb_bundle *bundle = vib->connection->bundle; in turn_on() 52 if (cancel_delayed_work_sync(&vib->delayed_work)) in turn_on() 53 turn_off(vib); in turn_on() 55 ret = gb_operation_sync(vib->connection, GB_VIBRATOR_TYPE_ON, in turn_on() 62 schedule_delayed_work(&vib->delayed_work, msecs_to_jiffies(timeout_ms)); in turn_on() 70 struct gb_vibrator_device *vib in gb_vibrator_worker() local 81 struct gb_vibrator_device *vib = dev_get_drvdata(dev); timeout_store() local 120 struct gb_vibrator_device *vib; gb_vibrator_probe() local 189 struct gb_vibrator_device *vib = greybus_get_drvdata(bundle); gb_vibrator_disconnect() local [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/dispnv50/ |
H A D | head.c | 83 const int vib = asyc->procamp.color_vibrance - 100; in nv50_head_atomic_check_procamp() local 85 const int adj = (vib > 0) ? 50 : 0; in nv50_head_atomic_check_procamp() 86 asyh->procamp.sat.cos = ((vib * 2047 + adj) / 100) & 0xfff; in nv50_head_atomic_check_procamp()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/dispnv50/ |
H A D | head.c | 83 const int vib = asyc->procamp.color_vibrance - 100; in nv50_head_atomic_check_procamp() local 85 const int adj = (vib > 0) ? 50 : 0; in nv50_head_atomic_check_procamp() 86 asyh->procamp.sat.cos = ((vib * 2047 + adj) / 100) & 0xfff; in nv50_head_atomic_check_procamp()
|
Completed in 4 milliseconds