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()
138 dev_err(glue->dev, "%s: failed to get_sync(%d)\n", in wl12xx_sdio_power_on()
157 static int wl12xx_sdio_power_off(struct wl12xx_sdio_glue *glue) in wl12xx_sdio_power_off() argument
159 struct sdio_func *func = dev_to_sdio_func(glue->dev); in wl12xx_sdio_power_off()
173 struct wl12xx_sdio_glue *glue = dev_get_drvdata(child->parent); in wl12xx_sdio_set_power() local
176 return wl12xx_sdio_power_on(glue); in wl12xx_sdio_set_power()
178 return wl12xx_sdio_power_off(glue); in wl12xx_sdio_set_power()
261 struct wl12xx_sdio_glue *glue; in wl1271_probe() local
278 glue = devm_kzalloc(&func->dev, sizeof(*glue), GFP_KERNEL); in wl1271_probe()
279 if (!glue) in wl1271_probe()
282 glue->dev = &func->dev; in wl1271_probe()
296 dev_dbg(glue->dev, "sdio PM caps = 0x%x\n", mmcflags); in wl1271_probe()
301 sdio_set_drvdata(func, glue); in wl1271_probe()
317 glue->core = platform_device_alloc(chip_family, PLATFORM_DEVID_AUTO); in wl1271_probe()
318 if (!glue->core) { in wl1271_probe()
319 dev_err(glue->dev, "can't allocate platform_device"); in wl1271_probe()
324 glue->core->dev.parent = &func->dev; in wl1271_probe()
343 ret = platform_device_add_resources(glue->core, res, num_irqs); in wl1271_probe()
345 dev_err(glue->dev, "can't add resources\n"); in wl1271_probe()
349 ret = platform_device_add_data(glue->core, pdev_data, in wl1271_probe()
352 dev_err(glue->dev, "can't add platform data\n"); in wl1271_probe()
356 ret = platform_device_add(glue->core); in wl1271_probe()
358 dev_err(glue->dev, "can't add platform device\n"); in wl1271_probe()
364 platform_device_put(glue->core); in wl1271_probe()
372 struct wl12xx_sdio_glue *glue = sdio_get_drvdata(func); in wl1271_remove() local
377 platform_device_unregister(glue->core); in wl1271_remove()
386 struct wl12xx_sdio_glue *glue = sdio_get_drvdata(func); in wl1271_suspend() local
387 struct wl1271 *wl = platform_get_drvdata(glue->core); in wl1271_suspend()