Lines Matching refs:bcmsdh

188 	bcmsdh_info_t *bcmsdh;  in bcmsdh_probe()  local
192 bcmsdh = bcmsdh_attach(osh, sdioh, &regs); in bcmsdh_probe()
193 if (bcmsdh == NULL) { in bcmsdh_probe()
203 bcmsdh->os_cxt = bcmsdh_osinfo; in bcmsdh_probe()
206 osl_set_bus_handle(osh, bcmsdh); in bcmsdh_probe()
225 vendevid = bcmsdh_query_device(bcmsdh); in bcmsdh_probe()
228 slot_num, 0, bus_type, (void *)regs, osh, bcmsdh); in bcmsdh_probe()
234 return bcmsdh; in bcmsdh_probe()
238 if (bcmsdh != NULL) in bcmsdh_probe()
239 bcmsdh_detach(osh, bcmsdh); in bcmsdh_probe()
245 int bcmsdh_remove(bcmsdh_info_t *bcmsdh) in bcmsdh_remove() argument
247 bcmsdh_os_info_t *bcmsdh_osinfo = bcmsdh->os_cxt; in bcmsdh_remove()
256 MFREE(bcmsdh->osh, bcmsdh->os_cxt, sizeof(bcmsdh_os_info_t)); in bcmsdh_remove()
257 bcmsdh_detach(bcmsdh->osh, bcmsdh); in bcmsdh_remove()
263 int bcmsdh_get_total_wake(bcmsdh_info_t *bcmsdh) in bcmsdh_get_total_wake() argument
265 return bcmsdh->total_wake_count; in bcmsdh_get_total_wake()
268 int bcmsdh_set_get_wake(bcmsdh_info_t *bcmsdh, int flag) in bcmsdh_set_get_wake() argument
271 bcmsdh_os_info_t *bcmsdh_osinfo = bcmsdh->os_cxt; in bcmsdh_set_get_wake()
279 ret = bcmsdh->pkt_wake; in bcmsdh_set_get_wake()
280 bcmsdh->total_wake_count += flag; in bcmsdh_set_get_wake()
281 bcmsdh->pkt_wake = flag; in bcmsdh_set_get_wake()
289 int bcmsdh_suspend(bcmsdh_info_t *bcmsdh) in bcmsdh_suspend() argument
291 bcmsdh_os_info_t *bcmsdh_osinfo = bcmsdh->os_cxt; in bcmsdh_suspend()
298 int bcmsdh_resume(bcmsdh_info_t *bcmsdh) in bcmsdh_resume() argument
300 bcmsdh_os_info_t *bcmsdh_osinfo = bcmsdh->os_cxt; in bcmsdh_resume()
355 void bcmsdh_dev_pm_stay_awake(bcmsdh_info_t *bcmsdh) in bcmsdh_dev_pm_stay_awake() argument
358 bcmsdh_os_info_t *bcmsdh_osinfo = bcmsdh->os_cxt; in bcmsdh_dev_pm_stay_awake()
363 void bcmsdh_dev_relax(bcmsdh_info_t *bcmsdh) in bcmsdh_dev_relax() argument
366 bcmsdh_os_info_t *bcmsdh_osinfo = bcmsdh->os_cxt; in bcmsdh_dev_relax()
371 bool bcmsdh_dev_pm_enabled(bcmsdh_info_t *bcmsdh) in bcmsdh_dev_pm_enabled() argument
373 bcmsdh_os_info_t *bcmsdh_osinfo = bcmsdh->os_cxt; in bcmsdh_dev_pm_enabled()
379 int bcmsdh_get_oob_intr_num(bcmsdh_info_t *bcmsdh) in bcmsdh_get_oob_intr_num() argument
381 bcmsdh_os_info_t *bcmsdh_osinfo = bcmsdh->os_cxt; in bcmsdh_get_oob_intr_num()
386 void bcmsdh_oob_intr_set(bcmsdh_info_t *bcmsdh, bool enable) in bcmsdh_oob_intr_set() argument
391 if (!bcmsdh) in bcmsdh_oob_intr_set()
394 bcmsdh_osinfo = bcmsdh->os_cxt; in bcmsdh_oob_intr_set()
413 bcmsdh_info_t *bcmsdh = (bcmsdh_info_t *)dev_id; in wlan_oob_irq() local
414 bcmsdh_os_info_t *bcmsdh_osinfo = bcmsdh->os_cxt; in wlan_oob_irq()
417 bcmsdh_oob_intr_set(bcmsdh, FALSE); in wlan_oob_irq()
430 int bcmsdh_oob_intr_register(bcmsdh_info_t *bcmsdh, bcmsdh_cb_fn_t oob_irq_handler, in bcmsdh_oob_intr_register() argument
434 bcmsdh_os_info_t *bcmsdh_osinfo = bcmsdh->os_cxt; in bcmsdh_oob_intr_register()
453 bcmsdh_osinfo->oob_irq_flags, "bcmsdh_sdmmc", bcmsdh); in bcmsdh_oob_intr_register()
456 bcmsdh_osinfo->oob_irq_flags, "bcmsdh_sdmmc", bcmsdh); in bcmsdh_oob_intr_register()
485 void bcmsdh_oob_intr_unregister(bcmsdh_info_t *bcmsdh) in bcmsdh_oob_intr_unregister() argument
488 bcmsdh_os_info_t *bcmsdh_osinfo = bcmsdh->os_cxt; in bcmsdh_oob_intr_unregister()
510 free_irq(bcmsdh_osinfo->oob_irq_num, bcmsdh); in bcmsdh_oob_intr_unregister()