Lines Matching full:debounce
262 unsigned debounce) in bcm_kona_gpio_set_debounce() argument
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()
273 dev_err(chip->parent, "Debounce value %u not in range\n", 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) - 1; in bcm_kona_gpio_set_debounce()
285 if (res > 0 && (debounce & BIT(res - 1))) in bcm_kona_gpio_set_debounce()
295 if (debounce == 0) { in bcm_kona_gpio_set_debounce()
296 /* disable debounce */ in bcm_kona_gpio_set_debounce()
313 u32 debounce; in bcm_kona_gpio_set_config() local
318 debounce = pinconf_to_config_argument(config); in bcm_kona_gpio_set_config()
319 return bcm_kona_gpio_set_debounce(chip, gpio, debounce); in bcm_kona_gpio_set_config()