Lines Matching full:glue
92 struct wl12xx_spi_glue *glue = dev_get_drvdata(child->parent); in wl12xx_spi_reset() local
113 spi_sync(to_spi_device(glue->dev), &m); in wl12xx_spi_reset()
120 struct wl12xx_spi_glue *glue = dev_get_drvdata(child->parent); in wl12xx_spi_init() local
123 struct spi_device *spi = to_spi_device(glue->dev); in wl12xx_spi_init()
168 spi_sync(to_spi_device(glue->dev), &m); in wl12xx_spi_init()
187 spi_sync(to_spi_device(glue->dev), &m); in wl12xx_spi_init()
198 struct wl12xx_spi_glue *glue = dev_get_drvdata(child->parent); in wl12xx_spi_read_busy() local
220 spi_sync(to_spi_device(glue->dev), &m); in wl12xx_spi_read_busy()
234 struct wl12xx_spi_glue *glue = dev_get_drvdata(child->parent); in wl12xx_spi_raw_read() local
271 spi_sync(to_spi_device(glue->dev), &m); in wl12xx_spi_raw_read()
287 spi_sync(to_spi_device(glue->dev), &m); in wl12xx_spi_raw_read()
301 struct wl12xx_spi_glue *glue = dev_get_drvdata(child->parent); in __wl12xx_spi_raw_write() local
347 spi_sync(to_spi_device(glue->dev), &m); in __wl12xx_spi_raw_write()
376 struct wl12xx_spi_glue *glue = dev_get_drvdata(child->parent); in wl12xx_spi_set_power() local
378 WARN_ON(!glue->reg); in wl12xx_spi_set_power()
382 ret = regulator_enable(glue->reg); in wl12xx_spi_set_power()
386 ret = regulator_disable(glue->reg); in wl12xx_spi_set_power()
435 * @glue: wl12xx SPI bus to slave device glue parameters.
438 static int wlcore_probe_of(struct spi_device *spi, struct wl12xx_spi_glue *glue, in wlcore_probe_of() argument
466 struct wl12xx_spi_glue *glue; in wl1271_probe() local
477 glue = devm_kzalloc(&spi->dev, sizeof(*glue), GFP_KERNEL); in wl1271_probe()
478 if (!glue) { in wl1271_probe()
479 dev_err(&spi->dev, "can't allocate glue\n"); in wl1271_probe()
483 glue->dev = &spi->dev; in wl1271_probe()
485 spi_set_drvdata(spi, glue); in wl1271_probe()
491 glue->reg = devm_regulator_get(&spi->dev, "vwlan"); in wl1271_probe()
492 if (PTR_ERR(glue->reg) == -EPROBE_DEFER) in wl1271_probe()
494 if (IS_ERR(glue->reg)) { in wl1271_probe()
495 dev_err(glue->dev, "can't get regulator\n"); in wl1271_probe()
496 return PTR_ERR(glue->reg); in wl1271_probe()
499 ret = wlcore_probe_of(spi, glue, pdev_data); in wl1271_probe()
501 dev_err(glue->dev, in wl1271_probe()
508 dev_err(glue->dev, "spi_setup failed\n"); in wl1271_probe()
512 glue->core = platform_device_alloc(pdev_data->family->name, in wl1271_probe()
514 if (!glue->core) { in wl1271_probe()
515 dev_err(glue->dev, "can't allocate platform_device\n"); in wl1271_probe()
519 glue->core->dev.parent = &spi->dev; in wl1271_probe()
527 ret = platform_device_add_resources(glue->core, res, ARRAY_SIZE(res)); in wl1271_probe()
529 dev_err(glue->dev, "can't add resources\n"); in wl1271_probe()
533 ret = platform_device_add_data(glue->core, pdev_data, in wl1271_probe()
536 dev_err(glue->dev, "can't add platform data\n"); in wl1271_probe()
540 ret = platform_device_add(glue->core); in wl1271_probe()
542 dev_err(glue->dev, "can't register platform device\n"); in wl1271_probe()
549 platform_device_put(glue->core); in wl1271_probe()
555 struct wl12xx_spi_glue *glue = spi_get_drvdata(spi); in wl1271_remove() local
557 platform_device_unregister(glue->core); in wl1271_remove()