Lines Matching refs:wldev
3716 struct b43legacy_wldev *wldev; in b43legacy_one_core_detach() local
3722 wldev = ssb_get_drvdata(dev); in b43legacy_one_core_detach()
3723 wl = wldev->wl; in b43legacy_one_core_detach()
3724 b43legacy_debugfs_remove_device(wldev); in b43legacy_one_core_detach()
3725 b43legacy_wireless_core_detach(wldev); in b43legacy_one_core_detach()
3726 list_del(&wldev->list); in b43legacy_one_core_detach()
3729 kfree(wldev); in b43legacy_one_core_detach()
3735 struct b43legacy_wldev *wldev; in b43legacy_one_core_attach() local
3738 wldev = kzalloc(sizeof(*wldev), GFP_KERNEL); in b43legacy_one_core_attach()
3739 if (!wldev) in b43legacy_one_core_attach()
3742 wldev->dev = dev; in b43legacy_one_core_attach()
3743 wldev->wl = wl; in b43legacy_one_core_attach()
3744 b43legacy_set_status(wldev, B43legacy_STAT_UNINIT); in b43legacy_one_core_attach()
3745 wldev->bad_frames_preempt = modparam_bad_frames_preempt; in b43legacy_one_core_attach()
3746 tasklet_setup(&wldev->isr_tasklet, b43legacy_interrupt_tasklet); in b43legacy_one_core_attach()
3748 wldev->__using_pio = true; in b43legacy_one_core_attach()
3749 INIT_LIST_HEAD(&wldev->list); in b43legacy_one_core_attach()
3751 err = b43legacy_wireless_core_attach(wldev); in b43legacy_one_core_attach()
3755 list_add(&wldev->list, &wl->devlist); in b43legacy_one_core_attach()
3757 ssb_set_drvdata(dev, wldev); in b43legacy_one_core_attach()
3758 b43legacy_debugfs_add_device(wldev); in b43legacy_one_core_attach()
3763 kfree(wldev); in b43legacy_one_core_attach()
3882 struct b43legacy_wldev *wldev = ssb_get_drvdata(dev); in b43legacy_remove() local
3886 cancel_work_sync(&wldev->restart_work); in b43legacy_remove()
3888 complete(&wldev->fw_load_complete); in b43legacy_remove()
3891 if (!wldev->fw.ucode) in b43legacy_remove()
3893 if (wl->current_dev == wldev) in b43legacy_remove()
3920 struct b43legacy_wldev *wldev = ssb_get_drvdata(dev); in b43legacy_suspend() local
3921 struct b43legacy_wl *wl = wldev->wl; in b43legacy_suspend()
3926 wldev->suspend_init_status = b43legacy_status(wldev); in b43legacy_suspend()
3927 if (wldev->suspend_init_status >= B43legacy_STAT_STARTED) in b43legacy_suspend()
3928 b43legacy_wireless_core_stop(wldev); in b43legacy_suspend()
3929 if (wldev->suspend_init_status >= B43legacy_STAT_INITIALIZED) in b43legacy_suspend()
3930 b43legacy_wireless_core_exit(wldev); in b43legacy_suspend()
3940 struct b43legacy_wldev *wldev = ssb_get_drvdata(dev); in b43legacy_resume() local
3941 struct b43legacy_wl *wl = wldev->wl; in b43legacy_resume()
3947 if (wldev->suspend_init_status >= B43legacy_STAT_INITIALIZED) { in b43legacy_resume()
3948 err = b43legacy_wireless_core_init(wldev); in b43legacy_resume()
3954 if (wldev->suspend_init_status >= B43legacy_STAT_STARTED) { in b43legacy_resume()
3955 err = b43legacy_wireless_core_start(wldev); in b43legacy_resume()
3957 b43legacy_wireless_core_exit(wldev); in b43legacy_resume()