Lines Matching refs:wldev
3713 struct b43legacy_wldev *wldev; in b43legacy_one_core_detach() local
3719 wldev = ssb_get_drvdata(dev); in b43legacy_one_core_detach()
3720 wl = wldev->wl; in b43legacy_one_core_detach()
3721 b43legacy_debugfs_remove_device(wldev); in b43legacy_one_core_detach()
3722 b43legacy_wireless_core_detach(wldev); in b43legacy_one_core_detach()
3723 list_del(&wldev->list); in b43legacy_one_core_detach()
3726 kfree(wldev); in b43legacy_one_core_detach()
3732 struct b43legacy_wldev *wldev; in b43legacy_one_core_attach() local
3735 wldev = kzalloc(sizeof(*wldev), GFP_KERNEL); in b43legacy_one_core_attach()
3736 if (!wldev) in b43legacy_one_core_attach()
3739 wldev->dev = dev; in b43legacy_one_core_attach()
3740 wldev->wl = wl; in b43legacy_one_core_attach()
3741 b43legacy_set_status(wldev, B43legacy_STAT_UNINIT); in b43legacy_one_core_attach()
3742 wldev->bad_frames_preempt = modparam_bad_frames_preempt; in b43legacy_one_core_attach()
3743 tasklet_init(&wldev->isr_tasklet, in b43legacy_one_core_attach()
3745 (unsigned long)wldev); in b43legacy_one_core_attach()
3747 wldev->__using_pio = true; in b43legacy_one_core_attach()
3748 INIT_LIST_HEAD(&wldev->list); in b43legacy_one_core_attach()
3750 err = b43legacy_wireless_core_attach(wldev); in b43legacy_one_core_attach()
3754 list_add(&wldev->list, &wl->devlist); in b43legacy_one_core_attach()
3756 ssb_set_drvdata(dev, wldev); in b43legacy_one_core_attach()
3757 b43legacy_debugfs_add_device(wldev); in b43legacy_one_core_attach()
3762 kfree(wldev); in b43legacy_one_core_attach()
3883 struct b43legacy_wldev *wldev = ssb_get_drvdata(dev); in b43legacy_remove() local
3887 cancel_work_sync(&wldev->restart_work); in b43legacy_remove()
3889 complete(&wldev->fw_load_complete); in b43legacy_remove()
3892 if (!wldev->fw.ucode) in b43legacy_remove()
3894 if (wl->current_dev == wldev) in b43legacy_remove()
3921 struct b43legacy_wldev *wldev = ssb_get_drvdata(dev); in b43legacy_suspend() local
3922 struct b43legacy_wl *wl = wldev->wl; in b43legacy_suspend()
3927 wldev->suspend_init_status = b43legacy_status(wldev); in b43legacy_suspend()
3928 if (wldev->suspend_init_status >= B43legacy_STAT_STARTED) in b43legacy_suspend()
3929 b43legacy_wireless_core_stop(wldev); in b43legacy_suspend()
3930 if (wldev->suspend_init_status >= B43legacy_STAT_INITIALIZED) in b43legacy_suspend()
3931 b43legacy_wireless_core_exit(wldev); in b43legacy_suspend()
3941 struct b43legacy_wldev *wldev = ssb_get_drvdata(dev); in b43legacy_resume() local
3942 struct b43legacy_wl *wl = wldev->wl; in b43legacy_resume()
3948 if (wldev->suspend_init_status >= B43legacy_STAT_INITIALIZED) { in b43legacy_resume()
3949 err = b43legacy_wireless_core_init(wldev); in b43legacy_resume()
3955 if (wldev->suspend_init_status >= B43legacy_STAT_STARTED) { in b43legacy_resume()
3956 err = b43legacy_wireless_core_start(wldev); in b43legacy_resume()
3958 b43legacy_wireless_core_exit(wldev); in b43legacy_resume()