Home
last modified time | relevance | path

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

12

/linux-4.19.296/drivers/gpio/
Dgpio-menz127.c42 unsigned debounce) in men_z127_debounce() argument
49 if (!MEN_Z127_DB_IN_RANGE(debounce)) { in men_z127_debounce()
50 dev_err(dev, "debounce value %u out of range", debounce); in men_z127_debounce()
54 if (debounce > 0) { in men_z127_debounce()
56 rnd = fls(debounce) - 1; in men_z127_debounce()
58 if (rnd && (debounce & BIT(rnd - 1))) in men_z127_debounce()
59 debounce = roundup(debounce, MEN_Z127_DB_MIN_US); in men_z127_debounce()
61 debounce = rounddown(debounce, MEN_Z127_DB_MIN_US); in men_z127_debounce()
63 if (debounce > MEN_Z127_DB_MAX_US) in men_z127_debounce()
64 debounce = MEN_Z127_DB_MAX_US; in men_z127_debounce()
[all …]
Dgpio-bcm-kona.c263 unsigned debounce) in bcm_kona_gpio_set_debounce() argument
273 if ((debounce > 0 && debounce < 1000) || debounce > 128000) { in bcm_kona_gpio_set_debounce()
275 debounce); in bcm_kona_gpio_set_debounce()
280 if (debounce != 0) { in bcm_kona_gpio_set_debounce()
282 debounce /= 1000; in bcm_kona_gpio_set_debounce()
284 res = fls(debounce) - 1; in bcm_kona_gpio_set_debounce()
286 if (res > 0 && (debounce & BIT(res - 1))) in bcm_kona_gpio_set_debounce()
296 if (debounce == 0) { in bcm_kona_gpio_set_debounce()
314 u32 debounce; in bcm_kona_gpio_set_config() local
319 debounce = pinconf_to_config_argument(config); in bcm_kona_gpio_set_config()
[all …]
Dgpio-twl4030.c424 static int gpio_twl4030_debounce(u32 debounce, u8 mmc_cd) in gpio_twl4030_debounce() argument
431 message[0] = (debounce & 0xff) | (mmc_cd & 0x03); in gpio_twl4030_debounce()
432 debounce >>= 8; in gpio_twl4030_debounce()
433 message[1] = (debounce & 0xff); in gpio_twl4030_debounce()
434 debounce >>= 8; in gpio_twl4030_debounce()
435 message[2] = (debounce & 0x03); in gpio_twl4030_debounce()
459 &omap_twl_info->debounce); in of_gpio_twl4030()
531 ret = gpio_twl4030_debounce(pdata->debounce, pdata->mmc_cd); in gpio_twl4030_probe()
534 pdata->debounce, pdata->mmc_cd, ret); in gpio_twl4030_probe()
Dgpio-wm831x.c105 unsigned debounce) in wm831x_gpio_set_debounce() argument
123 if (debounce >= 32 && debounce <= 64) in wm831x_gpio_set_debounce()
125 else if (debounce >= 4000 && debounce <= 8000) in wm831x_gpio_set_debounce()
Dgpio-omap.c47 u32 debounce; member
262 unsigned debounce) in omap2_set_gpio_debounce() argument
267 bool enable = !!debounce; in omap2_set_gpio_debounce()
273 debounce = DIV_ROUND_UP(debounce, 31) - 1; in omap2_set_gpio_debounce()
274 if ((debounce & OMAP4_GPIO_DEBOUNCINGTIME_MASK) != debounce) in omap2_set_gpio_debounce()
281 reg = bank->base + bank->regs->debounce; in omap2_set_gpio_debounce()
282 writel_relaxed(debounce, reg); in omap2_set_gpio_debounce()
305 bank->context.debounce = debounce; in omap2_set_gpio_debounce()
338 bank->context.debounce = 0; in omap_clear_gpio_debounce()
339 writel_relaxed(bank->context.debounce, bank->base + in omap_clear_gpio_debounce()
[all …]
Dgpio-max77620.c157 unsigned int debounce) in max77620_gpio_set_debounce() argument
162 switch (debounce) { in max77620_gpio_set_debounce()
176 dev_err(mgpio->dev, "Illegal value %u\n", debounce); in max77620_gpio_set_debounce()
Dgpio-merrifield.c173 unsigned int debounce) in mrfld_gpio_set_debounce() argument
182 if (debounce) in mrfld_gpio_set_debounce()
196 u32 debounce; in mrfld_gpio_set_config() local
201 debounce = pinconf_to_config_argument(config); in mrfld_gpio_set_config()
202 return mrfld_gpio_set_debounce(chip, offset, debounce); in mrfld_gpio_set_config()
Dgpio-ep93xx.c299 u32 debounce; in ep93xx_gpio_set_config() local
307 debounce = pinconf_to_config_argument(config); in ep93xx_gpio_set_config()
308 ep93xx_gpio_int_debounce(irq, debounce ? true : false); in ep93xx_gpio_set_config()
Dgpio-tegra.c214 unsigned int debounce) in tegra_gpio_set_debounce() argument
218 unsigned int debounce_ms = DIV_ROUND_UP(debounce, 1000); in tegra_gpio_set_debounce()
249 u32 debounce; in tegra_gpio_set_config() local
254 debounce = pinconf_to_config_argument(config); in tegra_gpio_set_config()
255 return tegra_gpio_set_debounce(chip, offset, debounce); in tegra_gpio_set_config()
Dgpio-max3191x.c272 u32 debounce, chipnum, db0_val, db1_val; in max3191x_set_config() local
280 debounce = pinconf_to_config_argument(config); in max3191x_set_config()
281 switch (debounce) { in max3191x_set_config()
Dgpio-dwapb.c346 unsigned offset, unsigned debounce) in dwapb_gpio_set_debounce() argument
356 if (debounce) in dwapb_gpio_set_debounce()
369 u32 debounce; in dwapb_gpio_set_config() local
374 debounce = pinconf_to_config_argument(config); in dwapb_gpio_set_config()
375 return dwapb_gpio_set_debounce(gc, offset, debounce); in dwapb_gpio_set_config()
Dgpio-pmic-eic-sprd.c122 unsigned int debounce) in sprd_pmic_eic_set_debounce() argument
134 value |= (debounce / 1000) & SPRD_PMIC_EIC_DBNC_MASK; in sprd_pmic_eic_set_debounce()
Dgpio-eic-sprd.c209 unsigned int debounce) in sprd_eic_set_debounce() argument
217 value |= (debounce / 1000) & SPRD_EIC_DBNC_MASK; in sprd_eic_set_debounce()
/linux-4.19.296/include/linux/mmc/
Dslot-gpio.h24 unsigned int debounce);
28 unsigned int debounce, bool *gpio_invert);
31 unsigned int debounce, bool *gpio_invert);
/linux-4.19.296/include/asm-generic/
Dgpio.h79 static inline int gpio_set_debounce(unsigned gpio, unsigned debounce) in gpio_set_debounce() argument
81 return gpiod_set_debounce(gpio_to_desc(gpio), debounce); in gpio_set_debounce()
/linux-4.19.296/drivers/extcon/
Dextcon-palmas.c242 u32 debounce; in palmas_usb_probe() local
244 if (of_property_read_u32(node, "debounce-delay-ms", &debounce)) in palmas_usb_probe()
245 debounce = USB_GPIO_DEBOUNCE_MS; in palmas_usb_probe()
248 debounce * 1000); in palmas_usb_probe()
250 palmas_usb->sw_debounce_jiffies = msecs_to_jiffies(debounce); in palmas_usb_probe()
Dextcon-gpio.c51 unsigned long debounce; member
Dextcon-arizona.c1025 int debounce = arizona->pdata.micd_detect_debounce; in arizona_micdet() local
1032 debounce = 0; in arizona_micdet()
1035 if (debounce) in arizona_micdet()
1038 msecs_to_jiffies(debounce)); in arizona_micdet()
/linux-4.19.296/include/linux/platform_data/
Dkeypad-w90p910.h13 unsigned int debounce; member
Dkeypad-ep93xx.h24 unsigned int debounce; member
Dgpio-omap.h175 u16 debounce; member
/linux-4.19.296/include/linux/
Dgpio.h157 static inline int gpio_set_debounce(unsigned gpio, unsigned debounce) in gpio_set_debounce() argument
/linux-4.19.296/include/linux/gpio/
Dconsumer.h138 int gpiod_set_debounce(struct gpio_desc *desc, unsigned debounce);
434 static inline int gpiod_set_debounce(struct gpio_desc *desc, unsigned debounce) in gpiod_set_debounce() argument
/linux-4.19.296/include/linux/mfd/wm8350/
Dgpio.h350 int pol, int pull, int invert, int debounce);
/linux-4.19.296/include/linux/mfd/
Dtwl.h595 u32 debounce; member

12