Home
last modified time | relevance | path

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

/openbmc/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.c309 wdev->pdata.gpio_wakeup = devm_gpiod_get_optional(dev, "wakeup", GPIOD_OUT_LOW); in wfx_init_common()
310 if (IS_ERR(wdev->pdata.gpio_wakeup)) in wfx_init_common()
313 if (wdev->pdata.gpio_wakeup) in wfx_init_common()
314 gpiod_set_consumer_name(wdev->pdata.gpio_wakeup, "wfx wakeup"); in wfx_init_common()
344 gpio_saved = wdev->pdata.gpio_wakeup; in wfx_probe()
345 wdev->pdata.gpio_wakeup = NULL; in wfx_probe()
415 wdev->pdata.gpio_wakeup = gpio_saved; in wfx_probe()
416 if (wdev->pdata.gpio_wakeup) { in wfx_probe()
419 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.c132 if (wdev->pdata.gpio_wakeup) in wfx_hif_shutdown()
133 gpiod_set_value(wdev->pdata.gpio_wakeup, 0); in wfx_hif_shutdown()