Lines Matching refs:func
24 struct sdio_func *func;
31 return wl_sdio->func;
34 static void wl1251_sdio_interrupt(struct sdio_func *func)
36 struct wl1251 *wl = sdio_get_drvdata(func);
55 struct sdio_func *func = wl_to_func(wl);
57 sdio_claim_host(func);
58 ret = sdio_memcpy_fromio(func, buf, addr, len);
61 sdio_release_host(func);
68 struct sdio_func *func = wl_to_func(wl);
70 sdio_claim_host(func);
71 ret = sdio_memcpy_toio(func, addr, buf, len);
74 sdio_release_host(func);
81 struct sdio_func *func = wl_sdio->func;
89 sdio_claim_host(func);
90 *val = sdio_writeb_readb(func, wl_sdio->elp_val, addr, &ret);
91 sdio_release_host(func);
101 struct sdio_func *func = wl_sdio->func;
103 sdio_claim_host(func);
104 sdio_writeb(func, val, addr, &ret);
105 sdio_release_host(func);
119 struct sdio_func *func = wl_to_func(wl);
121 sdio_claim_host(func);
122 sdio_claim_irq(func, wl1251_sdio_interrupt);
123 sdio_release_host(func);
128 struct sdio_func *func = wl_to_func(wl);
130 sdio_claim_host(func);
131 sdio_release_irq(func);
132 sdio_release_host(func);
157 struct sdio_func *func = wl_to_func(wl);
161 ret = pm_runtime_get_sync(&func->dev);
163 pm_runtime_put_sync(&func->dev);
167 sdio_claim_host(func);
168 sdio_enable_func(func);
169 sdio_release_host(func);
171 sdio_claim_host(func);
172 sdio_disable_func(func);
173 sdio_release_host(func);
175 ret = pm_runtime_put_sync(&func->dev);
193 static int wl1251_sdio_probe(struct sdio_func *func,
201 struct device_node *np = func->dev.of_node;
215 sdio_claim_host(func);
216 ret = sdio_enable_func(func);
220 sdio_set_block_size(func, 512);
221 sdio_release_host(func);
223 SET_IEEE80211_DEV(hw, &func->dev);
224 wl_sdio->func = func;
266 sdio_set_drvdata(func, wl);
269 pm_runtime_put_noidle(&func->dev);
277 sdio_claim_host(func);
278 sdio_disable_func(func);
280 sdio_release_host(func);
287 static void wl1251_sdio_remove(struct sdio_func *func)
289 struct wl1251 *wl = sdio_get_drvdata(func);
293 pm_runtime_get_noresume(&func->dev);
300 sdio_claim_host(func);
301 sdio_release_irq(func);
302 sdio_disable_func(func);
303 sdio_release_host(func);