Home
last modified time | relevance | path

Searched refs:debounce (Results 1 - 25 of 107) sorted by relevance

12345

/kernel/linux/linux-5.10/drivers/gpio/
H A Dgpio-menz127.c39 unsigned debounce) in men_z127_debounce()
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 in men_z127_debounce()
38 men_z127_debounce(struct gpio_chip *gc, unsigned gpio, unsigned debounce) men_z127_debounce() argument
[all...]
H A Dgpio-bcm-kona.c262 unsigned debounce) in bcm_kona_gpio_set_debounce()
271 /* debounce must be 1-128ms (or 0) */ in bcm_kona_gpio_set_debounce()
272 if ((debounce > 0 && debounce < 1000) || debounce > 128000) { in bcm_kona_gpio_set_debounce()
274 debounce); in bcm_kona_gpio_set_debounce()
278 /* calculate debounce bit value */ in bcm_kona_gpio_set_debounce()
279 if (debounce != 0) { in bcm_kona_gpio_set_debounce()
281 debounce /= 1000; in bcm_kona_gpio_set_debounce()
283 res = fls(debounce) in bcm_kona_gpio_set_debounce()
261 bcm_kona_gpio_set_debounce(struct gpio_chip *chip, unsigned gpio, unsigned debounce) bcm_kona_gpio_set_debounce() argument
313 u32 debounce; bcm_kona_gpio_set_config() local
[all...]
H A Dgpio-twl4030.c451 static int gpio_twl4030_debounce(u32 debounce, u8 mmc_cd) in gpio_twl4030_debounce() argument
458 message[0] = (debounce & 0xff) | (mmc_cd & 0x03); in gpio_twl4030_debounce()
459 debounce >>= 8; in gpio_twl4030_debounce()
460 message[1] = (debounce & 0xff); in gpio_twl4030_debounce()
461 debounce >>= 8; in gpio_twl4030_debounce()
462 message[2] = (debounce & 0x03); in gpio_twl4030_debounce()
485 of_property_read_u32(dev->of_node, "ti,debounce", in of_gpio_twl4030()
486 &omap_twl_info->debounce); in of_gpio_twl4030()
558 ret = gpio_twl4030_debounce(pdata->debounce, pdata->mmc_cd); in gpio_twl4030_probe()
560 dev_dbg(&pdev->dev, "debounce in gpio_twl4030_probe()
[all...]
H A Dgpio-wm831x.c101 unsigned debounce) in wm831x_gpio_set_debounce()
119 if (debounce >= 32 && debounce <= 64) in wm831x_gpio_set_debounce()
121 else if (debounce >= 4000 && debounce <= 8000) in wm831x_gpio_set_debounce()
100 wm831x_gpio_set_debounce(struct wm831x *wm831x, unsigned offset, unsigned debounce) wm831x_gpio_set_debounce() argument
H A Dgpio-omap.c43 u32 debounce; member
157 * Disable debounce before cutting it's clock. If debounce is in omap_gpio_dbck_disable()
169 * omap2_set_gpio_debounce - low level gpio debounce time
172 * @debounce: debounce time to use
174 * OMAP's debounce time is in 31us steps
175 * <debounce time> = (GPIO_DEBOUNCINGTIME[7:0].DEBOUNCETIME + 1) x 31
181 unsigned debounce) in omap2_set_gpio_debounce()
185 bool enable = !!debounce; in omap2_set_gpio_debounce()
180 omap2_set_gpio_debounce(struct gpio_bank *bank, unsigned offset, unsigned debounce) omap2_set_gpio_debounce() argument
876 omap_gpio_debounce(struct gpio_chip *chip, unsigned offset, unsigned debounce) omap_gpio_debounce() argument
900 u32 debounce; omap_gpio_set_config() local
[all...]
/kernel/linux/linux-6.6/drivers/gpio/
H A Dgpio-menz127.c39 unsigned debounce) in men_z127_debounce()
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 in men_z127_debounce()
38 men_z127_debounce(struct gpio_chip *gc, unsigned gpio, unsigned debounce) men_z127_debounce() argument
[all...]
H A Dgpio-bcm-kona.c255 unsigned debounce) in bcm_kona_gpio_set_debounce()
264 /* debounce must be 1-128ms (or 0) */ in bcm_kona_gpio_set_debounce()
265 if ((debounce > 0 && debounce < 1000) || debounce > 128000) { in bcm_kona_gpio_set_debounce()
267 debounce); in bcm_kona_gpio_set_debounce()
271 /* calculate debounce bit value */ 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) in bcm_kona_gpio_set_debounce()
254 bcm_kona_gpio_set_debounce(struct gpio_chip *chip, unsigned gpio, unsigned debounce) bcm_kona_gpio_set_debounce() argument
306 u32 debounce; bcm_kona_gpio_set_config() local
[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()
481 of_property_read_u32(dev->of_node, "ti,debounce", in of_gpio_twl4030()
482 &omap_twl_info->debounce); in of_gpio_twl4030()
561 ret = gpio_twl4030_debounce(pdata->debounce, pdata->mmc_cd); in gpio_twl4030_probe()
563 dev_dbg(&pdev->dev, "debounce in gpio_twl4030_probe()
[all...]
H A Dgpio-wm831x.c101 unsigned debounce) in wm831x_gpio_set_debounce()
119 if (debounce >= 32 && debounce <= 64) in wm831x_gpio_set_debounce()
121 else if (debounce >= 4000 && debounce <= 8000) in wm831x_gpio_set_debounce()
100 wm831x_gpio_set_debounce(struct wm831x *wm831x, unsigned offset, unsigned debounce) wm831x_gpio_set_debounce() argument
H A Dgpio-omap.c43 u32 debounce; member
158 * Disable debounce before cutting it's clock. If debounce is in omap_gpio_dbck_disable()
170 * omap2_set_gpio_debounce - low level gpio debounce time
173 * @debounce: debounce time to use
175 * OMAP's debounce time is in 31us steps
176 * <debounce time> = (GPIO_DEBOUNCINGTIME[7:0].DEBOUNCETIME + 1) x 31
182 unsigned debounce) in omap2_set_gpio_debounce()
186 bool enable = !!debounce; in omap2_set_gpio_debounce()
181 omap2_set_gpio_debounce(struct gpio_bank *bank, unsigned offset, unsigned debounce) omap2_set_gpio_debounce() argument
912 omap_gpio_debounce(struct gpio_chip *chip, unsigned offset, unsigned debounce) omap_gpio_debounce() argument
936 u32 debounce; omap_gpio_set_config() local
[all...]
/kernel/linux/linux-5.10/drivers/mmc/core/
H A Dslot-gpio.c30 /* Schedule a card detection after a debounce timeout */ in mmc_gpio_cd_irqt()
166 * @debounce: debounce time in microseconds
175 unsigned int debounce) in mmc_gpiod_request_cd()
185 if (debounce) { in mmc_gpiod_request_cd()
186 ret = gpiod_set_debounce(desc, debounce); in mmc_gpiod_request_cd()
188 ctx->cd_debounce_delay_ms = debounce / 1000; in mmc_gpiod_request_cd()
218 * @debounce: debounce time in microseconds
223 unsigned int idx, unsigned int debounce) in mmc_gpiod_request_ro()
173 mmc_gpiod_request_cd(struct mmc_host *host, const char *con_id, unsigned int idx, bool override_active_level, unsigned int debounce) mmc_gpiod_request_cd() argument
222 mmc_gpiod_request_ro(struct mmc_host *host, const char *con_id, unsigned int idx, unsigned int debounce) mmc_gpiod_request_ro() argument
[all...]
/kernel/linux/linux-6.6/drivers/mmc/core/
H A Dslot-gpio.c31 /* Schedule a card detection after a debounce timeout */ in mmc_gpio_cd_irqt()
181 * @debounce: debounce time in microseconds
190 unsigned int debounce) in mmc_gpiod_request_cd()
204 if (debounce) { in mmc_gpiod_request_cd()
205 ret = gpiod_set_debounce(desc, debounce); in mmc_gpiod_request_cd()
207 ctx->cd_debounce_delay_ms = debounce / 1000; in mmc_gpiod_request_cd()
237 * @debounce: debounce time in microseconds
242 unsigned int idx, unsigned int debounce) in mmc_gpiod_request_ro()
188 mmc_gpiod_request_cd(struct mmc_host *host, const char *con_id, unsigned int idx, bool override_active_level, unsigned int debounce) mmc_gpiod_request_cd() argument
241 mmc_gpiod_request_ro(struct mmc_host *host, const char *con_id, unsigned int idx, unsigned int debounce) mmc_gpiod_request_ro() argument
[all...]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-6.6/drivers/input/keyboard/
H A Dmt6779-keypad.c121 u32 debounce; in mt6779_keypad_pdrv_probe() local
160 if (device_property_read_u32(&pdev->dev, "debounce-delay-ms", in mt6779_keypad_pdrv_probe()
161 &debounce)) in mt6779_keypad_pdrv_probe()
162 debounce = 16; in mt6779_keypad_pdrv_probe()
164 if (debounce > MTK_KPD_DEBOUNCE_MAX_MS) { in mt6779_keypad_pdrv_probe()
190 dev_dbg(&pdev->dev, "n_row=%d n_col=%d debounce=%d\n", in mt6779_keypad_pdrv_probe()
191 keypad->n_rows, keypad->n_cols, debounce); in mt6779_keypad_pdrv_probe()
204 (debounce * (1 << 5)) & MTK_KPD_DEBOUNCE_MASK); in mt6779_keypad_pdrv_probe()
/kernel/linux/linux-5.10/drivers/pinctrl/intel/
H A Dpinctrl-baytrail.c905 u32 conf, pull, val, debounce; in byt_pin_config_get() local
940 debounce = readl(db_reg); in byt_pin_config_get()
943 switch (debounce & BYT_DEBOUNCE_PULSE_MASK) { in byt_pin_config_get()
990 u32 conf, val, debounce; in byt_pin_config_set() local
1051 debounce = readl(db_reg); in byt_pin_config_set()
1060 debounce &= ~BYT_DEBOUNCE_PULSE_MASK; in byt_pin_config_set()
1061 debounce |= BYT_DEBOUNCE_PULSE_375US; in byt_pin_config_set()
1064 debounce &= ~BYT_DEBOUNCE_PULSE_MASK; in byt_pin_config_set()
1065 debounce |= BYT_DEBOUNCE_PULSE_750US; in byt_pin_config_set()
1068 debounce in byt_pin_config_set()
[all...]
/kernel/linux/linux-5.10/drivers/pinctrl/
H A Dpinctrl-amd.c120 unsigned debounce) in amd_gpio_set_debounce()
130 /* Use special handling for Pin0 debounce */ in amd_gpio_set_debounce()
134 debounce = 0; in amd_gpio_set_debounce()
139 if (debounce) { in amd_gpio_set_debounce()
152 if (debounce < 61) { in amd_gpio_set_debounce()
156 } else if (debounce < 976) { in amd_gpio_set_debounce()
157 time = debounce / 61; in amd_gpio_set_debounce()
161 } else if (debounce < 3900) { in amd_gpio_set_debounce()
162 time = debounce / 244; in amd_gpio_set_debounce()
166 } else if (debounce < 25000 in amd_gpio_set_debounce()
119 amd_gpio_set_debounce(struct gpio_chip *gc, unsigned offset, unsigned debounce) amd_gpio_set_debounce() argument
763 u32 debounce = pinconf_to_config_argument(config); amd_gpio_set_config() local
[all...]
/kernel/linux/linux-5.10/include/linux/mmc/
H A Dslot-gpio.h20 unsigned int debounce);
22 unsigned int idx, unsigned int debounce);
/kernel/linux/linux-6.6/include/linux/mmc/
H A Dslot-gpio.h21 unsigned int debounce);
23 unsigned int idx, unsigned int debounce);
/kernel/linux/linux-5.10/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()
105 del_timer_sync(&psw->debounce); in switch_drv_remove()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/drivers/pinctrl/mediatek/
H A Dmtk-eint.h76 unsigned int debounce);
96 unsigned int debounce) in mtk_eint_set_debounce()
95 mtk_eint_set_debounce(struct mtk_eint *eint, unsigned long eint_n, unsigned int debounce) mtk_eint_set_debounce() argument
/kernel/linux/linux-5.10/include/asm-generic/
H A Dgpio.h77 static inline int gpio_set_debounce(unsigned gpio, unsigned debounce) in gpio_set_debounce() argument
79 return gpiod_set_debounce(gpio_to_desc(gpio), debounce); in gpio_set_debounce()

Completed in 15 milliseconds

12345