Lines Matching full:debounce
255 unsigned debounce) in bcm_kona_gpio_set_debounce() argument
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()
266 dev_err(chip->parent, "Debounce value %u not in range\n", 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) - 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()
289 /* disable debounce */ 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()
312 return bcm_kona_gpio_set_debounce(chip, gpio, debounce); in bcm_kona_gpio_set_config()