Lines Matching refs:wldev

3751 	struct b43legacy_wldev *wldev;  in b43legacy_one_core_detach()  local
3757 wldev = ssb_get_drvdata(dev); in b43legacy_one_core_detach()
3758 wl = wldev->wl; in b43legacy_one_core_detach()
3759 b43legacy_debugfs_remove_device(wldev); in b43legacy_one_core_detach()
3760 b43legacy_wireless_core_detach(wldev); in b43legacy_one_core_detach()
3761 list_del(&wldev->list); in b43legacy_one_core_detach()
3764 kfree(wldev); in b43legacy_one_core_detach()
3770 struct b43legacy_wldev *wldev; in b43legacy_one_core_attach() local
3773 wldev = kzalloc(sizeof(*wldev), GFP_KERNEL); in b43legacy_one_core_attach()
3774 if (!wldev) in b43legacy_one_core_attach()
3777 wldev->dev = dev; in b43legacy_one_core_attach()
3778 wldev->wl = wl; in b43legacy_one_core_attach()
3779 b43legacy_set_status(wldev, B43legacy_STAT_UNINIT); in b43legacy_one_core_attach()
3780 wldev->bad_frames_preempt = modparam_bad_frames_preempt; in b43legacy_one_core_attach()
3781 tasklet_init(&wldev->isr_tasklet, in b43legacy_one_core_attach()
3783 (unsigned long)wldev); in b43legacy_one_core_attach()
3785 wldev->__using_pio = true; in b43legacy_one_core_attach()
3786 INIT_LIST_HEAD(&wldev->list); in b43legacy_one_core_attach()
3788 err = b43legacy_wireless_core_attach(wldev); in b43legacy_one_core_attach()
3792 list_add(&wldev->list, &wl->devlist); in b43legacy_one_core_attach()
3794 ssb_set_drvdata(dev, wldev); in b43legacy_one_core_attach()
3795 b43legacy_debugfs_add_device(wldev); in b43legacy_one_core_attach()
3800 kfree(wldev); in b43legacy_one_core_attach()
3916 struct b43legacy_wldev *wldev = ssb_get_drvdata(dev); in b43legacy_remove() local
3920 cancel_work_sync(&wldev->restart_work); in b43legacy_remove()
3922 complete(&wldev->fw_load_complete); in b43legacy_remove()
3925 if (!wldev->fw.ucode) in b43legacy_remove()
3927 if (wl->current_dev == wldev) in b43legacy_remove()
3954 struct b43legacy_wldev *wldev = ssb_get_drvdata(dev); in b43legacy_suspend() local
3955 struct b43legacy_wl *wl = wldev->wl; in b43legacy_suspend()
3960 wldev->suspend_init_status = b43legacy_status(wldev); in b43legacy_suspend()
3961 if (wldev->suspend_init_status >= B43legacy_STAT_STARTED) in b43legacy_suspend()
3962 b43legacy_wireless_core_stop(wldev); in b43legacy_suspend()
3963 if (wldev->suspend_init_status >= B43legacy_STAT_INITIALIZED) in b43legacy_suspend()
3964 b43legacy_wireless_core_exit(wldev); in b43legacy_suspend()
3974 struct b43legacy_wldev *wldev = ssb_get_drvdata(dev); in b43legacy_resume() local
3975 struct b43legacy_wl *wl = wldev->wl; in b43legacy_resume()
3981 if (wldev->suspend_init_status >= B43legacy_STAT_INITIALIZED) { in b43legacy_resume()
3982 err = b43legacy_wireless_core_init(wldev); in b43legacy_resume()
3988 if (wldev->suspend_init_status >= B43legacy_STAT_STARTED) { in b43legacy_resume()
3989 err = b43legacy_wireless_core_start(wldev); in b43legacy_resume()
3991 b43legacy_wireless_core_exit(wldev); in b43legacy_resume()