Lines Matching refs:func

23 	struct sdio_func *func;
30 return wl_sdio->func;
33 static void wl1251_sdio_interrupt(struct sdio_func *func)
35 struct wl1251 *wl = sdio_get_drvdata(func);
54 struct sdio_func *func = wl_to_func(wl);
56 sdio_claim_host(func);
57 ret = sdio_memcpy_fromio(func, buf, addr, len);
60 sdio_release_host(func);
67 struct sdio_func *func = wl_to_func(wl);
69 sdio_claim_host(func);
70 ret = sdio_memcpy_toio(func, addr, buf, len);
73 sdio_release_host(func);
80 struct sdio_func *func = wl_sdio->func;
88 sdio_claim_host(func);
89 *val = sdio_writeb_readb(func, wl_sdio->elp_val, addr, &ret);
90 sdio_release_host(func);
100 struct sdio_func *func = wl_sdio->func;
102 sdio_claim_host(func);
103 sdio_writeb(func, val, addr, &ret);
104 sdio_release_host(func);
118 struct sdio_func *func = wl_to_func(wl);
120 sdio_claim_host(func);
121 sdio_claim_irq(func, wl1251_sdio_interrupt);
122 sdio_release_host(func);
127 struct sdio_func *func = wl_to_func(wl);
129 sdio_claim_host(func);
130 sdio_release_irq(func);
131 sdio_release_host(func);
156 struct sdio_func *func = wl_to_func(wl);
160 ret = pm_runtime_get_sync(&func->dev);
162 pm_runtime_put_sync(&func->dev);
166 sdio_claim_host(func);
167 sdio_enable_func(func);
168 sdio_release_host(func);
170 sdio_claim_host(func);
171 sdio_disable_func(func);
172 sdio_release_host(func);
174 ret = pm_runtime_put_sync(&func->dev);
192 static int wl1251_sdio_probe(struct sdio_func *func,
199 struct device_node *np = func->dev.of_node;
213 sdio_claim_host(func);
214 ret = sdio_enable_func(func);
218 sdio_set_block_size(func, 512);
219 sdio_release_host(func);
221 SET_IEEE80211_DEV(hw, &func->dev);
222 wl_sdio->func = func;
260 sdio_set_drvdata(func, wl);
263 pm_runtime_put_noidle(&func->dev);
271 sdio_claim_host(func);
272 sdio_disable_func(func);
274 sdio_release_host(func);
281 static void wl1251_sdio_remove(struct sdio_func *func)
283 struct wl1251 *wl = sdio_get_drvdata(func);
287 pm_runtime_get_noresume(&func->dev);
294 sdio_claim_host(func);
295 sdio_release_irq(func);
296 sdio_disable_func(func);
297 sdio_release_host(func);