Lines Matching refs:wldev
3747 struct b43legacy_wldev *wldev; in b43legacy_one_core_detach() local
3753 wldev = ssb_get_drvdata(dev); in b43legacy_one_core_detach()
3754 wl = wldev->wl; in b43legacy_one_core_detach()
3755 b43legacy_debugfs_remove_device(wldev); in b43legacy_one_core_detach()
3756 b43legacy_wireless_core_detach(wldev); in b43legacy_one_core_detach()
3757 list_del(&wldev->list); in b43legacy_one_core_detach()
3760 kfree(wldev); in b43legacy_one_core_detach()
3766 struct b43legacy_wldev *wldev; in b43legacy_one_core_attach() local
3769 wldev = kzalloc(sizeof(*wldev), GFP_KERNEL); in b43legacy_one_core_attach()
3770 if (!wldev) in b43legacy_one_core_attach()
3773 wldev->dev = dev; in b43legacy_one_core_attach()
3774 wldev->wl = wl; in b43legacy_one_core_attach()
3775 b43legacy_set_status(wldev, B43legacy_STAT_UNINIT); in b43legacy_one_core_attach()
3776 wldev->bad_frames_preempt = modparam_bad_frames_preempt; in b43legacy_one_core_attach()
3777 tasklet_init(&wldev->isr_tasklet, in b43legacy_one_core_attach()
3779 (unsigned long)wldev); in b43legacy_one_core_attach()
3781 wldev->__using_pio = true; in b43legacy_one_core_attach()
3782 INIT_LIST_HEAD(&wldev->list); in b43legacy_one_core_attach()
3784 err = b43legacy_wireless_core_attach(wldev); in b43legacy_one_core_attach()
3788 list_add(&wldev->list, &wl->devlist); in b43legacy_one_core_attach()
3790 ssb_set_drvdata(dev, wldev); in b43legacy_one_core_attach()
3791 b43legacy_debugfs_add_device(wldev); in b43legacy_one_core_attach()
3796 kfree(wldev); in b43legacy_one_core_attach()
3913 struct b43legacy_wldev *wldev = ssb_get_drvdata(dev); in b43legacy_remove() local
3917 cancel_work_sync(&wldev->restart_work); in b43legacy_remove()
3919 complete(&wldev->fw_load_complete); in b43legacy_remove()
3922 if (!wldev->fw.ucode) in b43legacy_remove()
3924 if (wl->current_dev == wldev) in b43legacy_remove()
3951 struct b43legacy_wldev *wldev = ssb_get_drvdata(dev); in b43legacy_suspend() local
3952 struct b43legacy_wl *wl = wldev->wl; in b43legacy_suspend()
3957 wldev->suspend_init_status = b43legacy_status(wldev); in b43legacy_suspend()
3958 if (wldev->suspend_init_status >= B43legacy_STAT_STARTED) in b43legacy_suspend()
3959 b43legacy_wireless_core_stop(wldev); in b43legacy_suspend()
3960 if (wldev->suspend_init_status >= B43legacy_STAT_INITIALIZED) in b43legacy_suspend()
3961 b43legacy_wireless_core_exit(wldev); in b43legacy_suspend()
3971 struct b43legacy_wldev *wldev = ssb_get_drvdata(dev); in b43legacy_resume() local
3972 struct b43legacy_wl *wl = wldev->wl; in b43legacy_resume()
3978 if (wldev->suspend_init_status >= B43legacy_STAT_INITIALIZED) { in b43legacy_resume()
3979 err = b43legacy_wireless_core_init(wldev); in b43legacy_resume()
3985 if (wldev->suspend_init_status >= B43legacy_STAT_STARTED) { in b43legacy_resume()
3986 err = b43legacy_wireless_core_start(wldev); in b43legacy_resume()
3988 b43legacy_wireless_core_exit(wldev); in b43legacy_resume()