Lines Matching full:glue
45 struct wl12xx_sdio_glue *glue = dev_get_drvdata(child->parent); in wl1271_sdio_set_block_size() local
46 struct sdio_func *func = dev_to_sdio_func(glue->dev); in wl1271_sdio_set_block_size()
57 struct wl12xx_sdio_glue *glue = dev_get_drvdata(child->parent); in wl12xx_sdio_raw_read() local
58 struct sdio_func *func = dev_to_sdio_func(glue->dev); in wl12xx_sdio_raw_read()
95 struct wl12xx_sdio_glue *glue = dev_get_drvdata(child->parent); in wl12xx_sdio_raw_write() local
96 struct sdio_func *func = dev_to_sdio_func(glue->dev); in wl12xx_sdio_raw_write()
129 static int wl12xx_sdio_power_on(struct wl12xx_sdio_glue *glue) in wl12xx_sdio_power_on() argument
132 struct sdio_func *func = dev_to_sdio_func(glue->dev); in wl12xx_sdio_power_on()
137 dev_err(glue->dev, "%s: failed to get_sync(%d)\n", in wl12xx_sdio_power_on()
156 static int wl12xx_sdio_power_off(struct wl12xx_sdio_glue *glue) in wl12xx_sdio_power_off() argument
158 struct sdio_func *func = dev_to_sdio_func(glue->dev); in wl12xx_sdio_power_off()
172 struct wl12xx_sdio_glue *glue = dev_get_drvdata(child->parent); in wl12xx_sdio_set_power() local
175 return wl12xx_sdio_power_on(glue); in wl12xx_sdio_set_power()
177 return wl12xx_sdio_power_off(glue); in wl12xx_sdio_set_power()
260 struct wl12xx_sdio_glue *glue; in wl1271_probe() local
277 glue = devm_kzalloc(&func->dev, sizeof(*glue), GFP_KERNEL); in wl1271_probe()
278 if (!glue) in wl1271_probe()
281 glue->dev = &func->dev; in wl1271_probe()
295 dev_dbg(glue->dev, "sdio PM caps = 0x%x\n", mmcflags); in wl1271_probe()
300 sdio_set_drvdata(func, glue); in wl1271_probe()
316 glue->core = platform_device_alloc(chip_family, PLATFORM_DEVID_AUTO); in wl1271_probe()
317 if (!glue->core) { in wl1271_probe()
318 dev_err(glue->dev, "can't allocate platform_device"); in wl1271_probe()
323 glue->core->dev.parent = &func->dev; in wl1271_probe()
342 ret = platform_device_add_resources(glue->core, res, num_irqs); in wl1271_probe()
344 dev_err(glue->dev, "can't add resources\n"); in wl1271_probe()
348 ret = platform_device_add_data(glue->core, pdev_data, in wl1271_probe()
351 dev_err(glue->dev, "can't add platform data\n"); in wl1271_probe()
355 ret = platform_device_add(glue->core); in wl1271_probe()
357 dev_err(glue->dev, "can't add platform device\n"); in wl1271_probe()
363 platform_device_put(glue->core); in wl1271_probe()
371 struct wl12xx_sdio_glue *glue = sdio_get_drvdata(func); in wl1271_remove() local
376 platform_device_unregister(glue->core); in wl1271_remove()
385 struct wl12xx_sdio_glue *glue = sdio_get_drvdata(func); in wl1271_suspend() local
386 struct wl1271 *wl = platform_get_drvdata(glue->core); in wl1271_suspend()