Home
last modified time | relevance | path

Searched refs:debounce (Results 1 – 25 of 302) sorted by relevance

12345678910>>...13

/linux/drivers/gpio/
H A Dgpio-menz127.c39 unsigned debounce) in men_z127_debounce() argument
46 if (!MEN_Z127_DB_IN_RANGE(debounce)) { in men_z127_debounce()
47 dev_err(dev, "debounce value %u out of range", debounce); in men_z127_debounce()
51 if (debounce > 0) { in men_z127_debounce()
53 rnd = fls(debounce) - 1; in men_z127_debounce()
55 if (rnd && (debounce & BIT(rnd - 1))) in men_z127_debounce()
56 debounce = roundup(debounce, MEN_Z127_DB_MIN_US); in men_z127_debounce()
58 debounce = rounddown(debounce, MEN_Z127_DB_MIN_US); in men_z127_debounce()
60 if (debounce > MEN_Z127_DB_MAX_US) in men_z127_debounce()
61 debounce = MEN_Z127_DB_MAX_US; in men_z127_debounce()
[all …]
H A Dgpio-bcm-kona.c255 unsigned debounce) in bcm_kona_gpio_set_debounce() argument
265 if ((debounce > 0 && debounce < 1000) || debounce > 128000) { in bcm_kona_gpio_set_debounce()
267 debounce); in bcm_kona_gpio_set_debounce()
272 if (debounce != 0) { in bcm_kona_gpio_set_debounce()
274 debounce /= 1000; in bcm_kona_gpio_set_debounce()
276 res = fls(debounce) - 1; in bcm_kona_gpio_set_debounce()
278 if (res > 0 && (debounce & BIT(res - 1))) in bcm_kona_gpio_set_debounce()
288 if (debounce == 0) { in bcm_kona_gpio_set_debounce()
306 u32 debounce; in bcm_kona_gpio_set_config() local
311 debounce = pinconf_to_config_argument(config); in bcm_kona_gpio_set_config()
[all …]
H A Dgpio-twl4030.c453 static int gpio_twl4030_debounce(u32 debounce, u8 mmc_cd) in gpio_twl4030_debounce() argument
460 message[0] = (debounce & 0xff) | (mmc_cd & 0x03); in gpio_twl4030_debounce()
461 debounce >>= 8; in gpio_twl4030_debounce()
462 message[1] = (debounce & 0xff); in gpio_twl4030_debounce()
463 debounce >>= 8; in gpio_twl4030_debounce()
464 message[2] = (debounce & 0x03); in gpio_twl4030_debounce()
482 &omap_twl_info->debounce); in of_gpio_twl4030()
561 ret = gpio_twl4030_debounce(pdata->debounce, pdata->mmc_cd); in gpio_twl4030_probe()
564 pdata->debounce, pdata->mmc_cd, ret); in gpio_twl4030_probe()
H A Dgpio-wm831x.c102 unsigned debounce) in wm831x_gpio_set_debounce() argument
120 if (debounce >= 32 && debounce <= 64) in wm831x_gpio_set_debounce()
122 else if (debounce >= 4000 && debounce <= 8000) in wm831x_gpio_set_debounce()
H A Dgpio-rockchip.c49 .debounce = 0x48,
64 .debounce = 0x38,
205 unsigned int debounce) in rockchip_gpio_set_debounce() argument
218 if (debounce > max_debounce) in rockchip_gpio_set_debounce()
221 div = debounce * freq; in rockchip_gpio_set_debounce()
230 if (debounce) { in rockchip_gpio_set_debounce()
242 rockchip_gpio_writel_bit(bank, offset, 1, reg->debounce); in rockchip_gpio_set_debounce()
248 rockchip_gpio_writel_bit(bank, offset, 0, reg->debounce); in rockchip_gpio_set_debounce()
255 if (debounce) in rockchip_gpio_set_debounce()
/linux/arch/arm/boot/dts/samsung/
H A Ds3c6410-mini6410.dts71 debounce-interval = <20>;
78 debounce-interval = <20>;
85 debounce-interval = <20>;
92 debounce-interval = <20>;
99 debounce-interval = <20>;
106 debounce-interval = <20>;
113 debounce-interval = <20>;
120 debounce-interval = <20>;
/linux/drivers/mmc/core/
H A Dslot-gpio.c189 unsigned int debounce) in mmc_gpiod_request_cd() argument
203 if (debounce) { in mmc_gpiod_request_cd()
204 ret = gpiod_set_debounce(desc, debounce); in mmc_gpiod_request_cd()
206 ctx->cd_debounce_delay_ms = debounce / 1000; in mmc_gpiod_request_cd()
261 unsigned int idx, unsigned int debounce) in mmc_gpiod_request_ro() argument
275 if (debounce) { in mmc_gpiod_request_ro()
276 ret = gpiod_set_debounce(desc, debounce); in mmc_gpiod_request_ro()
/linux/drivers/input/touchscreen/
H A Dmk712.c81 static int debounce = 1; in mk712_interrupt() local
90 debounce = 1; in mk712_interrupt()
95 debounce = 1; in mk712_interrupt()
100 if (debounce) { in mk712_interrupt()
101 debounce = 0; in mk712_interrupt()
H A Dts4800-ts.c45 int debounce; member
54 ts->debounce = DEBOUNCE_COUNT; in ts4800_ts_open()
84 if (ts->debounce) { in ts4800_ts_poll()
85 ts->debounce--; in ts4800_ts_poll()
102 ts->debounce = DEBOUNCE_COUNT; in ts4800_ts_poll()
/linux/drivers/input/keyboard/
H A Dmt6779-keypad.c116 u32 debounce; in mt6779_keypad_pdrv_probe() local
156 &debounce)) in mt6779_keypad_pdrv_probe()
157 debounce = 16; in mt6779_keypad_pdrv_probe()
159 if (debounce > MTK_KPD_DEBOUNCE_MAX_MS) { in mt6779_keypad_pdrv_probe()
186 keypad->n_rows, keypad->n_cols, debounce); in mt6779_keypad_pdrv_probe()
199 (debounce * (1 << 5)) & MTK_KPD_DEBOUNCE_MASK); in mt6779_keypad_pdrv_probe()
/linux/arch/arm/boot/dts/arm/
H A Dintegratorap-im-pd1.dts92 debounce-interval = <50>;
98 debounce-interval = <50>;
104 debounce-interval = <50>;
110 debounce-interval = <50>;
116 debounce-interval = <50>;
122 debounce-interval = <50>;
/linux/arch/arm/boot/dts/ti/omap/
H A Domap3-devkit8000-lcd-common.dtsi65 ti,debounce-max = /bits/ 16 <10>;
66 ti,debounce-tol = /bits/ 16 <5>;
67 ti,debounce-rep = /bits/ 16 <1>;
H A Domap4-droid4-xt894.dts27 /* Value above 7.95ms for no GPIO hardware debounce */
28 debounce-interval = <10>;
42 /* Value above 7.95ms for no GPIO hardware debounce */
43 debounce-interval = <10>;
/linux/Documentation/devicetree/bindings/input/
H A Dbrcm,bcm-keypad.txt29 - col-debounce-filter-period: The debounce period for the Column filter.
40 - status-debounce-filter-period: The debounce period for the Status filter.
102 col-debounce-filter-period = <5>;
H A Dpxa27x-keypad.txt7 - marvell,debounce-interval : How long time the key will be
9 is debounce interval for direct key and bit[15:0] is debounce
59 marvell,debounce-interval = <0x001e001e>;
H A Dgpio-matrix-keypad.txt24 - debounce-delay-ms: debounce interval in milliseconds
33 debounce-delay-ms = <5>;
/linux/arch/arm64/boot/dts/sprd/
H A Dsp9860g-1h10.dts43 debounce-interval = <2>;
51 debounce-interval = <2>;
59 debounce-interval = <2>;
/linux/arch/sh/drivers/
H A Dpush-switch.c28 struct push_switch *psw = from_timer(psw, t, debounce); in switch_timer()
78 timer_setup(&psw->debounce, switch_timer, 0); in switch_drv_probe()
104 timer_shutdown_sync(&psw->debounce); in switch_drv_remove()
/linux/arch/arm64/boot/dts/arm/
H A Djuno-motherboard.dtsi51 debounce-interval = <50>;
58 debounce-interval = <50>;
65 debounce-interval = <50>;
72 debounce-interval = <50>;
79 debounce-interval = <50>;
86 debounce-interval = <50>;
/linux/arch/arm64/boot/dts/qcom/
H A Dmsm8998-fxtec-pro1.dts46 debounce-interval = <15>;
63 debounce-interval = <15>;
71 debounce-interval = <15>;
79 debounce-interval = <15>;
87 debounce-interval = <15>;
95 debounce-interval = <15>;
103 debounce-interval = <15>;
120 debounce-interval = <15>;
128 debounce-interval = <15>;
136 debounce-interval = <15>;
/linux/include/linux/mmc/
H A Dslot-gpio.h21 unsigned int debounce);
23 unsigned int idx, unsigned int debounce);
/linux/arch/arm/boot/dts/nxp/imx/
H A Dimx7d-pico-hobbit.dts76 ti,debounce-max = /bits/ 16 <70>;
77 ti,debounce-tol = /bits/ 16 <3>;
78 ti,debounce-rep = /bits/ 16 <2>;
H A Dimx53-sk-imx53-atm0700d4.dtsi35 ti,debounce-tol = /bits/ 16 <10>;
36 ti,debounce-rep = /bits/ 16 <0>;
/linux/sound/soc/codecs/
H A Dmt6359-accdet.c59 unsigned int debounce);
269 unsigned int debounce) in accdet_set_debounce() argument
273 regmap_write(priv->regmap, ACCDET_DEBOUNCE0_ADDR, debounce); in accdet_set_debounce()
276 regmap_write(priv->regmap, ACCDET_DEBOUNCE1_ADDR, debounce); in accdet_set_debounce()
279 regmap_write(priv->regmap, ACCDET_DEBOUNCE2_ADDR, debounce); in accdet_set_debounce()
282 regmap_write(priv->regmap, ACCDET_DEBOUNCE3_ADDR, debounce); in accdet_set_debounce()
286 ACCDET_CONNECT_AUXADC_TIME_DIG_ADDR, debounce); in accdet_set_debounce()
291 debounce << ACCDET_EINT_DEBOUNCE0_SFT); in accdet_set_debounce()
296 debounce << ACCDET_EINT_DEBOUNCE1_SFT); in accdet_set_debounce()
301 debounce << ACCDET_EINT_DEBOUNCE2_SFT); in accdet_set_debounce()
[all …]
/linux/arch/arm64/boot/dts/renesas/
H A Drzg3s-smarc.dtsi27 debounce-interval = <20>;
35 debounce-interval = <20>;
43 debounce-interval = <20>;

12345678910>>...13