debounce 229 arch/mips/include/asm/mach-au1x00/gpio-au1300.h static inline int gpio_set_debounce(unsigned gpio, unsigned debounce) debounce 150 arch/mips/sgi-ip22/ip22-reset.c timer_setup(&debounce_timer, debounce, 0); debounce 37 arch/sh/boards/mach-highlander/psw.c mod_timer(&psw->debounce, jiffies + 50); debounce 36 arch/sh/boards/mach-landisk/psw.c mod_timer(&psw->debounce, jiffies + 50); debounce 28 arch/sh/drivers/push-switch.c struct push_switch *psw = from_timer(psw, t, debounce); debounce 78 arch/sh/drivers/push-switch.c timer_setup(&psw->debounce, switch_timer, 0); debounce 105 arch/sh/drivers/push-switch.c del_timer_sync(&psw->debounce); debounce 14 arch/sh/include/asm/push-switch.h struct timer_list debounce; debounce 1019 drivers/extcon/extcon-arizona.c int debounce = arizona->pdata.micd_detect_debounce; debounce 1026 drivers/extcon/extcon-arizona.c debounce = 0; debounce 1029 drivers/extcon/extcon-arizona.c if (debounce) debounce 1032 drivers/extcon/extcon-arizona.c msecs_to_jiffies(debounce)); debounce 40 drivers/extcon/extcon-gpio.c unsigned long debounce; debounce 231 drivers/extcon/extcon-palmas.c u32 debounce; debounce 233 drivers/extcon/extcon-palmas.c if (of_property_read_u32(node, "debounce-delay-ms", &debounce)) debounce 234 drivers/extcon/extcon-palmas.c debounce = USB_GPIO_DEBOUNCE_MS; debounce 237 drivers/extcon/extcon-palmas.c debounce * 1000); debounce 239 drivers/extcon/extcon-palmas.c palmas_usb->sw_debounce_jiffies = msecs_to_jiffies(debounce); debounce 263 drivers/gpio/gpio-bcm-kona.c unsigned debounce) debounce 273 drivers/gpio/gpio-bcm-kona.c if ((debounce > 0 && debounce < 1000) || debounce > 128000) { debounce 275 drivers/gpio/gpio-bcm-kona.c debounce); debounce 280 drivers/gpio/gpio-bcm-kona.c if (debounce != 0) { debounce 282 drivers/gpio/gpio-bcm-kona.c debounce /= 1000; debounce 284 drivers/gpio/gpio-bcm-kona.c res = fls(debounce) - 1; debounce 286 drivers/gpio/gpio-bcm-kona.c if (res > 0 && (debounce & BIT(res - 1))) debounce 296 drivers/gpio/gpio-bcm-kona.c if (debounce == 0) { debounce 314 drivers/gpio/gpio-bcm-kona.c u32 debounce; debounce 319 drivers/gpio/gpio-bcm-kona.c debounce = pinconf_to_config_argument(config); debounce 320 drivers/gpio/gpio-bcm-kona.c return bcm_kona_gpio_set_debounce(chip, gpio, debounce); debounce 20 drivers/gpio/gpio-bd70528.c unsigned int offset, unsigned int debounce) debounce 24 drivers/gpio/gpio-bd70528.c switch (debounce) { debounce 39 drivers/gpio/gpio-bd70528.c "Invalid debounce value %u\n", debounce); debounce 342 drivers/gpio/gpio-dwapb.c unsigned offset, unsigned debounce) debounce 352 drivers/gpio/gpio-dwapb.c if (debounce) debounce 365 drivers/gpio/gpio-dwapb.c u32 debounce; debounce 370 drivers/gpio/gpio-dwapb.c debounce = pinconf_to_config_argument(config); debounce 371 drivers/gpio/gpio-dwapb.c return dwapb_gpio_set_debounce(gc, offset, debounce); debounce 209 drivers/gpio/gpio-eic-sprd.c unsigned int debounce) debounce 217 drivers/gpio/gpio-eic-sprd.c value |= (debounce / 1000) & SPRD_EIC_DBNC_MASK; debounce 313 drivers/gpio/gpio-ep93xx.c u32 debounce; debounce 318 drivers/gpio/gpio-ep93xx.c debounce = pinconf_to_config_argument(config); debounce 319 drivers/gpio/gpio-ep93xx.c ep93xx_gpio_int_debounce(gc, offset, debounce ? true : false); debounce 269 drivers/gpio/gpio-max3191x.c u32 debounce, chipnum, db0_val, db1_val; debounce 277 drivers/gpio/gpio-max3191x.c debounce = pinconf_to_config_argument(config); debounce 278 drivers/gpio/gpio-max3191x.c switch (debounce) { debounce 186 drivers/gpio/gpio-max77620.c unsigned int debounce) debounce 191 drivers/gpio/gpio-max77620.c switch (debounce) { debounce 205 drivers/gpio/gpio-max77620.c dev_err(mgpio->dev, "Illegal value %u\n", debounce); debounce 39 drivers/gpio/gpio-menz127.c unsigned debounce) debounce 46 drivers/gpio/gpio-menz127.c if (!MEN_Z127_DB_IN_RANGE(debounce)) { debounce 47 drivers/gpio/gpio-menz127.c dev_err(dev, "debounce value %u out of range", debounce); debounce 51 drivers/gpio/gpio-menz127.c if (debounce > 0) { debounce 53 drivers/gpio/gpio-menz127.c rnd = fls(debounce) - 1; debounce 55 drivers/gpio/gpio-menz127.c if (rnd && (debounce & BIT(rnd - 1))) debounce 56 drivers/gpio/gpio-menz127.c debounce = roundup(debounce, MEN_Z127_DB_MIN_US); debounce 58 drivers/gpio/gpio-menz127.c debounce = rounddown(debounce, MEN_Z127_DB_MIN_US); debounce 60 drivers/gpio/gpio-menz127.c if (debounce > MEN_Z127_DB_MAX_US) debounce 61 drivers/gpio/gpio-menz127.c debounce = MEN_Z127_DB_MAX_US; debounce 64 drivers/gpio/gpio-menz127.c debounce /= 50; debounce 71 drivers/gpio/gpio-menz127.c if (debounce == 0) { debounce 76 drivers/gpio/gpio-menz127.c db_cnt = debounce; debounce 169 drivers/gpio/gpio-merrifield.c unsigned int debounce) debounce 178 drivers/gpio/gpio-merrifield.c if (debounce) debounce 192 drivers/gpio/gpio-merrifield.c u32 debounce; debounce 197 drivers/gpio/gpio-merrifield.c debounce = pinconf_to_config_argument(config); debounce 198 drivers/gpio/gpio-merrifield.c return mrfld_gpio_set_debounce(chip, offset, debounce); debounce 42 drivers/gpio/gpio-omap.c u32 debounce; debounce 179 drivers/gpio/gpio-omap.c unsigned debounce) debounce 183 drivers/gpio/gpio-omap.c bool enable = !!debounce; debounce 189 drivers/gpio/gpio-omap.c debounce = DIV_ROUND_UP(debounce, 31) - 1; debounce 190 drivers/gpio/gpio-omap.c if ((debounce & OMAP4_GPIO_DEBOUNCINGTIME_MASK) != debounce) debounce 197 drivers/gpio/gpio-omap.c writel_relaxed(debounce, bank->base + bank->regs->debounce); debounce 213 drivers/gpio/gpio-omap.c bank->context.debounce = debounce; debounce 246 drivers/gpio/gpio-omap.c bank->context.debounce = 0; debounce 247 drivers/gpio/gpio-omap.c writel_relaxed(bank->context.debounce, bank->base + debounce 248 drivers/gpio/gpio-omap.c bank->regs->debounce); debounce 873 drivers/gpio/gpio-omap.c unsigned debounce) debounce 882 drivers/gpio/gpio-omap.c ret = omap2_set_gpio_debounce(bank, offset, debounce); debounce 888 drivers/gpio/gpio-omap.c offset, debounce, ret); debounce 896 drivers/gpio/gpio-omap.c u32 debounce; debounce 901 drivers/gpio/gpio-omap.c debounce = pinconf_to_config_argument(config); debounce 902 drivers/gpio/gpio-omap.c return omap_gpio_debounce(chip, offset, debounce); debounce 1090 drivers/gpio/gpio-omap.c writel_relaxed(bank->context.debounce, base + regs->debounce); debounce 1273 drivers/gpio/gpio-omap.c .debounce = OMAP24XX_GPIO_DEBOUNCE_VAL, debounce 1298 drivers/gpio/gpio-omap.c .debounce = OMAP4_GPIO_DEBOUNCINGTIME, debounce 122 drivers/gpio/gpio-pmic-eic-sprd.c unsigned int debounce) debounce 134 drivers/gpio/gpio-pmic-eic-sprd.c value |= (debounce / 1000) & SPRD_PMIC_EIC_DBNC_MASK; debounce 222 drivers/gpio/gpio-tegra.c unsigned int debounce) debounce 226 drivers/gpio/gpio-tegra.c unsigned int debounce_ms = DIV_ROUND_UP(debounce, 1000); debounce 257 drivers/gpio/gpio-tegra.c u32 debounce; debounce 262 drivers/gpio/gpio-tegra.c debounce = pinconf_to_config_argument(config); debounce 263 drivers/gpio/gpio-tegra.c return tegra_gpio_set_debounce(chip, offset, debounce); debounce 451 drivers/gpio/gpio-twl4030.c static int gpio_twl4030_debounce(u32 debounce, u8 mmc_cd) debounce 458 drivers/gpio/gpio-twl4030.c message[0] = (debounce & 0xff) | (mmc_cd & 0x03); debounce 459 drivers/gpio/gpio-twl4030.c debounce >>= 8; debounce 460 drivers/gpio/gpio-twl4030.c message[1] = (debounce & 0xff); debounce 461 drivers/gpio/gpio-twl4030.c debounce >>= 8; debounce 462 drivers/gpio/gpio-twl4030.c message[2] = (debounce & 0x03); debounce 486 drivers/gpio/gpio-twl4030.c &omap_twl_info->debounce); debounce 558 drivers/gpio/gpio-twl4030.c ret = gpio_twl4030_debounce(pdata->debounce, pdata->mmc_cd); debounce 561 drivers/gpio/gpio-twl4030.c pdata->debounce, pdata->mmc_cd, ret); debounce 101 drivers/gpio/gpio-wm831x.c unsigned debounce) debounce 119 drivers/gpio/gpio-wm831x.c if (debounce >= 32 && debounce <= 64) debounce 121 drivers/gpio/gpio-wm831x.c else if (debounce >= 4000 && debounce <= 8000) debounce 3155 drivers/gpio/gpiolib.c int gpiod_set_debounce(struct gpio_desc *desc, unsigned debounce) debounce 3169 drivers/gpio/gpiolib.c config = pinconf_to_config_packed(PIN_CONFIG_INPUT_DEBOUNCE, debounce); debounce 147 drivers/input/keyboard/ep93xx_keypad.c val |= ((pdata->debounce << KEY_INIT_DBNC_SHIFT) & KEY_INIT_DBNC_MASK); debounce 325 drivers/input/keyboard/lm8323.c int debounce = lm->debounce_time >> 2; debounce 332 drivers/input/keyboard/lm8323.c if (debounce >= active) debounce 333 drivers/input/keyboard/lm8323.c active = debounce + 3; debounce 339 drivers/input/keyboard/lm8323.c lm8323_write(lm, 2, LM8323_CMD_SET_DEBOUNCE, debounce); debounce 45 drivers/input/keyboard/omap-keypad.c unsigned int debounce; debounce 81 drivers/input/touchscreen/mk712.c static int debounce = 1; debounce 90 drivers/input/touchscreen/mk712.c debounce = 1; debounce 95 drivers/input/touchscreen/mk712.c debounce = 1; debounce 100 drivers/input/touchscreen/mk712.c if (debounce) { debounce 101 drivers/input/touchscreen/mk712.c debounce = 0; debounce 46 drivers/input/touchscreen/ts4800-ts.c int debounce; debounce 55 drivers/input/touchscreen/ts4800-ts.c ts->debounce = DEBOUNCE_COUNT; debounce 82 drivers/input/touchscreen/ts4800-ts.c if (ts->debounce) { debounce 83 drivers/input/touchscreen/ts4800-ts.c ts->debounce--; debounce 100 drivers/input/touchscreen/ts4800-ts.c ts->debounce = DEBOUNCE_COUNT; debounce 184 drivers/mfd/wm8350-gpio.c int pol, int pull, int invert, int debounce) debounce 208 drivers/mfd/wm8350-gpio.c if (wm8350_gpio_set_debounce(wm8350, gpio, debounce)) debounce 181 drivers/mmc/core/slot-gpio.c unsigned int debounce, bool *gpio_invert) debounce 191 drivers/mmc/core/slot-gpio.c if (debounce) { debounce 192 drivers/mmc/core/slot-gpio.c ret = gpiod_set_debounce(desc, debounce); debounce 194 drivers/mmc/core/slot-gpio.c ctx->cd_debounce_delay_ms = debounce / 1000; debounce 228 drivers/mmc/core/slot-gpio.c unsigned int debounce, bool *gpio_invert) debounce 238 drivers/mmc/core/slot-gpio.c if (debounce) { debounce 239 drivers/mmc/core/slot-gpio.c ret = gpiod_set_debounce(desc, debounce); debounce 908 drivers/pinctrl/intel/pinctrl-baytrail.c u32 conf, pull, val, debounce; debounce 943 drivers/pinctrl/intel/pinctrl-baytrail.c debounce = readl(db_reg); debounce 946 drivers/pinctrl/intel/pinctrl-baytrail.c switch (debounce & BYT_DEBOUNCE_PULSE_MASK) { debounce 993 drivers/pinctrl/intel/pinctrl-baytrail.c u32 conf, val, debounce; debounce 1054 drivers/pinctrl/intel/pinctrl-baytrail.c debounce = readl(db_reg); debounce 1055 drivers/pinctrl/intel/pinctrl-baytrail.c debounce &= ~BYT_DEBOUNCE_PULSE_MASK; debounce 1064 drivers/pinctrl/intel/pinctrl-baytrail.c debounce |= BYT_DEBOUNCE_PULSE_375US; debounce 1067 drivers/pinctrl/intel/pinctrl-baytrail.c debounce |= BYT_DEBOUNCE_PULSE_750US; debounce 1070 drivers/pinctrl/intel/pinctrl-baytrail.c debounce |= BYT_DEBOUNCE_PULSE_1500US; debounce 1073 drivers/pinctrl/intel/pinctrl-baytrail.c debounce |= BYT_DEBOUNCE_PULSE_3MS; debounce 1076 drivers/pinctrl/intel/pinctrl-baytrail.c debounce |= BYT_DEBOUNCE_PULSE_6MS; debounce 1079 drivers/pinctrl/intel/pinctrl-baytrail.c debounce |= BYT_DEBOUNCE_PULSE_12MS; debounce 1082 drivers/pinctrl/intel/pinctrl-baytrail.c debounce |= BYT_DEBOUNCE_PULSE_24MS; debounce 1091 drivers/pinctrl/intel/pinctrl-baytrail.c writel(debounce, db_reg); debounce 717 drivers/pinctrl/intel/pinctrl-intel.c unsigned int pin, unsigned int debounce) debounce 739 drivers/pinctrl/intel/pinctrl-intel.c if (debounce) { debounce 742 drivers/pinctrl/intel/pinctrl-intel.c v = order_base_2(debounce * NSEC_PER_USEC / DEBOUNCE_PERIOD_NSEC); debounce 391 drivers/pinctrl/mediatek/mtk-eint.c unsigned int debounce) debounce 412 drivers/pinctrl/mediatek/mtk-eint.c if (debounce <= debounce_time[i]) { debounce 76 drivers/pinctrl/mediatek/mtk-eint.h unsigned int debounce); debounce 96 drivers/pinctrl/mediatek/mtk-eint.h unsigned int debounce) debounce 490 drivers/pinctrl/mediatek/pinctrl-moore.c u32 debounce; debounce 499 drivers/pinctrl/mediatek/pinctrl-moore.c debounce = pinconf_to_config_argument(config); debounce 501 drivers/pinctrl/mediatek/pinctrl-moore.c return mtk_eint_set_debounce(hw->eint, desc->eint.eint_n, debounce); debounce 846 drivers/pinctrl/mediatek/pinctrl-mtk-common.c u32 debounce; debounce 855 drivers/pinctrl/mediatek/pinctrl-mtk-common.c debounce = pinconf_to_config_argument(config); debounce 858 drivers/pinctrl/mediatek/pinctrl-mtk-common.c return mtk_eint_set_debounce(pctl->eint, eint_n, debounce); debounce 764 drivers/pinctrl/mediatek/pinctrl-paris.c u32 debounce; debounce 773 drivers/pinctrl/mediatek/pinctrl-paris.c debounce = pinconf_to_config_argument(config); debounce 775 drivers/pinctrl/mediatek/pinctrl-paris.c return mtk_eint_set_debounce(hw->eint, desc->eint.eint_n, debounce); debounce 117 drivers/pinctrl/pinctrl-amd.c unsigned debounce) debounce 128 drivers/pinctrl/pinctrl-amd.c if (debounce) { debounce 141 drivers/pinctrl/pinctrl-amd.c if (debounce < 61) { debounce 145 drivers/pinctrl/pinctrl-amd.c } else if (debounce < 976) { debounce 146 drivers/pinctrl/pinctrl-amd.c time = debounce / 61; debounce 150 drivers/pinctrl/pinctrl-amd.c } else if (debounce < 3900) { debounce 151 drivers/pinctrl/pinctrl-amd.c time = debounce / 244; debounce 155 drivers/pinctrl/pinctrl-amd.c } else if (debounce < 250000) { debounce 156 drivers/pinctrl/pinctrl-amd.c time = debounce / 15600; debounce 160 drivers/pinctrl/pinctrl-amd.c } else if (debounce < 1000000) { debounce 161 drivers/pinctrl/pinctrl-amd.c time = debounce / 62500; debounce 184 drivers/pinctrl/pinctrl-amd.c u32 debounce; debounce 189 drivers/pinctrl/pinctrl-amd.c debounce = pinconf_to_config_argument(config); debounce 190 drivers/pinctrl/pinctrl-amd.c return amd_gpio_set_debounce(gc, offset, debounce); debounce 144 drivers/pinctrl/pinctrl-as3722.c FUNCTION_GROUP(vsup-vbat-low-debounce-out, VSUB_VBAT_LOW_DEB_OUT), debounce 1344 drivers/pinctrl/sunxi/pinctrl-sunxi.c u32 debounce; debounce 1347 drivers/pinctrl/sunxi/pinctrl-sunxi.c i, &debounce); debounce 1351 drivers/pinctrl/sunxi/pinctrl-sunxi.c if (!debounce) debounce 1354 drivers/pinctrl/sunxi/pinctrl-sunxi.c debounce_freq = DIV_ROUND_CLOSEST(USEC_PER_SEC, debounce); debounce 475 drivers/staging/greybus/gpio.c u32 debounce; debounce 480 drivers/staging/greybus/gpio.c debounce = pinconf_to_config_argument(config); debounce 481 drivers/staging/greybus/gpio.c if (debounce > U16_MAX) debounce 484 drivers/staging/greybus/gpio.c return gb_gpio_set_debounce_operation(ggc, (u8)offset, (u16)debounce); debounce 159 drivers/usb/phy/phy-tegra-usb.c u16 debounce; debounce 169 drivers/usb/phy/phy-tegra-usb.c .debounce = 0x7530, debounce 177 drivers/usb/phy/phy-tegra-usb.c .debounce = 0x7EF4, debounce 185 drivers/usb/phy/phy-tegra-usb.c .debounce = 0xBB80, debounce 193 drivers/usb/phy/phy-tegra-usb.c .debounce = 0xFDE8, debounce 481 drivers/usb/phy/phy-tegra-usb.c val |= UTMIP_BIAS_DEBOUNCE_A(phy->freq->debounce); debounce 79 include/asm-generic/gpio.h static inline int gpio_set_debounce(unsigned gpio, unsigned debounce) debounce 81 include/asm-generic/gpio.h return gpiod_set_debounce(gpio_to_desc(gpio), debounce); debounce 158 include/linux/gpio.h static inline int gpio_set_debounce(unsigned gpio, unsigned debounce) debounce 159 include/linux/gpio/consumer.h int gpiod_set_debounce(struct gpio_desc *desc, unsigned debounce); debounce 469 include/linux/gpio/consumer.h static inline int gpiod_set_debounce(struct gpio_desc *desc, unsigned debounce) debounce 581 include/linux/mfd/twl.h u32 debounce; debounce 345 include/linux/mfd/wm8350/gpio.h int pol, int pull, int invert, int debounce); debounce 20 include/linux/mmc/slot-gpio.h unsigned int debounce, bool *gpio_invert); debounce 23 include/linux/mmc/slot-gpio.h unsigned int debounce, bool *gpio_invert); debounce 164 include/linux/platform_data/gpio-omap.h u16 debounce; debounce 23 include/linux/platform_data/keypad-ep93xx.h unsigned int debounce;