Lines Matching refs:func
49 static void b43_sdio_interrupt_dispatcher(struct sdio_func *func)
51 struct b43_sdio *sdio = sdio_get_drvdata(func);
57 sdio_release_host(func);
59 sdio_claim_host(func);
66 struct sdio_func *func = bus->host_sdio;
67 struct b43_sdio *sdio = sdio_get_drvdata(func);
72 sdio_claim_host(func);
73 err = sdio_claim_irq(func, b43_sdio_interrupt_dispatcher);
74 sdio_release_host(func);
82 struct sdio_func *func = bus->host_sdio;
83 struct b43_sdio *sdio = sdio_get_drvdata(func);
85 sdio_claim_host(func);
86 sdio_release_irq(func);
87 sdio_release_host(func);
92 static int b43_sdio_probe(struct sdio_func *func,
101 tuple = func->tuples;
111 dev_info(&func->dev, "Chip ID %04x:%04x\n",
128 sdio_claim_host(func);
129 error = sdio_set_block_size(func, B43_SDIO_BLOCK_SIZE);
131 dev_err(&func->dev, "failed to set block size to %u bytes,"
135 error = sdio_enable_func(func);
137 dev_err(&func->dev, "failed to enable func, error %d\n", error);
140 sdio_release_host(func);
145 dev_err(&func->dev, "failed to allocate ssb bus\n");
148 error = ssb_bus_sdiobus_register(&sdio->ssb, func,
151 dev_err(&func->dev, "failed to register ssb sdio bus,"
155 sdio_set_drvdata(func, sdio);
162 sdio_claim_host(func);
163 sdio_disable_func(func);
165 sdio_release_host(func);
170 static void b43_sdio_remove(struct sdio_func *func)
172 struct b43_sdio *sdio = sdio_get_drvdata(func);
175 sdio_claim_host(func);
176 sdio_disable_func(func);
177 sdio_release_host(func);
179 sdio_set_drvdata(func, NULL);