Lines Matching defs:bus

18 #include "bus.h"
54 struct wfx_sdio_priv *bus = priv;
64 sdio_addr |= (bus->buf_id_rx + 1) << 7;
65 ret = sdio_memcpy_fromio(bus->func, dst, sdio_addr, count);
67 bus->buf_id_rx = (bus->buf_id_rx + 1) % 4;
74 struct wfx_sdio_priv *bus = priv;
84 sdio_addr |= bus->buf_id_tx << 7;
86 ret = sdio_memcpy_toio(bus->func, sdio_addr, (void *)src, count);
88 bus->buf_id_tx = (bus->buf_id_tx + 1) % 32;
95 struct wfx_sdio_priv *bus = priv;
97 sdio_claim_host(bus->func);
102 struct wfx_sdio_priv *bus = priv;
104 sdio_release_host(bus->func);
109 struct wfx_sdio_priv *bus = sdio_get_drvdata(func);
111 wfx_bh_request_rx(bus->core);
116 struct wfx_sdio_priv *bus = priv;
118 sdio_claim_host(bus->func);
119 wfx_bh_request_rx(bus->core);
120 sdio_release_host(bus->func);
126 struct wfx_sdio_priv *bus = priv;
131 if (!bus->of_irq) {
132 sdio_claim_host(bus->func);
133 ret = sdio_claim_irq(bus->func, wfx_sdio_irq_handler);
134 sdio_release_host(bus->func);
138 flags = irq_get_trigger_type(bus->of_irq);
142 ret = devm_request_threaded_irq(&bus->func->dev, bus->of_irq, NULL,
143 wfx_sdio_irq_handler_ext, flags, "wfx", bus);
146 sdio_claim_host(bus->func);
147 cccr = sdio_f0_readb(bus->func, SDIO_CCCR_IENx, NULL);
149 cccr |= BIT(bus->func->num);
150 sdio_f0_writeb(bus->func, cccr, SDIO_CCCR_IENx, NULL);
151 sdio_release_host(bus->func);
157 struct wfx_sdio_priv *bus = priv;
160 if (bus->of_irq)
161 devm_free_irq(&bus->func->dev, bus->of_irq, bus);
162 sdio_claim_host(bus->func);
163 ret = sdio_release_irq(bus->func);
164 sdio_release_host(bus->func);
170 struct wfx_sdio_priv *bus = priv;
172 return sdio_align_size(bus->func, size);
198 struct wfx_sdio_priv *bus;
212 bus = devm_kzalloc(&func->dev, sizeof(*bus), GFP_KERNEL);
213 if (!bus)
216 bus->func = func;
217 bus->of_irq = irq_of_parse_and_map(np, 0);
218 sdio_set_drvdata(func, bus);
228 bus->core = wfx_init_common(&func->dev, pdata, &wfx_sdio_hwbus_ops, bus);
229 if (!bus->core) {
234 ret = wfx_probe(bus->core);
249 struct wfx_sdio_priv *bus = sdio_get_drvdata(func);
251 wfx_release(bus->core);