Home
last modified time | relevance | path

Searched refs:vib (Results 1 – 12 of 12) sorted by relevance

/openbmc/linux/drivers/input/misc/
H A Dpm8xxx-vibrator.c74 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->regs; in pm8xxx_work_handler()
109 rc = regmap_read(vib->regmap, regs->drv_addr, &val); in pm8xxx_work_handler()
[all …]
/openbmc/linux/drivers/staging/greybus/
H A Dvibrator.c29 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
[all …]
/openbmc/qemu/hw/audio/
H A Dfmopl.c219 static int32_t vib; variable
387 SLOT->vib = (v&0x40); in set_mul()
455 if(SLOT->vib) SLOT->Cnt += (SLOT->Incr*vib/VIB_RATE); in OPL_CALC_CH()
479 if(SLOT->vib) SLOT->Cnt += (SLOT->Incr*vib/VIB_RATE); in OPL_CALC_CH()
505 if(SLOT->vib) SLOT->Cnt += (SLOT->Incr*vib/VIB_RATE); in OPL_CALC_RH()
530 if(SLOT->vib) SLOT->Cnt += (SLOT->Incr*vib/VIB_RATE); in OPL_CALC_RH()
546 if(SLOT7_1->vib) SLOT7_1->Cnt += (2*SLOT7_1->Incr*vib/VIB_RATE); in OPL_CALC_RH()
548 if(SLOT7_2->vib) SLOT7_2->Cnt += ((CH[7].fc*8)*vib/VIB_RATE); in OPL_CALC_RH()
550 if(SLOT8_1->vib) SLOT8_1->Cnt += (SLOT8_1->Incr*vib/VIB_RATE); in OPL_CALC_RH()
552 if(SLOT8_2->vib) SLOT8_2->Cnt += ((CH[8].fc*48)*vib/VIB_RATE); in OPL_CALC_RH()
[all …]
H A Dfmopl.h35 uint8_t vib; /* vibrate flag */ member
/openbmc/linux/arch/arm/boot/dts/qcom/
H A Dqcom-apq8026-huawei-sturgeon.dts84 vib-rated-mv = <2765>;
85 vib-overdrive-mv = <3525>;
H A Dpm8226.dtsi175 compatible = "qcom,pm8916-vib";
H A Dpm8941.dtsi208 compatible = "qcom,pm8916-vib";
H A Dqcom-msm8660.dtsi445 compatible = "qcom,pm8058-vib";
/openbmc/linux/drivers/gpu/drm/nouveau/dispnv50/
H A Dhead.c83 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()
/openbmc/linux/arch/arm64/boot/dts/qcom/
H A Dpm8916.dtsi137 compatible = "qcom,pm8916-vib";
H A Dmsm8998-sony-xperia-yoshino.dtsi397 vib_ldo_en: vib-ldo-en-state {
H A Dmsm8996-sony-xperia-tone.dtsi497 vib-ldo-en-gpio-pins {