Lines Matching full:glue

44 	struct wl12xx_sdio_glue *glue = dev_get_drvdata(child->parent);  in wl1271_sdio_set_block_size()  local
45 struct sdio_func *func = dev_to_sdio_func(glue->dev); in wl1271_sdio_set_block_size()
56 struct wl12xx_sdio_glue *glue = dev_get_drvdata(child->parent); in wl12xx_sdio_raw_read() local
57 struct sdio_func *func = dev_to_sdio_func(glue->dev); in wl12xx_sdio_raw_read()
94 struct wl12xx_sdio_glue *glue = dev_get_drvdata(child->parent); in wl12xx_sdio_raw_write() local
95 struct sdio_func *func = dev_to_sdio_func(glue->dev); in wl12xx_sdio_raw_write()
128 static int wl12xx_sdio_power_on(struct wl12xx_sdio_glue *glue) in wl12xx_sdio_power_on() argument
131 struct sdio_func *func = dev_to_sdio_func(glue->dev); in wl12xx_sdio_power_on()
136 dev_err(glue->dev, "%s: failed to get_sync(%d)\n", in wl12xx_sdio_power_on()
155 static int wl12xx_sdio_power_off(struct wl12xx_sdio_glue *glue) in wl12xx_sdio_power_off() argument
157 struct sdio_func *func = dev_to_sdio_func(glue->dev); in wl12xx_sdio_power_off()
171 struct wl12xx_sdio_glue *glue = dev_get_drvdata(child->parent); in wl12xx_sdio_set_power() local
174 return wl12xx_sdio_power_on(glue); in wl12xx_sdio_set_power()
176 return wl12xx_sdio_power_off(glue); in wl12xx_sdio_set_power()
259 struct wl12xx_sdio_glue *glue; in wl1271_probe() local
276 glue = devm_kzalloc(&func->dev, sizeof(*glue), GFP_KERNEL); in wl1271_probe()
277 if (!glue) in wl1271_probe()
280 glue->dev = &func->dev; in wl1271_probe()
294 dev_dbg(glue->dev, "sdio PM caps = 0x%x\n", mmcflags); in wl1271_probe()
299 sdio_set_drvdata(func, glue); in wl1271_probe()
315 glue->core = platform_device_alloc(chip_family, PLATFORM_DEVID_AUTO); in wl1271_probe()
316 if (!glue->core) { in wl1271_probe()
317 dev_err(glue->dev, "can't allocate platform_device"); in wl1271_probe()
322 glue->core->dev.parent = &func->dev; in wl1271_probe()
341 ret = platform_device_add_resources(glue->core, res, num_irqs); in wl1271_probe()
343 dev_err(glue->dev, "can't add resources\n"); in wl1271_probe()
347 ret = platform_device_add_data(glue->core, pdev_data, in wl1271_probe()
350 dev_err(glue->dev, "can't add platform data\n"); in wl1271_probe()
354 ret = platform_device_add(glue->core); in wl1271_probe()
356 dev_err(glue->dev, "can't add platform device\n"); in wl1271_probe()
362 platform_device_put(glue->core); in wl1271_probe()
370 struct wl12xx_sdio_glue *glue = sdio_get_drvdata(func); in wl1271_remove() local
375 platform_device_unregister(glue->core); in wl1271_remove()
384 struct wl12xx_sdio_glue *glue = sdio_get_drvdata(func); in wl1271_suspend() local
385 struct wl1271 *wl = platform_get_drvdata(glue->core); in wl1271_suspend()