Lines Matching full:glue
91 struct wl12xx_spi_glue *glue = dev_get_drvdata(child->parent); in wl12xx_spi_reset() local
112 spi_sync(to_spi_device(glue->dev), &m); in wl12xx_spi_reset()
119 struct wl12xx_spi_glue *glue = dev_get_drvdata(child->parent); in wl12xx_spi_init() local
122 struct spi_device *spi = to_spi_device(glue->dev); in wl12xx_spi_init()
167 spi_sync(to_spi_device(glue->dev), &m); in wl12xx_spi_init()
186 spi_sync(to_spi_device(glue->dev), &m); in wl12xx_spi_init()
197 struct wl12xx_spi_glue *glue = dev_get_drvdata(child->parent); in wl12xx_spi_read_busy() local
219 spi_sync(to_spi_device(glue->dev), &m); in wl12xx_spi_read_busy()
233 struct wl12xx_spi_glue *glue = dev_get_drvdata(child->parent); in wl12xx_spi_raw_read() local
270 spi_sync(to_spi_device(glue->dev), &m); in wl12xx_spi_raw_read()
286 spi_sync(to_spi_device(glue->dev), &m); in wl12xx_spi_raw_read()
300 struct wl12xx_spi_glue *glue = dev_get_drvdata(child->parent); in __wl12xx_spi_raw_write() local
346 spi_sync(to_spi_device(glue->dev), &m); in __wl12xx_spi_raw_write()
375 struct wl12xx_spi_glue *glue = dev_get_drvdata(child->parent); in wl12xx_spi_set_power() local
377 WARN_ON(!glue->reg); in wl12xx_spi_set_power()
381 ret = regulator_enable(glue->reg); in wl12xx_spi_set_power()
385 ret = regulator_disable(glue->reg); in wl12xx_spi_set_power()
433 * @glue: wl12xx SPI bus to slave device glue parameters.
436 static int wlcore_probe_of(struct spi_device *spi, struct wl12xx_spi_glue *glue, in wlcore_probe_of() argument
463 struct wl12xx_spi_glue *glue; in wl1271_probe() local
474 glue = devm_kzalloc(&spi->dev, sizeof(*glue), GFP_KERNEL); in wl1271_probe()
475 if (!glue) { in wl1271_probe()
476 dev_err(&spi->dev, "can't allocate glue\n"); in wl1271_probe()
480 glue->dev = &spi->dev; in wl1271_probe()
482 spi_set_drvdata(spi, glue); in wl1271_probe()
488 glue->reg = devm_regulator_get(&spi->dev, "vwlan"); in wl1271_probe()
489 if (IS_ERR(glue->reg)) in wl1271_probe()
490 return dev_err_probe(glue->dev, PTR_ERR(glue->reg), in wl1271_probe()
493 ret = wlcore_probe_of(spi, glue, pdev_data); in wl1271_probe()
495 dev_err(glue->dev, in wl1271_probe()
502 dev_err(glue->dev, "spi_setup failed\n"); in wl1271_probe()
506 glue->core = platform_device_alloc(pdev_data->family->name, in wl1271_probe()
508 if (!glue->core) { in wl1271_probe()
509 dev_err(glue->dev, "can't allocate platform_device\n"); in wl1271_probe()
513 glue->core->dev.parent = &spi->dev; in wl1271_probe()
521 ret = platform_device_add_resources(glue->core, res, ARRAY_SIZE(res)); in wl1271_probe()
523 dev_err(glue->dev, "can't add resources\n"); in wl1271_probe()
527 ret = platform_device_add_data(glue->core, pdev_data, in wl1271_probe()
530 dev_err(glue->dev, "can't add platform data\n"); in wl1271_probe()
534 ret = platform_device_add(glue->core); in wl1271_probe()
536 dev_err(glue->dev, "can't register platform device\n"); in wl1271_probe()
543 platform_device_put(glue->core); in wl1271_probe()
549 struct wl12xx_spi_glue *glue = spi_get_drvdata(spi); in wl1271_remove() local
551 platform_device_unregister(glue->core); in wl1271_remove()