Home
last modified time | relevance | path

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

/linux/drivers/net/wireless/silabs/wfx/
H A 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()
46 gpiod_set_value_cansleep(wdev->pdata.gpio_wakeup, 0); in device_wakeup()
57 if (!wdev->pdata.gpio_wakeup) in device_release()
60 gpiod_set_value_cansleep(wdev->pdata.gpio_wakeup, 0); in device_release()
H A Dmain.c313 wdev->pdata.gpio_wakeup = devm_gpiod_get_optional(dev, "wakeup", GPIOD_OUT_LOW); in wfx_init_common()
314 if (IS_ERR(wdev->pdata.gpio_wakeup)) in wfx_init_common()
317 if (wdev->pdata.gpio_wakeup) in wfx_init_common()
318 gpiod_set_consumer_name(wdev->pdata.gpio_wakeup, "wfx wakeup"); in wfx_init_common()
349 gpio_saved = wdev->pdata.gpio_wakeup; in wfx_probe()
350 wdev->pdata.gpio_wakeup = NULL; in wfx_probe()
420 wdev->pdata.gpio_wakeup = gpio_saved; in wfx_probe()
421 if (wdev->pdata.gpio_wakeup) { in wfx_probe()
424 gpiod_set_value_cansleep(wdev->pdata.gpio_wakeup, 1); in wfx_probe()
H A Dmain.h25 struct gpio_desc *gpio_wakeup; member
H A Dhif_rx.c90 if (!wdev->pdata.gpio_wakeup || gpiod_get_value(wdev->pdata.gpio_wakeup) == 0) { in wfx_hif_wakeup_indication()
H A Dhif_tx.c150 if (wdev->pdata.gpio_wakeup) in wfx_hif_shutdown()
151 gpiod_set_value(wdev->pdata.gpio_wakeup, 0); in wfx_hif_shutdown()