/linux-4.19.296/drivers/gpio/ |
D | gpio-menz127.c | 42 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 …]
|
D | gpio-bcm-kona.c | 263 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 …]
|
D | gpio-twl4030.c | 424 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()
|
D | gpio-wm831x.c | 105 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()
|
D | gpio-omap.c | 47 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 …]
|
D | gpio-max77620.c | 157 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()
|
D | gpio-merrifield.c | 173 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()
|
D | gpio-ep93xx.c | 299 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()
|
D | gpio-tegra.c | 214 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()
|
D | gpio-max3191x.c | 272 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()
|
D | gpio-dwapb.c | 346 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()
|
D | gpio-pmic-eic-sprd.c | 122 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()
|
D | gpio-eic-sprd.c | 209 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/ |
D | slot-gpio.h | 24 unsigned int debounce); 28 unsigned int debounce, bool *gpio_invert); 31 unsigned int debounce, bool *gpio_invert);
|
/linux-4.19.296/include/asm-generic/ |
D | gpio.h | 79 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/ |
D | extcon-palmas.c | 242 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()
|
D | extcon-gpio.c | 51 unsigned long debounce; member
|
D | extcon-arizona.c | 1025 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/ |
D | keypad-w90p910.h | 13 unsigned int debounce; member
|
D | keypad-ep93xx.h | 24 unsigned int debounce; member
|
D | gpio-omap.h | 175 u16 debounce; member
|
/linux-4.19.296/include/linux/ |
D | gpio.h | 157 static inline int gpio_set_debounce(unsigned gpio, unsigned debounce) in gpio_set_debounce() argument
|
/linux-4.19.296/include/linux/gpio/ |
D | consumer.h | 138 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/ |
D | gpio.h | 350 int pol, int pull, int invert, int debounce);
|
/linux-4.19.296/include/linux/mfd/ |
D | twl.h | 595 u32 debounce; member
|