Lines Matching refs:wl_spi
44 struct wl1251_spi *wl_spi = wl->if_priv; in wl1251_spi_reset() local
64 spi_sync(wl_spi->spi, &m); in wl1251_spi_reset()
73 struct wl1251_spi *wl_spi = wl->if_priv; in wl1251_spi_wake() local
117 spi_sync(wl_spi->spi, &m); in wl1251_spi_wake()
133 struct wl1251_spi *wl_spi = wl->if_priv; in wl1251_spi_read() local
163 spi_sync(wl_spi->spi, &m); in wl1251_spi_read()
174 struct wl1251_spi *wl_spi = wl->if_priv; in wl1251_spi_write() local
197 spi_sync(wl_spi->spi, &m); in wl1251_spi_write()
215 struct wl1251_spi *wl_spi = wl->if_priv; in wl1251_spi_set_power() local
217 if (wl_spi->power_gpio) in wl1251_spi_set_power()
218 gpiod_set_value_cansleep(wl_spi->power_gpio, enable); in wl1251_spi_set_power()
236 struct wl1251_spi *wl_spi; in wl1251_spi_probe() local
243 wl_spi = devm_kzalloc(&spi->dev, sizeof(*wl_spi), GFP_KERNEL); in wl1251_spi_probe()
244 if (!wl_spi) in wl1251_spi_probe()
247 wl_spi->spi = spi; in wl1251_spi_probe()
257 wl->if_priv = wl_spi; in wl1251_spi_probe()
273 wl_spi->power_gpio = devm_gpiod_get_optional(&spi->dev, "ti,power", in wl1251_spi_probe()
275 ret = PTR_ERR_OR_ZERO(wl_spi->power_gpio); in wl1251_spi_probe()
282 gpiod_set_consumer_name(wl_spi->power_gpio, "wl1251 power"); in wl1251_spi_probe()