Lines Matching refs:bcmsdh
149 bcmsdh_info_t *bcmsdh; in bcmsdh_probe() local
153 bcmsdh = bcmsdh_attach(osh, sdioh, ®s); in bcmsdh_probe()
154 if (bcmsdh == NULL) { in bcmsdh_probe()
164 bcmsdh->os_cxt = bcmsdh_osinfo; in bcmsdh_probe()
167 osl_set_bus_handle(osh, bcmsdh); in bcmsdh_probe()
189 vendevid = bcmsdh_query_device(bcmsdh); in bcmsdh_probe()
194 slot_num, 0, bus_type, (void *)regs, NULL, bcmsdh); in bcmsdh_probe()
197 slot_num, 0, bus_type, (void *)regs, osh, bcmsdh); in bcmsdh_probe()
204 return bcmsdh; in bcmsdh_probe()
208 if (bcmsdh != NULL) in bcmsdh_probe()
209 bcmsdh_detach(osh, bcmsdh); in bcmsdh_probe()
215 int bcmsdh_remove(bcmsdh_info_t *bcmsdh) in bcmsdh_remove() argument
217 bcmsdh_os_info_t *bcmsdh_osinfo = bcmsdh->os_cxt; in bcmsdh_remove()
229 MFREE(bcmsdh->osh, bcmsdh->os_cxt, sizeof(bcmsdh_os_info_t)); in bcmsdh_remove()
230 bcmsdh_detach(bcmsdh->osh, bcmsdh); in bcmsdh_remove()
236 int bcmsdh_get_total_wake(bcmsdh_info_t *bcmsdh) in bcmsdh_get_total_wake() argument
238 return bcmsdh->total_wake_count; in bcmsdh_get_total_wake()
241 int bcmsdh_set_get_wake(bcmsdh_info_t *bcmsdh, int flag) in bcmsdh_set_get_wake() argument
243 bcmsdh_os_info_t *bcmsdh_osinfo = bcmsdh->os_cxt; in bcmsdh_set_get_wake()
249 ret = bcmsdh->pkt_wake; in bcmsdh_set_get_wake()
250 bcmsdh->total_wake_count += flag; in bcmsdh_set_get_wake()
251 bcmsdh->pkt_wake = flag; in bcmsdh_set_get_wake()
258 int bcmsdh_suspend(bcmsdh_info_t *bcmsdh) in bcmsdh_suspend() argument
260 bcmsdh_os_info_t *bcmsdh_osinfo = bcmsdh->os_cxt; in bcmsdh_suspend()
267 int bcmsdh_resume(bcmsdh_info_t *bcmsdh) in bcmsdh_resume() argument
269 bcmsdh_os_info_t *bcmsdh_osinfo = bcmsdh->os_cxt; in bcmsdh_resume()
318 void bcmsdh_dev_pm_stay_awake(bcmsdh_info_t *bcmsdh) in bcmsdh_dev_pm_stay_awake() argument
322 bcmsdh_os_info_t *bcmsdh_osinfo = bcmsdh->os_cxt; in bcmsdh_dev_pm_stay_awake()
329 void bcmsdh_dev_relax(bcmsdh_info_t *bcmsdh) in bcmsdh_dev_relax() argument
333 bcmsdh_os_info_t *bcmsdh_osinfo = bcmsdh->os_cxt; in bcmsdh_dev_relax()
340 bool bcmsdh_dev_pm_enabled(bcmsdh_info_t *bcmsdh) in bcmsdh_dev_pm_enabled() argument
342 bcmsdh_os_info_t *bcmsdh_osinfo = bcmsdh->os_cxt; in bcmsdh_dev_pm_enabled()
348 void bcmsdh_oob_intr_set(bcmsdh_info_t *bcmsdh, bool enable) in bcmsdh_oob_intr_set() argument
353 if (!bcmsdh) in bcmsdh_oob_intr_set()
356 bcmsdh_osinfo = bcmsdh->os_cxt; in bcmsdh_oob_intr_set()
370 bcmsdh_info_t *bcmsdh = (bcmsdh_info_t *)dev_id; in wlan_oob_irq() local
371 bcmsdh_os_info_t *bcmsdh_osinfo = bcmsdh->os_cxt; in wlan_oob_irq()
374 bcmsdh_oob_intr_set(bcmsdh, FALSE); in wlan_oob_irq()
381 int bcmsdh_oob_intr_register(bcmsdh_info_t *bcmsdh, bcmsdh_cb_fn_t oob_irq_handler, in bcmsdh_oob_intr_register() argument
385 bcmsdh_os_info_t *bcmsdh_osinfo = bcmsdh->os_cxt; in bcmsdh_oob_intr_register()
399 bcmsdh_osinfo->oob_irq_flags, "bcmsdh_sdmmc", bcmsdh); in bcmsdh_oob_intr_register()
419 void bcmsdh_oob_intr_unregister(bcmsdh_info_t *bcmsdh) in bcmsdh_oob_intr_unregister() argument
422 bcmsdh_os_info_t *bcmsdh_osinfo = bcmsdh->os_cxt; in bcmsdh_oob_intr_unregister()
444 free_irq(bcmsdh_osinfo->oob_irq_num, bcmsdh); in bcmsdh_oob_intr_unregister()