Home
last modified time | relevance | path

Searched refs:gpio_wakeup (Results 1 – 5 of 5) sorted by relevance

/drivers/staging/wfx/
Dbh.c22 if (!wdev->pdata.gpio_wakeup) in device_wakeup()
24 if (gpiod_get_value_cansleep(wdev->pdata.gpio_wakeup) > 0) in device_wakeup()
28 gpiod_set_value_cansleep(wdev->pdata.gpio_wakeup, 1); in device_wakeup()
34 gpiod_set_value_cansleep(wdev->pdata.gpio_wakeup, 1); in device_wakeup()
48 gpiod_set_value_cansleep(wdev->pdata.gpio_wakeup, 0); in device_wakeup()
59 if (!wdev->pdata.gpio_wakeup) in device_release()
62 gpiod_set_value_cansleep(wdev->pdata.gpio_wakeup, 0); in device_release()
Dmain.c309 wdev->pdata.gpio_wakeup = devm_gpiod_get_optional(dev, "wakeup", in wfx_init_common()
311 if (IS_ERR(wdev->pdata.gpio_wakeup)) in wfx_init_common()
314 if (wdev->pdata.gpio_wakeup) in wfx_init_common()
315 gpiod_set_consumer_name(wdev->pdata.gpio_wakeup, "wfx wakeup"); in wfx_init_common()
346 gpio_saved = wdev->pdata.gpio_wakeup; in wfx_probe()
347 wdev->pdata.gpio_wakeup = NULL; in wfx_probe()
416 wdev->pdata.gpio_wakeup = gpio_saved; in wfx_probe()
417 if (wdev->pdata.gpio_wakeup) { in wfx_probe()
421 gpiod_set_value_cansleep(wdev->pdata.gpio_wakeup, 1); in wfx_probe()
Dmain.h25 struct gpio_desc *gpio_wakeup; member
Dhif_rx.c97 if (!wdev->pdata.gpio_wakeup || in hif_wakeup_indication()
98 gpiod_get_value(wdev->pdata.gpio_wakeup) == 0) { in hif_wakeup_indication()
Dhif_tx.c134 if (wdev->pdata.gpio_wakeup) in hif_shutdown()
135 gpiod_set_value(wdev->pdata.gpio_wakeup, 0); in hif_shutdown()